@chrt-inc/typescript-sdk 1.326.0 → 1.331.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +4 -4
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +4 -4
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +6 -6
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverStatements/client/Client.js +4 -4
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/drivers/client/Client.js +20 -3
- package/dist/cjs/api/resources/drivers/client/requests/DriverClientCreate1.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/expanded/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orders/resources/expanded/client/Client.js +2 -2
- package/dist/cjs/api/resources/payments/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/payments/client/Client.js +5 -5
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +5 -5
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +3 -3
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +7 -7
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +5 -5
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/shipperPayCourierStatements/client/Client.js +7 -7
- package/dist/cjs/api/resources/tracking/client/Client.d.ts +9 -12
- package/dist/cjs/api/resources/tracking/client/Client.js +15 -20
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +25 -25
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +73 -73
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +1 -2
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.ts +0 -2
- package/dist/cjs/api/resources/tracking/resources/index.d.ts +5 -8
- package/dist/cjs/api/resources/tracking/resources/index.js +6 -9
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +164 -0
- package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → sessions}/client/Client.js +50 -394
- package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.d.ts → sessions/client/requests/SessionCreateSessionRequest1.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.d.ts → sessions/client/requests/SessionUpdateRequest1.d.ts} +1 -1
- package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsDeleteV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceGetV1Request.d.ts → sessions/client/requests/SessionsGetV1Request.d.ts} +1 -1
- package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsPauseRecordingV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsResumeRecordingV1Request.d.ts +12 -0
- package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.mts → cjs/api/resources/tracking/resources/sessions/client/requests/SessionsStartV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.ts → sessions/client/requests/SessionsTerminateV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +8 -0
- package/dist/cjs/api/resources/tracking/resources/sharing/client/Client.d.ts +100 -0
- package/dist/cjs/api/resources/tracking/resources/sharing/client/Client.js +330 -0
- package/dist/cjs/api/resources/tracking/resources/sharing/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.ts +18 -0
- package/dist/cjs/api/resources/tracking/resources/sharing/client/requests/CargoByDriverSharingSettingsUpdateReq.d.ts +18 -0
- package/dist/cjs/api/resources/tracking/resources/sharing/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.ts +16 -0
- package/dist/cjs/api/resources/tracking/resources/sharing/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/client/Client.js +32 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/index.js +18 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.ts +116 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +414 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsPublicV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenPublicV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.ts +100 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +346 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsPublicV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenPublicV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/index.d.ts +8 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/index.js +47 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +112 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +406 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +96 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +338 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsPublicV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsPublicV1Request.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsV1Request.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenPublicV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenPublicV1Request.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/index.js +17 -0
- package/dist/cjs/api/types/{TrackingCargoByDeviceDataPoint1.d.ts → CargoByDeviceDataPoint1.d.ts} +2 -2
- package/dist/cjs/api/types/CargoByDeviceDataPoint1.js +5 -0
- package/dist/cjs/api/types/{TrackingCargoByDeviceDataPointMetadata1.d.ts → CargoByDeviceDataPointMetadata1.d.ts} +3 -3
- package/dist/cjs/api/types/CargoByDeviceDataPointMetadata1.js +5 -0
- package/dist/cjs/api/types/CargoByDeviceMarkOutliersResponse1.d.ts +7 -0
- package/dist/cjs/api/types/CargoByDeviceMarkOutliersResponse1.js +5 -0
- package/dist/cjs/api/types/CargoByDeviceSharingSettings1.d.ts +16 -0
- package/dist/cjs/api/types/CargoByDeviceSharingSettings1.js +5 -0
- package/dist/cjs/api/types/{TrackingCargoByDriverDataPoint1.d.ts → CargoByDriverDataPoint1.d.ts} +2 -2
- package/dist/cjs/api/types/CargoByDriverDataPoint1.js +5 -0
- package/dist/cjs/api/types/{TrackingCargoByDriverDataPointMetadata1.d.ts → CargoByDriverDataPointMetadata1.d.ts} +3 -3
- package/dist/cjs/api/types/CargoByDriverDataPointMetadata1.js +5 -0
- package/dist/cjs/api/types/CargoByDriverSharingSettings1.d.ts +16 -0
- package/dist/cjs/api/types/CargoByDriverSharingSettings1.js +5 -0
- package/dist/cjs/api/types/Driver1.d.ts +1 -1
- package/dist/cjs/api/types/DriverUpdateRes.d.ts +1 -1
- package/dist/cjs/api/types/{TrackingSessionByDeviceDataPoint1.d.ts → SessionByDeviceDataPoint1.d.ts} +2 -2
- package/dist/cjs/api/types/SessionByDeviceDataPoint1.js +5 -0
- package/dist/cjs/api/types/{TrackingSessionByDeviceDataPointMetadata1.d.ts → SessionByDeviceDataPointMetadata1.d.ts} +1 -1
- package/dist/cjs/api/types/SessionByDeviceDataPointMetadata1.js +5 -0
- package/dist/cjs/api/types/{SessionByDeviceDeleteResponse1.d.ts → SessionDeleteResponse1.d.ts} +1 -1
- package/dist/cjs/api/types/SessionDeleteResponse1.js +5 -0
- package/dist/cjs/api/types/{TrackingTaskGroupByDriverDataPoint1.d.ts → TaskGroupByDriverDataPoint1.d.ts} +2 -2
- package/dist/cjs/api/types/TaskGroupByDriverDataPoint1.js +5 -0
- package/dist/cjs/api/types/{TrackingTaskGroupByDriverDataPointMetadata1.d.ts → TaskGroupByDriverDataPointMetadata1.d.ts} +2 -2
- package/dist/cjs/api/types/TaskGroupByDriverDataPointMetadata1.js +5 -0
- package/dist/cjs/api/types/TaskGroupByDriverSharingSettings1.d.ts +15 -0
- package/dist/cjs/api/types/TaskGroupByDriverSharingSettings1.js +5 -0
- package/dist/cjs/api/types/TrackingSharingSettingsRes.d.ts +11 -0
- package/dist/cjs/api/types/TrackingSharingSettingsRes.js +5 -0
- package/dist/cjs/api/types/index.d.ts +14 -9
- package/dist/cjs/api/types/index.js +14 -9
- 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/courierPayDriverLineItemGroups/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +4 -4
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +4 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +6 -6
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverStatements/client/Client.mjs +4 -4
- package/dist/esm/api/resources/drivers/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/drivers/client/Client.mjs +20 -3
- package/dist/esm/api/resources/drivers/client/requests/DriverClientCreate1.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/expanded/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orders/resources/expanded/client/Client.mjs +2 -2
- package/dist/esm/api/resources/payments/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/payments/client/Client.mjs +5 -5
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +5 -5
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +3 -3
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +5 -5
- package/dist/esm/api/resources/shipperPayCourierStatements/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/shipperPayCourierStatements/client/Client.mjs +7 -7
- package/dist/esm/api/resources/tracking/client/Client.d.mts +9 -12
- package/dist/esm/api/resources/tracking/client/Client.mjs +11 -16
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +25 -25
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +73 -73
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +1 -2
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.mts +0 -2
- package/dist/esm/api/resources/tracking/resources/index.d.mts +5 -8
- package/dist/esm/api/resources/tracking/resources/index.mjs +5 -8
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +164 -0
- package/dist/esm/api/resources/tracking/resources/{sessionByDevice → sessions}/client/Client.mjs +48 -392
- package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.d.mts → sessions/client/requests/SessionCreateSessionRequest1.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.d.mts → sessions/client/requests/SessionUpdateRequest1.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsDeleteV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsGetV1Request.d.mts +12 -0
- package/dist/{cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.d.ts → esm/api/resources/tracking/resources/sessions/client/requests/SessionsPauseRecordingV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsResumeRecordingV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsStartV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsTerminateV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +8 -0
- package/dist/esm/api/resources/tracking/resources/sharing/client/Client.d.mts +100 -0
- package/dist/esm/api/resources/tracking/resources/sharing/client/Client.mjs +293 -0
- package/dist/esm/api/resources/tracking/resources/sharing/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.mts +18 -0
- package/dist/esm/api/resources/tracking/resources/sharing/client/requests/CargoByDriverSharingSettingsUpdateReq.d.mts +18 -0
- package/dist/esm/api/resources/tracking/resources/sharing/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.mts +16 -0
- package/dist/esm/api/resources/tracking/resources/sharing/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/client/Client.mjs +28 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/client/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/index.mjs +2 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.mts +116 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +377 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsPublicV1Request.d.mts +16 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsV1Request.d.mts +16 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenPublicV1Request.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.mts +100 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +309 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsPublicV1Request.d.mts +16 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsV1Request.d.mts +16 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenPublicV1Request.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/index.d.mts +8 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/index.mjs +8 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +112 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +369 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +96 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +301 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsPublicV1Request.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsPublicV1Request.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsV1Request.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverDataPointsV1Request.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenPublicV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenPublicV1Request.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/index.mjs +1 -0
- package/dist/esm/api/types/{TrackingCargoByDeviceDataPoint1.d.mts → CargoByDeviceDataPoint1.d.mts} +2 -2
- package/dist/esm/api/types/CargoByDeviceDataPoint1.mjs +4 -0
- package/dist/esm/api/types/{TrackingCargoByDeviceDataPointMetadata1.d.mts → CargoByDeviceDataPointMetadata1.d.mts} +3 -3
- package/dist/esm/api/types/CargoByDeviceDataPointMetadata1.mjs +4 -0
- package/dist/esm/api/types/CargoByDeviceMarkOutliersResponse1.d.mts +7 -0
- package/dist/esm/api/types/CargoByDeviceMarkOutliersResponse1.mjs +4 -0
- package/dist/esm/api/types/CargoByDeviceSharingSettings1.d.mts +16 -0
- package/dist/esm/api/types/CargoByDeviceSharingSettings1.mjs +4 -0
- package/dist/esm/api/types/{TrackingCargoByDriverDataPoint1.d.mts → CargoByDriverDataPoint1.d.mts} +2 -2
- package/dist/esm/api/types/CargoByDriverDataPoint1.mjs +4 -0
- package/dist/esm/api/types/{TrackingCargoByDriverDataPointMetadata1.d.mts → CargoByDriverDataPointMetadata1.d.mts} +3 -3
- package/dist/esm/api/types/CargoByDriverDataPointMetadata1.mjs +4 -0
- package/dist/esm/api/types/CargoByDriverSharingSettings1.d.mts +16 -0
- package/dist/esm/api/types/CargoByDriverSharingSettings1.mjs +4 -0
- package/dist/esm/api/types/Driver1.d.mts +1 -1
- package/dist/esm/api/types/DriverUpdateRes.d.mts +1 -1
- package/dist/esm/api/types/{TrackingSessionByDeviceDataPoint1.d.mts → SessionByDeviceDataPoint1.d.mts} +2 -2
- package/dist/esm/api/types/SessionByDeviceDataPoint1.mjs +4 -0
- package/dist/esm/api/types/{TrackingSessionByDeviceDataPointMetadata1.d.mts → SessionByDeviceDataPointMetadata1.d.mts} +1 -1
- package/dist/esm/api/types/SessionByDeviceDataPointMetadata1.mjs +4 -0
- package/dist/esm/api/types/{SessionByDeviceDeleteResponse1.d.mts → SessionDeleteResponse1.d.mts} +1 -1
- package/dist/esm/api/types/SessionDeleteResponse1.mjs +4 -0
- package/dist/esm/api/types/{TrackingTaskGroupByDriverDataPoint1.d.mts → TaskGroupByDriverDataPoint1.d.mts} +2 -2
- package/dist/esm/api/types/TaskGroupByDriverDataPoint1.mjs +4 -0
- package/dist/esm/api/types/{TrackingTaskGroupByDriverDataPointMetadata1.d.mts → TaskGroupByDriverDataPointMetadata1.d.mts} +2 -2
- package/dist/esm/api/types/TaskGroupByDriverDataPointMetadata1.mjs +4 -0
- package/dist/esm/api/types/TaskGroupByDriverSharingSettings1.d.mts +15 -0
- package/dist/esm/api/types/TaskGroupByDriverSharingSettings1.mjs +4 -0
- package/dist/esm/api/types/TrackingSharingSettingsRes.d.mts +11 -0
- package/dist/esm/api/types/TrackingSharingSettingsRes.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +14 -9
- package/dist/esm/api/types/index.mjs +14 -9
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1150 -217
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +0 -50
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +0 -137
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +0 -50
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +0 -137
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +0 -242
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.ts +0 -12
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.ts +0 -12
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.ts +0 -12
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +0 -13
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +0 -49
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +0 -135
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +0 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +0 -50
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +0 -100
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +0 -50
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +0 -100
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +0 -242
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +0 -13
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +0 -49
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +0 -98
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +0 -1
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/client/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.js → sessions/client/requests/SessionCreateSessionRequest1.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverLastSeenV1Request.js → sessions/client/requests/SessionUpdateRequest1.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.js → sessions/client/requests/SessionsDeleteV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.js → sessions/client/requests/SessionsGetV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.js → sessions/client/requests/SessionsPauseRecordingV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.js → sessions/client/requests/SessionsResumeRecordingV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceGetV1Request.js → sessions/client/requests/SessionsStartV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.js → sessions/client/requests/SessionsTerminateV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → sessions}/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/client/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.js → sharing/client/requests/CargoByDeviceSharingSettingsUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.js → sharing/client/requests/CargoByDriverSharingSettingsUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.js → sharing/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → sharing}/index.js +0 -0
- /package/dist/{esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.mjs → cjs/api/resources/tracking/resources/timeseries/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests → timeseries/client}/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/client/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceStartV1Request.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDevice → timeseries/resources/cargoByDevice}/client/requests/CargoByDeviceLastSeenV1Request.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.js → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDevice}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/client/index.js +0 -0
- /package/dist/cjs/api/{types/SessionByDeviceDeleteResponse1.js → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsPublicV1Request.js} +0 -0
- /package/dist/cjs/api/{types/TrackingCargoByDeviceDataPoint1.js → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsV1Request.js} +0 -0
- /package/dist/cjs/api/{types/TrackingCargoByDeviceDataPointMetadata1.js → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver → timeseries/resources/cargoByDriver}/client/requests/CargoByDriverLastSeenV1Request.d.ts +0 -0
- /package/dist/cjs/api/{types/TrackingCargoByDriverDataPoint1.js → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/index.js +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceDataPointsPublicV1Request.d.ts +0 -0
- /package/dist/cjs/api/{types/TrackingCargoByDriverDataPointMetadata1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceDataPointsV1Request.d.ts +0 -0
- /package/dist/cjs/api/{types/TrackingSessionByDeviceDataPoint1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceLastSeenPublicV1Request.d.ts +0 -0
- /package/dist/cjs/api/{types/TrackingSessionByDeviceDataPointMetadata1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceLastSeenV1Request.d.ts +0 -0
- /package/dist/cjs/api/{types/TrackingTaskGroupByDriverDataPoint1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +0 -0
- /package/dist/cjs/api/{types/TrackingTaskGroupByDriverDataPointMetadata1.js → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/taskGroupByDriver}/client/requests/TaskGroupByDriverLastSeenV1Request.d.ts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → sessions}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → sessions}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.mjs → sessions/client/requests/SessionCreateSessionRequest1.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverLastSeenV1Request.mjs → sessions/client/requests/SessionUpdateRequest1.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceCreateSessionRequest1.mjs → sessions/client/requests/SessionsDeleteV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.mjs → sessions/client/requests/SessionsGetV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.mjs → sessions/client/requests/SessionsPauseRecordingV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.mjs → sessions/client/requests/SessionsResumeRecordingV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceGetV1Request.mjs → sessions/client/requests/SessionsStartV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.mjs → sessions/client/requests/SessionsTerminateV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sessions}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → sessions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → sessions}/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sharing}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sharing}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.mjs → sharing/client/requests/CargoByDeviceSharingSettingsUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.mjs → sharing/client/requests/CargoByDriverSharingSettingsUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.mjs → sharing/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → sharing}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sharing}/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → sharing}/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/index.mjs → timeseries/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceStartV1Request.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceDataPointsV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDevice → timeseries/resources/cargoByDevice}/client/requests/CargoByDeviceLastSeenV1Request.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.mjs → timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/cargoByDevice}/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/client/index.mjs +0 -0
- /package/dist/esm/api/{types/SessionByDeviceDeleteResponse1.mjs → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/TrackingCargoByDeviceDataPoint1.mjs → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverDataPointsV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/TrackingCargoByDeviceDataPointMetadata1.mjs → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver → timeseries/resources/cargoByDriver}/client/requests/CargoByDriverLastSeenV1Request.d.mts +0 -0
- /package/dist/esm/api/{types/TrackingCargoByDriverDataPoint1.mjs → resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/CargoByDriverLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/index.d.mts +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/cargoByDriver}/index.mjs +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceDataPointsPublicV1Request.d.mts +0 -0
- /package/dist/esm/api/{types/TrackingCargoByDriverDataPointMetadata1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceDataPointsV1Request.d.mts +0 -0
- /package/dist/esm/api/{types/TrackingSessionByDeviceDataPoint1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceLastSeenPublicV1Request.d.mts +0 -0
- /package/dist/esm/api/{types/TrackingSessionByDeviceDataPointMetadata1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceLastSeenV1Request.d.mts +0 -0
- /package/dist/esm/api/{types/TrackingTaskGroupByDriverDataPoint1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice → timeseries/resources/sessionByDevice}/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +0 -0
- /package/dist/esm/api/{types/TrackingTaskGroupByDriverDataPointMetadata1.mjs → resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver → timeseries/resources/taskGroupByDriver}/client/requests/TaskGroupByDriverLastSeenV1Request.d.mts +0 -0
|
@@ -4,39 +4,34 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Tracking = void 0;
|
|
7
|
-
const Client_js_1 = require("../resources/
|
|
8
|
-
const Client_js_2 = require("../resources/
|
|
9
|
-
const Client_js_3 = require("../resources/
|
|
10
|
-
const Client_js_4 = require("../resources/
|
|
11
|
-
const Client_js_5 = require("../resources/
|
|
12
|
-
const Client_js_6 = require("../resources/taskGroupByDriver/client/Client.js");
|
|
7
|
+
const Client_js_1 = require("../resources/devices/client/Client.js");
|
|
8
|
+
const Client_js_2 = require("../resources/driver/client/Client.js");
|
|
9
|
+
const Client_js_3 = require("../resources/sessions/client/Client.js");
|
|
10
|
+
const Client_js_4 = require("../resources/sharing/client/Client.js");
|
|
11
|
+
const Client_js_5 = require("../resources/timeseries/client/Client.js");
|
|
13
12
|
class Tracking {
|
|
14
13
|
constructor(_options = {}) {
|
|
15
14
|
this._options = _options;
|
|
16
15
|
}
|
|
17
|
-
get cargoByDevice() {
|
|
18
|
-
var _a;
|
|
19
|
-
return ((_a = this._cargoByDevice) !== null && _a !== void 0 ? _a : (this._cargoByDevice = new Client_js_1.CargoByDevice(this._options)));
|
|
20
|
-
}
|
|
21
|
-
get cargoByDriver() {
|
|
22
|
-
var _a;
|
|
23
|
-
return ((_a = this._cargoByDriver) !== null && _a !== void 0 ? _a : (this._cargoByDriver = new Client_js_2.CargoByDriver(this._options)));
|
|
24
|
-
}
|
|
25
16
|
get devices() {
|
|
26
17
|
var _a;
|
|
27
|
-
return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new
|
|
18
|
+
return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_js_1.Devices(this._options)));
|
|
28
19
|
}
|
|
29
20
|
get driver() {
|
|
30
21
|
var _a;
|
|
31
|
-
return ((_a = this._driver) !== null && _a !== void 0 ? _a : (this._driver = new
|
|
22
|
+
return ((_a = this._driver) !== null && _a !== void 0 ? _a : (this._driver = new Client_js_2.Driver(this._options)));
|
|
23
|
+
}
|
|
24
|
+
get sessions() {
|
|
25
|
+
var _a;
|
|
26
|
+
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_3.Sessions(this._options)));
|
|
32
27
|
}
|
|
33
|
-
get
|
|
28
|
+
get sharing() {
|
|
34
29
|
var _a;
|
|
35
|
-
return ((_a = this.
|
|
30
|
+
return ((_a = this._sharing) !== null && _a !== void 0 ? _a : (this._sharing = new Client_js_4.Sharing(this._options)));
|
|
36
31
|
}
|
|
37
|
-
get
|
|
32
|
+
get timeseries() {
|
|
38
33
|
var _a;
|
|
39
|
-
return ((_a = this.
|
|
34
|
+
return ((_a = this._timeseries) !== null && _a !== void 0 ? _a : (this._timeseries = new Client_js_5.Timeseries(this._options)));
|
|
40
35
|
}
|
|
41
36
|
}
|
|
42
37
|
exports.Tracking = Tracking;
|
|
@@ -75,61 +75,61 @@ export declare class Devices {
|
|
|
75
75
|
deleteV1(request?: Chrt.tracking.DevicesDeleteV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
76
76
|
private __deleteV1;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Links a device to cargo with bidirectional references. Device must not already be linked to a session or different cargo. | () -> (bool)
|
|
79
79
|
*
|
|
80
|
-
* @param {Chrt.tracking.
|
|
80
|
+
* @param {Chrt.tracking.DevicesLinkToCargoV1Request} request
|
|
81
81
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
82
|
*
|
|
83
83
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
|
-
* await client.tracking.devices.
|
|
86
|
+
* await client.tracking.devices.linkToCargoV1({
|
|
87
87
|
* device_mac_address: "device_mac_address",
|
|
88
|
-
*
|
|
88
|
+
* cargo_id: "cargo_id"
|
|
89
89
|
* })
|
|
90
90
|
*/
|
|
91
|
-
|
|
92
|
-
private
|
|
91
|
+
linkToCargoV1(request: Chrt.tracking.DevicesLinkToCargoV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
92
|
+
private __linkToCargoV1;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Unlinks a device from its linked cargo, removing the bidirectional reference. Returns false if device is not linked to any cargo. | () -> (bool)
|
|
95
95
|
*
|
|
96
|
+
* @param {Chrt.tracking.DevicesUnlinkFromCargoV1Request} request
|
|
96
97
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
98
|
*
|
|
99
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
100
|
+
*
|
|
98
101
|
* @example
|
|
99
|
-
* await client.tracking.devices.
|
|
102
|
+
* await client.tracking.devices.unlinkFromCargoV1({
|
|
103
|
+
* device_mac_address: "device_mac_address"
|
|
104
|
+
* })
|
|
100
105
|
*/
|
|
101
|
-
|
|
102
|
-
private
|
|
106
|
+
unlinkFromCargoV1(request: Chrt.tracking.DevicesUnlinkFromCargoV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
107
|
+
private __unlinkFromCargoV1;
|
|
103
108
|
/**
|
|
104
|
-
*
|
|
109
|
+
* Retrieves a single device by its MAC address or ID. Access restricted to the caller's organization. | authz: min_org_role=operator | () -> (Device1)
|
|
105
110
|
*
|
|
106
|
-
* @param {Chrt.tracking.
|
|
111
|
+
* @param {Chrt.tracking.DevicesGetV1Request} request
|
|
107
112
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
113
|
*
|
|
109
114
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
110
115
|
*
|
|
111
116
|
* @example
|
|
112
|
-
* await client.tracking.devices.
|
|
117
|
+
* await client.tracking.devices.getV1({
|
|
113
118
|
* device_mac_address: "device_mac_address",
|
|
114
|
-
*
|
|
119
|
+
* device_id: "device_id"
|
|
115
120
|
* })
|
|
116
121
|
*/
|
|
117
|
-
|
|
118
|
-
private
|
|
122
|
+
getV1(request?: Chrt.tracking.DevicesGetV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.Device1>;
|
|
123
|
+
private __getV1;
|
|
119
124
|
/**
|
|
120
|
-
*
|
|
125
|
+
* Returns all tracking devices registered to the caller's organization. | authz: min_org_role=operator | () -> (list[Device1])
|
|
121
126
|
*
|
|
122
|
-
* @param {Chrt.tracking.DevicesUnlinkFromCargoV1Request} request
|
|
123
127
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
128
|
*
|
|
125
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
126
|
-
*
|
|
127
129
|
* @example
|
|
128
|
-
* await client.tracking.devices.
|
|
129
|
-
* device_mac_address: "device_mac_address"
|
|
130
|
-
* })
|
|
130
|
+
* await client.tracking.devices.listV1()
|
|
131
131
|
*/
|
|
132
|
-
|
|
133
|
-
private
|
|
132
|
+
listV1(requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.Device1[]>;
|
|
133
|
+
private __listV1;
|
|
134
134
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
135
135
|
}
|
|
@@ -252,37 +252,33 @@ class Devices {
|
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
|
-
*
|
|
255
|
+
* Links a device to cargo with bidirectional references. Device must not already be linked to a session or different cargo. | () -> (bool)
|
|
256
256
|
*
|
|
257
|
-
* @param {Chrt.tracking.
|
|
257
|
+
* @param {Chrt.tracking.DevicesLinkToCargoV1Request} request
|
|
258
258
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
259
259
|
*
|
|
260
260
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
261
261
|
*
|
|
262
262
|
* @example
|
|
263
|
-
* await client.tracking.devices.
|
|
263
|
+
* await client.tracking.devices.linkToCargoV1({
|
|
264
264
|
* device_mac_address: "device_mac_address",
|
|
265
|
-
*
|
|
265
|
+
* cargo_id: "cargo_id"
|
|
266
266
|
* })
|
|
267
267
|
*/
|
|
268
|
-
|
|
269
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
268
|
+
linkToCargoV1(request, requestOptions) {
|
|
269
|
+
return core.HttpResponsePromise.fromPromise(this.__linkToCargoV1(request, requestOptions));
|
|
270
270
|
}
|
|
271
|
-
|
|
272
|
-
return __awaiter(this,
|
|
271
|
+
__linkToCargoV1(request, requestOptions) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
273
|
var _a, _b, _c, _d;
|
|
274
|
-
const { device_mac_address: deviceMacAddress,
|
|
274
|
+
const { device_mac_address: deviceMacAddress, cargo_id: cargoId } = request;
|
|
275
275
|
const _queryParams = {};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
279
|
-
if (deviceId !== undefined) {
|
|
280
|
-
_queryParams["device_id"] = deviceId;
|
|
281
|
-
}
|
|
276
|
+
_queryParams["device_mac_address"] = deviceMacAddress;
|
|
277
|
+
_queryParams["cargo_id"] = cargoId;
|
|
282
278
|
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);
|
|
283
279
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
284
|
-
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/devices/v1"),
|
|
285
|
-
method: "
|
|
280
|
+
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/devices/link_to_cargo/v1"),
|
|
281
|
+
method: "POST",
|
|
286
282
|
headers: _headers,
|
|
287
283
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
288
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -312,7 +308,7 @@ class Devices {
|
|
|
312
308
|
rawResponse: _response.rawResponse,
|
|
313
309
|
});
|
|
314
310
|
case "timeout":
|
|
315
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
311
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/devices/link_to_cargo/v1.");
|
|
316
312
|
case "unknown":
|
|
317
313
|
throw new errors.ChrtError({
|
|
318
314
|
message: _response.error.errorMessage,
|
|
@@ -322,25 +318,33 @@ class Devices {
|
|
|
322
318
|
});
|
|
323
319
|
}
|
|
324
320
|
/**
|
|
325
|
-
*
|
|
321
|
+
* Unlinks a device from its linked cargo, removing the bidirectional reference. Returns false if device is not linked to any cargo. | () -> (bool)
|
|
326
322
|
*
|
|
323
|
+
* @param {Chrt.tracking.DevicesUnlinkFromCargoV1Request} request
|
|
327
324
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
328
325
|
*
|
|
326
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
327
|
+
*
|
|
329
328
|
* @example
|
|
330
|
-
* await client.tracking.devices.
|
|
329
|
+
* await client.tracking.devices.unlinkFromCargoV1({
|
|
330
|
+
* device_mac_address: "device_mac_address"
|
|
331
|
+
* })
|
|
331
332
|
*/
|
|
332
|
-
|
|
333
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
333
|
+
unlinkFromCargoV1(request, requestOptions) {
|
|
334
|
+
return core.HttpResponsePromise.fromPromise(this.__unlinkFromCargoV1(request, requestOptions));
|
|
334
335
|
}
|
|
335
|
-
|
|
336
|
+
__unlinkFromCargoV1(request, requestOptions) {
|
|
336
337
|
return __awaiter(this, void 0, void 0, function* () {
|
|
337
338
|
var _a, _b, _c, _d;
|
|
339
|
+
const { device_mac_address: deviceMacAddress } = request;
|
|
340
|
+
const _queryParams = {};
|
|
341
|
+
_queryParams["device_mac_address"] = deviceMacAddress;
|
|
338
342
|
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);
|
|
339
343
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
340
|
-
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/devices/
|
|
341
|
-
method: "
|
|
344
|
+
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/devices/unlink_from_cargo/v1"),
|
|
345
|
+
method: "POST",
|
|
342
346
|
headers: _headers,
|
|
343
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
347
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
344
348
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
345
349
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
346
350
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -349,11 +353,16 @@ class Devices {
|
|
|
349
353
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
350
354
|
}
|
|
351
355
|
if (_response.error.reason === "status-code") {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
356
|
+
switch (_response.error.statusCode) {
|
|
357
|
+
case 422:
|
|
358
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
359
|
+
default:
|
|
360
|
+
throw new errors.ChrtError({
|
|
361
|
+
statusCode: _response.error.statusCode,
|
|
362
|
+
body: _response.error.body,
|
|
363
|
+
rawResponse: _response.rawResponse,
|
|
364
|
+
});
|
|
365
|
+
}
|
|
357
366
|
}
|
|
358
367
|
switch (_response.error.reason) {
|
|
359
368
|
case "non-json":
|
|
@@ -363,7 +372,7 @@ class Devices {
|
|
|
363
372
|
rawResponse: _response.rawResponse,
|
|
364
373
|
});
|
|
365
374
|
case "timeout":
|
|
366
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
375
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /tracking/devices/unlink_from_cargo/v1.");
|
|
367
376
|
case "unknown":
|
|
368
377
|
throw new errors.ChrtError({
|
|
369
378
|
message: _response.error.errorMessage,
|
|
@@ -373,33 +382,37 @@ class Devices {
|
|
|
373
382
|
});
|
|
374
383
|
}
|
|
375
384
|
/**
|
|
376
|
-
*
|
|
385
|
+
* Retrieves a single device by its MAC address or ID. Access restricted to the caller's organization. | authz: min_org_role=operator | () -> (Device1)
|
|
377
386
|
*
|
|
378
|
-
* @param {Chrt.tracking.
|
|
387
|
+
* @param {Chrt.tracking.DevicesGetV1Request} request
|
|
379
388
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
380
389
|
*
|
|
381
390
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
382
391
|
*
|
|
383
392
|
* @example
|
|
384
|
-
* await client.tracking.devices.
|
|
393
|
+
* await client.tracking.devices.getV1({
|
|
385
394
|
* device_mac_address: "device_mac_address",
|
|
386
|
-
*
|
|
395
|
+
* device_id: "device_id"
|
|
387
396
|
* })
|
|
388
397
|
*/
|
|
389
|
-
|
|
390
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
398
|
+
getV1(request = {}, requestOptions) {
|
|
399
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(request, requestOptions));
|
|
391
400
|
}
|
|
392
|
-
|
|
393
|
-
return __awaiter(this,
|
|
401
|
+
__getV1() {
|
|
402
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
394
403
|
var _a, _b, _c, _d;
|
|
395
|
-
const { device_mac_address: deviceMacAddress,
|
|
404
|
+
const { device_mac_address: deviceMacAddress, device_id: deviceId } = request;
|
|
396
405
|
const _queryParams = {};
|
|
397
|
-
|
|
398
|
-
|
|
406
|
+
if (deviceMacAddress !== undefined) {
|
|
407
|
+
_queryParams["device_mac_address"] = deviceMacAddress;
|
|
408
|
+
}
|
|
409
|
+
if (deviceId !== undefined) {
|
|
410
|
+
_queryParams["device_id"] = deviceId;
|
|
411
|
+
}
|
|
399
412
|
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);
|
|
400
413
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
401
|
-
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/devices/
|
|
402
|
-
method: "
|
|
414
|
+
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/devices/v1"),
|
|
415
|
+
method: "GET",
|
|
403
416
|
headers: _headers,
|
|
404
417
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
405
418
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -429,7 +442,7 @@ class Devices {
|
|
|
429
442
|
rawResponse: _response.rawResponse,
|
|
430
443
|
});
|
|
431
444
|
case "timeout":
|
|
432
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
445
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/devices/v1.");
|
|
433
446
|
case "unknown":
|
|
434
447
|
throw new errors.ChrtError({
|
|
435
448
|
message: _response.error.errorMessage,
|
|
@@ -439,33 +452,25 @@ class Devices {
|
|
|
439
452
|
});
|
|
440
453
|
}
|
|
441
454
|
/**
|
|
442
|
-
*
|
|
455
|
+
* Returns all tracking devices registered to the caller's organization. | authz: min_org_role=operator | () -> (list[Device1])
|
|
443
456
|
*
|
|
444
|
-
* @param {Chrt.tracking.DevicesUnlinkFromCargoV1Request} request
|
|
445
457
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
446
458
|
*
|
|
447
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
448
|
-
*
|
|
449
459
|
* @example
|
|
450
|
-
* await client.tracking.devices.
|
|
451
|
-
* device_mac_address: "device_mac_address"
|
|
452
|
-
* })
|
|
460
|
+
* await client.tracking.devices.listV1()
|
|
453
461
|
*/
|
|
454
|
-
|
|
455
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
462
|
+
listV1(requestOptions) {
|
|
463
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
456
464
|
}
|
|
457
|
-
|
|
465
|
+
__listV1(requestOptions) {
|
|
458
466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
459
467
|
var _a, _b, _c, _d;
|
|
460
|
-
const { device_mac_address: deviceMacAddress } = request;
|
|
461
|
-
const _queryParams = {};
|
|
462
|
-
_queryParams["device_mac_address"] = deviceMacAddress;
|
|
463
468
|
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);
|
|
464
469
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
465
|
-
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/devices/
|
|
466
|
-
method: "
|
|
470
|
+
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/devices/list/v1"),
|
|
471
|
+
method: "GET",
|
|
467
472
|
headers: _headers,
|
|
468
|
-
queryParameters:
|
|
473
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
469
474
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
470
475
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
471
476
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -474,16 +479,11 @@ class Devices {
|
|
|
474
479
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
475
480
|
}
|
|
476
481
|
if (_response.error.reason === "status-code") {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
statusCode: _response.error.statusCode,
|
|
483
|
-
body: _response.error.body,
|
|
484
|
-
rawResponse: _response.rawResponse,
|
|
485
|
-
});
|
|
486
|
-
}
|
|
482
|
+
throw new errors.ChrtError({
|
|
483
|
+
statusCode: _response.error.statusCode,
|
|
484
|
+
body: _response.error.body,
|
|
485
|
+
rawResponse: _response.rawResponse,
|
|
486
|
+
});
|
|
487
487
|
}
|
|
488
488
|
switch (_response.error.reason) {
|
|
489
489
|
case "non-json":
|
|
@@ -493,7 +493,7 @@ class Devices {
|
|
|
493
493
|
rawResponse: _response.rawResponse,
|
|
494
494
|
});
|
|
495
495
|
case "timeout":
|
|
496
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
496
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/devices/list/v1.");
|
|
497
497
|
case "unknown":
|
|
498
498
|
throw new errors.ChrtError({
|
|
499
499
|
message: _response.error.errorMessage,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { type DevicesRegisterToOrgReq1 } from "./DevicesRegisterToOrgReq1.js";
|
|
2
2
|
export { type DevicesUpdateRequest1 } from "./DevicesUpdateRequest1.js";
|
|
3
3
|
export { type DevicesDeleteV1Request } from "./DevicesDeleteV1Request.js";
|
|
4
|
-
export { type DevicesGetV1Request } from "./DevicesGetV1Request.js";
|
|
5
4
|
export { type DevicesLinkToCargoV1Request } from "./DevicesLinkToCargoV1Request.js";
|
|
6
5
|
export { type DevicesUnlinkFromCargoV1Request } from "./DevicesUnlinkFromCargoV1Request.js";
|
|
6
|
+
export { type DevicesGetV1Request } from "./DevicesGetV1Request.js";
|
|
@@ -31,7 +31,7 @@ export declare class Driver {
|
|
|
31
31
|
protected readonly _options: Driver.Options;
|
|
32
32
|
constructor(_options?: Driver.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Records driver location updates
|
|
34
|
+
* Records driver location updates. Automatically writes to all IN_PROGRESS task groups and their associated cargos. Updates driver's last seen timestamp and location. | (DriverUpdateReq) -> (DriverUpdateRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.tracking.DriverUpdateReq} request
|
|
37
37
|
* @param {Driver.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -40,7 +40,6 @@ export declare class Driver {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* await client.tracking.driver.updateV1({
|
|
43
|
-
* task_group_id: "task_group_id",
|
|
44
43
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
45
44
|
* location: {
|
|
46
45
|
* type: "Feature",
|
|
@@ -56,7 +56,7 @@ class Driver {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Records driver location updates
|
|
59
|
+
* Records driver location updates. Automatically writes to all IN_PROGRESS task groups and their associated cargos. Updates driver's last seen timestamp and location. | (DriverUpdateReq) -> (DriverUpdateRes)
|
|
60
60
|
*
|
|
61
61
|
* @param {Chrt.tracking.DriverUpdateReq} request
|
|
62
62
|
* @param {Driver.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,7 +65,6 @@ class Driver {
|
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* await client.tracking.driver.updateV1({
|
|
68
|
-
* task_group_id: "task_group_id",
|
|
69
68
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
70
69
|
* location: {
|
|
71
70
|
* type: "Feature",
|
package/dist/cjs/api/resources/tracking/resources/driver/client/requests/DriverUpdateReq.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* task_group_id: "task_group_id",
|
|
9
8
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
10
9
|
* location: {
|
|
11
10
|
* type: "Feature",
|
|
@@ -20,7 +19,6 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
20
19
|
* }
|
|
21
20
|
*/
|
|
22
21
|
export interface DriverUpdateReq {
|
|
23
|
-
task_group_id: string;
|
|
24
22
|
timestamp: string;
|
|
25
23
|
location: Chrt.LocationFeature;
|
|
26
24
|
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
export * as cargoByDevice from "./cargoByDevice/index.js";
|
|
2
|
-
export * as cargoByDriver from "./cargoByDriver/index.js";
|
|
3
1
|
export * as devices from "./devices/index.js";
|
|
4
2
|
export * as driver from "./driver/index.js";
|
|
5
|
-
export * as
|
|
6
|
-
export * as
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./cargoByDriver/client/requests/index.js";
|
|
3
|
+
export * as sessions from "./sessions/index.js";
|
|
4
|
+
export * as sharing from "./sharing/index.js";
|
|
5
|
+
export * as timeseries from "./timeseries/index.js";
|
|
9
6
|
export * from "./devices/client/requests/index.js";
|
|
10
7
|
export * from "./driver/client/requests/index.js";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
8
|
+
export * from "./sessions/client/requests/index.js";
|
|
9
|
+
export * from "./sharing/client/requests/index.js";
|
|
@@ -36,16 +36,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.cargoByDevice = __importStar(require("./cargoByDevice/index.js"));
|
|
41
|
-
exports.cargoByDriver = __importStar(require("./cargoByDriver/index.js"));
|
|
39
|
+
exports.timeseries = exports.sharing = exports.sessions = exports.driver = exports.devices = void 0;
|
|
42
40
|
exports.devices = __importStar(require("./devices/index.js"));
|
|
43
41
|
exports.driver = __importStar(require("./driver/index.js"));
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
|
|
47
|
-
__exportStar(require("./cargoByDriver/client/requests/index.js"), exports);
|
|
42
|
+
exports.sessions = __importStar(require("./sessions/index.js"));
|
|
43
|
+
exports.sharing = __importStar(require("./sharing/index.js"));
|
|
44
|
+
exports.timeseries = __importStar(require("./timeseries/index.js"));
|
|
48
45
|
__exportStar(require("./devices/client/requests/index.js"), exports);
|
|
49
46
|
__exportStar(require("./driver/client/requests/index.js"), exports);
|
|
50
|
-
__exportStar(require("./
|
|
51
|
-
__exportStar(require("./
|
|
47
|
+
__exportStar(require("./sessions/client/requests/index.js"), exports);
|
|
48
|
+
__exportStar(require("./sharing/client/requests/index.js"), exports);
|