@chrt-inc/typescript-sdk 1.924.0 → 1.929.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.d.ts +3 -0
- package/dist/cjs/Client.js +29 -24
- package/dist/cjs/api/resources/agent/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/agent/client/Client.js +17 -0
- package/dist/cjs/api/resources/agent/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/client/index.js +2 -0
- package/dist/cjs/api/resources/agent/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/index.js +18 -0
- package/dist/cjs/api/resources/agent/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/index.js +41 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.js +260 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/index.js +17 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.ts +11 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.ts +12 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.ts +13 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/resources/orderInformation/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +1 -5
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.ts +0 -1
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +0 -3
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +20 -3
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +69 -3
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.ts +14 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/index.js +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/index.js +41 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.js +135 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.js +17 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +10 -8
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +21 -13
- 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/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.ts → OperationsTasksSetStatusReq1.d.ts} +3 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +1 -1
- 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/cargos/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.js +60 -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/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/expanded/client/Client.d.ts +2 -105
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +6 -518
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +18 -31
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +34 -93
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.ts → ExpandedListForDriverV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.ts → ExpandedListForProviderOperatorsV1Request.d.ts} +3 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +11 -7
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +23 -15
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.js +15 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.js +2 -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/tracking/resources/geofenceTemplates/client/Client.js +494 -0
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/client/index.js +17 -0
- 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/geofenceTemplates/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/geofenceTemplates/index.js +17 -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/tracking/resources/sessionGeofences/client/index.js +17 -0
- 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/SessionGeofenceClientUpdate1.js +5 -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/SessionGeofenceReorderReq.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sessionGeofences/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +5 -5
- 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/SessionClientUpdate2.js +5 -0
- 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/SessionsCreateV1Req.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +2 -2
- package/dist/cjs/api/types/AiImageDescription.d.ts +1 -1
- package/dist/{esm/api/types/LlmModelEnum.d.mts → cjs/api/types/ArchivedModel.d.ts} +5 -2
- package/dist/cjs/api/types/{LlmModelEnum.js → ArchivedModel.js} +2 -2
- package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.d.ts +10 -0
- package/dist/cjs/api/types/BillingInvoiceApprovedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ChrtGroundProviderRates1.d.ts +0 -1
- package/dist/cjs/api/types/ContactExpandedListItem.d.ts +10 -0
- package/dist/cjs/api/types/ContactExpandedListItem.js +5 -0
- package/dist/cjs/api/types/ContactListRes.d.ts +1 -1
- 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/GeofencePointLocationFeature1.js +5 -0
- package/dist/cjs/api/types/{OrdersExpandedListForExecutorRes.d.ts → GeofenceTemplateListRes.d.ts} +2 -2
- package/dist/cjs/api/types/GeofenceTemplateListRes.js +5 -0
- package/dist/cjs/api/types/GeofenceTemplateSortByEnum.d.ts +10 -0
- package/dist/cjs/api/types/GeofenceTemplateSortByEnum.js +12 -0
- package/dist/cjs/api/types/Invoice1.d.ts +2 -0
- package/dist/cjs/api/types/InvoiceExpandedListItem.d.ts +11 -0
- package/dist/cjs/api/types/InvoiceExpandedListItem.js +5 -0
- package/dist/cjs/api/types/InvoiceExpandedRes.d.ts +1 -1
- package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.d.ts +8 -0
- package/dist/cjs/api/types/InvoiceLineItemExpandedListItem.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemExpandedRes.d.ts +12 -0
- package/dist/cjs/api/types/InvoiceLineItemExpandedRes.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemListRes.d.ts +1 -1
- package/dist/cjs/api/types/InvoiceListRes.d.ts +1 -1
- package/dist/cjs/api/types/Model.d.ts +12 -0
- package/dist/cjs/api/types/Model.js +11 -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/OperationsTaskExpandedListItem.d.ts +1 -0
- package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTasksStatusUpdateRes1.js +5 -0
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +2 -0
- package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +3 -0
- package/dist/cjs/api/types/OrderExpandedForShipper.d.ts +1 -0
- package/dist/cjs/api/types/OrderInformationConversationRes.d.ts +7 -0
- package/dist/cjs/api/types/OrderInformationConversationRes.js +5 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.d.ts +12 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyRes.js +5 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.ts +11 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyResult1.js +5 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.ts +9 -0
- package/dist/cjs/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.js +11 -0
- package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +37 -0
- 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/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/StoredModel.d.ts +5 -0
- package/dist/cjs/api/types/StoredModel.js +5 -0
- package/dist/cjs/api/types/Task1.d.ts +1 -0
- package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.d.ts +8 -0
- package/dist/cjs/api/types/TaskGroupByDriverDataPointsRes.js +5 -0
- package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.d.ts +8 -0
- package/dist/cjs/api/types/TaskGroupByDriverLastSeenRes.js +5 -0
- package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroupProviderRoleFilterEnum.js +11 -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 +28 -9
- package/dist/cjs/api/types/index.js +28 -9
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +23 -0
- package/dist/esm/api/resources/agent/client/Client.mjs +13 -0
- package/dist/esm/api/resources/agent/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.mjs +223 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.mts +11 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.mts +12 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.mts +13 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/orderInformation/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +1 -5
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesClientCreate1.d.mts +0 -1
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +0 -3
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +20 -3
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +69 -3
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoiceClientCreate1.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.d.mts +14 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +5 -0
- package/dist/esm/api/resources/billingNew/resources/orders/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/index.mjs +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/Client.mjs +98 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.d.mts +12 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +10 -8
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +21 -13
- 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/operations/resources/operationsTasks/client/requests/{OperationsTaskStatusReq.d.mts → OperationsTasksSetStatusReq1.d.mts} +3 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +1 -1
- 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/cargos/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/resources/cargos/client/Client.mjs +60 -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/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/expanded/client/Client.d.mts +2 -105
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +6 -518
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/task/client/requests/TaskClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +18 -31
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +34 -93
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForDriverForExecutorV1Request.d.mts → ExpandedListForDriverV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/{ExpandedListForExecutorOperatorsV1Request.d.mts → ExpandedListForProviderOperatorsV1Request.d.mts} +3 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +11 -7
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +23 -15
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/index.mjs +1 -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/tracking/resources/geofenceTemplates/client/Client.mjs +457 -0
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/client/index.mjs +1 -0
- 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/geofenceTemplates/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/geofenceTemplates/index.mjs +1 -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/SessionGeofenceClientUpdate1.mjs +4 -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/SessionGeofenceReorderReq.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sessionGeofences/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +5 -5
- 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/SessionClientUpdate2.mjs +4 -0
- 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/SessionsCreateV1Req.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +2 -2
- package/dist/esm/api/types/AiImageDescription.d.mts +1 -1
- package/dist/{cjs/api/types/LlmModelEnum.d.ts → esm/api/types/ArchivedModel.d.mts} +5 -2
- package/dist/esm/api/types/{LlmModelEnum.mjs → ArchivedModel.mjs} +1 -1
- package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.d.mts +10 -0
- package/dist/esm/api/types/BillingInvoiceApprovedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRates1.d.mts +0 -1
- package/dist/esm/api/types/ContactExpandedListItem.d.mts +10 -0
- package/dist/esm/api/types/ContactExpandedListItem.mjs +4 -0
- package/dist/esm/api/types/ContactListRes.d.mts +1 -1
- 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/GeofencePointLocationFeature1.mjs +4 -0
- package/dist/esm/api/types/{OrdersExpandedListForExecutorRes.d.mts → GeofenceTemplateListRes.d.mts} +2 -2
- package/dist/esm/api/types/GeofenceTemplateListRes.mjs +4 -0
- package/dist/esm/api/types/GeofenceTemplateSortByEnum.d.mts +10 -0
- package/dist/esm/api/types/GeofenceTemplateSortByEnum.mjs +9 -0
- package/dist/esm/api/types/Invoice1.d.mts +2 -0
- package/dist/esm/api/types/InvoiceExpandedListItem.d.mts +11 -0
- package/dist/esm/api/types/InvoiceExpandedListItem.mjs +4 -0
- package/dist/esm/api/types/InvoiceExpandedRes.d.mts +1 -1
- package/dist/esm/api/types/InvoiceLineItemExpandedListItem.d.mts +8 -0
- package/dist/esm/api/types/InvoiceLineItemExpandedListItem.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemExpandedRes.d.mts +12 -0
- package/dist/esm/api/types/InvoiceLineItemExpandedRes.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemListRes.d.mts +1 -1
- package/dist/esm/api/types/InvoiceListRes.d.mts +1 -1
- package/dist/esm/api/types/Model.d.mts +12 -0
- package/dist/esm/api/types/Model.mjs +8 -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/OperationsTaskExpandedListItem.d.mts +1 -0
- package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.d.mts +7 -0
- package/dist/esm/api/types/OperationsTasksStatusUpdateRes1.mjs +4 -0
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +2 -0
- package/dist/esm/api/types/OrderExpandedForProvider.d.mts +3 -0
- package/dist/esm/api/types/OrderExpandedForShipper.d.mts +1 -0
- package/dist/esm/api/types/OrderInformationConversationRes.d.mts +7 -0
- package/dist/esm/api/types/OrderInformationConversationRes.mjs +4 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.d.mts +12 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyRes.mjs +4 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.d.mts +11 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyResult1.mjs +4 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.d.mts +9 -0
- package/dist/esm/api/types/OrderRateSheetLineItemsGenerateManyStatusEnum.mjs +8 -0
- package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +37 -0
- 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/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/StoredModel.d.mts +5 -0
- package/dist/esm/api/types/StoredModel.mjs +4 -0
- package/dist/esm/api/types/Task1.d.mts +1 -0
- package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.d.mts +8 -0
- package/dist/esm/api/types/TaskGroupByDriverDataPointsRes.mjs +4 -0
- package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.d.mts +8 -0
- package/dist/esm/api/types/TaskGroupByDriverLastSeenRes.mjs +4 -0
- package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.d.mts +9 -0
- package/dist/esm/api/types/TaskGroupProviderRoleFilterEnum.mjs +8 -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 +28 -9
- package/dist/esm/api/types/index.mjs +28 -9
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1785 -802
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +0 -73
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +0 -66
- package/dist/cjs/api/types/OrderExpandedForCoordinator.d.ts +0 -15
- package/dist/cjs/api/types/OrderExpandedForExecutor.d.ts +0 -14
- package/dist/cjs/api/types/OrderLimitedForCoordinator1.d.ts +0 -47
- package/dist/cjs/api/types/OrderLimitedForExecutor1.d.ts +0 -27
- package/dist/cjs/api/types/OrdersExpandedListForCoordinatorRes.d.ts +0 -8
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +0 -10
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +0 -73
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +0 -66
- package/dist/esm/api/types/OrderExpandedForCoordinator.d.mts +0 -15
- package/dist/esm/api/types/OrderExpandedForExecutor.d.mts +0 -14
- package/dist/esm/api/types/OrderLimitedForCoordinator1.d.mts +0 -47
- package/dist/esm/api/types/OrderLimitedForExecutor1.d.mts +0 -27
- package/dist/esm/api/types/OrdersExpandedListForCoordinatorRes.d.mts +0 -8
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +0 -10
- /package/dist/cjs/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.js → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.js → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.js → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.js} +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionClientCreate1.js → operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.js} +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionClientUpdate1.js → shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OrderExpandedForCoordinator.js → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OrderExpandedForExecutor.js → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OrderLimitedForCoordinator1.js → resources/shipping/resources/tasks/client/requests/TaskCompleteReq.js} +0 -0
- /package/dist/cjs/api/{types/OrderLimitedForExecutor1.js → resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.js} +0 -0
- /package/dist/cjs/api/{types/OrdersExpandedListForCoordinatorRes.js → resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OrdersExpandedListForExecutorRes.js → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.js} +0 -0
- /package/dist/cjs/api/{types/Session1.js → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.js} +0 -0
- /package/dist/esm/api/resources/{operations/resources/operationsTasks/client/requests/OperationsTaskStatusReq.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/orders/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.mjs → billingNew/resources/invoices/client/requests/InvoicePeriodUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/{shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.mjs → billingNew/resources/orders/resources/rateSheetLineItems/client/requests/OrderRateSheetLineItemsGenerateManyReq.mjs} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionClientCreate1.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksSetStatusReq1.mjs} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionClientUpdate1.mjs → shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OrderExpandedForCoordinator.mjs → resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OrderExpandedForExecutor.mjs → resources/shipping/resources/taskGroups/resources/taskGroupId/client/requests/TaskGroupIdForProviderOperatorsV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OrderLimitedForCoordinator1.mjs → resources/shipping/resources/tasks/client/requests/TaskCompleteReq.mjs} +0 -0
- /package/dist/esm/api/{types/OrderLimitedForExecutor1.mjs → resources/shipping/resources/tasks/client/requests/TaskCompletionTimestampUpdateReq.mjs} +0 -0
- /package/dist/esm/api/{types/OrdersExpandedListForCoordinatorRes.mjs → resources/tracking/resources/geofenceTemplates/client/requests/GeofenceTemplatesListV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OrdersExpandedListForExecutorRes.mjs → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/Session1.mjs → resources/tracking/resources/geofenceTemplates/client/requests/SessionGeofenceTemplateClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs → resources/tracking/resources/sessionGeofences/client/requests/SessionGeofenceApplyTemplateReq.mjs} +0 -0
package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
package/dist/cjs/api/resources/billingNew/resources/orders/resources/rateSheetLineItems/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -2,6 +2,7 @@ export * as orgs from "./orgs/index.js";
|
|
|
2
2
|
export * as shipping from "./shipping/index.js";
|
|
3
3
|
export * as flights from "./flights/index.js";
|
|
4
4
|
export * as utils from "./utils/index.js";
|
|
5
|
+
export * as agent from "./agent/index.js";
|
|
5
6
|
export * as analytics from "./analytics/index.js";
|
|
6
7
|
export * as billing from "./billing/index.js";
|
|
7
8
|
export * as billingNew from "./billingNew/index.js";
|
|
@@ -36,11 +36,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billingNew = exports.billing = exports.analytics = exports.utils = exports.flights = exports.shipping = exports.orgs = void 0;
|
|
39
|
+
exports.users = exports.trackingIntegrations = exports.tracking = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.billingNew = exports.billing = exports.analytics = exports.agent = exports.utils = exports.flights = exports.shipping = exports.orgs = void 0;
|
|
40
40
|
exports.orgs = __importStar(require("./orgs/index.js"));
|
|
41
41
|
exports.shipping = __importStar(require("./shipping/index.js"));
|
|
42
42
|
exports.flights = __importStar(require("./flights/index.js"));
|
|
43
43
|
exports.utils = __importStar(require("./utils/index.js"));
|
|
44
|
+
exports.agent = __importStar(require("./agent/index.js"));
|
|
44
45
|
exports.analytics = __importStar(require("./analytics/index.js"));
|
|
45
46
|
exports.billing = __importStar(require("./billing/index.js"));
|
|
46
47
|
exports.billingNew = __importStar(require("./billingNew/index.js"));
|
|
@@ -77,7 +77,7 @@ export declare class OperationsTasks {
|
|
|
77
77
|
deleteCommentV1(taskId: string, commentId: string, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
78
78
|
private __deleteCommentV1;
|
|
79
79
|
/**
|
|
80
|
-
* Lists OperationsTasks with department and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
|
|
80
|
+
* Lists OperationsTasks with task-list, department, and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
|
|
81
81
|
*
|
|
82
82
|
* @param {Chrt.operations.OperationsTasksExpandedListV1Request} request
|
|
83
83
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -95,6 +95,7 @@ export declare class OperationsTasks {
|
|
|
95
95
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
96
96
|
* filter_department_id: "filter_department_id",
|
|
97
97
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
98
|
+
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
98
99
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
99
100
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
100
101
|
* })
|
|
@@ -102,7 +103,7 @@ export declare class OperationsTasks {
|
|
|
102
103
|
expandedListV1(request?: Chrt.operations.OperationsTasksExpandedListV1Request, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTaskExpandedListRes>;
|
|
103
104
|
private __expandedListV1;
|
|
104
105
|
/**
|
|
105
|
-
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
106
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
106
107
|
*
|
|
107
108
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
108
109
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -120,6 +121,7 @@ export declare class OperationsTasks {
|
|
|
120
121
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
121
122
|
* filter_department_id: "filter_department_id",
|
|
122
123
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
124
|
+
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
123
125
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
124
126
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
125
127
|
* })
|
|
@@ -145,21 +147,21 @@ export declare class OperationsTasks {
|
|
|
145
147
|
setDeadlineTimestampsV1(request: Chrt.operations.OperationsTasksSetDeadlineTimestampsReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksDeadlineTimestampsUpdateRes1>;
|
|
146
148
|
private __setDeadlineTimestampsV1;
|
|
147
149
|
/**
|
|
148
|
-
* Sets
|
|
150
|
+
* Sets the same status on each selected OperationsTask. Completing tasks stamps completed_at/by while other statuses clear them; missing or cross-org ids are skipped. | authz: min_org_role=operator | (OperationsTasksSetStatusReq1) -> (OperationsTasksStatusUpdateRes1)
|
|
149
151
|
*
|
|
150
|
-
* @param {
|
|
151
|
-
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
152
|
+
* @param {Chrt.operations.OperationsTasksSetStatusReq1} request
|
|
152
153
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
154
|
*
|
|
154
155
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
155
156
|
*
|
|
156
157
|
* @example
|
|
157
|
-
* await client.operations.operationsTasks.
|
|
158
|
+
* await client.operations.operationsTasks.setStatusV1({
|
|
159
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
158
160
|
* status: "not_started"
|
|
159
161
|
* })
|
|
160
162
|
*/
|
|
161
|
-
|
|
162
|
-
private
|
|
163
|
+
setStatusV1(request: Chrt.operations.OperationsTasksSetStatusReq1, requestOptions?: OperationsTasks.RequestOptions): core.HttpResponsePromise<Chrt.OperationsTasksStatusUpdateRes1>;
|
|
164
|
+
private __setStatusV1;
|
|
163
165
|
/**
|
|
164
166
|
* Creates a new OperationsTask on an Order where the caller is coordinator or executor. Seeds department_id from the caller's Order department fields. | authz: min_org_role=operator | (OperationsTaskClientCreate1) -> (PydanticObjectId)
|
|
165
167
|
*
|
|
@@ -249,7 +249,7 @@ class OperationsTasks {
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
|
-
* Lists OperationsTasks with department and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
|
|
252
|
+
* Lists OperationsTasks with task-list, department, and assigned-user details. | authz: min_org_role=operator | () -> (OperationsTaskExpandedListRes)
|
|
253
253
|
*
|
|
254
254
|
* @param {Chrt.operations.OperationsTasksExpandedListV1Request} request
|
|
255
255
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -267,6 +267,7 @@ class OperationsTasks {
|
|
|
267
267
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
268
268
|
* filter_department_id: "filter_department_id",
|
|
269
269
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
270
|
+
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
270
271
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
271
272
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
272
273
|
* })
|
|
@@ -277,7 +278,7 @@ class OperationsTasks {
|
|
|
277
278
|
__expandedListV1() {
|
|
278
279
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
279
280
|
var _a, _b, _c, _d, _e, _f;
|
|
280
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
281
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_source_task_list_id: filterSourceTaskListId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
281
282
|
const _queryParams = {};
|
|
282
283
|
if (sortBy !== undefined) {
|
|
283
284
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -330,6 +331,9 @@ class OperationsTasks {
|
|
|
330
331
|
if (filterAssignedUserId !== undefined) {
|
|
331
332
|
_queryParams["filter_assigned_user_id"] = filterAssignedUserId;
|
|
332
333
|
}
|
|
334
|
+
if (filterSourceTaskListId !== undefined) {
|
|
335
|
+
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
336
|
+
}
|
|
333
337
|
if (filterDeadlineGte !== undefined) {
|
|
334
338
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
335
339
|
}
|
|
@@ -379,7 +383,7 @@ class OperationsTasks {
|
|
|
379
383
|
});
|
|
380
384
|
}
|
|
381
385
|
/**
|
|
382
|
-
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
386
|
+
* Lists OperationsTasks for the caller's organization, with order ids / order short id / order off-CHRT reference id / department / type / status / assignee / source task list / deadline filtering, sorting, and pagination. | authz: min_org_role=operator | () -> (OperationsTaskListRes)
|
|
383
387
|
*
|
|
384
388
|
* @param {Chrt.operations.OperationsTasksListV1Request} request
|
|
385
389
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -397,6 +401,7 @@ class OperationsTasks {
|
|
|
397
401
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
398
402
|
* filter_department_id: "filter_department_id",
|
|
399
403
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
404
|
+
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
400
405
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
401
406
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
402
407
|
* })
|
|
@@ -407,7 +412,7 @@ class OperationsTasks {
|
|
|
407
412
|
__listV1() {
|
|
408
413
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
409
414
|
var _a, _b, _c, _d, _e, _f;
|
|
410
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
415
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_order_ids: filterOrderIds, filter_order_short_id: filterOrderShortId, filter_order_off_chrt_reference_id: filterOrderOffChrtReferenceId, filter_department_id: filterDepartmentId, filter_task_type: filterTaskType, filter_status: filterStatus, filter_assigned_user_id: filterAssignedUserId, filter_source_task_list_id: filterSourceTaskListId, filter_deadline_gte: filterDeadlineGte, filter_deadline_lte: filterDeadlineLte, } = request;
|
|
411
416
|
const _queryParams = {};
|
|
412
417
|
if (sortBy !== undefined) {
|
|
413
418
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -460,6 +465,9 @@ class OperationsTasks {
|
|
|
460
465
|
if (filterAssignedUserId !== undefined) {
|
|
461
466
|
_queryParams["filter_assigned_user_id"] = filterAssignedUserId;
|
|
462
467
|
}
|
|
468
|
+
if (filterSourceTaskListId !== undefined) {
|
|
469
|
+
_queryParams["filter_source_task_list_id"] = filterSourceTaskListId;
|
|
470
|
+
}
|
|
463
471
|
if (filterDeadlineGte !== undefined) {
|
|
464
472
|
_queryParams["filter_deadline_gte"] = filterDeadlineGte;
|
|
465
473
|
}
|
|
@@ -579,28 +587,28 @@ class OperationsTasks {
|
|
|
579
587
|
});
|
|
580
588
|
}
|
|
581
589
|
/**
|
|
582
|
-
* Sets
|
|
590
|
+
* Sets the same status on each selected OperationsTask. Completing tasks stamps completed_at/by while other statuses clear them; missing or cross-org ids are skipped. | authz: min_org_role=operator | (OperationsTasksSetStatusReq1) -> (OperationsTasksStatusUpdateRes1)
|
|
583
591
|
*
|
|
584
|
-
* @param {
|
|
585
|
-
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
592
|
+
* @param {Chrt.operations.OperationsTasksSetStatusReq1} request
|
|
586
593
|
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
587
594
|
*
|
|
588
595
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
589
596
|
*
|
|
590
597
|
* @example
|
|
591
|
-
* await client.operations.operationsTasks.
|
|
598
|
+
* await client.operations.operationsTasks.setStatusV1({
|
|
599
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
592
600
|
* status: "not_started"
|
|
593
601
|
* })
|
|
594
602
|
*/
|
|
595
|
-
|
|
596
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
603
|
+
setStatusV1(request, requestOptions) {
|
|
604
|
+
return core.HttpResponsePromise.fromPromise(this.__setStatusV1(request, requestOptions));
|
|
597
605
|
}
|
|
598
|
-
|
|
606
|
+
__setStatusV1(request, requestOptions) {
|
|
599
607
|
return __awaiter(this, void 0, void 0, function* () {
|
|
600
608
|
var _a, _b, _c, _d;
|
|
601
609
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
602
610
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
603
|
-
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,
|
|
611
|
+
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, "operations/operations_tasks/set_status/v1"),
|
|
604
612
|
method: "PATCH",
|
|
605
613
|
headers: _headers,
|
|
606
614
|
contentType: "application/json",
|
|
@@ -634,7 +642,7 @@ class OperationsTasks {
|
|
|
634
642
|
rawResponse: _response.rawResponse,
|
|
635
643
|
});
|
|
636
644
|
case "timeout":
|
|
637
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/
|
|
645
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/set_status/v1.");
|
|
638
646
|
case "unknown":
|
|
639
647
|
throw new errors.ChrtError({
|
|
640
648
|
message: _response.error.errorMessage,
|
|
@@ -14,6 +14,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
14
14
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
15
15
|
* filter_department_id: "filter_department_id",
|
|
16
16
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
17
|
+
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
17
18
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
18
19
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
19
20
|
* }
|
|
@@ -41,6 +42,8 @@ export interface OperationsTasksExpandedListV1Request {
|
|
|
41
42
|
filter_status?: (Chrt.OperationsTaskStatusEnum | null) | (Chrt.OperationsTaskStatusEnum | null)[];
|
|
42
43
|
/** Filter to tasks this user is directly assigned to */
|
|
43
44
|
filter_assigned_user_id?: string | null;
|
|
45
|
+
/** Filter to tasks created from this OperationsTaskList */
|
|
46
|
+
filter_source_task_list_id?: string | null;
|
|
44
47
|
/** Filter to tasks with deadline >= this timestamp */
|
|
45
48
|
filter_deadline_gte?: string | null;
|
|
46
49
|
/** Filter to tasks with deadline <= this timestamp */
|
|
@@ -14,6 +14,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
14
14
|
* filter_order_off_chrt_reference_id: "filter_order_off_chrt_reference_id",
|
|
15
15
|
* filter_department_id: "filter_department_id",
|
|
16
16
|
* filter_assigned_user_id: "filter_assigned_user_id",
|
|
17
|
+
* filter_source_task_list_id: "filter_source_task_list_id",
|
|
17
18
|
* filter_deadline_gte: "2024-01-15T09:30:00Z",
|
|
18
19
|
* filter_deadline_lte: "2024-01-15T09:30:00Z"
|
|
19
20
|
* }
|
|
@@ -41,6 +42,8 @@ export interface OperationsTasksListV1Request {
|
|
|
41
42
|
filter_status?: (Chrt.OperationsTaskStatusEnum | null) | (Chrt.OperationsTaskStatusEnum | null)[];
|
|
42
43
|
/** Filter to tasks this user is directly assigned to */
|
|
43
44
|
filter_assigned_user_id?: string | null;
|
|
45
|
+
/** Filter to tasks created from this OperationsTaskList */
|
|
46
|
+
filter_source_task_list_id?: string | null;
|
|
44
47
|
/** Filter to tasks with deadline >= this timestamp */
|
|
45
48
|
filter_deadline_gte?: string | null;
|
|
46
49
|
/** Filter to tasks with deadline <= this timestamp */
|
|
@@ -5,9 +5,11 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* operations_task_ids: ["operations_task_ids"],
|
|
8
9
|
* status: "not_started"
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
|
-
export interface
|
|
12
|
+
export interface OperationsTasksSetStatusReq1 {
|
|
13
|
+
operations_task_ids: string[];
|
|
12
14
|
status: Chrt.OperationsTaskStatusEnum;
|
|
13
15
|
}
|
package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export { type OperationsTasksApplyTimeDeltaToDeadlineTimestampsReq1 } from "./Op
|
|
|
3
3
|
export { type OperationsTasksExpandedListV1Request } from "./OperationsTasksExpandedListV1Request.js";
|
|
4
4
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.js";
|
|
5
5
|
export { type OperationsTasksSetDeadlineTimestampsReq1 } from "./OperationsTasksSetDeadlineTimestampsReq1.js";
|
|
6
|
-
export { type
|
|
6
|
+
export { type OperationsTasksSetStatusReq1 } from "./OperationsTasksSetStatusReq1.js";
|
|
7
7
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.js";
|
|
8
8
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.js";
|
|
@@ -90,7 +90,7 @@ export declare class Contacts {
|
|
|
90
90
|
deleteV1(contactId: string, requestOptions?: Contacts.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
91
91
|
private __deleteV1;
|
|
92
92
|
/**
|
|
93
|
-
* Lists organization-created contacts with
|
|
93
|
+
* Lists organization-created contacts with associated organizations and accounts expanded. | authz: min_org_role=operator | () -> (ContactListRes)
|
|
94
94
|
*
|
|
95
95
|
* @param {Chrt.orgs.ContactsListV1Request} request
|
|
96
96
|
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -305,7 +305,7 @@ class Contacts {
|
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
308
|
-
* Lists organization-created contacts with
|
|
308
|
+
* Lists organization-created contacts with associated organizations and accounts expanded. | authz: min_org_role=operator | () -> (ContactListRes)
|
|
309
309
|
*
|
|
310
310
|
* @param {Chrt.orgs.ContactsListV1Request} request
|
|
311
311
|
* @param {Contacts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -88,7 +88,7 @@ export declare class OrderTemplatesNew {
|
|
|
88
88
|
resolveDateparserV1(request: Chrt.shipping.OrderTemplateNewDateparserResolveReq, requestOptions?: OrderTemplatesNew.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateNewDateparserResolveRes>;
|
|
89
89
|
private __resolveDateparserV1;
|
|
90
90
|
/**
|
|
91
|
-
* Lists order templates
|
|
91
|
+
* Lists order templates with filtering, sorting, pagination, full-text search, and party/account expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
|
|
92
92
|
*
|
|
93
93
|
* @param {Chrt.shipping.OrderTemplatesNewListV1Request} request
|
|
94
94
|
* @param {OrderTemplatesNew.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -101,8 +101,13 @@ export declare class OrderTemplatesNew {
|
|
|
101
101
|
* sort_order: "asc",
|
|
102
102
|
* page: 1,
|
|
103
103
|
* page_size: 1,
|
|
104
|
+
* search: "search",
|
|
104
105
|
* filter_archived: true,
|
|
105
106
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
107
|
+
* filter_executor_org_id: "filter_executor_org_id",
|
|
108
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
109
|
+
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
110
|
+
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
106
111
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
107
112
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
108
113
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -268,7 +268,7 @@ class OrderTemplatesNew {
|
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
270
|
/**
|
|
271
|
-
* Lists order templates
|
|
271
|
+
* Lists order templates with filtering, sorting, pagination, full-text search, and party/account expansion. | authz: min_org_role=operator | () -> (OrderTemplateNewListRes)
|
|
272
272
|
*
|
|
273
273
|
* @param {Chrt.shipping.OrderTemplatesNewListV1Request} request
|
|
274
274
|
* @param {OrderTemplatesNew.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -281,8 +281,13 @@ class OrderTemplatesNew {
|
|
|
281
281
|
* sort_order: "asc",
|
|
282
282
|
* page: 1,
|
|
283
283
|
* page_size: 1,
|
|
284
|
+
* search: "search",
|
|
284
285
|
* filter_archived: true,
|
|
285
286
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
287
|
+
* filter_executor_org_id: "filter_executor_org_id",
|
|
288
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
289
|
+
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
290
|
+
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
286
291
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
287
292
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
288
293
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -297,7 +302,7 @@ class OrderTemplatesNew {
|
|
|
297
302
|
__listV1() {
|
|
298
303
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
299
304
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
300
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
|
|
305
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_owned_by_user_id: filterOwnedByUserId, filter_executor_org_id: filterExecutorOrgId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, filter_last_used_at_timestamp_gte: filterLastUsedAtTimestampGte, filter_last_used_at_timestamp_lte: filterLastUsedAtTimestampLte, } = request;
|
|
301
306
|
const _queryParams = {};
|
|
302
307
|
if (sortBy !== undefined) {
|
|
303
308
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -311,12 +316,35 @@ class OrderTemplatesNew {
|
|
|
311
316
|
if (pageSize !== undefined) {
|
|
312
317
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
313
318
|
}
|
|
319
|
+
if (search !== undefined) {
|
|
320
|
+
_queryParams["search"] = search;
|
|
321
|
+
}
|
|
314
322
|
if (filterArchived !== undefined) {
|
|
315
323
|
_queryParams["filter_archived"] = (_c = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _c !== void 0 ? _c : null;
|
|
316
324
|
}
|
|
317
325
|
if (filterOwnedByUserId !== undefined) {
|
|
318
326
|
_queryParams["filter_owned_by_user_id"] = filterOwnedByUserId;
|
|
319
327
|
}
|
|
328
|
+
if (filterExecutorOrgId !== undefined) {
|
|
329
|
+
_queryParams["filter_executor_org_id"] = filterExecutorOrgId;
|
|
330
|
+
}
|
|
331
|
+
if (filterOffChrtExecutorOrgDataId !== undefined) {
|
|
332
|
+
_queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
|
|
333
|
+
}
|
|
334
|
+
if (filterShipperOrgId !== undefined) {
|
|
335
|
+
_queryParams["filter_shipper_org_id"] = filterShipperOrgId;
|
|
336
|
+
}
|
|
337
|
+
if (filterOffChrtShipperOrgDataId !== undefined) {
|
|
338
|
+
_queryParams["filter_off_chrt_shipper_org_data_id"] = filterOffChrtShipperOrgDataId;
|
|
339
|
+
}
|
|
340
|
+
if (filterCoordinatorShipperAccountIds !== undefined) {
|
|
341
|
+
if (Array.isArray(filterCoordinatorShipperAccountIds)) {
|
|
342
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds.map((item) => item);
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
_queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
320
348
|
if (filterCreatedAtTimestampGte !== undefined) {
|
|
321
349
|
_queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
|
|
322
350
|
}
|
|
@@ -9,8 +9,13 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* search: "search",
|
|
12
13
|
* filter_archived: true,
|
|
13
14
|
* filter_owned_by_user_id: "filter_owned_by_user_id",
|
|
15
|
+
* filter_executor_org_id: "filter_executor_org_id",
|
|
16
|
+
* filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
|
|
17
|
+
* filter_shipper_org_id: "filter_shipper_org_id",
|
|
18
|
+
* filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
|
|
14
19
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
15
20
|
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
16
21
|
* filter_last_edited_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -26,10 +31,22 @@ export interface OrderTemplatesNewListV1Request {
|
|
|
26
31
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
27
32
|
page?: number | null;
|
|
28
33
|
page_size?: number | null;
|
|
34
|
+
/** Full-text search query for template name or description. */
|
|
35
|
+
search?: string | null;
|
|
29
36
|
/** Include archived templates instead of active templates. */
|
|
30
37
|
filter_archived?: boolean | null;
|
|
31
38
|
/** Filter by the user that created the template. */
|
|
32
39
|
filter_owned_by_user_id?: string | null;
|
|
40
|
+
/** Filter by an on-CHRT executor organization ID. */
|
|
41
|
+
filter_executor_org_id?: string | null;
|
|
42
|
+
/** Filter by an off-CHRT executor organization data ID. */
|
|
43
|
+
filter_off_chrt_executor_org_data_id?: string | null;
|
|
44
|
+
/** Filter by an on-CHRT shipper organization ID. */
|
|
45
|
+
filter_shipper_org_id?: string | null;
|
|
46
|
+
/** Filter by an off-CHRT shipper organization data ID. */
|
|
47
|
+
filter_off_chrt_shipper_org_data_id?: string | null;
|
|
48
|
+
/** Filter by coordinator shipper account ID(s) assigned to template tasks. */
|
|
49
|
+
filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
|
|
33
50
|
/** Filter created_at_timestamp >= value (inclusive). */
|
|
34
51
|
filter_created_at_timestamp_gte?: string | null;
|
|
35
52
|
/** Filter created_at_timestamp <= value (inclusive). */
|
|
@@ -30,6 +30,20 @@ export declare namespace Cargos {
|
|
|
30
30
|
export declare class Cargos {
|
|
31
31
|
protected readonly _options: Cargos.Options;
|
|
32
32
|
constructor(_options?: Cargos.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Duplicates cargo and its task associations in an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} orderTemplateId
|
|
37
|
+
* @param {string} cargoKey
|
|
38
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.shipping.orderTemplatesNew.cargos.postDuplicateV1("order_template_id", "cargo_key")
|
|
44
|
+
*/
|
|
45
|
+
postDuplicateV1(orderTemplateId: string, cargoKey: string, requestOptions?: Cargos.RequestOptions): core.HttpResponsePromise<Chrt.OrderTemplateNew1>;
|
|
46
|
+
private __postDuplicateV1;
|
|
33
47
|
/**
|
|
34
48
|
* Reorders cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoReorderReq1) -> (OrderTemplateNew1)
|
|
35
49
|
*
|
|
@@ -55,6 +55,66 @@ class Cargos {
|
|
|
55
55
|
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Duplicates cargo and its task associations in an active order template. | authz: min_org_role=operator | () -> (OrderTemplateNew1)
|
|
60
|
+
*
|
|
61
|
+
* @param {string} orderTemplateId
|
|
62
|
+
* @param {string} cargoKey
|
|
63
|
+
* @param {Cargos.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.shipping.orderTemplatesNew.cargos.postDuplicateV1("order_template_id", "cargo_key")
|
|
69
|
+
*/
|
|
70
|
+
postDuplicateV1(orderTemplateId, cargoKey, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__postDuplicateV1(orderTemplateId, cargoKey, requestOptions));
|
|
72
|
+
}
|
|
73
|
+
__postDuplicateV1(orderTemplateId, cargoKey, requestOptions) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a, _b, _c, _d;
|
|
76
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
77
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
78
|
+
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/order_templates_new/cargos/duplicate/v1/${encodeURIComponent(orderTemplateId)}/${encodeURIComponent(cargoKey)}`),
|
|
79
|
+
method: "POST",
|
|
80
|
+
headers: _headers,
|
|
81
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
82
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
|
+
});
|
|
86
|
+
if (_response.ok) {
|
|
87
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
88
|
+
}
|
|
89
|
+
if (_response.error.reason === "status-code") {
|
|
90
|
+
switch (_response.error.statusCode) {
|
|
91
|
+
case 422:
|
|
92
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
93
|
+
default:
|
|
94
|
+
throw new errors.ChrtError({
|
|
95
|
+
statusCode: _response.error.statusCode,
|
|
96
|
+
body: _response.error.body,
|
|
97
|
+
rawResponse: _response.rawResponse,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
switch (_response.error.reason) {
|
|
102
|
+
case "non-json":
|
|
103
|
+
throw new errors.ChrtError({
|
|
104
|
+
statusCode: _response.error.statusCode,
|
|
105
|
+
body: _response.error.rawBody,
|
|
106
|
+
rawResponse: _response.rawResponse,
|
|
107
|
+
});
|
|
108
|
+
case "timeout":
|
|
109
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/order_templates_new/cargos/duplicate/v1/{order_template_id}/{cargo_key}.");
|
|
110
|
+
case "unknown":
|
|
111
|
+
throw new errors.ChrtError({
|
|
112
|
+
message: _response.error.errorMessage,
|
|
113
|
+
rawResponse: _response.rawResponse,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
58
118
|
/**
|
|
59
119
|
* Reorders cargo in an active order template. | authz: min_org_role=operator | (OrderTemplateNewCargoReorderReq1) -> (OrderTemplateNew1)
|
|
60
120
|
*
|
|
@@ -12,6 +12,7 @@ export interface OrderTemplateNewTaskClientUpdate1 {
|
|
|
12
12
|
coordinator_shipper_account_ids?: string[];
|
|
13
13
|
datetime_windows_dateparser_str?: Chrt.OrderTemplateNewDateTimeWindow1[];
|
|
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
|
}
|
|
@@ -66,6 +66,19 @@ export declare class Cargo {
|
|
|
66
66
|
*/
|
|
67
67
|
associateWithTaskV1(request: Chrt.shipping.orders.OrdersAssociateCargoWithTaskReq, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
68
|
private __associateWithTaskV1;
|
|
69
|
+
/**
|
|
70
|
+
* Duplicates cargo and all of its task associations within an order. | () -> (PydanticObjectId)
|
|
71
|
+
*
|
|
72
|
+
* @param {string} cargoId
|
|
73
|
+
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* await client.shipping.orders.cargo.duplicateV1("cargo_id")
|
|
79
|
+
*/
|
|
80
|
+
duplicateV1(cargoId: string, requestOptions?: Cargo.RequestOptions): core.HttpResponsePromise<string>;
|
|
81
|
+
private __duplicateV1;
|
|
69
82
|
/**
|
|
70
83
|
* Removes cargo from an order task and updates operational cargo status when applicable. | (OrdersUnassociateCargoWithTaskReq) -> (bool)
|
|
71
84
|
*
|
|
@@ -189,6 +189,65 @@ class Cargo {
|
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* Duplicates cargo and all of its task associations within an order. | () -> (PydanticObjectId)
|
|
194
|
+
*
|
|
195
|
+
* @param {string} cargoId
|
|
196
|
+
* @param {Cargo.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
+
*
|
|
198
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* await client.shipping.orders.cargo.duplicateV1("cargo_id")
|
|
202
|
+
*/
|
|
203
|
+
duplicateV1(cargoId, requestOptions) {
|
|
204
|
+
return core.HttpResponsePromise.fromPromise(this.__duplicateV1(cargoId, requestOptions));
|
|
205
|
+
}
|
|
206
|
+
__duplicateV1(cargoId, requestOptions) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
var _a, _b, _c, _d;
|
|
209
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
210
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
211
|
+
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/cargo/duplicate/v1/${encodeURIComponent(cargoId)}`),
|
|
212
|
+
method: "POST",
|
|
213
|
+
headers: _headers,
|
|
214
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
215
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
216
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
217
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
218
|
+
});
|
|
219
|
+
if (_response.ok) {
|
|
220
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
221
|
+
}
|
|
222
|
+
if (_response.error.reason === "status-code") {
|
|
223
|
+
switch (_response.error.statusCode) {
|
|
224
|
+
case 422:
|
|
225
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
226
|
+
default:
|
|
227
|
+
throw new errors.ChrtError({
|
|
228
|
+
statusCode: _response.error.statusCode,
|
|
229
|
+
body: _response.error.body,
|
|
230
|
+
rawResponse: _response.rawResponse,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
switch (_response.error.reason) {
|
|
235
|
+
case "non-json":
|
|
236
|
+
throw new errors.ChrtError({
|
|
237
|
+
statusCode: _response.error.statusCode,
|
|
238
|
+
body: _response.error.rawBody,
|
|
239
|
+
rawResponse: _response.rawResponse,
|
|
240
|
+
});
|
|
241
|
+
case "timeout":
|
|
242
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/orders/cargo/duplicate/v1/{cargo_id}.");
|
|
243
|
+
case "unknown":
|
|
244
|
+
throw new errors.ChrtError({
|
|
245
|
+
message: _response.error.errorMessage,
|
|
246
|
+
rawResponse: _response.rawResponse,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
192
251
|
/**
|
|
193
252
|
* Removes cargo from an order task and updates operational cargo status when applicable. | (OrdersUnassociateCargoWithTaskReq) -> (bool)
|
|
194
253
|
*
|