diff --git a/jsobjects/HandleSelects_Put Away.json b/jsobjects/HandleSelects_Put Away.json deleted file mode 100644 index 7eef561..0000000 --- a/jsobjects/HandleSelects_Put Away.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "unpublishedCollection": { - "name": "HandleSelects", - "pageId": "Put Away", - "pluginId": "js-plugin", - "pluginType": "JS", - "actions": [], - "archivedActions": [], - "body": "export default {\n\tsiteChange: (siteId) => {\n\t\tif(!_.isEmpty(siteId)){\n\t\t\tGetSiteWarehouses.run()\n\t\t}\n\t},\n\twarehouseChange: (warehouseId) => {\n\t\tif(!_.isEmpty(warehouseId)){\n\t\t\tqueryCarriers.run()\n\t\t}\n\t},\n\tclearValues:() => {\n\t\tstoreValue(\"getWarehouseByNameResult\",undefined)\n\t\tstoreValue(\"getCarrierByCodeResult\",undefined)\n\t\tstoreValue(\"getSubLotByCode\",undefined)\n\t\tinpBarcodeScan.text = undefined\n\t}, \n\tbarcodeValueChange: (barcode) => {\n\t\tif(!_.isEmpty(barcode)){\n\t\tgetSubLotByCode.run(()=>{\n\t\t\tif(getSubLotByCode.data.data.getStockOnHand==null){\n\t\t\t\tgetCarrierByCode.run(()=>{\n\t\t\t\t\tif (getCarrierByCode.data.data.getCarrier==null){\n\t\t\t\t\t\t\tgetWarehouseByName.run(()=>{\n\t\t\t\t\t\tif (getWarehouseByName.data.data.queryEquipment.length == 0){\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tstoreValue(\"getWarehouseByNameResult\",getWarehouseByName.data.data.queryEquipment[0])\n\t\t\t\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tstoreValue(\"getCarrierByCodeResult\",getCarrierByCode.data.data.getCarrier)\n\t\t\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}else{\n\t\t\t\tstoreValue(\"getSubLotByCode\",getSubLotByCode.data.data.getStockOnHand[1])\n\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t}\n\t\t})\n\t\t}\n\t}\n}", - "variables": [] - }, - "id": "Put Away_HandleSelects", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623961554d9aea1b062af6a1" -} \ No newline at end of file diff --git a/jsobjects/JS_SiteList_Put Away.json b/jsobjects/JS_SiteList_Put Away.json deleted file mode 100644 index 53335ef..0000000 --- a/jsobjects/JS_SiteList_Put Away.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "unpublishedCollection": { - "name": "JS_SiteList", - "pageId": "Put Away", - "pluginId": "js-plugin", - "pluginType": "JS", - "actions": [], - "archivedActions": [], - "body": "export default {\n\tgetUserSiteList : () => {\n\t\tconst flattened = []\n\t\tGetUserSites.data.data.getUser.hasRole.map((userRole) => {\n\t\t\tuserRole.responsibilities.map((site) => {\n\t\t\t\tflattened.push(site)\n\t\t\t})\n\t\t})\n\t\treturn flattened\n\t\t}\n}", - "variables": [] - }, - "id": "Put Away_JS_SiteList", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623960e94d9aea1b062af68a" -} \ No newline at end of file diff --git a/metadata.json b/metadata.json index e1f3093..725da3c 100644 --- a/metadata.json +++ b/metadata.json @@ -9,17 +9,15 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Review Inbound Shipments_JS_SiteList.getUserSiteList": { - "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_UpdateShipmentItem": { + "Receive Stock_HandleSelects.siteChange": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_HandleSelects.siteChange": { + "Receive Deliveries_UpdateShipmentItem": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, @@ -43,7 +41,7 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_AddShipmentItem": { + "Receive Deliveries_GetShipmentDetail": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, @@ -51,27 +49,26 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_CreateInboundShipment.addItemToShipment": { + "Receive Stock_MutationCompletions.completeShipment": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_MutationCompletions.completeShipment": { + "Receive Deliveries_GetWarehouseMaterials": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_ReceiveDelivery": { + "Receive Stock_CreateInboundShipment.addItemToShipment": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_MutationCompletions.addShipmentItem": { + "Upload ASN_GetUserSites": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Review Inbound Shipments_DisableLoadASN.disableLoadASN": { + "Receive Deliveries_AddShipmentItem": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_TransactionTable.formatTable": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false @@ -88,15 +85,11 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_MutationCompletions.addShipmentItem": { + "Receive Deliveries_ReceiveDelivery": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_GetShipmentWithItems": { - "unpublishedUserSetOnLoad": true, - "publishedUserSetOnLoad": true - }, - "Put Away_JS_SiteList.getUserSiteList": { + "Receive Deliveries_MutationCompletions.addShipmentItem": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, @@ -116,19 +109,18 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_MutationCompletions.receiveTrackedByCarrier": { + "Receive Stock_GetCustomers": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_JS_SiteList.getUserSiteList": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false + "Upload ASN_AddASNStaging": { + "unpublishedUserSetOnLoad": true, + "publishedUserSetOnLoad": true }, - "Receive Stock_MutationCompletions.addCarrier": { + "Receive Stock_MutationCompletions.receiveTrackedByCarrier": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_DefaultValues.quantityValue": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false @@ -145,11 +137,11 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_GetWarehouseBins": { + "Receive Stock_Receive.shipmentItemReceiveType": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_Receive.shipmentItemReceiveType": { + "Receive Deliveries_GetWarehouseBins": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, @@ -177,28 +169,30 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Review Inbound Shipments_GetInboundShipmentsAtWarehouse": { + "Put Away_JS_SiteList.getUserSiteList": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_DefaultValues.materialValue": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_HandleSelects.warehouseChange": { + "Receive Stock_GetBulkStatus": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_ReceiveUntracked": { + "Receive Stock_HandleSelects.warehouseChange": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_GetSiteWarehouses": { "unpublishedUserSetOnLoad": true, "publishedUserSetOnLoad": true }, + "Receive Deliveries_GetUserSites": { + "unpublishedUserSetOnLoad": false, + "publishedUserSetOnLoad": false + }, "Upload ASN_ResetUploadASNContainer.resetUploadASNContainer": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false @@ -211,6 +205,10 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, + "Receive Stock_AddCarrier": { + "unpublishedUserSetOnLoad": false, + "publishedUserSetOnLoad": false + }, "Receive Deliveries_AddShipment.checkOrder": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false @@ -219,19 +217,14 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_AddCarrier": { + "Receive Deliveries_DefaultValues.binValue": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_GetCarrierCarriers": { + "Receive Deliveries_GetSiteWarehouses": { "unpublishedUserSetOnLoad": true, "publishedUserSetOnLoad": true }, - - "Receive Deliveries_DefaultValues.binValue": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, "Receive Stock_HandleSelects.shipmentItemChange": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false @@ -260,11 +253,11 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_MutationCompletions.undoTransaction": { + "Review Inbound Shipments_GetUserSites": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Review Inbound Shipments_GetUserSites": { + "Receive Stock_MutationCompletions.undoTransaction": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, @@ -300,41 +293,26 @@ "unpublishedUserSetOnLoad": true, "publishedUserSetOnLoad": true }, - "Upload ASN_GetWarehouse": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, - "Review Inbound Shipments_ResetTableData.emptyTable": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, - "Upload ASN_MutationCompletions.confirmASNMutation": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, - "Receive Stock_GetSerialCarriersStatus": { + "Receive Stock_GetSerialCarriers": { "unpublishedUserSetOnLoad": true, "publishedUserSetOnLoad": true }, - "Receive Deliveries_GetSiteActiveInboundOrders": { + "Receive Stock_UndoTransaction": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Put Away_getCarrierByCode": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, - "Receive Deliveries_CreateShipmentNewOrder": { - "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_HandleSelects.warehouseChange": { + "Receive Stock_ReceiveUntracked": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - + "Receive Stock_GetWarehouseShipmentsInbound": { + "unpublishedUserSetOnLoad": true, + "publishedUserSetOnLoad": true + }, "Receive Stock_GetTransactionDetails": { "unpublishedUserSetOnLoad": true, "publishedUserSetOnLoad": true @@ -351,11 +329,7 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_AddCarrier": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, - "Receive Deliveries_GetSiteWarehouses": { + "Receive Stock_GetMaterials": { "unpublishedUserSetOnLoad": true, "publishedUserSetOnLoad": true }, @@ -391,6 +365,10 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, + "Put Away_getWarehouseByName": { + "unpublishedUserSetOnLoad": false, + "publishedUserSetOnLoad": false + }, "Receive Stock_ReceiveSerialised": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false @@ -399,34 +377,17 @@ "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Deliveries_CreateShipmentExistingOrder": { + "Review Inbound Shipments_LoadShipments": { "unpublishedUserSetOnLoad": false, "publishedUserSetOnLoad": false }, - "Receive Stock_GetShipmentItemDetail": { + "Receive Stock_GetCarrierCarriers": { "unpublishedUserSetOnLoad": true, "publishedUserSetOnLoad": true }, - "Receive Stock_GetCarrierCarriersStatus": { "unpublishedUserSetOnLoad": true, "publishedUserSetOnLoad": true - }, - "Put Away_getWarehouseByName": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, - "Receive Stock_ReceiveSerialised": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, - "Review Inbound Shipments_LoadShipments": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false - }, - "Receive Stock_MutationCompletions.receiveUntracked": { - "unpublishedUserSetOnLoad": false, - "publishedUserSetOnLoad": false } }, "editModeTheme": { diff --git a/pages/Put Away.json b/pages/Put Away.json index 9df48ed..6145036 100644 --- a/pages/Put Away.json +++ b/pages/Put Away.json @@ -1184,7 +1184,6 @@ "layoutOnLoadActions": [ [ { - "id": "Put Away_GetUserSites", "name": "GetUserSites", "confirmBeforeExecute": false, "pluginType": "API", @@ -1194,7 +1193,6 @@ "timeoutInMillisecond": 10000 }, { - "id": "Put Away_getSubLotByCarrier", "name": "getSubLotByCarrier", "confirmBeforeExecute": false, "pluginType": "API", @@ -1204,7 +1202,6 @@ "timeoutInMillisecond": 10000 }, { - "id": "Put Away_queryCarriers", "name": "queryCarriers", "confirmBeforeExecute": false, "pluginType": "API", @@ -1216,7 +1213,6 @@ ], [ { - "id": "Put Away_GetSiteWarehouses", "name": "GetSiteWarehouses", "confirmBeforeExecute": false, "pluginType": "API", diff --git a/pages/Receive Deliveries.json b/pages/Receive Deliveries.json index 80aab96..bb12443 100644 --- a/pages/Receive Deliveries.json +++ b/pages/Receive Deliveries.json @@ -8,7 +8,7 @@ "dsl": { "widgetName": "MainContainer", "backgroundColor": "none", - "rightColumn": 1334, + "rightColumn": 1280, "snapColumns": 64, "detachFromLayout": true, "widgetId": "0", diff --git a/pages/Review Inbound Shipments.json b/pages/Review Inbound Shipments.json index 5fb7d9c..e85ab70 100644 --- a/pages/Review Inbound Shipments.json +++ b/pages/Review Inbound Shipments.json @@ -8,7 +8,6 @@ "dsl": { "widgetName": "MainContainer", "backgroundColor": "none", - "rightColumn": 1506, "snapColumns": 64, "detachFromLayout": true, diff --git a/queries/GetSiteWarehouses_Put Away.json b/queries/GetSiteWarehouses_Put Away.json deleted file mode 100644 index 2a190d7..0000000 --- a/queries/GetSiteWarehouses_Put Away.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "pluginType": "API", - "pluginId": "restapi-plugin", - "unpublishedAction": { - "name": "GetSiteWarehouses", - "datasource": { - "pluginId": "restapi-plugin", - "messages": [], - "isAutoGenerated": false, - "id": "Users", - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "path": "/graphql", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], - "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tid:selectSite.selectedOptionValue\n\t\t},\n query: `\nquery($id:ID!){\n\tgetEquipment(id:$id){\n\t\tid\n\t\tname\n\t\tchildren(filter:{equipmentLevel:{eq:Warehouse},not:{isActive:false}}){\n\t\t\tvalue:id\n\t\t\tlabel:name\n\t\t}\n\t}\n}\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] - }, - "executeOnLoad": true, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tid:selectSite.selectedOptionValue\n\t\t},\n query: `\nquery($id:ID!){\n\tgetEquipment(id:$id){\n\t\tid\n\t\tname\n\t\tchildren(filter:{equipmentLevel:{eq:Warehouse},not:{isActive:false}}){\n\t\t\tvalue:id\n\t\t\tlabel:name\n\t\t}\n\t}\n}\n `\n})" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_GetSiteWarehouses", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623960914d9aea1b062af684" -} \ No newline at end of file diff --git a/queries/GetUserSites_Put Away.json b/queries/GetUserSites_Put Away.json deleted file mode 100644 index a4d8a32..0000000 --- a/queries/GetUserSites_Put Away.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "pluginType": "API", - "pluginId": "restapi-plugin", - "unpublishedAction": { - "name": "GetUserSites", - "datasource": { - "pluginId": "restapi-plugin", - "messages": [], - "isAutoGenerated": false, - "id": "Users", - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "path": "/graphql", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], - "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tname:appsmith.user.email\n\t\t},\n query: `\nquery($name:String!){\n getUser(username:$name){\n name\n\t\tid\n hasRole@cascade{\n role{\n name\n hasGrantedRights(filter:{name:{eq:isAdmin}}){\n name\n }\n }\n responsibilities(filter:{equipmentLevel:{eq:Site}}){\n value:id\n label:name\n }\n }\n }\n}\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] - }, - "executeOnLoad": true, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tname:appsmith.user.email\n\t\t},\n query: `\nquery($name:String!){\n getUser(username:$name){\n name\n\t\tid\n hasRole@cascade{\n role{\n name\n hasGrantedRights(filter:{name:{eq:isAdmin}}){\n name\n }\n }\n responsibilities(filter:{equipmentLevel:{eq:Site}}){\n value:id\n label:name\n }\n }\n }\n}\n `\n})" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_GetUserSites", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_6239607f4d9aea1b062af682" -} \ No newline at end of file diff --git a/queries/MoveCarrierToBin_Put Away.json b/queries/MoveCarrierToBin_Put Away.json deleted file mode 100644 index 2c3333a..0000000 --- a/queries/MoveCarrierToBin_Put Away.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "pluginType": "API", - "pluginId": "restapi-plugin", - "unpublishedAction": { - "name": "MoveCarrierToBin", - "datasource": { - "pluginId": "restapi-plugin", - "messages": [], - "isAutoGenerated": false, - "id": "Users", - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], - "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n \"input\": [\n {\n \"carrier\": {\n \"id\": appsmith.store.getCarrierByCodeResult.id\n },\n \"user\": {\n\t\t\t\t\t\"id\":GetUserSites.data.data.getUser.id,\n \"username\": appsmith.user.email\n },\n \"storageLocation\": {\n \"id\": appsmith.store.getWarehouseByNameResult.id,\n \"name\": appsmith.store.getWarehouseByNameResult.name\n },\n }\n ]\n},\n query: `\nmutation moveCarrierToBin($input:[InventoryTransactionInput!]!){\nmoveCarrierToBin(input:$input){\ncarrier{\ncode\n}\nstorageLocation{\nname\n}\n}\n} `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ], - "formData": { - "apiContentType": "none" - } - }, - "executeOnLoad": false, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n \"input\": [\n {\n \"carrier\": {\n \"id\": appsmith.store.getCarrierByCodeResult.id\n },\n \"user\": {\n\t\t\t\t\t\"id\":GetUserSites.data.data.getUser.id,\n \"username\": appsmith.user.email\n },\n \"storageLocation\": {\n \"id\": appsmith.store.getWarehouseByNameResult.id,\n \"name\": appsmith.store.getWarehouseByNameResult.name\n },\n }\n ]\n},\n query: `\nmutation moveCarrierToBin($input:[InventoryTransactionInput!]!){\nmoveCarrierToBin(input:$input){\ncarrier{\ncode\n}\nstorageLocation{\nname\n}\n}\n} `\n})" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_MoveCarrierToBin", - "deleted": false, - "gitSyncId": "623b99d24d9aea1b062b1ed0_623d43974d9aea1b062b3910" -} \ No newline at end of file diff --git a/queries/addCarrier_Receive Stock.json b/queries/addCarrier_Receive Stock.json index 7f26da7..b085d51 100644 --- a/queries/addCarrier_Receive Stock.json +++ b/queries/addCarrier_Receive Stock.json @@ -1,37 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "AddCarrier", + "name": "addCarrier", + "fullyQualifiedName": "MutationCompletions.addCarrier", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Stock", + "collectionId": "Receive Stock_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "path": "/graphql", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tinput:[{\n code: inpAddCarrierNum.text,\n status: {\n\t\t\t\t\t code:selectAddCarrierState.selectedOptionValue\n\t\t\t\t },\n storageLocation: {\n\t\t\t\t\t id:selectAddCarrierBin.selectedOptionValue\n\t\t\t\t },\n }]\n\t\t},\n query: `\n mutation ($input: [AddCarrierInput!]!) {\n addCarrier(input: $input) {\n\t\t\t\t \tcarrier{\n\t\t\t\t\t\tid\n\t\t\t\t\t\tcode\n\t\t\t\t\t}\n }\n }\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] + "body": "() => {\n\t\tif (AddCarrier.data.errors != null) {\n\t\t\tshowAlert(CompleteShipment.data.errors[0].message)\n\t\t} else {\n\t\t\tGetCarrierCarriers.run()\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -43,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tinput:[{\n code: inpAddCarrierNum.text,\n status: {\n\t\t\t\t\t code:selectAddCarrierState.selectedOptionValue\n\t\t\t\t },\n storageLocation: {\n\t\t\t\t\t id:selectAddCarrierBin.selectedOptionValue\n\t\t\t\t },\n }]\n\t\t},\n query: `\n mutation ($input: [AddCarrierInput!]!) {\n addCarrier(input: $input) {\n\t\t\t\t \tcarrier{\n\t\t\t\t\t\tid\n\t\t\t\t\t\tcode\n\t\t\t\t\t}\n }\n }\n `\n})" + "() => {\n\t\tif (AddCarrier.data.errors != null) {\n\t\t\tshowAlert(CompleteShipment.data.errors[0].message)\n\t\t} else {\n\t\t\tGetCarrierCarriers.run()\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Stock_AddCarrier", + "id": "Receive Stock_MutationCompletions.addCarrier", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_61c4342ee89bc475f3cce163" + "gitSyncId": "6196c1950dfef900f247faaf_6204a3d6552a5f6395877287" } \ No newline at end of file diff --git a/queries/addShipmentItemExistingShip_Receive Stock.json b/queries/addShipmentItemExistingShip_Receive Stock.json index 96d23e9..03efb35 100644 --- a/queries/addShipmentItemExistingShip_Receive Stock.json +++ b/queries/addShipmentItemExistingShip_Receive Stock.json @@ -1,35 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "AddShipmentItemExistingShip", + "name": "addShipmentItemExistingShip", + "fullyQualifiedName": "MutationCompletions.addShipmentItemExistingShip", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Stock", + "collectionId": "Receive Stock_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tinput:[{\n \"material\":{\"id\":selectAddShipmentItemMaterial.selectedOptionValue},\n\t\t\t\t\"plannedQuantity\":parseInt(inpAddShipmentItemQuantity.text),\n\t\t\t\t\"shipment\":{\"id\":tblShipmentList.selectedRow.id},\n\t\t\t\t\"status\":\"CREATED\"\n }]\n\t\t},\n query: `\n mutation ($input: [AddShipmentItemInput!]!) {\n addShipmentItem(input: $input) {\n\t\t\t\t \tshipmentItem{\n\t\t\t\t\t\tid\n\t\t\t\t\t}\n }\n }\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] + "body": "() => {\n\t\tif (AddShipmentItemExistingShip.data.errors != null) {\n\t\t\tshowAlert(AddShipmentItemExistingShip.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentWithItems.run()\n\t\t\tcloseModal(\"modalAddShipmentItem\")\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -41,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tinput:[{\n \"material\":{\"id\":selectAddShipmentItemMaterial.selectedOptionValue},\n\t\t\t\t\"plannedQuantity\":parseInt(inpAddShipmentItemQuantity.text),\n\t\t\t\t\"shipment\":{\"id\":tblShipmentList.selectedRow.id},\n\t\t\t\t\"status\":\"CREATED\"\n }]\n\t\t},\n query: `\n mutation ($input: [AddShipmentItemInput!]!) {\n addShipmentItem(input: $input) {\n\t\t\t\t \tshipmentItem{\n\t\t\t\t\t\tid\n\t\t\t\t\t}\n }\n }\n `\n})" + "() => {\n\t\tif (AddShipmentItemExistingShip.data.errors != null) {\n\t\t\tshowAlert(AddShipmentItemExistingShip.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentWithItems.run()\n\t\t\tcloseModal(\"modalAddShipmentItem\")\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Stock_AddShipmentItemExistingShip", + "id": "Receive Stock_MutationCompletions.addShipmentItemExistingShip", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623938ac4d9aea1b062af3fc" + "gitSyncId": "6196c1950dfef900f247faaf_623939b34d9aea1b062af402" } \ No newline at end of file diff --git a/queries/addShipmentItem_Receive Deliveries.json b/queries/addShipmentItem_Receive Deliveries.json index 8cd6eda..ba5c06e 100644 --- a/queries/addShipmentItem_Receive Deliveries.json +++ b/queries/addShipmentItem_Receive Deliveries.json @@ -1,25 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "AddShipmentItem", + "name": "addShipmentItem", + "fullyQualifiedName": "MutationCompletions.addShipmentItem", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Deliveries", + "collectionId": "Receive Deliveries_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tid: listShipments.selectedItem.id\n\t\t},\n query: `\nmutation AddShipmentItem($id:ID!) {\n addShipmentItem(input:{shipment:{id:$id},status:CREATED}) {\n shipmentItem {\n id\n }\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (AddShipmentItem.data.errors != null) {\n\t\t\tshowAlert(AddShipmentItem.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentDetail.run()\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -31,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tid: listShipments.selectedItem.id\n\t\t},\n query: `\nmutation AddShipmentItem($id:ID!) {\n addShipmentItem(input:{shipment:{id:$id},status:CREATED}) {\n shipmentItem {\n id\n }\n }\n}\n `\n})" + "() => {\n\t\tif (AddShipmentItem.data.errors != null) {\n\t\t\tshowAlert(AddShipmentItem.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentDetail.run()\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Deliveries_AddShipmentItem", + "id": "Receive Deliveries_MutationCompletions.addShipmentItem", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_62298724f782567d61f1676a" + "gitSyncId": "6196c1950dfef900f247faaf_62299062f782567d61f1680e" } \ No newline at end of file diff --git a/queries/barcodeValueChange_Put Away.json b/queries/barcodeValueChange_Put Away.json deleted file mode 100644 index 92f8ff0..0000000 --- a/queries/barcodeValueChange_Put Away.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "pluginType": "JS", - "pluginId": "js-plugin", - "unpublishedAction": { - "name": "barcodeValueChange", - "fullyQualifiedName": "HandleSelects.barcodeValueChange", - "datasource": { - "name": "UNUSED_DATASOURCE", - "pluginId": "js-plugin", - "messages": [], - "isAutoGenerated": false, - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "collectionId": "Put Away_HandleSelects", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "encodeParamsToggle": true, - "body": "(barcode) => {\n\t\tif(!_.isEmpty(barcode)){\n\t\tgetSubLotByCode.run(()=>{\n\t\t\tif(getSubLotByCode.data.data.getStockOnHand==null){\n\t\t\t\tgetCarrierByCode.run(()=>{\n\t\t\t\t\tif (getCarrierByCode.data.data.getCarrier==null){\n\t\t\t\t\t\t\tgetWarehouseByName.run(()=>{\n\t\t\t\t\t\tif (getWarehouseByName.data.data.queryEquipment.length == 0){\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tstoreValue(\"getWarehouseByNameResult\",getWarehouseByName.data.data.queryEquipment[0])\n\t\t\t\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tstoreValue(\"getCarrierByCodeResult\",getCarrierByCode.data.data.getCarrier)\n\t\t\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}else{\n\t\t\t\tstoreValue(\"getSubLotByCode\",getSubLotByCode.data.data.getStockOnHand[1])\n\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t}\n\t\t})\n\t\t}\n\t}", - "jsArguments": [ - { - "name": "barcode" - } - ], - "isAsync": false - }, - "executeOnLoad": false, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "(barcode) => {\n\t\tif(!_.isEmpty(barcode)){\n\t\tgetSubLotByCode.run(()=>{\n\t\t\tif(getSubLotByCode.data.data.getStockOnHand==null){\n\t\t\t\tgetCarrierByCode.run(()=>{\n\t\t\t\t\tif (getCarrierByCode.data.data.getCarrier==null){\n\t\t\t\t\t\t\tgetWarehouseByName.run(()=>{\n\t\t\t\t\t\tif (getWarehouseByName.data.data.queryEquipment.length == 0){\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tstoreValue(\"getWarehouseByNameResult\",getWarehouseByName.data.data.queryEquipment[0])\n\t\t\t\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tstoreValue(\"getCarrierByCodeResult\",getCarrierByCode.data.data.getCarrier)\n\t\t\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}else{\n\t\t\t\tstoreValue(\"getSubLotByCode\",getSubLotByCode.data.data.getStockOnHand[1])\n\t\t\t\tinpBarcodeScan.text = undefined\n\t\t\t}\n\t\t})\n\t\t}\n\t}" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_HandleSelects.barcodeValueChange", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623963314d9aea1b062af6b2" -} \ No newline at end of file diff --git a/queries/clearValues_Put Away.json b/queries/clearValues_Put Away.json deleted file mode 100644 index 2aeae1b..0000000 --- a/queries/clearValues_Put Away.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "pluginType": "JS", - "pluginId": "js-plugin", - "unpublishedAction": { - "name": "clearValues", - "fullyQualifiedName": "HandleSelects.clearValues", - "datasource": { - "name": "UNUSED_DATASOURCE", - "pluginId": "js-plugin", - "messages": [], - "isAutoGenerated": false, - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "collectionId": "Put Away_HandleSelects", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "encodeParamsToggle": true, - "body": "() => {\n\t\tstoreValue(\"getWarehouseByNameResult\",undefined)\n\t\tstoreValue(\"getCarrierByCodeResult\",undefined)\n\t\tstoreValue(\"getSubLotByCode\",undefined)\n\t\tinpBarcodeScan.text = undefined\n\t}", - "jsArguments": [], - "isAsync": true - }, - "executeOnLoad": false, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "() => {\n\t\tstoreValue(\"getWarehouseByNameResult\",undefined)\n\t\tstoreValue(\"getCarrierByCodeResult\",undefined)\n\t\tstoreValue(\"getSubLotByCode\",undefined)\n\t\tinpBarcodeScan.text = undefined\n\t}" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_HandleSelects.clearValues", - "deleted": false, - "gitSyncId": "623b99d24d9aea1b062b1ed0_623ff2dfc99df23699318817" -} \ No newline at end of file diff --git a/queries/completeShipment_Receive Stock.json b/queries/completeShipment_Receive Stock.json index 316ea79..e59bffc 100644 --- a/queries/completeShipment_Receive Stock.json +++ b/queries/completeShipment_Receive Stock.json @@ -1,30 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "CompleteShipment", + "name": "completeShipment", + "fullyQualifiedName": "MutationCompletions.completeShipment", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Stock", + "collectionId": "Receive Stock_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\tinput:tblShipmentList.selectedRow.id\n\t\t},\n query: `\nmutation CompleteShipment($input:ID!){\n completeShipment(shipment:{id:$input}){\n id\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (CompleteShipment.data.errors != null) {\n\t\t\tshowAlert(CompleteShipment.data.errors[0].message)\n\t\t}\n\t\tGetWarehouseShipmentsInbound.run()\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -36,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\tinput:tblShipmentList.selectedRow.id\n\t\t},\n query: `\nmutation CompleteShipment($input:ID!){\n completeShipment(shipment:{id:$input}){\n id\n }\n}\n `\n})" + "() => {\n\t\tif (CompleteShipment.data.errors != null) {\n\t\t\tshowAlert(CompleteShipment.data.errors[0].message)\n\t\t}\n\t\tGetWarehouseShipmentsInbound.run()\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Stock_CompleteShipment", + "id": "Receive Stock_MutationCompletions.completeShipment", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_62048dee552a5f639587721d" + "gitSyncId": "6196c1950dfef900f247faaf_62046005552a5f6395877102" } \ No newline at end of file diff --git a/queries/confirmASNMutation_Upload ASN.json b/queries/confirmASNMutation_Upload ASN.json index 615ac7d..2ab2dd8 100644 --- a/queries/confirmASNMutation_Upload ASN.json +++ b/queries/confirmASNMutation_Upload ASN.json @@ -40,7 +40,7 @@ "policies": [], "userPermissions": [] }, - "id": "Upload ASN_ConfirmASNMutation", + "id": "Upload ASN_MutationCompletions.confirmASNMutation", "deleted": false, "gitSyncId": "6196c1950dfef900f247faaf_6204a9b9552a5f63958772db" } \ No newline at end of file diff --git a/queries/createDelivery_Receive Deliveries.json b/queries/createDelivery_Receive Deliveries.json index 66f746b..9d98bfc 100644 --- a/queries/createDelivery_Receive Deliveries.json +++ b/queries/createDelivery_Receive Deliveries.json @@ -1,25 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "CreateDelivery", + "name": "createDelivery", + "fullyQualifiedName": "MutationCompletions.createDelivery", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Deliveries", + "collectionId": "Receive Deliveries_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tinput:[\n\t\t\t\t{\n\t\t\t\t\tdateTimeCreated:moment(),\n\t\t\t\t\tlocation:{id:selectSite.selectedOptionValue},\n\t\t\t\t\ttransportCompany:selectCreateDeliveryTransport.selectedOptionValue,\n\t\t\t\t\ttransportCompanyDeliveryId:inputCreateDeliveryReference.text,\n\t\t\t\t\tpartner:{id:selectCreateDeliveryPartner.selectedOptionValue},\n\t\t\t\t\tstatus:\"CREATED\",\n\t\t\t\t\ttype:\"INBOUND\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n query: `\nmutation CreateDelivery($input:[AddDeliveryInput!]!){\n addDelivery(input:$input){\n delivery {\n id\n }\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (CreateDelivery.data.errors != null) {\n\t\t\tshowAlert(CreateDelivery.data.errors[0].message)\n\t\t} else {\n\t\t\tGetSiteDeliveries.run()\n\t\t\tcloseModal(\"modalCreateDelivery\")\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -31,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tinput:[\n\t\t\t\t{\n\t\t\t\t\tdateTimeCreated:moment(),\n\t\t\t\t\tlocation:{id:selectSite.selectedOptionValue},\n\t\t\t\t\ttransportCompany:selectCreateDeliveryTransport.selectedOptionValue,\n\t\t\t\t\ttransportCompanyDeliveryId:inputCreateDeliveryReference.text,\n\t\t\t\t\tpartner:{id:selectCreateDeliveryPartner.selectedOptionValue},\n\t\t\t\t\tstatus:\"CREATED\",\n\t\t\t\t\ttype:\"INBOUND\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n query: `\nmutation CreateDelivery($input:[AddDeliveryInput!]!){\n addDelivery(input:$input){\n delivery {\n id\n }\n }\n}\n `\n})" + "() => {\n\t\tif (CreateDelivery.data.errors != null) {\n\t\t\tshowAlert(CreateDelivery.data.errors[0].message)\n\t\t} else {\n\t\t\tGetSiteDeliveries.run()\n\t\t\tcloseModal(\"modalCreateDelivery\")\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Deliveries_CreateDelivery", + "id": "Receive Deliveries_MutationCompletions.createDelivery", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_6229794ef782567d61f166e6" + "gitSyncId": "6196c1950dfef900f247faaf_62297a2ff782567d61f166f1" } \ No newline at end of file diff --git a/queries/createShipmentExistingOrder_Receive Deliveries.json b/queries/createShipmentExistingOrder_Receive Deliveries.json index b8e30b9..fb4db1d 100644 --- a/queries/createShipmentExistingOrder_Receive Deliveries.json +++ b/queries/createShipmentExistingOrder_Receive Deliveries.json @@ -1,25 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "CreateShipmentExistingOrder", + "name": "createShipmentExistingOrder", + "fullyQualifiedName": "MutationCompletions.createShipmentExistingOrder", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Deliveries", + "collectionId": "Receive Deliveries_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n input: [\n \t{\n\t\t\tdateTimeCreatedUTC: moment(),\n customerReference: inputAddShipmentReference.text,\n warehouse: {id: selectAddShipmentWarehouse.selectedOptionValue},\n transportCompanyShipmentId: inputAddShipmentDeliveryRef.text,\n consignmentNumber: inpConsignmentNumber.text,\n type: \"INBOUND\",\n\t\t\tdelivered: {\"id\": listInboundDeliveries.selectedItem.id},\n order: {\n id: selectOrderNumber.selectedOptionValue\n }\n \t}\n ]\n},\n query: `\nmutation AddShipmentExistingOrder($input:[AddShipmentInput!]!) {\n addShipment(input:$input) {\n shipment {\n id\n }\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (CreateShipmentExistingOrder.data.errors != null) {\n\t\t\tshowAlert(CreateShipmentExistingOrder.data.errors[0].message)\n\t\t} else {\n\t\t\tGetDeliveryDetail.run()\n\t\t\tcloseModal(\"modalAddShipment\")\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -31,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n input: [\n \t{\n\t\t\tdateTimeCreatedUTC: moment(),\n customerReference: inputAddShipmentReference.text,\n warehouse: {id: selectAddShipmentWarehouse.selectedOptionValue},\n transportCompanyShipmentId: inputAddShipmentDeliveryRef.text,\n consignmentNumber: inpConsignmentNumber.text,\n type: \"INBOUND\",\n\t\t\tdelivered: {\"id\": listInboundDeliveries.selectedItem.id},\n order: {\n id: selectOrderNumber.selectedOptionValue\n }\n \t}\n ]\n},\n query: `\nmutation AddShipmentExistingOrder($input:[AddShipmentInput!]!) {\n addShipment(input:$input) {\n shipment {\n id\n }\n }\n}\n `\n})" + "() => {\n\t\tif (CreateShipmentExistingOrder.data.errors != null) {\n\t\t\tshowAlert(CreateShipmentExistingOrder.data.errors[0].message)\n\t\t} else {\n\t\t\tGetDeliveryDetail.run()\n\t\t\tcloseModal(\"modalAddShipment\")\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Deliveries_CreateShipmentExistingOrder", + "id": "Receive Deliveries_MutationCompletions.createShipmentExistingOrder", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_622981ccf782567d61f16732" + "gitSyncId": "6196c1950dfef900f247faaf_6229846ff782567d61f1674c" } \ No newline at end of file diff --git a/queries/createShipmentNewOrder_Receive Deliveries.json b/queries/createShipmentNewOrder_Receive Deliveries.json index 051f361..5901305 100644 --- a/queries/createShipmentNewOrder_Receive Deliveries.json +++ b/queries/createShipmentNewOrder_Receive Deliveries.json @@ -1,25 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "CreateShipmentNewOrder", + "name": "createShipmentNewOrder", + "fullyQualifiedName": "MutationCompletions.createShipmentNewOrder", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Deliveries", + "collectionId": "Receive Deliveries_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n input: [\n \t{\n\t\t\tdateTimeCreatedUTC: moment(),\n customerReference: inputAddShipmentReference.text,\n warehouse: {id: selectAddShipmentWarehouse.selectedOptionValue},\n transportCompanyShipmentId: inputAddShipmentDeliveryRef.text,\n consignmentNumber: inpConsignmentNumber.text,\n type: \"INBOUND\",\n\t\t\tdelivered: {\"id\": listInboundDeliveries.selectedItem.id},\n order: {\n customerOrderNumber: inpOrderNumber.text,\n orderType: \"PURCHASE_ORDER\",\n createdDateTime: moment(),\n status: \"CREATED\"\n }\n \t}\n ]\n},\n query: `\nmutation AddShipmentNewOrder($input:[AddShipmentInput!]!) {\n addShipment(input:$input) {\n shipment {\n id\n }\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (CreateShipmentNewOrder.data.errors != null) {\n\t\t\tshowAlert(CreateShipmentNewOrder.data.errors[0].message)\n\t\t} else {\n\t\t\tGetDeliveryDetail.run()\n\t\t\tcloseModal(\"modalAddShipment\")\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -31,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n input: [\n \t{\n\t\t\tdateTimeCreatedUTC: moment(),\n customerReference: inputAddShipmentReference.text,\n warehouse: {id: selectAddShipmentWarehouse.selectedOptionValue},\n transportCompanyShipmentId: inputAddShipmentDeliveryRef.text,\n consignmentNumber: inpConsignmentNumber.text,\n type: \"INBOUND\",\n\t\t\tdelivered: {\"id\": listInboundDeliveries.selectedItem.id},\n order: {\n customerOrderNumber: inpOrderNumber.text,\n orderType: \"PURCHASE_ORDER\",\n createdDateTime: moment(),\n status: \"CREATED\"\n }\n \t}\n ]\n},\n query: `\nmutation AddShipmentNewOrder($input:[AddShipmentInput!]!) {\n addShipment(input:$input) {\n shipment {\n id\n }\n }\n}\n `\n})" + "() => {\n\t\tif (CreateShipmentNewOrder.data.errors != null) {\n\t\t\tshowAlert(CreateShipmentNewOrder.data.errors[0].message)\n\t\t} else {\n\t\t\tGetDeliveryDetail.run()\n\t\t\tcloseModal(\"modalAddShipment\")\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Deliveries_CreateShipmentNewOrder", + "id": "Receive Deliveries_MutationCompletions.createShipmentNewOrder", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_622981b9f782567d61f16730" + "gitSyncId": "6196c1950dfef900f247faaf_622985c8f782567d61f1675e" } \ No newline at end of file diff --git a/queries/getCarrierByCode_Put Away.json b/queries/getCarrierByCode_Put Away.json deleted file mode 100644 index 7df9694..0000000 --- a/queries/getCarrierByCode_Put Away.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "pluginType": "API", - "pluginId": "restapi-plugin", - "unpublishedAction": { - "name": "getCarrierByCode", - "datasource": { - "pluginId": "restapi-plugin", - "messages": [], - "isAutoGenerated": false, - "id": "Users", - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "path": "/graphql", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], - "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tsublotCode:inpBarcodeScan.text\n\t\t},\n query: `\nquery( $sublotCode:String!){\n getCarrier(code:$sublotCode){\n\t\t\tid\n code\n status{code}\n storageLocation{label}\n }\n}\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] - }, - "executeOnLoad": false, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tsublotCode:inpBarcodeScan.text\n\t\t},\n query: `\nquery( $sublotCode:String!){\n getCarrier(code:$sublotCode){\n\t\t\tid\n code\n status{code}\n storageLocation{label}\n }\n}\n `\n})" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_getCarrierByCode", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623975594d9aea1b062af892" -} \ No newline at end of file diff --git a/queries/getSubLotByCarrier_Put Away.json b/queries/getSubLotByCarrier_Put Away.json deleted file mode 100644 index f051a07..0000000 --- a/queries/getSubLotByCarrier_Put Away.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "pluginType": "API", - "pluginId": "restapi-plugin", - "unpublishedAction": { - "name": "getSubLotByCarrier", - "datasource": { - "pluginId": "restapi-plugin", - "messages": [], - "isAutoGenerated": false, - "id": "Users", - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "path": "/graphql", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], - "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tcarrierId:tblCarriers.selectedRow.id\n\t\t},\n query: `\nquery( $carrierId:ID!){\n getStockOnHand(filter:{carrier:{id:$carrierId},groupBy:{subLot:true, material:true, carrier:true, storageLocation:true}}){\n materialSubLot{code}\n material{code}\n carrier{code}\n storageLocation{name}\n quantity\n }\n}\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] - }, - "executeOnLoad": true, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tcarrierId:tblCarriers.selectedRow.id\n\t\t},\n query: `\nquery( $carrierId:ID!){\n getStockOnHand(filter:{carrier:{id:$carrierId},groupBy:{subLot:true, material:true, carrier:true, storageLocation:true}}){\n materialSubLot{code}\n material{code}\n carrier{code}\n storageLocation{name}\n quantity\n }\n}\n `\n})" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_getSubLotByCarrier", - "deleted": false, - "gitSyncId": "623b99d24d9aea1b062b1ed0_623fff38c99df2369931882f" -} \ No newline at end of file diff --git a/queries/getSubLotByCode_Put Away.json b/queries/getSubLotByCode_Put Away.json deleted file mode 100644 index 62571e3..0000000 --- a/queries/getSubLotByCode_Put Away.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "pluginType": "API", - "pluginId": "restapi-plugin", - "unpublishedAction": { - "name": "getSubLotByCode", - "datasource": { - "pluginId": "restapi-plugin", - "messages": [], - "isAutoGenerated": false, - "id": "Users", - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "path": "/graphql", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], - "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tsublotCode:inpBarcodeScan.text\n\t\t},\n query: `\nquery( $sublotCode:String!){\n getStockOnHand(filter:{materialSubLot:{code:$sublotCode},groupBy:{subLot:true, material:true, carrier:true, storageLocation:true}}){\n materialSubLot{code}\n material{code}\n carrier{code}\n storageLocation{name}\n quantity\n }\n}\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] - }, - "executeOnLoad": false, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tsublotCode:inpBarcodeScan.text\n\t\t},\n query: `\nquery( $sublotCode:String!){\n getStockOnHand(filter:{materialSubLot:{code:$sublotCode},groupBy:{subLot:true, material:true, carrier:true, storageLocation:true}}){\n materialSubLot{code}\n material{code}\n carrier{code}\n storageLocation{name}\n quantity\n }\n}\n `\n})" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_getSubLotByCode", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_62395bab4d9aea1b062af5cb" -} \ No newline at end of file diff --git a/queries/loadShipments_Review Inbound Shipments.json b/queries/loadShipments_Review Inbound Shipments.json index 2c309e1..5c1df36 100644 --- a/queries/loadShipments_Review Inbound Shipments.json +++ b/queries/loadShipments_Review Inbound Shipments.json @@ -1,51 +1,46 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "LoadShipments", + "name": "loadShipments", + "fullyQualifiedName": "MutationCompletion.loadShipments", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Review Inbound Shipments", + "collectionId": "Review Inbound Shipments_MutationCompletion", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tinput:appsmith.store.ASNFormatted,\n\t\t},\n query: `\nmutation Receive($input:[ReceiveInboundShipmentInput!]!) {\n receiveInboundShipments(input:$input){\n id\n }\n}\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] + "body": "() => {\n\t\tif (LoadShipments.data.errors != null) {\n\t\t\tshowAlert(LoadShipments.data.errors[0].message)\n\t\t} else {\n\t\t\tResetTableData.emptyTable()\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, - "dynamicBindingPathList": [], + "dynamicBindingPathList": [ + { + "key": "body" + } + ], "isValid": true, "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tinput:appsmith.store.ASNFormatted,\n\t\t},\n query: `\nmutation Receive($input:[ReceiveInboundShipmentInput!]!) {\n receiveInboundShipments(input:$input){\n id\n }\n}\n `\n})" + "() => {\n\t\tif (LoadShipments.data.errors != null) {\n\t\t\tshowAlert(LoadShipments.data.errors[0].message)\n\t\t} else {\n\t\t\tResetTableData.emptyTable()\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Review Inbound Shipments_LoadShipments", + "id": "Review Inbound Shipments_MutationCompletion.loadShipments", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_61c43436e89bc475f3ccfd70" + "gitSyncId": "6196c1950dfef900f247faaf_6204ae38552a5f6395877330" } \ No newline at end of file diff --git a/queries/queryCarriers_Put Away.json b/queries/queryCarriers_Put Away.json deleted file mode 100644 index d765189..0000000 --- a/queries/queryCarriers_Put Away.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "pluginType": "API", - "pluginId": "restapi-plugin", - "unpublishedAction": { - "name": "queryCarriers", - "datasource": { - "pluginId": "restapi-plugin", - "messages": [], - "isAutoGenerated": false, - "id": "Users", - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "path": "/graphql", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], - "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\twarehouseId:selectWarehouse.selectedOptionValue\n\t\t},\n query: `\nquery ($warehouseId:ID!){\n queryCarrier @cascade {\n\t id\n code\n status{code}\n storageLocation{\n label\n name\n id\n warehouse:parent(filter:{id:[$warehouseId]}){\n label\n name\n id\n }\n }\n }\n}\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] - }, - "executeOnLoad": true, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\twarehouseId:selectWarehouse.selectedOptionValue\n\t\t},\n query: `\nquery ($warehouseId:ID!){\n queryCarrier @cascade {\n\t id\n code\n status{code}\n storageLocation{\n label\n name\n id\n warehouse:parent(filter:{id:[$warehouseId]}){\n label\n name\n id\n }\n }\n }\n}\n `\n})" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_queryCarriers", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623956b04d9aea1b062af5ad" -} \ No newline at end of file diff --git a/queries/receiveDelivery_Receive Deliveries.json b/queries/receiveDelivery_Receive Deliveries.json index 1b75471..dbfbae0 100644 --- a/queries/receiveDelivery_Receive Deliveries.json +++ b/queries/receiveDelivery_Receive Deliveries.json @@ -1,35 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "ReceiveDelivery", + "name": "receiveDelivery", + "fullyQualifiedName": "MutationCompletions.receiveDelivery", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Deliveries", + "collectionId": "Receive Deliveries_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tinput: {\n\t\t\t\tfilter: {id: listInboundDeliveries.selectedItem.id},\n\t\t\t\tset: {\n\t\t\t\t\tstatus:\"RECEIVED\",dateTimeReceived:moment()\n\t\t\t\t}\n\t\t\t}\n\t\t},\n query: `\nmutation UpdateDelivery($input:UpdateDeliveryInput!) {\n updateDelivery(input:$input){\n numUids\n }\n}\n `\n})\n}}", - "httpMethod": "POST", - "pluginSpecifiedTemplates": [ - { - "value": true - } - ] + "body": "() => {\n\t\tif (ReceiveDelivery.data.errors != null) {\n\t\t\tshowAlert(ReceiveDelivery.data.errors[0].message)\n\t\t} else {\n\t\t\tGetSiteDeliveries.run()\n\t\t\tcloseModal(\"modalConfirmReceiveDelivery\")\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -41,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tinput: {\n\t\t\t\tfilter: {id: listInboundDeliveries.selectedItem.id},\n\t\t\t\tset: {\n\t\t\t\t\tstatus:\"RECEIVED\",dateTimeReceived:moment()\n\t\t\t\t}\n\t\t\t}\n\t\t},\n query: `\nmutation UpdateDelivery($input:UpdateDeliveryInput!) {\n updateDelivery(input:$input){\n numUids\n }\n}\n `\n})" + "() => {\n\t\tif (ReceiveDelivery.data.errors != null) {\n\t\t\tshowAlert(ReceiveDelivery.data.errors[0].message)\n\t\t} else {\n\t\t\tGetSiteDeliveries.run()\n\t\t\tcloseModal(\"modalConfirmReceiveDelivery\")\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Deliveries_ReceiveDelivery", + "id": "Receive Deliveries_MutationCompletions.receiveDelivery", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_62391a174d9aea1b062af314" + "gitSyncId": "6196c1950dfef900f247faaf_62391c504d9aea1b062af316" } \ No newline at end of file diff --git a/queries/receiveSerialised_Receive Stock.json b/queries/receiveSerialised_Receive Stock.json index d3c4ae2..f84bbd2 100644 --- a/queries/receiveSerialised_Receive Stock.json +++ b/queries/receiveSerialised_Receive Stock.json @@ -1,31 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "ReceiveSerialised", + "name": "receiveSerialised", + "fullyQualifiedName": "MutationCompletions.receiveSerialised", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Stock", + "collectionId": "Receive Stock_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "queryParameters": [], - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\t\n input: [\n {\n material: {code: GetShipmentItemDetail.data.data.getShipmentItem.material.code},\n\t\t\tmaterialSubLot: {code: inpBarcode.text},\n materialUse: \"Received\",\n owner: {id: GetCustomers.data.data.queryPartner[0].value},\n\t\t\tuser: {id: GetUserSites.data.data.getUser.id},\n quantity: 1,\n from: {\n shipment: {id: tblShipmentList.selectedRow.id},\n shipmentItem: {id: selectShipmentItem.selectedOptionValue}\n },\n to: {\n carrier: {id: serialSelectCarrier.selectedOptionValue},\n }\n }\n ]\n\t\t},\n query: `\nmutation ReceiveSerialised($input:[AddInventoryTransactionInput!]!) {\n\taddInventoryTransactions(input:$input){\n material{code},\n storageLocation{name},\n quantity\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (ReceiveSerialised.data.errors != null) {\n\t\t\tshowAlert(ReceiveSerialised.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentTransactions.run()\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -37,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\t\n input: [\n {\n material: {code: GetShipmentItemDetail.data.data.getShipmentItem.material.code},\n\t\t\tmaterialSubLot: {code: inpBarcode.text},\n materialUse: \"Received\",\n owner: {id: GetCustomers.data.data.queryPartner[0].value},\n\t\t\tuser: {id: GetUserSites.data.data.getUser.id},\n quantity: 1,\n from: {\n shipment: {id: tblShipmentList.selectedRow.id},\n shipmentItem: {id: selectShipmentItem.selectedOptionValue}\n },\n to: {\n carrier: {id: serialSelectCarrier.selectedOptionValue},\n }\n }\n ]\n\t\t},\n query: `\nmutation ReceiveSerialised($input:[AddInventoryTransactionInput!]!) {\n\taddInventoryTransactions(input:$input){\n material{code},\n storageLocation{name},\n quantity\n }\n}\n `\n})" + "() => {\n\t\tif (ReceiveSerialised.data.errors != null) {\n\t\t\tshowAlert(ReceiveSerialised.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentTransactions.run()\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Stock_ReceiveSerialised", + "id": "Receive Stock_MutationCompletions.receiveSerialised", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_61fb140a2cd3d95ca414a9cf" + "gitSyncId": "6196c1950dfef900f247faaf_62045390552a5f63958770d5" } \ No newline at end of file diff --git a/queries/receiveTrackedByCarrier_Receive Stock.json b/queries/receiveTrackedByCarrier_Receive Stock.json index 4f47058..d4e4668 100644 --- a/queries/receiveTrackedByCarrier_Receive Stock.json +++ b/queries/receiveTrackedByCarrier_Receive Stock.json @@ -1,30 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "ReceiveTrackedByCarrier", + "name": "receiveTrackedByCarrier", + "fullyQualifiedName": "MutationCompletions.receiveTrackedByCarrier", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Stock", + "collectionId": "Receive Stock_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\t\n input: [\n {\n material: {code: GetShipmentItemDetail.data.data.getShipmentItem.material.code},\n materialUse: \"Received\",\n owner: {id: GetCustomers.data.data.queryPartner[0].value},\n\t\t\tuser: {id: GetUserSites.data.data.getUser.id},\n quantity: _.toInteger(inputCarrierQuantity.text),\n from: {\n shipment: {id: tblShipmentList.selectedRow.id},\n shipmentItem: {id: selectShipmentItem.selectedOptionValue}\n },\n to: {\n carrier: {id: carrierSelectCarrier.selectedOptionValue},\n }\n }\n ]\n\t\t},\n query: `\nmutation ReceiveTrackedByCarrier($input:[AddInventoryTransactionInput!]!) {\n\taddInventoryTransactions(input:$input){\n material{code},\n storageLocation{name},\n quantity\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (ReceiveTrackedByCarrier.data.errors != null) {\n\t\t\tshowAlert(ReceiveTrackedByCarrier.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentTransactions.run()\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -36,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\t\n input: [\n {\n material: {code: GetShipmentItemDetail.data.data.getShipmentItem.material.code},\n materialUse: \"Received\",\n owner: {id: GetCustomers.data.data.queryPartner[0].value},\n\t\t\tuser: {id: GetUserSites.data.data.getUser.id},\n quantity: _.toInteger(inputCarrierQuantity.text),\n from: {\n shipment: {id: tblShipmentList.selectedRow.id},\n shipmentItem: {id: selectShipmentItem.selectedOptionValue}\n },\n to: {\n carrier: {id: carrierSelectCarrier.selectedOptionValue},\n }\n }\n ]\n\t\t},\n query: `\nmutation ReceiveTrackedByCarrier($input:[AddInventoryTransactionInput!]!) {\n\taddInventoryTransactions(input:$input){\n material{code},\n storageLocation{name},\n quantity\n }\n}\n `\n})" + "() => {\n\t\tif (ReceiveTrackedByCarrier.data.errors != null) {\n\t\t\tshowAlert(ReceiveTrackedByCarrier.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentTransactions.run()\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Stock_ReceiveTrackedByCarrier", + "id": "Receive Stock_MutationCompletions.receiveTrackedByCarrier", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_61fb14212cd3d95ca414a9d1" + "gitSyncId": "6196c1950dfef900f247faaf_6209a9f96b4b1e154a3c0114" } \ No newline at end of file diff --git a/queries/receiveUntracked_Receive Stock.json b/queries/receiveUntracked_Receive Stock.json index 9721948..200a6a9 100644 --- a/queries/receiveUntracked_Receive Stock.json +++ b/queries/receiveUntracked_Receive Stock.json @@ -1,30 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "ReceiveUntracked", + "name": "receiveUntracked", + "fullyQualifiedName": "MutationCompletions.receiveUntracked", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Stock", + "collectionId": "Receive Stock_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\t\n input: [\n {\n material: {code: GetShipmentItemDetail.data.data.getShipmentItem.material.code},\n materialUse: \"Received\",\n owner: {id: GetCustomers.data.data.queryPartner[0].value},\n\t\t\tuser: {id: GetUserSites.data.data.getUser.id},\n quantity: _.toInteger(inputBulkQuantity.text),\n from: {\n shipment: {id: tblShipmentList.selectedRow.id},\n shipmentItem: {id: selectShipmentItem.selectedOptionValue}\n },\n to: {\n\t\t\t\tstatus: {code: bulkSelectStatus.selectedOptionLabel},\n\t\t\t\tstorageLocation: {name: bulkSelectBin.selectedOptionLabel}\n }\n }\n ]\n\t\t},\n query: `\nmutation ReceiveUntracked($input:[AddInventoryTransactionInput!]!) {\n\taddInventoryTransactions(input:$input){\n material{code},\n storageLocation{name},\n quantity\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (ReceiveUntracked.data.errors != null) {\n\t\t\tshowAlert(ReceiveUntracked.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentTransactions.run()\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -36,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\t\n input: [\n {\n material: {code: GetShipmentItemDetail.data.data.getShipmentItem.material.code},\n materialUse: \"Received\",\n owner: {id: GetCustomers.data.data.queryPartner[0].value},\n\t\t\tuser: {id: GetUserSites.data.data.getUser.id},\n quantity: _.toInteger(inputBulkQuantity.text),\n from: {\n shipment: {id: tblShipmentList.selectedRow.id},\n shipmentItem: {id: selectShipmentItem.selectedOptionValue}\n },\n to: {\n\t\t\t\tstatus: {code: bulkSelectStatus.selectedOptionLabel},\n\t\t\t\tstorageLocation: {name: bulkSelectBin.selectedOptionLabel}\n }\n }\n ]\n\t\t},\n query: `\nmutation ReceiveUntracked($input:[AddInventoryTransactionInput!]!) {\n\taddInventoryTransactions(input:$input){\n material{code},\n storageLocation{name},\n quantity\n }\n}\n `\n})" + "() => {\n\t\tif (ReceiveUntracked.data.errors != null) {\n\t\t\tshowAlert(ReceiveUntracked.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentTransactions.run()\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Stock_ReceiveUntracked", + "id": "Receive Stock_MutationCompletions.receiveUntracked", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_61fb14322cd3d95ca414a9d4" + "gitSyncId": "6196c1950dfef900f247faaf_6209aa0f6b4b1e154a3c0116" } \ No newline at end of file diff --git a/queries/siteChange_Put Away.json b/queries/siteChange_Put Away.json deleted file mode 100644 index 78737c1..0000000 --- a/queries/siteChange_Put Away.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "pluginType": "JS", - "pluginId": "js-plugin", - "unpublishedAction": { - "name": "siteChange", - "fullyQualifiedName": "HandleSelects.siteChange", - "datasource": { - "name": "UNUSED_DATASOURCE", - "pluginId": "js-plugin", - "messages": [], - "isAutoGenerated": false, - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "collectionId": "Put Away_HandleSelects", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "encodeParamsToggle": true, - "body": "(siteId) => {\n\t\tif(!_.isEmpty(siteId)){\n\t\t\tGetSiteWarehouses.run()\n\t\t}\n\t}", - "jsArguments": [ - { - "name": "siteId" - } - ], - "isAsync": false - }, - "executeOnLoad": false, - "clientSideExecution": true, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "(siteId) => {\n\t\tif(!_.isEmpty(siteId)){\n\t\t\tGetSiteWarehouses.run()\n\t\t}\n\t}" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_HandleSelects.siteChange", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623961554d9aea1b062af69c" -} \ No newline at end of file diff --git a/queries/undoTransaction_Receive Stock.json b/queries/undoTransaction_Receive Stock.json index 58141cc..51f699f 100644 --- a/queries/undoTransaction_Receive Stock.json +++ b/queries/undoTransaction_Receive Stock.json @@ -1,30 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "UndoTransaction", + "name": "undoTransaction", + "fullyQualifiedName": "MutationCompletions.undoTransaction", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Stock", + "collectionId": "Receive Stock_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [ - { - "key": "content-type", - "value": "application/json" - } - ], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tid:tblStockOnHand.selectedRow.TransactionId\n\t\t},\n query: `\nmutation UndoTransaction($id:String!){\n reverseInventoryTransaction(transactionId:$id){\n transactionId\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (UndoTransaction.data.errors != null) {\n\t\t\tshowAlert(UndoTransaction.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentTransactions.run()\n\t\t}\n\t\tcloseModal(\"modalItemLocation\")\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -36,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tid:tblStockOnHand.selectedRow.TransactionId\n\t\t},\n query: `\nmutation UndoTransaction($id:String!){\n reverseInventoryTransaction(transactionId:$id){\n transactionId\n }\n}\n `\n})" + "() => {\n\t\tif (UndoTransaction.data.errors != null) {\n\t\t\tshowAlert(UndoTransaction.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentTransactions.run()\n\t\t}\n\t\tcloseModal(\"modalItemLocation\")\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Stock_UndoTransaction", + "id": "Receive Stock_MutationCompletions.undoTransaction", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_6201d5d72cd3d95ca4198f69" + "gitSyncId": "6196c1950dfef900f247faaf_62045fc2552a5f6395877100" } \ No newline at end of file diff --git a/queries/updateShipmentItem_Receive Deliveries.json b/queries/updateShipmentItem_Receive Deliveries.json index 0df186e..08b6169 100644 --- a/queries/updateShipmentItem_Receive Deliveries.json +++ b/queries/updateShipmentItem_Receive Deliveries.json @@ -1,25 +1,27 @@ { - "pluginType": "API", - "pluginId": "restapi-plugin", + "pluginType": "JS", + "pluginId": "js-plugin", "unpublishedAction": { - "name": "UpdateShipmentItem", + "name": "updateShipmentItem", + "fullyQualifiedName": "MutationCompletions.updateShipmentItem", "datasource": { - "pluginId": "restapi-plugin", + "name": "UNUSED_DATASOURCE", + "pluginId": "js-plugin", "messages": [], "isAutoGenerated": false, - "id": "Users", "deleted": false, "policies": [], "userPermissions": [] }, "pageId": "Receive Deliveries", + "collectionId": "Receive Deliveries_MutationCompletions", "actionConfiguration": { "timeoutInMillisecond": 10000, "paginationType": "NONE", - "headers": [], "encodeParamsToggle": true, - "body": "{{\nJSON.stringify({\n variables: {\n\t\t\tinput: {\n\t\t\t\tfilter: {id: tblShipmentItems.selectedRow.id},\n\t\t\t\tset: {\n\t\t\t\t\tmaterial:{id: selectShipmentItemMaterial.selectedOptionValue},\n\t\t\t\t\tbin:{id: selectShipmentItemBin.selectedOptionValue},\n\t\t\t\t\tplannedQuantity: parseInt(inputShipmentItemQuantity.text)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n query: `\nmutation UpdateShipmentItem($input:UpdateShipmentItemInput!){\n updateShipmentItem(input:$input){\n shipmentItem{\n id\n }\n }\n}\n `\n})\n}}", - "httpMethod": "POST" + "body": "() => {\n\t\tif (UpdateShipmentItem.data.errors != null) {\n\t\t\tshowAlert(UpdateShipmentItem.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentDetail.run()\n\t\t\tcloseModal(\"modalEditShipmentItem\")\n\t\t\tshowModal(\"modalEditShipment\")\n\t\t}\n\t}", + "jsArguments": [], + "isAsync": true }, "executeOnLoad": false, "dynamicBindingPathList": [ @@ -31,14 +33,14 @@ "invalids": [], "messages": [], "jsonPathKeys": [ - "JSON.stringify({\n variables: {\n\t\t\tinput: {\n\t\t\t\tfilter: {id: tblShipmentItems.selectedRow.id},\n\t\t\t\tset: {\n\t\t\t\t\tmaterial:{id: selectShipmentItemMaterial.selectedOptionValue},\n\t\t\t\t\tbin:{id: selectShipmentItemBin.selectedOptionValue},\n\t\t\t\t\tplannedQuantity: parseInt(inputShipmentItemQuantity.text)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n query: `\nmutation UpdateShipmentItem($input:UpdateShipmentItemInput!){\n updateShipmentItem(input:$input){\n shipmentItem{\n id\n }\n }\n}\n `\n})" + "() => {\n\t\tif (UpdateShipmentItem.data.errors != null) {\n\t\t\tshowAlert(UpdateShipmentItem.data.errors[0].message)\n\t\t} else {\n\t\t\tGetShipmentDetail.run()\n\t\t\tcloseModal(\"modalEditShipmentItem\")\n\t\t\tshowModal(\"modalEditShipment\")\n\t\t}\n\t}" ], "userSetOnLoad": false, "confirmBeforeExecute": false, "policies": [], "userPermissions": [] }, - "id": "Receive Deliveries_UpdateShipmentItem", + "id": "Receive Deliveries_MutationCompletions.updateShipmentItem", "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_62298736f782567d61f1676c" + "gitSyncId": "6196c1950dfef900f247faaf_622999c9f782567d61f16ae5" } \ No newline at end of file diff --git a/queries/warehouseChange_Put Away.json b/queries/warehouseChange_Put Away.json deleted file mode 100644 index 78720ee..0000000 --- a/queries/warehouseChange_Put Away.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "pluginType": "JS", - "pluginId": "js-plugin", - "unpublishedAction": { - "name": "warehouseChange", - "fullyQualifiedName": "HandleSelects.warehouseChange", - "datasource": { - "name": "UNUSED_DATASOURCE", - "pluginId": "js-plugin", - "messages": [], - "isAutoGenerated": false, - "deleted": false, - "policies": [], - "userPermissions": [] - }, - "pageId": "Put Away", - "collectionId": "Put Away_HandleSelects", - "actionConfiguration": { - "timeoutInMillisecond": 10000, - "paginationType": "NONE", - "encodeParamsToggle": true, - "body": "(warehouseId) => {\n\t\tif(!_.isEmpty(warehouseId)){\n\t\t\tqueryCarriers.run()\n\t\t}\n\t}", - "jsArguments": [ - { - "name": "warehouseId" - } - ], - "isAsync": false - }, - "executeOnLoad": false, - "clientSideExecution": true, - "dynamicBindingPathList": [ - { - "key": "body" - } - ], - "isValid": true, - "invalids": [], - "messages": [], - "jsonPathKeys": [ - "(warehouseId) => {\n\t\tif(!_.isEmpty(warehouseId)){\n\t\t\tqueryCarriers.run()\n\t\t}\n\t}" - ], - "userSetOnLoad": false, - "confirmBeforeExecute": false, - "policies": [], - "userPermissions": [] - }, - "id": "Put Away_HandleSelects.warehouseChange", - "deleted": false, - "gitSyncId": "6196c1950dfef900f247faaf_623961554d9aea1b062af695" -} \ No newline at end of file