@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
|
@@ -59,21 +59,21 @@ class Images {
|
|
|
59
59
|
* Uploads an image file to a milestone with automatic blurhash generation.
|
|
60
60
|
*
|
|
61
61
|
* @param {string} milestoneId
|
|
62
|
-
* @param {Chrt.milestones.
|
|
62
|
+
* @param {Chrt.milestones.BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost} request
|
|
63
63
|
* @param {Images.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* import { createReadStream } from "fs";
|
|
69
|
-
* await client.milestones.images.
|
|
69
|
+
* await client.milestones.images.uploadByMilestoneIdV1("milestone_id", {
|
|
70
70
|
* image: fs.createReadStream("/path/to/your/file")
|
|
71
71
|
* })
|
|
72
72
|
*/
|
|
73
|
-
|
|
74
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
73
|
+
uploadByMilestoneIdV1(milestoneId, request, requestOptions) {
|
|
74
|
+
return core.HttpResponsePromise.fromPromise(this.__uploadByMilestoneIdV1(milestoneId, request, requestOptions));
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
__uploadByMilestoneIdV1(milestoneId, request, requestOptions) {
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
var _a, _b, _c, _d;
|
|
79
79
|
const _queryParams = {};
|
|
@@ -85,7 +85,7 @@ class Images {
|
|
|
85
85
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
86
86
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
87
87
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
88
|
-
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/milestones/images/upload/${encodeURIComponent(milestoneId)}`),
|
|
88
|
+
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/milestones/images/upload/v1/${encodeURIComponent(milestoneId)}`),
|
|
89
89
|
method: "POST",
|
|
90
90
|
headers: _headers,
|
|
91
91
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -119,7 +119,7 @@ class Images {
|
|
|
119
119
|
rawResponse: _response.rawResponse,
|
|
120
120
|
});
|
|
121
121
|
case "timeout":
|
|
122
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/milestones/images/upload/{milestone_id}.");
|
|
122
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/milestones/images/upload/v1/{milestone_id}.");
|
|
123
123
|
case "unknown":
|
|
124
124
|
throw new errors.ChrtError({
|
|
125
125
|
message: _response.error.errorMessage,
|
|
@@ -137,17 +137,17 @@ class Images {
|
|
|
137
137
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
138
138
|
*
|
|
139
139
|
* @example
|
|
140
|
-
* await client.milestones.images.
|
|
140
|
+
* await client.milestones.images.deleteByMetadataIdV1("milestone_s3_object_metadata_id")
|
|
141
141
|
*/
|
|
142
|
-
|
|
143
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
142
|
+
deleteByMetadataIdV1(milestoneS3ObjectMetadataId, requestOptions) {
|
|
143
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteByMetadataIdV1(milestoneS3ObjectMetadataId, requestOptions));
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
__deleteByMetadataIdV1(milestoneS3ObjectMetadataId, requestOptions) {
|
|
146
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
147
|
var _a, _b, _c, _d;
|
|
148
148
|
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);
|
|
149
149
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
150
|
-
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/milestones/images/delete/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
|
|
150
|
+
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/milestones/images/delete/v1/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
|
|
151
151
|
method: "DELETE",
|
|
152
152
|
headers: _headers,
|
|
153
153
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -178,7 +178,7 @@ class Images {
|
|
|
178
178
|
rawResponse: _response.rawResponse,
|
|
179
179
|
});
|
|
180
180
|
case "timeout":
|
|
181
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/milestones/images/delete/{milestone_s3_object_metadata_id}.");
|
|
181
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/milestones/images/delete/v1/{milestone_s3_object_metadata_id}.");
|
|
182
182
|
case "unknown":
|
|
183
183
|
throw new errors.ChrtError({
|
|
184
184
|
message: _response.error.errorMessage,
|
|
@@ -191,15 +191,15 @@ class Images {
|
|
|
191
191
|
* Streams a milestone image file from S3 storage.
|
|
192
192
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
193
193
|
*/
|
|
194
|
-
|
|
195
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
194
|
+
getByMetadataIdV1(milestoneS3ObjectMetadataId, requestOptions) {
|
|
195
|
+
return core.HttpResponsePromise.fromPromise(this.__getByMetadataIdV1(milestoneS3ObjectMetadataId, requestOptions));
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
__getByMetadataIdV1(milestoneS3ObjectMetadataId, requestOptions) {
|
|
198
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
199
199
|
var _a, _b, _c, _d;
|
|
200
200
|
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);
|
|
201
201
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
202
|
-
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/milestones/images/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
|
|
202
|
+
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/milestones/images/v1/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
|
|
203
203
|
method: "GET",
|
|
204
204
|
headers: _headers,
|
|
205
205
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -231,7 +231,7 @@ class Images {
|
|
|
231
231
|
rawResponse: _response.rawResponse,
|
|
232
232
|
});
|
|
233
233
|
case "timeout":
|
|
234
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/milestones/images/{milestone_s3_object_metadata_id}.");
|
|
234
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/milestones/images/v1/{milestone_s3_object_metadata_id}.");
|
|
235
235
|
case "unknown":
|
|
236
236
|
throw new errors.ChrtError({
|
|
237
237
|
message: _response.error.errorMessage,
|
|
@@ -8,7 +8,7 @@ import * as core from "../../../../../../../core/index.js";
|
|
|
8
8
|
* image: fs.createReadStream("/path/to/your/file")
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost {
|
|
12
12
|
comments?: string | null;
|
|
13
13
|
image: core.file.Uploadable.FileLike;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost } from "./BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.js";
|
|
@@ -36,10 +36,10 @@ export declare class Courier {
|
|
|
36
36
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.notifications.courier.
|
|
39
|
+
* await client.notifications.courier.getPreferencesV1()
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
41
|
+
getPreferencesV1(requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<Chrt.CourierNotificationPreferences1>;
|
|
42
|
+
private __getPreferencesV1;
|
|
43
43
|
/**
|
|
44
44
|
* Creates or updates notification preferences for the authenticated courier organization.
|
|
45
45
|
*
|
|
@@ -49,11 +49,11 @@ export declare class Courier {
|
|
|
49
49
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* await client.notifications.courier.
|
|
52
|
+
* await client.notifications.courier.upsertPreferencesV1({
|
|
53
53
|
* schema_version: 1
|
|
54
54
|
* })
|
|
55
55
|
*/
|
|
56
|
-
|
|
57
|
-
private
|
|
56
|
+
upsertPreferencesV1(request: Chrt.notifications.CourierNotificationPreferencesClientCreate1, requestOptions?: Courier.RequestOptions): core.HttpResponsePromise<string>;
|
|
57
|
+
private __upsertPreferencesV1;
|
|
58
58
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
59
59
|
}
|
|
@@ -61,17 +61,17 @@ class Courier {
|
|
|
61
61
|
* @param {Courier.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.notifications.courier.
|
|
64
|
+
* await client.notifications.courier.getPreferencesV1()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
getPreferencesV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__getPreferencesV1(requestOptions));
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
__getPreferencesV1(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, "notifications/courier_preferences/"),
|
|
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, "notifications/courier_preferences/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 Courier {
|
|
|
97
97
|
rawResponse: _response.rawResponse,
|
|
98
98
|
});
|
|
99
99
|
case "timeout":
|
|
100
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/courier_preferences
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/courier_preferences/v1.");
|
|
101
101
|
case "unknown":
|
|
102
102
|
throw new errors.ChrtError({
|
|
103
103
|
message: _response.error.errorMessage,
|
|
@@ -115,19 +115,19 @@ class Courier {
|
|
|
115
115
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
118
|
-
* await client.notifications.courier.
|
|
118
|
+
* await client.notifications.courier.upsertPreferencesV1({
|
|
119
119
|
* schema_version: 1
|
|
120
120
|
* })
|
|
121
121
|
*/
|
|
122
|
-
|
|
123
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
122
|
+
upsertPreferencesV1(request, requestOptions) {
|
|
123
|
+
return core.HttpResponsePromise.fromPromise(this.__upsertPreferencesV1(request, requestOptions));
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
__upsertPreferencesV1(request, requestOptions) {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
127
|
var _a, _b, _c, _d;
|
|
128
128
|
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);
|
|
129
129
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
130
|
-
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, "notifications/courier_preferences/upsert"),
|
|
130
|
+
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, "notifications/courier_preferences/upsert/v1"),
|
|
131
131
|
method: "POST",
|
|
132
132
|
headers: _headers,
|
|
133
133
|
contentType: "application/json",
|
|
@@ -161,7 +161,7 @@ class Courier {
|
|
|
161
161
|
rawResponse: _response.rawResponse,
|
|
162
162
|
});
|
|
163
163
|
case "timeout":
|
|
164
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/courier_preferences/upsert.");
|
|
164
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/courier_preferences/upsert/v1.");
|
|
165
165
|
case "unknown":
|
|
166
166
|
throw new errors.ChrtError({
|
|
167
167
|
message: _response.error.errorMessage,
|
|
@@ -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.notifications.shipper.
|
|
39
|
+
* await client.notifications.shipper.getPreferencesV1()
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
41
|
+
getPreferencesV1(requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<Chrt.ShipperNotificationPreferences1>;
|
|
42
|
+
private __getPreferencesV1;
|
|
43
43
|
/**
|
|
44
44
|
* Creates or updates notification preferences for the authenticated shipper organization.
|
|
45
45
|
*
|
|
@@ -49,11 +49,11 @@ export declare class Shipper {
|
|
|
49
49
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* await client.notifications.shipper.
|
|
52
|
+
* await client.notifications.shipper.upsertPreferencesV1({
|
|
53
53
|
* schema_version: 1
|
|
54
54
|
* })
|
|
55
55
|
*/
|
|
56
|
-
|
|
57
|
-
private
|
|
56
|
+
upsertPreferencesV1(request: Chrt.notifications.ShipperNotificationPreferencesClientCreate1, requestOptions?: Shipper.RequestOptions): core.HttpResponsePromise<string>;
|
|
57
|
+
private __upsertPreferencesV1;
|
|
58
58
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
59
59
|
}
|
|
@@ -61,17 +61,17 @@ class Shipper {
|
|
|
61
61
|
* @param {Shipper.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.notifications.shipper.
|
|
64
|
+
* await client.notifications.shipper.getPreferencesV1()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
getPreferencesV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__getPreferencesV1(requestOptions));
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
__getPreferencesV1(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, "notifications/shipper_preferences/"),
|
|
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, "notifications/shipper_preferences/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 Shipper {
|
|
|
97
97
|
rawResponse: _response.rawResponse,
|
|
98
98
|
});
|
|
99
99
|
case "timeout":
|
|
100
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/shipper_preferences
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/shipper_preferences/v1.");
|
|
101
101
|
case "unknown":
|
|
102
102
|
throw new errors.ChrtError({
|
|
103
103
|
message: _response.error.errorMessage,
|
|
@@ -115,19 +115,19 @@ class Shipper {
|
|
|
115
115
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
118
|
-
* await client.notifications.shipper.
|
|
118
|
+
* await client.notifications.shipper.upsertPreferencesV1({
|
|
119
119
|
* schema_version: 1
|
|
120
120
|
* })
|
|
121
121
|
*/
|
|
122
|
-
|
|
123
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
122
|
+
upsertPreferencesV1(request, requestOptions) {
|
|
123
|
+
return core.HttpResponsePromise.fromPromise(this.__upsertPreferencesV1(request, requestOptions));
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
__upsertPreferencesV1(request, requestOptions) {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
127
|
var _a, _b, _c, _d;
|
|
128
128
|
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);
|
|
129
129
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
130
|
-
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, "notifications/shipper_preferences/upsert"),
|
|
130
|
+
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, "notifications/shipper_preferences/upsert/v1"),
|
|
131
131
|
method: "POST",
|
|
132
132
|
headers: _headers,
|
|
133
133
|
contentType: "application/json",
|
|
@@ -161,7 +161,7 @@ class Shipper {
|
|
|
161
161
|
rawResponse: _response.rawResponse,
|
|
162
162
|
});
|
|
163
163
|
case "timeout":
|
|
164
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/shipper_preferences/upsert.");
|
|
164
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/shipper_preferences/upsert/v1.");
|
|
165
165
|
case "unknown":
|
|
166
166
|
throw new errors.ChrtError({
|
|
167
167
|
message: _response.error.errorMessage,
|
|
@@ -39,23 +39,23 @@ export declare class OffChrtShipperOrgInfo {
|
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.offChrtShipperOrgInfo.
|
|
42
|
+
* await client.offChrtShipperOrgInfo.createV1({
|
|
43
43
|
* schema_version: 1,
|
|
44
44
|
* email_address_primary: "email_address_primary"
|
|
45
45
|
* })
|
|
46
46
|
*/
|
|
47
|
-
|
|
48
|
-
private
|
|
47
|
+
createV1(request: Chrt.OffChrtShipperOrgInfoClientCreate1, requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<string>;
|
|
48
|
+
private __createV1;
|
|
49
49
|
/**
|
|
50
50
|
* Lists all off-platform shipper connections created by the authenticated organization.
|
|
51
51
|
*
|
|
52
52
|
* @param {OffChrtShipperOrgInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
|
-
* await client.offChrtShipperOrgInfo.
|
|
55
|
+
* await client.offChrtShipperOrgInfo.listV1()
|
|
56
56
|
*/
|
|
57
|
-
|
|
58
|
-
private
|
|
57
|
+
listV1(requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgInfo1[]>;
|
|
58
|
+
private __listV1;
|
|
59
59
|
/**
|
|
60
60
|
* Retrieves specific off-platform shipper connection information by ID.
|
|
61
61
|
*
|
|
@@ -65,10 +65,10 @@ export declare class OffChrtShipperOrgInfo {
|
|
|
65
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.offChrtShipperOrgInfo.
|
|
68
|
+
* await client.offChrtShipperOrgInfo.getByIdV1("id")
|
|
69
69
|
*/
|
|
70
|
-
|
|
71
|
-
private
|
|
70
|
+
getByIdV1(id: string, requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<Chrt.OffChrtShipperOrgInfo1>;
|
|
71
|
+
private __getByIdV1;
|
|
72
72
|
/**
|
|
73
73
|
* Deletes off-platform shipper connection information owned by the authenticated organization.
|
|
74
74
|
*
|
|
@@ -78,10 +78,10 @@ export declare class OffChrtShipperOrgInfo {
|
|
|
78
78
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
|
-
* await client.offChrtShipperOrgInfo.
|
|
81
|
+
* await client.offChrtShipperOrgInfo.deleteByIdV1("id")
|
|
82
82
|
*/
|
|
83
|
-
|
|
84
|
-
private
|
|
83
|
+
deleteByIdV1(id: string, requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
84
|
+
private __deleteByIdV1;
|
|
85
85
|
/**
|
|
86
86
|
* Updates existing off-platform shipper connection information owned by the authenticated organization.
|
|
87
87
|
*
|
|
@@ -92,9 +92,9 @@ export declare class OffChrtShipperOrgInfo {
|
|
|
92
92
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
|
-
* await client.offChrtShipperOrgInfo.
|
|
95
|
+
* await client.offChrtShipperOrgInfo.updateByIdV1("id")
|
|
96
96
|
*/
|
|
97
|
-
|
|
98
|
-
private
|
|
97
|
+
updateByIdV1(id: string, request?: Chrt.OffChrtShipperOrgInfoClientUpdate1, requestOptions?: OffChrtShipperOrgInfo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
98
|
+
private __updateByIdV1;
|
|
99
99
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
100
100
|
}
|
|
@@ -64,20 +64,20 @@ class OffChrtShipperOrgInfo {
|
|
|
64
64
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.offChrtShipperOrgInfo.
|
|
67
|
+
* await client.offChrtShipperOrgInfo.createV1({
|
|
68
68
|
* schema_version: 1,
|
|
69
69
|
* email_address_primary: "email_address_primary"
|
|
70
70
|
* })
|
|
71
71
|
*/
|
|
72
|
-
|
|
73
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
72
|
+
createV1(request, requestOptions) {
|
|
73
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
__createV1(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/off_chrt_shipper_org_info/create"),
|
|
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/off_chrt_shipper_org_info/create/v1"),
|
|
81
81
|
method: "POST",
|
|
82
82
|
headers: _headers,
|
|
83
83
|
contentType: "application/json",
|
|
@@ -111,7 +111,7 @@ class OffChrtShipperOrgInfo {
|
|
|
111
111
|
rawResponse: _response.rawResponse,
|
|
112
112
|
});
|
|
113
113
|
case "timeout":
|
|
114
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/off_chrt_shipper_org_info/create.");
|
|
114
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/off_chrt_shipper_org_info/create/v1.");
|
|
115
115
|
case "unknown":
|
|
116
116
|
throw new errors.ChrtError({
|
|
117
117
|
message: _response.error.errorMessage,
|
|
@@ -126,17 +126,17 @@ class OffChrtShipperOrgInfo {
|
|
|
126
126
|
* @param {OffChrtShipperOrgInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
127
|
*
|
|
128
128
|
* @example
|
|
129
|
-
* await client.offChrtShipperOrgInfo.
|
|
129
|
+
* await client.offChrtShipperOrgInfo.listV1()
|
|
130
130
|
*/
|
|
131
|
-
|
|
132
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
131
|
+
listV1(requestOptions) {
|
|
132
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
__listV1(requestOptions) {
|
|
135
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
136
|
var _a, _b, _c, _d;
|
|
137
137
|
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);
|
|
138
138
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
139
|
-
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/off_chrt_shipper_org_info/list"),
|
|
139
|
+
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/off_chrt_shipper_org_info/list/v1"),
|
|
140
140
|
method: "GET",
|
|
141
141
|
headers: _headers,
|
|
142
142
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -162,7 +162,7 @@ class OffChrtShipperOrgInfo {
|
|
|
162
162
|
rawResponse: _response.rawResponse,
|
|
163
163
|
});
|
|
164
164
|
case "timeout":
|
|
165
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/off_chrt_shipper_org_info/list.");
|
|
165
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/off_chrt_shipper_org_info/list/v1.");
|
|
166
166
|
case "unknown":
|
|
167
167
|
throw new errors.ChrtError({
|
|
168
168
|
message: _response.error.errorMessage,
|
|
@@ -180,17 +180,17 @@ class OffChrtShipperOrgInfo {
|
|
|
180
180
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
181
181
|
*
|
|
182
182
|
* @example
|
|
183
|
-
* await client.offChrtShipperOrgInfo.
|
|
183
|
+
* await client.offChrtShipperOrgInfo.getByIdV1("id")
|
|
184
184
|
*/
|
|
185
|
-
|
|
186
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
185
|
+
getByIdV1(id, requestOptions) {
|
|
186
|
+
return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
__getByIdV1(id, requestOptions) {
|
|
189
189
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
190
|
var _a, _b, _c, _d;
|
|
191
191
|
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);
|
|
192
192
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
193
|
-
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/off_chrt_shipper_org_info/${encodeURIComponent(id)}`),
|
|
193
|
+
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/off_chrt_shipper_org_info/v1/${encodeURIComponent(id)}`),
|
|
194
194
|
method: "GET",
|
|
195
195
|
headers: _headers,
|
|
196
196
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -221,7 +221,7 @@ class OffChrtShipperOrgInfo {
|
|
|
221
221
|
rawResponse: _response.rawResponse,
|
|
222
222
|
});
|
|
223
223
|
case "timeout":
|
|
224
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/off_chrt_shipper_org_info/{id}.");
|
|
224
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/off_chrt_shipper_org_info/v1/{id}.");
|
|
225
225
|
case "unknown":
|
|
226
226
|
throw new errors.ChrtError({
|
|
227
227
|
message: _response.error.errorMessage,
|
|
@@ -239,17 +239,17 @@ class OffChrtShipperOrgInfo {
|
|
|
239
239
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
240
240
|
*
|
|
241
241
|
* @example
|
|
242
|
-
* await client.offChrtShipperOrgInfo.
|
|
242
|
+
* await client.offChrtShipperOrgInfo.deleteByIdV1("id")
|
|
243
243
|
*/
|
|
244
|
-
|
|
245
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
244
|
+
deleteByIdV1(id, requestOptions) {
|
|
245
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteByIdV1(id, requestOptions));
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
__deleteByIdV1(id, requestOptions) {
|
|
248
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
249
249
|
var _a, _b, _c, _d;
|
|
250
250
|
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);
|
|
251
251
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
252
|
-
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/off_chrt_shipper_org_info/${encodeURIComponent(id)}`),
|
|
252
|
+
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/off_chrt_shipper_org_info/v1/${encodeURIComponent(id)}`),
|
|
253
253
|
method: "DELETE",
|
|
254
254
|
headers: _headers,
|
|
255
255
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -280,7 +280,7 @@ class OffChrtShipperOrgInfo {
|
|
|
280
280
|
rawResponse: _response.rawResponse,
|
|
281
281
|
});
|
|
282
282
|
case "timeout":
|
|
283
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/off_chrt_shipper_org_info/{id}.");
|
|
283
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/off_chrt_shipper_org_info/v1/{id}.");
|
|
284
284
|
case "unknown":
|
|
285
285
|
throw new errors.ChrtError({
|
|
286
286
|
message: _response.error.errorMessage,
|
|
@@ -299,17 +299,17 @@ class OffChrtShipperOrgInfo {
|
|
|
299
299
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
300
300
|
*
|
|
301
301
|
* @example
|
|
302
|
-
* await client.offChrtShipperOrgInfo.
|
|
302
|
+
* await client.offChrtShipperOrgInfo.updateByIdV1("id")
|
|
303
303
|
*/
|
|
304
|
-
|
|
305
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
304
|
+
updateByIdV1(id, request = {}, requestOptions) {
|
|
305
|
+
return core.HttpResponsePromise.fromPromise(this.__updateByIdV1(id, request, requestOptions));
|
|
306
306
|
}
|
|
307
|
-
|
|
307
|
+
__updateByIdV1(id_1) {
|
|
308
308
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
309
309
|
var _a, _b, _c, _d;
|
|
310
310
|
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);
|
|
311
311
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
312
|
-
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/off_chrt_shipper_org_info/${encodeURIComponent(id)}`),
|
|
312
|
+
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/off_chrt_shipper_org_info/v1/${encodeURIComponent(id)}`),
|
|
313
313
|
method: "PATCH",
|
|
314
314
|
headers: _headers,
|
|
315
315
|
contentType: "application/json",
|
|
@@ -343,7 +343,7 @@ class OffChrtShipperOrgInfo {
|
|
|
343
343
|
rawResponse: _response.rawResponse,
|
|
344
344
|
});
|
|
345
345
|
case "timeout":
|
|
346
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/off_chrt_shipper_org_info/{id}.");
|
|
346
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/off_chrt_shipper_org_info/v1/{id}.");
|
|
347
347
|
case "unknown":
|
|
348
348
|
throw new errors.ChrtError({
|
|
349
349
|
message: _response.error.errorMessage,
|
|
@@ -42,10 +42,10 @@ export declare class Orders {
|
|
|
42
42
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.orders.
|
|
45
|
+
* await client.orders.getByOrderIdOrShortIdV1("order_id_or_short_id")
|
|
46
46
|
*/
|
|
47
|
-
|
|
48
|
-
private
|
|
47
|
+
getByOrderIdOrShortIdV1(orderIdOrShortId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderRes>;
|
|
48
|
+
private __getByOrderIdOrShortIdV1;
|
|
49
49
|
/**
|
|
50
50
|
* Cancels an order and all associated task groups and line item groups.
|
|
51
51
|
*
|
|
@@ -55,10 +55,10 @@ export declare class Orders {
|
|
|
55
55
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.orders.
|
|
58
|
+
* await client.orders.cancelByOrderIdOrShortIdV1("order_id_or_short_id")
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
private
|
|
60
|
+
cancelByOrderIdOrShortIdV1(orderIdOrShortId: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
61
|
+
private __cancelByOrderIdOrShortIdV1;
|
|
62
62
|
/**
|
|
63
63
|
* Creates a comprehensive order with task groups, tasks, milestones, and cargo.
|
|
64
64
|
*
|
|
@@ -96,19 +96,19 @@ export declare class Orders {
|
|
|
96
96
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
97
|
*
|
|
98
98
|
* @example
|
|
99
|
-
* await client.orders.
|
|
99
|
+
* await client.orders.listByShipperOrgIdV1()
|
|
100
100
|
*/
|
|
101
|
-
|
|
102
|
-
private
|
|
101
|
+
listByShipperOrgIdV1(requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
|
|
102
|
+
private __listByShipperOrgIdV1;
|
|
103
103
|
/**
|
|
104
104
|
* Lists all orders assigned to the authenticated courier organization.
|
|
105
105
|
*
|
|
106
106
|
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
|
-
* await client.orders.
|
|
109
|
+
* await client.orders.listByCourierOrgIdV1()
|
|
110
110
|
*/
|
|
111
|
-
|
|
112
|
-
private
|
|
111
|
+
listByCourierOrgIdV1(requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
|
|
112
|
+
private __listByCourierOrgIdV1;
|
|
113
113
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
114
114
|
}
|