@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
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { type CourierPayDriverRateSheetClientCreate1 } from "./CourierPayDriverRateSheetClientCreate1.mjs";
|
|
2
|
+
export { type CourierPayDriverRateSheetsGetRequest } from "./CourierPayDriverRateSheetsGetRequest.mjs";
|
|
2
3
|
export { type CourierPayDriverRateSheetClientUpdate1 } from "./CourierPayDriverRateSheetClientUpdate1.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CourierPayDriverRateSheetsGetResponse.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CourierPayDriverRateSheetsGetResponse.mjs";
|
|
@@ -68,6 +68,8 @@ export declare class Dev {
|
|
|
68
68
|
createTemplate(request: Chrt.TemplateReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.TemplateRes>;
|
|
69
69
|
private __createTemplate;
|
|
70
70
|
/**
|
|
71
|
+
* Get the user id from the jwt: This is in the description
|
|
72
|
+
*
|
|
71
73
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
74
|
*
|
|
73
75
|
* @example
|
|
@@ -0,0 +1,152 @@
|
|
|
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 Drivers {
|
|
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 Drivers {
|
|
29
|
+
protected readonly _options: Drivers.Options;
|
|
30
|
+
constructor(_options?: Drivers.Options);
|
|
31
|
+
/**
|
|
32
|
+
* Returns a driver by user_id from the JWT
|
|
33
|
+
*
|
|
34
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await client.drivers.get()
|
|
38
|
+
*/
|
|
39
|
+
get(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
40
|
+
private __get;
|
|
41
|
+
/**
|
|
42
|
+
* Create a new driver for the authenticated organization
|
|
43
|
+
*
|
|
44
|
+
* @param {Chrt.DriverCreateReq} request
|
|
45
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.drivers.create({
|
|
51
|
+
* org_member: {
|
|
52
|
+
* role: "role",
|
|
53
|
+
* user_id: "user_id"
|
|
54
|
+
* }
|
|
55
|
+
* })
|
|
56
|
+
*/
|
|
57
|
+
create(request: Chrt.DriverCreateReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<string>;
|
|
58
|
+
private __create;
|
|
59
|
+
/**
|
|
60
|
+
* Updates a driver's last seen location and timestamp
|
|
61
|
+
*
|
|
62
|
+
* @param {Chrt.DriverLastSeenReq} request
|
|
63
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.drivers.lastSeen({
|
|
69
|
+
* location: {
|
|
70
|
+
* type: "Feature"
|
|
71
|
+
* }
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
lastSeen(request: Chrt.DriverLastSeenReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
75
|
+
private __lastSeen;
|
|
76
|
+
/**
|
|
77
|
+
* Returns a list of all drivers belonging to the authenticated organization.
|
|
78
|
+
*
|
|
79
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await client.drivers.list()
|
|
83
|
+
*/
|
|
84
|
+
list(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1[]>;
|
|
85
|
+
private __list;
|
|
86
|
+
/**
|
|
87
|
+
* Returns a list of all organization members paired with their corresponding driver information (if they are drivers).
|
|
88
|
+
*
|
|
89
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* await client.drivers.listOrgMembersAndDrivers()
|
|
93
|
+
*/
|
|
94
|
+
listOrgMembersAndDrivers(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.OrgMembersAndDrivers[]>;
|
|
95
|
+
private __listOrgMembersAndDrivers;
|
|
96
|
+
/**
|
|
97
|
+
* Set a driver's activation status (active=true/false)
|
|
98
|
+
*
|
|
99
|
+
* @param {Chrt.SetDriverActivationReq} request
|
|
100
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.drivers.setActivation({
|
|
106
|
+
* active: true,
|
|
107
|
+
* driver_object_id: "driver_object_id"
|
|
108
|
+
* })
|
|
109
|
+
*/
|
|
110
|
+
setActivation(request: Chrt.SetDriverActivationReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
111
|
+
private __setActivation;
|
|
112
|
+
/**
|
|
113
|
+
* @param {Chrt.UpdateDriverDetailsReq} request
|
|
114
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* await client.drivers.updateDriver({
|
|
120
|
+
* driver_object_id: "driver_object_id"
|
|
121
|
+
* })
|
|
122
|
+
*/
|
|
123
|
+
updateDriver(request: Chrt.UpdateDriverDetailsReq, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
124
|
+
private __updateDriver;
|
|
125
|
+
/**
|
|
126
|
+
* Returns a driver by id
|
|
127
|
+
*
|
|
128
|
+
* @param {string} driverId
|
|
129
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* await client.drivers.getByDriverId("driver_id")
|
|
135
|
+
*/
|
|
136
|
+
getByDriverId(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1>;
|
|
137
|
+
private __getByDriverId;
|
|
138
|
+
/**
|
|
139
|
+
* Deletes a driver from the database
|
|
140
|
+
*
|
|
141
|
+
* @param {string} driverId
|
|
142
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* await client.drivers.delete("driver_id")
|
|
148
|
+
*/
|
|
149
|
+
delete(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
150
|
+
private __delete;
|
|
151
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
152
|
+
}
|
|
@@ -15,81 +15,26 @@ 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 Drivers {
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param {OortDrivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
-
*
|
|
26
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* await client.oortDrivers.getOortDriversByDriverId("driver_id")
|
|
30
|
-
*/
|
|
31
|
-
getOortDriversByDriverId(driverId, requestOptions) {
|
|
32
|
-
return core.HttpResponsePromise.fromPromise(this.__getOortDriversByDriverId(driverId, requestOptions));
|
|
33
|
-
}
|
|
34
|
-
__getOortDriversByDriverId(driverId, requestOptions) {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
var _a, _b, _c, _d;
|
|
37
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
38
|
-
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/drivers/by_driver_id/${encodeURIComponent(driverId)}`),
|
|
39
|
-
method: "GET",
|
|
40
|
-
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),
|
|
41
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
42
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
43
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
44
|
-
});
|
|
45
|
-
if (_response.ok) {
|
|
46
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
47
|
-
}
|
|
48
|
-
if (_response.error.reason === "status-code") {
|
|
49
|
-
switch (_response.error.statusCode) {
|
|
50
|
-
case 422:
|
|
51
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
52
|
-
default:
|
|
53
|
-
throw new errors.ChrtError({
|
|
54
|
-
statusCode: _response.error.statusCode,
|
|
55
|
-
body: _response.error.body,
|
|
56
|
-
rawResponse: _response.rawResponse,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
switch (_response.error.reason) {
|
|
61
|
-
case "non-json":
|
|
62
|
-
throw new errors.ChrtError({
|
|
63
|
-
statusCode: _response.error.statusCode,
|
|
64
|
-
body: _response.error.rawBody,
|
|
65
|
-
rawResponse: _response.rawResponse,
|
|
66
|
-
});
|
|
67
|
-
case "timeout":
|
|
68
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/by_driver_id/{driver_id}.");
|
|
69
|
-
case "unknown":
|
|
70
|
-
throw new errors.ChrtError({
|
|
71
|
-
message: _response.error.errorMessage,
|
|
72
|
-
rawResponse: _response.rawResponse,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Uses user_id from the JWT. (originally included for use by Pytest)
|
|
23
|
+
* Returns a driver by user_id from the JWT
|
|
79
24
|
*
|
|
80
|
-
* @param {
|
|
25
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
26
|
*
|
|
82
27
|
* @example
|
|
83
|
-
* await client.
|
|
28
|
+
* await client.drivers.get()
|
|
84
29
|
*/
|
|
85
|
-
|
|
86
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
get(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
|
|
87
32
|
}
|
|
88
|
-
|
|
33
|
+
__get(requestOptions) {
|
|
89
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
35
|
var _a, _b, _c, _d;
|
|
91
36
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
92
|
-
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/drivers/
|
|
37
|
+
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/drivers/by_jwt_user_id"),
|
|
93
38
|
method: "GET",
|
|
94
39
|
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),
|
|
95
40
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -114,7 +59,7 @@ export class OortDrivers {
|
|
|
114
59
|
rawResponse: _response.rawResponse,
|
|
115
60
|
});
|
|
116
61
|
case "timeout":
|
|
117
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/
|
|
62
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/by_jwt_user_id.");
|
|
118
63
|
case "unknown":
|
|
119
64
|
throw new errors.ChrtError({
|
|
120
65
|
message: _response.error.errorMessage,
|
|
@@ -124,23 +69,25 @@ export class OortDrivers {
|
|
|
124
69
|
});
|
|
125
70
|
}
|
|
126
71
|
/**
|
|
72
|
+
* Create a new driver for the authenticated organization
|
|
73
|
+
*
|
|
127
74
|
* @param {Chrt.DriverCreateReq} request
|
|
128
|
-
* @param {
|
|
75
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
76
|
*
|
|
130
77
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
131
78
|
*
|
|
132
79
|
* @example
|
|
133
|
-
* await client.
|
|
80
|
+
* await client.drivers.create({
|
|
134
81
|
* org_member: {
|
|
135
82
|
* role: "role",
|
|
136
83
|
* user_id: "user_id"
|
|
137
84
|
* }
|
|
138
85
|
* })
|
|
139
86
|
*/
|
|
140
|
-
|
|
141
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
87
|
+
create(request, requestOptions) {
|
|
88
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
142
89
|
}
|
|
143
|
-
|
|
90
|
+
__create(request, requestOptions) {
|
|
144
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
92
|
var _a, _b, _c, _d;
|
|
146
93
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -187,22 +134,24 @@ export class OortDrivers {
|
|
|
187
134
|
});
|
|
188
135
|
}
|
|
189
136
|
/**
|
|
137
|
+
* Updates a driver's last seen location and timestamp
|
|
138
|
+
*
|
|
190
139
|
* @param {Chrt.DriverLastSeenReq} request
|
|
191
|
-
* @param {
|
|
140
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
141
|
*
|
|
193
142
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
194
143
|
*
|
|
195
144
|
* @example
|
|
196
|
-
* await client.
|
|
145
|
+
* await client.drivers.lastSeen({
|
|
197
146
|
* location: {
|
|
198
147
|
* type: "Feature"
|
|
199
148
|
* }
|
|
200
149
|
* })
|
|
201
150
|
*/
|
|
202
|
-
|
|
203
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
151
|
+
lastSeen(request, requestOptions) {
|
|
152
|
+
return core.HttpResponsePromise.fromPromise(this.__lastSeen(request, requestOptions));
|
|
204
153
|
}
|
|
205
|
-
|
|
154
|
+
__lastSeen(request, requestOptions) {
|
|
206
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
207
156
|
var _a, _b, _c, _d;
|
|
208
157
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -249,21 +198,21 @@ export class OortDrivers {
|
|
|
249
198
|
});
|
|
250
199
|
}
|
|
251
200
|
/**
|
|
252
|
-
*
|
|
201
|
+
* Returns a list of all drivers belonging to the authenticated organization.
|
|
253
202
|
*
|
|
254
|
-
* @param {
|
|
203
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
204
|
*
|
|
256
205
|
* @example
|
|
257
|
-
* await client.
|
|
206
|
+
* await client.drivers.list()
|
|
258
207
|
*/
|
|
259
|
-
|
|
260
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
208
|
+
list(requestOptions) {
|
|
209
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
261
210
|
}
|
|
262
|
-
|
|
211
|
+
__list(requestOptions) {
|
|
263
212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
264
213
|
var _a, _b, _c, _d;
|
|
265
214
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
266
|
-
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/drivers/list
|
|
215
|
+
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/drivers/list"),
|
|
267
216
|
method: "GET",
|
|
268
217
|
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),
|
|
269
218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -288,7 +237,7 @@ export class OortDrivers {
|
|
|
288
237
|
rawResponse: _response.rawResponse,
|
|
289
238
|
});
|
|
290
239
|
case "timeout":
|
|
291
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/list
|
|
240
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/list.");
|
|
292
241
|
case "unknown":
|
|
293
242
|
throw new errors.ChrtError({
|
|
294
243
|
message: _response.error.errorMessage,
|
|
@@ -298,21 +247,21 @@ export class OortDrivers {
|
|
|
298
247
|
});
|
|
299
248
|
}
|
|
300
249
|
/**
|
|
301
|
-
*
|
|
250
|
+
* Returns a list of all organization members paired with their corresponding driver information (if they are drivers).
|
|
302
251
|
*
|
|
303
|
-
* @param {
|
|
252
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
304
253
|
*
|
|
305
254
|
* @example
|
|
306
|
-
* await client.
|
|
255
|
+
* await client.drivers.listOrgMembersAndDrivers()
|
|
307
256
|
*/
|
|
308
|
-
|
|
309
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
257
|
+
listOrgMembersAndDrivers(requestOptions) {
|
|
258
|
+
return core.HttpResponsePromise.fromPromise(this.__listOrgMembersAndDrivers(requestOptions));
|
|
310
259
|
}
|
|
311
|
-
|
|
260
|
+
__listOrgMembersAndDrivers(requestOptions) {
|
|
312
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
313
262
|
var _a, _b, _c, _d;
|
|
314
263
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
315
|
-
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/drivers/list
|
|
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, "oort/drivers/org_members_and_drivers/list"),
|
|
316
265
|
method: "GET",
|
|
317
266
|
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),
|
|
318
267
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -337,7 +286,7 @@ export class OortDrivers {
|
|
|
337
286
|
rawResponse: _response.rawResponse,
|
|
338
287
|
});
|
|
339
288
|
case "timeout":
|
|
340
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/list
|
|
289
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/org_members_and_drivers/list.");
|
|
341
290
|
case "unknown":
|
|
342
291
|
throw new errors.ChrtError({
|
|
343
292
|
message: _response.error.errorMessage,
|
|
@@ -347,24 +296,23 @@ export class OortDrivers {
|
|
|
347
296
|
});
|
|
348
297
|
}
|
|
349
298
|
/**
|
|
350
|
-
* Set a driver's activation status (active=true/false)
|
|
351
|
-
* This route is idempotent - setting a driver to their current status is allowed.
|
|
299
|
+
* Set a driver's activation status (active=true/false)
|
|
352
300
|
*
|
|
353
301
|
* @param {Chrt.SetDriverActivationReq} request
|
|
354
|
-
* @param {
|
|
302
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
355
303
|
*
|
|
356
304
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
357
305
|
*
|
|
358
306
|
* @example
|
|
359
|
-
* await client.
|
|
307
|
+
* await client.drivers.setActivation({
|
|
360
308
|
* active: true,
|
|
361
309
|
* driver_object_id: "driver_object_id"
|
|
362
310
|
* })
|
|
363
311
|
*/
|
|
364
|
-
|
|
365
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
312
|
+
setActivation(request, requestOptions) {
|
|
313
|
+
return core.HttpResponsePromise.fromPromise(this.__setActivation(request, requestOptions));
|
|
366
314
|
}
|
|
367
|
-
|
|
315
|
+
__setActivation(request, requestOptions) {
|
|
368
316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
369
317
|
var _a, _b, _c, _d;
|
|
370
318
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -412,24 +360,24 @@ export class OortDrivers {
|
|
|
412
360
|
}
|
|
413
361
|
/**
|
|
414
362
|
* @param {Chrt.UpdateDriverDetailsReq} request
|
|
415
|
-
* @param {
|
|
363
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
416
364
|
*
|
|
417
365
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
418
366
|
*
|
|
419
367
|
* @example
|
|
420
|
-
* await client.
|
|
368
|
+
* await client.drivers.updateDriver({
|
|
421
369
|
* driver_object_id: "driver_object_id"
|
|
422
370
|
* })
|
|
423
371
|
*/
|
|
424
|
-
|
|
425
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
372
|
+
updateDriver(request, requestOptions) {
|
|
373
|
+
return core.HttpResponsePromise.fromPromise(this.__updateDriver(request, requestOptions));
|
|
426
374
|
}
|
|
427
|
-
|
|
375
|
+
__updateDriver(request, requestOptions) {
|
|
428
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
429
377
|
var _a, _b, _c, _d;
|
|
430
378
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
431
|
-
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/drivers/
|
|
432
|
-
method: "
|
|
379
|
+
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/drivers/update"),
|
|
380
|
+
method: "PATCH",
|
|
433
381
|
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),
|
|
434
382
|
contentType: "application/json",
|
|
435
383
|
requestType: "json",
|
|
@@ -461,7 +409,64 @@ export class OortDrivers {
|
|
|
461
409
|
rawResponse: _response.rawResponse,
|
|
462
410
|
});
|
|
463
411
|
case "timeout":
|
|
464
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
412
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/drivers/update.");
|
|
413
|
+
case "unknown":
|
|
414
|
+
throw new errors.ChrtError({
|
|
415
|
+
message: _response.error.errorMessage,
|
|
416
|
+
rawResponse: _response.rawResponse,
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Returns a driver by id
|
|
423
|
+
*
|
|
424
|
+
* @param {string} driverId
|
|
425
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
426
|
+
*
|
|
427
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
428
|
+
*
|
|
429
|
+
* @example
|
|
430
|
+
* await client.drivers.getByDriverId("driver_id")
|
|
431
|
+
*/
|
|
432
|
+
getByDriverId(driverId, requestOptions) {
|
|
433
|
+
return core.HttpResponsePromise.fromPromise(this.__getByDriverId(driverId, requestOptions));
|
|
434
|
+
}
|
|
435
|
+
__getByDriverId(driverId, requestOptions) {
|
|
436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
437
|
+
var _a, _b, _c, _d;
|
|
438
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
439
|
+
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/drivers/${encodeURIComponent(driverId)}`),
|
|
440
|
+
method: "GET",
|
|
441
|
+
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),
|
|
442
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
443
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
444
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
445
|
+
});
|
|
446
|
+
if (_response.ok) {
|
|
447
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
448
|
+
}
|
|
449
|
+
if (_response.error.reason === "status-code") {
|
|
450
|
+
switch (_response.error.statusCode) {
|
|
451
|
+
case 422:
|
|
452
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
453
|
+
default:
|
|
454
|
+
throw new errors.ChrtError({
|
|
455
|
+
statusCode: _response.error.statusCode,
|
|
456
|
+
body: _response.error.body,
|
|
457
|
+
rawResponse: _response.rawResponse,
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
switch (_response.error.reason) {
|
|
462
|
+
case "non-json":
|
|
463
|
+
throw new errors.ChrtError({
|
|
464
|
+
statusCode: _response.error.statusCode,
|
|
465
|
+
body: _response.error.rawBody,
|
|
466
|
+
rawResponse: _response.rawResponse,
|
|
467
|
+
});
|
|
468
|
+
case "timeout":
|
|
469
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/drivers/{driver_id}.");
|
|
465
470
|
case "unknown":
|
|
466
471
|
throw new errors.ChrtError({
|
|
467
472
|
message: _response.error.errorMessage,
|
|
@@ -471,20 +476,20 @@ export class OortDrivers {
|
|
|
471
476
|
});
|
|
472
477
|
}
|
|
473
478
|
/**
|
|
474
|
-
*
|
|
479
|
+
* Deletes a driver from the database
|
|
475
480
|
*
|
|
476
481
|
* @param {string} driverId
|
|
477
|
-
* @param {
|
|
482
|
+
* @param {Drivers.RequestOptions} requestOptions - Request-specific configuration.
|
|
478
483
|
*
|
|
479
484
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
480
485
|
*
|
|
481
486
|
* @example
|
|
482
|
-
* await client.
|
|
487
|
+
* await client.drivers.delete("driver_id")
|
|
483
488
|
*/
|
|
484
|
-
|
|
485
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
489
|
+
delete(driverId, requestOptions) {
|
|
490
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(driverId, requestOptions));
|
|
486
491
|
}
|
|
487
|
-
|
|
492
|
+
__delete(driverId, requestOptions) {
|
|
488
493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
489
494
|
var _a, _b, _c, _d;
|
|
490
495
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
+
export * as courierPayDriverRateSheets from "./courierPayDriverRateSheets/index.mjs";
|
|
2
|
+
export * from "./courierPayDriverRateSheets/types/index.mjs";
|
|
1
3
|
export * as root from "./root/index.mjs";
|
|
2
4
|
export * as dev from "./dev/index.mjs";
|
|
3
5
|
export * as connections from "./connections/index.mjs";
|
|
4
6
|
export * as courierPayDriverLineItemGroup from "./courierPayDriverLineItemGroup/index.mjs";
|
|
5
7
|
export * as courierPayDriverPayouts from "./courierPayDriverPayouts/index.mjs";
|
|
6
|
-
export * as
|
|
7
|
-
export * as
|
|
8
|
-
export * as
|
|
9
|
-
export * as
|
|
10
|
-
export * as
|
|
11
|
-
export * as
|
|
12
|
-
export * as
|
|
13
|
-
export * as
|
|
14
|
-
export * as oortShipperContactInfo from "./oortShipperContactInfo/index.mjs";
|
|
15
|
-
export * as oortTaskGroups from "./oortTaskGroups/index.mjs";
|
|
8
|
+
export * as drivers from "./drivers/index.mjs";
|
|
9
|
+
export * as milestoneNotifications from "./milestoneNotifications/index.mjs";
|
|
10
|
+
export * as milestones from "./milestones/index.mjs";
|
|
11
|
+
export * as offChrtShipperOrgConnectionInfo from "./offChrtShipperOrgConnectionInfo/index.mjs";
|
|
12
|
+
export * as orders from "./orders/index.mjs";
|
|
13
|
+
export * as orgProfiles from "./orgProfiles/index.mjs";
|
|
14
|
+
export * as shipperContactInfo from "./shipperContactInfo/index.mjs";
|
|
15
|
+
export * as taskGroups from "./taskGroups/index.mjs";
|
|
16
16
|
export * as orgs from "./orgs/index.mjs";
|
|
17
17
|
export * as payments from "./payments/index.mjs";
|
|
18
18
|
export * as users from "./users/index.mjs";
|
|
19
19
|
export * as notifications from "./notifications/index.mjs";
|
|
20
|
+
export * as orgConnectionInfos from "./orgConnectionInfos/index.mjs";
|
|
20
21
|
export * from "./dev/client/requests/index.mjs";
|
|
21
22
|
export * from "./courierPayDriverLineItemGroup/client/requests/index.mjs";
|
|
22
23
|
export * from "./courierPayDriverPayouts/client/requests/index.mjs";
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./oortTaskGroups/client/requests/index.mjs";
|
|
24
|
+
export * from "./courierPayDriverRateSheets/client/requests/index.mjs";
|
|
25
|
+
export * from "./drivers/client/requests/index.mjs";
|
|
26
|
+
export * from "./milestoneNotifications/client/requests/index.mjs";
|
|
27
|
+
export * from "./milestones/client/requests/index.mjs";
|
|
28
|
+
export * from "./offChrtShipperOrgConnectionInfo/client/requests/index.mjs";
|
|
29
|
+
export * from "./orders/client/requests/index.mjs";
|
|
30
|
+
export * from "./orgProfiles/client/requests/index.mjs";
|
|
31
|
+
export * from "./shipperContactInfo/client/requests/index.mjs";
|
|
32
|
+
export * from "./taskGroups/client/requests/index.mjs";
|
|
33
33
|
export * from "./orgs/client/requests/index.mjs";
|
|
34
34
|
export * from "./payments/client/requests/index.mjs";
|