@chrt-inc/typescript-sdk 1.280.0 → 1.285.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -29
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/connections/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/connections/client/Client.js +12 -12
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.js +7 -7
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/client/Client.js +24 -24
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.js +6 -6
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.js +7 -7
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +26 -26
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +18 -18
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.js +36 -36
- package/dist/cjs/api/resources/dev/client/Client.d.ts +34 -27
- package/dist/cjs/api/resources/dev/client/Client.js +96 -50
- package/dist/cjs/api/resources/dev/index.d.ts +0 -1
- package/dist/cjs/api/resources/dev/index.js +0 -1
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +30 -30
- package/dist/cjs/api/resources/drivers/client/Client.js +60 -60
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/milestoneNotifications/client/Client.js +12 -12
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/milestones/client/Client.js +12 -12
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +6 -6
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +18 -18
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.ts} +1 -1
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.js +12 -12
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +12 -12
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/offChrtShipperOrgInfo/client/Client.js +30 -30
- package/dist/cjs/api/resources/orders/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orders/client/Client.js +24 -24
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +18 -18
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +18 -18
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +18 -18
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/orgProfiles/client/Client.js +35 -35
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/orgs/client/Client.js +48 -48
- package/dist/cjs/api/resources/payments/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/payments/client/Client.js +34 -34
- package/dist/cjs/api/resources/root/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/root/client/Client.js +26 -26
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +27 -27
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.js +54 -54
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/client/Client.js +31 -31
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.js +6 -6
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.js +6 -6
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.js +7 -7
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.js +18 -18
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.d.ts +28 -28
- package/dist/cjs/api/resources/shipperPayCourierPayments/client/Client.js +49 -49
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/shipperPayCourierRateSheets/client/Client.js +30 -30
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/taskGroups/client/Client.js +37 -37
- package/dist/cjs/api/resources/taskGroups/client/requests/TaskGroupsExpandedReq.d.ts +3 -0
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +12 -12
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +6 -6
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/Client.js +8 -8
- package/dist/{esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.mts → cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/Client.js +8 -8
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.d.ts → CargoByDriverLastSeenV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +32 -32
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +53 -53
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.d.ts → DevicesDeleteV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.d.ts → DevicesGetV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.d.ts → DevicesLinkToCargoV1Request.d.ts} +1 -1
- package/dist/{esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.mts → cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +7 -7
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.d.ts +66 -66
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/Client.js +108 -108
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.d.ts → SessionByDeviceDataPointsPublicV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.d.ts → SessionByDeviceDataPointsV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.d.ts → SessionByDeviceDeleteV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.d.ts → SessionByDeviceGetV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.d.ts → SessionByDeviceLastSeenPublicV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.ts +12 -0
- package/dist/{esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.mts → cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.ts +10 -10
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/Client.js +8 -8
- package/dist/{esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.d.mts → cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/users/client/Client.js +7 -7
- package/dist/cjs/api/resources/utils/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/utils/client/Client.js +7 -7
- package/dist/cjs/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.d.ts → UtilsGetTimezoneV1Request.d.ts} +1 -1
- package/dist/cjs/api/resources/utils/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/connections/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/connections/client/Client.mjs +12 -12
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.mjs +7 -7
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/client/Client.mjs +24 -24
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/addLineItems/client/Client.mjs +6 -6
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverLineItemGroups/resources/removeLineItems/client/Client.mjs +7 -7
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +26 -26
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +18 -18
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.mjs +36 -36
- package/dist/esm/api/resources/dev/client/Client.d.mts +34 -27
- package/dist/esm/api/resources/dev/client/Client.mjs +96 -50
- package/dist/esm/api/resources/dev/index.d.mts +0 -1
- package/dist/esm/api/resources/dev/index.mjs +0 -1
- package/dist/esm/api/resources/drivers/client/Client.d.mts +30 -30
- package/dist/esm/api/resources/drivers/client/Client.mjs +60 -60
- package/dist/esm/api/resources/milestoneNotifications/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/milestoneNotifications/client/Client.mjs +12 -12
- package/dist/esm/api/resources/milestones/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/milestones/client/Client.mjs +12 -12
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +6 -6
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +18 -18
- package/dist/esm/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.d.mts} +1 -1
- package/dist/esm/api/resources/milestones/resources/images/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.mjs +12 -12
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +12 -12
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/offChrtShipperOrgInfo/client/Client.mjs +30 -30
- package/dist/esm/api/resources/orders/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orders/client/Client.mjs +24 -24
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +18 -18
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +18 -18
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +18 -18
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/orgProfiles/client/Client.mjs +35 -35
- package/dist/esm/api/resources/orgs/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/orgs/client/Client.mjs +48 -48
- package/dist/esm/api/resources/payments/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/payments/client/Client.mjs +34 -34
- package/dist/esm/api/resources/root/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/root/client/Client.mjs +26 -26
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +27 -27
- package/dist/esm/api/resources/shipperContactInfo/client/Client.mjs +54 -54
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/client/Client.mjs +31 -31
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/addLineItems/client/Client.mjs +6 -6
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/courier/client/Client.mjs +6 -6
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/removeLineItems/client/Client.mjs +7 -7
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/shipperPayCourierLineItemGroups/resources/shipper/client/Client.mjs +18 -18
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.d.mts +28 -28
- package/dist/esm/api/resources/shipperPayCourierPayments/client/Client.mjs +49 -49
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/shipperPayCourierRateSheets/client/Client.mjs +30 -30
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +37 -37
- package/dist/esm/api/resources/taskGroups/client/requests/TaskGroupsExpandedReq.d.mts +3 -0
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +12 -12
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +6 -6
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/Client.mjs +8 -8
- package/dist/{cjs/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenRequest.d.ts → esm/api/resources/tracking/resources/cargoByDevice/client/requests/CargoByDeviceLastSeenV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/Client.mjs +8 -8
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.d.mts → CargoByDriverLastSeenV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +32 -32
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +53 -53
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.d.mts → DevicesDeleteV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.d.mts → DevicesGetV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.d.mts → DevicesLinkToCargoV1Request.d.mts} +1 -1
- package/dist/{cjs/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoRequest.d.ts → esm/api/resources/tracking/resources/devices/client/requests/DevicesUnlinkFromCargoV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +7 -7
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.d.mts +66 -66
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/Client.mjs +108 -108
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.d.mts → SessionByDeviceDataPointsPublicV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.d.mts → SessionByDeviceDataPointsV1Request.d.mts} +1 -1
- package/dist/{cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteRequest.d.ts → esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceDeleteV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.d.mts → SessionByDeviceGetV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingV1Request.d.mts +12 -0
- package/dist/{cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.ts → esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateV1Request.d.mts +12 -0
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/index.d.mts +10 -10
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/Client.mjs +8 -8
- package/dist/{cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenRequest.d.ts → esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/TaskGroupByDriverLastSeenV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/users/client/Client.mjs +7 -7
- package/dist/esm/api/resources/utils/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/utils/client/Client.mjs +7 -7
- package/dist/esm/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.d.mts → UtilsGetTimezoneV1Request.d.mts} +1 -1
- package/dist/esm/api/resources/utils/client/requests/index.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +440 -442
- package/dist/cjs/api/resources/dev/resources/getUserId/client/Client.d.ts +0 -43
- package/dist/cjs/api/resources/dev/resources/getUserId/client/Client.js +0 -118
- package/dist/cjs/api/resources/dev/resources/getUserId/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/dev/resources/getUserId/client/index.js +0 -2
- package/dist/cjs/api/resources/dev/resources/getUserId/index.d.ts +0 -1
- package/dist/cjs/api/resources/dev/resources/getUserId/index.js +0 -17
- package/dist/cjs/api/resources/dev/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/dev/resources/index.js +0 -37
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.ts +0 -12
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.ts +0 -12
- package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.ts +0 -12
- package/dist/esm/api/resources/dev/resources/getUserId/client/Client.d.mts +0 -43
- package/dist/esm/api/resources/dev/resources/getUserId/client/Client.mjs +0 -81
- package/dist/esm/api/resources/dev/resources/getUserId/client/index.d.mts +0 -1
- package/dist/esm/api/resources/dev/resources/getUserId/client/index.mjs +0 -1
- package/dist/esm/api/resources/dev/resources/getUserId/index.d.mts +0 -1
- package/dist/esm/api/resources/dev/resources/getUserId/index.mjs +0 -1
- package/dist/esm/api/resources/dev/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/dev/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenPublicRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceLastSeenRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDevicePauseRecordingRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceResumeRecordingRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceStartRequest.d.mts +0 -12
- package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/SessionByDeviceTerminateRequest.d.mts +0 -12
- /package/dist/cjs/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.js → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/cargoByDevice/client/requests/{CargoByDeviceLastSeenRequest.js → CargoByDeviceLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.js → CargoByDriverLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.js → DevicesDeleteV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.js → DevicesGetV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.js → DevicesLinkToCargoV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/devices/client/requests/{DevicesUnlinkFromCargoRequest.js → DevicesUnlinkFromCargoV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.js → SessionByDeviceDataPointsPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.js → SessionByDeviceDataPointsV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDeleteRequest.js → SessionByDeviceDeleteV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.js → SessionByDeviceGetV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.js → SessionByDeviceLastSeenPublicV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.js → SessionByDeviceLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDevicePauseRecordingRequest.js → SessionByDevicePauseRecordingV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceResumeRecordingRequest.js → SessionByDeviceResumeRecordingV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartRequest.js → SessionByDeviceStartV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceTerminateRequest.js → SessionByDeviceTerminateV1Request.js} +0 -0
- /package/dist/cjs/api/resources/tracking/resources/taskGroupByDriver/client/requests/{TaskGroupByDriverLastSeenRequest.js → TaskGroupByDriverLastSeenV1Request.js} +0 -0
- /package/dist/cjs/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.js → UtilsGetTimezoneV1Request.js} +0 -0
- /package/dist/esm/api/resources/milestones/resources/images/client/requests/{BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.mjs → BodyPostMilestonesUploadImageV1OortMilestonesImagesUploadV1MilestoneIdPost.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/cargoByDevice/client/requests/{CargoByDeviceLastSeenRequest.mjs → CargoByDeviceLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/cargoByDriver/client/requests/{CargoByDriverLastSeenRequest.mjs → CargoByDriverLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesDeleteRequest.mjs → DevicesDeleteV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesGetRequest.mjs → DevicesGetV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesLinkToCargoRequest.mjs → DevicesLinkToCargoV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/devices/client/requests/{DevicesUnlinkFromCargoRequest.mjs → DevicesUnlinkFromCargoV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsPublicRequest.mjs → SessionByDeviceDataPointsPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDataPointsRequest.mjs → SessionByDeviceDataPointsV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceDeleteRequest.mjs → SessionByDeviceDeleteV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceGetRequest.mjs → SessionByDeviceGetV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenPublicRequest.mjs → SessionByDeviceLastSeenPublicV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceLastSeenRequest.mjs → SessionByDeviceLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDevicePauseRecordingRequest.mjs → SessionByDevicePauseRecordingV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceResumeRecordingRequest.mjs → SessionByDeviceResumeRecordingV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceStartRequest.mjs → SessionByDeviceStartV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/sessionByDevice/client/requests/{SessionByDeviceTerminateRequest.mjs → SessionByDeviceTerminateV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/tracking/resources/taskGroupByDriver/client/requests/{TaskGroupByDriverLastSeenRequest.mjs → TaskGroupByDriverLastSeenV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/utils/client/requests/{UtilsGetTimezoneRequest.mjs → UtilsGetTimezoneV1Request.mjs} +0 -0
|
@@ -25,17 +25,17 @@ export class Orgs {
|
|
|
25
25
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
|
-
* await client.orgs.
|
|
28
|
+
* await client.orgs.getInfoV1()
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
getInfoV1(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__getInfoV1(requestOptions));
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
__getInfoV1(requestOptions) {
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
36
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
37
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
38
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/info"),
|
|
38
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "orgs/info/v1"),
|
|
39
39
|
method: "GET",
|
|
40
40
|
headers: _headers,
|
|
41
41
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -61,7 +61,7 @@ export class Orgs {
|
|
|
61
61
|
rawResponse: _response.rawResponse,
|
|
62
62
|
});
|
|
63
63
|
case "timeout":
|
|
64
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/info.");
|
|
64
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/info/v1.");
|
|
65
65
|
case "unknown":
|
|
66
66
|
throw new errors.ChrtError({
|
|
67
67
|
message: _response.error.errorMessage,
|
|
@@ -76,17 +76,17 @@ export class Orgs {
|
|
|
76
76
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
|
-
* await client.orgs.
|
|
79
|
+
* await client.orgs.listMembersV1()
|
|
80
80
|
*/
|
|
81
|
-
|
|
82
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
81
|
+
listMembersV1(requestOptions) {
|
|
82
|
+
return core.HttpResponsePromise.fromPromise(this.__listMembersV1(requestOptions));
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
__listMembersV1(requestOptions) {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
86
|
var _a, _b, _c, _d;
|
|
87
87
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
88
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
89
|
-
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, "orgs/members/list"),
|
|
89
|
+
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, "orgs/members/list/v1"),
|
|
90
90
|
method: "GET",
|
|
91
91
|
headers: _headers,
|
|
92
92
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -112,7 +112,7 @@ export class Orgs {
|
|
|
112
112
|
rawResponse: _response.rawResponse,
|
|
113
113
|
});
|
|
114
114
|
case "timeout":
|
|
115
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/members/list.");
|
|
115
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/members/list/v1.");
|
|
116
116
|
case "unknown":
|
|
117
117
|
throw new errors.ChrtError({
|
|
118
118
|
message: _response.error.errorMessage,
|
|
@@ -127,17 +127,17 @@ export class Orgs {
|
|
|
127
127
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
128
|
*
|
|
129
129
|
* @example
|
|
130
|
-
* await client.orgs.
|
|
130
|
+
* await client.orgs.getPublicDataV1()
|
|
131
131
|
*/
|
|
132
|
-
|
|
133
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
132
|
+
getPublicDataV1(requestOptions) {
|
|
133
|
+
return core.HttpResponsePromise.fromPromise(this.__getPublicDataV1(requestOptions));
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
__getPublicDataV1(requestOptions) {
|
|
136
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
137
|
var _a, _b, _c, _d;
|
|
138
138
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
139
139
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
140
|
-
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, "orgs/public_data"),
|
|
140
|
+
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, "orgs/public_data/v1"),
|
|
141
141
|
method: "GET",
|
|
142
142
|
headers: _headers,
|
|
143
143
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -163,7 +163,7 @@ export class Orgs {
|
|
|
163
163
|
rawResponse: _response.rawResponse,
|
|
164
164
|
});
|
|
165
165
|
case "timeout":
|
|
166
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data.");
|
|
166
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/v1.");
|
|
167
167
|
case "unknown":
|
|
168
168
|
throw new errors.ChrtError({
|
|
169
169
|
message: _response.error.errorMessage,
|
|
@@ -181,17 +181,17 @@ export class Orgs {
|
|
|
181
181
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
182
182
|
*
|
|
183
183
|
* @example
|
|
184
|
-
* await client.orgs.
|
|
184
|
+
* await client.orgs.getPublicDataByOrgIdV1("org_id")
|
|
185
185
|
*/
|
|
186
|
-
|
|
187
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
186
|
+
getPublicDataByOrgIdV1(orgId, requestOptions) {
|
|
187
|
+
return core.HttpResponsePromise.fromPromise(this.__getPublicDataByOrgIdV1(orgId, requestOptions));
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
__getPublicDataByOrgIdV1(orgId, requestOptions) {
|
|
190
190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
191
191
|
var _a, _b, _c, _d;
|
|
192
192
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
193
193
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
194
|
-
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, `orgs/public_data/${encodeURIComponent(orgId)}`),
|
|
194
|
+
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, `orgs/public_data/v1/${encodeURIComponent(orgId)}`),
|
|
195
195
|
method: "GET",
|
|
196
196
|
headers: _headers,
|
|
197
197
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -222,7 +222,7 @@ export class Orgs {
|
|
|
222
222
|
rawResponse: _response.rawResponse,
|
|
223
223
|
});
|
|
224
224
|
case "timeout":
|
|
225
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/{org_id}.");
|
|
225
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/public_data/v1/{org_id}.");
|
|
226
226
|
case "unknown":
|
|
227
227
|
throw new errors.ChrtError({
|
|
228
228
|
message: _response.error.errorMessage,
|
|
@@ -237,17 +237,17 @@ export class Orgs {
|
|
|
237
237
|
* @param {Orgs.RequestOptions} requestOptions - Request-specific configuration.
|
|
238
238
|
*
|
|
239
239
|
* @example
|
|
240
|
-
* await client.orgs.
|
|
240
|
+
* await client.orgs.getHandleV1()
|
|
241
241
|
*/
|
|
242
|
-
|
|
243
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
242
|
+
getHandleV1(requestOptions) {
|
|
243
|
+
return core.HttpResponsePromise.fromPromise(this.__getHandleV1(requestOptions));
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
__getHandleV1(requestOptions) {
|
|
246
246
|
return __awaiter(this, void 0, void 0, function* () {
|
|
247
247
|
var _a, _b, _c, _d;
|
|
248
248
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
249
249
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
250
|
-
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, "orgs/handle"),
|
|
250
|
+
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, "orgs/handle/v1"),
|
|
251
251
|
method: "GET",
|
|
252
252
|
headers: _headers,
|
|
253
253
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -273,7 +273,7 @@ export class Orgs {
|
|
|
273
273
|
rawResponse: _response.rawResponse,
|
|
274
274
|
});
|
|
275
275
|
case "timeout":
|
|
276
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle.");
|
|
276
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/v1.");
|
|
277
277
|
case "unknown":
|
|
278
278
|
throw new errors.ChrtError({
|
|
279
279
|
message: _response.error.errorMessage,
|
|
@@ -291,17 +291,17 @@ export class Orgs {
|
|
|
291
291
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
292
292
|
*
|
|
293
293
|
* @example
|
|
294
|
-
* await client.orgs.
|
|
294
|
+
* await client.orgs.getHandleAvailabilityV1("handle")
|
|
295
295
|
*/
|
|
296
|
-
|
|
297
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
296
|
+
getHandleAvailabilityV1(handle, requestOptions) {
|
|
297
|
+
return core.HttpResponsePromise.fromPromise(this.__getHandleAvailabilityV1(handle, requestOptions));
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
__getHandleAvailabilityV1(handle, requestOptions) {
|
|
300
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
301
|
var _a, _b, _c, _d;
|
|
302
302
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
303
303
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
304
|
-
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, `orgs/handle/availability/${encodeURIComponent(handle)}`),
|
|
304
|
+
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, `orgs/handle/availability/v1/${encodeURIComponent(handle)}`),
|
|
305
305
|
method: "GET",
|
|
306
306
|
headers: _headers,
|
|
307
307
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -332,7 +332,7 @@ export class Orgs {
|
|
|
332
332
|
rawResponse: _response.rawResponse,
|
|
333
333
|
});
|
|
334
334
|
case "timeout":
|
|
335
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/{handle}.");
|
|
335
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /orgs/handle/availability/v1/{handle}.");
|
|
336
336
|
case "unknown":
|
|
337
337
|
throw new errors.ChrtError({
|
|
338
338
|
message: _response.error.errorMessage,
|
|
@@ -350,20 +350,20 @@ export class Orgs {
|
|
|
350
350
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
351
351
|
*
|
|
352
352
|
* @example
|
|
353
|
-
* await client.orgs.
|
|
353
|
+
* await client.orgs.createPublicDataV1({
|
|
354
354
|
* handle: "handle",
|
|
355
355
|
* company_name: "company_name"
|
|
356
356
|
* })
|
|
357
357
|
*/
|
|
358
|
-
|
|
359
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
358
|
+
createPublicDataV1(request, requestOptions) {
|
|
359
|
+
return core.HttpResponsePromise.fromPromise(this.__createPublicDataV1(request, requestOptions));
|
|
360
360
|
}
|
|
361
|
-
|
|
361
|
+
__createPublicDataV1(request, requestOptions) {
|
|
362
362
|
return __awaiter(this, void 0, void 0, function* () {
|
|
363
363
|
var _a, _b, _c, _d;
|
|
364
364
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
365
365
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
366
|
-
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, "orgs/public_data/create"),
|
|
366
|
+
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, "orgs/public_data/create/v1"),
|
|
367
367
|
method: "POST",
|
|
368
368
|
headers: _headers,
|
|
369
369
|
contentType: "application/json",
|
|
@@ -397,7 +397,7 @@ export class Orgs {
|
|
|
397
397
|
rawResponse: _response.rawResponse,
|
|
398
398
|
});
|
|
399
399
|
case "timeout":
|
|
400
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/public_data/create.");
|
|
400
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /orgs/public_data/create/v1.");
|
|
401
401
|
case "unknown":
|
|
402
402
|
throw new errors.ChrtError({
|
|
403
403
|
message: _response.error.errorMessage,
|
|
@@ -415,17 +415,17 @@ export class Orgs {
|
|
|
415
415
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
416
416
|
*
|
|
417
417
|
* @example
|
|
418
|
-
* await client.orgs.
|
|
418
|
+
* await client.orgs.updatePublicDataV1()
|
|
419
419
|
*/
|
|
420
|
-
|
|
421
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
420
|
+
updatePublicDataV1(request = {}, requestOptions) {
|
|
421
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePublicDataV1(request, requestOptions));
|
|
422
422
|
}
|
|
423
|
-
|
|
423
|
+
__updatePublicDataV1() {
|
|
424
424
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
425
425
|
var _a, _b, _c, _d;
|
|
426
426
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
427
427
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
428
|
-
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, "orgs/public_data/update"),
|
|
428
|
+
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, "orgs/public_data/update/v1"),
|
|
429
429
|
method: "PATCH",
|
|
430
430
|
headers: _headers,
|
|
431
431
|
contentType: "application/json",
|
|
@@ -459,7 +459,7 @@ export class Orgs {
|
|
|
459
459
|
rawResponse: _response.rawResponse,
|
|
460
460
|
});
|
|
461
461
|
case "timeout":
|
|
462
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data/update.");
|
|
462
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/public_data/update/v1.");
|
|
463
463
|
case "unknown":
|
|
464
464
|
throw new errors.ChrtError({
|
|
465
465
|
message: _response.error.errorMessage,
|
|
@@ -31,7 +31,7 @@ export declare class Payments {
|
|
|
31
31
|
protected readonly _options: Payments.Options;
|
|
32
32
|
constructor(_options?: Payments.Options);
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Creates a Stripe checkout session for a subscription with pricing based on the selected plan.
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.CreateCheckoutSessionReq} request
|
|
37
37
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -39,44 +39,44 @@ export declare class Payments {
|
|
|
39
39
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.payments.
|
|
42
|
+
* await client.payments.createCheckoutSessionV1({
|
|
43
43
|
* price_name: "courier_ops_100_usd_per_month"
|
|
44
44
|
* })
|
|
45
45
|
*/
|
|
46
|
-
|
|
47
|
-
private
|
|
46
|
+
createCheckoutSessionV1(request: Chrt.CreateCheckoutSessionReq, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateCheckoutSessionRes>;
|
|
47
|
+
private __createCheckoutSessionV1;
|
|
48
48
|
/**
|
|
49
49
|
* Synchronizes subscription data from Stripe to the authentication service for the current user.
|
|
50
50
|
*
|
|
51
51
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.payments.
|
|
54
|
+
* await client.payments.syncStripeToClerkV1()
|
|
55
55
|
*/
|
|
56
|
-
|
|
57
|
-
private
|
|
56
|
+
syncStripeToClerkV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
57
|
+
private __syncStripeToClerkV1;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Creates a Stripe Connect account for the organization to receive payments. Idempotent - returns existing account if already created.
|
|
60
60
|
*
|
|
61
61
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.payments.
|
|
64
|
+
* await client.payments.createConnectAccountV1()
|
|
65
65
|
*/
|
|
66
|
-
|
|
67
|
-
private
|
|
66
|
+
createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
67
|
+
private __createConnectAccountV1;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup.
|
|
70
70
|
*
|
|
71
71
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
72
|
*
|
|
73
73
|
* @example
|
|
74
|
-
* await client.payments.
|
|
74
|
+
* await client.payments.createConnectAccountLinkV1()
|
|
75
75
|
*/
|
|
76
|
-
|
|
77
|
-
private
|
|
76
|
+
createConnectAccountLinkV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountLinkRes>;
|
|
77
|
+
private __createConnectAccountLinkV1;
|
|
78
78
|
/**
|
|
79
|
-
* Generates
|
|
79
|
+
* Generates and sends a Stripe invoice for a shipper payment to a courier organization's Connect account. Applies a 10% application fee.
|
|
80
80
|
*
|
|
81
81
|
* @param {Chrt.GenerateInvoiceReq} request
|
|
82
82
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -84,11 +84,11 @@ export declare class Payments {
|
|
|
84
84
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
|
-
* await client.payments.
|
|
87
|
+
* await client.payments.generateInvoiceV1({
|
|
88
88
|
* shipper_pay_courier_payment_id: "shipper_pay_courier_payment_id"
|
|
89
89
|
* })
|
|
90
90
|
*/
|
|
91
|
-
|
|
92
|
-
private
|
|
91
|
+
generateInvoiceV1(request: Chrt.GenerateInvoiceReq, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.GenerateInvoiceRes>;
|
|
92
|
+
private __generateInvoiceV1;
|
|
93
93
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
94
94
|
}
|
|
@@ -20,7 +20,7 @@ export class Payments {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Creates a Stripe checkout session for a subscription with pricing based on the selected plan.
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.CreateCheckoutSessionReq} request
|
|
26
26
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -28,19 +28,19 @@ export class Payments {
|
|
|
28
28
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
-
* await client.payments.
|
|
31
|
+
* await client.payments.createCheckoutSessionV1({
|
|
32
32
|
* price_name: "courier_ops_100_usd_per_month"
|
|
33
33
|
* })
|
|
34
34
|
*/
|
|
35
|
-
|
|
36
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
35
|
+
createCheckoutSessionV1(request, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__createCheckoutSessionV1(request, requestOptions));
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
__createCheckoutSessionV1(request, requestOptions) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
var _a, _b, _c, _d;
|
|
41
41
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
42
42
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
43
|
-
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, "payments/create-checkout-session"),
|
|
43
|
+
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, "payments/create-checkout-session/v1"),
|
|
44
44
|
method: "POST",
|
|
45
45
|
headers: _headers,
|
|
46
46
|
contentType: "application/json",
|
|
@@ -74,7 +74,7 @@ export class Payments {
|
|
|
74
74
|
rawResponse: _response.rawResponse,
|
|
75
75
|
});
|
|
76
76
|
case "timeout":
|
|
77
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-checkout-session.");
|
|
77
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-checkout-session/v1.");
|
|
78
78
|
case "unknown":
|
|
79
79
|
throw new errors.ChrtError({
|
|
80
80
|
message: _response.error.errorMessage,
|
|
@@ -89,17 +89,17 @@ export class Payments {
|
|
|
89
89
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.payments.
|
|
92
|
+
* await client.payments.syncStripeToClerkV1()
|
|
93
93
|
*/
|
|
94
|
-
|
|
95
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
94
|
+
syncStripeToClerkV1(requestOptions) {
|
|
95
|
+
return core.HttpResponsePromise.fromPromise(this.__syncStripeToClerkV1(requestOptions));
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
__syncStripeToClerkV1(requestOptions) {
|
|
98
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
99
|
var _a, _b, _c, _d;
|
|
100
100
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
101
101
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
102
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "payments/sync_stripe_to_clerk"),
|
|
102
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "payments/sync_stripe_to_clerk/v1"),
|
|
103
103
|
method: "GET",
|
|
104
104
|
headers: _headers,
|
|
105
105
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -125,7 +125,7 @@ export class Payments {
|
|
|
125
125
|
rawResponse: _response.rawResponse,
|
|
126
126
|
});
|
|
127
127
|
case "timeout":
|
|
128
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /payments/sync_stripe_to_clerk.");
|
|
128
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /payments/sync_stripe_to_clerk/v1.");
|
|
129
129
|
case "unknown":
|
|
130
130
|
throw new errors.ChrtError({
|
|
131
131
|
message: _response.error.errorMessage,
|
|
@@ -135,22 +135,22 @@ export class Payments {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* Creates a Stripe Connect account for the organization to receive payments. Idempotent - returns existing account if already created.
|
|
139
139
|
*
|
|
140
140
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
|
-
* await client.payments.
|
|
143
|
+
* await client.payments.createConnectAccountV1()
|
|
144
144
|
*/
|
|
145
|
-
|
|
146
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
145
|
+
createConnectAccountV1(requestOptions) {
|
|
146
|
+
return core.HttpResponsePromise.fromPromise(this.__createConnectAccountV1(requestOptions));
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
__createConnectAccountV1(requestOptions) {
|
|
149
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
150
|
var _a, _b, _c, _d;
|
|
151
151
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
152
152
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
153
|
-
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, "payments/create-connect-account"),
|
|
153
|
+
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, "payments/create-connect-account/v1"),
|
|
154
154
|
method: "POST",
|
|
155
155
|
headers: _headers,
|
|
156
156
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -176,7 +176,7 @@ export class Payments {
|
|
|
176
176
|
rawResponse: _response.rawResponse,
|
|
177
177
|
});
|
|
178
178
|
case "timeout":
|
|
179
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-connect-account.");
|
|
179
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-connect-account/v1.");
|
|
180
180
|
case "unknown":
|
|
181
181
|
throw new errors.ChrtError({
|
|
182
182
|
message: _response.error.errorMessage,
|
|
@@ -186,22 +186,22 @@ export class Payments {
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
189
|
+
* Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup.
|
|
190
190
|
*
|
|
191
191
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
192
|
*
|
|
193
193
|
* @example
|
|
194
|
-
* await client.payments.
|
|
194
|
+
* await client.payments.createConnectAccountLinkV1()
|
|
195
195
|
*/
|
|
196
|
-
|
|
197
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
196
|
+
createConnectAccountLinkV1(requestOptions) {
|
|
197
|
+
return core.HttpResponsePromise.fromPromise(this.__createConnectAccountLinkV1(requestOptions));
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
__createConnectAccountLinkV1(requestOptions) {
|
|
200
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
201
|
var _a, _b, _c, _d;
|
|
202
202
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
203
203
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
204
|
-
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, "payments/create-connect-account-link"),
|
|
204
|
+
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, "payments/create-connect-account-link/v1"),
|
|
205
205
|
method: "POST",
|
|
206
206
|
headers: _headers,
|
|
207
207
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -227,7 +227,7 @@ export class Payments {
|
|
|
227
227
|
rawResponse: _response.rawResponse,
|
|
228
228
|
});
|
|
229
229
|
case "timeout":
|
|
230
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-connect-account-link.");
|
|
230
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/create-connect-account-link/v1.");
|
|
231
231
|
case "unknown":
|
|
232
232
|
throw new errors.ChrtError({
|
|
233
233
|
message: _response.error.errorMessage,
|
|
@@ -237,7 +237,7 @@ export class Payments {
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
240
|
-
* Generates
|
|
240
|
+
* Generates and sends a Stripe invoice for a shipper payment to a courier organization's Connect account. Applies a 10% application fee.
|
|
241
241
|
*
|
|
242
242
|
* @param {Chrt.GenerateInvoiceReq} request
|
|
243
243
|
* @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -245,19 +245,19 @@ export class Payments {
|
|
|
245
245
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
246
246
|
*
|
|
247
247
|
* @example
|
|
248
|
-
* await client.payments.
|
|
248
|
+
* await client.payments.generateInvoiceV1({
|
|
249
249
|
* shipper_pay_courier_payment_id: "shipper_pay_courier_payment_id"
|
|
250
250
|
* })
|
|
251
251
|
*/
|
|
252
|
-
|
|
253
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
252
|
+
generateInvoiceV1(request, requestOptions) {
|
|
253
|
+
return core.HttpResponsePromise.fromPromise(this.__generateInvoiceV1(request, requestOptions));
|
|
254
254
|
}
|
|
255
|
-
|
|
255
|
+
__generateInvoiceV1(request, requestOptions) {
|
|
256
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
257
257
|
var _a, _b, _c, _d;
|
|
258
258
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
259
259
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
260
|
-
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, "payments/generate-invoice"),
|
|
260
|
+
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, "payments/generate-invoice/v1"),
|
|
261
261
|
method: "POST",
|
|
262
262
|
headers: _headers,
|
|
263
263
|
contentType: "application/json",
|
|
@@ -291,7 +291,7 @@ export class Payments {
|
|
|
291
291
|
rawResponse: _response.rawResponse,
|
|
292
292
|
});
|
|
293
293
|
case "timeout":
|
|
294
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/generate-invoice.");
|
|
294
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /payments/generate-invoice/v1.");
|
|
295
295
|
case "unknown":
|
|
296
296
|
throw new errors.ChrtError({
|
|
297
297
|
message: _response.error.errorMessage,
|
|
@@ -35,32 +35,32 @@ export declare class Root {
|
|
|
35
35
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
|
-
* await client.root.
|
|
38
|
+
* await client.root.pingAuthdV1()
|
|
39
39
|
*/
|
|
40
|
-
|
|
41
|
-
private
|
|
40
|
+
pingAuthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
|
|
41
|
+
private __pingAuthdV1;
|
|
42
42
|
/**
|
|
43
43
|
* Test endpoint for optionally authenticated requests that works with or without authentication.
|
|
44
44
|
*
|
|
45
45
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
|
-
* await client.root.
|
|
48
|
+
* await client.root.pingOptionallyAuthdV1()
|
|
49
49
|
*/
|
|
50
|
-
|
|
51
|
-
private
|
|
50
|
+
pingOptionallyAuthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
51
|
+
private __pingOptionallyAuthdV1;
|
|
52
52
|
/**
|
|
53
|
-
* Returns a greeting message
|
|
53
|
+
* Returns a greeting message to verify the API is accessible.
|
|
54
54
|
*
|
|
55
55
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
|
-
* await client.root.
|
|
58
|
+
* await client.root.pingUnauthdV1()
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
private
|
|
60
|
+
pingUnauthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
61
|
+
private __pingUnauthdV1;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Returns a health status message used for monitoring system availability and uptime.
|
|
64
64
|
*
|
|
65
65
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
@@ -75,9 +75,9 @@ export declare class Root {
|
|
|
75
75
|
* @param {Root.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.root.
|
|
78
|
+
* await client.root.failureV1()
|
|
79
79
|
*/
|
|
80
|
-
|
|
81
|
-
private
|
|
80
|
+
failureV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
81
|
+
private __failureV1;
|
|
82
82
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
83
83
|
}
|