@chrt-inc/typescript-sdk 1.282.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/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/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/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/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
|
@@ -60,17 +60,17 @@ class Root {
|
|
|
60
60
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.root.
|
|
63
|
+
* await client.root.pingAuthdV1()
|
|
64
64
|
*/
|
|
65
|
-
|
|
66
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
65
|
+
pingAuthdV1(requestOptions) {
|
|
66
|
+
return core.HttpResponsePromise.fromPromise(this.__pingAuthdV1(requestOptions));
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
__pingAuthdV1(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, "authd"),
|
|
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, "authd/v1"),
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: _headers,
|
|
76
76
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -96,7 +96,7 @@ class Root {
|
|
|
96
96
|
rawResponse: _response.rawResponse,
|
|
97
97
|
});
|
|
98
98
|
case "timeout":
|
|
99
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd.");
|
|
99
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd/v1.");
|
|
100
100
|
case "unknown":
|
|
101
101
|
throw new errors.ChrtError({
|
|
102
102
|
message: _response.error.errorMessage,
|
|
@@ -111,17 +111,17 @@ class Root {
|
|
|
111
111
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
112
|
*
|
|
113
113
|
* @example
|
|
114
|
-
* await client.root.
|
|
114
|
+
* await client.root.pingOptionallyAuthdV1()
|
|
115
115
|
*/
|
|
116
|
-
|
|
117
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
116
|
+
pingOptionallyAuthdV1(requestOptions) {
|
|
117
|
+
return core.HttpResponsePromise.fromPromise(this.__pingOptionallyAuthdV1(requestOptions));
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
__pingOptionallyAuthdV1(requestOptions) {
|
|
120
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
121
|
var _a, _b, _c, _d;
|
|
122
122
|
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);
|
|
123
123
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
124
|
-
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, "optionally_authd"),
|
|
124
|
+
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, "optionally_authd/v1"),
|
|
125
125
|
method: "GET",
|
|
126
126
|
headers: _headers,
|
|
127
127
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -147,7 +147,7 @@ class Root {
|
|
|
147
147
|
rawResponse: _response.rawResponse,
|
|
148
148
|
});
|
|
149
149
|
case "timeout":
|
|
150
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd.");
|
|
150
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd/v1.");
|
|
151
151
|
case "unknown":
|
|
152
152
|
throw new errors.ChrtError({
|
|
153
153
|
message: _response.error.errorMessage,
|
|
@@ -157,22 +157,22 @@ class Root {
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
|
-
* Returns a greeting message
|
|
160
|
+
* Returns a greeting message to verify the API is accessible.
|
|
161
161
|
*
|
|
162
162
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
163
163
|
*
|
|
164
164
|
* @example
|
|
165
|
-
* await client.root.
|
|
165
|
+
* await client.root.pingUnauthdV1()
|
|
166
166
|
*/
|
|
167
|
-
|
|
168
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
167
|
+
pingUnauthdV1(requestOptions) {
|
|
168
|
+
return core.HttpResponsePromise.fromPromise(this.__pingUnauthdV1(requestOptions));
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
__pingUnauthdV1(requestOptions) {
|
|
171
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
172
172
|
var _a, _b, _c, _d;
|
|
173
173
|
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);
|
|
174
174
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
175
|
-
url: (_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,
|
|
175
|
+
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, "v1"),
|
|
176
176
|
method: "GET",
|
|
177
177
|
headers: _headers,
|
|
178
178
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -198,7 +198,7 @@ class Root {
|
|
|
198
198
|
rawResponse: _response.rawResponse,
|
|
199
199
|
});
|
|
200
200
|
case "timeout":
|
|
201
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET
|
|
201
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /v1.");
|
|
202
202
|
case "unknown":
|
|
203
203
|
throw new errors.ChrtError({
|
|
204
204
|
message: _response.error.errorMessage,
|
|
@@ -208,7 +208,7 @@ class Root {
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
/**
|
|
211
|
-
*
|
|
211
|
+
* Returns a health status message used for monitoring system availability and uptime.
|
|
212
212
|
*
|
|
213
213
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
214
214
|
*
|
|
@@ -264,17 +264,17 @@ class Root {
|
|
|
264
264
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
265
265
|
*
|
|
266
266
|
* @example
|
|
267
|
-
* await client.root.
|
|
267
|
+
* await client.root.failureV1()
|
|
268
268
|
*/
|
|
269
|
-
|
|
270
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
269
|
+
failureV1(requestOptions) {
|
|
270
|
+
return core.HttpResponsePromise.fromPromise(this.__failureV1(requestOptions));
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
__failureV1(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, "failure"),
|
|
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, "failure/v1"),
|
|
278
278
|
method: "GET",
|
|
279
279
|
headers: _headers,
|
|
280
280
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -300,7 +300,7 @@ class Root {
|
|
|
300
300
|
rawResponse: _response.rawResponse,
|
|
301
301
|
});
|
|
302
302
|
case "timeout":
|
|
303
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure.");
|
|
303
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure/v1.");
|
|
304
304
|
case "unknown":
|
|
305
305
|
throw new errors.ChrtError({
|
|
306
306
|
message: _response.error.errorMessage,
|
|
@@ -36,20 +36,20 @@ export declare class ShipperContactInfo {
|
|
|
36
36
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.shipperContactInfo.
|
|
39
|
+
* await client.shipperContactInfo.getByJwtUserIdV1()
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
private
|
|
41
|
+
getByJwtUserIdV1(requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContactInfo1>;
|
|
42
|
+
private __getByJwtUserIdV1;
|
|
43
43
|
/**
|
|
44
44
|
* Lists all shipper contacts created by the authenticated organization.
|
|
45
45
|
*
|
|
46
46
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
|
-
* await client.shipperContactInfo.
|
|
49
|
+
* await client.shipperContactInfo.listByJwtOrgIdV1()
|
|
50
50
|
*/
|
|
51
|
-
|
|
52
|
-
private
|
|
51
|
+
listByJwtOrgIdV1(requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContactInfo1[]>;
|
|
52
|
+
private __listByJwtOrgIdV1;
|
|
53
53
|
/**
|
|
54
54
|
* Lists all shipper contacts accessible to the courier organization for a specific on-platform shipper.
|
|
55
55
|
*
|
|
@@ -59,10 +59,10 @@ export declare class ShipperContactInfo {
|
|
|
59
59
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
-
* await client.shipperContactInfo.
|
|
62
|
+
* await client.shipperContactInfo.listCourierContactsByShipperOrgIdV1("shipper_org_id")
|
|
63
63
|
*/
|
|
64
|
-
|
|
65
|
-
private
|
|
64
|
+
listCourierContactsByShipperOrgIdV1(shipperOrgId: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContactInfo1[]>;
|
|
65
|
+
private __listCourierContactsByShipperOrgIdV1;
|
|
66
66
|
/**
|
|
67
67
|
* Lists all shipper contacts for a specific off-platform shipper connection.
|
|
68
68
|
*
|
|
@@ -72,10 +72,10 @@ export declare class ShipperContactInfo {
|
|
|
72
72
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await client.shipperContactInfo.
|
|
75
|
+
* await client.shipperContactInfo.listByOffChrtShipperOrgInfoIdV1("off_chrt_shipper_org_info_id")
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
private
|
|
77
|
+
listByOffChrtShipperOrgInfoIdV1(offChrtShipperOrgInfoId: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContactInfo1[]>;
|
|
78
|
+
private __listByOffChrtShipperOrgInfoIdV1;
|
|
79
79
|
/**
|
|
80
80
|
* Retrieves a specific shipper contact by ID if authorized to access it.
|
|
81
81
|
*
|
|
@@ -85,10 +85,10 @@ export declare class ShipperContactInfo {
|
|
|
85
85
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
|
-
* await client.shipperContactInfo.
|
|
88
|
+
* await client.shipperContactInfo.getByIdV1("id")
|
|
89
89
|
*/
|
|
90
|
-
|
|
91
|
-
private
|
|
90
|
+
getByIdV1(id: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<Chrt.ShipperContactInfo1>;
|
|
91
|
+
private __getByIdV1;
|
|
92
92
|
/**
|
|
93
93
|
* Creates contact information for an on-platform shipper organization or user.
|
|
94
94
|
*
|
|
@@ -98,12 +98,12 @@ export declare class ShipperContactInfo {
|
|
|
98
98
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
99
99
|
*
|
|
100
100
|
* @example
|
|
101
|
-
* await client.shipperContactInfo.
|
|
101
|
+
* await client.shipperContactInfo.createOnPlatformV1({
|
|
102
102
|
* schema_version: 1
|
|
103
103
|
* })
|
|
104
104
|
*/
|
|
105
|
-
|
|
106
|
-
private
|
|
105
|
+
createOnPlatformV1(request: Chrt.ShipperContactInfoClientCreate1, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<string>;
|
|
106
|
+
private __createOnPlatformV1;
|
|
107
107
|
/**
|
|
108
108
|
* Creates contact information for an off-platform shipper using connection info.
|
|
109
109
|
*
|
|
@@ -113,12 +113,12 @@ export declare class ShipperContactInfo {
|
|
|
113
113
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
|
-
* await client.shipperContactInfo.
|
|
116
|
+
* await client.shipperContactInfo.createOffPlatformV1({
|
|
117
117
|
* schema_version: 1
|
|
118
118
|
* })
|
|
119
119
|
*/
|
|
120
|
-
|
|
121
|
-
private
|
|
120
|
+
createOffPlatformV1(request: Chrt.ShipperContactInfoClientCreate1, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<string>;
|
|
121
|
+
private __createOffPlatformV1;
|
|
122
122
|
/**
|
|
123
123
|
* Updates existing shipper contact information owned by the authenticated organization.
|
|
124
124
|
*
|
|
@@ -129,10 +129,10 @@ export declare class ShipperContactInfo {
|
|
|
129
129
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
130
130
|
*
|
|
131
131
|
* @example
|
|
132
|
-
* await client.shipperContactInfo.
|
|
132
|
+
* await client.shipperContactInfo.updateV1("shipper_contact_info_id")
|
|
133
133
|
*/
|
|
134
|
-
|
|
135
|
-
private
|
|
134
|
+
updateV1(shipperContactInfoId: string, request?: Chrt.ShipperContactInfoClientUpdate1, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
135
|
+
private __updateV1;
|
|
136
136
|
/**
|
|
137
137
|
* Deletes shipper contact information owned by the authenticated organization.
|
|
138
138
|
*
|
|
@@ -142,9 +142,9 @@ export declare class ShipperContactInfo {
|
|
|
142
142
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
143
143
|
*
|
|
144
144
|
* @example
|
|
145
|
-
* await client.shipperContactInfo.
|
|
145
|
+
* await client.shipperContactInfo.deleteByIdV1("id")
|
|
146
146
|
*/
|
|
147
|
-
|
|
148
|
-
private
|
|
147
|
+
deleteByIdV1(id: string, requestOptions?: ShipperContactInfo.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
148
|
+
private __deleteByIdV1;
|
|
149
149
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
150
150
|
}
|
|
@@ -61,17 +61,17 @@ class ShipperContactInfo {
|
|
|
61
61
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.shipperContactInfo.
|
|
64
|
+
* await client.shipperContactInfo.getByJwtUserIdV1()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
getByJwtUserIdV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__getByJwtUserIdV1(requestOptions));
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
__getByJwtUserIdV1(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_contact_info/by_jwt_user_id"),
|
|
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_contact_info/by_jwt_user_id/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 ShipperContactInfo {
|
|
|
97
97
|
rawResponse: _response.rawResponse,
|
|
98
98
|
});
|
|
99
99
|
case "timeout":
|
|
100
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/by_jwt_user_id.");
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/by_jwt_user_id/v1.");
|
|
101
101
|
case "unknown":
|
|
102
102
|
throw new errors.ChrtError({
|
|
103
103
|
message: _response.error.errorMessage,
|
|
@@ -112,17 +112,17 @@ class ShipperContactInfo {
|
|
|
112
112
|
* @param {ShipperContactInfo.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
113
|
*
|
|
114
114
|
* @example
|
|
115
|
-
* await client.shipperContactInfo.
|
|
115
|
+
* await client.shipperContactInfo.listByJwtOrgIdV1()
|
|
116
116
|
*/
|
|
117
|
-
|
|
118
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
117
|
+
listByJwtOrgIdV1(requestOptions) {
|
|
118
|
+
return core.HttpResponsePromise.fromPromise(this.__listByJwtOrgIdV1(requestOptions));
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
__listByJwtOrgIdV1(requestOptions) {
|
|
121
121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
122
|
var _a, _b, _c, _d;
|
|
123
123
|
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);
|
|
124
124
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
125
|
-
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_contact_info/list/by_jwt_org_id"),
|
|
125
|
+
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_contact_info/list/by_jwt_org_id/v1"),
|
|
126
126
|
method: "GET",
|
|
127
127
|
headers: _headers,
|
|
128
128
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -148,7 +148,7 @@ class ShipperContactInfo {
|
|
|
148
148
|
rawResponse: _response.rawResponse,
|
|
149
149
|
});
|
|
150
150
|
case "timeout":
|
|
151
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/by_jwt_org_id.");
|
|
151
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/by_jwt_org_id/v1.");
|
|
152
152
|
case "unknown":
|
|
153
153
|
throw new errors.ChrtError({
|
|
154
154
|
message: _response.error.errorMessage,
|
|
@@ -166,17 +166,17 @@ class ShipperContactInfo {
|
|
|
166
166
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
167
167
|
*
|
|
168
168
|
* @example
|
|
169
|
-
* await client.shipperContactInfo.
|
|
169
|
+
* await client.shipperContactInfo.listCourierContactsByShipperOrgIdV1("shipper_org_id")
|
|
170
170
|
*/
|
|
171
|
-
|
|
172
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
171
|
+
listCourierContactsByShipperOrgIdV1(shipperOrgId, requestOptions) {
|
|
172
|
+
return core.HttpResponsePromise.fromPromise(this.__listCourierContactsByShipperOrgIdV1(shipperOrgId, requestOptions));
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
__listCourierContactsByShipperOrgIdV1(shipperOrgId, requestOptions) {
|
|
175
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
176
176
|
var _a, _b, _c, _d;
|
|
177
177
|
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);
|
|
178
178
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
179
|
-
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_contact_info/courier_contacts/list/${encodeURIComponent(shipperOrgId)}`),
|
|
179
|
+
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_contact_info/courier_contacts/list/v1/${encodeURIComponent(shipperOrgId)}`),
|
|
180
180
|
method: "GET",
|
|
181
181
|
headers: _headers,
|
|
182
182
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -207,7 +207,7 @@ class ShipperContactInfo {
|
|
|
207
207
|
rawResponse: _response.rawResponse,
|
|
208
208
|
});
|
|
209
209
|
case "timeout":
|
|
210
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/courier_contacts/list/{shipper_org_id}.");
|
|
210
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/courier_contacts/list/v1/{shipper_org_id}.");
|
|
211
211
|
case "unknown":
|
|
212
212
|
throw new errors.ChrtError({
|
|
213
213
|
message: _response.error.errorMessage,
|
|
@@ -225,17 +225,17 @@ class ShipperContactInfo {
|
|
|
225
225
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
226
226
|
*
|
|
227
227
|
* @example
|
|
228
|
-
* await client.shipperContactInfo.
|
|
228
|
+
* await client.shipperContactInfo.listByOffChrtShipperOrgInfoIdV1("off_chrt_shipper_org_info_id")
|
|
229
229
|
*/
|
|
230
|
-
|
|
231
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
230
|
+
listByOffChrtShipperOrgInfoIdV1(offChrtShipperOrgInfoId, requestOptions) {
|
|
231
|
+
return core.HttpResponsePromise.fromPromise(this.__listByOffChrtShipperOrgInfoIdV1(offChrtShipperOrgInfoId, requestOptions));
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
__listByOffChrtShipperOrgInfoIdV1(offChrtShipperOrgInfoId, requestOptions) {
|
|
234
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
235
|
var _a, _b, _c, _d;
|
|
236
236
|
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);
|
|
237
237
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
238
|
-
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_contact_info/list/${encodeURIComponent(offChrtShipperOrgInfoId)}`),
|
|
238
|
+
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_contact_info/list/v1/${encodeURIComponent(offChrtShipperOrgInfoId)}`),
|
|
239
239
|
method: "GET",
|
|
240
240
|
headers: _headers,
|
|
241
241
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -266,7 +266,7 @@ class ShipperContactInfo {
|
|
|
266
266
|
rawResponse: _response.rawResponse,
|
|
267
267
|
});
|
|
268
268
|
case "timeout":
|
|
269
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/{off_chrt_shipper_org_info_id}.");
|
|
269
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/list/v1/{off_chrt_shipper_org_info_id}.");
|
|
270
270
|
case "unknown":
|
|
271
271
|
throw new errors.ChrtError({
|
|
272
272
|
message: _response.error.errorMessage,
|
|
@@ -284,17 +284,17 @@ class ShipperContactInfo {
|
|
|
284
284
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
285
285
|
*
|
|
286
286
|
* @example
|
|
287
|
-
* await client.shipperContactInfo.
|
|
287
|
+
* await client.shipperContactInfo.getByIdV1("id")
|
|
288
288
|
*/
|
|
289
|
-
|
|
290
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
289
|
+
getByIdV1(id, requestOptions) {
|
|
290
|
+
return core.HttpResponsePromise.fromPromise(this.__getByIdV1(id, requestOptions));
|
|
291
291
|
}
|
|
292
|
-
|
|
292
|
+
__getByIdV1(id, requestOptions) {
|
|
293
293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
294
294
|
var _a, _b, _c, _d;
|
|
295
295
|
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);
|
|
296
296
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
297
|
-
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_contact_info/${encodeURIComponent(id)}`),
|
|
297
|
+
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_contact_info/v1/${encodeURIComponent(id)}`),
|
|
298
298
|
method: "GET",
|
|
299
299
|
headers: _headers,
|
|
300
300
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -325,7 +325,7 @@ class ShipperContactInfo {
|
|
|
325
325
|
rawResponse: _response.rawResponse,
|
|
326
326
|
});
|
|
327
327
|
case "timeout":
|
|
328
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/{id}.");
|
|
328
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/shipper_contact_info/v1/{id}.");
|
|
329
329
|
case "unknown":
|
|
330
330
|
throw new errors.ChrtError({
|
|
331
331
|
message: _response.error.errorMessage,
|
|
@@ -343,19 +343,19 @@ class ShipperContactInfo {
|
|
|
343
343
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
344
344
|
*
|
|
345
345
|
* @example
|
|
346
|
-
* await client.shipperContactInfo.
|
|
346
|
+
* await client.shipperContactInfo.createOnPlatformV1({
|
|
347
347
|
* schema_version: 1
|
|
348
348
|
* })
|
|
349
349
|
*/
|
|
350
|
-
|
|
351
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
350
|
+
createOnPlatformV1(request, requestOptions) {
|
|
351
|
+
return core.HttpResponsePromise.fromPromise(this.__createOnPlatformV1(request, requestOptions));
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
__createOnPlatformV1(request, requestOptions) {
|
|
354
354
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
355
|
var _a, _b, _c, _d;
|
|
356
356
|
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);
|
|
357
357
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
358
|
-
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_contact_info/create/on_platform"),
|
|
358
|
+
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_contact_info/create/on_platform/v1"),
|
|
359
359
|
method: "POST",
|
|
360
360
|
headers: _headers,
|
|
361
361
|
contentType: "application/json",
|
|
@@ -389,7 +389,7 @@ class ShipperContactInfo {
|
|
|
389
389
|
rawResponse: _response.rawResponse,
|
|
390
390
|
});
|
|
391
391
|
case "timeout":
|
|
392
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/on_platform.");
|
|
392
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/on_platform/v1.");
|
|
393
393
|
case "unknown":
|
|
394
394
|
throw new errors.ChrtError({
|
|
395
395
|
message: _response.error.errorMessage,
|
|
@@ -407,19 +407,19 @@ class ShipperContactInfo {
|
|
|
407
407
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
408
408
|
*
|
|
409
409
|
* @example
|
|
410
|
-
* await client.shipperContactInfo.
|
|
410
|
+
* await client.shipperContactInfo.createOffPlatformV1({
|
|
411
411
|
* schema_version: 1
|
|
412
412
|
* })
|
|
413
413
|
*/
|
|
414
|
-
|
|
415
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
414
|
+
createOffPlatformV1(request, requestOptions) {
|
|
415
|
+
return core.HttpResponsePromise.fromPromise(this.__createOffPlatformV1(request, requestOptions));
|
|
416
416
|
}
|
|
417
|
-
|
|
417
|
+
__createOffPlatformV1(request, requestOptions) {
|
|
418
418
|
return __awaiter(this, void 0, void 0, function* () {
|
|
419
419
|
var _a, _b, _c, _d;
|
|
420
420
|
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);
|
|
421
421
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
422
|
-
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_contact_info/create/off_platform"),
|
|
422
|
+
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_contact_info/create/off_platform/v1"),
|
|
423
423
|
method: "POST",
|
|
424
424
|
headers: _headers,
|
|
425
425
|
contentType: "application/json",
|
|
@@ -453,7 +453,7 @@ class ShipperContactInfo {
|
|
|
453
453
|
rawResponse: _response.rawResponse,
|
|
454
454
|
});
|
|
455
455
|
case "timeout":
|
|
456
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/off_platform.");
|
|
456
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/shipper_contact_info/create/off_platform/v1.");
|
|
457
457
|
case "unknown":
|
|
458
458
|
throw new errors.ChrtError({
|
|
459
459
|
message: _response.error.errorMessage,
|
|
@@ -472,17 +472,17 @@ class ShipperContactInfo {
|
|
|
472
472
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
473
473
|
*
|
|
474
474
|
* @example
|
|
475
|
-
* await client.shipperContactInfo.
|
|
475
|
+
* await client.shipperContactInfo.updateV1("shipper_contact_info_id")
|
|
476
476
|
*/
|
|
477
|
-
|
|
478
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
477
|
+
updateV1(shipperContactInfoId, request = {}, requestOptions) {
|
|
478
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(shipperContactInfoId, request, requestOptions));
|
|
479
479
|
}
|
|
480
|
-
|
|
480
|
+
__updateV1(shipperContactInfoId_1) {
|
|
481
481
|
return __awaiter(this, arguments, void 0, function* (shipperContactInfoId, request = {}, requestOptions) {
|
|
482
482
|
var _a, _b, _c, _d;
|
|
483
483
|
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);
|
|
484
484
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
485
|
-
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_contact_info/update/${encodeURIComponent(shipperContactInfoId)}`),
|
|
485
|
+
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_contact_info/update/v1/${encodeURIComponent(shipperContactInfoId)}`),
|
|
486
486
|
method: "PATCH",
|
|
487
487
|
headers: _headers,
|
|
488
488
|
contentType: "application/json",
|
|
@@ -516,7 +516,7 @@ class ShipperContactInfo {
|
|
|
516
516
|
rawResponse: _response.rawResponse,
|
|
517
517
|
});
|
|
518
518
|
case "timeout":
|
|
519
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/shipper_contact_info/update/{shipper_contact_info_id}.");
|
|
519
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/shipper_contact_info/update/v1/{shipper_contact_info_id}.");
|
|
520
520
|
case "unknown":
|
|
521
521
|
throw new errors.ChrtError({
|
|
522
522
|
message: _response.error.errorMessage,
|
|
@@ -534,17 +534,17 @@ class ShipperContactInfo {
|
|
|
534
534
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
535
535
|
*
|
|
536
536
|
* @example
|
|
537
|
-
* await client.shipperContactInfo.
|
|
537
|
+
* await client.shipperContactInfo.deleteByIdV1("id")
|
|
538
538
|
*/
|
|
539
|
-
|
|
540
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
539
|
+
deleteByIdV1(id, requestOptions) {
|
|
540
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteByIdV1(id, requestOptions));
|
|
541
541
|
}
|
|
542
|
-
|
|
542
|
+
__deleteByIdV1(id, requestOptions) {
|
|
543
543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
544
544
|
var _a, _b, _c, _d;
|
|
545
545
|
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);
|
|
546
546
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
547
|
-
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_contact_info/delete/${encodeURIComponent(id)}`),
|
|
547
|
+
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_contact_info/delete/v1/${encodeURIComponent(id)}`),
|
|
548
548
|
method: "DELETE",
|
|
549
549
|
headers: _headers,
|
|
550
550
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -575,7 +575,7 @@ class ShipperContactInfo {
|
|
|
575
575
|
rawResponse: _response.rawResponse,
|
|
576
576
|
});
|
|
577
577
|
case "timeout":
|
|
578
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_contact_info/delete/{id}.");
|
|
578
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/shipper_contact_info/delete/v1/{id}.");
|
|
579
579
|
case "unknown":
|
|
580
580
|
throw new errors.ChrtError({
|
|
581
581
|
message: _response.error.errorMessage,
|