@chrt-inc/typescript-sdk 0.0.170-h → 0.0.174
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/dist/cjs/Client.d.ts +30 -30
- package/dist/cjs/Client.js +42 -42
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/connections/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/connections/client/Client.js +4 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +11 -49
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +19 -166
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/index.d.ts +1 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/index.js +1 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.js +136 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/{client → resources/addLineItems/client}/requests/AddLineItemsReq.d.ts +1 -3
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/index.js +43 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.js +136 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/{client → resources/removeLineItems/client}/requests/RemoveLineItemsReq.d.ts +1 -3
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/courierPayDriverPayouts/client/Client.js +10 -10
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +111 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → courierPayDriverRateSheets}/client/Client.js +81 -113
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.d.ts +2 -0
- package/dist/cjs/api/resources/courierPayDriverRateSheets/index.js +18 -0
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.ts +5 -0
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/courierPayDriverRateSheets/types/index.js +17 -0
- package/dist/cjs/api/resources/dev/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/dev/client/Client.js +2 -0
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +152 -0
- package/dist/cjs/api/resources/{oortDrivers → drivers}/client/Client.js +118 -113
- package/dist/cjs/api/resources/index.d.ts +20 -20
- package/dist/cjs/api/resources/index.js +21 -21
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.d.ts +16 -12
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.js +21 -17
- package/dist/cjs/api/resources/milestones/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/milestones/client/Client.js +203 -0
- package/dist/cjs/api/resources/milestones/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/milestones/index.d.ts +2 -0
- package/dist/cjs/api/resources/milestones/index.js +18 -0
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/milestones/resources/blurhash/client/Client.js +129 -0
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.d.ts +74 -0
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +253 -0
- package/dist/{esm/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.mts → cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts} +2 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/milestones/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/milestones/resources/index.js +42 -0
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/client/Client.js +3 -3
- package/dist/cjs/api/resources/notifications/resources/{courier → courierPreferences}/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/notifications/resources/{courier → courierPreferences}/client/Client.js +18 -18
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/index.js +3 -3
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.js +13 -13
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/Client.js +25 -25
- package/dist/cjs/api/resources/orders/client/Client.d.ts +108 -0
- package/dist/cjs/api/resources/orders/client/Client.js +359 -0
- package/dist/cjs/api/resources/orders/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/index.js +18 -0
- package/dist/cjs/api/resources/orders/resources/full/client/Client.d.ts +65 -0
- package/dist/cjs/api/resources/orders/resources/full/client/Client.js +223 -0
- package/dist/cjs/api/resources/orders/resources/full/client/index.js +2 -0
- package/dist/cjs/api/resources/orders/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/index.js +37 -0
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/orgConnectionInfos/client/Client.js +22 -0
- package/dist/cjs/api/resources/orgConnectionInfos/client/index.js +2 -0
- package/dist/cjs/api/resources/orgConnectionInfos/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgConnectionInfos/index.js +18 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/Client.js +240 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/index.js +43 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/Client.js +240 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/index.js +17 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgProfiles/client/Client.d.ts +101 -0
- package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/Client.js +85 -79
- package/dist/cjs/api/resources/orgProfiles/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgProfiles/client/index.js +17 -0
- package/dist/{esm/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.d.mts → cjs/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/orgProfiles/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgProfiles/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgProfiles/index.js +17 -0
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/orgs/client/Client.js +47 -0
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +148 -0
- package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/Client.js +112 -112
- package/dist/cjs/api/resources/shipperContactInfo/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperContactInfo/client/index.js +17 -0
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipperContactInfo/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipperContactInfo/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/client/Client.d.ts +96 -0
- package/dist/cjs/api/resources/taskGroups/client/Client.js +354 -0
- package/dist/cjs/api/resources/taskGroups/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskGroups/client/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.js +5 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskGroups/index.js +18 -0
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.d.ts +55 -0
- package/dist/cjs/api/resources/taskGroups/resources/full/client/Client.js +177 -0
- package/dist/cjs/api/resources/taskGroups/resources/full/client/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/full/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/full/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/taskGroups/resources/index.js +42 -0
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/Client.js +130 -0
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/index.js +17 -0
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.js +5 -0
- package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/index.d.ts +1 -0
- package/dist/cjs/api/resources/taskGroups/resources/togglePause/index.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +30 -30
- package/dist/esm/Client.mjs +34 -34
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/connections/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/connections/client/Client.mjs +4 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +11 -49
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +19 -166
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/index.d.mts +1 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/index.mjs +1 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/Client.mjs +99 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/{client → resources/addLineItems/client}/requests/AddLineItemsReq.d.mts +1 -3
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/addLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/index.mjs +4 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/Client.mjs +99 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/{client → resources/removeLineItems/client}/requests/RemoveLineItemsReq.d.mts +1 -3
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/courierPayDriverPayouts/client/Client.mjs +10 -10
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +111 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → courierPayDriverRateSheets}/client/Client.mjs +79 -111
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.d.mts +2 -0
- package/dist/esm/api/resources/courierPayDriverRateSheets/index.mjs +2 -0
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.d.mts +5 -0
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.d.mts +1 -0
- package/dist/esm/api/resources/courierPayDriverRateSheets/types/index.mjs +1 -0
- package/dist/esm/api/resources/dev/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/dev/client/Client.mjs +2 -0
- package/dist/esm/api/resources/drivers/client/Client.d.mts +152 -0
- package/dist/esm/api/resources/{oortDrivers → drivers}/client/Client.mjs +116 -111
- package/dist/esm/api/resources/index.d.mts +20 -20
- package/dist/esm/api/resources/index.mjs +20 -20
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.d.mts +16 -12
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/Client.mjs +19 -15
- package/dist/esm/api/resources/milestones/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/milestones/client/Client.mjs +166 -0
- package/dist/esm/api/resources/milestones/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/milestones/index.d.mts +2 -0
- package/dist/esm/api/resources/milestones/index.mjs +2 -0
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/milestones/resources/blurhash/client/Client.mjs +92 -0
- package/dist/esm/api/resources/milestones/resources/blurhash/client/index.mjs +1 -0
- package/dist/esm/api/resources/milestones/resources/images/client/Client.d.mts +74 -0
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +216 -0
- package/dist/{cjs/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.ts → esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts} +2 -2
- package/dist/esm/api/resources/milestones/resources/images/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/milestones/resources/images/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/milestones/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/milestones/resources/index.mjs +3 -0
- package/dist/esm/api/resources/notifications/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/notifications/client/Client.mjs +3 -3
- package/dist/esm/api/resources/notifications/resources/{courier → courierPreferences}/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/notifications/resources/{courier → courierPreferences}/client/Client.mjs +16 -16
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/index.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.mjs +13 -13
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/Client.mjs +23 -23
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orders/client/Client.d.mts +108 -0
- package/dist/esm/api/resources/orders/client/Client.mjs +322 -0
- package/dist/esm/api/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orders/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/index.mjs +2 -0
- package/dist/esm/api/resources/orders/resources/full/client/Client.d.mts +65 -0
- package/dist/esm/api/resources/orders/resources/full/client/Client.mjs +186 -0
- package/dist/esm/api/resources/orders/resources/full/client/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/full/client/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/index.mjs +1 -0
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/orgConnectionInfos/client/Client.mjs +18 -0
- package/dist/esm/api/resources/orgConnectionInfos/client/index.d.mts +1 -0
- package/dist/esm/api/resources/orgConnectionInfos/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgConnectionInfos/index.d.mts +2 -0
- package/dist/esm/api/resources/orgConnectionInfos/index.mjs +2 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/Client.mjs +203 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/index.mjs +4 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/Client.mjs +203 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/index.mjs +1 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgProfiles/client/Client.d.mts +101 -0
- package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/Client.mjs +83 -77
- package/dist/esm/api/resources/orgProfiles/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgProfiles/client/index.mjs +1 -0
- package/dist/{cjs/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → esm/api/resources/orgProfiles/client/requests/OrgProfilesGetAvatarRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/orgProfiles/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgProfiles/index.d.mts +1 -0
- package/dist/esm/api/resources/orgProfiles/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/orgs/client/Client.mjs +47 -0
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +148 -0
- package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/Client.mjs +110 -110
- package/dist/esm/api/resources/shipperContactInfo/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperContactInfo/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipperContactInfo/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipperContactInfo/index.d.mts +1 -0
- package/dist/esm/api/resources/shipperContactInfo/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/client/Client.d.mts +96 -0
- package/dist/esm/api/resources/taskGroups/client/Client.mjs +317 -0
- package/dist/esm/api/resources/taskGroups/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskGroups/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.mjs +4 -0
- package/dist/esm/api/resources/taskGroups/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/index.d.mts +2 -0
- package/dist/esm/api/resources/taskGroups/index.mjs +2 -0
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.d.mts +55 -0
- package/dist/esm/api/resources/taskGroups/resources/full/client/Client.mjs +140 -0
- package/dist/esm/api/resources/taskGroups/resources/full/client/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/full/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/full/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/full/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/taskGroups/resources/index.mjs +3 -0
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/Client.mjs +93 -0
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/index.d.mts +2 -0
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/SetTaskGroupPauseReq.mjs +4 -0
- package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/taskGroups/resources/togglePause/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/taskGroups/resources/togglePause/index.d.mts +1 -0
- package/dist/esm/api/resources/taskGroups/resources/togglePause/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +965 -805
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +0 -134
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.js +0 -474
- package/dist/cjs/api/resources/oortDrivers/client/Client.d.ts +0 -147
- package/dist/cjs/api/resources/oortMilestones/client/Client.d.ts +0 -114
- package/dist/cjs/api/resources/oortMilestones/client/Client.js +0 -431
- package/dist/cjs/api/resources/oortMilestones/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/oortOrders/client/Client.d.ts +0 -138
- package/dist/cjs/api/resources/oortOrders/client/Client.js +0 -509
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -110
- package/dist/cjs/api/resources/oortOrgProfiles/client/Client.d.ts +0 -95
- package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.d.ts +0 -148
- package/dist/cjs/api/resources/oortTaskGroups/client/Client.d.ts +0 -128
- package/dist/cjs/api/resources/oortTaskGroups/client/Client.js +0 -515
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.d.mts +0 -134
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.mjs +0 -437
- package/dist/esm/api/resources/oortDrivers/client/Client.d.mts +0 -147
- package/dist/esm/api/resources/oortMilestones/client/Client.d.mts +0 -114
- package/dist/esm/api/resources/oortMilestones/client/Client.mjs +0 -394
- package/dist/esm/api/resources/oortMilestones/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/oortOrders/client/Client.d.mts +0 -138
- package/dist/esm/api/resources/oortOrders/client/Client.mjs +0 -472
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.d.mts +0 -110
- package/dist/esm/api/resources/oortOrgProfiles/client/Client.d.mts +0 -95
- package/dist/esm/api/resources/oortShipperContactInfo/client/Client.d.mts +0 -148
- package/dist/esm/api/resources/oortTaskGroups/client/Client.d.mts +0 -128
- package/dist/esm/api/resources/oortTaskGroups/client/Client.mjs +0 -478
- /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.js +0 -0
- /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/{client → resources/addLineItems/client}/requests/AddLineItemsReq.js +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.js +0 -0
- /package/dist/cjs/api/resources/courierPayDriverLineItemGroup/{client → resources/removeLineItems/client}/requests/RemoveLineItemsReq.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.js +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.js → courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortDrivers/client/requests/DriverCreateReq.js → courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js} +0 -0
- /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/DriverCreateReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortDrivers/client/requests/DriverLastSeenReq.js → drivers/client/requests/DriverCreateReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/DriverLastSeenReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortDrivers/client/requests/SetDriverActivationReq.js → drivers/client/requests/DriverLastSeenReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortDrivers/client/requests/UpdateDriverDetailsReq.js → drivers/client/requests/SetDriverActivationReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.js → drivers/client/requests/UpdateDriverDetailsReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → drivers}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortDrivers → drivers}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestoneNotifications}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestoneNotifications}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.js → milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestoneNotifications}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.js +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.js +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/requests/index.js +0 -0
- /package/dist/{esm/api/resources/notifications/resources/courier/client/requests/index.mjs → cjs/api/resources/milestones/resources/blurhash/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{oortOrders/client/requests → milestones/resources/blurhash/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestones/resources/blurhash}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortMilestones → milestones/resources/blurhash}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrders → milestones/resources/images}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrders → milestones/resources/images}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.js} +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos → milestones/resources/images}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones/resources/images}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones/resources/images}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos → notifications/resources/courierPreferences}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos → notifications/resources/courierPreferences}/client/index.js +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courier → courierPreferences}/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.js → notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{courier → courierPreferences}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles → notifications/resources/courierPreferences}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrders → notifications/resources/courierPreferences}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrders → notifications/resources/courierPreferences}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrders/client/requests/CreateOrderReq.js → offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js → offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortShipperContactInfo → offChrtShipperOrgConnectionInfo}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos → offChrtShipperOrgConnectionInfo}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos → offChrtShipperOrgConnectionInfo}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortShipperContactInfo → orders}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortShipperContactInfo → orders}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrders → orders}/client/requests/CreateOrderReq.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.js → orders/client/requests/CreateOrderReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortOrders → orders}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups → orders}/client/requests/index.js +0 -0
- /package/dist/{esm/api/resources/oortCourierPayDriverRateSheets/client/requests/index.mjs → cjs/api/resources/orders/resources/full/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles → orders/resources/full}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles → orders/resources/full}/index.js +0 -0
- /package/dist/{esm/api/resources/oortDrivers/client/requests/index.mjs → cjs/api/resources/orgConnectionInfos/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups → orgConnectionInfos/resources/courier}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups → orgConnectionInfos/resources/courier}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js → orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/courier}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/courier}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.js → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.js → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups → orgConnectionInfos/resources/shipper}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups → orgConnectionInfos/resources/shipper}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.js → orgProfiles/client/requests/CourierOrgProfileClientCreate3.js} +0 -0
- /package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.js → orgProfiles/client/requests/CourierOrgProfileClientUpdate3.js} +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups/client/requests/SetTaskGroupPauseReq.js → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js} +0 -0
- /package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.js → shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.d.ts +0 -0
- /package/dist/{esm/api/resources/oortMilestoneNotificationPreferences/client/requests/index.mjs → cjs/api/resources/taskGroups/resources/full/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.d.ts +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/courierPayDriverLineItemGroup/{client → resources/addLineItems/client}/requests/AddLineItemsReq.mjs +0 -0
- /package/dist/esm/api/resources/{oortMilestones → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier → courierPayDriverLineItemGroup/resources/addLineItems}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/courierPayDriverLineItemGroup/{client → resources/removeLineItems/client}/requests/RemoveLineItemsReq.mjs +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/removeLineItems}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortDrivers → courierPayDriverRateSheets}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.mjs +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.mjs → courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{oortOrders → courierPayDriverRateSheets}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortDrivers/client/requests/DriverCreateReq.mjs → courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → drivers}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/DriverCreateReq.d.mts +0 -0
- /package/dist/esm/api/resources/{oortDrivers/client/requests/DriverLastSeenReq.mjs → drivers/client/requests/DriverCreateReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/DriverLastSeenReq.d.mts +0 -0
- /package/dist/esm/api/resources/{oortDrivers/client/requests/SetDriverActivationReq.mjs → drivers/client/requests/DriverLastSeenReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.d.mts +0 -0
- /package/dist/esm/api/resources/{oortDrivers/client/requests/UpdateDriverDetailsReq.mjs → drivers/client/requests/SetDriverActivationReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.d.mts +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs → drivers/client/requests/UpdateDriverDetailsReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos → drivers}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortDrivers → drivers}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortDrivers → drivers}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortMilestones → milestoneNotifications}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortMilestones → milestoneNotifications}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +0 -0
- /package/dist/esm/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.mjs → milestoneNotifications/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles → milestoneNotifications}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.d.mts +0 -0
- /package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.mjs +0 -0
- /package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.d.mts +0 -0
- /package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.mjs +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → milestones}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups/client/requests/index.mjs → milestones/resources/blurhash/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/{oortMilestones → milestones/resources/blurhash}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortMilestones → milestones/resources/blurhash}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOrders → milestones/resources/images}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrders → milestones/resources/images}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.mjs} +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones/resources/images}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → milestones/resources/images}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos → notifications/resources/courierPreferences}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos → notifications/resources/courierPreferences}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courier → courierPreferences}/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.mjs → notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/notifications/resources/{courier → courierPreferences}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrders → notifications/resources/courierPreferences}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrders → notifications/resources/courierPreferences}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrders/client/requests/CreateOrderReq.mjs → offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.mjs → offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos → offChrtShipperOrgConnectionInfo}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos → offChrtShipperOrgConnectionInfo}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → orders}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → orders}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOrders → orders}/client/requests/CreateOrderReq.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs → orders/client/requests/CreateOrderReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortOrders → orders}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles → orders/resources/full}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles → orders/resources/full}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → orgConnectionInfos/resources/courier}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → orgConnectionInfos/resources/courier}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs → orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs → orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/courier}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/courier}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.mjs → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.mjs → orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → orgConnectionInfos/resources/shipper}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → orgConnectionInfos/resources/shipper}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.d.mts +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.mjs → orgProfiles/client/requests/CourierOrgProfileClientCreate3.mjs} +0 -0
- /package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.d.mts +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.mjs → orgProfiles/client/requests/CourierOrgProfileClientUpdate3.mjs} +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups/client/requests/SetTaskGroupPauseReq.mjs → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.d.mts +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.mjs → shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.d.mts +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.d.mts +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
|
+
export class RemoveLineItems {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Remove line items from a courier pay driver line item group by exact match
|
|
24
|
+
*
|
|
25
|
+
* @param {string} id
|
|
26
|
+
* @param {Chrt.courierPayDriverLineItemGroup.RemoveLineItemsReq} request
|
|
27
|
+
* @param {RemoveLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.courierPayDriverLineItemGroup.removeLineItems.byId("id", {
|
|
33
|
+
* line_items: [{
|
|
34
|
+
* created_at: "2024-01-15T09:30:00Z",
|
|
35
|
+
* item: "base_rate",
|
|
36
|
+
* quantity: 1.1,
|
|
37
|
+
* rate: 1.1
|
|
38
|
+
* }]
|
|
39
|
+
* })
|
|
40
|
+
*/
|
|
41
|
+
byId(id, request, requestOptions) {
|
|
42
|
+
return core.HttpResponsePromise.fromPromise(this.__byId(id, request, requestOptions));
|
|
43
|
+
}
|
|
44
|
+
__byId(id, request, requestOptions) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
var _a, _b, _c, _d;
|
|
47
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
48
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_line_item_groups/remove_line_items/${encodeURIComponent(id)}`),
|
|
49
|
+
method: "PATCH",
|
|
50
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
51
|
+
contentType: "application/json",
|
|
52
|
+
requestType: "json",
|
|
53
|
+
body: request,
|
|
54
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
55
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
56
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
57
|
+
});
|
|
58
|
+
if (_response.ok) {
|
|
59
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
60
|
+
}
|
|
61
|
+
if (_response.error.reason === "status-code") {
|
|
62
|
+
switch (_response.error.statusCode) {
|
|
63
|
+
case 422:
|
|
64
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
65
|
+
default:
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.body,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
switch (_response.error.reason) {
|
|
74
|
+
case "non-json":
|
|
75
|
+
throw new errors.ChrtError({
|
|
76
|
+
statusCode: _response.error.statusCode,
|
|
77
|
+
body: _response.error.rawBody,
|
|
78
|
+
rawResponse: _response.rawResponse,
|
|
79
|
+
});
|
|
80
|
+
case "timeout":
|
|
81
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/remove_line_items/{id}.");
|
|
82
|
+
case "unknown":
|
|
83
|
+
throw new errors.ChrtError({
|
|
84
|
+
message: _response.error.errorMessage,
|
|
85
|
+
rawResponse: _response.rawResponse,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
_getAuthorizationHeader() {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
93
|
+
if (bearer != null) {
|
|
94
|
+
return `Bearer ${bearer}`;
|
|
95
|
+
}
|
|
96
|
+
return undefined;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* courier_pay_driver_line_item_group_id: "courier_pay_driver_line_item_group_id",
|
|
9
8
|
* line_items: [{
|
|
10
9
|
* created_at: "2024-01-15T09:30:00Z",
|
|
11
10
|
* item: "base_rate",
|
|
@@ -15,7 +14,6 @@ import * as Chrt from "../../../../index.mjs";
|
|
|
15
14
|
* }
|
|
16
15
|
*/
|
|
17
16
|
export interface RemoveLineItemsReq {
|
|
18
|
-
courier_pay_driver_line_item_group_id: string;
|
|
19
17
|
/** Exact line items to remove (must match exactly) */
|
|
20
18
|
line_items: Chrt.LineItem1[];
|
|
21
19
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type RemoveLineItemsReq } from "./RemoveLineItemsReq.mjs";
|
|
@@ -51,10 +51,10 @@ export declare class CourierPayDriverPayouts {
|
|
|
51
51
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.courierPayDriverPayouts.
|
|
54
|
+
* await client.courierPayDriverPayouts.listByDriverId("driver_id")
|
|
55
55
|
*/
|
|
56
|
-
|
|
57
|
-
private
|
|
56
|
+
listByDriverId(driverId: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
57
|
+
private __listByDriverId;
|
|
58
58
|
/**
|
|
59
59
|
* @param {string} id
|
|
60
60
|
* @param {CourierPayDriverPayouts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -62,9 +62,9 @@ export declare class CourierPayDriverPayouts {
|
|
|
62
62
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.courierPayDriverPayouts.
|
|
65
|
+
* await client.courierPayDriverPayouts.getById("id")
|
|
66
66
|
*/
|
|
67
|
-
|
|
68
|
-
private
|
|
67
|
+
getById(id: string, requestOptions?: CourierPayDriverPayouts.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
68
|
+
private __getById;
|
|
69
69
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
70
70
|
}
|
|
@@ -89,16 +89,16 @@ export class CourierPayDriverPayouts {
|
|
|
89
89
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.courierPayDriverPayouts.
|
|
92
|
+
* await client.courierPayDriverPayouts.listByDriverId("driver_id")
|
|
93
93
|
*/
|
|
94
|
-
|
|
95
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
94
|
+
listByDriverId(driverId, requestOptions) {
|
|
95
|
+
return core.HttpResponsePromise.fromPromise(this.__listByDriverId(driverId, requestOptions));
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
__listByDriverId(driverId, requestOptions) {
|
|
98
98
|
return __awaiter(this, void 0, void 0, function* () {
|
|
99
99
|
var _a, _b, _c, _d;
|
|
100
100
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
101
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_payouts/${encodeURIComponent(driverId)}`),
|
|
101
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_payouts/list/${encodeURIComponent(driverId)}`),
|
|
102
102
|
method: "GET",
|
|
103
103
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
104
104
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -128,7 +128,7 @@ export class CourierPayDriverPayouts {
|
|
|
128
128
|
rawResponse: _response.rawResponse,
|
|
129
129
|
});
|
|
130
130
|
case "timeout":
|
|
131
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/{driver_id}.");
|
|
131
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_payouts/list/{driver_id}.");
|
|
132
132
|
case "unknown":
|
|
133
133
|
throw new errors.ChrtError({
|
|
134
134
|
message: _response.error.errorMessage,
|
|
@@ -144,12 +144,12 @@ export class CourierPayDriverPayouts {
|
|
|
144
144
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
145
145
|
*
|
|
146
146
|
* @example
|
|
147
|
-
* await client.courierPayDriverPayouts.
|
|
147
|
+
* await client.courierPayDriverPayouts.getById("id")
|
|
148
148
|
*/
|
|
149
|
-
|
|
150
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
149
|
+
getById(id, requestOptions) {
|
|
150
|
+
return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
__getById(id, requestOptions) {
|
|
153
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
154
|
var _a, _b, _c, _d;
|
|
155
155
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../index.mjs";
|
|
7
|
+
export declare namespace CourierPayDriverRateSheets {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional headers to include in the request. */
|
|
25
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare class CourierPayDriverRateSheets {
|
|
29
|
+
protected readonly _options: CourierPayDriverRateSheets.Options;
|
|
30
|
+
constructor(_options?: CourierPayDriverRateSheets.Options);
|
|
31
|
+
/**
|
|
32
|
+
* This is for creating a rate sheet
|
|
33
|
+
*
|
|
34
|
+
* @param {Chrt.CourierPayDriverRateSheetClientCreate1} request
|
|
35
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.courierPayDriverRateSheets.create({
|
|
41
|
+
* additional_mileage_rate_usd_per_mile: 1.1,
|
|
42
|
+
* after_hours: 1.1,
|
|
43
|
+
* base_mileage_distance_miles: 1.1,
|
|
44
|
+
* base_mileage_rate_usd_per_instance: 1.1,
|
|
45
|
+
* courier_org_id: "courier_org_id",
|
|
46
|
+
* dangerous_goods_rate_usd_per_instance: 1.1,
|
|
47
|
+
* extra_stop_rate_usd: 1.1,
|
|
48
|
+
* fuel_surchage_rate_usd_per_mile: 1.1,
|
|
49
|
+
* holiday: 1.1,
|
|
50
|
+
* long_distance_surcharge_miles_before_surcharge: 1.1,
|
|
51
|
+
* long_distance_surcharge_rate_usd_per_mile: 1.1,
|
|
52
|
+
* schema_version: 1,
|
|
53
|
+
* wait_time_before_charge_minutes: 1.1,
|
|
54
|
+
* wait_time_rate_usd_per_minute: 1.1,
|
|
55
|
+
* weekend: 1.1
|
|
56
|
+
* })
|
|
57
|
+
*/
|
|
58
|
+
create(request: Chrt.CourierPayDriverRateSheetClientCreate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<string>;
|
|
59
|
+
private __create;
|
|
60
|
+
/**
|
|
61
|
+
* Get rate sheet(s) by rate sheet ID or driver ID
|
|
62
|
+
*
|
|
63
|
+
* @param {Chrt.CourierPayDriverRateSheetsGetRequest} request
|
|
64
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.courierPayDriverRateSheets.get()
|
|
70
|
+
*/
|
|
71
|
+
get(request?: Chrt.CourierPayDriverRateSheetsGetRequest, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheetsGetResponse>;
|
|
72
|
+
private __get;
|
|
73
|
+
/**
|
|
74
|
+
* This is for getting a list of all rate sheets by courier org id from the JWT
|
|
75
|
+
*
|
|
76
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.courierPayDriverRateSheets.listByCourierOrgId()
|
|
80
|
+
*/
|
|
81
|
+
listByCourierOrgId(requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1[]>;
|
|
82
|
+
private __listByCourierOrgId;
|
|
83
|
+
/**
|
|
84
|
+
* Delete a rate sheet scoped to the caller's org
|
|
85
|
+
*
|
|
86
|
+
* @param {string} id
|
|
87
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* await client.courierPayDriverRateSheets.deleteById("id")
|
|
93
|
+
*/
|
|
94
|
+
deleteById(id: string, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
95
|
+
private __deleteById;
|
|
96
|
+
/**
|
|
97
|
+
* Update a rate sheet
|
|
98
|
+
*
|
|
99
|
+
* @param {string} id
|
|
100
|
+
* @param {Chrt.CourierPayDriverRateSheetClientUpdate1} request
|
|
101
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* await client.courierPayDriverRateSheets.updateById("id")
|
|
107
|
+
*/
|
|
108
|
+
updateById(id: string, request?: Chrt.CourierPayDriverRateSheetClientUpdate1, requestOptions?: CourierPayDriverRateSheets.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverRateSheet1>;
|
|
109
|
+
private __updateById;
|
|
110
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
111
|
+
}
|
|
@@ -15,32 +15,45 @@ import * as core from "../../../../core/index.mjs";
|
|
|
15
15
|
import * as Chrt from "../../../index.mjs";
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
-
export class
|
|
18
|
+
export class CourierPayDriverRateSheets {
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* This is for creating a rate sheet
|
|
24
24
|
*
|
|
25
|
-
* @param {Chrt.
|
|
26
|
-
* @param {
|
|
25
|
+
* @param {Chrt.CourierPayDriverRateSheetClientCreate1} request
|
|
26
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
27
|
*
|
|
28
28
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
-
* await client.
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* await client.courierPayDriverRateSheets.create({
|
|
32
|
+
* additional_mileage_rate_usd_per_mile: 1.1,
|
|
33
|
+
* after_hours: 1.1,
|
|
34
|
+
* base_mileage_distance_miles: 1.1,
|
|
35
|
+
* base_mileage_rate_usd_per_instance: 1.1,
|
|
36
|
+
* courier_org_id: "courier_org_id",
|
|
37
|
+
* dangerous_goods_rate_usd_per_instance: 1.1,
|
|
38
|
+
* extra_stop_rate_usd: 1.1,
|
|
39
|
+
* fuel_surchage_rate_usd_per_mile: 1.1,
|
|
40
|
+
* holiday: 1.1,
|
|
41
|
+
* long_distance_surcharge_miles_before_surcharge: 1.1,
|
|
42
|
+
* long_distance_surcharge_rate_usd_per_mile: 1.1,
|
|
43
|
+
* schema_version: 1,
|
|
44
|
+
* wait_time_before_charge_minutes: 1.1,
|
|
45
|
+
* wait_time_rate_usd_per_minute: 1.1,
|
|
46
|
+
* weekend: 1.1
|
|
34
47
|
* })
|
|
35
48
|
*/
|
|
36
|
-
|
|
37
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
49
|
+
create(request, requestOptions) {
|
|
50
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
38
51
|
}
|
|
39
|
-
|
|
52
|
+
__create(request, requestOptions) {
|
|
40
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
54
|
var _a, _b, _c, _d;
|
|
42
55
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
43
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/
|
|
56
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_rate_sheets/create"),
|
|
44
57
|
method: "POST",
|
|
45
58
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
46
59
|
contentType: "application/json",
|
|
@@ -73,7 +86,7 @@ export class OortOrgConnectionInfos {
|
|
|
73
86
|
rawResponse: _response.rawResponse,
|
|
74
87
|
});
|
|
75
88
|
case "timeout":
|
|
76
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/
|
|
89
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/courier_pay_driver_rate_sheets/create.");
|
|
77
90
|
case "unknown":
|
|
78
91
|
throw new errors.ChrtError({
|
|
79
92
|
message: _response.error.errorMessage,
|
|
@@ -83,38 +96,44 @@ export class OortOrgConnectionInfos {
|
|
|
83
96
|
});
|
|
84
97
|
}
|
|
85
98
|
/**
|
|
86
|
-
*
|
|
99
|
+
* Get rate sheet(s) by rate sheet ID or driver ID
|
|
87
100
|
*
|
|
88
|
-
* @param {Chrt.
|
|
89
|
-
* @param {
|
|
101
|
+
* @param {Chrt.CourierPayDriverRateSheetsGetRequest} request
|
|
102
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
103
|
*
|
|
91
104
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
92
105
|
*
|
|
93
106
|
* @example
|
|
94
|
-
* await client.
|
|
95
|
-
* email_address_primary: "email_address_primary",
|
|
96
|
-
* schema_version: 1
|
|
97
|
-
* })
|
|
107
|
+
* await client.courierPayDriverRateSheets.get()
|
|
98
108
|
*/
|
|
99
|
-
|
|
100
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
109
|
+
get(request = {}, requestOptions) {
|
|
110
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
101
111
|
}
|
|
102
|
-
|
|
103
|
-
return __awaiter(this,
|
|
112
|
+
__get() {
|
|
113
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
104
114
|
var _a, _b, _c, _d;
|
|
115
|
+
const { id, driver_id: driverId } = request;
|
|
116
|
+
const _queryParams = {};
|
|
117
|
+
if (id != null) {
|
|
118
|
+
_queryParams["id"] = id;
|
|
119
|
+
}
|
|
120
|
+
if (driverId != null) {
|
|
121
|
+
_queryParams["driver_id"] = driverId;
|
|
122
|
+
}
|
|
105
123
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
106
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/
|
|
107
|
-
method: "
|
|
124
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_rate_sheets/get"),
|
|
125
|
+
method: "GET",
|
|
108
126
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
109
|
-
|
|
110
|
-
requestType: "json",
|
|
111
|
-
body: request,
|
|
127
|
+
queryParameters: _queryParams,
|
|
112
128
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
113
129
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
114
130
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
115
131
|
});
|
|
116
132
|
if (_response.ok) {
|
|
117
|
-
return {
|
|
133
|
+
return {
|
|
134
|
+
data: _response.body,
|
|
135
|
+
rawResponse: _response.rawResponse,
|
|
136
|
+
};
|
|
118
137
|
}
|
|
119
138
|
if (_response.error.reason === "status-code") {
|
|
120
139
|
switch (_response.error.statusCode) {
|
|
@@ -136,56 +155,7 @@ export class OortOrgConnectionInfos {
|
|
|
136
155
|
rawResponse: _response.rawResponse,
|
|
137
156
|
});
|
|
138
157
|
case "timeout":
|
|
139
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
140
|
-
case "unknown":
|
|
141
|
-
throw new errors.ChrtError({
|
|
142
|
-
message: _response.error.errorMessage,
|
|
143
|
-
rawResponse: _response.rawResponse,
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Gets the courier org info for the authenticated user
|
|
150
|
-
*
|
|
151
|
-
* @param {OortOrgConnectionInfos.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
|
-
*
|
|
153
|
-
* @example
|
|
154
|
-
* await client.oortOrgConnectionInfos.getCourierOrgInfo()
|
|
155
|
-
*/
|
|
156
|
-
getCourierOrgInfo(requestOptions) {
|
|
157
|
-
return core.HttpResponsePromise.fromPromise(this.__getCourierOrgInfo(requestOptions));
|
|
158
|
-
}
|
|
159
|
-
__getCourierOrgInfo(requestOptions) {
|
|
160
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
-
var _a, _b, _c, _d;
|
|
162
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
163
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/org_connection_infos/get/courier_org_info"),
|
|
164
|
-
method: "GET",
|
|
165
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
166
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
167
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
168
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
169
|
-
});
|
|
170
|
-
if (_response.ok) {
|
|
171
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
172
|
-
}
|
|
173
|
-
if (_response.error.reason === "status-code") {
|
|
174
|
-
throw new errors.ChrtError({
|
|
175
|
-
statusCode: _response.error.statusCode,
|
|
176
|
-
body: _response.error.body,
|
|
177
|
-
rawResponse: _response.rawResponse,
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
switch (_response.error.reason) {
|
|
181
|
-
case "non-json":
|
|
182
|
-
throw new errors.ChrtError({
|
|
183
|
-
statusCode: _response.error.statusCode,
|
|
184
|
-
body: _response.error.rawBody,
|
|
185
|
-
rawResponse: _response.rawResponse,
|
|
186
|
-
});
|
|
187
|
-
case "timeout":
|
|
188
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/org_connection_infos/get/courier_org_info.");
|
|
158
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/get.");
|
|
189
159
|
case "unknown":
|
|
190
160
|
throw new errors.ChrtError({
|
|
191
161
|
message: _response.error.errorMessage,
|
|
@@ -195,21 +165,21 @@ export class OortOrgConnectionInfos {
|
|
|
195
165
|
});
|
|
196
166
|
}
|
|
197
167
|
/**
|
|
198
|
-
*
|
|
168
|
+
* This is for getting a list of all rate sheets by courier org id from the JWT
|
|
199
169
|
*
|
|
200
|
-
* @param {
|
|
170
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
201
171
|
*
|
|
202
172
|
* @example
|
|
203
|
-
* await client.
|
|
173
|
+
* await client.courierPayDriverRateSheets.listByCourierOrgId()
|
|
204
174
|
*/
|
|
205
|
-
|
|
206
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
175
|
+
listByCourierOrgId(requestOptions) {
|
|
176
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
|
|
207
177
|
}
|
|
208
|
-
|
|
178
|
+
__listByCourierOrgId(requestOptions) {
|
|
209
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
180
|
var _a, _b, _c, _d;
|
|
211
181
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
212
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/
|
|
182
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_rate_sheets/list"),
|
|
213
183
|
method: "GET",
|
|
214
184
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
215
185
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -234,7 +204,7 @@ export class OortOrgConnectionInfos {
|
|
|
234
204
|
rawResponse: _response.rawResponse,
|
|
235
205
|
});
|
|
236
206
|
case "timeout":
|
|
237
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/
|
|
207
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_rate_sheets/list.");
|
|
238
208
|
case "unknown":
|
|
239
209
|
throw new errors.ChrtError({
|
|
240
210
|
message: _response.error.errorMessage,
|
|
@@ -244,29 +214,26 @@ export class OortOrgConnectionInfos {
|
|
|
244
214
|
});
|
|
245
215
|
}
|
|
246
216
|
/**
|
|
247
|
-
*
|
|
217
|
+
* Delete a rate sheet scoped to the caller's org
|
|
248
218
|
*
|
|
249
|
-
* @param {
|
|
250
|
-
* @param {
|
|
219
|
+
* @param {string} id
|
|
220
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
251
221
|
*
|
|
252
222
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
253
223
|
*
|
|
254
224
|
* @example
|
|
255
|
-
* await client.
|
|
225
|
+
* await client.courierPayDriverRateSheets.deleteById("id")
|
|
256
226
|
*/
|
|
257
|
-
|
|
258
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
227
|
+
deleteById(id, requestOptions) {
|
|
228
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteById(id, requestOptions));
|
|
259
229
|
}
|
|
260
|
-
|
|
261
|
-
return __awaiter(this,
|
|
230
|
+
__deleteById(id, requestOptions) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
262
232
|
var _a, _b, _c, _d;
|
|
263
233
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
264
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
265
|
-
method: "
|
|
234
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_rate_sheets/${encodeURIComponent(id)}`),
|
|
235
|
+
method: "DELETE",
|
|
266
236
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
267
|
-
contentType: "application/json",
|
|
268
|
-
requestType: "json",
|
|
269
|
-
body: request,
|
|
270
237
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
271
238
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
272
239
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -294,7 +261,7 @@ export class OortOrgConnectionInfos {
|
|
|
294
261
|
rawResponse: _response.rawResponse,
|
|
295
262
|
});
|
|
296
263
|
case "timeout":
|
|
297
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
264
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/courier_pay_driver_rate_sheets/{id}.");
|
|
298
265
|
case "unknown":
|
|
299
266
|
throw new errors.ChrtError({
|
|
300
267
|
message: _response.error.errorMessage,
|
|
@@ -304,24 +271,25 @@ export class OortOrgConnectionInfos {
|
|
|
304
271
|
});
|
|
305
272
|
}
|
|
306
273
|
/**
|
|
307
|
-
* Update
|
|
274
|
+
* Update a rate sheet
|
|
308
275
|
*
|
|
309
|
-
* @param {
|
|
310
|
-
* @param {
|
|
276
|
+
* @param {string} id
|
|
277
|
+
* @param {Chrt.CourierPayDriverRateSheetClientUpdate1} request
|
|
278
|
+
* @param {CourierPayDriverRateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
311
279
|
*
|
|
312
280
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
313
281
|
*
|
|
314
282
|
* @example
|
|
315
|
-
* await client.
|
|
283
|
+
* await client.courierPayDriverRateSheets.updateById("id")
|
|
316
284
|
*/
|
|
317
|
-
|
|
318
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
285
|
+
updateById(id, request = {}, requestOptions) {
|
|
286
|
+
return core.HttpResponsePromise.fromPromise(this.__updateById(id, request, requestOptions));
|
|
319
287
|
}
|
|
320
|
-
|
|
321
|
-
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
288
|
+
__updateById(id_1) {
|
|
289
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
322
290
|
var _a, _b, _c, _d;
|
|
323
291
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
324
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local,
|
|
292
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/courier_pay_driver_rate_sheets/${encodeURIComponent(id)}`),
|
|
325
293
|
method: "PATCH",
|
|
326
294
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
327
295
|
contentType: "application/json",
|
|
@@ -354,7 +322,7 @@ export class OortOrgConnectionInfos {
|
|
|
354
322
|
rawResponse: _response.rawResponse,
|
|
355
323
|
});
|
|
356
324
|
case "timeout":
|
|
357
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/
|
|
325
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_rate_sheets/{id}.");
|
|
358
326
|
case "unknown":
|
|
359
327
|
throw new errors.ChrtError({
|
|
360
328
|
message: _response.error.errorMessage,
|