@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
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -8,20 +8,20 @@ import { Dev } from "./api/resources/dev/client/Client.js";
|
|
|
8
8
|
import { Connections } from "./api/resources/connections/client/Client.js";
|
|
9
9
|
import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.js";
|
|
10
10
|
import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { OortTaskGroups } from "./api/resources/oortTaskGroups/client/Client.js";
|
|
11
|
+
import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.js";
|
|
12
|
+
import { Drivers } from "./api/resources/drivers/client/Client.js";
|
|
13
|
+
import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.js";
|
|
14
|
+
import { Milestones } from "./api/resources/milestones/client/Client.js";
|
|
15
|
+
import { OffChrtShipperOrgConnectionInfo } from "./api/resources/offChrtShipperOrgConnectionInfo/client/Client.js";
|
|
16
|
+
import { Orders } from "./api/resources/orders/client/Client.js";
|
|
17
|
+
import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.js";
|
|
18
|
+
import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.js";
|
|
19
|
+
import { TaskGroups } from "./api/resources/taskGroups/client/Client.js";
|
|
21
20
|
import { Orgs } from "./api/resources/orgs/client/Client.js";
|
|
22
21
|
import { Payments } from "./api/resources/payments/client/Client.js";
|
|
23
22
|
import { Users } from "./api/resources/users/client/Client.js";
|
|
24
23
|
import { Notifications } from "./api/resources/notifications/client/Client.js";
|
|
24
|
+
import { OrgConnectionInfos } from "./api/resources/orgConnectionInfos/client/Client.js";
|
|
25
25
|
export declare namespace ChrtClient {
|
|
26
26
|
interface Options {
|
|
27
27
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -50,38 +50,38 @@ export declare class ChrtClient {
|
|
|
50
50
|
protected _connections: Connections | undefined;
|
|
51
51
|
protected _courierPayDriverLineItemGroup: CourierPayDriverLineItemGroup | undefined;
|
|
52
52
|
protected _courierPayDriverPayouts: CourierPayDriverPayouts | undefined;
|
|
53
|
-
protected
|
|
54
|
-
protected
|
|
55
|
-
protected
|
|
56
|
-
protected
|
|
57
|
-
protected
|
|
58
|
-
protected
|
|
59
|
-
protected
|
|
60
|
-
protected
|
|
61
|
-
protected
|
|
62
|
-
protected _oortTaskGroups: OortTaskGroups | undefined;
|
|
53
|
+
protected _courierPayDriverRateSheets: CourierPayDriverRateSheets | undefined;
|
|
54
|
+
protected _drivers: Drivers | undefined;
|
|
55
|
+
protected _milestoneNotifications: MilestoneNotifications | undefined;
|
|
56
|
+
protected _milestones: Milestones | undefined;
|
|
57
|
+
protected _offChrtShipperOrgConnectionInfo: OffChrtShipperOrgConnectionInfo | undefined;
|
|
58
|
+
protected _orders: Orders | undefined;
|
|
59
|
+
protected _orgProfiles: OrgProfiles | undefined;
|
|
60
|
+
protected _shipperContactInfo: ShipperContactInfo | undefined;
|
|
61
|
+
protected _taskGroups: TaskGroups | undefined;
|
|
63
62
|
protected _orgs: Orgs | undefined;
|
|
64
63
|
protected _payments: Payments | undefined;
|
|
65
64
|
protected _users: Users | undefined;
|
|
66
65
|
protected _notifications: Notifications | undefined;
|
|
66
|
+
protected _orgConnectionInfos: OrgConnectionInfos | undefined;
|
|
67
67
|
constructor(_options?: ChrtClient.Options);
|
|
68
68
|
get root(): Root;
|
|
69
69
|
get dev(): Dev;
|
|
70
70
|
get connections(): Connections;
|
|
71
71
|
get courierPayDriverLineItemGroup(): CourierPayDriverLineItemGroup;
|
|
72
72
|
get courierPayDriverPayouts(): CourierPayDriverPayouts;
|
|
73
|
-
get
|
|
74
|
-
get
|
|
75
|
-
get
|
|
76
|
-
get
|
|
77
|
-
get
|
|
78
|
-
get
|
|
79
|
-
get
|
|
80
|
-
get
|
|
81
|
-
get
|
|
82
|
-
get oortTaskGroups(): OortTaskGroups;
|
|
73
|
+
get courierPayDriverRateSheets(): CourierPayDriverRateSheets;
|
|
74
|
+
get drivers(): Drivers;
|
|
75
|
+
get milestoneNotifications(): MilestoneNotifications;
|
|
76
|
+
get milestones(): Milestones;
|
|
77
|
+
get offChrtShipperOrgConnectionInfo(): OffChrtShipperOrgConnectionInfo;
|
|
78
|
+
get orders(): Orders;
|
|
79
|
+
get orgProfiles(): OrgProfiles;
|
|
80
|
+
get shipperContactInfo(): ShipperContactInfo;
|
|
81
|
+
get taskGroups(): TaskGroups;
|
|
83
82
|
get orgs(): Orgs;
|
|
84
83
|
get payments(): Payments;
|
|
85
84
|
get users(): Users;
|
|
86
85
|
get notifications(): Notifications;
|
|
86
|
+
get orgConnectionInfos(): OrgConnectionInfos;
|
|
87
87
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -44,27 +44,27 @@ const Client_js_2 = require("./api/resources/dev/client/Client.js");
|
|
|
44
44
|
const Client_js_3 = require("./api/resources/connections/client/Client.js");
|
|
45
45
|
const Client_js_4 = require("./api/resources/courierPayDriverLineItemGroup/client/Client.js");
|
|
46
46
|
const Client_js_5 = require("./api/resources/courierPayDriverPayouts/client/Client.js");
|
|
47
|
-
const Client_js_6 = require("./api/resources/
|
|
48
|
-
const Client_js_7 = require("./api/resources/
|
|
49
|
-
const Client_js_8 = require("./api/resources/
|
|
50
|
-
const Client_js_9 = require("./api/resources/
|
|
51
|
-
const Client_js_10 = require("./api/resources/
|
|
52
|
-
const Client_js_11 = require("./api/resources/
|
|
53
|
-
const Client_js_12 = require("./api/resources/
|
|
54
|
-
const Client_js_13 = require("./api/resources/
|
|
55
|
-
const Client_js_14 = require("./api/resources/
|
|
56
|
-
const Client_js_15 = require("./api/resources/
|
|
57
|
-
const Client_js_16 = require("./api/resources/
|
|
58
|
-
const Client_js_17 = require("./api/resources/
|
|
59
|
-
const Client_js_18 = require("./api/resources/
|
|
60
|
-
const Client_js_19 = require("./api/resources/
|
|
47
|
+
const Client_js_6 = require("./api/resources/courierPayDriverRateSheets/client/Client.js");
|
|
48
|
+
const Client_js_7 = require("./api/resources/drivers/client/Client.js");
|
|
49
|
+
const Client_js_8 = require("./api/resources/milestoneNotifications/client/Client.js");
|
|
50
|
+
const Client_js_9 = require("./api/resources/milestones/client/Client.js");
|
|
51
|
+
const Client_js_10 = require("./api/resources/offChrtShipperOrgConnectionInfo/client/Client.js");
|
|
52
|
+
const Client_js_11 = require("./api/resources/orders/client/Client.js");
|
|
53
|
+
const Client_js_12 = require("./api/resources/orgProfiles/client/Client.js");
|
|
54
|
+
const Client_js_13 = require("./api/resources/shipperContactInfo/client/Client.js");
|
|
55
|
+
const Client_js_14 = require("./api/resources/taskGroups/client/Client.js");
|
|
56
|
+
const Client_js_15 = require("./api/resources/orgs/client/Client.js");
|
|
57
|
+
const Client_js_16 = require("./api/resources/payments/client/Client.js");
|
|
58
|
+
const Client_js_17 = require("./api/resources/users/client/Client.js");
|
|
59
|
+
const Client_js_18 = require("./api/resources/notifications/client/Client.js");
|
|
60
|
+
const Client_js_19 = require("./api/resources/orgConnectionInfos/client/Client.js");
|
|
61
61
|
class ChrtClient {
|
|
62
62
|
constructor(_options = {}) {
|
|
63
63
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
64
64
|
"X-Fern-Language": "JavaScript",
|
|
65
65
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
66
|
-
"X-Fern-SDK-Version": "0.0.
|
|
67
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.
|
|
66
|
+
"X-Fern-SDK-Version": "0.0.174",
|
|
67
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.174",
|
|
68
68
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
69
69
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
70
70
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -89,61 +89,61 @@ class ChrtClient {
|
|
|
89
89
|
var _a;
|
|
90
90
|
return ((_a = this._courierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._courierPayDriverPayouts = new Client_js_5.CourierPayDriverPayouts(this._options)));
|
|
91
91
|
}
|
|
92
|
-
get
|
|
92
|
+
get courierPayDriverRateSheets() {
|
|
93
93
|
var _a;
|
|
94
|
-
return ((_a = this.
|
|
94
|
+
return ((_a = this._courierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._courierPayDriverRateSheets = new Client_js_6.CourierPayDriverRateSheets(this._options)));
|
|
95
95
|
}
|
|
96
|
-
get
|
|
96
|
+
get drivers() {
|
|
97
97
|
var _a;
|
|
98
|
-
return ((_a = this.
|
|
98
|
+
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Client_js_7.Drivers(this._options)));
|
|
99
99
|
}
|
|
100
|
-
get
|
|
100
|
+
get milestoneNotifications() {
|
|
101
101
|
var _a;
|
|
102
|
-
return ((_a = this.
|
|
102
|
+
return ((_a = this._milestoneNotifications) !== null && _a !== void 0 ? _a : (this._milestoneNotifications = new Client_js_8.MilestoneNotifications(this._options)));
|
|
103
103
|
}
|
|
104
|
-
get
|
|
104
|
+
get milestones() {
|
|
105
105
|
var _a;
|
|
106
|
-
return ((_a = this.
|
|
106
|
+
return ((_a = this._milestones) !== null && _a !== void 0 ? _a : (this._milestones = new Client_js_9.Milestones(this._options)));
|
|
107
107
|
}
|
|
108
|
-
get
|
|
108
|
+
get offChrtShipperOrgConnectionInfo() {
|
|
109
109
|
var _a;
|
|
110
|
-
return ((_a = this.
|
|
110
|
+
return ((_a = this._offChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrgConnectionInfo = new Client_js_10.OffChrtShipperOrgConnectionInfo(this._options)));
|
|
111
111
|
}
|
|
112
|
-
get
|
|
112
|
+
get orders() {
|
|
113
113
|
var _a;
|
|
114
|
-
return ((_a = this.
|
|
114
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_11.Orders(this._options)));
|
|
115
115
|
}
|
|
116
|
-
get
|
|
116
|
+
get orgProfiles() {
|
|
117
117
|
var _a;
|
|
118
|
-
return ((_a = this.
|
|
118
|
+
return ((_a = this._orgProfiles) !== null && _a !== void 0 ? _a : (this._orgProfiles = new Client_js_12.OrgProfiles(this._options)));
|
|
119
119
|
}
|
|
120
|
-
get
|
|
120
|
+
get shipperContactInfo() {
|
|
121
121
|
var _a;
|
|
122
|
-
return ((_a = this.
|
|
122
|
+
return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new Client_js_13.ShipperContactInfo(this._options)));
|
|
123
123
|
}
|
|
124
|
-
get
|
|
124
|
+
get taskGroups() {
|
|
125
125
|
var _a;
|
|
126
|
-
return ((_a = this.
|
|
127
|
-
}
|
|
128
|
-
get oortTaskGroups() {
|
|
129
|
-
var _a;
|
|
130
|
-
return ((_a = this._oortTaskGroups) !== null && _a !== void 0 ? _a : (this._oortTaskGroups = new Client_js_15.OortTaskGroups(this._options)));
|
|
126
|
+
return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_14.TaskGroups(this._options)));
|
|
131
127
|
}
|
|
132
128
|
get orgs() {
|
|
133
129
|
var _a;
|
|
134
|
-
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new
|
|
130
|
+
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_15.Orgs(this._options)));
|
|
135
131
|
}
|
|
136
132
|
get payments() {
|
|
137
133
|
var _a;
|
|
138
|
-
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new
|
|
134
|
+
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_js_16.Payments(this._options)));
|
|
139
135
|
}
|
|
140
136
|
get users() {
|
|
141
137
|
var _a;
|
|
142
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
138
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_17.Users(this._options)));
|
|
143
139
|
}
|
|
144
140
|
get notifications() {
|
|
145
141
|
var _a;
|
|
146
|
-
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new
|
|
142
|
+
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_18.Notifications(this._options)));
|
|
143
|
+
}
|
|
144
|
+
get orgConnectionInfos() {
|
|
145
|
+
var _a;
|
|
146
|
+
return ((_a = this._orgConnectionInfos) !== null && _a !== void 0 ? _a : (this._orgConnectionInfos = new Client_js_19.OrgConnectionInfos(this._options)));
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
exports.ChrtClient = ChrtClient;
|
package/dist/cjs/api/index.d.ts
CHANGED
package/dist/cjs/api/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
17
18
|
__exportStar(require("./types/index.js"), exports);
|
|
18
19
|
__exportStar(require("./errors/index.js"), exports);
|
|
19
|
-
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -32,6 +32,8 @@ export declare class Connections {
|
|
|
32
32
|
constructor(_options?: Connections.Options);
|
|
33
33
|
get connectionToCourier(): ConnectionToCourier;
|
|
34
34
|
/**
|
|
35
|
+
* List all couriers connected to the current org
|
|
36
|
+
*
|
|
35
37
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
38
|
*
|
|
37
39
|
* @example
|
|
@@ -40,6 +42,8 @@ export declare class Connections {
|
|
|
40
42
|
listCouriers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierOrgConnectionInfo1[]>;
|
|
41
43
|
private __listCouriers;
|
|
42
44
|
/**
|
|
45
|
+
* List all shippers connected to the current org
|
|
46
|
+
*
|
|
43
47
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
48
|
*
|
|
45
49
|
* @example
|
|
@@ -60,6 +60,8 @@ class Connections {
|
|
|
60
60
|
return ((_a = this._connectionToCourier) !== null && _a !== void 0 ? _a : (this._connectionToCourier = new Client_js_1.ConnectionToCourier(this._options)));
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
+
* List all couriers connected to the current org
|
|
64
|
+
*
|
|
63
65
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
66
|
*
|
|
65
67
|
* @example
|
|
@@ -107,6 +109,8 @@ class Connections {
|
|
|
107
109
|
});
|
|
108
110
|
}
|
|
109
111
|
/**
|
|
112
|
+
* List all shippers connected to the current org
|
|
113
|
+
*
|
|
110
114
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
115
|
*
|
|
112
116
|
* @example
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../index.js";
|
|
7
|
+
import { AddLineItems } from "../resources/addLineItems/client/Client.js";
|
|
8
|
+
import { RemoveLineItems } from "../resources/removeLineItems/client/Client.js";
|
|
7
9
|
export declare namespace CourierPayDriverLineItemGroup {
|
|
8
10
|
interface Options {
|
|
9
11
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -27,29 +29,24 @@ export declare namespace CourierPayDriverLineItemGroup {
|
|
|
27
29
|
}
|
|
28
30
|
export declare class CourierPayDriverLineItemGroup {
|
|
29
31
|
protected readonly _options: CourierPayDriverLineItemGroup.Options;
|
|
32
|
+
protected _addLineItems: AddLineItems | undefined;
|
|
33
|
+
protected _removeLineItems: RemoveLineItems | undefined;
|
|
30
34
|
constructor(_options?: CourierPayDriverLineItemGroup.Options);
|
|
35
|
+
get addLineItems(): AddLineItems;
|
|
36
|
+
get removeLineItems(): RemoveLineItems;
|
|
31
37
|
/**
|
|
32
|
-
*
|
|
38
|
+
* Get a courier pay driver line item group by task group ID
|
|
33
39
|
*
|
|
34
|
-
* @param {string}
|
|
35
|
-
* @param {Chrt.AddLineItemsReq} request
|
|
40
|
+
* @param {string} taskGroupId
|
|
36
41
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
42
|
*
|
|
38
43
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
39
44
|
*
|
|
40
45
|
* @example
|
|
41
|
-
* await client.courierPayDriverLineItemGroup.
|
|
42
|
-
* courier_pay_driver_line_item_group_id: "courier_pay_driver_line_item_group_id",
|
|
43
|
-
* line_items: [{
|
|
44
|
-
* created_at: "2024-01-15T09:30:00Z",
|
|
45
|
-
* item: "base_rate",
|
|
46
|
-
* quantity: 1.1,
|
|
47
|
-
* rate: 1.1
|
|
48
|
-
* }]
|
|
49
|
-
* })
|
|
46
|
+
* await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
|
|
50
47
|
*/
|
|
51
|
-
|
|
52
|
-
private
|
|
48
|
+
byTaskGroupId(taskGroupId: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
49
|
+
private __byTaskGroupId;
|
|
53
50
|
/**
|
|
54
51
|
* Create a courier pay driver line item group by calculating line items from rate sheet and task group
|
|
55
52
|
*
|
|
@@ -82,28 +79,6 @@ export declare class CourierPayDriverLineItemGroup {
|
|
|
82
79
|
*/
|
|
83
80
|
preview(request: Chrt.CourierPayDriverLineItemGroupPreviewRequest, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroupClientCreate1>;
|
|
84
81
|
private __preview;
|
|
85
|
-
/**
|
|
86
|
-
* Remove line items from a courier pay driver line item group by exact match
|
|
87
|
-
*
|
|
88
|
-
* @param {string} id
|
|
89
|
-
* @param {Chrt.RemoveLineItemsReq} request
|
|
90
|
-
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
|
-
*
|
|
92
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* await client.courierPayDriverLineItemGroup.removeLineItems("id", {
|
|
96
|
-
* courier_pay_driver_line_item_group_id: "courier_pay_driver_line_item_group_id",
|
|
97
|
-
* line_items: [{
|
|
98
|
-
* created_at: "2024-01-15T09:30:00Z",
|
|
99
|
-
* item: "base_rate",
|
|
100
|
-
* quantity: 1.1,
|
|
101
|
-
* rate: 1.1
|
|
102
|
-
* }]
|
|
103
|
-
* })
|
|
104
|
-
*/
|
|
105
|
-
removeLineItems(id: string, request: Chrt.RemoveLineItemsReq, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
106
|
-
private __removeLineItems;
|
|
107
82
|
/**
|
|
108
83
|
* Get a courier pay driver line item group by ID
|
|
109
84
|
*
|
|
@@ -117,18 +92,5 @@ export declare class CourierPayDriverLineItemGroup {
|
|
|
117
92
|
*/
|
|
118
93
|
getById(id: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
119
94
|
private __getById;
|
|
120
|
-
/**
|
|
121
|
-
* Get a courier pay driver line item group by task group ID
|
|
122
|
-
*
|
|
123
|
-
* @param {string} taskGroupId
|
|
124
|
-
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
|
-
*
|
|
126
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
127
|
-
*
|
|
128
|
-
* @example
|
|
129
|
-
* await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
|
|
130
|
-
*/
|
|
131
|
-
byTaskGroupId(taskGroupId: string, requestOptions?: CourierPayDriverLineItemGroup.RequestOptions): core.HttpResponsePromise<Chrt.CourierPayDriverLineItemGroup1>;
|
|
132
|
-
private __byTaskGroupId;
|
|
133
95
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
134
96
|
}
|
|
@@ -44,17 +44,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
48
|
exports.CourierPayDriverLineItemGroup = void 0;
|
|
60
49
|
const environments = __importStar(require("../../../../environments.js"));
|
|
@@ -62,47 +51,41 @@ const core = __importStar(require("../../../../core/index.js"));
|
|
|
62
51
|
const Chrt = __importStar(require("../../../index.js"));
|
|
63
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
64
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
const Client_js_1 = require("../resources/addLineItems/client/Client.js");
|
|
55
|
+
const Client_js_2 = require("../resources/removeLineItems/client/Client.js");
|
|
65
56
|
class CourierPayDriverLineItemGroup {
|
|
66
57
|
constructor(_options = {}) {
|
|
67
58
|
this._options = _options;
|
|
68
59
|
}
|
|
60
|
+
get addLineItems() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._addLineItems) !== null && _a !== void 0 ? _a : (this._addLineItems = new Client_js_1.AddLineItems(this._options)));
|
|
63
|
+
}
|
|
64
|
+
get removeLineItems() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this._removeLineItems) !== null && _a !== void 0 ? _a : (this._removeLineItems = new Client_js_2.RemoveLineItems(this._options)));
|
|
67
|
+
}
|
|
69
68
|
/**
|
|
70
|
-
*
|
|
69
|
+
* Get a courier pay driver line item group by task group ID
|
|
71
70
|
*
|
|
72
|
-
* @param {string}
|
|
73
|
-
* @param {Chrt.AddLineItemsReq} request
|
|
71
|
+
* @param {string} taskGroupId
|
|
74
72
|
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
73
|
*
|
|
76
74
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
77
75
|
*
|
|
78
76
|
* @example
|
|
79
|
-
* await client.courierPayDriverLineItemGroup.
|
|
80
|
-
* courier_pay_driver_line_item_group_id: "courier_pay_driver_line_item_group_id",
|
|
81
|
-
* line_items: [{
|
|
82
|
-
* created_at: "2024-01-15T09:30:00Z",
|
|
83
|
-
* item: "base_rate",
|
|
84
|
-
* quantity: 1.1,
|
|
85
|
-
* rate: 1.1
|
|
86
|
-
* }]
|
|
87
|
-
* })
|
|
77
|
+
* await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
|
|
88
78
|
*/
|
|
89
|
-
|
|
90
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
79
|
+
byTaskGroupId(taskGroupId, requestOptions) {
|
|
80
|
+
return core.HttpResponsePromise.fromPromise(this.__byTaskGroupId(taskGroupId, requestOptions));
|
|
91
81
|
}
|
|
92
|
-
|
|
82
|
+
__byTaskGroupId(taskGroupId, requestOptions) {
|
|
93
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
84
|
var _a, _b, _c, _d;
|
|
95
|
-
const { courier_pay_driver_line_item_group_id: courierPayDriverLineItemGroupId } = request, _body = __rest(request, ["courier_pay_driver_line_item_group_id"]);
|
|
96
|
-
const _queryParams = {};
|
|
97
|
-
_queryParams["courier_pay_driver_line_item_group_id"] = courierPayDriverLineItemGroupId;
|
|
98
85
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
99
|
-
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/
|
|
100
|
-
method: "
|
|
86
|
+
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/by_task_group/${encodeURIComponent(taskGroupId)}`),
|
|
87
|
+
method: "GET",
|
|
101
88
|
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
102
|
-
contentType: "application/json",
|
|
103
|
-
queryParameters: _queryParams,
|
|
104
|
-
requestType: "json",
|
|
105
|
-
body: _body,
|
|
106
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
107
90
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
108
91
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -130,7 +113,7 @@ class CourierPayDriverLineItemGroup {
|
|
|
130
113
|
rawResponse: _response.rawResponse,
|
|
131
114
|
});
|
|
132
115
|
case "timeout":
|
|
133
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
116
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/by_task_group/{task_group_id}.");
|
|
134
117
|
case "unknown":
|
|
135
118
|
throw new errors.ChrtError({
|
|
136
119
|
message: _response.error.errorMessage,
|
|
@@ -296,79 +279,6 @@ class CourierPayDriverLineItemGroup {
|
|
|
296
279
|
}
|
|
297
280
|
});
|
|
298
281
|
}
|
|
299
|
-
/**
|
|
300
|
-
* Remove line items from a courier pay driver line item group by exact match
|
|
301
|
-
*
|
|
302
|
-
* @param {string} id
|
|
303
|
-
* @param {Chrt.RemoveLineItemsReq} request
|
|
304
|
-
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
305
|
-
*
|
|
306
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
307
|
-
*
|
|
308
|
-
* @example
|
|
309
|
-
* await client.courierPayDriverLineItemGroup.removeLineItems("id", {
|
|
310
|
-
* courier_pay_driver_line_item_group_id: "courier_pay_driver_line_item_group_id",
|
|
311
|
-
* line_items: [{
|
|
312
|
-
* created_at: "2024-01-15T09:30:00Z",
|
|
313
|
-
* item: "base_rate",
|
|
314
|
-
* quantity: 1.1,
|
|
315
|
-
* rate: 1.1
|
|
316
|
-
* }]
|
|
317
|
-
* })
|
|
318
|
-
*/
|
|
319
|
-
removeLineItems(id, request, requestOptions) {
|
|
320
|
-
return core.HttpResponsePromise.fromPromise(this.__removeLineItems(id, request, requestOptions));
|
|
321
|
-
}
|
|
322
|
-
__removeLineItems(id, request, requestOptions) {
|
|
323
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
var _a, _b, _c, _d;
|
|
325
|
-
const { courier_pay_driver_line_item_group_id: courierPayDriverLineItemGroupId } = request, _body = __rest(request, ["courier_pay_driver_line_item_group_id"]);
|
|
326
|
-
const _queryParams = {};
|
|
327
|
-
_queryParams["courier_pay_driver_line_item_group_id"] = courierPayDriverLineItemGroupId;
|
|
328
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
329
|
-
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)}`),
|
|
330
|
-
method: "PATCH",
|
|
331
|
-
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
332
|
-
contentType: "application/json",
|
|
333
|
-
queryParameters: _queryParams,
|
|
334
|
-
requestType: "json",
|
|
335
|
-
body: _body,
|
|
336
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
337
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
338
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
339
|
-
});
|
|
340
|
-
if (_response.ok) {
|
|
341
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
342
|
-
}
|
|
343
|
-
if (_response.error.reason === "status-code") {
|
|
344
|
-
switch (_response.error.statusCode) {
|
|
345
|
-
case 422:
|
|
346
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
347
|
-
default:
|
|
348
|
-
throw new errors.ChrtError({
|
|
349
|
-
statusCode: _response.error.statusCode,
|
|
350
|
-
body: _response.error.body,
|
|
351
|
-
rawResponse: _response.rawResponse,
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
switch (_response.error.reason) {
|
|
356
|
-
case "non-json":
|
|
357
|
-
throw new errors.ChrtError({
|
|
358
|
-
statusCode: _response.error.statusCode,
|
|
359
|
-
body: _response.error.rawBody,
|
|
360
|
-
rawResponse: _response.rawResponse,
|
|
361
|
-
});
|
|
362
|
-
case "timeout":
|
|
363
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/courier_pay_driver_line_item_groups/remove_line_items/{id}.");
|
|
364
|
-
case "unknown":
|
|
365
|
-
throw new errors.ChrtError({
|
|
366
|
-
message: _response.error.errorMessage,
|
|
367
|
-
rawResponse: _response.rawResponse,
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
282
|
/**
|
|
373
283
|
* Get a courier pay driver line item group by ID
|
|
374
284
|
*
|
|
@@ -426,63 +336,6 @@ class CourierPayDriverLineItemGroup {
|
|
|
426
336
|
}
|
|
427
337
|
});
|
|
428
338
|
}
|
|
429
|
-
/**
|
|
430
|
-
* Get a courier pay driver line item group by task group ID
|
|
431
|
-
*
|
|
432
|
-
* @param {string} taskGroupId
|
|
433
|
-
* @param {CourierPayDriverLineItemGroup.RequestOptions} requestOptions - Request-specific configuration.
|
|
434
|
-
*
|
|
435
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
436
|
-
*
|
|
437
|
-
* @example
|
|
438
|
-
* await client.courierPayDriverLineItemGroup.byTaskGroupId("task_group_id")
|
|
439
|
-
*/
|
|
440
|
-
byTaskGroupId(taskGroupId, requestOptions) {
|
|
441
|
-
return core.HttpResponsePromise.fromPromise(this.__byTaskGroupId(taskGroupId, requestOptions));
|
|
442
|
-
}
|
|
443
|
-
__byTaskGroupId(taskGroupId, requestOptions) {
|
|
444
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
445
|
-
var _a, _b, _c, _d;
|
|
446
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
447
|
-
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/${encodeURIComponent(taskGroupId)}`),
|
|
448
|
-
method: "GET",
|
|
449
|
-
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
450
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
451
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
452
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
453
|
-
});
|
|
454
|
-
if (_response.ok) {
|
|
455
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
456
|
-
}
|
|
457
|
-
if (_response.error.reason === "status-code") {
|
|
458
|
-
switch (_response.error.statusCode) {
|
|
459
|
-
case 422:
|
|
460
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
461
|
-
default:
|
|
462
|
-
throw new errors.ChrtError({
|
|
463
|
-
statusCode: _response.error.statusCode,
|
|
464
|
-
body: _response.error.body,
|
|
465
|
-
rawResponse: _response.rawResponse,
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
switch (_response.error.reason) {
|
|
470
|
-
case "non-json":
|
|
471
|
-
throw new errors.ChrtError({
|
|
472
|
-
statusCode: _response.error.statusCode,
|
|
473
|
-
body: _response.error.rawBody,
|
|
474
|
-
rawResponse: _response.rawResponse,
|
|
475
|
-
});
|
|
476
|
-
case "timeout":
|
|
477
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/courier_pay_driver_line_item_groups/{task_group_id}.");
|
|
478
|
-
case "unknown":
|
|
479
|
-
throw new errors.ChrtError({
|
|
480
|
-
message: _response.error.errorMessage,
|
|
481
|
-
rawResponse: _response.rawResponse,
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
339
|
_getAuthorizationHeader() {
|
|
487
340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
488
341
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export { type AddLineItemsReq } from "./AddLineItemsReq.js";
|
|
2
1
|
export { type CourierPayDriverLineItemGroupCreateRequest } from "./CourierPayDriverLineItemGroupCreateRequest.js";
|
|
3
2
|
export { type CourierPayDriverLineItemGroupPreviewRequest } from "./CourierPayDriverLineItemGroupPreviewRequest.js";
|
|
4
|
-
export { type RemoveLineItemsReq } from "./RemoveLineItemsReq.js";
|