@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/Client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as core from "./core/index.js";
|
|
|
6
6
|
import { Flights } from "./api/resources/flights/client/Client.js";
|
|
7
7
|
import { Orgs } from "./api/resources/orgs/client/Client.js";
|
|
8
8
|
import { Utils } from "./api/resources/utils/client/Client.js";
|
|
9
|
+
import { Agent } from "./api/resources/agent/client/Client.js";
|
|
9
10
|
import { Analytics } from "./api/resources/analytics/client/Client.js";
|
|
10
11
|
import { Billing } from "./api/resources/billing/client/Client.js";
|
|
11
12
|
import { BillingNew } from "./api/resources/billingNew/client/Client.js";
|
|
@@ -45,6 +46,7 @@ export declare class ChrtClient {
|
|
|
45
46
|
protected _flights: Flights | undefined;
|
|
46
47
|
protected _orgs: Orgs | undefined;
|
|
47
48
|
protected _utils: Utils | undefined;
|
|
49
|
+
protected _agent: Agent | undefined;
|
|
48
50
|
protected _analytics: Analytics | undefined;
|
|
49
51
|
protected _billing: Billing | undefined;
|
|
50
52
|
protected _billingNew: BillingNew | undefined;
|
|
@@ -60,6 +62,7 @@ export declare class ChrtClient {
|
|
|
60
62
|
get flights(): Flights;
|
|
61
63
|
get orgs(): Orgs;
|
|
62
64
|
get utils(): Utils;
|
|
65
|
+
get agent(): Agent;
|
|
63
66
|
get analytics(): Analytics;
|
|
64
67
|
get billing(): Billing;
|
|
65
68
|
get billingNew(): BillingNew;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -42,24 +42,25 @@ const headers_js_1 = require("./core/headers.js");
|
|
|
42
42
|
const Client_js_1 = require("./api/resources/flights/client/Client.js");
|
|
43
43
|
const Client_js_2 = require("./api/resources/orgs/client/Client.js");
|
|
44
44
|
const Client_js_3 = require("./api/resources/utils/client/Client.js");
|
|
45
|
-
const Client_js_4 = require("./api/resources/
|
|
46
|
-
const Client_js_5 = require("./api/resources/
|
|
47
|
-
const Client_js_6 = require("./api/resources/
|
|
48
|
-
const Client_js_7 = require("./api/resources/
|
|
49
|
-
const Client_js_8 = require("./api/resources/
|
|
50
|
-
const Client_js_9 = require("./api/resources/
|
|
51
|
-
const Client_js_10 = require("./api/resources/
|
|
52
|
-
const Client_js_11 = require("./api/resources/
|
|
53
|
-
const Client_js_12 = require("./api/resources/
|
|
54
|
-
const Client_js_13 = require("./api/resources/
|
|
55
|
-
const Client_js_14 = require("./api/resources/
|
|
45
|
+
const Client_js_4 = require("./api/resources/agent/client/Client.js");
|
|
46
|
+
const Client_js_5 = require("./api/resources/analytics/client/Client.js");
|
|
47
|
+
const Client_js_6 = require("./api/resources/billing/client/Client.js");
|
|
48
|
+
const Client_js_7 = require("./api/resources/billingNew/client/Client.js");
|
|
49
|
+
const Client_js_8 = require("./api/resources/integrations/client/Client.js");
|
|
50
|
+
const Client_js_9 = require("./api/resources/listing/client/Client.js");
|
|
51
|
+
const Client_js_10 = require("./api/resources/notifications/client/Client.js");
|
|
52
|
+
const Client_js_11 = require("./api/resources/operations/client/Client.js");
|
|
53
|
+
const Client_js_12 = require("./api/resources/shipping/client/Client.js");
|
|
54
|
+
const Client_js_13 = require("./api/resources/tracking/client/Client.js");
|
|
55
|
+
const Client_js_14 = require("./api/resources/trackingIntegrations/client/Client.js");
|
|
56
|
+
const Client_js_15 = require("./api/resources/users/client/Client.js");
|
|
56
57
|
class ChrtClient {
|
|
57
58
|
constructor(_options = {}) {
|
|
58
59
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
59
60
|
"X-Fern-Language": "JavaScript",
|
|
60
61
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
61
|
-
"X-Fern-SDK-Version": "1.
|
|
62
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
62
|
+
"X-Fern-SDK-Version": "1.929.0",
|
|
63
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.929.0",
|
|
63
64
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
64
65
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
65
66
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -76,49 +77,53 @@ class ChrtClient {
|
|
|
76
77
|
var _a;
|
|
77
78
|
return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Client_js_3.Utils(this._options)));
|
|
78
79
|
}
|
|
80
|
+
get agent() {
|
|
81
|
+
var _a;
|
|
82
|
+
return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Client_js_4.Agent(this._options)));
|
|
83
|
+
}
|
|
79
84
|
get analytics() {
|
|
80
85
|
var _a;
|
|
81
|
-
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new
|
|
86
|
+
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_js_5.Analytics(this._options)));
|
|
82
87
|
}
|
|
83
88
|
get billing() {
|
|
84
89
|
var _a;
|
|
85
|
-
return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new
|
|
90
|
+
return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new Client_js_6.Billing(this._options)));
|
|
86
91
|
}
|
|
87
92
|
get billingNew() {
|
|
88
93
|
var _a;
|
|
89
|
-
return ((_a = this._billingNew) !== null && _a !== void 0 ? _a : (this._billingNew = new
|
|
94
|
+
return ((_a = this._billingNew) !== null && _a !== void 0 ? _a : (this._billingNew = new Client_js_7.BillingNew(this._options)));
|
|
90
95
|
}
|
|
91
96
|
get integrations() {
|
|
92
97
|
var _a;
|
|
93
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new
|
|
98
|
+
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_8.Integrations(this._options)));
|
|
94
99
|
}
|
|
95
100
|
get listing() {
|
|
96
101
|
var _a;
|
|
97
|
-
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new
|
|
102
|
+
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Client_js_9.Listing(this._options)));
|
|
98
103
|
}
|
|
99
104
|
get notifications() {
|
|
100
105
|
var _a;
|
|
101
|
-
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new
|
|
106
|
+
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_10.Notifications(this._options)));
|
|
102
107
|
}
|
|
103
108
|
get operations() {
|
|
104
109
|
var _a;
|
|
105
|
-
return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new
|
|
110
|
+
return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new Client_js_11.Operations(this._options)));
|
|
106
111
|
}
|
|
107
112
|
get shipping() {
|
|
108
113
|
var _a;
|
|
109
|
-
return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new
|
|
114
|
+
return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_12.Shipping(this._options)));
|
|
110
115
|
}
|
|
111
116
|
get tracking() {
|
|
112
117
|
var _a;
|
|
113
|
-
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new
|
|
118
|
+
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_13.Tracking(this._options)));
|
|
114
119
|
}
|
|
115
120
|
get trackingIntegrations() {
|
|
116
121
|
var _a;
|
|
117
|
-
return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new
|
|
122
|
+
return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new Client_js_14.TrackingIntegrations(this._options)));
|
|
118
123
|
}
|
|
119
124
|
get users() {
|
|
120
125
|
var _a;
|
|
121
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
126
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_15.Users(this._options)));
|
|
122
127
|
}
|
|
123
128
|
}
|
|
124
129
|
exports.ChrtClient = ChrtClient;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../core/index.js";
|
|
6
|
+
import { OrderInformation } from "../resources/orderInformation/client/Client.js";
|
|
7
|
+
export declare namespace Agent {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare class Agent {
|
|
19
|
+
protected readonly _options: Agent.Options;
|
|
20
|
+
protected _orderInformation: OrderInformation | undefined;
|
|
21
|
+
constructor(_options?: Agent.Options);
|
|
22
|
+
get orderInformation(): OrderInformation;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Agent = void 0;
|
|
7
|
+
const Client_js_1 = require("../resources/orderInformation/client/Client.js");
|
|
8
|
+
class Agent {
|
|
9
|
+
constructor(_options = {}) {
|
|
10
|
+
this._options = _options;
|
|
11
|
+
}
|
|
12
|
+
get orderInformation() {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = this._orderInformation) !== null && _a !== void 0 ? _a : (this._orderInformation = new Client_js_1.OrderInformation(this._options)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.Agent = Agent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.orderInformation = void 0;
|
|
40
|
+
exports.orderInformation = __importStar(require("./orderInformation/index.js"));
|
|
41
|
+
__exportStar(require("./orderInformation/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace OrderInformation {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class OrderInformation {
|
|
31
|
+
protected readonly _options: OrderInformation.Options;
|
|
32
|
+
constructor(_options?: OrderInformation.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Adds a message to an existing order-information conversation for its owner. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (OrderInformationConversationMessageReq) -> (OrderInformationConversationRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} conversationId
|
|
37
|
+
* @param {Chrt.agent.OrderInformationConversationMessageReq} request
|
|
38
|
+
* @param {OrderInformation.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.agent.orderInformation.messageV1("conversation_id", {
|
|
44
|
+
* message: "message"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
messageV1(conversationId: string, request: Chrt.agent.OrderInformationConversationMessageReq, requestOptions?: OrderInformation.RequestOptions): core.HttpResponsePromise<Chrt.OrderInformationConversationRes>;
|
|
48
|
+
private __messageV1;
|
|
49
|
+
/**
|
|
50
|
+
* Starts an order-information conversation for the authenticated operator. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (OrderInformationConversationStartReq) -> (OrderInformationConversationRes)
|
|
51
|
+
*
|
|
52
|
+
* @param {Chrt.agent.OrderInformationConversationStartReq} request
|
|
53
|
+
* @param {OrderInformation.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.agent.orderInformation.startV1({
|
|
59
|
+
* message: "message"
|
|
60
|
+
* })
|
|
61
|
+
*/
|
|
62
|
+
startV1(request: Chrt.agent.OrderInformationConversationStartReq, requestOptions?: OrderInformation.RequestOptions): core.HttpResponsePromise<Chrt.OrderInformationConversationRes>;
|
|
63
|
+
private __startV1;
|
|
64
|
+
/**
|
|
65
|
+
* Updates an order-information conversation's title for its owner. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (OrderInformationConversationClientUpdate1) -> (bool)
|
|
66
|
+
*
|
|
67
|
+
* @param {string} conversationId
|
|
68
|
+
* @param {Chrt.agent.OrderInformationConversationClientUpdate1} request
|
|
69
|
+
* @param {OrderInformation.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.agent.orderInformation.updateV1("conversation_id")
|
|
75
|
+
*/
|
|
76
|
+
updateV1(conversationId: string, request?: Chrt.agent.OrderInformationConversationClientUpdate1, requestOptions?: OrderInformation.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
77
|
+
private __updateV1;
|
|
78
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.OrderInformation = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
+
class OrderInformation {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Adds a message to an existing order-information conversation for its owner. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (OrderInformationConversationMessageReq) -> (OrderInformationConversationRes)
|
|
60
|
+
*
|
|
61
|
+
* @param {string} conversationId
|
|
62
|
+
* @param {Chrt.agent.OrderInformationConversationMessageReq} request
|
|
63
|
+
* @param {OrderInformation.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.agent.orderInformation.messageV1("conversation_id", {
|
|
69
|
+
* message: "message"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
messageV1(conversationId, request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__messageV1(conversationId, request, requestOptions));
|
|
74
|
+
}
|
|
75
|
+
__messageV1(conversationId, request, requestOptions) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
var _a, _b, _c, _d;
|
|
78
|
+
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);
|
|
79
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
80
|
+
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, `agent/order_information/message/v1/${encodeURIComponent(conversationId)}`),
|
|
81
|
+
method: "POST",
|
|
82
|
+
headers: _headers,
|
|
83
|
+
contentType: "application/json",
|
|
84
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
85
|
+
requestType: "json",
|
|
86
|
+
body: request,
|
|
87
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
88
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
|
+
});
|
|
91
|
+
if (_response.ok) {
|
|
92
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
93
|
+
}
|
|
94
|
+
if (_response.error.reason === "status-code") {
|
|
95
|
+
switch (_response.error.statusCode) {
|
|
96
|
+
case 422:
|
|
97
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
98
|
+
default:
|
|
99
|
+
throw new errors.ChrtError({
|
|
100
|
+
statusCode: _response.error.statusCode,
|
|
101
|
+
body: _response.error.body,
|
|
102
|
+
rawResponse: _response.rawResponse,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
switch (_response.error.reason) {
|
|
107
|
+
case "non-json":
|
|
108
|
+
throw new errors.ChrtError({
|
|
109
|
+
statusCode: _response.error.statusCode,
|
|
110
|
+
body: _response.error.rawBody,
|
|
111
|
+
rawResponse: _response.rawResponse,
|
|
112
|
+
});
|
|
113
|
+
case "timeout":
|
|
114
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /agent/order_information/message/v1/{conversation_id}.");
|
|
115
|
+
case "unknown":
|
|
116
|
+
throw new errors.ChrtError({
|
|
117
|
+
message: _response.error.errorMessage,
|
|
118
|
+
rawResponse: _response.rawResponse,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Starts an order-information conversation for the authenticated operator. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (OrderInformationConversationStartReq) -> (OrderInformationConversationRes)
|
|
125
|
+
*
|
|
126
|
+
* @param {Chrt.agent.OrderInformationConversationStartReq} request
|
|
127
|
+
* @param {OrderInformation.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* await client.agent.orderInformation.startV1({
|
|
133
|
+
* message: "message"
|
|
134
|
+
* })
|
|
135
|
+
*/
|
|
136
|
+
startV1(request, requestOptions) {
|
|
137
|
+
return core.HttpResponsePromise.fromPromise(this.__startV1(request, requestOptions));
|
|
138
|
+
}
|
|
139
|
+
__startV1(request, requestOptions) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
var _a, _b, _c, _d;
|
|
142
|
+
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);
|
|
143
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
144
|
+
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, "agent/order_information/start/v1"),
|
|
145
|
+
method: "POST",
|
|
146
|
+
headers: _headers,
|
|
147
|
+
contentType: "application/json",
|
|
148
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
149
|
+
requestType: "json",
|
|
150
|
+
body: request,
|
|
151
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
152
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
153
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
154
|
+
});
|
|
155
|
+
if (_response.ok) {
|
|
156
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
157
|
+
}
|
|
158
|
+
if (_response.error.reason === "status-code") {
|
|
159
|
+
switch (_response.error.statusCode) {
|
|
160
|
+
case 422:
|
|
161
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
162
|
+
default:
|
|
163
|
+
throw new errors.ChrtError({
|
|
164
|
+
statusCode: _response.error.statusCode,
|
|
165
|
+
body: _response.error.body,
|
|
166
|
+
rawResponse: _response.rawResponse,
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
switch (_response.error.reason) {
|
|
171
|
+
case "non-json":
|
|
172
|
+
throw new errors.ChrtError({
|
|
173
|
+
statusCode: _response.error.statusCode,
|
|
174
|
+
body: _response.error.rawBody,
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
});
|
|
177
|
+
case "timeout":
|
|
178
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /agent/order_information/start/v1.");
|
|
179
|
+
case "unknown":
|
|
180
|
+
throw new errors.ChrtError({
|
|
181
|
+
message: _response.error.errorMessage,
|
|
182
|
+
rawResponse: _response.rawResponse,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Updates an order-information conversation's title for its owner. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (OrderInformationConversationClientUpdate1) -> (bool)
|
|
189
|
+
*
|
|
190
|
+
* @param {string} conversationId
|
|
191
|
+
* @param {Chrt.agent.OrderInformationConversationClientUpdate1} request
|
|
192
|
+
* @param {OrderInformation.RequestOptions} requestOptions - Request-specific configuration.
|
|
193
|
+
*
|
|
194
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* await client.agent.orderInformation.updateV1("conversation_id")
|
|
198
|
+
*/
|
|
199
|
+
updateV1(conversationId, request = {}, requestOptions) {
|
|
200
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(conversationId, request, requestOptions));
|
|
201
|
+
}
|
|
202
|
+
__updateV1(conversationId_1) {
|
|
203
|
+
return __awaiter(this, arguments, void 0, function* (conversationId, request = {}, requestOptions) {
|
|
204
|
+
var _a, _b, _c, _d;
|
|
205
|
+
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);
|
|
206
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
207
|
+
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, `agent/order_information/update/v1/${encodeURIComponent(conversationId)}`),
|
|
208
|
+
method: "PATCH",
|
|
209
|
+
headers: _headers,
|
|
210
|
+
contentType: "application/json",
|
|
211
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
212
|
+
requestType: "json",
|
|
213
|
+
body: request,
|
|
214
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
215
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
216
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
217
|
+
});
|
|
218
|
+
if (_response.ok) {
|
|
219
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
220
|
+
}
|
|
221
|
+
if (_response.error.reason === "status-code") {
|
|
222
|
+
switch (_response.error.statusCode) {
|
|
223
|
+
case 422:
|
|
224
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
225
|
+
default:
|
|
226
|
+
throw new errors.ChrtError({
|
|
227
|
+
statusCode: _response.error.statusCode,
|
|
228
|
+
body: _response.error.body,
|
|
229
|
+
rawResponse: _response.rawResponse,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
switch (_response.error.reason) {
|
|
234
|
+
case "non-json":
|
|
235
|
+
throw new errors.ChrtError({
|
|
236
|
+
statusCode: _response.error.statusCode,
|
|
237
|
+
body: _response.error.rawBody,
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
});
|
|
240
|
+
case "timeout":
|
|
241
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /agent/order_information/update/v1/{conversation_id}.");
|
|
242
|
+
case "unknown":
|
|
243
|
+
throw new errors.ChrtError({
|
|
244
|
+
message: _response.error.errorMessage,
|
|
245
|
+
rawResponse: _response.rawResponse,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
_getAuthorizationHeader() {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
253
|
+
if (bearer != null) {
|
|
254
|
+
return `Bearer ${bearer}`;
|
|
255
|
+
}
|
|
256
|
+
return undefined;
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
exports.OrderInformation = OrderInformation;
|
|
@@ -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("./requests/index.js"), exports);
|