@chrt-inc/typescript-sdk 1.282.0 → 1.288.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 +15 -15
- package/dist/cjs/api/resources/orders/client/Client.js +30 -30
- 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 +2 -2
- package/dist/cjs/api/resources/root/client/Client.js +2 -2
- 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/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/CreateConnectAccountRes.d.ts +6 -0
- package/dist/cjs/api/types/CreateConnectAccountRes.js +5 -0
- package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingCargoByDriverDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingWebhookResponse.d.ts +7 -0
- package/dist/cjs/api/types/TrackingWebhookResponse.js +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -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 +15 -15
- package/dist/esm/api/resources/orders/client/Client.mjs +30 -30
- 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 +2 -2
- package/dist/esm/api/resources/root/client/Client.mjs +2 -2
- 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/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/CreateConnectAccountRes.d.mts +6 -0
- package/dist/esm/api/types/CreateConnectAccountRes.mjs +4 -0
- package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/TrackingCargoByDriverDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.mts +1 -0
- package/dist/esm/api/types/TrackingWebhookResponse.d.mts +7 -0
- package/dist/esm/api/types/TrackingWebhookResponse.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +434 -436
- 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
|
@@ -84,17 +84,17 @@ class ShipperPayCourierLineItemGroups {
|
|
|
84
84
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
87
|
+
* await client.shipperPayCourierLineItemGroups.getByIdV1("id")
|
|
88
88
|
*/
|
|
89
|
-
|
|
90
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
89
|
+
getByIdV1(id, requestOptions) {
|
|
90
|
+
return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
__getByIdV1(id, requestOptions) {
|
|
93
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
94
|
var _a, _b, _c, _d;
|
|
95
95
|
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);
|
|
96
96
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
97
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_line_item_groups/${encodeURIComponent(id)}`),
|
|
97
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `oort/shipper_pay_courier_line_item_groups/v1/${encodeURIComponent(id)}`),
|
|
98
98
|
method: "GET",
|
|
99
99
|
headers: _headers,
|
|
100
100
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -125,7 +125,7 @@ class ShipperPayCourierLineItemGroups {
|
|
|
125
125
|
rawResponse: _response.rawResponse,
|
|
126
126
|
});
|
|
127
127
|
case "timeout":
|
|
128
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/{id}.");
|
|
128
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/v1/{id}.");
|
|
129
129
|
case "unknown":
|
|
130
130
|
throw new errors.ChrtError({
|
|
131
131
|
message: _response.error.errorMessage,
|
|
@@ -135,7 +135,7 @@ class ShipperPayCourierLineItemGroups {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
* Deletes a shipper pay courier line item group by its ID.
|
|
138
|
+
* Deletes a shipper pay courier line item group by its ID if not referenced by any payment.
|
|
139
139
|
*
|
|
140
140
|
* @param {string} id
|
|
141
141
|
* @param {ShipperPayCourierLineItemGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -143,17 +143,17 @@ class ShipperPayCourierLineItemGroups {
|
|
|
143
143
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
144
144
|
*
|
|
145
145
|
* @example
|
|
146
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
146
|
+
* await client.shipperPayCourierLineItemGroups.deleteByIdV1("id")
|
|
147
147
|
*/
|
|
148
|
-
|
|
149
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
148
|
+
deleteByIdV1(id, requestOptions) {
|
|
149
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteByIdV1(id, requestOptions));
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
__deleteByIdV1(id, requestOptions) {
|
|
152
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
153
|
var _a, _b, _c, _d;
|
|
154
154
|
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);
|
|
155
155
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
156
|
-
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_line_item_groups/${encodeURIComponent(id)}`),
|
|
156
|
+
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_line_item_groups/v1/${encodeURIComponent(id)}`),
|
|
157
157
|
method: "DELETE",
|
|
158
158
|
headers: _headers,
|
|
159
159
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -184,7 +184,7 @@ class ShipperPayCourierLineItemGroups {
|
|
|
184
184
|
rawResponse: _response.rawResponse,
|
|
185
185
|
});
|
|
186
186
|
case "timeout":
|
|
187
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_pay_courier_line_item_groups/{id}.");
|
|
187
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_pay_courier_line_item_groups/v1/{id}.");
|
|
188
188
|
case "unknown":
|
|
189
189
|
throw new errors.ChrtError({
|
|
190
190
|
message: _response.error.errorMessage,
|
|
@@ -202,17 +202,17 @@ class ShipperPayCourierLineItemGroups {
|
|
|
202
202
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
203
203
|
*
|
|
204
204
|
* @example
|
|
205
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
205
|
+
* await client.shipperPayCourierLineItemGroups.byTaskGroupIdV1("task_group_id")
|
|
206
206
|
*/
|
|
207
|
-
|
|
208
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
207
|
+
byTaskGroupIdV1(taskGroupId, requestOptions) {
|
|
208
|
+
return core.HttpResponsePromise.fromPromise(this.__byTaskGroupIdV1(taskGroupId, requestOptions));
|
|
209
209
|
}
|
|
210
|
-
|
|
210
|
+
__byTaskGroupIdV1(taskGroupId, requestOptions) {
|
|
211
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
212
212
|
var _a, _b, _c, _d;
|
|
213
213
|
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);
|
|
214
214
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
215
|
-
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_line_item_groups/by_task_group/${encodeURIComponent(taskGroupId)}`),
|
|
215
|
+
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_line_item_groups/by_task_group/v1/${encodeURIComponent(taskGroupId)}`),
|
|
216
216
|
method: "GET",
|
|
217
217
|
headers: _headers,
|
|
218
218
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -243,7 +243,7 @@ class ShipperPayCourierLineItemGroups {
|
|
|
243
243
|
rawResponse: _response.rawResponse,
|
|
244
244
|
});
|
|
245
245
|
case "timeout":
|
|
246
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/by_task_group/{task_group_id}.");
|
|
246
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/by_task_group/v1/{task_group_id}.");
|
|
247
247
|
case "unknown":
|
|
248
248
|
throw new errors.ChrtError({
|
|
249
249
|
message: _response.error.errorMessage,
|
|
@@ -261,20 +261,20 @@ class ShipperPayCourierLineItemGroups {
|
|
|
261
261
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
262
262
|
*
|
|
263
263
|
* @example
|
|
264
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
264
|
+
* await client.shipperPayCourierLineItemGroups.previewV1({
|
|
265
265
|
* shipper_pay_courier_rate_sheet_id: "shipper_pay_courier_rate_sheet_id",
|
|
266
266
|
* task_group_id: "task_group_id"
|
|
267
267
|
* })
|
|
268
268
|
*/
|
|
269
|
-
|
|
270
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
269
|
+
previewV1(request, requestOptions) {
|
|
270
|
+
return core.HttpResponsePromise.fromPromise(this.__previewV1(request, requestOptions));
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
__previewV1(request, requestOptions) {
|
|
273
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
274
|
var _a, _b, _c, _d;
|
|
275
275
|
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);
|
|
276
276
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
277
|
-
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_line_item_groups/preview"),
|
|
277
|
+
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_line_item_groups/preview/v1"),
|
|
278
278
|
method: "POST",
|
|
279
279
|
headers: _headers,
|
|
280
280
|
contentType: "application/json",
|
|
@@ -311,7 +311,7 @@ class ShipperPayCourierLineItemGroups {
|
|
|
311
311
|
rawResponse: _response.rawResponse,
|
|
312
312
|
});
|
|
313
313
|
case "timeout":
|
|
314
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_pay_courier_line_item_groups/preview.");
|
|
314
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_pay_courier_line_item_groups/preview/v1.");
|
|
315
315
|
case "unknown":
|
|
316
316
|
throw new errors.ChrtError({
|
|
317
317
|
message: _response.error.errorMessage,
|
|
@@ -329,20 +329,20 @@ class ShipperPayCourierLineItemGroups {
|
|
|
329
329
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
330
330
|
*
|
|
331
331
|
* @example
|
|
332
|
-
* await client.shipperPayCourierLineItemGroups.
|
|
332
|
+
* await client.shipperPayCourierLineItemGroups.createV1({
|
|
333
333
|
* shipper_pay_courier_rate_sheet_id: "shipper_pay_courier_rate_sheet_id",
|
|
334
334
|
* task_group_id: "task_group_id"
|
|
335
335
|
* })
|
|
336
336
|
*/
|
|
337
|
-
|
|
338
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
337
|
+
createV1(request, requestOptions) {
|
|
338
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
__createV1(request, requestOptions) {
|
|
341
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
342
342
|
var _a, _b, _c, _d;
|
|
343
343
|
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);
|
|
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/shipper_pay_courier_line_item_groups/create"),
|
|
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/shipper_pay_courier_line_item_groups/create/v1"),
|
|
346
346
|
method: "POST",
|
|
347
347
|
headers: _headers,
|
|
348
348
|
contentType: "application/json",
|
|
@@ -376,7 +376,7 @@ class ShipperPayCourierLineItemGroups {
|
|
|
376
376
|
rawResponse: _response.rawResponse,
|
|
377
377
|
});
|
|
378
378
|
case "timeout":
|
|
379
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_pay_courier_line_item_groups/create.");
|
|
379
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_pay_courier_line_item_groups/create/v1.");
|
|
380
380
|
case "unknown":
|
|
381
381
|
throw new errors.ChrtError({
|
|
382
382
|
message: _response.error.errorMessage,
|
|
@@ -40,7 +40,7 @@ export declare class AddLineItems {
|
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shipperPayCourierLineItemGroups.addLineItems.
|
|
43
|
+
* await client.shipperPayCourierLineItemGroups.addLineItems.byIdV1("id", {
|
|
44
44
|
* line_items: [{
|
|
45
45
|
* schema_version: 1,
|
|
46
46
|
* item: "base_rate",
|
|
@@ -49,7 +49,7 @@ export declare class AddLineItems {
|
|
|
49
49
|
* }]
|
|
50
50
|
* })
|
|
51
51
|
*/
|
|
52
|
-
|
|
53
|
-
private
|
|
52
|
+
byIdV1(id: string, request: Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupAddLineItemsReq, requestOptions?: AddLineItems.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
53
|
+
private __byIdV1;
|
|
54
54
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
55
55
|
}
|
|
@@ -65,7 +65,7 @@ class AddLineItems {
|
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.shipperPayCourierLineItemGroups.addLineItems.
|
|
68
|
+
* await client.shipperPayCourierLineItemGroups.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/shipper_pay_courier_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/shipper_pay_courier_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/shipper_pay_courier_line_item_groups/add_line_items/{id}.");
|
|
119
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/shipper_pay_courier_line_item_groups/add_line_items/v1/{id}.");
|
|
120
120
|
case "unknown":
|
|
121
121
|
throw new errors.ChrtError({
|
|
122
122
|
message: _response.error.errorMessage,
|
package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts
CHANGED
|
@@ -36,9 +36,9 @@ export declare class Courier {
|
|
|
36
36
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.shipperPayCourierLineItemGroups.courier.
|
|
39
|
+
* await client.shipperPayCourierLineItemGroups.courier.listV1()
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
41
|
+
listV1(requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1[]>;
|
|
42
|
+
private __listV1;
|
|
43
43
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
44
44
|
}
|
package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js
CHANGED
|
@@ -60,17 +60,17 @@ class Courier {
|
|
|
60
60
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.shipperPayCourierLineItemGroups.courier.
|
|
63
|
+
* await client.shipperPayCourierLineItemGroups.courier.listV1()
|
|
64
64
|
*/
|
|
65
|
-
|
|
66
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
65
|
+
listV1(requestOptions) {
|
|
66
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
__listV1(requestOptions) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
var _a, _b, _c, _d;
|
|
71
71
|
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);
|
|
72
72
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
73
|
-
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_line_item_groups/courier/list"),
|
|
73
|
+
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_line_item_groups/courier/list/v1"),
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: _headers,
|
|
76
76
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -99,7 +99,7 @@ class Courier {
|
|
|
99
99
|
rawResponse: _response.rawResponse,
|
|
100
100
|
});
|
|
101
101
|
case "timeout":
|
|
102
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/courier/list.");
|
|
102
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/courier/list/v1.");
|
|
103
103
|
case "unknown":
|
|
104
104
|
throw new errors.ChrtError({
|
|
105
105
|
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 shipper pay courier line item group by
|
|
34
|
+
* Removes specific line items from a shipper pay courier line item group by their UUID identifiers.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} id
|
|
37
37
|
* @param {Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupRemoveLineItemsReq} request
|
|
@@ -40,11 +40,11 @@ export declare class RemoveLineItems {
|
|
|
40
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.shipperPayCourierLineItemGroups.removeLineItems.
|
|
43
|
+
* await client.shipperPayCourierLineItemGroups.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.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupRemoveLineItemsReq, requestOptions?: RemoveLineItems.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
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 shipper pay courier line item group by
|
|
59
|
+
* Removes specific line items from a shipper pay courier line item group by their UUID identifiers.
|
|
60
60
|
*
|
|
61
61
|
* @param {string} id
|
|
62
62
|
* @param {Chrt.shipperPayCourierLineItemGroups.ShipperPayCourierLineItemGroupRemoveLineItemsReq} request
|
|
@@ -65,19 +65,19 @@ class RemoveLineItems {
|
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.shipperPayCourierLineItemGroups.removeLineItems.
|
|
68
|
+
* await client.shipperPayCourierLineItemGroups.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/shipper_pay_courier_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/shipper_pay_courier_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/shipper_pay_courier_line_item_groups/remove_line_items/{id}.");
|
|
114
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/shipper_pay_courier_line_item_groups/remove_line_items/v1/{id}.");
|
|
115
115
|
case "unknown":
|
|
116
116
|
throw new errors.ChrtError({
|
|
117
117
|
message: _response.error.errorMessage,
|
package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts
CHANGED
|
@@ -36,10 +36,10 @@ export declare class Shipper {
|
|
|
36
36
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.shipperPayCourierLineItemGroups.shipper.
|
|
39
|
+
* await client.shipperPayCourierLineItemGroups.shipper.listV1()
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
41
|
+
listV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1[]>;
|
|
42
|
+
private __listV1;
|
|
43
43
|
/**
|
|
44
44
|
* Retrieves a shipper pay courier line item group by its ID for the authenticated shipper organization.
|
|
45
45
|
*
|
|
@@ -49,10 +49,10 @@ export declare class Shipper {
|
|
|
49
49
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* await client.shipperPayCourierLineItemGroups.shipper.
|
|
52
|
+
* await client.shipperPayCourierLineItemGroups.shipper.getByIdV1("id")
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
private
|
|
54
|
+
getByIdV1(id: string, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
55
|
+
private __getByIdV1;
|
|
56
56
|
/**
|
|
57
57
|
* Retrieves a shipper pay courier line item group by its associated task group ID for the authenticated shipper organization.
|
|
58
58
|
*
|
|
@@ -62,9 +62,9 @@ export declare class Shipper {
|
|
|
62
62
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.shipperPayCourierLineItemGroups.shipper.
|
|
65
|
+
* await client.shipperPayCourierLineItemGroups.shipper.byTaskGroupIdV1("task_group_id")
|
|
66
66
|
*/
|
|
67
|
-
|
|
68
|
-
private
|
|
67
|
+
byTaskGroupIdV1(taskGroupId: string, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierLineItemGroup1>;
|
|
68
|
+
private __byTaskGroupIdV1;
|
|
69
69
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
70
70
|
}
|
package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js
CHANGED
|
@@ -61,17 +61,17 @@ class Shipper {
|
|
|
61
61
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.shipperPayCourierLineItemGroups.shipper.
|
|
64
|
+
* await client.shipperPayCourierLineItemGroups.shipper.listV1()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
listV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
__listV1(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/shipper_pay_courier_line_item_groups/shipper/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/shipper_pay_courier_line_item_groups/shipper/list/v1"),
|
|
75
75
|
method: "GET",
|
|
76
76
|
headers: _headers,
|
|
77
77
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -100,7 +100,7 @@ class Shipper {
|
|
|
100
100
|
rawResponse: _response.rawResponse,
|
|
101
101
|
});
|
|
102
102
|
case "timeout":
|
|
103
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/shipper/list.");
|
|
103
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/shipper/list/v1.");
|
|
104
104
|
case "unknown":
|
|
105
105
|
throw new errors.ChrtError({
|
|
106
106
|
message: _response.error.errorMessage,
|
|
@@ -118,17 +118,17 @@ class Shipper {
|
|
|
118
118
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
119
119
|
*
|
|
120
120
|
* @example
|
|
121
|
-
* await client.shipperPayCourierLineItemGroups.shipper.
|
|
121
|
+
* await client.shipperPayCourierLineItemGroups.shipper.getByIdV1("id")
|
|
122
122
|
*/
|
|
123
|
-
|
|
124
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
123
|
+
getByIdV1(id, requestOptions) {
|
|
124
|
+
return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
__getByIdV1(id, requestOptions) {
|
|
127
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
128
|
var _a, _b, _c, _d;
|
|
129
129
|
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);
|
|
130
130
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
131
|
-
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_line_item_groups/shipper/${encodeURIComponent(id)}`),
|
|
131
|
+
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_line_item_groups/shipper/v1/${encodeURIComponent(id)}`),
|
|
132
132
|
method: "GET",
|
|
133
133
|
headers: _headers,
|
|
134
134
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -159,7 +159,7 @@ class Shipper {
|
|
|
159
159
|
rawResponse: _response.rawResponse,
|
|
160
160
|
});
|
|
161
161
|
case "timeout":
|
|
162
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/shipper/{id}.");
|
|
162
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/shipper/v1/{id}.");
|
|
163
163
|
case "unknown":
|
|
164
164
|
throw new errors.ChrtError({
|
|
165
165
|
message: _response.error.errorMessage,
|
|
@@ -177,17 +177,17 @@ class Shipper {
|
|
|
177
177
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
178
178
|
*
|
|
179
179
|
* @example
|
|
180
|
-
* await client.shipperPayCourierLineItemGroups.shipper.
|
|
180
|
+
* await client.shipperPayCourierLineItemGroups.shipper.byTaskGroupIdV1("task_group_id")
|
|
181
181
|
*/
|
|
182
|
-
|
|
183
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
182
|
+
byTaskGroupIdV1(taskGroupId, requestOptions) {
|
|
183
|
+
return core.HttpResponsePromise.fromPromise(this.__byTaskGroupIdV1(taskGroupId, requestOptions));
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
__byTaskGroupIdV1(taskGroupId, requestOptions) {
|
|
186
186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
187
|
var _a, _b, _c, _d;
|
|
188
188
|
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);
|
|
189
189
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
190
|
-
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_line_item_groups/shipper/by_task_group/${encodeURIComponent(taskGroupId)}`),
|
|
190
|
+
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_line_item_groups/shipper/by_task_group/v1/${encodeURIComponent(taskGroupId)}`),
|
|
191
191
|
method: "GET",
|
|
192
192
|
headers: _headers,
|
|
193
193
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -218,7 +218,7 @@ class Shipper {
|
|
|
218
218
|
rawResponse: _response.rawResponse,
|
|
219
219
|
});
|
|
220
220
|
case "timeout":
|
|
221
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/shipper/by_task_group/{task_group_id}.");
|
|
221
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_pay_courier_line_item_groups/shipper/by_task_group/v1/{task_group_id}.");
|
|
222
222
|
case "unknown":
|
|
223
223
|
throw new errors.ChrtError({
|
|
224
224
|
message: _response.error.errorMessage,
|
|
@@ -31,7 +31,7 @@ export declare class ShipperPayCourierPayments {
|
|
|
31
31
|
protected readonly _options: ShipperPayCourierPayments.Options;
|
|
32
32
|
constructor(_options?: ShipperPayCourierPayments.Options);
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Retrieves a shipper pay courier payment by its ID with Stripe invoice sync.
|
|
35
35
|
*
|
|
36
36
|
* @param {string} shipperPayCourierPaymentId
|
|
37
37
|
* @param {ShipperPayCourierPayments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -39,12 +39,12 @@ export declare class ShipperPayCourierPayments {
|
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.shipperPayCourierPayments.
|
|
42
|
+
* await client.shipperPayCourierPayments.getByIdV1("shipper_pay_courier_payment_id")
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
private
|
|
44
|
+
getByIdV1(shipperPayCourierPaymentId: string, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierPayment1>;
|
|
45
|
+
private __getByIdV1;
|
|
46
46
|
/**
|
|
47
|
-
* Deletes a shipper-to-courier payment record
|
|
47
|
+
* Deletes a shipper-to-courier payment record if invoice not yet created.
|
|
48
48
|
*
|
|
49
49
|
* @param {string} shipperPayCourierPaymentId
|
|
50
50
|
* @param {ShipperPayCourierPayments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -52,12 +52,12 @@ export declare class ShipperPayCourierPayments {
|
|
|
52
52
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
|
-
* await client.shipperPayCourierPayments.
|
|
55
|
+
* await client.shipperPayCourierPayments.deleteV1("shipper_pay_courier_payment_id")
|
|
56
56
|
*/
|
|
57
|
-
|
|
58
|
-
private
|
|
57
|
+
deleteV1(shipperPayCourierPaymentId: string, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
58
|
+
private __deleteV1;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Retrieves a shipper pay courier payment by order ID or short ID with Stripe invoice sync.
|
|
61
61
|
*
|
|
62
62
|
* @param {string} orderIdOrShortId
|
|
63
63
|
* @param {ShipperPayCourierPayments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,12 +65,12 @@ export declare class ShipperPayCourierPayments {
|
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.shipperPayCourierPayments.
|
|
68
|
+
* await client.shipperPayCourierPayments.getByOrderIdOrShortIdV1("order_id_or_short_id")
|
|
69
69
|
*/
|
|
70
|
-
|
|
71
|
-
private
|
|
70
|
+
getByOrderIdOrShortIdV1(orderIdOrShortId: string, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.ShipperPayCourierPayment1>;
|
|
71
|
+
private __getByOrderIdOrShortIdV1;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Lists shipper pay courier payments by shipper org ID with status filtering and Stripe sync.
|
|
74
74
|
*
|
|
75
75
|
* @param {Chrt.ListPaymentsByShipperReq} request
|
|
76
76
|
* @param {ShipperPayCourierPayments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -78,14 +78,14 @@ export declare class ShipperPayCourierPayments {
|
|
|
78
78
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
|
-
* await client.shipperPayCourierPayments.
|
|
81
|
+
* await client.shipperPayCourierPayments.listByShipperOrgIdV1({
|
|
82
82
|
* statuses: ["invoice_not_yet_created"]
|
|
83
83
|
* })
|
|
84
84
|
*/
|
|
85
|
-
|
|
86
|
-
private
|
|
85
|
+
listByShipperOrgIdV1(request: Chrt.ListPaymentsByShipperReq, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.GetShipperPayCourierPaymentsForShipperRes>;
|
|
86
|
+
private __listByShipperOrgIdV1;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Lists shipper pay courier payments by courier org ID with status filtering and Stripe sync.
|
|
89
89
|
*
|
|
90
90
|
* @param {Chrt.ListPaymentsByCourierReq} request
|
|
91
91
|
* @param {ShipperPayCourierPayments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -93,14 +93,14 @@ export declare class ShipperPayCourierPayments {
|
|
|
93
93
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
|
-
* await client.shipperPayCourierPayments.
|
|
96
|
+
* await client.shipperPayCourierPayments.listByCourierOrgIdV1({
|
|
97
97
|
* statuses: ["invoice_not_yet_created"]
|
|
98
98
|
* })
|
|
99
99
|
*/
|
|
100
|
-
|
|
101
|
-
private
|
|
100
|
+
listByCourierOrgIdV1(request: Chrt.ListPaymentsByCourierReq, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.GetShipperPayCourierPaymentsForShipperRes>;
|
|
101
|
+
private __listByCourierOrgIdV1;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Creates a shipper-to-courier payment record based on all task groups in an order.
|
|
104
104
|
*
|
|
105
105
|
* @param {Chrt.CreateShipperPayCourierPaymentReq} request
|
|
106
106
|
* @param {ShipperPayCourierPayments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -108,14 +108,14 @@ export declare class ShipperPayCourierPayments {
|
|
|
108
108
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
|
-
* await client.shipperPayCourierPayments.
|
|
111
|
+
* await client.shipperPayCourierPayments.createV1({
|
|
112
112
|
* order_id_or_short_id: "order_id_or_short_id"
|
|
113
113
|
* })
|
|
114
114
|
*/
|
|
115
|
-
|
|
116
|
-
private
|
|
115
|
+
createV1(request: Chrt.CreateShipperPayCourierPaymentReq, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<string>;
|
|
116
|
+
private __createV1;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Previews a shipper-to-courier payment showing task groups, line item groups, total amount, and readiness status.
|
|
119
119
|
*
|
|
120
120
|
* @param {Chrt.CreateShipperPayCourierPaymentReq} request
|
|
121
121
|
* @param {ShipperPayCourierPayments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -123,11 +123,11 @@ export declare class ShipperPayCourierPayments {
|
|
|
123
123
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
|
-
* await client.shipperPayCourierPayments.
|
|
126
|
+
* await client.shipperPayCourierPayments.previewV1({
|
|
127
127
|
* order_id_or_short_id: "order_id_or_short_id"
|
|
128
128
|
* })
|
|
129
129
|
*/
|
|
130
|
-
|
|
131
|
-
private
|
|
130
|
+
previewV1(request: Chrt.CreateShipperPayCourierPaymentReq, requestOptions?: ShipperPayCourierPayments.RequestOptions): core.HttpResponsePromise<Chrt.PaymentPreviewResponse>;
|
|
131
|
+
private __previewV1;
|
|
132
132
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
133
133
|
}
|