@chrt-inc/typescript-sdk 0.252.0 → 0.271.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/dist/cjs/Client.d.ts +4 -2
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/connections/client/Client.js +10 -6
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +5 -3
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +20 -12
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +5 -3
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +5 -3
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +20 -12
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +30 -18
- package/dist/cjs/api/resources/dev/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/dev/client/Client.js +30 -18
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +12 -3
- package/dist/cjs/api/resources/drivers/client/Client.js +58 -31
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +8 -1
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +10 -6
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/milestones/client/Client.js +10 -6
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +5 -3
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +16 -10
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +10 -6
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +10 -6
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.js +25 -15
- package/dist/cjs/api/resources/orders/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orders/client/Client.js +25 -15
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +15 -9
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +15 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +15 -9
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +25 -15
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/orgs/client/Client.js +40 -24
- package/dist/cjs/api/resources/payments/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/payments/client/Client.js +25 -15
- package/dist/cjs/api/resources/root/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/root/client/Client.js +25 -15
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +45 -27
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +25 -15
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +5 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +5 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +5 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +15 -9
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +35 -21
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +25 -15
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/client/Client.js +30 -18
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +10 -6
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +5 -3
- package/dist/cjs/api/resources/tracking/client/Client.d.ts +10 -4
- package/dist/cjs/api/resources/tracking/client/Client.js +19 -9
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +137 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +5 -22
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +6 -71
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +35 -9
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +170 -32
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesDeleteRequest.d.ts +11 -0
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.d.ts +3 -4
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesRegisterToOrgRequest.d.ts → DevicesRegisterToOrgReq1.d.ts} +4 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateRequest1.d.ts +16 -0
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +3 -1
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +143 -0
- package/dist/cjs/api/resources/tracking/resources/driver/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tracking/resources/driver/client/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.d.ts → driver/client/requests/DriverUpdateReq.d.ts} +9 -2
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/driver/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tracking/resources/driver/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/driver/index.js +17 -0
- package/dist/cjs/api/resources/tracking/resources/index.d.ts +6 -2
- package/dist/cjs/api/resources/tracking/resources/index.js +7 -3
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +126 -23
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +524 -61
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicRequest.d.ts +13 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceEndSessionRequest.d.ts → SessionByDeviceDeleteRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceEndSessionRequest.d.mts → cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceResumeSessionRequest.d.ts → SessionByDeviceLastSeenPublicRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +14 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDevicePauseSessionRequest.d.ts → SessionByDeviceStartRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartSessionRequest.d.ts → SessionByDeviceTerminateRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceUpdateCommentsRequest1.d.ts → SessionByDeviceUpdateRequest1.d.ts} +2 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.js +5 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +11 -5
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +5 -22
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +6 -71
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/users/client/Client.js +5 -3
- package/dist/cjs/api/resources/utils/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/utils/client/Client.js +5 -4
- package/dist/cjs/api/resources/utils/client/requests/UtilsGetTimezoneRequest.d.ts +2 -6
- package/dist/cjs/api/types/Device1.d.ts +2 -0
- package/dist/cjs/api/types/DriverUpdateResp.d.ts +11 -0
- package/dist/cjs/api/types/DriverUpdateResp.js +5 -0
- package/dist/cjs/api/types/{LocationFeatureInputGeometry.d.ts → Geometry.d.ts} +2 -2
- package/dist/cjs/api/types/Geometry.js +5 -0
- package/dist/cjs/api/types/LocationFeature.d.ts +5 -1
- package/dist/cjs/api/types/LocationProperties.d.ts +2 -0
- package/dist/cjs/api/types/OutlierLabellerEnum.d.ts +8 -0
- package/dist/cjs/api/types/OutlierLabellerEnum.js +10 -0
- package/dist/cjs/api/types/Session1.d.ts +17 -0
- package/dist/cjs/api/types/Session1.js +5 -0
- package/dist/cjs/api/types/SessionByDeviceDeleteResponse1.d.ts +7 -0
- package/dist/cjs/api/types/SessionByDeviceDeleteResponse1.js +5 -0
- package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.d.ts +7 -0
- package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.js +5 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPoint1.d.ts +12 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPoint1.js +5 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.d.ts +11 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.js +5 -0
- package/dist/cjs/api/types/TrackingCargoByDriverDataPointMetadata1.d.ts +3 -0
- package/dist/cjs/api/types/TrackingDeviceTypeEnum1.d.ts +4 -4
- package/dist/cjs/api/types/TrackingDeviceTypeEnum1.js +3 -3
- package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.d.ts +3 -0
- package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.ts +3 -0
- package/dist/cjs/api/types/index.d.ts +8 -2
- package/dist/cjs/api/types/index.js +8 -2
- package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
- package/dist/cjs/core/auth/AuthProvider.js +2 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/index.d.ts +2 -0
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.js +2 -2
- package/dist/cjs/core/fetcher/index.d.ts +5 -5
- package/dist/cjs/core/fetcher/index.js +5 -5
- package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
- package/dist/cjs/core/file/exports.d.ts +1 -0
- package/dist/cjs/core/file/exports.js +2 -0
- package/dist/cjs/core/file/file.d.ts +5 -0
- package/dist/cjs/core/file/file.js +203 -0
- package/dist/cjs/core/file/index.d.ts +2 -0
- package/dist/cjs/core/file/index.js +18 -0
- package/dist/cjs/core/file/types.d.ts +66 -0
- package/dist/cjs/core/file/types.js +2 -0
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/index.d.ts +1 -1
- package/dist/cjs/core/index.js +2 -2
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +4 -2
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/connections/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/connections/client/Client.mjs +10 -6
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +5 -3
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +20 -12
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +5 -3
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +5 -3
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +20 -12
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +30 -18
- package/dist/esm/api/resources/dev/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/dev/client/Client.mjs +30 -18
- package/dist/esm/api/resources/drivers/client/Client.d.mts +12 -3
- package/dist/esm/api/resources/drivers/client/Client.mjs +58 -31
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +8 -1
- package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +10 -6
- package/dist/esm/api/resources/milestones/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/milestones/client/Client.mjs +10 -6
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +5 -3
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +16 -10
- package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
- package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +10 -6
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +10 -6
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.mjs +25 -15
- package/dist/esm/api/resources/orders/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orders/client/Client.mjs +25 -15
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +15 -9
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +15 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +15 -9
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +25 -15
- package/dist/esm/api/resources/orgs/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/orgs/client/Client.mjs +40 -24
- package/dist/esm/api/resources/payments/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/payments/client/Client.mjs +25 -15
- package/dist/esm/api/resources/root/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/root/client/Client.mjs +25 -15
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +45 -27
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +25 -15
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +5 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +5 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +5 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +15 -9
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +35 -21
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +25 -15
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +30 -18
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +10 -6
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +5 -3
- package/dist/esm/api/resources/tracking/client/Client.d.mts +10 -4
- package/dist/esm/api/resources/tracking/client/Client.mjs +13 -3
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +100 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +5 -22
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +6 -71
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +35 -9
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +170 -32
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesDeleteRequest.d.mts +11 -0
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesGetRequest.d.mts +3 -4
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesRegisterToOrgRequest.d.mts → DevicesRegisterToOrgReq1.d.mts} +4 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateRequest1.d.mts +16 -0
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +3 -1
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +106 -0
- package/dist/esm/api/resources/tracking/resources/driver/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tracking/resources/driver/client/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.d.mts → driver/client/requests/DriverUpdateReq.d.mts} +9 -2
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/driver/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/driver/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/driver/index.mjs +1 -0
- package/dist/esm/api/resources/tracking/resources/index.d.mts +6 -2
- package/dist/esm/api/resources/tracking/resources/index.mjs +6 -2
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +126 -23
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +524 -61
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicRequest.d.mts +13 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsRequest.d.mts +13 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetRequest.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +14 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceUpdateCommentsRequest1.d.mts → SessionByDeviceUpdateRequest1.d.mts} +2 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceUpdateRequest1.mjs +4 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +11 -5
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +5 -22
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +6 -71
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/users/client/Client.mjs +5 -3
- package/dist/esm/api/resources/utils/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/utils/client/Client.mjs +5 -4
- package/dist/esm/api/resources/utils/client/requests/UtilsGetTimezoneRequest.d.mts +2 -6
- package/dist/esm/api/types/Device1.d.mts +2 -0
- package/dist/esm/api/types/DriverUpdateResp.d.mts +11 -0
- package/dist/esm/api/types/DriverUpdateResp.mjs +4 -0
- package/dist/esm/api/types/{LocationFeatureInputGeometry.d.mts → Geometry.d.mts} +2 -2
- package/dist/esm/api/types/Geometry.mjs +4 -0
- package/dist/esm/api/types/LocationFeature.d.mts +5 -1
- package/dist/esm/api/types/LocationProperties.d.mts +2 -0
- package/dist/esm/api/types/OutlierLabellerEnum.d.mts +8 -0
- package/dist/esm/api/types/OutlierLabellerEnum.mjs +7 -0
- package/dist/esm/api/types/Session1.d.mts +17 -0
- package/dist/esm/api/types/Session1.mjs +4 -0
- package/dist/esm/api/types/SessionByDeviceDeleteResponse1.d.mts +7 -0
- package/dist/esm/api/types/SessionByDeviceDeleteResponse1.mjs +4 -0
- package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.d.mts +7 -0
- package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.mjs +4 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPoint1.d.mts +12 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPoint1.mjs +4 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.d.mts +11 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.mjs +4 -0
- package/dist/esm/api/types/TrackingCargoByDriverDataPointMetadata1.d.mts +3 -0
- package/dist/esm/api/types/TrackingDeviceTypeEnum1.d.mts +4 -4
- package/dist/esm/api/types/TrackingDeviceTypeEnum1.mjs +3 -3
- package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.d.mts +3 -0
- package/dist/esm/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.mts +3 -0
- package/dist/esm/api/types/index.d.mts +8 -2
- package/dist/esm/api/types/index.mjs +8 -2
- package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
- package/dist/esm/core/auth/AuthProvider.mjs +1 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/index.d.mts +2 -0
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -2
- package/dist/esm/core/fetcher/index.d.mts +5 -5
- package/dist/esm/core/fetcher/index.mjs +2 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
- package/dist/esm/core/file/exports.d.mts +1 -0
- package/dist/esm/core/file/exports.mjs +1 -0
- package/dist/esm/core/file/file.d.mts +5 -0
- package/dist/esm/core/file/file.mjs +167 -0
- package/dist/esm/core/file/index.d.mts +2 -0
- package/dist/esm/core/file/index.mjs +2 -0
- package/dist/esm/core/file/types.d.mts +66 -0
- package/dist/esm/core/file/types.mjs +1 -0
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/index.d.mts +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +727 -75
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.d.ts +0 -19
- package/dist/cjs/api/types/LocationFeatureOutputGeometry.d.ts +0 -28
- package/dist/cjs/core/file.d.ts +0 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/CargoByDriverUpdateReq.d.mts +0 -19
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseSessionRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeSessionRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartSessionRequest.d.mts +0 -12
- package/dist/esm/api/types/LocationFeatureOutputGeometry.d.mts +0 -28
- package/dist/esm/core/file.d.mts +0 -1
- /package/dist/cjs/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.js → cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.js} +0 -0
- /package/dist/cjs/{core/file.js → api/resources/tracking/resources/cargoByDevice/client/requests/index.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesRegisterToOrgRequest.js → DevicesDeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceEndSessionRequest.js → devices/client/requests/DevicesRegisterToOrgReq1.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDevicePauseSessionRequest.js → devices/client/requests/DevicesUpdateRequest1.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceResumeSessionRequest.js → driver/client/requests/DriverUpdateReq.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartSessionRequest.js → SessionByDeviceDataPointsPublicRequest.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceUpdateCommentsRequest1.js → SessionByDeviceDataPointsRequest.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.js → sessionByDevice/client/requests/SessionByDeviceDeleteRequest.js} +0 -0
- /package/dist/cjs/api/{types/LocationFeatureInputGeometry.js → resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/LocationFeatureOutputGeometry.js → resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.js} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{cargoByDriver/client/requests/CargoByDriverUpdateReq.mjs → cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.mjs} +0 -0
- /package/dist/esm/{core/file.mjs → api/resources/tracking/resources/cargoByDevice/client/requests/index.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesRegisterToOrgRequest.mjs → DevicesDeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceEndSessionRequest.mjs → devices/client/requests/DevicesRegisterToOrgReq1.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDevicePauseSessionRequest.mjs → devices/client/requests/DevicesUpdateRequest1.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{sessionByDevice/client/requests/SessionByDeviceResumeSessionRequest.mjs → driver/client/requests/DriverUpdateReq.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartSessionRequest.mjs → SessionByDeviceDataPointsPublicRequest.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceUpdateCommentsRequest1.mjs → SessionByDeviceDataPointsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/{taskGroupByDriver/client/requests/TaskGroupByDriverUpdateReq.mjs → sessionByDevice/client/requests/SessionByDeviceDeleteRequest.mjs} +0 -0
- /package/dist/esm/api/{types/LocationFeatureInputGeometry.mjs → resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/LocationFeatureOutputGeometry.mjs → resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.mjs} +0 -0
|
@@ -33,10 +33,12 @@ export class CourierPayDriverRateSheets {
|
|
|
33
33
|
__listByCourierOrgId(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
38
|
+
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, "oort/courier_pay_driver_rate_sheets/list"),
|
|
38
39
|
method: "GET",
|
|
39
|
-
headers:
|
|
40
|
+
headers: _headers,
|
|
41
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
40
42
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
41
43
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
42
44
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -85,10 +87,12 @@ export class CourierPayDriverRateSheets {
|
|
|
85
87
|
__listByDriverId(driverId, requestOptions) {
|
|
86
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
89
|
var _a, _b, _c, _d;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
91
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
92
|
+
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, `oort/courier_pay_driver_rate_sheets/by_driver_id/${encodeURIComponent(driverId)}`),
|
|
90
93
|
method: "GET",
|
|
91
|
-
headers:
|
|
94
|
+
headers: _headers,
|
|
95
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
93
97
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
94
98
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -158,11 +162,13 @@ export class CourierPayDriverRateSheets {
|
|
|
158
162
|
__create(request, requestOptions) {
|
|
159
163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
164
|
var _a, _b, _c, _d;
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
166
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
167
|
+
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, "oort/courier_pay_driver_rate_sheets/create"),
|
|
163
168
|
method: "POST",
|
|
164
|
-
headers:
|
|
169
|
+
headers: _headers,
|
|
165
170
|
contentType: "application/json",
|
|
171
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
166
172
|
requestType: "json",
|
|
167
173
|
body: request,
|
|
168
174
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -218,10 +224,12 @@ export class CourierPayDriverRateSheets {
|
|
|
218
224
|
__get(id, requestOptions) {
|
|
219
225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
220
226
|
var _a, _b, _c, _d;
|
|
221
|
-
|
|
222
|
-
|
|
227
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
228
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
229
|
+
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, `oort/courier_pay_driver_rate_sheets/${encodeURIComponent(id)}`),
|
|
223
230
|
method: "GET",
|
|
224
|
-
headers:
|
|
231
|
+
headers: _headers,
|
|
232
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
225
233
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
226
234
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
227
235
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -275,10 +283,12 @@ export class CourierPayDriverRateSheets {
|
|
|
275
283
|
__deleteById(id, requestOptions) {
|
|
276
284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
277
285
|
var _a, _b, _c, _d;
|
|
278
|
-
|
|
279
|
-
|
|
286
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
287
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
288
|
+
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, `oort/courier_pay_driver_rate_sheets/${encodeURIComponent(id)}`),
|
|
280
289
|
method: "DELETE",
|
|
281
|
-
headers:
|
|
290
|
+
headers: _headers,
|
|
291
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
282
292
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
283
293
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
284
294
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -333,11 +343,13 @@ export class CourierPayDriverRateSheets {
|
|
|
333
343
|
__updateById(id_1) {
|
|
334
344
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
335
345
|
var _a, _b, _c, _d;
|
|
336
|
-
|
|
337
|
-
|
|
346
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
347
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
348
|
+
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, `oort/courier_pay_driver_rate_sheets/${encodeURIComponent(id)}`),
|
|
338
349
|
method: "PATCH",
|
|
339
|
-
headers:
|
|
350
|
+
headers: _headers,
|
|
340
351
|
contentType: "application/json",
|
|
352
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
341
353
|
requestType: "json",
|
|
342
354
|
body: request,
|
|
343
355
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -11,7 +11,7 @@ export declare namespace Dev {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
fetcher?: core.FetchFunction;
|
|
16
16
|
}
|
|
17
17
|
interface RequestOptions {
|
|
@@ -21,8 +21,10 @@ export declare namespace Dev {
|
|
|
21
21
|
maxRetries?: number;
|
|
22
22
|
/** A hook to abort the request. */
|
|
23
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class Dev {
|
|
@@ -33,10 +33,12 @@ export class Dev {
|
|
|
33
33
|
__getUserId(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
38
|
+
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, "dev/user_id"),
|
|
38
39
|
method: "GET",
|
|
39
|
-
headers:
|
|
40
|
+
headers: _headers,
|
|
41
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
40
42
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
41
43
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
42
44
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -82,10 +84,12 @@ export class Dev {
|
|
|
82
84
|
__getDecodedJwt(requestOptions) {
|
|
83
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
86
|
var _a, _b, _c, _d;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
89
|
+
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, "dev/decoded_jwt"),
|
|
87
90
|
method: "GET",
|
|
88
|
-
headers:
|
|
91
|
+
headers: _headers,
|
|
92
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
89
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
94
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -131,10 +135,12 @@ export class Dev {
|
|
|
131
135
|
__getEmail(requestOptions) {
|
|
132
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
137
|
var _a, _b, _c, _d;
|
|
134
|
-
|
|
135
|
-
|
|
138
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
139
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
140
|
+
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, "dev/email"),
|
|
136
141
|
method: "GET",
|
|
137
|
-
headers:
|
|
142
|
+
headers: _headers,
|
|
143
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
138
144
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
139
145
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
140
146
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -180,10 +186,12 @@ export class Dev {
|
|
|
180
186
|
__getTemplate(requestOptions) {
|
|
181
187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
188
|
var _a, _b, _c, _d;
|
|
183
|
-
|
|
184
|
-
|
|
189
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
190
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
191
|
+
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, "dev/template"),
|
|
185
192
|
method: "GET",
|
|
186
|
-
headers:
|
|
193
|
+
headers: _headers,
|
|
194
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
187
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
188
196
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
189
197
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -236,11 +244,13 @@ export class Dev {
|
|
|
236
244
|
__createTemplate(request, requestOptions) {
|
|
237
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
246
|
var _a, _b, _c, _d;
|
|
239
|
-
|
|
240
|
-
|
|
247
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
248
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
249
|
+
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, "dev/template"),
|
|
241
250
|
method: "POST",
|
|
242
|
-
headers:
|
|
251
|
+
headers: _headers,
|
|
243
252
|
contentType: "application/json",
|
|
253
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
244
254
|
requestType: "json",
|
|
245
255
|
body: request,
|
|
246
256
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -293,10 +303,12 @@ export class Dev {
|
|
|
293
303
|
__getGitInfo(requestOptions) {
|
|
294
304
|
return __awaiter(this, void 0, void 0, function* () {
|
|
295
305
|
var _a, _b, _c, _d;
|
|
296
|
-
|
|
297
|
-
|
|
306
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
307
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
308
|
+
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, "dev/git_info"),
|
|
298
309
|
method: "GET",
|
|
299
|
-
headers:
|
|
310
|
+
headers: _headers,
|
|
311
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
300
312
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
301
313
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
302
314
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -11,7 +11,7 @@ export declare namespace Drivers {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
fetcher?: core.FetchFunction;
|
|
16
16
|
}
|
|
17
17
|
interface RequestOptions {
|
|
@@ -21,8 +21,10 @@ export declare namespace Drivers {
|
|
|
21
21
|
maxRetries?: number;
|
|
22
22
|
/** A hook to abort the request. */
|
|
23
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class Drivers {
|
|
@@ -129,7 +131,14 @@ export declare class Drivers {
|
|
|
129
131
|
* @example
|
|
130
132
|
* await client.drivers.lastSeen({
|
|
131
133
|
* location: {
|
|
132
|
-
* type: "Feature"
|
|
134
|
+
* type: "Feature",
|
|
135
|
+
* geometry: {
|
|
136
|
+
* type: "GeometryCollection",
|
|
137
|
+
* geometries: [{
|
|
138
|
+
* type: "LineString",
|
|
139
|
+
* coordinates: [[]]
|
|
140
|
+
* }]
|
|
141
|
+
* }
|
|
133
142
|
* }
|
|
134
143
|
* })
|
|
135
144
|
*/
|
|
@@ -33,10 +33,12 @@ export class Drivers {
|
|
|
33
33
|
__listOrgMembersAndDrivers(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
38
|
+
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, "oort/drivers/org_members_and_drivers/list"),
|
|
38
39
|
method: "GET",
|
|
39
|
-
headers:
|
|
40
|
+
headers: _headers,
|
|
41
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
40
42
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
41
43
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
42
44
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -82,10 +84,12 @@ export class Drivers {
|
|
|
82
84
|
__list(requestOptions) {
|
|
83
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
86
|
var _a, _b, _c, _d;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
89
|
+
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, "oort/drivers/list"),
|
|
87
90
|
method: "GET",
|
|
88
|
-
headers:
|
|
91
|
+
headers: _headers,
|
|
92
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
89
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
94
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
91
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -139,11 +143,13 @@ export class Drivers {
|
|
|
139
143
|
__create(request, requestOptions) {
|
|
140
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
145
|
var _a, _b, _c, _d;
|
|
142
|
-
|
|
143
|
-
|
|
146
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
147
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
148
|
+
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, "oort/drivers/create"),
|
|
144
149
|
method: "POST",
|
|
145
|
-
headers:
|
|
150
|
+
headers: _headers,
|
|
146
151
|
contentType: "application/json",
|
|
152
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
147
153
|
requestType: "json",
|
|
148
154
|
body: request,
|
|
149
155
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -196,10 +202,12 @@ export class Drivers {
|
|
|
196
202
|
__get(requestOptions) {
|
|
197
203
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
204
|
var _a, _b, _c, _d;
|
|
199
|
-
|
|
200
|
-
|
|
205
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
206
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
207
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "oort/drivers/by_jwt_user_id"),
|
|
201
208
|
method: "GET",
|
|
202
|
-
headers:
|
|
209
|
+
headers: _headers,
|
|
210
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
203
211
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
204
212
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
205
213
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -248,10 +256,12 @@ export class Drivers {
|
|
|
248
256
|
__getByDriverId(driverId, requestOptions) {
|
|
249
257
|
return __awaiter(this, void 0, void 0, function* () {
|
|
250
258
|
var _a, _b, _c, _d;
|
|
251
|
-
|
|
252
|
-
|
|
259
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
260
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
261
|
+
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, `oort/drivers/${encodeURIComponent(driverId)}`),
|
|
253
262
|
method: "GET",
|
|
254
|
-
headers:
|
|
263
|
+
headers: _headers,
|
|
264
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
255
265
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
256
266
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
257
267
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -305,10 +315,12 @@ export class Drivers {
|
|
|
305
315
|
__delete(driverId, requestOptions) {
|
|
306
316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
307
317
|
var _a, _b, _c, _d;
|
|
308
|
-
|
|
309
|
-
|
|
318
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
319
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
320
|
+
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, `oort/drivers/${encodeURIComponent(driverId)}`),
|
|
310
321
|
method: "DELETE",
|
|
311
|
-
headers:
|
|
322
|
+
headers: _headers,
|
|
323
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
312
324
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
313
325
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
314
326
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -365,11 +377,13 @@ export class Drivers {
|
|
|
365
377
|
__setActivation(request, requestOptions) {
|
|
366
378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
367
379
|
var _a, _b, _c, _d;
|
|
368
|
-
|
|
369
|
-
|
|
380
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
381
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
382
|
+
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, "oort/drivers/set_activation"),
|
|
370
383
|
method: "POST",
|
|
371
|
-
headers:
|
|
384
|
+
headers: _headers,
|
|
372
385
|
contentType: "application/json",
|
|
386
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
373
387
|
requestType: "json",
|
|
374
388
|
body: request,
|
|
375
389
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -419,7 +433,14 @@ export class Drivers {
|
|
|
419
433
|
* @example
|
|
420
434
|
* await client.drivers.lastSeen({
|
|
421
435
|
* location: {
|
|
422
|
-
* type: "Feature"
|
|
436
|
+
* type: "Feature",
|
|
437
|
+
* geometry: {
|
|
438
|
+
* type: "GeometryCollection",
|
|
439
|
+
* geometries: [{
|
|
440
|
+
* type: "LineString",
|
|
441
|
+
* coordinates: [[]]
|
|
442
|
+
* }]
|
|
443
|
+
* }
|
|
423
444
|
* }
|
|
424
445
|
* })
|
|
425
446
|
*/
|
|
@@ -429,11 +450,13 @@ export class Drivers {
|
|
|
429
450
|
__lastSeen(request, requestOptions) {
|
|
430
451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
431
452
|
var _a, _b, _c, _d;
|
|
432
|
-
|
|
433
|
-
|
|
453
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
454
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
455
|
+
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, "oort/drivers/last_seen"),
|
|
434
456
|
method: "POST",
|
|
435
|
-
headers:
|
|
457
|
+
headers: _headers,
|
|
436
458
|
contentType: "application/json",
|
|
459
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
437
460
|
requestType: "json",
|
|
438
461
|
body: request,
|
|
439
462
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -486,10 +509,12 @@ export class Drivers {
|
|
|
486
509
|
__lastSeenClear(requestOptions) {
|
|
487
510
|
return __awaiter(this, void 0, void 0, function* () {
|
|
488
511
|
var _a, _b, _c, _d;
|
|
489
|
-
|
|
490
|
-
|
|
512
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
513
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
514
|
+
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, "oort/drivers/last_seen/clear"),
|
|
491
515
|
method: "POST",
|
|
492
|
-
headers:
|
|
516
|
+
headers: _headers,
|
|
517
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
493
518
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
494
519
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
495
520
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -540,11 +565,13 @@ export class Drivers {
|
|
|
540
565
|
__updateDriver(request, requestOptions) {
|
|
541
566
|
return __awaiter(this, void 0, void 0, function* () {
|
|
542
567
|
var _a, _b, _c, _d;
|
|
543
|
-
|
|
544
|
-
|
|
568
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
569
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
570
|
+
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, "oort/drivers/update"),
|
|
545
571
|
method: "PATCH",
|
|
546
|
-
headers:
|
|
572
|
+
headers: _headers,
|
|
547
573
|
contentType: "application/json",
|
|
574
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
548
575
|
requestType: "json",
|
|
549
576
|
body: request,
|
|
550
577
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -6,7 +6,14 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* location: {
|
|
9
|
-
* type: "Feature"
|
|
9
|
+
* type: "Feature",
|
|
10
|
+
* geometry: {
|
|
11
|
+
* type: "GeometryCollection",
|
|
12
|
+
* geometries: [{
|
|
13
|
+
* type: "LineString",
|
|
14
|
+
* coordinates: [[]]
|
|
15
|
+
* }]
|
|
16
|
+
* }
|
|
10
17
|
* }
|
|
11
18
|
* }
|
|
12
19
|
*/
|
|
@@ -11,7 +11,7 @@ export declare namespace MilestoneNotifications {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
fetcher?: core.FetchFunction;
|
|
16
16
|
}
|
|
17
17
|
interface RequestOptions {
|
|
@@ -21,8 +21,10 @@ export declare namespace MilestoneNotifications {
|
|
|
21
21
|
maxRetries?: number;
|
|
22
22
|
/** A hook to abort the request. */
|
|
23
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
24
26
|
/** Additional headers to include in the request. */
|
|
25
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
export declare class MilestoneNotifications {
|
|
@@ -33,10 +33,12 @@ export class MilestoneNotifications {
|
|
|
33
33
|
__getPreferences(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
38
|
+
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, "oort/milestone_notification_preferences/"),
|
|
38
39
|
method: "GET",
|
|
39
|
-
headers:
|
|
40
|
+
headers: _headers,
|
|
41
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
40
42
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
41
43
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
42
44
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -90,11 +92,13 @@ export class MilestoneNotifications {
|
|
|
90
92
|
__upsertPreferences(request, requestOptions) {
|
|
91
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
94
|
var _a, _b, _c, _d;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
96
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
97
|
+
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, "oort/milestone_notification_preferences/upsert"),
|
|
95
98
|
method: "POST",
|
|
96
|
-
headers:
|
|
99
|
+
headers: _headers,
|
|
97
100
|
contentType: "application/json",
|
|
101
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
98
102
|
requestType: "json",
|
|
99
103
|
body: request,
|
|
100
104
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -13,7 +13,7 @@ export declare namespace Milestones {
|
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
14
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
16
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
17
17
|
fetcher?: core.FetchFunction;
|
|
18
18
|
}
|
|
19
19
|
interface RequestOptions {
|
|
@@ -23,8 +23,10 @@ export declare namespace Milestones {
|
|
|
23
23
|
maxRetries?: number;
|
|
24
24
|
/** A hook to abort the request. */
|
|
25
25
|
abortSignal?: AbortSignal;
|
|
26
|
+
/** Additional query string parameters to include in the request. */
|
|
27
|
+
queryParams?: Record<string, unknown>;
|
|
26
28
|
/** Additional headers to include in the request. */
|
|
27
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
29
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
export declare class Milestones {
|