@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
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../index.mjs";
|
|
7
|
+
export declare namespace SessionGeofences {
|
|
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 SessionGeofences {
|
|
31
|
+
protected readonly _options: SessionGeofences.Options;
|
|
32
|
+
constructor(_options?: SessionGeofences.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Adds a geofence to an active session. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientCreate1) -> (Session2)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} sessionId
|
|
37
|
+
* @param {Chrt.SessionGeofenceClientCreate1} request
|
|
38
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.tracking.sessionGeofences.addV1("session_id", {
|
|
44
|
+
* display_name: "display_name",
|
|
45
|
+
* location: {
|
|
46
|
+
* geometry: {
|
|
47
|
+
* coordinates: [],
|
|
48
|
+
* type: "Point"
|
|
49
|
+
* },
|
|
50
|
+
* type: "Feature"
|
|
51
|
+
* },
|
|
52
|
+
* radius_miles: 1.1
|
|
53
|
+
* })
|
|
54
|
+
*/
|
|
55
|
+
addV1(sessionId: string, request: Chrt.SessionGeofenceClientCreate1, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
|
|
56
|
+
private __addV1;
|
|
57
|
+
/**
|
|
58
|
+
* Replaces an active session's geofences from an active organization template. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceApplyTemplateReq) -> (Session2)
|
|
59
|
+
*
|
|
60
|
+
* @param {string} sessionId
|
|
61
|
+
* @param {Chrt.tracking.SessionGeofenceApplyTemplateReq} request
|
|
62
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.tracking.sessionGeofences.applyTemplateV1("session_id", {
|
|
68
|
+
* geofence_template_id: "geofence_template_id"
|
|
69
|
+
* })
|
|
70
|
+
*/
|
|
71
|
+
applyTemplateV1(sessionId: string, request: Chrt.tracking.SessionGeofenceApplyTemplateReq, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
|
|
72
|
+
private __applyTemplateV1;
|
|
73
|
+
/**
|
|
74
|
+
* Reorders an active session's geofences using an exact ID permutation. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceReorderReq) -> (Session2)
|
|
75
|
+
*
|
|
76
|
+
* @param {string} sessionId
|
|
77
|
+
* @param {Chrt.tracking.SessionGeofenceReorderReq} request
|
|
78
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.tracking.sessionGeofences.reorderV1("session_id")
|
|
84
|
+
*/
|
|
85
|
+
reorderV1(sessionId: string, request?: Chrt.tracking.SessionGeofenceReorderReq, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
|
|
86
|
+
private __reorderV1;
|
|
87
|
+
/**
|
|
88
|
+
* Updates a session geofence, resetting entry state only when location or radius changes. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientUpdate1) -> (Session2)
|
|
89
|
+
*
|
|
90
|
+
* @param {string} sessionId
|
|
91
|
+
* @param {string} geofenceId
|
|
92
|
+
* @param {Chrt.tracking.SessionGeofenceClientUpdate1} request
|
|
93
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* await client.tracking.sessionGeofences.updateV1("session_id", "geofence_id")
|
|
99
|
+
*/
|
|
100
|
+
updateV1(sessionId: string, geofenceId: string, request?: Chrt.tracking.SessionGeofenceClientUpdate1, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
|
|
101
|
+
private __updateV1;
|
|
102
|
+
/**
|
|
103
|
+
* Removes a geofence from an active session. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
|
|
104
|
+
*
|
|
105
|
+
* @param {string} sessionId
|
|
106
|
+
* @param {string} geofenceId
|
|
107
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* await client.tracking.sessionGeofences.removeV1("session_id", "geofence_id")
|
|
113
|
+
*/
|
|
114
|
+
removeV1(sessionId: string, geofenceId: string, requestOptions?: SessionGeofences.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
|
|
115
|
+
private __removeV1;
|
|
116
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
117
|
+
}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
|
+
export class SessionGeofences {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Adds a geofence to an active session. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientCreate1) -> (Session2)
|
|
24
|
+
*
|
|
25
|
+
* @param {string} sessionId
|
|
26
|
+
* @param {Chrt.SessionGeofenceClientCreate1} request
|
|
27
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.tracking.sessionGeofences.addV1("session_id", {
|
|
33
|
+
* display_name: "display_name",
|
|
34
|
+
* location: {
|
|
35
|
+
* geometry: {
|
|
36
|
+
* coordinates: [],
|
|
37
|
+
* type: "Point"
|
|
38
|
+
* },
|
|
39
|
+
* type: "Feature"
|
|
40
|
+
* },
|
|
41
|
+
* radius_miles: 1.1
|
|
42
|
+
* })
|
|
43
|
+
*/
|
|
44
|
+
addV1(sessionId, request, requestOptions) {
|
|
45
|
+
return core.HttpResponsePromise.fromPromise(this.__addV1(sessionId, request, requestOptions));
|
|
46
|
+
}
|
|
47
|
+
__addV1(sessionId, request, requestOptions) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
51
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
52
|
+
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, `tracking/sessions/geofences/add/v1/${encodeURIComponent(sessionId)}`),
|
|
53
|
+
method: "POST",
|
|
54
|
+
headers: _headers,
|
|
55
|
+
contentType: "application/json",
|
|
56
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
57
|
+
requestType: "json",
|
|
58
|
+
body: request,
|
|
59
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
60
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
61
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
62
|
+
});
|
|
63
|
+
if (_response.ok) {
|
|
64
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
65
|
+
}
|
|
66
|
+
if (_response.error.reason === "status-code") {
|
|
67
|
+
switch (_response.error.statusCode) {
|
|
68
|
+
case 422:
|
|
69
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
70
|
+
default:
|
|
71
|
+
throw new errors.ChrtError({
|
|
72
|
+
statusCode: _response.error.statusCode,
|
|
73
|
+
body: _response.error.body,
|
|
74
|
+
rawResponse: _response.rawResponse,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
switch (_response.error.reason) {
|
|
79
|
+
case "non-json":
|
|
80
|
+
throw new errors.ChrtError({
|
|
81
|
+
statusCode: _response.error.statusCode,
|
|
82
|
+
body: _response.error.rawBody,
|
|
83
|
+
rawResponse: _response.rawResponse,
|
|
84
|
+
});
|
|
85
|
+
case "timeout":
|
|
86
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/add/v1/{session_id}.");
|
|
87
|
+
case "unknown":
|
|
88
|
+
throw new errors.ChrtError({
|
|
89
|
+
message: _response.error.errorMessage,
|
|
90
|
+
rawResponse: _response.rawResponse,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Replaces an active session's geofences from an active organization template. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceApplyTemplateReq) -> (Session2)
|
|
97
|
+
*
|
|
98
|
+
* @param {string} sessionId
|
|
99
|
+
* @param {Chrt.tracking.SessionGeofenceApplyTemplateReq} request
|
|
100
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.tracking.sessionGeofences.applyTemplateV1("session_id", {
|
|
106
|
+
* geofence_template_id: "geofence_template_id"
|
|
107
|
+
* })
|
|
108
|
+
*/
|
|
109
|
+
applyTemplateV1(sessionId, request, requestOptions) {
|
|
110
|
+
return core.HttpResponsePromise.fromPromise(this.__applyTemplateV1(sessionId, request, requestOptions));
|
|
111
|
+
}
|
|
112
|
+
__applyTemplateV1(sessionId, request, requestOptions) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
var _a, _b, _c, _d;
|
|
115
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
116
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
117
|
+
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, `tracking/sessions/geofences/apply_template/v1/${encodeURIComponent(sessionId)}`),
|
|
118
|
+
method: "POST",
|
|
119
|
+
headers: _headers,
|
|
120
|
+
contentType: "application/json",
|
|
121
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
122
|
+
requestType: "json",
|
|
123
|
+
body: request,
|
|
124
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
125
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
126
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
127
|
+
});
|
|
128
|
+
if (_response.ok) {
|
|
129
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
130
|
+
}
|
|
131
|
+
if (_response.error.reason === "status-code") {
|
|
132
|
+
switch (_response.error.statusCode) {
|
|
133
|
+
case 422:
|
|
134
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
135
|
+
default:
|
|
136
|
+
throw new errors.ChrtError({
|
|
137
|
+
statusCode: _response.error.statusCode,
|
|
138
|
+
body: _response.error.body,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
switch (_response.error.reason) {
|
|
144
|
+
case "non-json":
|
|
145
|
+
throw new errors.ChrtError({
|
|
146
|
+
statusCode: _response.error.statusCode,
|
|
147
|
+
body: _response.error.rawBody,
|
|
148
|
+
rawResponse: _response.rawResponse,
|
|
149
|
+
});
|
|
150
|
+
case "timeout":
|
|
151
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/apply_template/v1/{session_id}.");
|
|
152
|
+
case "unknown":
|
|
153
|
+
throw new errors.ChrtError({
|
|
154
|
+
message: _response.error.errorMessage,
|
|
155
|
+
rawResponse: _response.rawResponse,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Reorders an active session's geofences using an exact ID permutation. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceReorderReq) -> (Session2)
|
|
162
|
+
*
|
|
163
|
+
* @param {string} sessionId
|
|
164
|
+
* @param {Chrt.tracking.SessionGeofenceReorderReq} request
|
|
165
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
|
+
*
|
|
167
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* await client.tracking.sessionGeofences.reorderV1("session_id")
|
|
171
|
+
*/
|
|
172
|
+
reorderV1(sessionId, request = {}, requestOptions) {
|
|
173
|
+
return core.HttpResponsePromise.fromPromise(this.__reorderV1(sessionId, request, requestOptions));
|
|
174
|
+
}
|
|
175
|
+
__reorderV1(sessionId_1) {
|
|
176
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
|
|
177
|
+
var _a, _b, _c, _d;
|
|
178
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
179
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
180
|
+
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, `tracking/sessions/geofences/reorder/v1/${encodeURIComponent(sessionId)}`),
|
|
181
|
+
method: "POST",
|
|
182
|
+
headers: _headers,
|
|
183
|
+
contentType: "application/json",
|
|
184
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
185
|
+
requestType: "json",
|
|
186
|
+
body: request,
|
|
187
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
188
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
189
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
190
|
+
});
|
|
191
|
+
if (_response.ok) {
|
|
192
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
193
|
+
}
|
|
194
|
+
if (_response.error.reason === "status-code") {
|
|
195
|
+
switch (_response.error.statusCode) {
|
|
196
|
+
case 422:
|
|
197
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
198
|
+
default:
|
|
199
|
+
throw new errors.ChrtError({
|
|
200
|
+
statusCode: _response.error.statusCode,
|
|
201
|
+
body: _response.error.body,
|
|
202
|
+
rawResponse: _response.rawResponse,
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
switch (_response.error.reason) {
|
|
207
|
+
case "non-json":
|
|
208
|
+
throw new errors.ChrtError({
|
|
209
|
+
statusCode: _response.error.statusCode,
|
|
210
|
+
body: _response.error.rawBody,
|
|
211
|
+
rawResponse: _response.rawResponse,
|
|
212
|
+
});
|
|
213
|
+
case "timeout":
|
|
214
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/geofences/reorder/v1/{session_id}.");
|
|
215
|
+
case "unknown":
|
|
216
|
+
throw new errors.ChrtError({
|
|
217
|
+
message: _response.error.errorMessage,
|
|
218
|
+
rawResponse: _response.rawResponse,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Updates a session geofence, resetting entry state only when location or radius changes. | auth: api_key | authz: min_org_role=operator | (SessionGeofenceClientUpdate1) -> (Session2)
|
|
225
|
+
*
|
|
226
|
+
* @param {string} sessionId
|
|
227
|
+
* @param {string} geofenceId
|
|
228
|
+
* @param {Chrt.tracking.SessionGeofenceClientUpdate1} request
|
|
229
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
230
|
+
*
|
|
231
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* await client.tracking.sessionGeofences.updateV1("session_id", "geofence_id")
|
|
235
|
+
*/
|
|
236
|
+
updateV1(sessionId, geofenceId, request = {}, requestOptions) {
|
|
237
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(sessionId, geofenceId, request, requestOptions));
|
|
238
|
+
}
|
|
239
|
+
__updateV1(sessionId_1, geofenceId_1) {
|
|
240
|
+
return __awaiter(this, arguments, void 0, function* (sessionId, geofenceId, request = {}, requestOptions) {
|
|
241
|
+
var _a, _b, _c, _d;
|
|
242
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
243
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
244
|
+
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, `tracking/sessions/geofences/update/v1/${encodeURIComponent(sessionId)}/${encodeURIComponent(geofenceId)}`),
|
|
245
|
+
method: "PATCH",
|
|
246
|
+
headers: _headers,
|
|
247
|
+
contentType: "application/json",
|
|
248
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
249
|
+
requestType: "json",
|
|
250
|
+
body: request,
|
|
251
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
252
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
253
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
254
|
+
});
|
|
255
|
+
if (_response.ok) {
|
|
256
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
257
|
+
}
|
|
258
|
+
if (_response.error.reason === "status-code") {
|
|
259
|
+
switch (_response.error.statusCode) {
|
|
260
|
+
case 422:
|
|
261
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
262
|
+
default:
|
|
263
|
+
throw new errors.ChrtError({
|
|
264
|
+
statusCode: _response.error.statusCode,
|
|
265
|
+
body: _response.error.body,
|
|
266
|
+
rawResponse: _response.rawResponse,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
switch (_response.error.reason) {
|
|
271
|
+
case "non-json":
|
|
272
|
+
throw new errors.ChrtError({
|
|
273
|
+
statusCode: _response.error.statusCode,
|
|
274
|
+
body: _response.error.rawBody,
|
|
275
|
+
rawResponse: _response.rawResponse,
|
|
276
|
+
});
|
|
277
|
+
case "timeout":
|
|
278
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /tracking/sessions/geofences/update/v1/{session_id}/{geofence_id}.");
|
|
279
|
+
case "unknown":
|
|
280
|
+
throw new errors.ChrtError({
|
|
281
|
+
message: _response.error.errorMessage,
|
|
282
|
+
rawResponse: _response.rawResponse,
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Removes a geofence from an active session. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
|
|
289
|
+
*
|
|
290
|
+
* @param {string} sessionId
|
|
291
|
+
* @param {string} geofenceId
|
|
292
|
+
* @param {SessionGeofences.RequestOptions} requestOptions - Request-specific configuration.
|
|
293
|
+
*
|
|
294
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* await client.tracking.sessionGeofences.removeV1("session_id", "geofence_id")
|
|
298
|
+
*/
|
|
299
|
+
removeV1(sessionId, geofenceId, requestOptions) {
|
|
300
|
+
return core.HttpResponsePromise.fromPromise(this.__removeV1(sessionId, geofenceId, requestOptions));
|
|
301
|
+
}
|
|
302
|
+
__removeV1(sessionId, geofenceId, requestOptions) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
var _a, _b, _c, _d;
|
|
305
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
306
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
307
|
+
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, `tracking/sessions/geofences/v1/${encodeURIComponent(sessionId)}/${encodeURIComponent(geofenceId)}`),
|
|
308
|
+
method: "DELETE",
|
|
309
|
+
headers: _headers,
|
|
310
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
311
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
312
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
313
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
314
|
+
});
|
|
315
|
+
if (_response.ok) {
|
|
316
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
317
|
+
}
|
|
318
|
+
if (_response.error.reason === "status-code") {
|
|
319
|
+
switch (_response.error.statusCode) {
|
|
320
|
+
case 422:
|
|
321
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
322
|
+
default:
|
|
323
|
+
throw new errors.ChrtError({
|
|
324
|
+
statusCode: _response.error.statusCode,
|
|
325
|
+
body: _response.error.body,
|
|
326
|
+
rawResponse: _response.rawResponse,
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
switch (_response.error.reason) {
|
|
331
|
+
case "non-json":
|
|
332
|
+
throw new errors.ChrtError({
|
|
333
|
+
statusCode: _response.error.statusCode,
|
|
334
|
+
body: _response.error.rawBody,
|
|
335
|
+
rawResponse: _response.rawResponse,
|
|
336
|
+
});
|
|
337
|
+
case "timeout":
|
|
338
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /tracking/sessions/geofences/v1/{session_id}/{geofence_id}.");
|
|
339
|
+
case "unknown":
|
|
340
|
+
throw new errors.ChrtError({
|
|
341
|
+
message: _response.error.errorMessage,
|
|
342
|
+
rawResponse: _response.rawResponse,
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
_getAuthorizationHeader() {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
350
|
+
if (bearer != null) {
|
|
351
|
+
return `Bearer ${bearer}`;
|
|
352
|
+
}
|
|
353
|
+
return undefined;
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface SessionGeofenceClientUpdate1 {
|
|
10
|
+
display_name?: string | null;
|
|
11
|
+
location?: Chrt.GeofencePointLocationFeature1 | null;
|
|
12
|
+
radius_miles?: number | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -31,9 +31,9 @@ export declare class Sessions {
|
|
|
31
31
|
protected readonly _options: Sessions.Options;
|
|
32
32
|
constructor(_options?: Sessions.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Creates a
|
|
34
|
+
* Creates a tracking session with ordered geofences or an organization template and links its device. | auth: api_key | authz: min_org_role=operator | (SessionsCreateV1Req) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
|
-
* @param {Chrt.tracking.
|
|
36
|
+
* @param {Chrt.tracking.SessionsCreateV1Req} request
|
|
37
37
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -45,7 +45,7 @@ export declare class Sessions {
|
|
|
45
45
|
* schema_version: 1
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
createSessionV1(request: Chrt.tracking.
|
|
48
|
+
createSessionV1(request: Chrt.tracking.SessionsCreateV1Req, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<string>;
|
|
49
49
|
private __createSessionV1;
|
|
50
50
|
/**
|
|
51
51
|
* Returns the session's flight legs in order, with Cirium-sourced status lazily resolved and refreshed on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (list[FlightLeg1])
|
|
@@ -79,7 +79,7 @@ export declare class Sessions {
|
|
|
79
79
|
flightTrackV1(request: Chrt.tracking.SessionsFlightTrackV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightTrackRes>;
|
|
80
80
|
private __flightTrackV1;
|
|
81
81
|
/**
|
|
82
|
-
* Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (
|
|
82
|
+
* Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
|
|
83
83
|
*
|
|
84
84
|
* @param {Chrt.tracking.SessionsGetV1Request} request
|
|
85
85
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -91,7 +91,7 @@ export declare class Sessions {
|
|
|
91
91
|
* session_id: "session_id"
|
|
92
92
|
* })
|
|
93
93
|
*/
|
|
94
|
-
getV1(request: Chrt.tracking.SessionsGetV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
94
|
+
getV1(request: Chrt.tracking.SessionsGetV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.Session2>;
|
|
95
95
|
private __getV1;
|
|
96
96
|
/**
|
|
97
97
|
* Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (SessionListRes)
|
|
@@ -185,9 +185,9 @@ export declare class Sessions {
|
|
|
185
185
|
typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
|
|
186
186
|
private __typeaheadV1;
|
|
187
187
|
/**
|
|
188
|
-
* Updates
|
|
188
|
+
* Updates mutable non-geofence session fields. Use dedicated geofence routes for geofence changes. | auth: api_key | authz: min_org_role=operator | (SessionClientUpdate2) -> (bool)
|
|
189
189
|
*
|
|
190
|
-
* @param {Chrt.tracking.
|
|
190
|
+
* @param {Chrt.tracking.SessionClientUpdate2} request
|
|
191
191
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
192
|
*
|
|
193
193
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -197,7 +197,7 @@ export declare class Sessions {
|
|
|
197
197
|
* session_id: "session_id"
|
|
198
198
|
* })
|
|
199
199
|
*/
|
|
200
|
-
updateV1(request: Chrt.tracking.
|
|
200
|
+
updateV1(request: Chrt.tracking.SessionClientUpdate2, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
201
201
|
private __updateV1;
|
|
202
202
|
/**
|
|
203
203
|
* Adds and/or removes org_ids from a session's shared_with_org_ids list. Only the owning org may modify sharing. Removal overrides addition. | auth: api_key | (SessionsUpdateSharedOrgsReq1) -> (bool)
|
|
@@ -31,9 +31,9 @@ export class Sessions {
|
|
|
31
31
|
this._options = _options;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Creates a
|
|
34
|
+
* Creates a tracking session with ordered geofences or an organization template and links its device. | auth: api_key | authz: min_org_role=operator | (SessionsCreateV1Req) -> (PydanticObjectId)
|
|
35
35
|
*
|
|
36
|
-
* @param {Chrt.tracking.
|
|
36
|
+
* @param {Chrt.tracking.SessionsCreateV1Req} request
|
|
37
37
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
@@ -233,7 +233,7 @@ export class Sessions {
|
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
/**
|
|
236
|
-
* Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (
|
|
236
|
+
* Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session2)
|
|
237
237
|
*
|
|
238
238
|
* @param {Chrt.tracking.SessionsGetV1Request} request
|
|
239
239
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -652,9 +652,9 @@ export class Sessions {
|
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
654
|
/**
|
|
655
|
-
* Updates
|
|
655
|
+
* Updates mutable non-geofence session fields. Use dedicated geofence routes for geofence changes. | auth: api_key | authz: min_org_role=operator | (SessionClientUpdate2) -> (bool)
|
|
656
656
|
*
|
|
657
|
-
* @param {Chrt.tracking.
|
|
657
|
+
* @param {Chrt.tracking.SessionClientUpdate2} request
|
|
658
658
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
659
659
|
*
|
|
660
660
|
* @throws {@link Chrt.UnprocessableEntityError}
|