diff --git a/backend/datamart/datamart.controller.ts b/backend/datamart/datamart.controller.ts index 29c9f7b..727ce61 100644 --- a/backend/datamart/datamart.controller.ts +++ b/backend/datamart/datamart.controller.ts @@ -249,7 +249,6 @@ export const runDatamartQuery = async (data: Data) => { ); break; - case "psiDeliveryData": datamartQuery = datamartQuery .replace("[startDate]", `${data.options.startDate}`) diff --git a/brunoApi/auth/Login.bru b/brunoApi/auth/Login.bru deleted file mode 100644 index 45ec2ec..0000000 --- a/brunoApi/auth/Login.bru +++ /dev/null @@ -1,37 +0,0 @@ -meta { - name: Login - type: http - seq: 1 -} - -post { - url: {{url}}/api/auth/sign-in/email - body: json - auth: inherit -} - -headers { - Origin: http://localhost:3000 -} - -body:json { - { - "email": "blake.matthes@alpla.com", - "password": "nova0511" - } -} - -script:post-response { - // // grab the raw Set-Cookie header - // const cookies = res.headers["set-cookie"]; - - // const sessionCookie = cookies[0].split(";")[0]; - - // // Save it as an environment variable - // bru.setEnvVar("session_cookie", sessionCookie); -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/auth/Register.bru b/brunoApi/auth/Register.bru deleted file mode 100644 index 133ae2d..0000000 --- a/brunoApi/auth/Register.bru +++ /dev/null @@ -1,35 +0,0 @@ -meta { - name: Register - type: http - seq: 2 -} - -post { - url: {{url}}/api/authentication/register - body: json - auth: inherit -} - -body:json { - { - "name":"Blake", // option when in the frontend as we will pass over as username if not added - "username": "matthes01", - "email": "blake.matthes@alpla.com", - "password": "nova0511" - } -} - -script:post-response { - // // grab the raw Set-Cookie header - // const cookies = res.headers["set-cookie"]; - - // const sessionCookie = cookies[0].split(";")[0]; - - // // Save it as an environment variable - // bru.setEnvVar("session_cookie", sessionCookie); -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/auth/folder.bru b/brunoApi/auth/folder.bru deleted file mode 100644 index bdc4699..0000000 --- a/brunoApi/auth/folder.bru +++ /dev/null @@ -1,8 +0,0 @@ -meta { - name: auth - seq: 5 -} - -auth { - mode: inherit -} diff --git a/brunoApi/auth/getSession.bru b/brunoApi/auth/getSession.bru deleted file mode 100644 index 67bbcd7..0000000 --- a/brunoApi/auth/getSession.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: getSession - type: http - seq: 3 -} - -get { - url: {{url}}/api/auth/get-session - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/bruno.json b/brunoApi/bruno.json deleted file mode 100644 index d9767fd..0000000 --- a/brunoApi/bruno.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "version": "1", - "name": "lst_v3", - "type": "collection", - "ignore": [ - "node_modules", - ".git" - ] -} \ No newline at end of file diff --git a/brunoApi/collection.bru b/brunoApi/collection.bru deleted file mode 100644 index 8428a70..0000000 --- a/brunoApi/collection.bru +++ /dev/null @@ -1,3 +0,0 @@ -docs { - All Api endpoints to the logistics support tool -} diff --git a/brunoApi/datamart/Get queries.bru b/brunoApi/datamart/Get queries.bru deleted file mode 100644 index 4622814..0000000 --- a/brunoApi/datamart/Get queries.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: Get queries - type: http - seq: 1 -} - -get { - url: {{url}}/api/datamart - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/datamart/Run Query.bru b/brunoApi/datamart/Run Query.bru deleted file mode 100644 index 5e22f85..0000000 --- a/brunoApi/datamart/Run Query.bru +++ /dev/null @@ -1,27 +0,0 @@ -meta { - name: Run Query - type: http - seq: 2 -} - -get { - url: {{url}}/api/datamart/:name?articles=118,120&startDate=2026-01-01&endDate=2026-12-31&all=x - body: none - auth: inherit -} - -params:query { - articles: 118,120 - startDate: 2026-01-01 - endDate: 2026-12-31 - all: x -} - -params:path { - name: deliveryByDateRange -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/datamart/folder.bru b/brunoApi/datamart/folder.bru deleted file mode 100644 index a031391..0000000 --- a/brunoApi/datamart/folder.bru +++ /dev/null @@ -1,8 +0,0 @@ -meta { - name: datamart - seq: 2 -} - -auth { - mode: inherit -} diff --git a/brunoApi/environments/lstv3.bru b/brunoApi/environments/lstv3.bru deleted file mode 100644 index b05fb6c..0000000 --- a/brunoApi/environments/lstv3.bru +++ /dev/null @@ -1,7 +0,0 @@ -vars { - url: http://localhost:3000/lst - readerIp: 10.44.14.215 -} -vars:secret [ - token -] diff --git a/brunoApi/notifications/Get All notifications.bru b/brunoApi/notifications/Get All notifications.bru deleted file mode 100644 index a591df4..0000000 --- a/brunoApi/notifications/Get All notifications.bru +++ /dev/null @@ -1,20 +0,0 @@ -meta { - name: Get All notifications. - type: http - seq: 1 -} - -get { - url: {{url}}/api/notification - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} - -docs { - Passing all as a query param will return all queries active and none active -} diff --git a/brunoApi/notifications/Subscribe to notification.bru b/brunoApi/notifications/Subscribe to notification.bru deleted file mode 100644 index 5b0a86d..0000000 --- a/brunoApi/notifications/Subscribe to notification.bru +++ /dev/null @@ -1,24 +0,0 @@ -meta { - name: Subscribe to notification - type: http - seq: 2 -} - -post { - url: {{url}}/api/notification/sub - body: json - auth: inherit -} - -body:json { - { - "userId":"m6AbQXFwOXoX3YKLfwWgq2LIdDqS5jqv", - "notificationId": "0399eb2a-39df-48b7-9f1c-d233cec94d2e", - "emails": ["blake.matthes@alpla.com","blake.matthes@alpla.com"] - } -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/notifications/folder.bru b/brunoApi/notifications/folder.bru deleted file mode 100644 index d0df6a6..0000000 --- a/brunoApi/notifications/folder.bru +++ /dev/null @@ -1,8 +0,0 @@ -meta { - name: notifications - seq: 7 -} - -auth { - mode: inherit -} diff --git a/brunoApi/notifications/remove sub notification.bru b/brunoApi/notifications/remove sub notification.bru deleted file mode 100644 index d38a5f5..0000000 --- a/brunoApi/notifications/remove sub notification.bru +++ /dev/null @@ -1,24 +0,0 @@ -meta { - name: remove sub notification - type: http - seq: 4 -} - -delete { - url: {{url}}/api/notification/sub - body: json - auth: inherit -} - -body:json { - { - "userId":"0kHd6Kkdub4GW6rK1qa1yjWwqXtvykqT", - "notificationId": "0399eb2a-39df-48b7-9f1c-d233cec94d2e", - "emails": ["blake.mattes@alpla.com"] - } -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/notifications/subscriptions.bru b/brunoApi/notifications/subscriptions.bru deleted file mode 100644 index 30d336d..0000000 --- a/brunoApi/notifications/subscriptions.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: subscriptions - type: http - seq: 5 -} - -get { - url: {{url}}/api/notification/sub - body: json - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/notifications/update notification.bru b/brunoApi/notifications/update notification.bru deleted file mode 100644 index 761c7cc..0000000 --- a/brunoApi/notifications/update notification.bru +++ /dev/null @@ -1,31 +0,0 @@ -meta { - name: update notification - type: http - seq: 6 -} - -patch { - url: {{url}}/api/notification/:id - body: json - auth: inherit -} - -params:path { - id: 0399eb2a-39df-48b7-9f1c-d233cec94d2e -} - -body:json { - { - "active" : true, - "options": [] - } -} - -settings { - encodeUrl: true - timeout: 0 -} - -docs { - Passing all as a query param will return all queries active and none active -} diff --git a/brunoApi/notifications/update sub notification.bru b/brunoApi/notifications/update sub notification.bru deleted file mode 100644 index 2df880e..0000000 --- a/brunoApi/notifications/update sub notification.bru +++ /dev/null @@ -1,24 +0,0 @@ -meta { - name: update sub notification - type: http - seq: 3 -} - -patch { - url: {{url}}/api/notification/sub - body: json - auth: inherit -} - -body:json { - { - "userId":"m6AbQXFwOXoX3YKLfwWgq2LIdDqS5jqv", - "notificationId": "0399eb2a-39df-48b7-9f1c-d233cec94d2e", - "emails": ["cowchmonkey@gmail.com"] - } -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/ocp/Printer Listenter.bru b/brunoApi/ocp/Printer Listenter.bru deleted file mode 100644 index 0d0bc16..0000000 --- a/brunoApi/ocp/Printer Listenter.bru +++ /dev/null @@ -1,22 +0,0 @@ -meta { - name: Printer Listenter - type: http - seq: 1 -} - -post { - url: {{url}}/api/ocp/printer/listener/line_1 - body: json - auth: inherit -} - -body:json { - { - "message":"xnvjdhhgsdfr" - } -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/ocp/folder.bru b/brunoApi/ocp/folder.bru deleted file mode 100644 index 4842046..0000000 --- a/brunoApi/ocp/folder.bru +++ /dev/null @@ -1,8 +0,0 @@ -meta { - name: ocp - seq: 9 -} - -auth { - mode: inherit -} diff --git a/brunoApi/opendock/GetApt.bru b/brunoApi/opendock/GetApt.bru deleted file mode 100644 index 5631e7a..0000000 --- a/brunoApi/opendock/GetApt.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: GetApt - type: http - seq: 1 -} - -get { - url: {{url}}/api/opendock - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/prodSql/Sql Start.bru b/brunoApi/prodSql/Sql Start.bru deleted file mode 100644 index 2998557..0000000 --- a/brunoApi/prodSql/Sql Start.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: Sql Start - type: http - seq: 4 -} - -post { - url: {{url}}/api/system/prodsql/start - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/prodSql/Sql restart.bru b/brunoApi/prodSql/Sql restart.bru deleted file mode 100644 index fbd0b0b..0000000 --- a/brunoApi/prodSql/Sql restart.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: Sql restart - type: http - seq: 4 -} - -post { - url: {{url}}/api/system/prodsql/restart - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/prodSql/Sql stop.bru b/brunoApi/prodSql/Sql stop.bru deleted file mode 100644 index 80d3a13..0000000 --- a/brunoApi/prodSql/Sql stop.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: Sql stop - type: http - seq: 4 -} - -post { - url: {{url}}/api/system/prodsql/stop - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/prodSql/folder.bru b/brunoApi/prodSql/folder.bru deleted file mode 100644 index e3ed553..0000000 --- a/brunoApi/prodSql/folder.bru +++ /dev/null @@ -1,8 +0,0 @@ -meta { - name: prodSql - seq: 6 -} - -auth { - mode: inherit -} diff --git a/brunoApi/rfidReaders/folder.bru b/brunoApi/rfidReaders/folder.bru deleted file mode 100644 index 1a5b040..0000000 --- a/brunoApi/rfidReaders/folder.bru +++ /dev/null @@ -1,8 +0,0 @@ -meta { - name: rfidReaders - seq: 8 -} - -auth { - mode: inherit -} diff --git a/brunoApi/rfidReaders/reader.bru b/brunoApi/rfidReaders/reader.bru deleted file mode 100644 index e443cf9..0000000 --- a/brunoApi/rfidReaders/reader.bru +++ /dev/null @@ -1,20 +0,0 @@ -meta { - name: reader - type: http - seq: 2 -} - -post { - url: https://usday1prod.alpla.net/lst/old/api/rfid/mgtevents/line3.1 - body: json - auth: inherit -} - -body:json { - {} -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/rfidReaders/readerSpecific/Config.bru b/brunoApi/rfidReaders/readerSpecific/Config.bru deleted file mode 100644 index 633b494..0000000 --- a/brunoApi/rfidReaders/readerSpecific/Config.bru +++ /dev/null @@ -1,20 +0,0 @@ -meta { - name: Config - type: http - seq: 2 -} - -get { - url: https://{{readerIp}}/cloud/config - body: none - auth: bearer -} - -auth:bearer { - token: {{token}} -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/rfidReaders/readerSpecific/Login.bru b/brunoApi/rfidReaders/readerSpecific/Login.bru deleted file mode 100644 index 4ca6e21..0000000 --- a/brunoApi/rfidReaders/readerSpecific/Login.bru +++ /dev/null @@ -1,32 +0,0 @@ -meta { - name: Login - type: http - seq: 1 -} - -get { - url: https://{{readerIp}}/cloud/localRestLogin - body: none - auth: basic -} - -auth:basic { - username: admin - password: Zebra123! -} - -script:post-response { - const body = res.getBody(); - - if (body.message) { - bru.setEnvVar("token", body.message); - } else { - bru.setEnvVar("token", "error"); - } - -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/rfidReaders/readerSpecific/Update Config.bru b/brunoApi/rfidReaders/readerSpecific/Update Config.bru deleted file mode 100644 index 9f4ecae..0000000 --- a/brunoApi/rfidReaders/readerSpecific/Update Config.bru +++ /dev/null @@ -1,237 +0,0 @@ -meta { - name: Update Config - type: http - seq: 3 -} - -put { - url: https://{{readerIp}}/cloud/config - body: json - auth: bearer -} - -headers { - Content-Type: application/json -} - -auth:bearer { - token: {{token}} -} - -body:json { - { - "GPIO-LED": { - "GPODefaults": { - "1": "HIGH", - "2": "HIGH", - "3": "HIGH", - "4": "HIGH" - }, - "LEDDefaults": { - "3": "GREEN" - }, - "TAG_READ": [ - { - "pin": 1, - "state": "HIGH", - "type": "GPO" - } - ] - }, - "READER-GATEWAY": { - "batching": [ - { - "maxPayloadSizePerReport": 256000, - "reportingInterval": 2000 - }, - { - "maxPayloadSizePerReport": 256000, - "reportingInterval": 2000 - } - ], - "endpointConfig": { - "data": { - "event": { - "connections": [ - { - "additionalOptions": { - "retention": { - "maxEventRetentionTimeInMin": 500, - "maxNumEvents": 150000, - "throttle": 100 - } - }, - "description": "", - "name": "LST", - "options": { - "URL": "https://usday1prod.alpla.net/lst/old/api/rfid/taginfo/line3.4", - "security": { - "CACertificateFileLocation": "", - "authenticationOptions": {}, - "authenticationType": "NONE", - "verifyHost": false, - "verifyPeer": false - } - }, - "type": "httpPost" - }, - { - "additionalOptions": { - "retention": { - "maxEventRetentionTimeInMin": 500, - "maxNumEvents": 150000, - "throttle": 100 - } - }, - "description": "", - "name": "mgt", - "options": { - "URL": "https://usday1prod.alpla.net/lst/old/api/rfid/mgtevents/line3.4", - "security": { - "CACertificateFileLocation": "", - "authenticationOptions": {}, - "authenticationType": "NONE", - "verifyHost": false, - "verifyPeer": false - } - }, - "type": "httpPost" - } - ] - } - } - }, - "managementEventConfig": { - "errors": { - "antenna": false, - "cpu": { - "reportIntervalInSec": 1800, - "threshold": 90 - }, - "database": true, - "flash": { - "reportIntervalInSec": 1800, - "threshold": 90 - }, - "ntp": true, - "radio": true, - "radio_control": true, - "ram": { - "reportIntervalInSec": 1800, - "threshold": 90 - }, - "reader_gateway": true, - "userApp": { - "reportIntervalInSec": 1800, - "threshold": 120 - } - }, - "gpiEvents": true, - "gpoEvents": true, - "heartbeat": { - "fields": { - "radio_control": [ - "ANTENNAS", - "RADIO_ACTIVITY", - "RADIO_CONNECTION", - "CPU", - "RAM", - "UPTIME", - "NUM_ERRORS", - "NUM_WARNINGS", - "NUM_TAG_READS", - "NUM_TAG_READS_PER_ANTENNA", - "NUM_DATA_MESSAGES_TXED", - "NUM_RADIO_PACKETS_RXED" - ], - "reader_gateway": [ - "NUM_DATA_MESSAGES_RXED", - "NUM_MANAGEMENT_EVENTS_TXED", - "NUM_DATA_MESSAGES_TXED", - "NUM_DATA_MESSAGES_RETAINED", - "NUM_DATA_MESSAGES_DROPPED", - "CPU", - "RAM", - "UPTIME", - "NUM_ERRORS", - "NUM_WARNINGS", - "INTERFACE_CONNECTION_STATUS", - "NOLOCKQ_DEPTH" - ], - "system": [ - "CPU", - "FLASH", - "NTP", - "RAM", - "SYSTEMTIME", - "TEMPERATURE", - "UPTIME", - "GPO", - "GPI", - "POWER_NEGOTIATION", - "POWER_SOURCE", - "MAC_ADDRESS", - "HOSTNAME" - ], - "userapps": [ - "STATUS", - "CPU", - "RAM", - "UPTIME", - "NUM_DATA_MESSAGES_RXED", - "NUM_DATA_MESSAGES_TXED", - "INCOMING_DATA_BUFFER_PERCENTAGE_REMAINING", - "OUTGOING_DATA_BUFFER_PERCENTAGE_REMAINING" - ] - }, - "interval": 60 - }, - "userappEvents": true, - "warnings": { - "cpu": { - "reportIntervalInSec": 1800, - "threshold": 80 - }, - "database": true, - "flash": { - "reportIntervalInSec": 1800, - "threshold": 80 - }, - "ntp": true, - "radio_api": true, - "radio_control": true, - "ram": { - "reportIntervalInSec": 1800, - "threshold": 80 - }, - "reader_gateway": true, - "temperature": { - "ambient": 75, - "pa": 105 - }, - "userApp": { - "reportIntervalInSec": 1800, - "threshold": 60 - } - } - }, - "retention": [ - { - "maxEventRetentionTimeInMin": 500, - "maxNumEvents": 150000, - "throttle": 100 - }, - { - "maxEventRetentionTimeInMin": 500, - "maxNumEvents": 150000, - "throttle": 100 - } - ] - } - } -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/rfidReaders/readerSpecific/folder.bru b/brunoApi/rfidReaders/readerSpecific/folder.bru deleted file mode 100644 index c2c163f..0000000 --- a/brunoApi/rfidReaders/readerSpecific/folder.bru +++ /dev/null @@ -1,12 +0,0 @@ -meta { - name: readerSpecific -} - -auth { - mode: basic -} - -auth:basic { - username: admin - password: Zebra123! -} diff --git a/brunoApi/system/Get Settings.bru b/brunoApi/system/Get Settings.bru deleted file mode 100644 index b9b8ec7..0000000 --- a/brunoApi/system/Get Settings.bru +++ /dev/null @@ -1,20 +0,0 @@ -meta { - name: Get Settings - type: http - seq: 3 -} - -get { - url: {{url}}/api/settings - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} - -docs { - returns all settings -} diff --git a/brunoApi/system/Status.bru b/brunoApi/system/Status.bru deleted file mode 100644 index 5dc64c2..0000000 --- a/brunoApi/system/Status.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: Status - type: http - seq: 1 -} - -get { - url: {{url}}/api/stats - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/system/updateSetting.bru b/brunoApi/system/updateSetting.bru deleted file mode 100644 index 1044810..0000000 --- a/brunoApi/system/updateSetting.bru +++ /dev/null @@ -1,33 +0,0 @@ -meta { - name: updateSetting - type: http - seq: 2 -} - -patch { - url: {{url}}/api/settings/opendock_sync - body: json - auth: inherit -} - -body:json { - { - "value" : "1", - "active": "true" - } -} - -settings { - encodeUrl: true - timeout: 0 -} - -docs { - Allows the changing of a setting based on the parameter. - - * when a setting that is being changed is a feature there will be some backgound logic that will stop that features processes and no long work. - - * when the setting is being changed is system the entire app will do a full restart - - * when a seeting is being changed and is standard nothing will happen until the next action is completed. example someone prints a label and you changed the default to 120 second from 90 seconds -} diff --git a/brunoApi/utils/Active Jobs.bru b/brunoApi/utils/Active Jobs.bru deleted file mode 100644 index 3c24e98..0000000 --- a/brunoApi/utils/Active Jobs.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: Active Jobs - type: http - seq: 5 -} - -get { - url: {{url}}/api/utils/croner - body: none - auth: inherit -} - -settings { - encodeUrl: true - timeout: 0 -} diff --git a/brunoApi/utils/Change job status.bru b/brunoApi/utils/Change job status.bru deleted file mode 100644 index c4ce9d8..0000000 --- a/brunoApi/utils/Change job status.bru +++ /dev/null @@ -1,22 +0,0 @@ -meta { - name: Change job status - type: http - seq: 2 -} - -patch { - url: {{url}}/api/utils/croner/stop - body: json - auth: inherit -} - -body:json { - { - "name": "open-dock-monitor" - } -} - -settings { - encodeUrl: true - timeout: 0 -}