@chrt-inc/typescript-sdk 1.449.2 → 1.449.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/AnalyticsTimePeriodRequest.d.ts +4 -4
- package/dist/cjs/api/resources/billing/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/billing/client/Client.js +12 -12
- package/dist/cjs/api/resources/billing/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/billing/resources/index.js +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +43 -43
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +112 -112
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/AdjustLineItemReq.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.js +44 -44
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/CreateAdHocLineItemGroupReq.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/LineItemClientCreate1.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.js +52 -52
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.d.ts +59 -59
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.js +159 -159
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientCreate1.d.ts +13 -13
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +46 -46
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +120 -120
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/CreateStatementReq.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/billing/resources/stripeConnect/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/stripeConnect/client/Client.js +19 -19
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +33 -33
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +57 -57
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +146 -146
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.js +16 -16
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.js +28 -28
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +31 -31
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +98 -98
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +2 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/client/Client.js +9 -9
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/index.js +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.d.ts +32 -32
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.js +66 -66
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +59 -59
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/shipping/client/Client.js +12 -12
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +38 -38
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +126 -126
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverClientUpdate1.d.ts +7 -7
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/index.js +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +49 -49
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +30 -30
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +55 -55
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.js +6 -6
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.js +26 -26
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +34 -34
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +73 -73
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +16 -16
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +14 -14
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.js +18 -18
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +52 -52
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +50 -50
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +85 -85
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +44 -44
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +3 -3
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +52 -52
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +14 -14
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +31 -31
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/AddTaskToGroupReq.d.ts +6 -6
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +54 -54
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +191 -191
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +80 -80
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +237 -237
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +7 -7
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.d.ts +30 -30
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.js +52 -52
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDriverSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +64 -64
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +51 -51
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +25 -25
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +62 -62
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +51 -51
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/users/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/users/client/Client.js +6 -6
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +56 -56
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts +8 -8
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/users/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/users/resources/index.js +4 -4
- package/dist/cjs/api/resources/users/resources/privateData/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/users/resources/privateData/client/Client.js +59 -59
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientCreate1.d.ts +2 -2
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/utils/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/utils/client/Client.js +6 -6
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +75 -75
- package/dist/cjs/api/resources/utils/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/utils/resources/index.js +2 -2
- package/dist/cjs/api/resources/utils/resources/root/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/utils/resources/root/client/Client.js +28 -28
- package/dist/cjs/api/types/AgentRes.d.ts +1 -1
- package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +16 -16
- package/dist/cjs/api/types/CargoByDeviceDataPoint1.d.ts +4 -4
- package/dist/cjs/api/types/CargoByDeviceDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDeviceMarkOutliersResponse1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDeviceSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/CargoByDriverDataPoint1.d.ts +3 -3
- package/dist/cjs/api/types/CargoByDriverDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDriverSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientUpdate1.d.ts +5 -5
- package/dist/cjs/api/types/CourierConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/CourierOrgInfoForConnections1.d.ts +10 -10
- package/dist/cjs/api/types/CourierOrgProfile1.d.ts +3 -3
- package/dist/cjs/api/types/CreateOrgPublicDataRes.d.ts +1 -1
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +7 -7
- package/dist/cjs/api/types/DeviceExpandedRes.d.ts +3 -3
- package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +11 -11
- package/dist/cjs/api/types/DirectoryEntry1.d.ts +13 -13
- package/dist/cjs/api/types/Driver1.d.ts +13 -13
- package/dist/cjs/api/types/DriverUpdateRes.d.ts +1 -1
- package/dist/cjs/api/types/FirebaseCloudMessagingTokenData1.d.ts +1 -1
- package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +3 -3
- package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +3 -3
- package/dist/cjs/api/types/FlightAwareWebhookResponse.d.ts +1 -1
- package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +1 -1
- package/dist/cjs/api/types/ForwarderConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/ForwarderCourierConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ForwarderOrgInfoForConnections1.d.ts +8 -8
- package/dist/cjs/api/types/ForwarderOrgProfile1.d.ts +3 -3
- package/dist/cjs/api/types/GeometryCollection.d.ts +1 -1
- package/dist/cjs/api/types/{GeometryCollectionInputGeometriesItem.d.ts → GeometryCollectionGeometriesItem.d.ts} +2 -2
- package/dist/cjs/api/types/LineItem1.d.ts +6 -6
- package/dist/cjs/api/types/LineItemGroup1.d.ts +11 -11
- package/dist/cjs/api/types/LineItemGroupMessage1.d.ts +2 -2
- package/dist/cjs/api/types/LineItemGroupS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/LocationFeature.d.ts +2 -2
- package/dist/cjs/api/types/NotificationGroup1.d.ts +7 -7
- package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.d.ts +5 -5
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +3 -3
- package/dist/cjs/api/types/NotificationUserPreferences1.d.ts +5 -5
- package/dist/cjs/api/types/OffChrtShipperOrg1.d.ts +12 -12
- package/dist/cjs/api/types/Order1.d.ts +12 -12
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +8 -8
- package/dist/cjs/api/types/OrderDraftExpanded.d.ts +4 -4
- package/dist/cjs/api/types/OrderExpanded.d.ts +3 -3
- package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +3 -3
- package/dist/cjs/api/types/OrgInfoResponse.d.ts +6 -6
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPrivateData1.d.ts +12 -12
- package/dist/cjs/api/types/OrgPublicData1.d.ts +5 -5
- package/dist/cjs/api/types/Quote.d.ts +2 -2
- package/dist/cjs/api/types/RateSheet1.d.ts +17 -17
- package/dist/cjs/api/types/Session1.d.ts +14 -14
- package/dist/cjs/api/types/SessionByDeviceDataPoint1.d.ts +4 -4
- package/dist/cjs/api/types/SessionByDeviceDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.d.ts +1 -1
- package/dist/cjs/api/types/SetFlightInfoReq.d.ts +2 -2
- package/dist/cjs/api/types/ShipperConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperForwarderConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperOrgInfoForConnections1.d.ts +6 -6
- package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskGroupMessageWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/Statement1.d.ts +20 -20
- package/dist/cjs/api/types/StatementExpandedRes.d.ts +1 -1
- package/dist/cjs/api/types/Task1.d.ts +19 -19
- package/dist/cjs/api/types/TaskArtifact1.d.ts +16 -16
- package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/types/TaskExpanded.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +25 -25
- package/dist/cjs/api/types/TaskGroupByDriverDataPoint1.d.ts +3 -3
- package/dist/cjs/api/types/TaskGroupByDriverDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupByDriverSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +4 -4
- package/dist/cjs/api/types/TaskGroupMessage1.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/TimezoneResponse.d.ts +1 -1
- package/dist/cjs/api/types/TrackingSharingSettingsRes.d.ts +1 -1
- package/dist/cjs/api/types/TrackingWebhookResponse.d.ts +1 -1
- package/dist/cjs/api/types/UserPrivateData1.d.ts +6 -6
- package/dist/cjs/api/types/UserPublicData1.d.ts +2 -2
- package/dist/cjs/api/types/ValidationError.d.ts +2 -2
- package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
- package/dist/cjs/api/types/WebhookAppPortalAccessRes.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +1 -2
- package/dist/cjs/api/types/index.js +1 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/requests/AnalyticsTimePeriodRequest.d.mts +4 -4
- package/dist/esm/api/resources/billing/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/billing/client/Client.mjs +10 -10
- package/dist/esm/api/resources/billing/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/billing/resources/index.mjs +3 -3
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +43 -43
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +112 -112
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/AdjustLineItemReq.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.mjs +44 -44
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/CreateAdHocLineItemGroupReq.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/LineItemClientCreate1.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.mjs +52 -52
- package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.d.mts +59 -59
- package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.mjs +159 -159
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientCreate1.d.mts +13 -13
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientUpdate1.d.mts +2 -2
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +46 -46
- package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +120 -120
- package/dist/esm/api/resources/billing/resources/statements/client/requests/CreateStatementReq.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/statements/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/billing/resources/stripeConnect/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/stripeConnect/client/Client.mjs +19 -19
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +33 -33
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +57 -57
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +146 -146
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.mjs +16 -16
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.mjs +28 -28
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +31 -31
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +98 -98
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/index.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.d.mts +32 -32
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.mjs +66 -66
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +59 -59
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/shipping/client/Client.mjs +11 -11
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +38 -38
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +126 -126
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverClientUpdate1.d.mts +7 -7
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/index.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +45 -45
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +30 -30
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +55 -55
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.mjs +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.mjs +26 -26
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +34 -34
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +73 -73
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +16 -16
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +14 -14
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.mjs +18 -18
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +52 -52
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +50 -50
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +85 -85
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +44 -44
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +52 -52
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +14 -14
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +31 -31
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/AddTaskToGroupReq.d.mts +6 -6
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +54 -54
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +191 -191
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +80 -80
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +237 -237
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +7 -7
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.d.mts +30 -30
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.mjs +52 -52
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDriverSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +64 -64
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +51 -51
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +25 -25
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +62 -62
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +51 -51
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/users/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/users/client/Client.mjs +6 -6
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +56 -56
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts +8 -8
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/users/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/users/resources/index.mjs +3 -3
- package/dist/esm/api/resources/users/resources/privateData/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/users/resources/privateData/client/Client.mjs +59 -59
- package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientCreate1.d.mts +2 -2
- package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/users/resources/privateData/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/utils/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/utils/client/Client.mjs +5 -5
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +75 -75
- package/dist/esm/api/resources/utils/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/utils/resources/index.mjs +1 -1
- package/dist/esm/api/resources/utils/resources/root/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/utils/resources/root/client/Client.mjs +28 -28
- package/dist/esm/api/types/AgentRes.d.mts +1 -1
- package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +16 -16
- package/dist/esm/api/types/CargoByDeviceDataPoint1.d.mts +4 -4
- package/dist/esm/api/types/CargoByDeviceDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDeviceMarkOutliersResponse1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDeviceSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/CargoByDriverDataPoint1.d.mts +3 -3
- package/dist/esm/api/types/CargoByDriverDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDriverSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientCreate1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientUpdate1.d.mts +5 -5
- package/dist/esm/api/types/CourierConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/CourierOrgInfoForConnections1.d.mts +10 -10
- package/dist/esm/api/types/CourierOrgProfile1.d.mts +3 -3
- package/dist/esm/api/types/CreateOrgPublicDataRes.d.mts +1 -1
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +7 -7
- package/dist/esm/api/types/DeviceExpandedRes.d.mts +3 -3
- package/dist/esm/api/types/DeviceLimitedForList1.d.mts +11 -11
- package/dist/esm/api/types/DirectoryEntry1.d.mts +13 -13
- package/dist/esm/api/types/Driver1.d.mts +13 -13
- package/dist/esm/api/types/DriverUpdateRes.d.mts +1 -1
- package/dist/esm/api/types/FirebaseCloudMessagingTokenData1.d.mts +1 -1
- package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +3 -3
- package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +3 -3
- package/dist/esm/api/types/FlightAwareWebhookResponse.d.mts +1 -1
- package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +1 -1
- package/dist/esm/api/types/ForwarderConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/ForwarderCourierConnection1.d.mts +7 -7
- package/dist/esm/api/types/ForwarderOrgInfoForConnections1.d.mts +8 -8
- package/dist/esm/api/types/ForwarderOrgProfile1.d.mts +3 -3
- package/dist/esm/api/types/GeometryCollection.d.mts +1 -1
- package/dist/esm/api/types/{GeometryCollectionInputGeometriesItem.d.mts → GeometryCollectionGeometriesItem.d.mts} +2 -2
- package/dist/esm/api/types/LineItem1.d.mts +6 -6
- package/dist/esm/api/types/LineItemGroup1.d.mts +11 -11
- package/dist/esm/api/types/LineItemGroupMessage1.d.mts +2 -2
- package/dist/esm/api/types/LineItemGroupS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/LocationFeature.d.mts +2 -2
- package/dist/esm/api/types/NotificationGroup1.d.mts +7 -7
- package/dist/esm/api/types/NotificationGroupLimitedForDriver1.d.mts +5 -5
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +3 -3
- package/dist/esm/api/types/NotificationUserPreferences1.d.mts +5 -5
- package/dist/esm/api/types/OffChrtShipperOrg1.d.mts +12 -12
- package/dist/esm/api/types/Order1.d.mts +12 -12
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +8 -8
- package/dist/esm/api/types/OrderDraftExpanded.d.mts +4 -4
- package/dist/esm/api/types/OrderExpanded.d.mts +3 -3
- package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +3 -3
- package/dist/esm/api/types/OrgInfoResponse.d.mts +6 -6
- package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPrivateData1.d.mts +12 -12
- package/dist/esm/api/types/OrgPublicData1.d.mts +5 -5
- package/dist/esm/api/types/Quote.d.mts +2 -2
- package/dist/esm/api/types/RateSheet1.d.mts +17 -17
- package/dist/esm/api/types/Session1.d.mts +14 -14
- package/dist/esm/api/types/SessionByDeviceDataPoint1.d.mts +4 -4
- package/dist/esm/api/types/SessionByDeviceDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.d.mts +1 -1
- package/dist/esm/api/types/SetFlightInfoReq.d.mts +2 -2
- package/dist/esm/api/types/ShipperConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +7 -7
- package/dist/esm/api/types/ShipperForwarderConnection1.d.mts +7 -7
- package/dist/esm/api/types/ShipperOrgInfoForConnections1.d.mts +6 -6
- package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskGroupMessageWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/Statement1.d.mts +20 -20
- package/dist/esm/api/types/StatementExpandedRes.d.mts +1 -1
- package/dist/esm/api/types/Task1.d.mts +19 -19
- package/dist/esm/api/types/TaskArtifact1.d.mts +16 -16
- package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +2 -2
- package/dist/esm/api/types/TaskExpanded.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +25 -25
- package/dist/esm/api/types/TaskGroupByDriverDataPoint1.d.mts +3 -3
- package/dist/esm/api/types/TaskGroupByDriverDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupByDriverSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +4 -4
- package/dist/esm/api/types/TaskGroupMessage1.d.mts +2 -2
- package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/TimezoneResponse.d.mts +1 -1
- package/dist/esm/api/types/TrackingSharingSettingsRes.d.mts +1 -1
- package/dist/esm/api/types/TrackingWebhookResponse.d.mts +1 -1
- package/dist/esm/api/types/UserPrivateData1.d.mts +6 -6
- package/dist/esm/api/types/UserPublicData1.d.mts +2 -2
- package/dist/esm/api/types/ValidationError.d.mts +2 -2
- package/dist/esm/api/types/Vehicle1.d.mts +1 -1
- package/dist/esm/api/types/WebhookAppPortalAccessRes.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +1 -2
- package/dist/esm/api/types/index.mjs +1 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1572 -1572
- package/dist/cjs/api/types/GeometryCollectionOutputGeometriesItem.d.ts +0 -28
- package/dist/cjs/api/types/GeometryCollectionOutputGeometriesItem.js +0 -5
- package/dist/esm/api/types/GeometryCollectionOutputGeometriesItem.d.mts +0 -28
- package/dist/esm/api/types/GeometryCollectionOutputGeometriesItem.mjs +0 -4
- /package/dist/cjs/api/types/{GeometryCollectionInputGeometriesItem.js → GeometryCollectionGeometriesItem.js} +0 -0
- /package/dist/esm/api/types/{GeometryCollectionInputGeometriesItem.mjs → GeometryCollectionGeometriesItem.mjs} +0 -0
|
@@ -56,36 +56,32 @@ class CargoByDevice {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Returns
|
|
59
|
+
* Returns the last seen data point for cargo within a task group. Access granted to courier or shipper organization. | () -> (CargoByDeviceDataPoint1 | None)
|
|
60
60
|
*
|
|
61
|
-
* @param {Chrt.tracking.timeseries.
|
|
61
|
+
* @param {Chrt.tracking.timeseries.CargoByDeviceLastSeenV1Request} request
|
|
62
62
|
* @param {CargoByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.tracking.timeseries.cargoByDevice.
|
|
67
|
+
* await client.tracking.timeseries.cargoByDevice.lastSeenV1({
|
|
68
68
|
* cargo_id: "cargo_id",
|
|
69
|
-
* task_group_id: "task_group_id"
|
|
70
|
-
* limit: 1
|
|
69
|
+
* task_group_id: "task_group_id"
|
|
71
70
|
* })
|
|
72
71
|
*/
|
|
73
|
-
|
|
74
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
72
|
+
lastSeenV1(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__lastSeenV1(request, requestOptions));
|
|
75
74
|
}
|
|
76
|
-
|
|
75
|
+
__lastSeenV1(request, requestOptions) {
|
|
77
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a, _b, _c, _d
|
|
79
|
-
const { cargo_id: cargoId, task_group_id: taskGroupId
|
|
77
|
+
var _a, _b, _c, _d;
|
|
78
|
+
const { cargo_id: cargoId, task_group_id: taskGroupId } = request;
|
|
80
79
|
const _queryParams = {};
|
|
81
80
|
_queryParams["cargo_id"] = cargoId;
|
|
82
81
|
_queryParams["task_group_id"] = taskGroupId;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
87
|
-
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
88
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/data_points/v1"),
|
|
82
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
83
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
84
|
+
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/timeseries/cargo_by_device/last_seen/v1"),
|
|
89
85
|
method: "GET",
|
|
90
86
|
headers: _headers,
|
|
91
87
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -94,7 +90,10 @@ class CargoByDevice {
|
|
|
94
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
91
|
});
|
|
96
92
|
if (_response.ok) {
|
|
97
|
-
return {
|
|
93
|
+
return {
|
|
94
|
+
data: _response.body,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
};
|
|
98
97
|
}
|
|
99
98
|
if (_response.error.reason === "status-code") {
|
|
100
99
|
switch (_response.error.statusCode) {
|
|
@@ -116,7 +115,7 @@ class CargoByDevice {
|
|
|
116
115
|
rawResponse: _response.rawResponse,
|
|
117
116
|
});
|
|
118
117
|
case "timeout":
|
|
119
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/
|
|
118
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/last_seen/v1.");
|
|
120
119
|
case "unknown":
|
|
121
120
|
throw new errors.ChrtError({
|
|
122
121
|
message: _response.error.errorMessage,
|
|
@@ -126,24 +125,24 @@ class CargoByDevice {
|
|
|
126
125
|
});
|
|
127
126
|
}
|
|
128
127
|
/**
|
|
129
|
-
* Returns up to the specified number of data points for a cargo within a
|
|
128
|
+
* Returns up to the specified number of data points for a cargo within a task group, intelligently sampled across the time range. Excludes outliers. | () -> (list[CargoByDeviceDataPoint1])
|
|
130
129
|
*
|
|
131
|
-
* @param {Chrt.tracking.timeseries.
|
|
130
|
+
* @param {Chrt.tracking.timeseries.CargoByDeviceDataPointsV1Request} request
|
|
132
131
|
* @param {CargoByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
132
|
*
|
|
134
133
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
135
134
|
*
|
|
136
135
|
* @example
|
|
137
|
-
* await client.tracking.timeseries.cargoByDevice.
|
|
136
|
+
* await client.tracking.timeseries.cargoByDevice.dataPointsV1({
|
|
138
137
|
* cargo_id: "cargo_id",
|
|
139
138
|
* task_group_id: "task_group_id",
|
|
140
139
|
* limit: 1
|
|
141
140
|
* })
|
|
142
141
|
*/
|
|
143
|
-
|
|
144
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
142
|
+
dataPointsV1(request, requestOptions) {
|
|
143
|
+
return core.HttpResponsePromise.fromPromise(this.__dataPointsV1(request, requestOptions));
|
|
145
144
|
}
|
|
146
|
-
|
|
145
|
+
__dataPointsV1(request, requestOptions) {
|
|
147
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
147
|
var _a, _b, _c, _d, _e;
|
|
149
148
|
const { cargo_id: cargoId, task_group_id: taskGroupId, limit } = request;
|
|
@@ -155,7 +154,7 @@ class CargoByDevice {
|
|
|
155
154
|
}
|
|
156
155
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
157
156
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
158
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/
|
|
157
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/data_points/v1"),
|
|
159
158
|
method: "GET",
|
|
160
159
|
headers: _headers,
|
|
161
160
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -186,7 +185,7 @@ class CargoByDevice {
|
|
|
186
185
|
rawResponse: _response.rawResponse,
|
|
187
186
|
});
|
|
188
187
|
case "timeout":
|
|
189
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/
|
|
188
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/data_points/v1.");
|
|
190
189
|
case "unknown":
|
|
191
190
|
throw new errors.ChrtError({
|
|
192
191
|
message: _response.error.errorMessage,
|
|
@@ -196,35 +195,34 @@ class CargoByDevice {
|
|
|
196
195
|
});
|
|
197
196
|
}
|
|
198
197
|
/**
|
|
199
|
-
*
|
|
198
|
+
* Marks data points as outliers or non-outliers. Uses atomic delete and reinsert strategy for time-series collection updates. | authz: allowed_org_types=[shipper, forwarder], min_org_role=operator | (CargoByDeviceMarkOutliersRequest1) -> (CargoByDeviceMarkOutliersResponse1)
|
|
200
199
|
*
|
|
201
|
-
* @param {Chrt.tracking.timeseries.
|
|
200
|
+
* @param {Chrt.tracking.timeseries.CargoByDeviceMarkOutliersRequest1} request
|
|
202
201
|
* @param {CargoByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
203
202
|
*
|
|
204
203
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
205
204
|
*
|
|
206
205
|
* @example
|
|
207
|
-
* await client.tracking.timeseries.cargoByDevice.
|
|
208
|
-
*
|
|
209
|
-
*
|
|
206
|
+
* await client.tracking.timeseries.cargoByDevice.outlierV1({
|
|
207
|
+
* tracking_cargo_by_device_data_point_ids: ["tracking_cargo_by_device_data_point_ids"],
|
|
208
|
+
* outlier: true
|
|
210
209
|
* })
|
|
211
210
|
*/
|
|
212
|
-
|
|
213
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
211
|
+
outlierV1(request, requestOptions) {
|
|
212
|
+
return core.HttpResponsePromise.fromPromise(this.__outlierV1(request, requestOptions));
|
|
214
213
|
}
|
|
215
|
-
|
|
214
|
+
__outlierV1(request, requestOptions) {
|
|
216
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
217
216
|
var _a, _b, _c, _d;
|
|
218
|
-
const { cargo_id: cargoId, task_group_id: taskGroupId } = request;
|
|
219
|
-
const _queryParams = {};
|
|
220
|
-
_queryParams["cargo_id"] = cargoId;
|
|
221
|
-
_queryParams["task_group_id"] = taskGroupId;
|
|
222
217
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
223
218
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
224
|
-
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/timeseries/cargo_by_device/
|
|
225
|
-
method: "
|
|
219
|
+
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/timeseries/cargo_by_device/outlier/v1"),
|
|
220
|
+
method: "POST",
|
|
226
221
|
headers: _headers,
|
|
227
|
-
|
|
222
|
+
contentType: "application/json",
|
|
223
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
224
|
+
requestType: "json",
|
|
225
|
+
body: request,
|
|
228
226
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
229
227
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
230
228
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -255,7 +253,7 @@ class CargoByDevice {
|
|
|
255
253
|
rawResponse: _response.rawResponse,
|
|
256
254
|
});
|
|
257
255
|
case "timeout":
|
|
258
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
256
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/timeseries/cargo_by_device/outlier/v1.");
|
|
259
257
|
case "unknown":
|
|
260
258
|
throw new errors.ChrtError({
|
|
261
259
|
message: _response.error.errorMessage,
|
|
@@ -334,43 +332,45 @@ class CargoByDevice {
|
|
|
334
332
|
});
|
|
335
333
|
}
|
|
336
334
|
/**
|
|
337
|
-
*
|
|
335
|
+
* Returns up to the specified number of data points for a cargo within a public task group, intelligently sampled across the time range. Excludes outliers. No authentication required if cargo has public visibility enabled via sharing settings. | () -> (list[CargoByDeviceDataPoint1])
|
|
338
336
|
*
|
|
339
|
-
* @param {Chrt.tracking.timeseries.
|
|
337
|
+
* @param {Chrt.tracking.timeseries.CargoByDeviceDataPointsPublicV1Request} request
|
|
340
338
|
* @param {CargoByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
341
339
|
*
|
|
342
340
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
343
341
|
*
|
|
344
342
|
* @example
|
|
345
|
-
* await client.tracking.timeseries.cargoByDevice.
|
|
346
|
-
*
|
|
347
|
-
*
|
|
343
|
+
* await client.tracking.timeseries.cargoByDevice.dataPointsPublicV1({
|
|
344
|
+
* cargo_id: "cargo_id",
|
|
345
|
+
* task_group_id: "task_group_id",
|
|
346
|
+
* limit: 1
|
|
348
347
|
* })
|
|
349
348
|
*/
|
|
350
|
-
|
|
351
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
349
|
+
dataPointsPublicV1(request, requestOptions) {
|
|
350
|
+
return core.HttpResponsePromise.fromPromise(this.__dataPointsPublicV1(request, requestOptions));
|
|
352
351
|
}
|
|
353
|
-
|
|
352
|
+
__dataPointsPublicV1(request, requestOptions) {
|
|
354
353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
-
var _a, _b, _c, _d;
|
|
356
|
-
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
|
|
354
|
+
var _a, _b, _c, _d, _e;
|
|
355
|
+
const { cargo_id: cargoId, task_group_id: taskGroupId, limit } = request;
|
|
356
|
+
const _queryParams = {};
|
|
357
|
+
_queryParams["cargo_id"] = cargoId;
|
|
358
|
+
_queryParams["task_group_id"] = taskGroupId;
|
|
359
|
+
if (limit !== undefined) {
|
|
360
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
361
|
+
}
|
|
362
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
363
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
364
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_device/data_points_public/v1"),
|
|
365
|
+
method: "GET",
|
|
360
366
|
headers: _headers,
|
|
361
|
-
|
|
362
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
363
|
-
requestType: "json",
|
|
364
|
-
body: request,
|
|
367
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
365
368
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
366
369
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
367
370
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
368
371
|
});
|
|
369
372
|
if (_response.ok) {
|
|
370
|
-
return {
|
|
371
|
-
data: _response.body,
|
|
372
|
-
rawResponse: _response.rawResponse,
|
|
373
|
-
};
|
|
373
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
374
374
|
}
|
|
375
375
|
if (_response.error.reason === "status-code") {
|
|
376
376
|
switch (_response.error.statusCode) {
|
|
@@ -392,7 +392,7 @@ class CargoByDevice {
|
|
|
392
392
|
rawResponse: _response.rawResponse,
|
|
393
393
|
});
|
|
394
394
|
case "timeout":
|
|
395
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
395
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_device/data_points_public/v1.");
|
|
396
396
|
case "unknown":
|
|
397
397
|
throw new errors.ChrtError({
|
|
398
398
|
message: _response.error.errorMessage,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* tracking_cargo_by_device_data_point_ids: ["tracking_cargo_by_device_data_point_ids"],
|
|
8
|
+
* outlier: true
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface CargoByDeviceMarkOutliersRequest1 {
|
|
12
|
-
outlier: boolean;
|
|
13
12
|
tracking_cargo_by_device_data_point_ids: string[];
|
|
13
|
+
outlier: boolean;
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { type CargoByDeviceDataPointsV1Request } from "./CargoByDeviceDataPointsV1Request.js";
|
|
2
|
-
export { type CargoByDeviceDataPointsPublicV1Request } from "./CargoByDeviceDataPointsPublicV1Request.js";
|
|
3
1
|
export { type CargoByDeviceLastSeenV1Request } from "./CargoByDeviceLastSeenV1Request.js";
|
|
4
|
-
export { type
|
|
2
|
+
export { type CargoByDeviceDataPointsV1Request } from "./CargoByDeviceDataPointsV1Request.js";
|
|
5
3
|
export { type CargoByDeviceMarkOutliersRequest1 } from "./CargoByDeviceMarkOutliersRequest1.js";
|
|
4
|
+
export { type CargoByDeviceLastSeenPublicV1Request } from "./CargoByDeviceLastSeenPublicV1Request.js";
|
|
5
|
+
export { type CargoByDeviceDataPointsPublicV1Request } from "./CargoByDeviceDataPointsPublicV1Request.js";
|
|
@@ -31,70 +31,70 @@ export declare class CargoByDriver {
|
|
|
31
31
|
protected readonly _options: CargoByDriver.Options;
|
|
32
32
|
constructor(_options?: CargoByDriver.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Returns
|
|
34
|
+
* Returns the most recent driver location data point for cargo within a task group. Access granted to courier or shipper organization. Data written by the driver update endpoint. | () -> (CargoByDriverDataPoint1 | None)
|
|
35
35
|
*
|
|
36
|
-
* @param {Chrt.tracking.timeseries.
|
|
36
|
+
* @param {Chrt.tracking.timeseries.CargoByDriverLastSeenV1Request} request
|
|
37
37
|
* @param {CargoByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.tracking.timeseries.cargoByDriver.
|
|
42
|
+
* await client.tracking.timeseries.cargoByDriver.lastSeenV1({
|
|
43
43
|
* cargo_id: "cargo_id",
|
|
44
|
-
* task_group_id: "task_group_id"
|
|
45
|
-
* limit: 1
|
|
44
|
+
* task_group_id: "task_group_id"
|
|
46
45
|
* })
|
|
47
46
|
*/
|
|
48
|
-
|
|
49
|
-
private
|
|
47
|
+
lastSeenV1(request: Chrt.tracking.timeseries.CargoByDriverLastSeenV1Request, requestOptions?: CargoByDriver.RequestOptions): core.HttpResponsePromise<(Chrt.CargoByDriverDataPoint1 | null) | undefined>;
|
|
48
|
+
private __lastSeenV1;
|
|
50
49
|
/**
|
|
51
|
-
* Returns up to the specified number of data points for a cargo within a
|
|
50
|
+
* Returns up to the specified number of data points for a cargo within a task group, intelligently sampled across the time range. Excludes outliers. | () -> (list[CargoByDriverDataPoint1])
|
|
52
51
|
*
|
|
53
|
-
* @param {Chrt.tracking.timeseries.
|
|
52
|
+
* @param {Chrt.tracking.timeseries.CargoByDriverDataPointsV1Request} request
|
|
54
53
|
* @param {CargoByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
54
|
*
|
|
56
55
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
57
56
|
*
|
|
58
57
|
* @example
|
|
59
|
-
* await client.tracking.timeseries.cargoByDriver.
|
|
58
|
+
* await client.tracking.timeseries.cargoByDriver.dataPointsV1({
|
|
60
59
|
* cargo_id: "cargo_id",
|
|
61
60
|
* task_group_id: "task_group_id",
|
|
62
61
|
* limit: 1
|
|
63
62
|
* })
|
|
64
63
|
*/
|
|
65
|
-
|
|
66
|
-
private
|
|
64
|
+
dataPointsV1(request: Chrt.tracking.timeseries.CargoByDriverDataPointsV1Request, requestOptions?: CargoByDriver.RequestOptions): core.HttpResponsePromise<Chrt.CargoByDriverDataPoint1[]>;
|
|
65
|
+
private __dataPointsV1;
|
|
67
66
|
/**
|
|
68
|
-
* Returns the most recent driver location data point for cargo within a task group.
|
|
67
|
+
* Returns the most recent driver location data point for a cargo within a public task group. No authentication required if cargo has public visibility enabled via sharing settings. | () -> (CargoByDriverDataPoint1 | None)
|
|
69
68
|
*
|
|
70
|
-
* @param {Chrt.tracking.timeseries.
|
|
69
|
+
* @param {Chrt.tracking.timeseries.CargoByDriverLastSeenPublicV1Request} request
|
|
71
70
|
* @param {CargoByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
71
|
*
|
|
73
72
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
74
73
|
*
|
|
75
74
|
* @example
|
|
76
|
-
* await client.tracking.timeseries.cargoByDriver.
|
|
75
|
+
* await client.tracking.timeseries.cargoByDriver.lastSeenPublicV1({
|
|
77
76
|
* cargo_id: "cargo_id",
|
|
78
77
|
* task_group_id: "task_group_id"
|
|
79
78
|
* })
|
|
80
79
|
*/
|
|
81
|
-
|
|
82
|
-
private
|
|
80
|
+
lastSeenPublicV1(request: Chrt.tracking.timeseries.CargoByDriverLastSeenPublicV1Request, requestOptions?: CargoByDriver.RequestOptions): core.HttpResponsePromise<(Chrt.CargoByDriverDataPoint1 | null) | undefined>;
|
|
81
|
+
private __lastSeenPublicV1;
|
|
83
82
|
/**
|
|
84
|
-
* Returns the
|
|
83
|
+
* Returns up to the specified number of data points for a cargo within a public task group, intelligently sampled across the time range. Excludes outliers. No authentication required if cargo has public visibility enabled via sharing settings. | () -> (list[CargoByDriverDataPoint1])
|
|
85
84
|
*
|
|
86
|
-
* @param {Chrt.tracking.timeseries.
|
|
85
|
+
* @param {Chrt.tracking.timeseries.CargoByDriverDataPointsPublicV1Request} request
|
|
87
86
|
* @param {CargoByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
87
|
*
|
|
89
88
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
90
89
|
*
|
|
91
90
|
* @example
|
|
92
|
-
* await client.tracking.timeseries.cargoByDriver.
|
|
91
|
+
* await client.tracking.timeseries.cargoByDriver.dataPointsPublicV1({
|
|
93
92
|
* cargo_id: "cargo_id",
|
|
94
|
-
* task_group_id: "task_group_id"
|
|
93
|
+
* task_group_id: "task_group_id",
|
|
94
|
+
* limit: 1
|
|
95
95
|
* })
|
|
96
96
|
*/
|
|
97
|
-
|
|
98
|
-
private
|
|
97
|
+
dataPointsPublicV1(request: Chrt.tracking.timeseries.CargoByDriverDataPointsPublicV1Request, requestOptions?: CargoByDriver.RequestOptions): core.HttpResponsePromise<Chrt.CargoByDriverDataPoint1[]>;
|
|
98
|
+
private __dataPointsPublicV1;
|
|
99
99
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
100
100
|
}
|
|
@@ -56,36 +56,32 @@ class CargoByDriver {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Returns
|
|
59
|
+
* Returns the most recent driver location data point for cargo within a task group. Access granted to courier or shipper organization. Data written by the driver update endpoint. | () -> (CargoByDriverDataPoint1 | None)
|
|
60
60
|
*
|
|
61
|
-
* @param {Chrt.tracking.timeseries.
|
|
61
|
+
* @param {Chrt.tracking.timeseries.CargoByDriverLastSeenV1Request} request
|
|
62
62
|
* @param {CargoByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.tracking.timeseries.cargoByDriver.
|
|
67
|
+
* await client.tracking.timeseries.cargoByDriver.lastSeenV1({
|
|
68
68
|
* cargo_id: "cargo_id",
|
|
69
|
-
* task_group_id: "task_group_id"
|
|
70
|
-
* limit: 1
|
|
69
|
+
* task_group_id: "task_group_id"
|
|
71
70
|
* })
|
|
72
71
|
*/
|
|
73
|
-
|
|
74
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
72
|
+
lastSeenV1(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__lastSeenV1(request, requestOptions));
|
|
75
74
|
}
|
|
76
|
-
|
|
75
|
+
__lastSeenV1(request, requestOptions) {
|
|
77
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a, _b, _c, _d
|
|
79
|
-
const { cargo_id: cargoId, task_group_id: taskGroupId
|
|
77
|
+
var _a, _b, _c, _d;
|
|
78
|
+
const { cargo_id: cargoId, task_group_id: taskGroupId } = request;
|
|
80
79
|
const _queryParams = {};
|
|
81
80
|
_queryParams["cargo_id"] = cargoId;
|
|
82
81
|
_queryParams["task_group_id"] = taskGroupId;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
87
|
-
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
88
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_driver/data_points/v1"),
|
|
82
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
83
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
84
|
+
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/timeseries/cargo_by_driver/last_seen/v1"),
|
|
89
85
|
method: "GET",
|
|
90
86
|
headers: _headers,
|
|
91
87
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -94,7 +90,10 @@ class CargoByDriver {
|
|
|
94
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
91
|
});
|
|
96
92
|
if (_response.ok) {
|
|
97
|
-
return {
|
|
93
|
+
return {
|
|
94
|
+
data: _response.body,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
};
|
|
98
97
|
}
|
|
99
98
|
if (_response.error.reason === "status-code") {
|
|
100
99
|
switch (_response.error.statusCode) {
|
|
@@ -116,7 +115,7 @@ class CargoByDriver {
|
|
|
116
115
|
rawResponse: _response.rawResponse,
|
|
117
116
|
});
|
|
118
117
|
case "timeout":
|
|
119
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/
|
|
118
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/last_seen/v1.");
|
|
120
119
|
case "unknown":
|
|
121
120
|
throw new errors.ChrtError({
|
|
122
121
|
message: _response.error.errorMessage,
|
|
@@ -126,24 +125,24 @@ class CargoByDriver {
|
|
|
126
125
|
});
|
|
127
126
|
}
|
|
128
127
|
/**
|
|
129
|
-
* Returns up to the specified number of data points for a cargo within a
|
|
128
|
+
* Returns up to the specified number of data points for a cargo within a task group, intelligently sampled across the time range. Excludes outliers. | () -> (list[CargoByDriverDataPoint1])
|
|
130
129
|
*
|
|
131
|
-
* @param {Chrt.tracking.timeseries.
|
|
130
|
+
* @param {Chrt.tracking.timeseries.CargoByDriverDataPointsV1Request} request
|
|
132
131
|
* @param {CargoByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
132
|
*
|
|
134
133
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
135
134
|
*
|
|
136
135
|
* @example
|
|
137
|
-
* await client.tracking.timeseries.cargoByDriver.
|
|
136
|
+
* await client.tracking.timeseries.cargoByDriver.dataPointsV1({
|
|
138
137
|
* cargo_id: "cargo_id",
|
|
139
138
|
* task_group_id: "task_group_id",
|
|
140
139
|
* limit: 1
|
|
141
140
|
* })
|
|
142
141
|
*/
|
|
143
|
-
|
|
144
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
142
|
+
dataPointsV1(request, requestOptions) {
|
|
143
|
+
return core.HttpResponsePromise.fromPromise(this.__dataPointsV1(request, requestOptions));
|
|
145
144
|
}
|
|
146
|
-
|
|
145
|
+
__dataPointsV1(request, requestOptions) {
|
|
147
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
147
|
var _a, _b, _c, _d, _e;
|
|
149
148
|
const { cargo_id: cargoId, task_group_id: taskGroupId, limit } = request;
|
|
@@ -155,7 +154,7 @@ class CargoByDriver {
|
|
|
155
154
|
}
|
|
156
155
|
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
157
156
|
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
158
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_driver/
|
|
157
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_driver/data_points/v1"),
|
|
159
158
|
method: "GET",
|
|
160
159
|
headers: _headers,
|
|
161
160
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -186,7 +185,7 @@ class CargoByDriver {
|
|
|
186
185
|
rawResponse: _response.rawResponse,
|
|
187
186
|
});
|
|
188
187
|
case "timeout":
|
|
189
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/
|
|
188
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/data_points/v1.");
|
|
190
189
|
case "unknown":
|
|
191
190
|
throw new errors.ChrtError({
|
|
192
191
|
message: _response.error.errorMessage,
|
|
@@ -196,23 +195,23 @@ class CargoByDriver {
|
|
|
196
195
|
});
|
|
197
196
|
}
|
|
198
197
|
/**
|
|
199
|
-
* Returns the most recent driver location data point for cargo within a task group.
|
|
198
|
+
* Returns the most recent driver location data point for a cargo within a public task group. No authentication required if cargo has public visibility enabled via sharing settings. | () -> (CargoByDriverDataPoint1 | None)
|
|
200
199
|
*
|
|
201
|
-
* @param {Chrt.tracking.timeseries.
|
|
200
|
+
* @param {Chrt.tracking.timeseries.CargoByDriverLastSeenPublicV1Request} request
|
|
202
201
|
* @param {CargoByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
203
202
|
*
|
|
204
203
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
205
204
|
*
|
|
206
205
|
* @example
|
|
207
|
-
* await client.tracking.timeseries.cargoByDriver.
|
|
206
|
+
* await client.tracking.timeseries.cargoByDriver.lastSeenPublicV1({
|
|
208
207
|
* cargo_id: "cargo_id",
|
|
209
208
|
* task_group_id: "task_group_id"
|
|
210
209
|
* })
|
|
211
210
|
*/
|
|
212
|
-
|
|
213
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
211
|
+
lastSeenPublicV1(request, requestOptions) {
|
|
212
|
+
return core.HttpResponsePromise.fromPromise(this.__lastSeenPublicV1(request, requestOptions));
|
|
214
213
|
}
|
|
215
|
-
|
|
214
|
+
__lastSeenPublicV1(request, requestOptions) {
|
|
216
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
217
216
|
var _a, _b, _c, _d;
|
|
218
217
|
const { cargo_id: cargoId, task_group_id: taskGroupId } = request;
|
|
@@ -221,7 +220,7 @@ class CargoByDriver {
|
|
|
221
220
|
_queryParams["task_group_id"] = taskGroupId;
|
|
222
221
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
223
222
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
224
|
-
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/timeseries/cargo_by_driver/
|
|
223
|
+
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/timeseries/cargo_by_driver/last_seen_public/v1"),
|
|
225
224
|
method: "GET",
|
|
226
225
|
headers: _headers,
|
|
227
226
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -255,7 +254,7 @@ class CargoByDriver {
|
|
|
255
254
|
rawResponse: _response.rawResponse,
|
|
256
255
|
});
|
|
257
256
|
case "timeout":
|
|
258
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/
|
|
257
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/last_seen_public/v1.");
|
|
259
258
|
case "unknown":
|
|
260
259
|
throw new errors.ChrtError({
|
|
261
260
|
message: _response.error.errorMessage,
|
|
@@ -265,32 +264,36 @@ class CargoByDriver {
|
|
|
265
264
|
});
|
|
266
265
|
}
|
|
267
266
|
/**
|
|
268
|
-
* Returns the
|
|
267
|
+
* Returns up to the specified number of data points for a cargo within a public task group, intelligently sampled across the time range. Excludes outliers. No authentication required if cargo has public visibility enabled via sharing settings. | () -> (list[CargoByDriverDataPoint1])
|
|
269
268
|
*
|
|
270
|
-
* @param {Chrt.tracking.timeseries.
|
|
269
|
+
* @param {Chrt.tracking.timeseries.CargoByDriverDataPointsPublicV1Request} request
|
|
271
270
|
* @param {CargoByDriver.RequestOptions} requestOptions - Request-specific configuration.
|
|
272
271
|
*
|
|
273
272
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
274
273
|
*
|
|
275
274
|
* @example
|
|
276
|
-
* await client.tracking.timeseries.cargoByDriver.
|
|
275
|
+
* await client.tracking.timeseries.cargoByDriver.dataPointsPublicV1({
|
|
277
276
|
* cargo_id: "cargo_id",
|
|
278
|
-
* task_group_id: "task_group_id"
|
|
277
|
+
* task_group_id: "task_group_id",
|
|
278
|
+
* limit: 1
|
|
279
279
|
* })
|
|
280
280
|
*/
|
|
281
|
-
|
|
282
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
281
|
+
dataPointsPublicV1(request, requestOptions) {
|
|
282
|
+
return core.HttpResponsePromise.fromPromise(this.__dataPointsPublicV1(request, requestOptions));
|
|
283
283
|
}
|
|
284
|
-
|
|
284
|
+
__dataPointsPublicV1(request, requestOptions) {
|
|
285
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
var _a, _b, _c, _d;
|
|
287
|
-
const { cargo_id: cargoId, task_group_id: taskGroupId } = request;
|
|
286
|
+
var _a, _b, _c, _d, _e;
|
|
287
|
+
const { cargo_id: cargoId, task_group_id: taskGroupId, limit } = request;
|
|
288
288
|
const _queryParams = {};
|
|
289
289
|
_queryParams["cargo_id"] = cargoId;
|
|
290
290
|
_queryParams["task_group_id"] = taskGroupId;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
if (limit !== undefined) {
|
|
292
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
293
|
+
}
|
|
294
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
295
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
296
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/timeseries/cargo_by_driver/data_points_public/v1"),
|
|
294
297
|
method: "GET",
|
|
295
298
|
headers: _headers,
|
|
296
299
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -299,10 +302,7 @@ class CargoByDriver {
|
|
|
299
302
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
300
303
|
});
|
|
301
304
|
if (_response.ok) {
|
|
302
|
-
return {
|
|
303
|
-
data: _response.body,
|
|
304
|
-
rawResponse: _response.rawResponse,
|
|
305
|
-
};
|
|
305
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
306
306
|
}
|
|
307
307
|
if (_response.error.reason === "status-code") {
|
|
308
308
|
switch (_response.error.statusCode) {
|
|
@@ -324,7 +324,7 @@ class CargoByDriver {
|
|
|
324
324
|
rawResponse: _response.rawResponse,
|
|
325
325
|
});
|
|
326
326
|
case "timeout":
|
|
327
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/
|
|
327
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/timeseries/cargo_by_driver/data_points_public/v1.");
|
|
328
328
|
case "unknown":
|
|
329
329
|
throw new errors.ChrtError({
|
|
330
330
|
message: _response.error.errorMessage,
|