@chrt-inc/typescript-sdk 1.280.0 → 1.285.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 +29 -29
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/connections/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/connections/client/Client.js +12 -12
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +7 -7
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +24 -24
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +6 -6
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +7 -7
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +26 -26
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +18 -18
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +36 -36
- package/dist/cjs/api/resources/dev/client/Client.d.ts +34 -27
- package/dist/cjs/api/resources/dev/client/Client.js +96 -50
- package/dist/cjs/api/resources/dev/index.d.ts +0 -1
- package/dist/cjs/api/resources/dev/index.js +0 -1
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +30 -30
- package/dist/cjs/api/resources/drivers/client/Client.js +60 -60
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +12 -12
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/milestones/client/Client.js +12 -12
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +6 -6
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +18 -18
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.ts} +1 -1
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +12 -12
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +12 -12
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.js +30 -30
- package/dist/cjs/api/resources/orders/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orders/client/Client.js +24 -24
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +18 -18
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +18 -18
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +18 -18
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +35 -35
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/orgs/client/Client.js +48 -48
- package/dist/cjs/api/resources/payments/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/payments/client/Client.js +34 -34
- package/dist/cjs/api/resources/root/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/root/client/Client.js +26 -26
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +27 -27
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +54 -54
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +31 -31
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +6 -6
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +6 -6
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +7 -7
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +18 -18
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +28 -28
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +49 -49
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +30 -30
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/taskGroups/client/Client.js +37 -37
- package/dist/cjs/api/resources/taskGroups/client/requests/TaskGroupsExpandedReq.d.ts +3 -0
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +12 -12
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +6 -6
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +8 -8
- package/dist/{esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.mts → cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +8 -8
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.d.ts → CargoByDriverLastSeenV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +32 -32
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +53 -53
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.d.ts → DevicesDeleteV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.d.ts → DevicesGetV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.d.ts → DevicesLinkToCargoV1Request.d.ts} +1 -1
- package/dist/{esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.mts → cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +7 -7
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +66 -66
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +108 -108
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.d.ts → SessionByDeviceDataPointsPublicV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.d.ts → SessionByDeviceDataPointsV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.d.ts → SessionByDeviceDeleteV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.d.ts → SessionByDeviceGetV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.d.ts → SessionByDeviceLastSeenPublicV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.ts +12 -0
- package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.mts → cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +10 -10
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +8 -8
- package/dist/{esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.d.mts → cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/users/client/Client.js +7 -7
- package/dist/cjs/api/resources/utils/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/utils/client/Client.js +7 -7
- package/dist/cjs/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.d.ts → UtilsGetTimezoneV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/utils/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +3 -0
- 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/connections/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/connections/client/Client.mjs +12 -12
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +7 -7
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +24 -24
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +6 -6
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +7 -7
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +26 -26
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +18 -18
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +36 -36
- package/dist/esm/api/resources/dev/client/Client.d.mts +34 -27
- package/dist/esm/api/resources/dev/client/Client.mjs +96 -50
- package/dist/esm/api/resources/dev/index.d.mts +0 -1
- package/dist/esm/api/resources/dev/index.mjs +0 -1
- package/dist/esm/api/resources/drivers/client/Client.d.mts +30 -30
- package/dist/esm/api/resources/drivers/client/Client.mjs +60 -60
- package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +12 -12
- package/dist/esm/api/resources/milestones/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/milestones/client/Client.mjs +12 -12
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +6 -6
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +18 -18
- package/dist/esm/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.mts} +1 -1
- package/dist/esm/api/resources/milestones/resources/images/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +12 -12
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +12 -12
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.mjs +30 -30
- package/dist/esm/api/resources/orders/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orders/client/Client.mjs +24 -24
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +18 -18
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +18 -18
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +18 -18
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +35 -35
- package/dist/esm/api/resources/orgs/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/orgs/client/Client.mjs +48 -48
- package/dist/esm/api/resources/payments/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/payments/client/Client.mjs +34 -34
- package/dist/esm/api/resources/root/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/root/client/Client.mjs +26 -26
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +27 -27
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +54 -54
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +31 -31
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +6 -6
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +6 -6
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +18 -18
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +28 -28
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +49 -49
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +30 -30
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +37 -37
- package/dist/esm/api/resources/taskGroups/client/requests/TaskGroupsExpandedReq.d.mts +3 -0
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +12 -12
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +6 -6
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +8 -8
- package/dist/{cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.ts → esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +8 -8
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.d.mts → CargoByDriverLastSeenV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +32 -32
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +53 -53
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.d.mts → DevicesDeleteV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.d.mts → DevicesGetV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.d.mts → DevicesLinkToCargoV1Request.d.mts} +1 -1
- package/dist/{cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.ts → esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +7 -7
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +66 -66
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +108 -108
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.d.mts → SessionByDeviceDataPointsPublicV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.d.mts → SessionByDeviceDataPointsV1Request.d.mts} +1 -1
- package/dist/{cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.ts → esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.d.mts → SessionByDeviceGetV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.mts +12 -0
- package/dist/{cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.ts → esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +10 -10
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +8 -8
- package/dist/{cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.d.ts → esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/users/client/Client.mjs +7 -7
- package/dist/esm/api/resources/utils/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/utils/client/Client.mjs +7 -7
- package/dist/esm/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.d.mts → UtilsGetTimezoneV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/utils/client/requests/index.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +440 -442
- package/dist/cjs/api/resources/dev/resources/getUserId/client/Client.d.ts +0 -43
- package/dist/cjs/api/resources/dev/resources/getUserId/client/Client.js +0 -118
- package/dist/cjs/api/resources/dev/resources/getUserId/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/dev/resources/getUserId/client/index.js +0 -2
- package/dist/cjs/api/resources/dev/resources/getUserId/index.d.ts +0 -1
- package/dist/cjs/api/resources/dev/resources/getUserId/index.js +0 -17
- package/dist/cjs/api/resources/dev/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/dev/resources/index.js +0 -37
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.ts +0 -12
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.ts +0 -12
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.ts +0 -12
- package/dist/esm/api/resources/dev/resources/getUserId/client/Client.d.mts +0 -43
- package/dist/esm/api/resources/dev/resources/getUserId/client/Client.mjs +0 -81
- package/dist/esm/api/resources/dev/resources/getUserId/client/index.d.mts +0 -1
- package/dist/esm/api/resources/dev/resources/getUserId/client/index.mjs +0 -1
- package/dist/esm/api/resources/dev/resources/getUserId/index.d.mts +0 -1
- package/dist/esm/api/resources/dev/resources/getUserId/index.mjs +0 -1
- package/dist/esm/api/resources/dev/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/dev/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.mts +0 -12
- /package/dist/cjs/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.js → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/{CargoByDeviceLastSeenRequest.js → CargoByDeviceLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.js → CargoByDriverLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.js → DevicesDeleteV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.js → DevicesGetV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.js → DevicesLinkToCargoV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesUnlinkFromCargoRequest.js → DevicesUnlinkFromCargoV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.js → SessionByDeviceDataPointsPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.js → SessionByDeviceDataPointsV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDeleteRequest.js → SessionByDeviceDeleteV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.js → SessionByDeviceGetV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.js → SessionByDeviceLastSeenPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.js → SessionByDeviceLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDevicePauseRecordingRequest.js → SessionByDevicePauseRecordingV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceResumeRecordingRequest.js → SessionByDeviceResumeRecordingV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartRequest.js → SessionByDeviceStartV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceTerminateRequest.js → SessionByDeviceTerminateV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/{TaskGroupByDriverLastSeenRequest.js → TaskGroupByDriverLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.js → UtilsGetTimezoneV1Request.js} +0 -0
- /package/dist/esm/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.mjs → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/{CargoByDeviceLastSeenRequest.mjs → CargoByDeviceLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.mjs → CargoByDriverLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.mjs → DevicesDeleteV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.mjs → DevicesGetV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.mjs → DevicesLinkToCargoV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesUnlinkFromCargoRequest.mjs → DevicesUnlinkFromCargoV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.mjs → SessionByDeviceDataPointsPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.mjs → SessionByDeviceDataPointsV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDeleteRequest.mjs → SessionByDeviceDeleteV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.mjs → SessionByDeviceGetV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.mjs → SessionByDeviceLastSeenPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.mjs → SessionByDeviceLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDevicePauseRecordingRequest.mjs → SessionByDevicePauseRecordingV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceResumeRecordingRequest.mjs → SessionByDeviceResumeRecordingV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartRequest.mjs → SessionByDeviceStartV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceTerminateRequest.mjs → SessionByDeviceTerminateV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/{TaskGroupByDriverLastSeenRequest.mjs → TaskGroupByDriverLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.mjs → UtilsGetTimezoneV1Request.mjs} +0 -0
|
@@ -25,17 +25,17 @@ export class ShipperPayCourierRateSheets {
|
|
|
25
25
|
* @param {ShipperPayCourierRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.shipperPayCourierRateSheets.
|
|
28
|
+
* await client.shipperPayCourierRateSheets.listByCourierOrgIdV1()
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
listByCourierOrgIdV1(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgIdV1(requestOptions));
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
__listByCourierOrgIdV1(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
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
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/shipper_pay_courier_rate_sheets/list"),
|
|
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/shipper_pay_courier_rate_sheets/list/v1"),
|
|
39
39
|
method: "GET",
|
|
40
40
|
headers: _headers,
|
|
41
41
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -61,7 +61,7 @@ export class ShipperPayCourierRateSheets {
|
|
|
61
61
|
rawResponse: _response.rawResponse,
|
|
62
62
|
});
|
|
63
63
|
case "timeout":
|
|
64
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_rate_sheets/list.");
|
|
64
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_rate_sheets/list/v1.");
|
|
65
65
|
case "unknown":
|
|
66
66
|
throw new errors.ChrtError({
|
|
67
67
|
message: _response.error.errorMessage,
|
|
@@ -79,7 +79,7 @@ export class ShipperPayCourierRateSheets {
|
|
|
79
79
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
80
80
|
*
|
|
81
81
|
* @example
|
|
82
|
-
* await client.shipperPayCourierRateSheets.
|
|
82
|
+
* await client.shipperPayCourierRateSheets.createV1({
|
|
83
83
|
* schema_version: 1,
|
|
84
84
|
* base_mileage_distance_miles: 1.1,
|
|
85
85
|
* base_mileage_rate_usd_per_instance: 1.1,
|
|
@@ -96,15 +96,15 @@ export class ShipperPayCourierRateSheets {
|
|
|
96
96
|
* holiday: 1.1
|
|
97
97
|
* })
|
|
98
98
|
*/
|
|
99
|
-
|
|
100
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
99
|
+
createV1(request, requestOptions) {
|
|
100
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
__createV1(request, requestOptions) {
|
|
103
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
104
|
var _a, _b, _c, _d;
|
|
105
105
|
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);
|
|
106
106
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
107
|
-
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/shipper_pay_courier_rate_sheets/create"),
|
|
107
|
+
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/shipper_pay_courier_rate_sheets/create/v1"),
|
|
108
108
|
method: "POST",
|
|
109
109
|
headers: _headers,
|
|
110
110
|
contentType: "application/json",
|
|
@@ -138,7 +138,7 @@ export class ShipperPayCourierRateSheets {
|
|
|
138
138
|
rawResponse: _response.rawResponse,
|
|
139
139
|
});
|
|
140
140
|
case "timeout":
|
|
141
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_pay_courier_rate_sheets/create.");
|
|
141
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_pay_courier_rate_sheets/create/v1.");
|
|
142
142
|
case "unknown":
|
|
143
143
|
throw new errors.ChrtError({
|
|
144
144
|
message: _response.error.errorMessage,
|
|
@@ -156,17 +156,17 @@ export class ShipperPayCourierRateSheets {
|
|
|
156
156
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
157
157
|
*
|
|
158
158
|
* @example
|
|
159
|
-
* await client.shipperPayCourierRateSheets.
|
|
159
|
+
* await client.shipperPayCourierRateSheets.getV1("id")
|
|
160
160
|
*/
|
|
161
|
-
|
|
162
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
161
|
+
getV1(id, requestOptions) {
|
|
162
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(id, requestOptions));
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
__getV1(id, requestOptions) {
|
|
165
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
166
166
|
var _a, _b, _c, _d;
|
|
167
167
|
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);
|
|
168
168
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
169
|
-
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/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
|
|
169
|
+
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/shipper_pay_courier_rate_sheets/v1/${encodeURIComponent(id)}`),
|
|
170
170
|
method: "GET",
|
|
171
171
|
headers: _headers,
|
|
172
172
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -197,7 +197,7 @@ export class ShipperPayCourierRateSheets {
|
|
|
197
197
|
rawResponse: _response.rawResponse,
|
|
198
198
|
});
|
|
199
199
|
case "timeout":
|
|
200
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_rate_sheets/{id}.");
|
|
200
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_rate_sheets/v1/{id}.");
|
|
201
201
|
case "unknown":
|
|
202
202
|
throw new errors.ChrtError({
|
|
203
203
|
message: _response.error.errorMessage,
|
|
@@ -215,17 +215,17 @@ export class ShipperPayCourierRateSheets {
|
|
|
215
215
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
216
216
|
*
|
|
217
217
|
* @example
|
|
218
|
-
* await client.shipperPayCourierRateSheets.
|
|
218
|
+
* await client.shipperPayCourierRateSheets.deleteByIdV1("id")
|
|
219
219
|
*/
|
|
220
|
-
|
|
221
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
220
|
+
deleteByIdV1(id, requestOptions) {
|
|
221
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteByIdV1(id, requestOptions));
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
__deleteByIdV1(id, requestOptions) {
|
|
224
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
225
225
|
var _a, _b, _c, _d;
|
|
226
226
|
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);
|
|
227
227
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
228
|
-
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/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
|
|
228
|
+
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/shipper_pay_courier_rate_sheets/v1/${encodeURIComponent(id)}`),
|
|
229
229
|
method: "DELETE",
|
|
230
230
|
headers: _headers,
|
|
231
231
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -256,7 +256,7 @@ export class ShipperPayCourierRateSheets {
|
|
|
256
256
|
rawResponse: _response.rawResponse,
|
|
257
257
|
});
|
|
258
258
|
case "timeout":
|
|
259
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_pay_courier_rate_sheets/{id}.");
|
|
259
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_pay_courier_rate_sheets/v1/{id}.");
|
|
260
260
|
case "unknown":
|
|
261
261
|
throw new errors.ChrtError({
|
|
262
262
|
message: _response.error.errorMessage,
|
|
@@ -275,17 +275,17 @@ export class ShipperPayCourierRateSheets {
|
|
|
275
275
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
276
276
|
*
|
|
277
277
|
* @example
|
|
278
|
-
* await client.shipperPayCourierRateSheets.
|
|
278
|
+
* await client.shipperPayCourierRateSheets.updateByIdV1("id")
|
|
279
279
|
*/
|
|
280
|
-
|
|
281
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
280
|
+
updateByIdV1(id, request = {}, requestOptions) {
|
|
281
|
+
return core.HttpResponsePromise.fromPromise(this.__updateByIdV1(id, request, requestOptions));
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
__updateByIdV1(id_1) {
|
|
284
284
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
285
285
|
var _a, _b, _c, _d;
|
|
286
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
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/shipper_pay_courier_rate_sheets/${encodeURIComponent(id)}`),
|
|
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/shipper_pay_courier_rate_sheets/v1/${encodeURIComponent(id)}`),
|
|
289
289
|
method: "PATCH",
|
|
290
290
|
headers: _headers,
|
|
291
291
|
contentType: "application/json",
|
|
@@ -319,7 +319,7 @@ export class ShipperPayCourierRateSheets {
|
|
|
319
319
|
rawResponse: _response.rawResponse,
|
|
320
320
|
});
|
|
321
321
|
case "timeout":
|
|
322
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/shipper_pay_courier_rate_sheets/{id}.");
|
|
322
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/shipper_pay_courier_rate_sheets/v1/{id}.");
|
|
323
323
|
case "unknown":
|
|
324
324
|
throw new errors.ChrtError({
|
|
325
325
|
message: _response.error.errorMessage,
|
|
@@ -42,10 +42,10 @@ export declare class TaskGroups {
|
|
|
42
42
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.taskGroups.
|
|
45
|
+
* await client.taskGroups.listByCourierOrgIdV1()
|
|
46
46
|
*/
|
|
47
|
-
|
|
48
|
-
private
|
|
47
|
+
listByCourierOrgIdV1(requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.MultipleTaskGroupsWithTasks>;
|
|
48
|
+
private __listByCourierOrgIdV1;
|
|
49
49
|
/**
|
|
50
50
|
* Retrieves a specific task group by ID with its associated tasks.
|
|
51
51
|
*
|
|
@@ -55,10 +55,10 @@ export declare class TaskGroups {
|
|
|
55
55
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.taskGroups.
|
|
58
|
+
* await client.taskGroups.getByIdV1("id")
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
private
|
|
60
|
+
getByIdV1(id: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupWithTasks>;
|
|
61
|
+
private __getByIdV1;
|
|
62
62
|
/**
|
|
63
63
|
* Updates task group driver assignments by adding or removing drivers.
|
|
64
64
|
*
|
|
@@ -68,12 +68,12 @@ export declare class TaskGroups {
|
|
|
68
68
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.taskGroups.
|
|
71
|
+
* await client.taskGroups.updateV1({
|
|
72
72
|
* task_group_id: "task_group_id"
|
|
73
73
|
* })
|
|
74
74
|
*/
|
|
75
|
-
|
|
76
|
-
private
|
|
75
|
+
updateV1(request: Chrt.UpdateTaskGroupReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.UpdateTaskGroupRes>;
|
|
76
|
+
private __updateV1;
|
|
77
77
|
/**
|
|
78
78
|
* Lists all task groups assigned to a specific driver.
|
|
79
79
|
*
|
|
@@ -83,10 +83,10 @@ export declare class TaskGroups {
|
|
|
83
83
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
|
-
* await client.taskGroups.
|
|
86
|
+
* await client.taskGroups.listByDriverIdV1("driver_id")
|
|
87
87
|
*/
|
|
88
|
-
|
|
89
|
-
private
|
|
88
|
+
listByDriverIdV1(driverId: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroup1[]>;
|
|
89
|
+
private __listByDriverIdV1;
|
|
90
90
|
/**
|
|
91
91
|
* Starts a task group by changing its status to in-progress and updating the order status.
|
|
92
92
|
*
|
|
@@ -96,12 +96,12 @@ export declare class TaskGroups {
|
|
|
96
96
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
97
97
|
*
|
|
98
98
|
* @example
|
|
99
|
-
* await client.taskGroups.
|
|
99
|
+
* await client.taskGroups.startV1("id")
|
|
100
100
|
*/
|
|
101
|
-
|
|
102
|
-
private
|
|
101
|
+
startV1(id: string, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
102
|
+
private __startV1;
|
|
103
103
|
/**
|
|
104
|
-
* Fetches task groups by driver with optional expanded data
|
|
104
|
+
* Fetches task groups by driver with optional expanded data for tasks, milestones, cargo, and payment information.
|
|
105
105
|
*
|
|
106
106
|
* @param {Chrt.TaskGroupsExpandedReq} request
|
|
107
107
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -109,11 +109,11 @@ export declare class TaskGroups {
|
|
|
109
109
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
110
110
|
*
|
|
111
111
|
* @example
|
|
112
|
-
* await client.taskGroups.
|
|
112
|
+
* await client.taskGroups.postByDriverExpandedV1({
|
|
113
113
|
* task_group_statuses: ["not_started"]
|
|
114
114
|
* })
|
|
115
115
|
*/
|
|
116
|
-
|
|
117
|
-
private
|
|
116
|
+
postByDriverExpandedV1(request: Chrt.TaskGroupsExpandedReq, requestOptions?: TaskGroups.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupsExpandedRes>;
|
|
117
|
+
private __postByDriverExpandedV1;
|
|
118
118
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
119
119
|
}
|
|
@@ -35,17 +35,17 @@ export class TaskGroups {
|
|
|
35
35
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
|
-
* await client.taskGroups.
|
|
38
|
+
* await client.taskGroups.listByCourierOrgIdV1()
|
|
39
39
|
*/
|
|
40
|
-
|
|
41
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
40
|
+
listByCourierOrgIdV1(requestOptions) {
|
|
41
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgIdV1(requestOptions));
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
__listByCourierOrgIdV1(requestOptions) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
45
|
var _a, _b, _c, _d;
|
|
46
46
|
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);
|
|
47
47
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
48
|
-
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/task_groups/by_courier_org_id/list"),
|
|
48
|
+
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/task_groups/by_courier_org_id/list/v1"),
|
|
49
49
|
method: "GET",
|
|
50
50
|
headers: _headers,
|
|
51
51
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -71,7 +71,7 @@ export class TaskGroups {
|
|
|
71
71
|
rawResponse: _response.rawResponse,
|
|
72
72
|
});
|
|
73
73
|
case "timeout":
|
|
74
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/by_courier_org_id/list.");
|
|
74
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/by_courier_org_id/list/v1.");
|
|
75
75
|
case "unknown":
|
|
76
76
|
throw new errors.ChrtError({
|
|
77
77
|
message: _response.error.errorMessage,
|
|
@@ -89,17 +89,17 @@ export class TaskGroups {
|
|
|
89
89
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.taskGroups.
|
|
92
|
+
* await client.taskGroups.getByIdV1("id")
|
|
93
93
|
*/
|
|
94
|
-
|
|
95
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
94
|
+
getByIdV1(id, requestOptions) {
|
|
95
|
+
return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
__getByIdV1(id, requestOptions) {
|
|
98
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
99
|
var _a, _b, _c, _d;
|
|
100
100
|
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);
|
|
101
101
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
102
|
-
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/task_groups/${encodeURIComponent(id)}`),
|
|
102
|
+
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/task_groups/v1/${encodeURIComponent(id)}`),
|
|
103
103
|
method: "GET",
|
|
104
104
|
headers: _headers,
|
|
105
105
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -130,7 +130,7 @@ export class TaskGroups {
|
|
|
130
130
|
rawResponse: _response.rawResponse,
|
|
131
131
|
});
|
|
132
132
|
case "timeout":
|
|
133
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/{id}.");
|
|
133
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/v1/{id}.");
|
|
134
134
|
case "unknown":
|
|
135
135
|
throw new errors.ChrtError({
|
|
136
136
|
message: _response.error.errorMessage,
|
|
@@ -148,19 +148,19 @@ export class TaskGroups {
|
|
|
148
148
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
149
149
|
*
|
|
150
150
|
* @example
|
|
151
|
-
* await client.taskGroups.
|
|
151
|
+
* await client.taskGroups.updateV1({
|
|
152
152
|
* task_group_id: "task_group_id"
|
|
153
153
|
* })
|
|
154
154
|
*/
|
|
155
|
-
|
|
156
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
155
|
+
updateV1(request, requestOptions) {
|
|
156
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(request, requestOptions));
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
__updateV1(request, requestOptions) {
|
|
159
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
160
160
|
var _a, _b, _c, _d;
|
|
161
161
|
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);
|
|
162
162
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
163
|
-
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/task_groups/update"),
|
|
163
|
+
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/task_groups/update/v1"),
|
|
164
164
|
method: "POST",
|
|
165
165
|
headers: _headers,
|
|
166
166
|
contentType: "application/json",
|
|
@@ -194,7 +194,7 @@ export class TaskGroups {
|
|
|
194
194
|
rawResponse: _response.rawResponse,
|
|
195
195
|
});
|
|
196
196
|
case "timeout":
|
|
197
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/update.");
|
|
197
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/update/v1.");
|
|
198
198
|
case "unknown":
|
|
199
199
|
throw new errors.ChrtError({
|
|
200
200
|
message: _response.error.errorMessage,
|
|
@@ -212,17 +212,17 @@ export class TaskGroups {
|
|
|
212
212
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
213
213
|
*
|
|
214
214
|
* @example
|
|
215
|
-
* await client.taskGroups.
|
|
215
|
+
* await client.taskGroups.listByDriverIdV1("driver_id")
|
|
216
216
|
*/
|
|
217
|
-
|
|
218
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
217
|
+
listByDriverIdV1(driverId, requestOptions) {
|
|
218
|
+
return core.HttpResponsePromise.fromPromise(this.__listByDriverIdV1(driverId, requestOptions));
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
__listByDriverIdV1(driverId, requestOptions) {
|
|
221
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
222
|
var _a, _b, _c, _d;
|
|
223
223
|
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);
|
|
224
224
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
225
|
-
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/task_groups/list/${encodeURIComponent(driverId)}`),
|
|
225
|
+
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/task_groups/list/v1/${encodeURIComponent(driverId)}`),
|
|
226
226
|
method: "GET",
|
|
227
227
|
headers: _headers,
|
|
228
228
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -253,7 +253,7 @@ export class TaskGroups {
|
|
|
253
253
|
rawResponse: _response.rawResponse,
|
|
254
254
|
});
|
|
255
255
|
case "timeout":
|
|
256
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/list/{driver_id}.");
|
|
256
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/list/v1/{driver_id}.");
|
|
257
257
|
case "unknown":
|
|
258
258
|
throw new errors.ChrtError({
|
|
259
259
|
message: _response.error.errorMessage,
|
|
@@ -271,17 +271,17 @@ export class TaskGroups {
|
|
|
271
271
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
272
272
|
*
|
|
273
273
|
* @example
|
|
274
|
-
* await client.taskGroups.
|
|
274
|
+
* await client.taskGroups.startV1("id")
|
|
275
275
|
*/
|
|
276
|
-
|
|
277
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
276
|
+
startV1(id, requestOptions) {
|
|
277
|
+
return core.HttpResponsePromise.fromPromise(this.__startV1(id, requestOptions));
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
__startV1(id, requestOptions) {
|
|
280
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
281
281
|
var _a, _b, _c, _d;
|
|
282
282
|
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);
|
|
283
283
|
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, `oort/task_groups/start/${encodeURIComponent(id)}`),
|
|
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, `oort/task_groups/start/v1/${encodeURIComponent(id)}`),
|
|
285
285
|
method: "PUT",
|
|
286
286
|
headers: _headers,
|
|
287
287
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -312,7 +312,7 @@ export class TaskGroups {
|
|
|
312
312
|
rawResponse: _response.rawResponse,
|
|
313
313
|
});
|
|
314
314
|
case "timeout":
|
|
315
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/start/{id}.");
|
|
315
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/start/v1/{id}.");
|
|
316
316
|
case "unknown":
|
|
317
317
|
throw new errors.ChrtError({
|
|
318
318
|
message: _response.error.errorMessage,
|
|
@@ -322,7 +322,7 @@ export class TaskGroups {
|
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
|
-
* Fetches task groups by driver with optional expanded data
|
|
325
|
+
* Fetches task groups by driver with optional expanded data for tasks, milestones, cargo, and payment information.
|
|
326
326
|
*
|
|
327
327
|
* @param {Chrt.TaskGroupsExpandedReq} request
|
|
328
328
|
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -330,19 +330,19 @@ export class TaskGroups {
|
|
|
330
330
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
331
331
|
*
|
|
332
332
|
* @example
|
|
333
|
-
* await client.taskGroups.
|
|
333
|
+
* await client.taskGroups.postByDriverExpandedV1({
|
|
334
334
|
* task_group_statuses: ["not_started"]
|
|
335
335
|
* })
|
|
336
336
|
*/
|
|
337
|
-
|
|
338
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
337
|
+
postByDriverExpandedV1(request, requestOptions) {
|
|
338
|
+
return core.HttpResponsePromise.fromPromise(this.__postByDriverExpandedV1(request, requestOptions));
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
__postByDriverExpandedV1(request, requestOptions) {
|
|
341
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
342
342
|
var _a, _b, _c, _d;
|
|
343
343
|
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);
|
|
344
344
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
345
|
-
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/task_groups/by_driver/expanded"),
|
|
345
|
+
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/task_groups/by_driver/expanded/v1"),
|
|
346
346
|
method: "POST",
|
|
347
347
|
headers: _headers,
|
|
348
348
|
contentType: "application/json",
|
|
@@ -376,7 +376,7 @@ export class TaskGroups {
|
|
|
376
376
|
rawResponse: _response.rawResponse,
|
|
377
377
|
});
|
|
378
378
|
case "timeout":
|
|
379
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/by_driver/expanded.");
|
|
379
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/by_driver/expanded/v1.");
|
|
380
380
|
case "unknown":
|
|
381
381
|
throw new errors.ChrtError({
|
|
382
382
|
message: _response.error.errorMessage,
|
|
@@ -18,4 +18,7 @@ export interface TaskGroupsExpandedReq {
|
|
|
18
18
|
expand_order_org_company_name?: boolean;
|
|
19
19
|
expand_order_org_handle?: boolean;
|
|
20
20
|
expand_task_group_mileage?: boolean;
|
|
21
|
+
expand_courier_pay_driver_line_item_groups?: boolean;
|
|
22
|
+
expand_courier_pay_driver_rate_sheet?: boolean;
|
|
23
|
+
expand_courier_pay_driver_payout?: boolean;
|
|
21
24
|
}
|
|
@@ -36,10 +36,10 @@ export declare class Full {
|
|
|
36
36
|
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.taskGroups.full.
|
|
39
|
+
* await client.taskGroups.full.listByCourierOrgIdV1()
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
41
|
+
listByCourierOrgIdV1(requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.MultipleTaskGroupsDetailsResponse>;
|
|
42
|
+
private __listByCourierOrgIdV1;
|
|
43
43
|
/**
|
|
44
44
|
* Retrieves a specific task group with complete tasks, milestones, and cargo information.
|
|
45
45
|
*
|
|
@@ -49,9 +49,9 @@ export declare class Full {
|
|
|
49
49
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* await client.taskGroups.full.
|
|
52
|
+
* await client.taskGroups.full.getByTaskGroupIdV1("id")
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
private
|
|
54
|
+
getByTaskGroupIdV1(id: string, requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupWithDetails>;
|
|
55
|
+
private __getByTaskGroupIdV1;
|
|
56
56
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
57
57
|
}
|
|
@@ -25,17 +25,17 @@ export class Full {
|
|
|
25
25
|
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.taskGroups.full.
|
|
28
|
+
* await client.taskGroups.full.listByCourierOrgIdV1()
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
listByCourierOrgIdV1(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgIdV1(requestOptions));
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
__listByCourierOrgIdV1(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
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
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/task_groups/by_courier_org_id/list/full"),
|
|
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/task_groups/by_courier_org_id/list/full/v1"),
|
|
39
39
|
method: "GET",
|
|
40
40
|
headers: _headers,
|
|
41
41
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -64,7 +64,7 @@ export class Full {
|
|
|
64
64
|
rawResponse: _response.rawResponse,
|
|
65
65
|
});
|
|
66
66
|
case "timeout":
|
|
67
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/by_courier_org_id/list/full.");
|
|
67
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/by_courier_org_id/list/full/v1.");
|
|
68
68
|
case "unknown":
|
|
69
69
|
throw new errors.ChrtError({
|
|
70
70
|
message: _response.error.errorMessage,
|
|
@@ -82,17 +82,17 @@ export class Full {
|
|
|
82
82
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
|
-
* await client.taskGroups.full.
|
|
85
|
+
* await client.taskGroups.full.getByTaskGroupIdV1("id")
|
|
86
86
|
*/
|
|
87
|
-
|
|
88
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
87
|
+
getByTaskGroupIdV1(id, requestOptions) {
|
|
88
|
+
return core.HttpResponsePromise.fromPromise(this.__getByTaskGroupIdV1(id, requestOptions));
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
__getByTaskGroupIdV1(id, requestOptions) {
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
var _a, _b, _c, _d;
|
|
93
93
|
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);
|
|
94
94
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
95
|
-
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/task_groups/${encodeURIComponent(id)}/full`),
|
|
95
|
+
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/task_groups/v1/${encodeURIComponent(id)}/full`),
|
|
96
96
|
method: "GET",
|
|
97
97
|
headers: _headers,
|
|
98
98
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -123,7 +123,7 @@ export class Full {
|
|
|
123
123
|
rawResponse: _response.rawResponse,
|
|
124
124
|
});
|
|
125
125
|
case "timeout":
|
|
126
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/{id}/full.");
|
|
126
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/v1/{id}/full.");
|
|
127
127
|
case "unknown":
|
|
128
128
|
throw new errors.ChrtError({
|
|
129
129
|
message: _response.error.errorMessage,
|
|
@@ -40,12 +40,12 @@ export declare class TogglePause {
|
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.taskGroups.togglePause.
|
|
43
|
+
* await client.taskGroups.togglePause.byIdV1("id", {
|
|
44
44
|
* task_group_id: "task_group_id",
|
|
45
45
|
* paused: true
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
|
|
49
|
-
private
|
|
48
|
+
byIdV1(id: string, request: Chrt.taskGroups.SetTaskGroupPauseReq, requestOptions?: TogglePause.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
49
|
+
private __byIdV1;
|
|
50
50
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
51
51
|
}
|
|
@@ -29,20 +29,20 @@ export class TogglePause {
|
|
|
29
29
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
|
-
* await client.taskGroups.togglePause.
|
|
32
|
+
* await client.taskGroups.togglePause.byIdV1("id", {
|
|
33
33
|
* task_group_id: "task_group_id",
|
|
34
34
|
* paused: true
|
|
35
35
|
* })
|
|
36
36
|
*/
|
|
37
|
-
|
|
38
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
37
|
+
byIdV1(id, request, requestOptions) {
|
|
38
|
+
return core.HttpResponsePromise.fromPromise(this.__byIdV1(id, request, requestOptions));
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
__byIdV1(id, request, requestOptions) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
var _a, _b, _c, _d;
|
|
43
43
|
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);
|
|
44
44
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
45
|
-
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/task_groups/toggle_pause/${encodeURIComponent(id)}`),
|
|
45
|
+
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/task_groups/toggle_pause/v1/${encodeURIComponent(id)}`),
|
|
46
46
|
method: "PUT",
|
|
47
47
|
headers: _headers,
|
|
48
48
|
contentType: "application/json",
|
|
@@ -76,7 +76,7 @@ export class TogglePause {
|
|
|
76
76
|
rawResponse: _response.rawResponse,
|
|
77
77
|
});
|
|
78
78
|
case "timeout":
|
|
79
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/toggle_pause/{id}.");
|
|
79
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/toggle_pause/v1/{id}.");
|
|
80
80
|
case "unknown":
|
|
81
81
|
throw new errors.ChrtError({
|
|
82
82
|
message: _response.error.errorMessage,
|