@chrt-inc/typescript-sdk 1.762.0 → 1.787.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/README.md +13 -10
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +31 -26
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +35 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +133 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.ts +23 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.ts +24 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/flights/client/Client.d.ts +52 -0
- package/dist/cjs/api/resources/flights/client/Client.js +135 -0
- package/dist/cjs/api/resources/flights/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/flights/client/index.js +17 -0
- package/dist/cjs/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.ts +45 -0
- package/dist/cjs/api/resources/flights/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/flights/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/flights/index.d.ts +1 -0
- package/dist/cjs/api/resources/flights/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +36 -2
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +138 -1
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +47 -10
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +149 -17
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +71 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.ts +16 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +11 -3
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +30 -25
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +55 -52
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +3 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.ts +24 -0
- package/dist/{esm/api/resources/tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +0 -3
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/types/AlertCallback.d.ts +7 -0
- package/dist/cjs/api/types/AlertCallback.js +5 -0
- package/dist/cjs/api/types/AlertEvent.d.ts +6 -0
- package/dist/cjs/api/types/AlertEvent.js +5 -0
- package/dist/cjs/api/types/AlertMessage.d.ts +10 -0
- package/dist/cjs/api/types/AlertMessage.js +5 -0
- package/dist/cjs/api/types/AlertNameValue.d.ts +7 -0
- package/dist/cjs/api/types/AlertNameValue.js +5 -0
- package/dist/cjs/api/types/AlertNameValues.d.ts +7 -0
- package/dist/cjs/api/types/AlertNameValues.js +5 -0
- package/dist/cjs/api/types/AlertRuleEnvelope.d.ts +7 -0
- package/dist/cjs/api/types/AlertRuleEnvelope.js +5 -0
- package/dist/cjs/api/types/CiriumAirportResources.d.ts +9 -0
- package/dist/cjs/api/types/CiriumAirportResources.js +5 -0
- package/dist/cjs/api/types/CiriumDate.d.ts +6 -0
- package/dist/cjs/api/types/CiriumDate.js +5 -0
- package/dist/cjs/api/types/{FlightAwareWebhookResponse.d.ts → CiriumFlightAlertsWebhookResponse.d.ts} +1 -1
- package/dist/cjs/api/types/CiriumFlightAlertsWebhookResponse.js +5 -0
- package/dist/cjs/api/types/CiriumFlightStatus.d.ts +15 -0
- package/dist/cjs/api/types/CiriumFlightStatus.js +5 -0
- package/dist/cjs/api/types/CiriumOperationalTimes.d.ts +17 -0
- package/dist/cjs/api/types/CiriumOperationalTimes.js +5 -0
- package/dist/cjs/api/types/ConnectionSearchByEnum.d.ts +8 -0
- package/dist/cjs/api/types/ConnectionSearchByEnum.js +10 -0
- package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.d.ts +8 -0
- package/dist/cjs/api/types/ConnectionSearchPreferenceEnum.js +10 -0
- package/dist/cjs/api/types/Driver1.d.ts +0 -1
- package/dist/cjs/api/types/DriverListRes.d.ts +1 -1
- package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +35 -0
- package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.js +5 -0
- package/dist/cjs/api/types/FlightConnection.d.ts +10 -0
- package/dist/cjs/api/types/FlightConnection.js +5 -0
- package/dist/cjs/api/types/FlightConnectionLeg.d.ts +22 -0
- package/dist/cjs/api/types/FlightConnectionLeg.js +5 -0
- package/dist/cjs/api/types/FlightConnectionsSearchRes.d.ts +7 -0
- package/dist/cjs/api/types/FlightConnectionsSearchRes.js +5 -0
- package/dist/cjs/api/types/FlightLeg1.d.ts +3 -2
- package/dist/cjs/api/types/LineItem1.d.ts +1 -0
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +4 -3
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +1 -0
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +2 -1
- package/dist/cjs/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.ts +1 -8
- package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.js +5 -0
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +1 -11
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +0 -10
- package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTaskDeadlineUpdate1.js +5 -0
- package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
- package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
- package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
- package/dist/cjs/api/types/OperationsTaskListRemoveFromCaseRes1.d.ts +1 -1
- package/dist/cjs/api/types/OperationsTaskStatusEnum.d.ts +2 -1
- package/dist/cjs/api/types/OperationsTaskStatusEnum.js +1 -0
- package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTasksBulkUpdateDeadlinesRes1.js +5 -0
- package/dist/cjs/api/types/OrderBuilderReq.d.ts +2 -0
- package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/Session1.d.ts +6 -6
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +10 -0
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js +5 -0
- package/dist/cjs/api/types/index.d.ts +22 -4
- package/dist/cjs/api/types/index.js +22 -4
- 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/billing/resources/lineItemGroups/client/Client.d.mts +35 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +133 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.d.mts +23 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.d.mts +24 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/flights/client/Client.d.mts +52 -0
- package/dist/esm/api/resources/flights/client/Client.mjs +98 -0
- package/dist/esm/api/resources/flights/client/index.d.mts +2 -0
- package/dist/esm/api/resources/flights/client/index.mjs +1 -0
- package/dist/esm/api/resources/flights/client/requests/FlightConnectionsSearchReq.d.mts +45 -0
- package/dist/esm/api/resources/flights/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/flights/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/flights/index.d.mts +1 -0
- package/dist/esm/api/resources/flights/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +36 -2
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +138 -1
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.mts +14 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +47 -10
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +149 -17
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +71 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.d.mts +16 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +11 -3
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +30 -25
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +55 -52
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +3 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +4 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.d.mts +24 -0
- package/dist/{cjs/api/resources/tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.d.ts → esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +0 -3
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +3 -3
- package/dist/esm/api/types/AlertCallback.d.mts +7 -0
- package/dist/esm/api/types/AlertCallback.mjs +4 -0
- package/dist/esm/api/types/AlertEvent.d.mts +6 -0
- package/dist/esm/api/types/AlertEvent.mjs +4 -0
- package/dist/esm/api/types/AlertMessage.d.mts +10 -0
- package/dist/esm/api/types/AlertMessage.mjs +4 -0
- package/dist/esm/api/types/AlertNameValue.d.mts +7 -0
- package/dist/esm/api/types/AlertNameValue.mjs +4 -0
- package/dist/esm/api/types/AlertNameValues.d.mts +7 -0
- package/dist/esm/api/types/AlertNameValues.mjs +4 -0
- package/dist/esm/api/types/AlertRuleEnvelope.d.mts +7 -0
- package/dist/esm/api/types/AlertRuleEnvelope.mjs +4 -0
- package/dist/esm/api/types/CiriumAirportResources.d.mts +9 -0
- package/dist/esm/api/types/CiriumAirportResources.mjs +4 -0
- package/dist/esm/api/types/CiriumDate.d.mts +6 -0
- package/dist/esm/api/types/CiriumDate.mjs +4 -0
- package/dist/esm/api/types/{FlightAwareWebhookResponse.d.mts → CiriumFlightAlertsWebhookResponse.d.mts} +1 -1
- package/dist/esm/api/types/CiriumFlightAlertsWebhookResponse.mjs +4 -0
- package/dist/esm/api/types/CiriumFlightStatus.d.mts +15 -0
- package/dist/esm/api/types/CiriumFlightStatus.mjs +4 -0
- package/dist/esm/api/types/CiriumOperationalTimes.d.mts +17 -0
- package/dist/esm/api/types/CiriumOperationalTimes.mjs +4 -0
- package/dist/esm/api/types/ConnectionSearchByEnum.d.mts +8 -0
- package/dist/esm/api/types/ConnectionSearchByEnum.mjs +7 -0
- package/dist/esm/api/types/ConnectionSearchPreferenceEnum.d.mts +8 -0
- package/dist/esm/api/types/ConnectionSearchPreferenceEnum.mjs +7 -0
- package/dist/esm/api/types/Driver1.d.mts +0 -1
- package/dist/esm/api/types/DriverListRes.d.mts +1 -1
- package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +35 -0
- package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.mjs +4 -0
- package/dist/esm/api/types/FlightConnection.d.mts +10 -0
- package/dist/esm/api/types/FlightConnection.mjs +4 -0
- package/dist/esm/api/types/FlightConnectionLeg.d.mts +22 -0
- package/dist/esm/api/types/FlightConnectionLeg.mjs +4 -0
- package/dist/esm/api/types/FlightConnectionsSearchRes.d.mts +7 -0
- package/dist/esm/api/types/FlightConnectionsSearchRes.mjs +4 -0
- package/dist/esm/api/types/FlightLeg1.d.mts +3 -2
- package/dist/esm/api/types/LineItem1.d.mts +1 -0
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +4 -3
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +2 -1
- package/dist/esm/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.mts +1 -8
- package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.mjs +4 -0
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +1 -11
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +0 -10
- package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.d.mts +7 -0
- package/dist/esm/api/types/OperationsTaskDeadlineUpdate1.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
- package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
- package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskListRemoveFromCaseRes1.d.mts +1 -1
- package/dist/esm/api/types/OperationsTaskStatusEnum.d.mts +2 -1
- package/dist/esm/api/types/OperationsTaskStatusEnum.mjs +1 -0
- package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.d.mts +7 -0
- package/dist/esm/api/types/OperationsTasksBulkUpdateDeadlinesRes1.mjs +4 -0
- package/dist/esm/api/types/OrderBuilderReq.d.mts +2 -0
- package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/Session1.d.mts +6 -6
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +10 -0
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +22 -4
- package/dist/esm/api/types/index.mjs +22 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +639 -51
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +0 -16
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +0 -16
- package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +0 -16
- package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +0 -17
- package/dist/cjs/api/types/FlightStatusEnum.d.ts +0 -14
- package/dist/cjs/api/types/FlightStatusEnum.js +0 -16
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +0 -16
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +0 -16
- package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +0 -16
- package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +0 -17
- package/dist/esm/api/types/FlightStatusEnum.d.mts +0 -14
- package/dist/esm/api/types/FlightStatusEnum.mjs +0 -13
- /package/dist/cjs/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.js} +0 -0
- /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.js} +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.js → flights/client/requests/FlightConnectionsSearchReq.js} +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.js → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.js → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.js} +0 -0
- /package/dist/cjs/api/{types/FlightAwareAlertFlight.js → resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.js} +0 -0
- /package/dist/cjs/api/{types/FlightAwareAlertPayload.js → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.js} +0 -0
- /package/dist/cjs/api/{types/FlightAwareWebhookResponse.js → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.js} +0 -0
- /package/dist/esm/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayDriverClientReq.mjs} +0 -0
- /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → billing/resources/lineItemGroups/client/requests/SharedTaskGroupMileageCreateForProviderPayProviderClientReq.mjs} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionAddFlightReq1.mjs → flights/client/requests/FlightConnectionsSearchReq.mjs} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.mjs → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionsSyncFlightStatusV1Request.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksBulkUpdateDeadlinesReq1.mjs} +0 -0
- /package/dist/esm/api/{types/FlightAwareAlertFlight.mjs → resources/tracking/resources/sessions/client/requests/SessionSetFlightInfoReq1.mjs} +0 -0
- /package/dist/esm/api/{types/FlightAwareAlertPayload.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightLegsV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/FlightAwareWebhookResponse.mjs → resources/tracking/resources/sessions/client/requests/SessionsFlightTrackV1Request.mjs} +0 -0
|
@@ -395,7 +395,77 @@ export class OperationsTasks {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
/**
|
|
398
|
-
* Sets
|
|
398
|
+
* Sets deadline_timestamp on multiple OperationsTasks in one call, each scoped to the caller's organization. Task ids that don't exist or belong to another org are silently skipped; the response reports how many were updated. | authz: min_org_role=operator | (OperationsTasksBulkUpdateDeadlinesReq1) -> (OperationsTasksBulkUpdateDeadlinesRes1)
|
|
399
|
+
*
|
|
400
|
+
* @param {Chrt.operations.OperationsTasksBulkUpdateDeadlinesReq1} request
|
|
401
|
+
* @param {OperationsTasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
402
|
+
*
|
|
403
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
404
|
+
*
|
|
405
|
+
* @example
|
|
406
|
+
* await client.operations.operationsTasks.bulkUpdateDeadlinesV1({
|
|
407
|
+
* operations_task_deadline_updates: [{
|
|
408
|
+
* task_id: "task_id",
|
|
409
|
+
* deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
410
|
+
* }]
|
|
411
|
+
* })
|
|
412
|
+
*/
|
|
413
|
+
bulkUpdateDeadlinesV1(request, requestOptions) {
|
|
414
|
+
return core.HttpResponsePromise.fromPromise(this.__bulkUpdateDeadlinesV1(request, requestOptions));
|
|
415
|
+
}
|
|
416
|
+
__bulkUpdateDeadlinesV1(request, requestOptions) {
|
|
417
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
+
var _a, _b, _c, _d;
|
|
419
|
+
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);
|
|
420
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
421
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "operations/operations_tasks/bulk_update_deadlines/v1"),
|
|
422
|
+
method: "PATCH",
|
|
423
|
+
headers: _headers,
|
|
424
|
+
contentType: "application/json",
|
|
425
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
426
|
+
requestType: "json",
|
|
427
|
+
body: request,
|
|
428
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
429
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
430
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
431
|
+
});
|
|
432
|
+
if (_response.ok) {
|
|
433
|
+
return {
|
|
434
|
+
data: _response.body,
|
|
435
|
+
rawResponse: _response.rawResponse,
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
if (_response.error.reason === "status-code") {
|
|
439
|
+
switch (_response.error.statusCode) {
|
|
440
|
+
case 422:
|
|
441
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
442
|
+
default:
|
|
443
|
+
throw new errors.ChrtError({
|
|
444
|
+
statusCode: _response.error.statusCode,
|
|
445
|
+
body: _response.error.body,
|
|
446
|
+
rawResponse: _response.rawResponse,
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
switch (_response.error.reason) {
|
|
451
|
+
case "non-json":
|
|
452
|
+
throw new errors.ChrtError({
|
|
453
|
+
statusCode: _response.error.statusCode,
|
|
454
|
+
body: _response.error.rawBody,
|
|
455
|
+
rawResponse: _response.rawResponse,
|
|
456
|
+
});
|
|
457
|
+
case "timeout":
|
|
458
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_tasks/bulk_update_deadlines/v1.");
|
|
459
|
+
case "unknown":
|
|
460
|
+
throw new errors.ChrtError({
|
|
461
|
+
message: _response.error.errorMessage,
|
|
462
|
+
rawResponse: _response.rawResponse,
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Sets an OperationsTask's status (not_started / in_progress / completed / skipped / cancelled). Setting COMPLETED stamps completed_at/by; any other status clears them. | authz: min_org_role=operator | (OperationsTaskStatusReq) -> (bool)
|
|
399
469
|
*
|
|
400
470
|
* @param {string} taskId
|
|
401
471
|
* @param {Chrt.operations.OperationsTaskStatusReq} request
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
* operations_task_deadline_updates: [{
|
|
9
|
+
* task_id: "task_id",
|
|
10
|
+
* deadline_timestamp: "2024-01-15T09:30:00Z"
|
|
11
|
+
* }]
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface OperationsTasksBulkUpdateDeadlinesReq1 {
|
|
15
|
+
operations_task_deadline_updates: Chrt.OperationsTaskDeadlineUpdate1[];
|
|
16
|
+
}
|
package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { type OperationsTasksListV1Request } from "./OperationsTasksListV1Request.mjs";
|
|
2
2
|
export { type OperationsTaskClientUpdate1 } from "./OperationsTaskClientUpdate1.mjs";
|
|
3
3
|
export { type OperationsTaskClientCreate1 } from "./OperationsTaskClientCreate1.mjs";
|
|
4
|
+
export { type OperationsTasksBulkUpdateDeadlinesReq1 } from "./OperationsTasksBulkUpdateDeadlinesReq1.mjs";
|
|
4
5
|
export { type OperationsTaskStatusReq } from "./OperationsTaskStatusReq.mjs";
|
|
5
6
|
export { type OperationsTaskAddCommentReq1 } from "./OperationsTaskAddCommentReq1.mjs";
|
|
@@ -152,17 +152,17 @@ export declare class Drivers {
|
|
|
152
152
|
deleteSelfReportedHoursAndMileageV1(driverId: string, reportDate: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
153
153
|
private __deleteSelfReportedHoursAndMileageV1;
|
|
154
154
|
/**
|
|
155
|
-
* Retrieves driver information for the caller within their organization. | () -> (
|
|
155
|
+
* Retrieves driver information for the caller within their organization. | () -> (DriverWithActiveTaskGroupIds1)
|
|
156
156
|
*
|
|
157
157
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
158
158
|
*
|
|
159
159
|
* @example
|
|
160
160
|
* await client.shipping.drivers.getForCallerV1()
|
|
161
161
|
*/
|
|
162
|
-
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
162
|
+
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.DriverWithActiveTaskGroupIds1>;
|
|
163
163
|
private __getForCallerV1;
|
|
164
164
|
/**
|
|
165
|
-
* Retrieves detailed driver information by driver ID within the organization. | () -> (
|
|
165
|
+
* Retrieves detailed driver information by driver ID within the organization. | () -> (DriverWithActiveTaskGroupIds1)
|
|
166
166
|
*
|
|
167
167
|
* @param {string} driverId
|
|
168
168
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -172,7 +172,7 @@ export declare class Drivers {
|
|
|
172
172
|
* @example
|
|
173
173
|
* await client.shipping.drivers.getByDriverIdV1("driver_id")
|
|
174
174
|
*/
|
|
175
|
-
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
175
|
+
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.DriverWithActiveTaskGroupIds1>;
|
|
176
176
|
private __getByDriverIdV1;
|
|
177
177
|
/**
|
|
178
178
|
* Lists all organization members paired with their driver information if they are drivers. Supports search by name, filtering, sorting, and pagination. | () -> (OrgMembersAndDriversListRes)
|
|
@@ -540,7 +540,7 @@ export class Drivers {
|
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
542
|
/**
|
|
543
|
-
* Retrieves driver information for the caller within their organization. | () -> (
|
|
543
|
+
* Retrieves driver information for the caller within their organization. | () -> (DriverWithActiveTaskGroupIds1)
|
|
544
544
|
*
|
|
545
545
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
546
546
|
*
|
|
@@ -591,7 +591,7 @@ export class Drivers {
|
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
/**
|
|
594
|
-
* Retrieves detailed driver information by driver ID within the organization. | () -> (
|
|
594
|
+
* Retrieves detailed driver information by driver ID within the organization. | () -> (DriverWithActiveTaskGroupIds1)
|
|
595
595
|
*
|
|
596
596
|
* @param {string} driverId
|
|
597
597
|
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -772,7 +772,7 @@ export class Drivers {
|
|
|
772
772
|
__listV1() {
|
|
773
773
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
774
774
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
775
|
-
const { sort_order: sortOrder, page, page_size: pageSize, search, filter_available_according_to_driver: filterAvailableAccordingToDriver, filter_available_according_to_operators: filterAvailableAccordingToOperators, } = request;
|
|
775
|
+
const { sort_order: sortOrder, page, page_size: pageSize, search, filter_available_according_to_driver: filterAvailableAccordingToDriver, filter_available_according_to_operators: filterAvailableAccordingToOperators, filter_status: filterStatus, } = request;
|
|
776
776
|
const _queryParams = {};
|
|
777
777
|
if (sortOrder !== undefined) {
|
|
778
778
|
_queryParams["sort_order"] = sortOrder;
|
|
@@ -793,6 +793,14 @@ export class Drivers {
|
|
|
793
793
|
_queryParams["filter_available_according_to_operators"] =
|
|
794
794
|
(_d = filterAvailableAccordingToOperators === null || filterAvailableAccordingToOperators === void 0 ? void 0 : filterAvailableAccordingToOperators.toString()) !== null && _d !== void 0 ? _d : null;
|
|
795
795
|
}
|
|
796
|
+
if (filterStatus !== undefined) {
|
|
797
|
+
if (Array.isArray(filterStatus)) {
|
|
798
|
+
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
799
|
+
}
|
|
800
|
+
else {
|
|
801
|
+
_queryParams["filter_status"] = filterStatus;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
796
804
|
let _headers = mergeHeaders((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
797
805
|
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
798
806
|
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ChrtEnvironment.Local, "shipping/drivers/list/v1"),
|
package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts
CHANGED
|
@@ -24,4 +24,6 @@ export interface DriversListV1Request {
|
|
|
24
24
|
filter_available_according_to_driver?: boolean | null;
|
|
25
25
|
/** Filter by operator-set availability */
|
|
26
26
|
filter_available_according_to_operators?: boolean | null;
|
|
27
|
+
/** Filter by driver state (UNASSIGNED / ASSIGNED / IN_PROGRESS) */
|
|
28
|
+
filter_status?: (Chrt.DriverStatusEnum | null) | (Chrt.DriverStatusEnum | null)[];
|
|
27
29
|
}
|
|
@@ -15,6 +15,10 @@ export interface OrdersNewDraftReq {
|
|
|
15
15
|
/** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
|
|
16
16
|
off_chrt_reference_id?: string | null;
|
|
17
17
|
department_id?: string | null;
|
|
18
|
+
/** OperationsTaskList ids to apply to the coordinator's Case at draft creation; foreign/stale ids are skipped without failing the draft. */
|
|
19
|
+
task_list_ids?: string[];
|
|
20
|
+
/** If set, pins the first applied OperationsTask's deadline; later from_previous_task entries cascade from it. None anchors the chain to the apply time (now). */
|
|
21
|
+
initial_deadline_timestamp?: string | null;
|
|
18
22
|
/** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
|
|
19
23
|
creation_idempotency_key?: string | null;
|
|
20
24
|
/** Seed content for the OrderThread's first user turn (text + long-lived references). Agentic builds supply it; click-ops leaves it None for a blank seed turn. */
|
|
@@ -20,6 +20,7 @@ export interface OrderTemplateClientCreate1 {
|
|
|
20
20
|
/** Must be a string starting with `org_` */
|
|
21
21
|
coordinator_org_id?: string | null;
|
|
22
22
|
department_id?: string | null;
|
|
23
|
+
task_list_ids?: string[];
|
|
23
24
|
name: string;
|
|
24
25
|
description?: string | null;
|
|
25
26
|
off_chrt_reference_id_str?: string | null;
|
|
@@ -19,6 +19,7 @@ export interface OrderTemplateClientUpdate1 {
|
|
|
19
19
|
/** Must be a string starting with `org_` */
|
|
20
20
|
coordinator_org_id?: string | null;
|
|
21
21
|
department_id?: string | null;
|
|
22
|
+
task_list_ids?: string[];
|
|
22
23
|
description__set_to_None?: boolean;
|
|
23
24
|
text__set_to_None?: boolean;
|
|
24
25
|
off_chrt_reference_id_str__set_to_None?: boolean;
|
|
@@ -51,7 +51,6 @@ export declare class Sessions {
|
|
|
51
51
|
* filter_device_id: "filter_device_id",
|
|
52
52
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
53
53
|
* filter_flight_number: "filter_flight_number",
|
|
54
|
-
* filter_fa_flight_id: "filter_fa_flight_id",
|
|
55
54
|
* filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
56
55
|
* filter_has_last_seen: true,
|
|
57
56
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -99,7 +98,7 @@ export declare class Sessions {
|
|
|
99
98
|
typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
|
|
100
99
|
private __typeaheadV1;
|
|
101
100
|
/**
|
|
102
|
-
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
101
|
+
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification; attach flights afterwards via set_flight_info. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
103
102
|
*
|
|
104
103
|
* @param {Chrt.tracking.SessionClientCreate1} request
|
|
105
104
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -116,7 +115,7 @@ export declare class Sessions {
|
|
|
116
115
|
createSessionV1(request: Chrt.tracking.SessionClientCreate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<string>;
|
|
117
116
|
private __createSessionV1;
|
|
118
117
|
/**
|
|
119
|
-
* Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
118
|
+
* Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
120
119
|
*
|
|
121
120
|
* @param {Chrt.tracking.SessionClientUpdate1} request
|
|
122
121
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -146,7 +145,7 @@ export declare class Sessions {
|
|
|
146
145
|
updateSharedOrgsV1(request: Chrt.tracking.SessionsUpdateSharedOrgsReq1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
147
146
|
private __updateSharedOrgsV1;
|
|
148
147
|
/**
|
|
149
|
-
* Terminates a session. Moves device.active_session_id to device.past_session_ids. | auth: api_key | () -> (bool)
|
|
148
|
+
* Terminates a session. Moves device.active_session_id to device.past_session_ids and deactivates the device. | auth: api_key | () -> (bool)
|
|
150
149
|
*
|
|
151
150
|
* @param {Chrt.tracking.SessionsTerminateV1Request} request
|
|
152
151
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -161,53 +160,59 @@ export declare class Sessions {
|
|
|
161
160
|
terminateV1(request: Chrt.tracking.SessionsTerminateV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
162
161
|
private __terminateV1;
|
|
163
162
|
/**
|
|
164
|
-
*
|
|
163
|
+
* 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])
|
|
165
164
|
*
|
|
166
|
-
* @param {Chrt.tracking.
|
|
165
|
+
* @param {Chrt.tracking.SessionsFlightLegsV1Request} request
|
|
167
166
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
168
167
|
*
|
|
169
168
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
170
169
|
*
|
|
171
170
|
* @example
|
|
172
|
-
* await client.tracking.sessions.
|
|
173
|
-
* session_id: "session_id"
|
|
174
|
-
* flight_number: "flight_number",
|
|
175
|
-
* fa_flight_ids: ["fa_flight_ids"]
|
|
171
|
+
* await client.tracking.sessions.flightLegsV1({
|
|
172
|
+
* session_id: "session_id"
|
|
176
173
|
* })
|
|
177
174
|
*/
|
|
178
|
-
|
|
179
|
-
private
|
|
175
|
+
flightLegsV1(request: Chrt.tracking.SessionsFlightLegsV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightLeg1[]>;
|
|
176
|
+
private __flightLegsV1;
|
|
180
177
|
/**
|
|
181
|
-
*
|
|
178
|
+
* Returns the Cirium-sourced positional track for one of the session's flight legs — the live breadcrumb trail plus the planned path (waypoints + legacy route) — cached on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
|
|
182
179
|
*
|
|
183
|
-
* @param {Chrt.tracking.
|
|
180
|
+
* @param {Chrt.tracking.SessionsFlightTrackV1Request} request
|
|
184
181
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
185
182
|
*
|
|
186
183
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
187
184
|
*
|
|
188
185
|
* @example
|
|
189
|
-
* await client.tracking.sessions.
|
|
186
|
+
* await client.tracking.sessions.flightTrackV1({
|
|
190
187
|
* session_id: "session_id",
|
|
191
|
-
*
|
|
192
|
-
* fa_flight_ids: ["fa_flight_ids"]
|
|
188
|
+
* flight_leg_id: "flight_leg_id"
|
|
193
189
|
* })
|
|
194
190
|
*/
|
|
195
|
-
|
|
196
|
-
private
|
|
191
|
+
flightTrackV1(request: Chrt.tracking.SessionsFlightTrackV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.FlightTrackRes>;
|
|
192
|
+
private __flightTrackV1;
|
|
197
193
|
/**
|
|
198
|
-
*
|
|
194
|
+
* Replaces the session's followed flights: deletes the existing session-owned FlightLeg documents and creates new ones from the supplied flight details. Each leg's Cirium flightId and status resolve lazily on read. Pass an empty list to clear all flights. | auth: api_key | authz: min_org_role=operator | (SessionSetFlightInfoReq1) -> (bool)
|
|
199
195
|
*
|
|
200
|
-
* @param {Chrt.tracking.
|
|
196
|
+
* @param {Chrt.tracking.SessionSetFlightInfoReq1} request
|
|
201
197
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
202
198
|
*
|
|
203
199
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
204
200
|
*
|
|
205
201
|
* @example
|
|
206
|
-
* await client.tracking.sessions.
|
|
207
|
-
* session_id: "session_id"
|
|
202
|
+
* await client.tracking.sessions.setFlightInfoV1({
|
|
203
|
+
* session_id: "session_id",
|
|
204
|
+
* flight_legs: [{
|
|
205
|
+
* schema_version: 1,
|
|
206
|
+
* flight_number: "flight_number",
|
|
207
|
+
* provenance: "manual",
|
|
208
|
+
* origin_iata: "origin_iata",
|
|
209
|
+
* destination_iata: "destination_iata",
|
|
210
|
+
* scheduled_departure_utc: "2024-01-15T09:30:00Z",
|
|
211
|
+
* carrier_iata: "carrier_iata"
|
|
212
|
+
* }]
|
|
208
213
|
* })
|
|
209
214
|
*/
|
|
210
|
-
|
|
211
|
-
private
|
|
215
|
+
setFlightInfoV1(request: Chrt.tracking.SessionSetFlightInfoReq1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
216
|
+
private __setFlightInfoV1;
|
|
212
217
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
213
218
|
}
|
|
@@ -51,7 +51,6 @@ export class Sessions {
|
|
|
51
51
|
* filter_device_id: "filter_device_id",
|
|
52
52
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
53
53
|
* filter_flight_number: "filter_flight_number",
|
|
54
|
-
* filter_fa_flight_id: "filter_fa_flight_id",
|
|
55
54
|
* filter_flight_loaded_status: "filter_flight_loaded_status",
|
|
56
55
|
* filter_has_last_seen: true,
|
|
57
56
|
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -70,7 +69,7 @@ export class Sessions {
|
|
|
70
69
|
__listV1() {
|
|
71
70
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
72
71
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
73
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber,
|
|
72
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_flight_loaded_status: filterFlightLoadedStatus, filter_has_last_seen: filterHasLastSeen, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
|
|
74
73
|
const _queryParams = {};
|
|
75
74
|
if (sortBy !== undefined) {
|
|
76
75
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -105,9 +104,6 @@ export class Sessions {
|
|
|
105
104
|
if (filterFlightNumber !== undefined) {
|
|
106
105
|
_queryParams["filter_flight_number"] = filterFlightNumber;
|
|
107
106
|
}
|
|
108
|
-
if (filterFaFlightId !== undefined) {
|
|
109
|
-
_queryParams["filter_fa_flight_id"] = filterFaFlightId;
|
|
110
|
-
}
|
|
111
107
|
if (filterFlightLoadedStatus !== undefined) {
|
|
112
108
|
_queryParams["filter_flight_loaded_status"] = filterFlightLoadedStatus;
|
|
113
109
|
}
|
|
@@ -317,7 +313,7 @@ export class Sessions {
|
|
|
317
313
|
});
|
|
318
314
|
}
|
|
319
315
|
/**
|
|
320
|
-
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
316
|
+
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification; attach flights afterwards via set_flight_info. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
321
317
|
*
|
|
322
318
|
* @param {Chrt.tracking.SessionClientCreate1} request
|
|
323
319
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -389,7 +385,7 @@ export class Sessions {
|
|
|
389
385
|
});
|
|
390
386
|
}
|
|
391
387
|
/**
|
|
392
|
-
* Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
388
|
+
* Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
393
389
|
*
|
|
394
390
|
* @param {Chrt.tracking.SessionClientUpdate1} request
|
|
395
391
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -520,7 +516,7 @@ export class Sessions {
|
|
|
520
516
|
});
|
|
521
517
|
}
|
|
522
518
|
/**
|
|
523
|
-
* Terminates a session. Moves device.active_session_id to device.past_session_ids. | auth: api_key | () -> (bool)
|
|
519
|
+
* Terminates a session. Moves device.active_session_id to device.past_session_ids and deactivates the device. | auth: api_key | () -> (bool)
|
|
524
520
|
*
|
|
525
521
|
* @param {Chrt.tracking.SessionsTerminateV1Request} request
|
|
526
522
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -584,35 +580,33 @@ export class Sessions {
|
|
|
584
580
|
});
|
|
585
581
|
}
|
|
586
582
|
/**
|
|
587
|
-
*
|
|
583
|
+
* 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])
|
|
588
584
|
*
|
|
589
|
-
* @param {Chrt.tracking.
|
|
585
|
+
* @param {Chrt.tracking.SessionsFlightLegsV1Request} request
|
|
590
586
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
591
587
|
*
|
|
592
588
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
593
589
|
*
|
|
594
590
|
* @example
|
|
595
|
-
* await client.tracking.sessions.
|
|
596
|
-
* session_id: "session_id"
|
|
597
|
-
* flight_number: "flight_number",
|
|
598
|
-
* fa_flight_ids: ["fa_flight_ids"]
|
|
591
|
+
* await client.tracking.sessions.flightLegsV1({
|
|
592
|
+
* session_id: "session_id"
|
|
599
593
|
* })
|
|
600
594
|
*/
|
|
601
|
-
|
|
602
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
595
|
+
flightLegsV1(request, requestOptions) {
|
|
596
|
+
return core.HttpResponsePromise.fromPromise(this.__flightLegsV1(request, requestOptions));
|
|
603
597
|
}
|
|
604
|
-
|
|
598
|
+
__flightLegsV1(request, requestOptions) {
|
|
605
599
|
return __awaiter(this, void 0, void 0, function* () {
|
|
606
600
|
var _a, _b, _c, _d;
|
|
601
|
+
const { session_id: sessionId } = request;
|
|
602
|
+
const _queryParams = {};
|
|
603
|
+
_queryParams["session_id"] = sessionId;
|
|
607
604
|
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);
|
|
608
605
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
609
|
-
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/
|
|
610
|
-
method: "
|
|
606
|
+
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/flight_legs/v1"),
|
|
607
|
+
method: "GET",
|
|
611
608
|
headers: _headers,
|
|
612
|
-
|
|
613
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
614
|
-
requestType: "json",
|
|
615
|
-
body: request,
|
|
609
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
616
610
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
617
611
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
618
612
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -640,7 +634,7 @@ export class Sessions {
|
|
|
640
634
|
rawResponse: _response.rawResponse,
|
|
641
635
|
});
|
|
642
636
|
case "timeout":
|
|
643
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
637
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sessions/flight_legs/v1.");
|
|
644
638
|
case "unknown":
|
|
645
639
|
throw new errors.ChrtError({
|
|
646
640
|
message: _response.error.errorMessage,
|
|
@@ -650,35 +644,35 @@ export class Sessions {
|
|
|
650
644
|
});
|
|
651
645
|
}
|
|
652
646
|
/**
|
|
653
|
-
*
|
|
647
|
+
* Returns the Cirium-sourced positional track for one of the session's flight legs — the live breadcrumb trail plus the planned path (waypoints + legacy route) — cached on read. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (FlightTrackRes)
|
|
654
648
|
*
|
|
655
|
-
* @param {Chrt.tracking.
|
|
649
|
+
* @param {Chrt.tracking.SessionsFlightTrackV1Request} request
|
|
656
650
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
657
651
|
*
|
|
658
652
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
659
653
|
*
|
|
660
654
|
* @example
|
|
661
|
-
* await client.tracking.sessions.
|
|
655
|
+
* await client.tracking.sessions.flightTrackV1({
|
|
662
656
|
* session_id: "session_id",
|
|
663
|
-
*
|
|
664
|
-
* fa_flight_ids: ["fa_flight_ids"]
|
|
657
|
+
* flight_leg_id: "flight_leg_id"
|
|
665
658
|
* })
|
|
666
659
|
*/
|
|
667
|
-
|
|
668
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
660
|
+
flightTrackV1(request, requestOptions) {
|
|
661
|
+
return core.HttpResponsePromise.fromPromise(this.__flightTrackV1(request, requestOptions));
|
|
669
662
|
}
|
|
670
|
-
|
|
663
|
+
__flightTrackV1(request, requestOptions) {
|
|
671
664
|
return __awaiter(this, void 0, void 0, function* () {
|
|
672
665
|
var _a, _b, _c, _d;
|
|
666
|
+
const { session_id: sessionId, flight_leg_id: flightLegId } = request;
|
|
667
|
+
const _queryParams = {};
|
|
668
|
+
_queryParams["session_id"] = sessionId;
|
|
669
|
+
_queryParams["flight_leg_id"] = flightLegId;
|
|
673
670
|
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);
|
|
674
671
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
675
|
-
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/
|
|
676
|
-
method: "
|
|
672
|
+
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/flight_track/v1"),
|
|
673
|
+
method: "GET",
|
|
677
674
|
headers: _headers,
|
|
678
|
-
|
|
679
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
680
|
-
requestType: "json",
|
|
681
|
-
body: request,
|
|
675
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
682
676
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
683
677
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
684
678
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -706,7 +700,7 @@ export class Sessions {
|
|
|
706
700
|
rawResponse: _response.rawResponse,
|
|
707
701
|
});
|
|
708
702
|
case "timeout":
|
|
709
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
703
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sessions/flight_track/v1.");
|
|
710
704
|
case "unknown":
|
|
711
705
|
throw new errors.ChrtError({
|
|
712
706
|
message: _response.error.errorMessage,
|
|
@@ -716,33 +710,42 @@ export class Sessions {
|
|
|
716
710
|
});
|
|
717
711
|
}
|
|
718
712
|
/**
|
|
719
|
-
*
|
|
713
|
+
* Replaces the session's followed flights: deletes the existing session-owned FlightLeg documents and creates new ones from the supplied flight details. Each leg's Cirium flightId and status resolve lazily on read. Pass an empty list to clear all flights. | auth: api_key | authz: min_org_role=operator | (SessionSetFlightInfoReq1) -> (bool)
|
|
720
714
|
*
|
|
721
|
-
* @param {Chrt.tracking.
|
|
715
|
+
* @param {Chrt.tracking.SessionSetFlightInfoReq1} request
|
|
722
716
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
723
717
|
*
|
|
724
718
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
725
719
|
*
|
|
726
720
|
* @example
|
|
727
|
-
* await client.tracking.sessions.
|
|
728
|
-
* session_id: "session_id"
|
|
721
|
+
* await client.tracking.sessions.setFlightInfoV1({
|
|
722
|
+
* session_id: "session_id",
|
|
723
|
+
* flight_legs: [{
|
|
724
|
+
* schema_version: 1,
|
|
725
|
+
* flight_number: "flight_number",
|
|
726
|
+
* provenance: "manual",
|
|
727
|
+
* origin_iata: "origin_iata",
|
|
728
|
+
* destination_iata: "destination_iata",
|
|
729
|
+
* scheduled_departure_utc: "2024-01-15T09:30:00Z",
|
|
730
|
+
* carrier_iata: "carrier_iata"
|
|
731
|
+
* }]
|
|
729
732
|
* })
|
|
730
733
|
*/
|
|
731
|
-
|
|
732
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
734
|
+
setFlightInfoV1(request, requestOptions) {
|
|
735
|
+
return core.HttpResponsePromise.fromPromise(this.__setFlightInfoV1(request, requestOptions));
|
|
733
736
|
}
|
|
734
|
-
|
|
737
|
+
__setFlightInfoV1(request, requestOptions) {
|
|
735
738
|
return __awaiter(this, void 0, void 0, function* () {
|
|
736
739
|
var _a, _b, _c, _d;
|
|
737
|
-
const { session_id: sessionId } = request;
|
|
738
|
-
const _queryParams = {};
|
|
739
|
-
_queryParams["session_id"] = sessionId;
|
|
740
740
|
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);
|
|
741
741
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
742
|
-
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/
|
|
742
|
+
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/set_flight_info/v1"),
|
|
743
743
|
method: "POST",
|
|
744
744
|
headers: _headers,
|
|
745
|
-
|
|
745
|
+
contentType: "application/json",
|
|
746
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
747
|
+
requestType: "json",
|
|
748
|
+
body: request,
|
|
746
749
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
747
750
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
748
751
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -770,7 +773,7 @@ export class Sessions {
|
|
|
770
773
|
rawResponse: _response.rawResponse,
|
|
771
774
|
});
|
|
772
775
|
case "timeout":
|
|
773
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/
|
|
776
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/sessions/set_flight_info/v1.");
|
|
774
777
|
case "unknown":
|
|
775
778
|
throw new errors.ChrtError({
|
|
776
779
|
message: _response.error.errorMessage,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -19,6 +20,6 @@ export interface SessionClientCreate1 {
|
|
|
19
20
|
public?: boolean;
|
|
20
21
|
off_chrt_shipper_org_id?: string | null;
|
|
21
22
|
termination_scheduled_for_timestamp?: string | null;
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
destination_geofence_location?: Chrt.LocationFeature | null;
|
|
24
|
+
destination_geofence_radius_miles?: number;
|
|
24
25
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -14,7 +15,10 @@ export interface SessionClientUpdate1 {
|
|
|
14
15
|
comments?: string | null;
|
|
15
16
|
public?: boolean | null;
|
|
16
17
|
termination_scheduled_for_timestamp?: string | null;
|
|
18
|
+
destination_geofence_location?: Chrt.LocationFeature | null;
|
|
19
|
+
destination_geofence_radius_miles?: number | null;
|
|
17
20
|
off_chrt_reference_id__set_to_None?: boolean;
|
|
18
21
|
comments__set_to_None?: boolean;
|
|
19
22
|
termination_scheduled_for_timestamp__set_to_None?: boolean;
|
|
23
|
+
destination_geofence_location__set_to_None?: boolean;
|
|
20
24
|
}
|