@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
|
@@ -65,7 +65,7 @@ class AddLineItems {
|
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.courierPayDriverLineItemGroups.addLineItems.
|
|
68
|
+
* await client.courierPayDriverLineItemGroups.addLineItems.byIdV1("id", {
|
|
69
69
|
* line_items: [{
|
|
70
70
|
* schema_version: 1,
|
|
71
71
|
* item: "base_rate",
|
|
@@ -74,15 +74,15 @@ class AddLineItems {
|
|
|
74
74
|
* }]
|
|
75
75
|
* })
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
77
|
+
byIdV1(id, request, requestOptions) {
|
|
78
|
+
return core.HttpResponsePromise.fromPromise(this.__byIdV1(id, request, requestOptions));
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
__byIdV1(id, request, requestOptions) {
|
|
81
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
82
|
var _a, _b, _c, _d;
|
|
83
83
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
84
84
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
85
|
-
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_line_item_groups/add_line_items/${encodeURIComponent(id)}`),
|
|
85
|
+
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_line_item_groups/add_line_items/v1/${encodeURIComponent(id)}`),
|
|
86
86
|
method: "PATCH",
|
|
87
87
|
headers: _headers,
|
|
88
88
|
contentType: "application/json",
|
|
@@ -116,7 +116,7 @@ class AddLineItems {
|
|
|
116
116
|
rawResponse: _response.rawResponse,
|
|
117
117
|
});
|
|
118
118
|
case "timeout":
|
|
119
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/add_line_items/{id}.");
|
|
119
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/add_line_items/v1/{id}.");
|
|
120
120
|
case "unknown":
|
|
121
121
|
throw new errors.ChrtError({
|
|
122
122
|
message: _response.error.errorMessage,
|
|
@@ -31,7 +31,7 @@ export declare class RemoveLineItems {
|
|
|
31
31
|
protected readonly _options: RemoveLineItems.Options;
|
|
32
32
|
constructor(_options?: RemoveLineItems.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Removes specific line items from a courier driver line item group by
|
|
34
|
+
* Removes specific line items from a courier driver line item group by their UUID identifiers.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} id
|
|
37
37
|
* @param {Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupRemoveLineItemsReq} request
|
|
@@ -40,11 +40,11 @@ export declare class RemoveLineItems {
|
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.courierPayDriverLineItemGroups.removeLineItems.
|
|
43
|
+
* await client.courierPayDriverLineItemGroups.removeLineItems.byIdV1("id", {
|
|
44
44
|
* line_item_uuid_strs: ["line_item_uuid_strs"]
|
|
45
45
|
* })
|
|
46
46
|
*/
|
|
47
|
-
|
|
48
|
-
private
|
|
47
|
+
byIdV1(id: string, request: Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupRemoveLineItemsReq, requestOptions?: RemoveLineItems.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
48
|
+
private __byIdV1;
|
|
49
49
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ class RemoveLineItems {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Removes specific line items from a courier driver line item group by
|
|
59
|
+
* Removes specific line items from a courier driver line item group by their UUID identifiers.
|
|
60
60
|
*
|
|
61
61
|
* @param {string} id
|
|
62
62
|
* @param {Chrt.courierPayDriverLineItemGroups.CourierPayDriverLineItemGroupRemoveLineItemsReq} request
|
|
@@ -65,19 +65,19 @@ class RemoveLineItems {
|
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.courierPayDriverLineItemGroups.removeLineItems.
|
|
68
|
+
* await client.courierPayDriverLineItemGroups.removeLineItems.byIdV1("id", {
|
|
69
69
|
* line_item_uuid_strs: ["line_item_uuid_strs"]
|
|
70
70
|
* })
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
72
|
+
byIdV1(id, request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__byIdV1(id, request, requestOptions));
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
__byIdV1(id, request, requestOptions) {
|
|
76
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
var _a, _b, _c, _d;
|
|
78
78
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
79
79
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
80
|
-
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_line_item_groups/remove_line_items/${encodeURIComponent(id)}`),
|
|
80
|
+
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_line_item_groups/remove_line_items/v1/${encodeURIComponent(id)}`),
|
|
81
81
|
method: "PATCH",
|
|
82
82
|
headers: _headers,
|
|
83
83
|
contentType: "application/json",
|
|
@@ -111,7 +111,7 @@ class RemoveLineItems {
|
|
|
111
111
|
rawResponse: _response.rawResponse,
|
|
112
112
|
});
|
|
113
113
|
case "timeout":
|
|
114
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/remove_line_items/{id}.");
|
|
114
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/remove_line_items/v1/{id}.");
|
|
115
115
|
case "unknown":
|
|
116
116
|
throw new errors.ChrtError({
|
|
117
117
|
message: _response.error.errorMessage,
|
|
@@ -39,10 +39,10 @@ export declare class CourierPayDriverPayouts {
|
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.courierPayDriverPayouts.
|
|
42
|
+
* await client.courierPayDriverPayouts.getByIdV1("id")
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
private
|
|
44
|
+
getByIdV1(id: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1>;
|
|
45
|
+
private __getByIdV1;
|
|
46
46
|
/**
|
|
47
47
|
* Lists all payouts for a specific driver within the authenticated organization.
|
|
48
48
|
*
|
|
@@ -52,12 +52,12 @@ export declare class CourierPayDriverPayouts {
|
|
|
52
52
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
|
-
* await client.courierPayDriverPayouts.
|
|
55
|
+
* await client.courierPayDriverPayouts.listByDriverIdV1("driver_id")
|
|
56
56
|
*/
|
|
57
|
-
|
|
58
|
-
private
|
|
57
|
+
listByDriverIdV1(driverId: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1[]>;
|
|
58
|
+
private __listByDriverIdV1;
|
|
59
59
|
/**
|
|
60
|
-
* Creates a new driver payout from selected line item groups.
|
|
60
|
+
* Creates a new driver payout from selected line item groups and calculates the total amount.
|
|
61
61
|
*
|
|
62
62
|
* @param {Chrt.CourierPayDriverPayoutClientCreate1} request
|
|
63
63
|
* @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,15 +65,15 @@ export declare class CourierPayDriverPayouts {
|
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.courierPayDriverPayouts.
|
|
68
|
+
* await client.courierPayDriverPayouts.createV1({
|
|
69
69
|
* schema_version: 1,
|
|
70
70
|
* courier_pay_driver_line_item_group_ids: ["courier_pay_driver_line_item_group_ids"]
|
|
71
71
|
* })
|
|
72
72
|
*/
|
|
73
|
-
|
|
74
|
-
private
|
|
73
|
+
createV1(request: Chrt.CourierPayDriverPayoutClientCreate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<string>;
|
|
74
|
+
private __createV1;
|
|
75
75
|
/**
|
|
76
|
-
* Updates the status of a courier driver payout with
|
|
76
|
+
* Updates the status of a courier driver payout with validation of allowed state transitions.
|
|
77
77
|
*
|
|
78
78
|
* @param {string} id
|
|
79
79
|
* @param {Chrt.CourierPayDriverPayoutClientUpdate1} request
|
|
@@ -82,9 +82,9 @@ export declare class CourierPayDriverPayouts {
|
|
|
82
82
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
|
-
* await client.courierPayDriverPayouts.
|
|
85
|
+
* await client.courierPayDriverPayouts.updateStatusV1("id")
|
|
86
86
|
*/
|
|
87
|
-
|
|
88
|
-
private
|
|
87
|
+
updateStatusV1(id: string, request?: Chrt.CourierPayDriverPayoutClientUpdate1, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverPayout1>;
|
|
88
|
+
private __updateStatusV1;
|
|
89
89
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
90
90
|
}
|
|
@@ -64,17 +64,17 @@ class CourierPayDriverPayouts {
|
|
|
64
64
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.courierPayDriverPayouts.
|
|
67
|
+
* await client.courierPayDriverPayouts.getByIdV1("id")
|
|
68
68
|
*/
|
|
69
|
-
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
69
|
+
getByIdV1(id, requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
__getByIdV1(id, requestOptions) {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
var _a, _b, _c, _d;
|
|
75
75
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
76
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
-
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_payouts/${encodeURIComponent(id)}`),
|
|
77
|
+
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_payouts/v1/${encodeURIComponent(id)}`),
|
|
78
78
|
method: "GET",
|
|
79
79
|
headers: _headers,
|
|
80
80
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -105,7 +105,7 @@ class CourierPayDriverPayouts {
|
|
|
105
105
|
rawResponse: _response.rawResponse,
|
|
106
106
|
});
|
|
107
107
|
case "timeout":
|
|
108
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/{id}.");
|
|
108
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/v1/{id}.");
|
|
109
109
|
case "unknown":
|
|
110
110
|
throw new errors.ChrtError({
|
|
111
111
|
message: _response.error.errorMessage,
|
|
@@ -123,17 +123,17 @@ class CourierPayDriverPayouts {
|
|
|
123
123
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
|
-
* await client.courierPayDriverPayouts.
|
|
126
|
+
* await client.courierPayDriverPayouts.listByDriverIdV1("driver_id")
|
|
127
127
|
*/
|
|
128
|
-
|
|
129
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
128
|
+
listByDriverIdV1(driverId, requestOptions) {
|
|
129
|
+
return core.HttpResponsePromise.fromPromise(this.__listByDriverIdV1(driverId, requestOptions));
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
__listByDriverIdV1(driverId, requestOptions) {
|
|
132
132
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
133
|
var _a, _b, _c, _d;
|
|
134
134
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
135
135
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
136
|
-
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_payouts/list/${encodeURIComponent(driverId)}`),
|
|
136
|
+
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_payouts/list/v1/${encodeURIComponent(driverId)}`),
|
|
137
137
|
method: "GET",
|
|
138
138
|
headers: _headers,
|
|
139
139
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -164,7 +164,7 @@ class CourierPayDriverPayouts {
|
|
|
164
164
|
rawResponse: _response.rawResponse,
|
|
165
165
|
});
|
|
166
166
|
case "timeout":
|
|
167
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/list/{driver_id}.");
|
|
167
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/list/v1/{driver_id}.");
|
|
168
168
|
case "unknown":
|
|
169
169
|
throw new errors.ChrtError({
|
|
170
170
|
message: _response.error.errorMessage,
|
|
@@ -174,7 +174,7 @@ class CourierPayDriverPayouts {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
|
-
* Creates a new driver payout from selected line item groups.
|
|
177
|
+
* Creates a new driver payout from selected line item groups and calculates the total amount.
|
|
178
178
|
*
|
|
179
179
|
* @param {Chrt.CourierPayDriverPayoutClientCreate1} request
|
|
180
180
|
* @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -182,20 +182,20 @@ class CourierPayDriverPayouts {
|
|
|
182
182
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
183
183
|
*
|
|
184
184
|
* @example
|
|
185
|
-
* await client.courierPayDriverPayouts.
|
|
185
|
+
* await client.courierPayDriverPayouts.createV1({
|
|
186
186
|
* schema_version: 1,
|
|
187
187
|
* courier_pay_driver_line_item_group_ids: ["courier_pay_driver_line_item_group_ids"]
|
|
188
188
|
* })
|
|
189
189
|
*/
|
|
190
|
-
|
|
191
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
190
|
+
createV1(request, requestOptions) {
|
|
191
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
__createV1(request, requestOptions) {
|
|
194
194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
195
195
|
var _a, _b, _c, _d;
|
|
196
196
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
197
197
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
198
|
-
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_payouts/create"),
|
|
198
|
+
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_payouts/create/v1"),
|
|
199
199
|
method: "POST",
|
|
200
200
|
headers: _headers,
|
|
201
201
|
contentType: "application/json",
|
|
@@ -229,7 +229,7 @@ class CourierPayDriverPayouts {
|
|
|
229
229
|
rawResponse: _response.rawResponse,
|
|
230
230
|
});
|
|
231
231
|
case "timeout":
|
|
232
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_payouts/create.");
|
|
232
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_payouts/create/v1.");
|
|
233
233
|
case "unknown":
|
|
234
234
|
throw new errors.ChrtError({
|
|
235
235
|
message: _response.error.errorMessage,
|
|
@@ -239,7 +239,7 @@ class CourierPayDriverPayouts {
|
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
/**
|
|
242
|
-
* Updates the status of a courier driver payout with
|
|
242
|
+
* Updates the status of a courier driver payout with validation of allowed state transitions.
|
|
243
243
|
*
|
|
244
244
|
* @param {string} id
|
|
245
245
|
* @param {Chrt.CourierPayDriverPayoutClientUpdate1} request
|
|
@@ -248,17 +248,17 @@ class CourierPayDriverPayouts {
|
|
|
248
248
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
249
249
|
*
|
|
250
250
|
* @example
|
|
251
|
-
* await client.courierPayDriverPayouts.
|
|
251
|
+
* await client.courierPayDriverPayouts.updateStatusV1("id")
|
|
252
252
|
*/
|
|
253
|
-
|
|
254
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
253
|
+
updateStatusV1(id, request = {}, requestOptions) {
|
|
254
|
+
return core.HttpResponsePromise.fromPromise(this.__updateStatusV1(id, request, requestOptions));
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
__updateStatusV1(id_1) {
|
|
257
257
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
258
258
|
var _a, _b, _c, _d;
|
|
259
259
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
260
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/courier_pay_driver_payouts/${encodeURIComponent(id)}/status`),
|
|
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/courier_pay_driver_payouts/v1/${encodeURIComponent(id)}/status`),
|
|
262
262
|
method: "PATCH",
|
|
263
263
|
headers: _headers,
|
|
264
264
|
contentType: "application/json",
|
|
@@ -292,7 +292,7 @@ class CourierPayDriverPayouts {
|
|
|
292
292
|
rawResponse: _response.rawResponse,
|
|
293
293
|
});
|
|
294
294
|
case "timeout":
|
|
295
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_payouts/{id}/status.");
|
|
295
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_payouts/v1/{id}/status.");
|
|
296
296
|
case "unknown":
|
|
297
297
|
throw new errors.ChrtError({
|
|
298
298
|
message: _response.error.errorMessage,
|
|
@@ -36,10 +36,10 @@ export declare class CourierPayDriverRateSheets {
|
|
|
36
36
|
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.courierPayDriverRateSheets.
|
|
39
|
+
* await client.courierPayDriverRateSheets.listByCourierOrgIdV1()
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
41
|
+
listByCourierOrgIdV1(requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
|
|
42
|
+
private __listByCourierOrgIdV1;
|
|
43
43
|
/**
|
|
44
44
|
* Retrieves all rate sheets assigned to a specific driver.
|
|
45
45
|
*
|
|
@@ -49,10 +49,10 @@ export declare class CourierPayDriverRateSheets {
|
|
|
49
49
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* await client.courierPayDriverRateSheets.
|
|
52
|
+
* await client.courierPayDriverRateSheets.listByDriverIdV1("driver_id")
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
private
|
|
54
|
+
listByDriverIdV1(driverId: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
|
|
55
|
+
private __listByDriverIdV1;
|
|
56
56
|
/**
|
|
57
57
|
* Creates a new driver rate sheet for calculating courier payments.
|
|
58
58
|
*
|
|
@@ -62,7 +62,7 @@ export declare class CourierPayDriverRateSheets {
|
|
|
62
62
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.courierPayDriverRateSheets.
|
|
65
|
+
* await client.courierPayDriverRateSheets.createV1({
|
|
66
66
|
* schema_version: 1,
|
|
67
67
|
* courier_org_id: "courier_org_id",
|
|
68
68
|
* base_mileage_distance_miles: 1.1,
|
|
@@ -80,8 +80,8 @@ export declare class CourierPayDriverRateSheets {
|
|
|
80
80
|
* holiday: 1.1
|
|
81
81
|
* })
|
|
82
82
|
*/
|
|
83
|
-
|
|
84
|
-
private
|
|
83
|
+
createV1(request: Chrt.CourierPayDriverRateSheetClientCreate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<string>;
|
|
84
|
+
private __createV1;
|
|
85
85
|
/**
|
|
86
86
|
* Retrieves a single rate sheet by its ID.
|
|
87
87
|
*
|
|
@@ -91,10 +91,10 @@ export declare class CourierPayDriverRateSheets {
|
|
|
91
91
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* await client.courierPayDriverRateSheets.
|
|
94
|
+
* await client.courierPayDriverRateSheets.getV1("id")
|
|
95
95
|
*/
|
|
96
|
-
|
|
97
|
-
private
|
|
96
|
+
getV1(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
|
|
97
|
+
private __getV1;
|
|
98
98
|
/**
|
|
99
99
|
* Deletes a driver rate sheet owned by the authenticated organization.
|
|
100
100
|
*
|
|
@@ -104,10 +104,10 @@ export declare class CourierPayDriverRateSheets {
|
|
|
104
104
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
* await client.courierPayDriverRateSheets.
|
|
107
|
+
* await client.courierPayDriverRateSheets.deleteByIdV1("id")
|
|
108
108
|
*/
|
|
109
|
-
|
|
110
|
-
private
|
|
109
|
+
deleteByIdV1(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
110
|
+
private __deleteByIdV1;
|
|
111
111
|
/**
|
|
112
112
|
* Updates an existing driver rate sheet owned by the authenticated organization.
|
|
113
113
|
*
|
|
@@ -118,9 +118,9 @@ export declare class CourierPayDriverRateSheets {
|
|
|
118
118
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
119
119
|
*
|
|
120
120
|
* @example
|
|
121
|
-
* await client.courierPayDriverRateSheets.
|
|
121
|
+
* await client.courierPayDriverRateSheets.updateByIdV1("id")
|
|
122
122
|
*/
|
|
123
|
-
|
|
124
|
-
private
|
|
123
|
+
updateByIdV1(id: string, request?: Chrt.CourierPayDriverRateSheetClientUpdate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
|
|
124
|
+
private __updateByIdV1;
|
|
125
125
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
126
126
|
}
|
|
@@ -61,17 +61,17 @@ class CourierPayDriverRateSheets {
|
|
|
61
61
|
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.courierPayDriverRateSheets.
|
|
64
|
+
* await client.courierPayDriverRateSheets.listByCourierOrgIdV1()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
listByCourierOrgIdV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgIdV1(requestOptions));
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
__listByCourierOrgIdV1(requestOptions) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
var _a, _b, _c, _d;
|
|
72
72
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
73
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
74
|
-
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"),
|
|
74
|
+
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/v1"),
|
|
75
75
|
method: "GET",
|
|
76
76
|
headers: _headers,
|
|
77
77
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -97,7 +97,7 @@ class CourierPayDriverRateSheets {
|
|
|
97
97
|
rawResponse: _response.rawResponse,
|
|
98
98
|
});
|
|
99
99
|
case "timeout":
|
|
100
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/list.");
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/list/v1.");
|
|
101
101
|
case "unknown":
|
|
102
102
|
throw new errors.ChrtError({
|
|
103
103
|
message: _response.error.errorMessage,
|
|
@@ -115,17 +115,17 @@ class CourierPayDriverRateSheets {
|
|
|
115
115
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
118
|
-
* await client.courierPayDriverRateSheets.
|
|
118
|
+
* await client.courierPayDriverRateSheets.listByDriverIdV1("driver_id")
|
|
119
119
|
*/
|
|
120
|
-
|
|
121
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
120
|
+
listByDriverIdV1(driverId, requestOptions) {
|
|
121
|
+
return core.HttpResponsePromise.fromPromise(this.__listByDriverIdV1(driverId, requestOptions));
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
__listByDriverIdV1(driverId, requestOptions) {
|
|
124
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
125
|
var _a, _b, _c, _d;
|
|
126
126
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
127
127
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
128
|
-
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)}`),
|
|
128
|
+
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/v1/${encodeURIComponent(driverId)}`),
|
|
129
129
|
method: "GET",
|
|
130
130
|
headers: _headers,
|
|
131
131
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -156,7 +156,7 @@ class CourierPayDriverRateSheets {
|
|
|
156
156
|
rawResponse: _response.rawResponse,
|
|
157
157
|
});
|
|
158
158
|
case "timeout":
|
|
159
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/by_driver_id/{driver_id}.");
|
|
159
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/by_driver_id/v1/{driver_id}.");
|
|
160
160
|
case "unknown":
|
|
161
161
|
throw new errors.ChrtError({
|
|
162
162
|
message: _response.error.errorMessage,
|
|
@@ -174,7 +174,7 @@ class CourierPayDriverRateSheets {
|
|
|
174
174
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
175
175
|
*
|
|
176
176
|
* @example
|
|
177
|
-
* await client.courierPayDriverRateSheets.
|
|
177
|
+
* await client.courierPayDriverRateSheets.createV1({
|
|
178
178
|
* schema_version: 1,
|
|
179
179
|
* courier_org_id: "courier_org_id",
|
|
180
180
|
* base_mileage_distance_miles: 1.1,
|
|
@@ -192,15 +192,15 @@ class CourierPayDriverRateSheets {
|
|
|
192
192
|
* holiday: 1.1
|
|
193
193
|
* })
|
|
194
194
|
*/
|
|
195
|
-
|
|
196
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
195
|
+
createV1(request, requestOptions) {
|
|
196
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
__createV1(request, requestOptions) {
|
|
199
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
200
200
|
var _a, _b, _c, _d;
|
|
201
201
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
202
202
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
203
|
-
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"),
|
|
203
|
+
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/v1"),
|
|
204
204
|
method: "POST",
|
|
205
205
|
headers: _headers,
|
|
206
206
|
contentType: "application/json",
|
|
@@ -234,7 +234,7 @@ class CourierPayDriverRateSheets {
|
|
|
234
234
|
rawResponse: _response.rawResponse,
|
|
235
235
|
});
|
|
236
236
|
case "timeout":
|
|
237
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_rate_sheets/create.");
|
|
237
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_rate_sheets/create/v1.");
|
|
238
238
|
case "unknown":
|
|
239
239
|
throw new errors.ChrtError({
|
|
240
240
|
message: _response.error.errorMessage,
|
|
@@ -252,17 +252,17 @@ class CourierPayDriverRateSheets {
|
|
|
252
252
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
253
253
|
*
|
|
254
254
|
* @example
|
|
255
|
-
* await client.courierPayDriverRateSheets.
|
|
255
|
+
* await client.courierPayDriverRateSheets.getV1("id")
|
|
256
256
|
*/
|
|
257
|
-
|
|
258
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
257
|
+
getV1(id, requestOptions) {
|
|
258
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(id, requestOptions));
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
__getV1(id, requestOptions) {
|
|
261
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
262
262
|
var _a, _b, _c, _d;
|
|
263
263
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
264
264
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
265
|
-
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)}`),
|
|
265
|
+
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/v1/${encodeURIComponent(id)}`),
|
|
266
266
|
method: "GET",
|
|
267
267
|
headers: _headers,
|
|
268
268
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -293,7 +293,7 @@ class CourierPayDriverRateSheets {
|
|
|
293
293
|
rawResponse: _response.rawResponse,
|
|
294
294
|
});
|
|
295
295
|
case "timeout":
|
|
296
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/{id}.");
|
|
296
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/v1/{id}.");
|
|
297
297
|
case "unknown":
|
|
298
298
|
throw new errors.ChrtError({
|
|
299
299
|
message: _response.error.errorMessage,
|
|
@@ -311,17 +311,17 @@ class CourierPayDriverRateSheets {
|
|
|
311
311
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
312
312
|
*
|
|
313
313
|
* @example
|
|
314
|
-
* await client.courierPayDriverRateSheets.
|
|
314
|
+
* await client.courierPayDriverRateSheets.deleteByIdV1("id")
|
|
315
315
|
*/
|
|
316
|
-
|
|
317
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
316
|
+
deleteByIdV1(id, requestOptions) {
|
|
317
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteByIdV1(id, requestOptions));
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
__deleteByIdV1(id, requestOptions) {
|
|
320
320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
321
321
|
var _a, _b, _c, _d;
|
|
322
322
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
323
323
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
324
|
-
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)}`),
|
|
324
|
+
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/v1/${encodeURIComponent(id)}`),
|
|
325
325
|
method: "DELETE",
|
|
326
326
|
headers: _headers,
|
|
327
327
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -352,7 +352,7 @@ class CourierPayDriverRateSheets {
|
|
|
352
352
|
rawResponse: _response.rawResponse,
|
|
353
353
|
});
|
|
354
354
|
case "timeout":
|
|
355
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/courier_pay_driver_rate_sheets/{id}.");
|
|
355
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/courier_pay_driver_rate_sheets/v1/{id}.");
|
|
356
356
|
case "unknown":
|
|
357
357
|
throw new errors.ChrtError({
|
|
358
358
|
message: _response.error.errorMessage,
|
|
@@ -371,17 +371,17 @@ class CourierPayDriverRateSheets {
|
|
|
371
371
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
372
372
|
*
|
|
373
373
|
* @example
|
|
374
|
-
* await client.courierPayDriverRateSheets.
|
|
374
|
+
* await client.courierPayDriverRateSheets.updateByIdV1("id")
|
|
375
375
|
*/
|
|
376
|
-
|
|
377
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
376
|
+
updateByIdV1(id, request = {}, requestOptions) {
|
|
377
|
+
return core.HttpResponsePromise.fromPromise(this.__updateByIdV1(id, request, requestOptions));
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
__updateByIdV1(id_1) {
|
|
380
380
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
381
381
|
var _a, _b, _c, _d;
|
|
382
382
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
383
383
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
384
|
-
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)}`),
|
|
384
|
+
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/v1/${encodeURIComponent(id)}`),
|
|
385
385
|
method: "PATCH",
|
|
386
386
|
headers: _headers,
|
|
387
387
|
contentType: "application/json",
|
|
@@ -415,7 +415,7 @@ class CourierPayDriverRateSheets {
|
|
|
415
415
|
rawResponse: _response.rawResponse,
|
|
416
416
|
});
|
|
417
417
|
case "timeout":
|
|
418
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_rate_sheets/{id}.");
|
|
418
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_rate_sheets/v1/{id}.");
|
|
419
419
|
case "unknown":
|
|
420
420
|
throw new errors.ChrtError({
|
|
421
421
|
message: _response.error.errorMessage,
|