diff --git a/app/utils/sendStatusOtherSystem.js b/app/utils/sendStatusOtherSystem.js index 0965ade..de42cff 100644 --- a/app/utils/sendStatusOtherSystem.js +++ b/app/utils/sendStatusOtherSystem.js @@ -32,714 +32,714 @@ const checkMultipleRequest = async () => { let allResponse = ""; const requests = [ //Ebay Systems - // { - // url: "https://disti.danielvu.com/api/eBayNewItemLog", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Accept: "application/json", - // loginid: null, - // Code: code, - // AccessToken: accessToken, - // }, - // data: {}, - // name: "New item", - // group: "Ebay Systems", - // }, - // { - // url: "https://disti.danielvu.com/api/eBayChatLog", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Accept: "application/json", - // loginid: null, - // Code: code, - // AccessToken: accessToken, - // }, - // data: {}, - // name: "Ebay message", - // group: "Ebay Systems", - // }, - // { - // url: "https://disti.danielvu.com/api/sendSellerOrderToERP", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Accept: "application/json", - // loginid: null, - // Code: code, - // AccessToken: accessToken, - // }, - // data: {}, - // name: "Erp Sync Order Ebay", - // group: "Ebay Systems", - // }, - // { - // url: "https://disti.danielvu.com/api/sendBuyerOrderToERP", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Accept: "application/json", - // loginid: null, - // Code: code, - // AccessToken: accessToken, - // }, - // data: {}, - // name: "Erp Sync PO Ebay", - // group: "Ebay Systems", - // }, - // //ERP Systems - // { - // url: "https://int.ipsupply.com.au/api/transferGetData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/test-log-serial-number/sync-data", - // filter: {}, - // }, - // name: "Log SN to ERP", - // group: "ERP Systems", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferGetData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/stock-model-serial/check-sn-cisco", - // filter: {}, - // }, - // name: "SN Cisco to ERP", - // group: "ERP Systems", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-shipping-rates", - // data: { - // courierName: "Fedex", - // packageInfo: { - // from: { - // streetLines: ["8/4A Bachell Ave"], - // city: "Lidcombe", - // stateOrProvinceCode: "", - // postalCode: "2141", - // countryCode: "AU", - // }, - // to: { - // streetLines: ["600 Terminal Dr"], - // city: "Louisville", - // stateOrProvinceCode: "KY", - // postalCode: "40209", - // countryCode: "US", - // }, - // requestedPackageLineItems: [ - // { - // weight: { - // value: 10, - // units: "KG", - // }, - // dimensions: { - // length: 2, - // width: 3, - // height: 4, - // units: "CM", - // }, - // groupPackageCount: 1, - // }, - // ], - // commodities: [ - // { - // description: "G6", - // quantity: 2, - // quantityUnits: "PCS", - // unitPrice: { - // amount: 10000, - // currency: "USD", - // }, - // customsValue: { - // amount: 10000, - // currency: "USD", - // }, - // }, - // ], - // inforCreateFedex: { - // pickupType: "CONTACT_FEDEX_TO_SCHEDULE", - // }, - // }, - // }, - // }, - // name: "Shipping rate Fedex", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-shipping-rates", - // data: { - // courierName: "DHL", - // packageInfo: { - // from: { - // streetLines: ["8/4A Bachell Ave"], - // city: "Lidcombe", - // stateOrProvinceCode: "", - // postalCode: "2141", - // countryCode: "AU", - // }, - // to: { - // streetLines: ["600 Terminal Dr"], - // city: "Louisville", - // stateOrProvinceCode: "KY", - // postalCode: "40209", - // countryCode: "US", - // }, - // requestedPackageLineItems: [ - // { - // weight: { - // value: 10, - // units: "KG", - // }, - // dimensions: { - // length: 2, - // width: 3, - // height: 4, - // units: "CM", - // }, - // groupPackageCount: 1, - // }, - // ], - // commodities: [ - // { - // description: "G6", - // quantity: 2, - // quantityUnits: "PCS", - // unitPrice: { - // amount: 10000, - // currency: "USD", - // }, - // customsValue: { - // amount: 10000, - // currency: "USD", - // }, - // }, - // ], - // inforCreateFedex: { - // pickupType: "CONTACT_FEDEX_TO_SCHEDULE", - // }, - // }, - // }, - // }, - // name: "Shipping rate DHL", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-shipping-rates", - // data: { - // courierName: "Transdirect", - // packageInfo: { - // from: { - // streetLines: ["8/4A Bachell Ave"], - // city: "Lidcombe", - // stateOrProvinceCode: "", - // postalCode: "2141", - // countryCode: "AU", - // }, - // to: { - // streetLines: ["600 Terminal Dr"], - // city: "Louisville", - // stateOrProvinceCode: "KY", - // postalCode: "40209", - // countryCode: "US", - // }, - // requestedPackageLineItems: [ - // { - // weight: { - // value: 10, - // units: "KG", - // }, - // dimensions: { - // length: 2, - // width: 3, - // height: 4, - // units: "CM", - // }, - // groupPackageCount: 1, - // }, - // ], - // commodities: [ - // { - // description: "G6", - // quantity: 2, - // quantityUnits: "PCS", - // unitPrice: { - // amount: 10000, - // currency: "USD", - // }, - // customsValue: { - // amount: 10000, - // currency: "USD", - // }, - // }, - // ], - // inforCreateFedex: { - // pickupType: "CONTACT_FEDEX_TO_SCHEDULE", - // }, - // }, - // }, - // }, - // name: "Shipping rate Transdirect", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-shipping-rates", - // data: { - // courierName: "CouriersPlease", - // packageInfo: { - // from: { - // streetLines: ["8/4A Bachell Ave"], - // city: "Lidcombe", - // stateOrProvinceCode: "", - // postalCode: "2141", - // countryCode: "AU", - // }, - // to: { - // streetLines: ["600 Terminal Dr"], - // city: "Louisville", - // stateOrProvinceCode: "KY", - // postalCode: "40209", - // countryCode: "US", - // }, - // requestedPackageLineItems: [ - // { - // weight: { - // value: 10, - // units: "KG", - // }, - // dimensions: { - // length: 2, - // width: 3, - // height: 4, - // units: "CM", - // }, - // groupPackageCount: 1, - // }, - // ], - // commodities: [ - // { - // description: "G6", - // quantity: 2, - // quantityUnits: "PCS", - // unitPrice: { - // amount: 10000, - // currency: "USD", - // }, - // customsValue: { - // amount: 10000, - // currency: "USD", - // }, - // }, - // ], - // inforCreateFedex: { - // pickupType: "CONTACT_FEDEX_TO_SCHEDULE", - // }, - // }, - // }, - // }, - // name: "Shipping rate Courier Please", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-shipping-rates", - // data: { - // courierName: "Auspost", - // packageInfo: { - // from: { - // streetLines: ["8/4A Bachell Ave"], - // city: "Lidcombe", - // stateOrProvinceCode: "", - // postalCode: "2141", - // countryCode: "AU", - // }, - // to: { - // streetLines: ["600 Terminal Dr"], - // city: "Louisville", - // stateOrProvinceCode: "KY", - // postalCode: "40209", - // countryCode: "US", - // }, - // requestedPackageLineItems: [ - // { - // weight: { - // value: 10, - // units: "KG", - // }, - // dimensions: { - // length: 2, - // width: 3, - // height: 4, - // units: "CM", - // }, - // groupPackageCount: 1, - // }, - // ], - // commodities: [ - // { - // description: "G6", - // quantity: 2, - // quantityUnits: "PCS", - // unitPrice: { - // amount: 10000, - // currency: "USD", - // }, - // customsValue: { - // amount: 10000, - // currency: "USD", - // }, - // }, - // ], - // inforCreateFedex: { - // pickupType: "CONTACT_FEDEX_TO_SCHEDULE", - // }, - // }, - // }, - // }, - // name: "Shipping rate Auspost", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-shipping-rates", - // data: { - // courierName: "FRF", - // packageInfo: { - // from: { - // streetLines: ["8/4A Bachell Ave"], - // city: "Lidcombe", - // stateOrProvinceCode: "", - // postalCode: "2141", - // countryCode: "AU", - // }, - // to: { - // streetLines: ["112 Munro St"], - // city: "South Melbourne", - // postalCode: "3205", - // countryCode: "AU", - // }, - // requestedPackageLineItems: [ - // { - // weight: { - // value: 10, - // units: "KG", - // }, - // dimensions: { - // length: 2, - // width: 3, - // height: 4, - // units: "CM", - // }, - // groupPackageCount: 1, - // }, - // ], - // commodities: [ - // { - // description: "G6", - // quantity: 2, - // quantityUnits: "PCS", - // unitPrice: { - // amount: 10000, - // currency: "USD", - // }, - // customsValue: { - // amount: 10000, - // currency: "USD", - // }, - // }, - // ], - // inforCreateFedex: { - // pickupType: "CONTACT_FEDEX_TO_SCHEDULE", - // }, - // }, - // }, - // }, - // name: "Shipping rate FRF", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-shipping-rates", - // data: { - // courierName: "Sendle", - // packageInfo: { - // from: { - // streetLines: ["8/4A Bachell Ave"], - // city: "Lidcombe", - // stateOrProvinceCode: "", - // postalCode: "2141", - // countryCode: "AU", - // }, - // to: { - // streetLines: ["112 Munro St"], - // city: "South Melbourne", - // postalCode: "3205", - // countryCode: "AU", - // }, - // requestedPackageLineItems: [ - // { - // weight: { - // value: 10, - // units: "KG", - // }, - // dimensions: { - // length: 2, - // width: 3, - // height: 4, - // units: "CM", - // }, - // groupPackageCount: 1, - // }, - // ], - // commodities: [ - // { - // description: "G6", - // quantity: 2, - // quantityUnits: "PCS", - // unitPrice: { - // amount: 10000, - // currency: "USD", - // }, - // customsValue: { - // amount: 10000, - // currency: "USD", - // }, - // }, - // ], - // inforCreateFedex: { - // pickupType: "CONTACT_FEDEX_TO_SCHEDULE", - // }, - // }, - // }, - // }, - // name: "Shipping rate Sendle", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "782568904960", - // type: "Fedex", - // }, - // }, - // name: "Tracking Fedex", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "210865775", - // type: "TNT", - // }, - // }, - // name: "Tracking TNT", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "1Z94VTP30308384260", - // type: "UPS", - // }, - // }, - // name: "Tracking UPS", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "33FJV771376901000930306", - // type: "Auspost", - // }, - // }, - // name: "Tracking Auspost", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "9400111206203073428144", - // type: "USPS", - // }, - // }, - // name: "Tracking USPS", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "CVAZ00633255", - // type: "StarTrack", - // }, - // }, - // name: "Tracking StarTrack", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "S92C5DS", - // type: "Sendle", - // }, - // }, - // name: "Tracking Sendle", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "2334909695 ", - // type: "DHL", - // }, - // }, - // name: "Tracking DHL", - // group: "Shipping System", - // }, - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/logistics/check-tracking", - // data: { - // trackingNumber: "60508912001", - // type: "CouriersPlease", - // }, - // }, - // name: "Tracking CouriersPlease", - // group: "Shipping System", - // }, - // //Other system - // { - // url: "https://int.ipsupply.com.au/api/transferPostData", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Authorization: "Bearer " + tokenInt, - // }, - // data: { - // urlAPI: "/api/stock-model-serial/check-sn-list-cisco", - // data: { - // serialNumbers: ["FGL1716W349"], - // }, - // }, - // name: "Check SN Cisco", - // group: "Other Systems", - // }, + { + url: "https://disti.danielvu.com/api/eBayNewItemLog", + method: "POST", + headers: { + "Content-Type": "application/json", + Accept: "application/json", + loginid: null, + Code: code, + AccessToken: accessToken, + }, + data: {}, + name: "New item", + group: "Ebay Systems", + }, + { + url: "https://disti.danielvu.com/api/eBayChatLog", + method: "POST", + headers: { + "Content-Type": "application/json", + Accept: "application/json", + loginid: null, + Code: code, + AccessToken: accessToken, + }, + data: {}, + name: "Ebay message", + group: "Ebay Systems", + }, + { + url: "https://disti.danielvu.com/api/sendSellerOrderToERP", + method: "POST", + headers: { + "Content-Type": "application/json", + Accept: "application/json", + loginid: null, + Code: code, + AccessToken: accessToken, + }, + data: {}, + name: "Erp Sync Order Ebay", + group: "Ebay Systems", + }, + { + url: "https://disti.danielvu.com/api/sendBuyerOrderToERP", + method: "POST", + headers: { + "Content-Type": "application/json", + Accept: "application/json", + loginid: null, + Code: code, + AccessToken: accessToken, + }, + data: {}, + name: "Erp Sync PO Ebay", + group: "Ebay Systems", + }, + //ERP Systems + { + url: "https://int.ipsupply.com.au/api/transferGetData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/test-log-serial-number/sync-data", + filter: {}, + }, + name: "Log SN to ERP", + group: "ERP Systems", + }, + { + url: "https://int.ipsupply.com.au/api/transferGetData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/stock-model-serial/check-sn-cisco", + filter: {}, + }, + name: "SN Cisco to ERP", + group: "ERP Systems", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-shipping-rates", + data: { + courierName: "Fedex", + packageInfo: { + from: { + streetLines: ["8/4A Bachell Ave"], + city: "Lidcombe", + stateOrProvinceCode: "", + postalCode: "2141", + countryCode: "AU", + }, + to: { + streetLines: ["600 Terminal Dr"], + city: "Louisville", + stateOrProvinceCode: "KY", + postalCode: "40209", + countryCode: "US", + }, + requestedPackageLineItems: [ + { + weight: { + value: 10, + units: "KG", + }, + dimensions: { + length: 2, + width: 3, + height: 4, + units: "CM", + }, + groupPackageCount: 1, + }, + ], + commodities: [ + { + description: "G6", + quantity: 2, + quantityUnits: "PCS", + unitPrice: { + amount: 10000, + currency: "USD", + }, + customsValue: { + amount: 10000, + currency: "USD", + }, + }, + ], + inforCreateFedex: { + pickupType: "CONTACT_FEDEX_TO_SCHEDULE", + }, + }, + }, + }, + name: "Shipping rate Fedex", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-shipping-rates", + data: { + courierName: "DHL", + packageInfo: { + from: { + streetLines: ["8/4A Bachell Ave"], + city: "Lidcombe", + stateOrProvinceCode: "", + postalCode: "2141", + countryCode: "AU", + }, + to: { + streetLines: ["600 Terminal Dr"], + city: "Louisville", + stateOrProvinceCode: "KY", + postalCode: "40209", + countryCode: "US", + }, + requestedPackageLineItems: [ + { + weight: { + value: 10, + units: "KG", + }, + dimensions: { + length: 2, + width: 3, + height: 4, + units: "CM", + }, + groupPackageCount: 1, + }, + ], + commodities: [ + { + description: "G6", + quantity: 2, + quantityUnits: "PCS", + unitPrice: { + amount: 10000, + currency: "USD", + }, + customsValue: { + amount: 10000, + currency: "USD", + }, + }, + ], + inforCreateFedex: { + pickupType: "CONTACT_FEDEX_TO_SCHEDULE", + }, + }, + }, + }, + name: "Shipping rate DHL", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-shipping-rates", + data: { + courierName: "Transdirect", + packageInfo: { + from: { + streetLines: ["8/4A Bachell Ave"], + city: "Lidcombe", + stateOrProvinceCode: "", + postalCode: "2141", + countryCode: "AU", + }, + to: { + streetLines: ["600 Terminal Dr"], + city: "Louisville", + stateOrProvinceCode: "KY", + postalCode: "40209", + countryCode: "US", + }, + requestedPackageLineItems: [ + { + weight: { + value: 10, + units: "KG", + }, + dimensions: { + length: 2, + width: 3, + height: 4, + units: "CM", + }, + groupPackageCount: 1, + }, + ], + commodities: [ + { + description: "G6", + quantity: 2, + quantityUnits: "PCS", + unitPrice: { + amount: 10000, + currency: "USD", + }, + customsValue: { + amount: 10000, + currency: "USD", + }, + }, + ], + inforCreateFedex: { + pickupType: "CONTACT_FEDEX_TO_SCHEDULE", + }, + }, + }, + }, + name: "Shipping rate Transdirect", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-shipping-rates", + data: { + courierName: "CouriersPlease", + packageInfo: { + from: { + streetLines: ["8/4A Bachell Ave"], + city: "Lidcombe", + stateOrProvinceCode: "", + postalCode: "2141", + countryCode: "AU", + }, + to: { + streetLines: ["600 Terminal Dr"], + city: "Louisville", + stateOrProvinceCode: "KY", + postalCode: "40209", + countryCode: "US", + }, + requestedPackageLineItems: [ + { + weight: { + value: 10, + units: "KG", + }, + dimensions: { + length: 2, + width: 3, + height: 4, + units: "CM", + }, + groupPackageCount: 1, + }, + ], + commodities: [ + { + description: "G6", + quantity: 2, + quantityUnits: "PCS", + unitPrice: { + amount: 10000, + currency: "USD", + }, + customsValue: { + amount: 10000, + currency: "USD", + }, + }, + ], + inforCreateFedex: { + pickupType: "CONTACT_FEDEX_TO_SCHEDULE", + }, + }, + }, + }, + name: "Shipping rate Courier Please", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-shipping-rates", + data: { + courierName: "Auspost", + packageInfo: { + from: { + streetLines: ["8/4A Bachell Ave"], + city: "Lidcombe", + stateOrProvinceCode: "", + postalCode: "2141", + countryCode: "AU", + }, + to: { + streetLines: ["600 Terminal Dr"], + city: "Louisville", + stateOrProvinceCode: "KY", + postalCode: "40209", + countryCode: "US", + }, + requestedPackageLineItems: [ + { + weight: { + value: 10, + units: "KG", + }, + dimensions: { + length: 2, + width: 3, + height: 4, + units: "CM", + }, + groupPackageCount: 1, + }, + ], + commodities: [ + { + description: "G6", + quantity: 2, + quantityUnits: "PCS", + unitPrice: { + amount: 10000, + currency: "USD", + }, + customsValue: { + amount: 10000, + currency: "USD", + }, + }, + ], + inforCreateFedex: { + pickupType: "CONTACT_FEDEX_TO_SCHEDULE", + }, + }, + }, + }, + name: "Shipping rate Auspost", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-shipping-rates", + data: { + courierName: "FRF", + packageInfo: { + from: { + streetLines: ["8/4A Bachell Ave"], + city: "Lidcombe", + stateOrProvinceCode: "", + postalCode: "2141", + countryCode: "AU", + }, + to: { + streetLines: ["112 Munro St"], + city: "South Melbourne", + postalCode: "3205", + countryCode: "AU", + }, + requestedPackageLineItems: [ + { + weight: { + value: 10, + units: "KG", + }, + dimensions: { + length: 2, + width: 3, + height: 4, + units: "CM", + }, + groupPackageCount: 1, + }, + ], + commodities: [ + { + description: "G6", + quantity: 2, + quantityUnits: "PCS", + unitPrice: { + amount: 10000, + currency: "USD", + }, + customsValue: { + amount: 10000, + currency: "USD", + }, + }, + ], + inforCreateFedex: { + pickupType: "CONTACT_FEDEX_TO_SCHEDULE", + }, + }, + }, + }, + name: "Shipping rate FRF", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-shipping-rates", + data: { + courierName: "Sendle", + packageInfo: { + from: { + streetLines: ["8/4A Bachell Ave"], + city: "Lidcombe", + stateOrProvinceCode: "", + postalCode: "2141", + countryCode: "AU", + }, + to: { + streetLines: ["112 Munro St"], + city: "South Melbourne", + postalCode: "3205", + countryCode: "AU", + }, + requestedPackageLineItems: [ + { + weight: { + value: 10, + units: "KG", + }, + dimensions: { + length: 2, + width: 3, + height: 4, + units: "CM", + }, + groupPackageCount: 1, + }, + ], + commodities: [ + { + description: "G6", + quantity: 2, + quantityUnits: "PCS", + unitPrice: { + amount: 10000, + currency: "USD", + }, + customsValue: { + amount: 10000, + currency: "USD", + }, + }, + ], + inforCreateFedex: { + pickupType: "CONTACT_FEDEX_TO_SCHEDULE", + }, + }, + }, + }, + name: "Shipping rate Sendle", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "782568904960", + type: "Fedex", + }, + }, + name: "Tracking Fedex", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "210865775", + type: "TNT", + }, + }, + name: "Tracking TNT", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "1Z94VTP30308384260", + type: "UPS", + }, + }, + name: "Tracking UPS", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "33FJV771376901000930306", + type: "Auspost", + }, + }, + name: "Tracking Auspost", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "9400111206203073428144", + type: "USPS", + }, + }, + name: "Tracking USPS", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "CVAZ00633255", + type: "StarTrack", + }, + }, + name: "Tracking StarTrack", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "S92C5DS", + type: "Sendle", + }, + }, + name: "Tracking Sendle", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "2334909695 ", + type: "DHL", + }, + }, + name: "Tracking DHL", + group: "Shipping System", + }, + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/logistics/check-tracking", + data: { + trackingNumber: "60508912001", + type: "CouriersPlease", + }, + }, + name: "Tracking CouriersPlease", + group: "Shipping System", + }, + //Other system + { + url: "https://int.ipsupply.com.au/api/transferPostData", + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: "Bearer " + tokenInt, + }, + data: { + urlAPI: "/api/stock-model-serial/check-sn-list-cisco", + data: { + serialNumbers: ["FGL1716W349"], + }, + }, + name: "Check SN Cisco", + group: "Other Systems", + }, { url: "ssh danielvu-gold@172.16.6.2 cat /home/danielvu-gold/htdocs/gold.danielvu.com/check_file.json", method: "EXEC", @@ -748,20 +748,20 @@ const checkMultipleRequest = async () => { name: "Perthmint", group: "Other Systems", }, - // { - // url: "https://disti.danielvu.com/api/fileAutoImportLog", - // method: "POST", - // headers: { - // "Content-Type": "application/json", - // Accept: "application/json", - // loginid: null, - // Code: code, - // AccessToken: accessToken, - // }, - // data: {}, - // name: "Auto import Disti", - // group: "Other Systems", - // }, + { + url: "https://disti.danielvu.com/api/fileAutoImportLog", + method: "POST", + headers: { + "Content-Type": "application/json", + Accept: "application/json", + loginid: null, + Code: code, + AccessToken: accessToken, + }, + data: {}, + name: "Auto import Disti", + group: "Other Systems", + }, //Test Log System { url: "nc -zv 172.16.7.13 8002",