@chrt-inc/typescript-sdk 1.925.0 → 1.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +11 -3
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/client/Client.d.ts +0 -3
- package/dist/cjs/api/resources/shipping/client/Client.js +10 -15
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.d.ts +6 -3
- package/dist/cjs/api/resources/shipping/resources/flights/client/Client.js +19 -11
- package/dist/cjs/api/resources/shipping/resources/flights/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/flights/client/index.js +15 -0
- package/dist/cjs/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/flights/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/shipping/resources/index.js +2 -3
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +6 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +30 -2
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +103 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +442 -0
- package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts} +1 -1
- package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.ts} +1 -1
- package/dist/{esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts → cjs/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.ts} +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.ts → client/requests/OrdersUpdateDraftReq.d.ts} +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/cargo/client/Client.js +59 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.ts +0 -109
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/Client.js +0 -452
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/index.js +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +59 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +19 -2
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +74 -5
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.ts +10 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.ts +12 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/tracking/client/Client.js +16 -6
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/Client.d.ts +140 -0
- package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/Client.js +65 -291
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.ts +45 -0
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.ts +28 -0
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/tracking/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/tracking/resources/index.js +5 -1
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.d.ts +117 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/Client.js +393 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/taskGroup → tracking/resources/sessionGeofences/client}/index.js +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.ts +13 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.ts +10 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +11 -10
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +16 -12
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.ts → SessionClientUpdate2.d.ts} +1 -5
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.ts → SessionsCreateV1Req.d.ts} +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.d.ts +10 -0
- package/dist/cjs/api/types/DeviceExpandedRes.d.ts +2 -2
- package/dist/cjs/api/types/GeofencePointLocationFeature1.d.ts +14 -0
- package/dist/cjs/api/types/{OrderTemplateListRes.d.ts → GeofenceTemplateListRes.d.ts} +2 -2
- package/dist/cjs/api/types/{OrderTemplateSortByEnum.d.ts → GeofenceTemplateSortByEnum.d.ts} +2 -3
- package/dist/cjs/api/types/{OrderTemplateSortByEnum.js → GeofenceTemplateSortByEnum.js} +2 -3
- package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +1 -1
- package/dist/cjs/api/types/InvoiceLineItemExpandedRes.d.ts +12 -0
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +2 -2
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +3 -2
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +2 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +3 -2
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +2 -1
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -0
- package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -0
- package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +0 -1
- package/dist/cjs/api/types/OrderLimitedForShipper1.d.ts +0 -1
- package/dist/cjs/api/types/{OrderTemplate1.d.ts → OrderTemplateNewExpanded1.d.ts} +11 -9
- package/dist/cjs/api/types/OrderTemplateNewExpanded1.js +5 -0
- package/dist/cjs/api/types/OrderTemplateNewListRes.d.ts +1 -1
- package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.d.ts +10 -0
- package/dist/cjs/api/types/OrderTemplateNewTaskGroupExpanded1.js +5 -0
- package/dist/cjs/api/types/{OrdersDraftDeleteManyRes.d.ts → OrdersDeleteManyDraftsRes.d.ts} +1 -1
- package/dist/cjs/api/types/OrdersDeleteManyDraftsRes.js +5 -0
- package/dist/cjs/api/types/{OrdersDraftUpdateRes.d.ts → OrdersUpdateDraftRes.d.ts} +1 -1
- package/dist/cjs/api/types/OrdersUpdateDraftRes.js +5 -0
- package/dist/cjs/api/types/Point.d.ts +1 -0
- package/dist/cjs/api/types/{Session1.d.ts → Session2.d.ts} +2 -4
- package/dist/cjs/api/types/Session2.js +5 -0
- package/dist/cjs/api/types/SessionGeofence1.d.ts +12 -0
- package/dist/cjs/api/types/SessionGeofence1.js +5 -0
- package/dist/cjs/api/types/SessionGeofenceBase1.d.ts +9 -0
- package/dist/cjs/api/types/SessionGeofenceBase1.js +5 -0
- package/dist/cjs/api/types/SessionGeofenceClientCreate1.d.ts +9 -0
- package/dist/cjs/api/types/SessionGeofenceClientCreate1.js +5 -0
- package/dist/cjs/api/types/SessionGeofenceTemplate1.d.ts +19 -0
- package/dist/cjs/api/types/SessionGeofenceTemplate1.js +5 -0
- package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
- package/dist/cjs/api/types/Task1.d.ts +1 -0
- package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.d.ts +8 -0
- package/dist/cjs/api/types/TaskListToApplyToOrderExpanded.js +5 -0
- package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.ts +14 -0
- package/dist/cjs/api/types/TrackingSessionGeofenceEnteredWebhookPayload.js +5 -0
- package/dist/cjs/api/types/index.d.ts +16 -11
- package/dist/cjs/api/types/index.js +16 -11
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +11 -3
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/client/Client.d.mts +0 -3
- package/dist/esm/api/resources/shipping/client/Client.mjs +0 -5
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.d.mts +6 -3
- package/dist/esm/api/resources/shipping/resources/flights/client/Client.mjs +19 -11
- package/dist/esm/api/resources/shipping/resources/flights/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/flights/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/flights/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/shipping/resources/index.mjs +1 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +6 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +30 -2
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/tasks/client/requests/OrderTemplateNewTaskClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +103 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +442 -0
- package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts} +1 -1
- package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersDeleteManyDraftsReq.d.mts} +1 -1
- package/dist/{cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts → esm/api/resources/shipping/resources/orders/client/requests/OrdersTaskGroupOrderingReq.d.mts} +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/OrdersDraftUpdateReq.d.mts → client/requests/OrdersUpdateDraftReq.d.mts} +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/cargo/client/Client.mjs +59 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts +0 -109
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.mjs +0 -452
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +59 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +19 -2
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +74 -5
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompleteReq.d.mts +10 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.d.mts +12 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/tracking/client/Client.mjs +10 -0
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/Client.d.mts +140 -0
- package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/Client.mjs +63 -289
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.d.mts +45 -0
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.d.mts +28 -0
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/tracking/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/tracking/resources/index.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.d.mts +117 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/Client.mjs +356 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.d.mts +13 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.d.mts +10 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +11 -10
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +16 -12
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientUpdate1.d.mts → SessionClientUpdate2.d.mts} +1 -5
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/{SessionClientCreate1.d.mts → SessionsCreateV1Req.d.mts} +3 -3
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +4 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +2 -2
- package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.d.mts +10 -0
- package/dist/esm/api/types/DeviceExpandedRes.d.mts +2 -2
- package/dist/esm/api/types/GeofencePointLocationFeature1.d.mts +14 -0
- package/dist/esm/api/types/{OrderTemplateListRes.d.mts → GeofenceTemplateListRes.d.mts} +2 -2
- package/dist/esm/api/types/{OrderTemplateSortByEnum.d.mts → GeofenceTemplateSortByEnum.d.mts} +2 -3
- package/dist/esm/api/types/{OrderTemplateSortByEnum.mjs → GeofenceTemplateSortByEnum.mjs} +1 -2
- package/dist/esm/api/types/InvoiceExpandedRes.d.mts +1 -1
- package/dist/esm/api/types/InvoiceLineItemExpandedRes.d.mts +12 -0
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +2 -2
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +3 -2
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +2 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +3 -2
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +2 -1
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -0
- package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -0
- package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +0 -1
- package/dist/esm/api/types/OrderLimitedForShipper1.d.mts +0 -1
- package/dist/esm/api/types/{OrderTemplate1.d.mts → OrderTemplateNewExpanded1.d.mts} +11 -9
- package/dist/esm/api/types/OrderTemplateNewExpanded1.mjs +4 -0
- package/dist/esm/api/types/OrderTemplateNewListRes.d.mts +1 -1
- package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.d.mts +10 -0
- package/dist/esm/api/types/OrderTemplateNewTaskGroupExpanded1.mjs +4 -0
- package/dist/esm/api/types/{OrdersDraftDeleteManyRes.d.mts → OrdersDeleteManyDraftsRes.d.mts} +1 -1
- package/dist/esm/api/types/OrdersDeleteManyDraftsRes.mjs +4 -0
- package/dist/esm/api/types/{OrdersDraftUpdateRes.d.mts → OrdersUpdateDraftRes.d.mts} +1 -1
- package/dist/esm/api/types/OrdersUpdateDraftRes.mjs +4 -0
- package/dist/esm/api/types/Point.d.mts +1 -0
- package/dist/esm/api/types/{Session1.d.mts → Session2.d.mts} +2 -4
- package/dist/esm/api/types/Session2.mjs +4 -0
- package/dist/esm/api/types/SessionGeofence1.d.mts +12 -0
- package/dist/esm/api/types/SessionGeofence1.mjs +4 -0
- package/dist/esm/api/types/SessionGeofenceBase1.d.mts +9 -0
- package/dist/esm/api/types/SessionGeofenceBase1.mjs +4 -0
- package/dist/esm/api/types/SessionGeofenceClientCreate1.d.mts +9 -0
- package/dist/esm/api/types/SessionGeofenceClientCreate1.mjs +4 -0
- package/dist/esm/api/types/SessionGeofenceTemplate1.d.mts +19 -0
- package/dist/esm/api/types/SessionGeofenceTemplate1.mjs +4 -0
- package/dist/esm/api/types/SessionListRes.d.mts +1 -1
- package/dist/esm/api/types/Task1.d.mts +1 -0
- package/dist/esm/api/types/TaskListToApplyToOrderExpanded.d.mts +8 -0
- package/dist/esm/api/types/TaskListToApplyToOrderExpanded.mjs +4 -0
- package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.d.mts +14 -0
- package/dist/esm/api/types/TrackingSessionGeofenceEnteredWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +16 -11
- package/dist/esm/api/types/index.mjs +16 -11
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1350 -1077
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/Client.d.ts +0 -182
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +0 -33
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +0 -37
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.ts +0 -14
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.ts +0 -80
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.ts +0 -46
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.js +0 -127
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/index.js +0 -38
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.ts +0 -46
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.js +0 -127
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.ts +0 -1
- package/dist/cjs/api/types/Order1.d.ts +0 -43
- package/dist/cjs/api/types/OrderTemplateExpanded1.d.ts +0 -16
- package/dist/cjs/api/types/OrderTemplateOrgInfo1.d.ts +0 -10
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.d.ts +0 -13
- package/dist/cjs/api/types/OrderTemplateReferenceColumnEnum1.js +0 -15
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +0 -10
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/Client.d.mts +0 -182
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +0 -33
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +0 -37
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.d.mts +0 -14
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplatesListV1Request.d.mts +0 -80
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.d.mts +0 -46
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/Client.mjs +0 -90
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/cargo/client/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/index.mjs +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.d.mts +0 -46
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/Client.mjs +0 -90
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/client/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/resources/taskGroup/index.mjs +0 -1
- package/dist/esm/api/types/Order1.d.mts +0 -43
- package/dist/esm/api/types/OrderTemplateExpanded1.d.mts +0 -16
- package/dist/esm/api/types/OrderTemplateOrgInfo1.d.mts +0 -10
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.d.mts +0 -13
- package/dist/esm/api/types/OrderTemplateReferenceColumnEnum1.mjs +0 -12
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +0 -10
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.js → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.js → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.js → orders/client/requests/OrdersDeleteManyDraftsReq.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.js → orders/client/requests/OrdersTaskGroupOrderingReq.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.js → client/requests/OrdersUpdateDraftReq.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.js → tasks/client/requests/TaskCompleteReq.js} +0 -0
- /package/dist/cjs/api/resources/shipping/resources/{orders/resources/drafts/client/requests/OrdersDraftUpdateReq.js → tasks/client/requests/TaskCompletionTimestampUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.js → tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessions/client/requests/SessionClientCreate1.js → geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessions/client/requests/SessionClientUpdate1.js → geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo/client → tracking/resources/geofenceTemplates/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/index.js +0 -0
- /package/dist/cjs/api/{types/Order1.js → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.js} +0 -0
- /package/dist/cjs/api/{types/OrderTemplate1.js → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/OrderTemplateExpanded1.js → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/taskGroup/client → tracking/resources/sessionGeofences/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo → tracking/resources/sessionGeofences}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo → tracking/resources/sessionGeofences}/index.js +0 -0
- /package/dist/cjs/api/{types/OrderTemplateListRes.js → resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.js} +0 -0
- /package/dist/cjs/api/{types/OrderTemplateOrgInfo1.js → resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.js} +0 -0
- /package/dist/cjs/api/types/{OrdersDraftDeleteManyRes.js → BillingInvoiceApprovedWebhookPayload.js} +0 -0
- /package/dist/cjs/api/types/{OrdersDraftUpdateRes.js → GeofencePointLocationFeature1.js} +0 -0
- /package/dist/cjs/api/types/{Session1.js → GeofenceTemplateListRes.js} +0 -0
- /package/dist/cjs/api/types/{TrackingSessionDestinationGeofenceEnteredWebhookPayload.js → InvoiceLineItemExpandedRes.js} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientCreate1.mjs → flights/client/requests/FlightsGetFlightTrackForFlightLegV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates → flights}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateClientUpdate1.mjs → orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplateRemoveReferenceReq.mjs → orders/client/requests/OrdersDeleteManyDraftsReq.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orderTemplates/client/requests/OrderTemplatesListV1Request.mjs → orders/client/requests/OrdersTaskGroupOrderingReq.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/orders/{resources/drafts/client/requests/DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs → client/requests/OrdersUpdateDraftReq.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orders/resources/drafts/client/requests/OrdersDraftDeleteManyReq.mjs → tasks/client/requests/TaskCompleteReq.mjs} +0 -0
- /package/dist/esm/api/resources/shipping/resources/{orders/resources/drafts/client/requests/OrdersDraftUpdateReq.mjs → tasks/client/requests/TaskCompletionTimestampUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/client/requests/SetTaskGroupOrderingDraftReq.mjs → tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessions/client/requests/SessionClientCreate1.mjs → geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessions/client/requests/SessionClientUpdate1.mjs → geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo/client → tracking/resources/geofenceTemplates/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orderTemplates → tracking/resources/geofenceTemplates}/index.mjs +0 -0
- /package/dist/esm/api/{types/Order1.mjs → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.mjs} +0 -0
- /package/dist/esm/api/{types/OrderTemplate1.mjs → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/OrderTemplateExpanded1.mjs → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceReorderReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/resources/taskGroup/client → tracking/resources/sessionGeofences/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo → tracking/resources/sessionGeofences}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/drafts/resources/cargo → tracking/resources/sessionGeofences}/index.mjs +0 -0
- /package/dist/esm/api/{types/OrderTemplateListRes.mjs → resources/tracking/resources/sessions/client/requests/SessionClientUpdate2.mjs} +0 -0
- /package/dist/esm/api/{types/OrderTemplateOrgInfo1.mjs → resources/tracking/resources/sessions/client/requests/SessionsCreateV1Req.mjs} +0 -0
- /package/dist/esm/api/types/{OrdersDraftDeleteManyRes.mjs → BillingInvoiceApprovedWebhookPayload.mjs} +0 -0
- /package/dist/esm/api/types/{OrdersDraftUpdateRes.mjs → GeofencePointLocationFeature1.mjs} +0 -0
- /package/dist/esm/api/types/{Session1.mjs → GeofenceTemplateListRes.mjs} +0 -0
- /package/dist/esm/api/types/{TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs → InvoiceLineItemExpandedRes.mjs} +0 -0
package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/Client.d.mts
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
import * as environments from "../../../../../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../../../../../index.mjs";
|
|
7
|
-
import { Cargo } from "../resources/cargo/client/Client.mjs";
|
|
8
|
-
import { TaskGroup } from "../resources/taskGroup/client/Client.mjs";
|
|
9
7
|
export declare namespace Drafts {
|
|
10
8
|
interface Options {
|
|
11
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -31,43 +29,7 @@ export declare namespace Drafts {
|
|
|
31
29
|
}
|
|
32
30
|
export declare class Drafts {
|
|
33
31
|
protected readonly _options: Drafts.Options;
|
|
34
|
-
protected _cargo: Cargo | undefined;
|
|
35
|
-
protected _taskGroup: TaskGroup | undefined;
|
|
36
32
|
constructor(_options?: Drafts.Options);
|
|
37
|
-
get cargo(): Cargo;
|
|
38
|
-
get taskGroup(): TaskGroup;
|
|
39
|
-
/**
|
|
40
|
-
* Adds a coordinator task list with an optional department override to apply when the draft order is staged. | authz_personas=[coordinator_org_operators] | (UTCDatetime | None) -> (bool)
|
|
41
|
-
*
|
|
42
|
-
* @param {string} orderId
|
|
43
|
-
* @param {string} taskListId
|
|
44
|
-
* @param {Chrt.shipping.orders.DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request} request
|
|
45
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
-
*
|
|
47
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* await client.shipping.orders.drafts.addCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id", {
|
|
51
|
-
* department_id: "department_id",
|
|
52
|
-
* body: "2024-01-15T09:30:00Z"
|
|
53
|
-
* })
|
|
54
|
-
*/
|
|
55
|
-
addCoordinatorTaskListToApplyAtOrderStagingV1(orderId: string, taskListId: string, request?: Chrt.shipping.orders.DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
56
|
-
private __addCoordinatorTaskListToApplyAtOrderStagingV1;
|
|
57
|
-
/**
|
|
58
|
-
* Removes a pending coordinator staging task list from a draft order. | authz_personas=[coordinator_org_operators] | () -> (bool)
|
|
59
|
-
*
|
|
60
|
-
* @param {string} orderId
|
|
61
|
-
* @param {string} taskListId
|
|
62
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
-
*
|
|
64
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* await client.shipping.orders.drafts.removeCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id")
|
|
68
|
-
*/
|
|
69
|
-
removeCoordinatorTaskListToApplyAtOrderStagingV1(orderId: string, taskListId: string, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
70
|
-
private __removeCoordinatorTaskListToApplyAtOrderStagingV1;
|
|
71
33
|
/**
|
|
72
34
|
* Creates a draft Order through one of three paths: (1) provide only order_template_new_id to load the saved template's core and record that template as the Order's provenance; (2) provide only order_template_new_core to materialize an ad hoc submitted core without template provenance; (3) provide both to record and validate the saved template as provenance while materializing the submitted core, without modifying the saved template. | authz: min_org_role=operator | (OrdersCreateDraftFromOrderTemplateNewReq) -> (OrdersOpenDraftRes)
|
|
73
35
|
*
|
|
@@ -81,34 +43,6 @@ export declare class Drafts {
|
|
|
81
43
|
*/
|
|
82
44
|
createFromOrderTemplateNewV1(request?: Chrt.shipping.orders.OrdersCreateDraftFromOrderTemplateNewReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersOpenDraftRes>;
|
|
83
45
|
private __createFromOrderTemplateNewV1;
|
|
84
|
-
/**
|
|
85
|
-
* Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
86
|
-
*
|
|
87
|
-
* @param {string} orderId
|
|
88
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
-
*
|
|
90
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* await client.shipping.orders.drafts.deleteV1("order_id")
|
|
94
|
-
*/
|
|
95
|
-
deleteV1(orderId: string, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
96
|
-
private __deleteV1;
|
|
97
|
-
/**
|
|
98
|
-
* Deletes multiple draft orders and associated entities. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
99
|
-
*
|
|
100
|
-
* @param {Chrt.shipping.orders.OrdersDraftDeleteManyReq} request
|
|
101
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
|
-
*
|
|
103
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* await client.shipping.orders.drafts.deleteManyV1({
|
|
107
|
-
* order_ids: ["order_ids"]
|
|
108
|
-
* })
|
|
109
|
-
*/
|
|
110
|
-
deleteManyV1(request: Chrt.shipping.orders.OrdersDraftDeleteManyReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftDeleteManyRes>;
|
|
111
|
-
private __deleteManyV1;
|
|
112
46
|
/**
|
|
113
47
|
* Opens a new draft order shell with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersOpenDraftReq) -> (OrdersOpenDraftRes)
|
|
114
48
|
*
|
|
@@ -122,48 +56,5 @@ export declare class Drafts {
|
|
|
122
56
|
*/
|
|
123
57
|
openV1(request?: Chrt.shipping.orders.OrdersOpenDraftReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersOpenDraftRes>;
|
|
124
58
|
private __openV1;
|
|
125
|
-
/**
|
|
126
|
-
* Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
|
|
127
|
-
*
|
|
128
|
-
* @param {string} orderId
|
|
129
|
-
* @param {Chrt.shipping.orders.SetTaskGroupOrderingDraftReq} request
|
|
130
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
|
-
*
|
|
132
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* await client.shipping.orders.drafts.setTaskGroupOrderingV1("order_id", {
|
|
136
|
-
* task_group_ids: ["task_group_ids"]
|
|
137
|
-
* })
|
|
138
|
-
*/
|
|
139
|
-
setTaskGroupOrderingV1(orderId: string, request: Chrt.shipping.orders.SetTaskGroupOrderingDraftReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
140
|
-
private __setTaskGroupOrderingV1;
|
|
141
|
-
/**
|
|
142
|
-
* Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
143
|
-
*
|
|
144
|
-
* @param {string} orderId
|
|
145
|
-
* @param {Chrt.shipping.orders.OrdersDraftUpdateReq} request
|
|
146
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
|
-
*
|
|
148
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* await client.shipping.orders.drafts.updateV1("order_id")
|
|
152
|
-
*/
|
|
153
|
-
updateV1(orderId: string, request?: Chrt.shipping.orders.OrdersDraftUpdateReq, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrdersDraftUpdateRes>;
|
|
154
|
-
private __updateV1;
|
|
155
|
-
/**
|
|
156
|
-
* Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
|
|
157
|
-
*
|
|
158
|
-
* @param {string} orderId
|
|
159
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
160
|
-
*
|
|
161
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* await client.shipping.orders.drafts.validateV1("order_id")
|
|
165
|
-
*/
|
|
166
|
-
validateV1(orderId: string, requestOptions?: Drafts.RequestOptions): core.HttpResponsePromise<Chrt.OrderDraftValidationResult>;
|
|
167
|
-
private __validateV1;
|
|
168
59
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
169
60
|
}
|
|
@@ -15,152 +15,10 @@ import * as core from "../../../../../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../../../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
18
|
-
import { Cargo } from "../resources/cargo/client/Client.mjs";
|
|
19
|
-
import { TaskGroup } from "../resources/taskGroup/client/Client.mjs";
|
|
20
18
|
export class Drafts {
|
|
21
19
|
constructor(_options = {}) {
|
|
22
20
|
this._options = _options;
|
|
23
21
|
}
|
|
24
|
-
get cargo() {
|
|
25
|
-
var _a;
|
|
26
|
-
return ((_a = this._cargo) !== null && _a !== void 0 ? _a : (this._cargo = new Cargo(this._options)));
|
|
27
|
-
}
|
|
28
|
-
get taskGroup() {
|
|
29
|
-
var _a;
|
|
30
|
-
return ((_a = this._taskGroup) !== null && _a !== void 0 ? _a : (this._taskGroup = new TaskGroup(this._options)));
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Adds a coordinator task list with an optional department override to apply when the draft order is staged. | authz_personas=[coordinator_org_operators] | (UTCDatetime | None) -> (bool)
|
|
34
|
-
*
|
|
35
|
-
* @param {string} orderId
|
|
36
|
-
* @param {string} taskListId
|
|
37
|
-
* @param {Chrt.shipping.orders.DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request} request
|
|
38
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
-
*
|
|
40
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* await client.shipping.orders.drafts.addCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id", {
|
|
44
|
-
* department_id: "department_id",
|
|
45
|
-
* body: "2024-01-15T09:30:00Z"
|
|
46
|
-
* })
|
|
47
|
-
*/
|
|
48
|
-
addCoordinatorTaskListToApplyAtOrderStagingV1(orderId, taskListId, request = {}, requestOptions) {
|
|
49
|
-
return core.HttpResponsePromise.fromPromise(this.__addCoordinatorTaskListToApplyAtOrderStagingV1(orderId, taskListId, request, requestOptions));
|
|
50
|
-
}
|
|
51
|
-
__addCoordinatorTaskListToApplyAtOrderStagingV1(orderId_1, taskListId_1) {
|
|
52
|
-
return __awaiter(this, arguments, void 0, function* (orderId, taskListId, request = {}, requestOptions) {
|
|
53
|
-
var _a, _b, _c, _d;
|
|
54
|
-
const { department_id: departmentId, body: _body } = request;
|
|
55
|
-
const _queryParams = {};
|
|
56
|
-
if (departmentId !== undefined) {
|
|
57
|
-
_queryParams["department_id"] = departmentId;
|
|
58
|
-
}
|
|
59
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
60
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
61
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/orders/drafts/coordinator_task_lists_to_apply_at_order_staging/add/v1/${encodeURIComponent(orderId)}/${encodeURIComponent(taskListId)}`),
|
|
62
|
-
method: "POST",
|
|
63
|
-
headers: _headers,
|
|
64
|
-
contentType: "application/json",
|
|
65
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
66
|
-
requestType: "json",
|
|
67
|
-
body: _body != null ? _body : undefined,
|
|
68
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
69
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
70
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
71
|
-
});
|
|
72
|
-
if (_response.ok) {
|
|
73
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
74
|
-
}
|
|
75
|
-
if (_response.error.reason === "status-code") {
|
|
76
|
-
switch (_response.error.statusCode) {
|
|
77
|
-
case 422:
|
|
78
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
79
|
-
default:
|
|
80
|
-
throw new errors.ChrtError({
|
|
81
|
-
statusCode: _response.error.statusCode,
|
|
82
|
-
body: _response.error.body,
|
|
83
|
-
rawResponse: _response.rawResponse,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
switch (_response.error.reason) {
|
|
88
|
-
case "non-json":
|
|
89
|
-
throw new errors.ChrtError({
|
|
90
|
-
statusCode: _response.error.statusCode,
|
|
91
|
-
body: _response.error.rawBody,
|
|
92
|
-
rawResponse: _response.rawResponse,
|
|
93
|
-
});
|
|
94
|
-
case "timeout":
|
|
95
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/drafts/coordinator_task_lists_to_apply_at_order_staging/add/v1/{order_id}/{task_list_id}.");
|
|
96
|
-
case "unknown":
|
|
97
|
-
throw new errors.ChrtError({
|
|
98
|
-
message: _response.error.errorMessage,
|
|
99
|
-
rawResponse: _response.rawResponse,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Removes a pending coordinator staging task list from a draft order. | authz_personas=[coordinator_org_operators] | () -> (bool)
|
|
106
|
-
*
|
|
107
|
-
* @param {string} orderId
|
|
108
|
-
* @param {string} taskListId
|
|
109
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
110
|
-
*
|
|
111
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
112
|
-
*
|
|
113
|
-
* @example
|
|
114
|
-
* await client.shipping.orders.drafts.removeCoordinatorTaskListToApplyAtOrderStagingV1("order_id", "task_list_id")
|
|
115
|
-
*/
|
|
116
|
-
removeCoordinatorTaskListToApplyAtOrderStagingV1(orderId, taskListId, requestOptions) {
|
|
117
|
-
return core.HttpResponsePromise.fromPromise(this.__removeCoordinatorTaskListToApplyAtOrderStagingV1(orderId, taskListId, requestOptions));
|
|
118
|
-
}
|
|
119
|
-
__removeCoordinatorTaskListToApplyAtOrderStagingV1(orderId, taskListId, requestOptions) {
|
|
120
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
-
var _a, _b, _c, _d;
|
|
122
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
123
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
124
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/orders/drafts/coordinator_task_lists_to_apply_at_order_staging/remove/v1/${encodeURIComponent(orderId)}/${encodeURIComponent(taskListId)}`),
|
|
125
|
-
method: "POST",
|
|
126
|
-
headers: _headers,
|
|
127
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
128
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
129
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
130
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
131
|
-
});
|
|
132
|
-
if (_response.ok) {
|
|
133
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
134
|
-
}
|
|
135
|
-
if (_response.error.reason === "status-code") {
|
|
136
|
-
switch (_response.error.statusCode) {
|
|
137
|
-
case 422:
|
|
138
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
139
|
-
default:
|
|
140
|
-
throw new errors.ChrtError({
|
|
141
|
-
statusCode: _response.error.statusCode,
|
|
142
|
-
body: _response.error.body,
|
|
143
|
-
rawResponse: _response.rawResponse,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
switch (_response.error.reason) {
|
|
148
|
-
case "non-json":
|
|
149
|
-
throw new errors.ChrtError({
|
|
150
|
-
statusCode: _response.error.statusCode,
|
|
151
|
-
body: _response.error.rawBody,
|
|
152
|
-
rawResponse: _response.rawResponse,
|
|
153
|
-
});
|
|
154
|
-
case "timeout":
|
|
155
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/drafts/coordinator_task_lists_to_apply_at_order_staging/remove/v1/{order_id}/{task_list_id}.");
|
|
156
|
-
case "unknown":
|
|
157
|
-
throw new errors.ChrtError({
|
|
158
|
-
message: _response.error.errorMessage,
|
|
159
|
-
rawResponse: _response.rawResponse,
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
22
|
/**
|
|
165
23
|
* Creates a draft Order through one of three paths: (1) provide only order_template_new_id to load the saved template's core and record that template as the Order's provenance; (2) provide only order_template_new_core to materialize an ad hoc submitted core without template provenance; (3) provide both to record and validate the saved template as provenance while materializing the submitted core, without modifying the saved template. | authz: min_org_role=operator | (OrdersCreateDraftFromOrderTemplateNewReq) -> (OrdersOpenDraftRes)
|
|
166
24
|
*
|
|
@@ -223,129 +81,6 @@ export class Drafts {
|
|
|
223
81
|
}
|
|
224
82
|
});
|
|
225
83
|
}
|
|
226
|
-
/**
|
|
227
|
-
* Deletes a draft order and all associated entities. | authz_personas=[draft_creator_org_operator] | () -> (bool)
|
|
228
|
-
*
|
|
229
|
-
* @param {string} orderId
|
|
230
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
231
|
-
*
|
|
232
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
233
|
-
*
|
|
234
|
-
* @example
|
|
235
|
-
* await client.shipping.orders.drafts.deleteV1("order_id")
|
|
236
|
-
*/
|
|
237
|
-
deleteV1(orderId, requestOptions) {
|
|
238
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteV1(orderId, requestOptions));
|
|
239
|
-
}
|
|
240
|
-
__deleteV1(orderId, requestOptions) {
|
|
241
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
-
var _a, _b, _c, _d;
|
|
243
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
244
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
245
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/orders/drafts/delete/v1/${encodeURIComponent(orderId)}`),
|
|
246
|
-
method: "DELETE",
|
|
247
|
-
headers: _headers,
|
|
248
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
249
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
250
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
251
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
252
|
-
});
|
|
253
|
-
if (_response.ok) {
|
|
254
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
255
|
-
}
|
|
256
|
-
if (_response.error.reason === "status-code") {
|
|
257
|
-
switch (_response.error.statusCode) {
|
|
258
|
-
case 422:
|
|
259
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
260
|
-
default:
|
|
261
|
-
throw new errors.ChrtError({
|
|
262
|
-
statusCode: _response.error.statusCode,
|
|
263
|
-
body: _response.error.body,
|
|
264
|
-
rawResponse: _response.rawResponse,
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
switch (_response.error.reason) {
|
|
269
|
-
case "non-json":
|
|
270
|
-
throw new errors.ChrtError({
|
|
271
|
-
statusCode: _response.error.statusCode,
|
|
272
|
-
body: _response.error.rawBody,
|
|
273
|
-
rawResponse: _response.rawResponse,
|
|
274
|
-
});
|
|
275
|
-
case "timeout":
|
|
276
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/orders/drafts/delete/v1/{order_id}.");
|
|
277
|
-
case "unknown":
|
|
278
|
-
throw new errors.ChrtError({
|
|
279
|
-
message: _response.error.errorMessage,
|
|
280
|
-
rawResponse: _response.rawResponse,
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Deletes multiple draft orders and associated entities. | authz_personas=[draft_creator_org_operator] | (OrdersDraftDeleteManyReq) -> (OrdersDraftDeleteManyRes)
|
|
287
|
-
*
|
|
288
|
-
* @param {Chrt.shipping.orders.OrdersDraftDeleteManyReq} request
|
|
289
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
290
|
-
*
|
|
291
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
292
|
-
*
|
|
293
|
-
* @example
|
|
294
|
-
* await client.shipping.orders.drafts.deleteManyV1({
|
|
295
|
-
* order_ids: ["order_ids"]
|
|
296
|
-
* })
|
|
297
|
-
*/
|
|
298
|
-
deleteManyV1(request, requestOptions) {
|
|
299
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteManyV1(request, requestOptions));
|
|
300
|
-
}
|
|
301
|
-
__deleteManyV1(request, requestOptions) {
|
|
302
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
-
var _a, _b, _c, _d;
|
|
304
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
305
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
306
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "shipping/orders/drafts/delete_many/v1"),
|
|
307
|
-
method: "DELETE",
|
|
308
|
-
headers: _headers,
|
|
309
|
-
contentType: "application/json",
|
|
310
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
311
|
-
requestType: "json",
|
|
312
|
-
body: request,
|
|
313
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
314
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
315
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
316
|
-
});
|
|
317
|
-
if (_response.ok) {
|
|
318
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
319
|
-
}
|
|
320
|
-
if (_response.error.reason === "status-code") {
|
|
321
|
-
switch (_response.error.statusCode) {
|
|
322
|
-
case 422:
|
|
323
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
324
|
-
default:
|
|
325
|
-
throw new errors.ChrtError({
|
|
326
|
-
statusCode: _response.error.statusCode,
|
|
327
|
-
body: _response.error.body,
|
|
328
|
-
rawResponse: _response.rawResponse,
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
switch (_response.error.reason) {
|
|
333
|
-
case "non-json":
|
|
334
|
-
throw new errors.ChrtError({
|
|
335
|
-
statusCode: _response.error.statusCode,
|
|
336
|
-
body: _response.error.rawBody,
|
|
337
|
-
rawResponse: _response.rawResponse,
|
|
338
|
-
});
|
|
339
|
-
case "timeout":
|
|
340
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/orders/drafts/delete_many/v1.");
|
|
341
|
-
case "unknown":
|
|
342
|
-
throw new errors.ChrtError({
|
|
343
|
-
message: _response.error.errorMessage,
|
|
344
|
-
rawResponse: _response.rawResponse,
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
84
|
/**
|
|
350
85
|
* Opens a new draft order shell with org assignments based on caller's organization type. | authz: min_org_role=operator | (OrdersOpenDraftReq) -> (OrdersOpenDraftRes)
|
|
351
86
|
*
|
|
@@ -408,193 +143,6 @@ export class Drafts {
|
|
|
408
143
|
}
|
|
409
144
|
});
|
|
410
145
|
}
|
|
411
|
-
/**
|
|
412
|
-
* Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
|
|
413
|
-
*
|
|
414
|
-
* @param {string} orderId
|
|
415
|
-
* @param {Chrt.shipping.orders.SetTaskGroupOrderingDraftReq} request
|
|
416
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
417
|
-
*
|
|
418
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
419
|
-
*
|
|
420
|
-
* @example
|
|
421
|
-
* await client.shipping.orders.drafts.setTaskGroupOrderingV1("order_id", {
|
|
422
|
-
* task_group_ids: ["task_group_ids"]
|
|
423
|
-
* })
|
|
424
|
-
*/
|
|
425
|
-
setTaskGroupOrderingV1(orderId, request, requestOptions) {
|
|
426
|
-
return core.HttpResponsePromise.fromPromise(this.__setTaskGroupOrderingV1(orderId, request, requestOptions));
|
|
427
|
-
}
|
|
428
|
-
__setTaskGroupOrderingV1(orderId, request, requestOptions) {
|
|
429
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
430
|
-
var _a, _b, _c, _d;
|
|
431
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
432
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
433
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/orders/drafts/set_task_group_ordering/v1/${encodeURIComponent(orderId)}`),
|
|
434
|
-
method: "PUT",
|
|
435
|
-
headers: _headers,
|
|
436
|
-
contentType: "application/json",
|
|
437
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
438
|
-
requestType: "json",
|
|
439
|
-
body: request,
|
|
440
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
441
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
442
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
443
|
-
});
|
|
444
|
-
if (_response.ok) {
|
|
445
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
446
|
-
}
|
|
447
|
-
if (_response.error.reason === "status-code") {
|
|
448
|
-
switch (_response.error.statusCode) {
|
|
449
|
-
case 422:
|
|
450
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
451
|
-
default:
|
|
452
|
-
throw new errors.ChrtError({
|
|
453
|
-
statusCode: _response.error.statusCode,
|
|
454
|
-
body: _response.error.body,
|
|
455
|
-
rawResponse: _response.rawResponse,
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
switch (_response.error.reason) {
|
|
460
|
-
case "non-json":
|
|
461
|
-
throw new errors.ChrtError({
|
|
462
|
-
statusCode: _response.error.statusCode,
|
|
463
|
-
body: _response.error.rawBody,
|
|
464
|
-
rawResponse: _response.rawResponse,
|
|
465
|
-
});
|
|
466
|
-
case "timeout":
|
|
467
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /shipping/orders/drafts/set_task_group_ordering/v1/{order_id}.");
|
|
468
|
-
case "unknown":
|
|
469
|
-
throw new errors.ChrtError({
|
|
470
|
-
message: _response.error.errorMessage,
|
|
471
|
-
rawResponse: _response.rawResponse,
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* Updates coordinator and/or shipper org assignments for a draft order. | authz_personas=[draft_creator_org_operator] | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
|
|
478
|
-
*
|
|
479
|
-
* @param {string} orderId
|
|
480
|
-
* @param {Chrt.shipping.orders.OrdersDraftUpdateReq} request
|
|
481
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
482
|
-
*
|
|
483
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
484
|
-
*
|
|
485
|
-
* @example
|
|
486
|
-
* await client.shipping.orders.drafts.updateV1("order_id")
|
|
487
|
-
*/
|
|
488
|
-
updateV1(orderId, request = {}, requestOptions) {
|
|
489
|
-
return core.HttpResponsePromise.fromPromise(this.__updateV1(orderId, request, requestOptions));
|
|
490
|
-
}
|
|
491
|
-
__updateV1(orderId_1) {
|
|
492
|
-
return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
|
|
493
|
-
var _a, _b, _c, _d;
|
|
494
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
495
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
496
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/orders/drafts/update/v1/${encodeURIComponent(orderId)}`),
|
|
497
|
-
method: "PATCH",
|
|
498
|
-
headers: _headers,
|
|
499
|
-
contentType: "application/json",
|
|
500
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
501
|
-
requestType: "json",
|
|
502
|
-
body: request,
|
|
503
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
504
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
505
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
506
|
-
});
|
|
507
|
-
if (_response.ok) {
|
|
508
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
509
|
-
}
|
|
510
|
-
if (_response.error.reason === "status-code") {
|
|
511
|
-
switch (_response.error.statusCode) {
|
|
512
|
-
case 422:
|
|
513
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
514
|
-
default:
|
|
515
|
-
throw new errors.ChrtError({
|
|
516
|
-
statusCode: _response.error.statusCode,
|
|
517
|
-
body: _response.error.body,
|
|
518
|
-
rawResponse: _response.rawResponse,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
switch (_response.error.reason) {
|
|
523
|
-
case "non-json":
|
|
524
|
-
throw new errors.ChrtError({
|
|
525
|
-
statusCode: _response.error.statusCode,
|
|
526
|
-
body: _response.error.rawBody,
|
|
527
|
-
rawResponse: _response.rawResponse,
|
|
528
|
-
});
|
|
529
|
-
case "timeout":
|
|
530
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/orders/drafts/update/v1/{order_id}.");
|
|
531
|
-
case "unknown":
|
|
532
|
-
throw new errors.ChrtError({
|
|
533
|
-
message: _response.error.errorMessage,
|
|
534
|
-
rawResponse: _response.rawResponse,
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
|
|
541
|
-
*
|
|
542
|
-
* @param {string} orderId
|
|
543
|
-
* @param {Drafts.RequestOptions} requestOptions - Request-specific configuration.
|
|
544
|
-
*
|
|
545
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
546
|
-
*
|
|
547
|
-
* @example
|
|
548
|
-
* await client.shipping.orders.drafts.validateV1("order_id")
|
|
549
|
-
*/
|
|
550
|
-
validateV1(orderId, requestOptions) {
|
|
551
|
-
return core.HttpResponsePromise.fromPromise(this.__validateV1(orderId, requestOptions));
|
|
552
|
-
}
|
|
553
|
-
__validateV1(orderId, requestOptions) {
|
|
554
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
555
|
-
var _a, _b, _c, _d;
|
|
556
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
557
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
558
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping/orders/drafts/validate/v1/${encodeURIComponent(orderId)}`),
|
|
559
|
-
method: "GET",
|
|
560
|
-
headers: _headers,
|
|
561
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
562
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
563
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
564
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
565
|
-
});
|
|
566
|
-
if (_response.ok) {
|
|
567
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
568
|
-
}
|
|
569
|
-
if (_response.error.reason === "status-code") {
|
|
570
|
-
switch (_response.error.statusCode) {
|
|
571
|
-
case 422:
|
|
572
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
573
|
-
default:
|
|
574
|
-
throw new errors.ChrtError({
|
|
575
|
-
statusCode: _response.error.statusCode,
|
|
576
|
-
body: _response.error.body,
|
|
577
|
-
rawResponse: _response.rawResponse,
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
switch (_response.error.reason) {
|
|
582
|
-
case "non-json":
|
|
583
|
-
throw new errors.ChrtError({
|
|
584
|
-
statusCode: _response.error.statusCode,
|
|
585
|
-
body: _response.error.rawBody,
|
|
586
|
-
rawResponse: _response.rawResponse,
|
|
587
|
-
});
|
|
588
|
-
case "timeout":
|
|
589
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/orders/drafts/validate/v1/{order_id}.");
|
|
590
|
-
case "unknown":
|
|
591
|
-
throw new errors.ChrtError({
|
|
592
|
-
message: _response.error.errorMessage,
|
|
593
|
-
rawResponse: _response.rawResponse,
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
146
|
_getAuthorizationHeader() {
|
|
599
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
600
148
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -16,8 +16,6 @@ export interface OrdersOpenDraftReq {
|
|
|
16
16
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
17
17
|
off_chrt_reference_id?: string | null;
|
|
18
18
|
off_chrt_shipper_org_data_id?: string | null;
|
|
19
|
-
/** Saved order template that seeded this draft. Used as template-build provenance. */
|
|
20
|
-
order_template_id?: string | null;
|
|
21
19
|
service_line?: Chrt.ServiceLineEnum;
|
|
22
20
|
/** Must be a string starting with `org_` */
|
|
23
21
|
shipper_org_id?: string | null;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export { type DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request } from "./DraftsAddCoordinatorTaskListToApplyAtOrderStagingV1Request.mjs";
|
|
2
1
|
export { type OrdersCreateDraftFromOrderTemplateNewReq } from "./OrdersCreateDraftFromOrderTemplateNewReq.mjs";
|
|
3
|
-
export { type OrdersDraftDeleteManyReq } from "./OrdersDraftDeleteManyReq.mjs";
|
|
4
2
|
export { type OrdersOpenDraftReq } from "./OrdersOpenDraftReq.mjs";
|
|
5
|
-
export { type SetTaskGroupOrderingDraftReq } from "./SetTaskGroupOrderingDraftReq.mjs";
|
|
6
|
-
export { type OrdersDraftUpdateReq } from "./OrdersDraftUpdateReq.mjs";
|
|
@@ -12,6 +12,7 @@ export interface TaskClientUpdate1 {
|
|
|
12
12
|
coordinator_shipper_account_ids?: string[];
|
|
13
13
|
datetime_windows?: Chrt.DateTimeWindow1[];
|
|
14
14
|
location?: Chrt.LocationFeature | null;
|
|
15
|
+
location__set_to_None?: boolean;
|
|
15
16
|
order_placer_comments?: string | null;
|
|
16
17
|
order_placer_comments__set_to_None?: boolean;
|
|
17
18
|
}
|