@chrt-inc/typescript-sdk 0.0.170 → 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/README.md +7 -7
- package/dist/cjs/Client.d.ts +45 -57
- package/dist/cjs/Client.js +59 -79
- package/dist/cjs/api/resources/connections/client/Client.d.ts +55 -0
- package/dist/cjs/api/resources/connections/client/Client.js +170 -0
- package/dist/cjs/api/resources/connections/index.d.ts +2 -0
- package/dist/cjs/api/resources/connections/index.js +18 -0
- package/dist/cjs/api/resources/connections/resources/connectionToCourier/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/client/Client.js +20 -18
- package/dist/cjs/api/resources/connections/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/connections/resources/index.js +41 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.d.ts +96 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup}/client/Client.js +68 -206
- package/dist/{esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.d.mts → cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.d.ts → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/index.d.ts +2 -0
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/index.js +18 -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/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/AddLineItemsReq.d.ts +1 -1
- 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/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/RemoveLineItemsReq.d.ts +1 -1
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/Client.js +36 -36
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/Client.d.ts +111 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → courierPayDriverRateSheets}/client/Client.js +78 -110
- package/dist/cjs/api/resources/{oortCourierPayDriverRate → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +24 -24
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/index.d.ts +3 -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 +13 -11
- package/dist/cjs/api/resources/dev/client/Client.js +54 -52
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +152 -0
- package/dist/cjs/api/resources/{oortDrivers → drivers}/client/Client.js +139 -134
- package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.d.ts +3 -3
- package/dist/cjs/api/resources/index.d.ts +26 -36
- package/dist/cjs/api/resources/index.js +27 -37
- 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/{oortCourierPayDriverRateSheets → milestones/resources/images}/client/Client.js +54 -44
- package/dist/cjs/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.ts → 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 +26 -0
- package/dist/cjs/api/resources/notifications/client/Client.js +22 -0
- package/dist/cjs/api/resources/notifications/index.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/index.js +18 -0
- package/dist/cjs/api/resources/notifications/resources/courierPreferences/client/Client.d.ts +57 -0
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/courierPreferences}/client/Client.js +24 -24
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +4 -4
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/notifications/resources/index.js +43 -0
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +57 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/shipper}/client/Client.js +24 -24
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +4 -4
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.ts +85 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRate → offChrtShipperOrgConnectionInfo}/client/Client.js +83 -78
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
- 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/{oortOrders → orders}/client/requests/CreateOrderReq.d.ts +16 -16
- 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/{oortConnections → orders/resources/full}/client/Client.js +36 -37
- 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/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/client/Client.js +49 -61
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +8 -8
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +5 -5
- 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/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +8 -8
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +5 -5
- 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 +68 -62
- package/dist/cjs/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.d.ts +3 -3
- package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → 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/orgs/client/Client.d.ts +46 -38
- package/dist/cjs/api/resources/orgs/client/Client.js +144 -97
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/Client.d.ts +0 -8
- package/dist/cjs/api/resources/payments/client/Client.js +0 -47
- package/dist/cjs/api/resources/root/client/Client.d.ts +16 -35
- package/dist/cjs/api/resources/root/client/Client.js +29 -125
- package/dist/cjs/api/resources/root/index.d.ts +0 -1
- package/dist/cjs/api/resources/root/index.js +0 -1
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +148 -0
- package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/Client.js +114 -114
- 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/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/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/index.d.ts +3 -0
- package/dist/cjs/api/resources/taskGroups/resources/index.js +42 -0
- package/dist/cjs/api/resources/{directory → taskGroups/resources/togglePause}/client/Client.d.ts +16 -14
- 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/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.d.ts +3 -3
- 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/users/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/users/client/Client.js +4 -4
- package/dist/cjs/api/types/Cargo1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +3 -3
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/CourierOrgProfile3.d.ts +3 -3
- package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +5 -5
- package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +16 -16
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
- package/dist/cjs/api/types/Driver1.d.ts +6 -6
- package/dist/cjs/api/types/Expense1.d.ts +3 -3
- package/dist/cjs/api/types/Feature.d.ts +3 -3
- package/dist/cjs/api/types/GetOrderFullRes.d.ts +2 -2
- package/dist/cjs/api/types/Incident1.d.ts +1 -1
- package/dist/cjs/api/types/Insurance1.d.ts +1 -1
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/Milestone1.d.ts +13 -13
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +11 -11
- package/dist/cjs/api/types/Order1.d.ts +11 -11
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPublicData2.d.ts +4 -4
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +11 -11
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +11 -11
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +6 -6
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +4 -4
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +9 -9
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +6 -6
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +5 -5
- package/dist/cjs/api/types/Task1.d.ts +13 -13
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +11 -11
- package/dist/cjs/api/types/TaskWithDetails.d.ts +2 -2
- package/dist/cjs/api/types/Tracker1.d.ts +1 -1
- package/dist/cjs/api/types/TrackerSession1.d.ts +1 -1
- package/dist/cjs/api/types/UserPublicData6.d.ts +6 -6
- package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +0 -4
- package/dist/cjs/api/types/index.js +0 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +45 -57
- package/dist/esm/Client.mjs +53 -73
- package/dist/esm/api/resources/connections/client/Client.d.mts +55 -0
- package/dist/esm/api/resources/connections/client/Client.mjs +133 -0
- package/dist/esm/api/resources/connections/index.d.mts +2 -0
- package/dist/esm/api/resources/connections/index.mjs +2 -0
- package/dist/esm/api/resources/connections/resources/connectionToCourier/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/client/Client.mjs +18 -16
- package/dist/esm/api/resources/connections/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/connections/resources/index.mjs +2 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.d.mts +96 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup}/client/Client.mjs +66 -204
- package/dist/{cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.d.ts → esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.d.mts → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.mts} +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/index.d.mts +2 -0
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/index.mjs +2 -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/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/AddLineItemsReq.d.mts +1 -1
- 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/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/RemoveLineItemsReq.d.mts +1 -1
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/resources/removeLineItems/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/Client.mjs +34 -34
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/Client.d.mts +111 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → courierPayDriverRateSheets}/client/Client.mjs +76 -108
- package/dist/esm/api/resources/{oortCourierPayDriverRate → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +24 -24
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/index.d.mts +3 -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 +13 -11
- package/dist/esm/api/resources/dev/client/Client.mjs +54 -52
- package/dist/esm/api/resources/drivers/client/Client.d.mts +152 -0
- package/dist/esm/api/resources/{oortDrivers → drivers}/client/Client.mjs +137 -132
- package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/SetDriverActivationReq.d.mts +3 -3
- package/dist/esm/api/resources/index.d.mts +26 -36
- package/dist/esm/api/resources/index.mjs +26 -36
- 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/images/client/Client.d.mts +74 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → milestones/resources/images}/client/Client.mjs +52 -42
- package/dist/esm/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.mts → 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/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 +26 -0
- package/dist/esm/api/resources/notifications/client/Client.mjs +18 -0
- package/dist/esm/api/resources/notifications/client/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/client/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/index.d.mts +2 -0
- package/dist/esm/api/resources/notifications/index.mjs +2 -0
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/Client.d.mts +57 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/Client.mjs +22 -22
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +4 -4
- package/dist/esm/api/resources/notifications/resources/courierPreferences/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/notifications/resources/index.mjs +4 -0
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +57 -0
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/Client.mjs +22 -22
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +4 -4
- package/dist/esm/api/resources/notifications/resources/shipper/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/Client.d.mts +85 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRate → offChrtShipperOrgConnectionInfo}/client/Client.mjs +81 -76
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
- 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/{oortOrders → orders}/client/requests/CreateOrderReq.d.mts +16 -16
- 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/{oortConnections → orders/resources/full}/client/Client.mjs +34 -35
- 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/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/client/Client.mjs +47 -59
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +8 -8
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +5 -5
- 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/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +8 -8
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +5 -5
- 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 +66 -60
- package/dist/esm/api/resources/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientCreate3.d.mts +3 -3
- package/dist/esm/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.mts → 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/orgs/client/Client.d.mts +46 -38
- package/dist/esm/api/resources/orgs/client/Client.mjs +144 -97
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/Client.d.mts +0 -8
- package/dist/esm/api/resources/payments/client/Client.mjs +0 -47
- package/dist/esm/api/resources/root/client/Client.d.mts +16 -35
- package/dist/esm/api/resources/root/client/Client.mjs +29 -125
- package/dist/esm/api/resources/root/index.d.mts +0 -1
- package/dist/esm/api/resources/root/index.mjs +0 -1
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +148 -0
- package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/Client.mjs +112 -112
- 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/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/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/index.d.mts +3 -0
- package/dist/esm/api/resources/taskGroups/resources/index.mjs +3 -0
- package/dist/esm/api/resources/{directory → taskGroups/resources/togglePause}/client/Client.d.mts +16 -14
- 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/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.d.mts +3 -3
- 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/users/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/users/client/Client.mjs +4 -4
- package/dist/esm/api/types/Cargo1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientCreate1.d.mts +3 -3
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/CourierOrgProfile3.d.mts +3 -3
- package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +5 -5
- package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +16 -16
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +8 -8
- package/dist/esm/api/types/Driver1.d.mts +6 -6
- package/dist/esm/api/types/Expense1.d.mts +3 -3
- package/dist/esm/api/types/Feature.d.mts +3 -3
- package/dist/esm/api/types/GetOrderFullRes.d.mts +2 -2
- package/dist/esm/api/types/Incident1.d.mts +1 -1
- package/dist/esm/api/types/Insurance1.d.mts +1 -1
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/Milestone1.d.mts +13 -13
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +11 -11
- package/dist/esm/api/types/Order1.d.mts +11 -11
- package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPublicData2.d.mts +4 -4
- package/dist/esm/api/types/PayablesInvoice1.d.mts +11 -11
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +11 -11
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +6 -6
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +4 -4
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +9 -9
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +6 -6
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +5 -5
- package/dist/esm/api/types/Task1.d.mts +13 -13
- package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
- package/dist/esm/api/types/TaskCreateBundle.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +11 -11
- package/dist/esm/api/types/TaskWithDetails.d.mts +2 -2
- package/dist/esm/api/types/Tracker1.d.mts +1 -1
- package/dist/esm/api/types/TrackerSession1.d.mts +1 -1
- package/dist/esm/api/types/UserPublicData6.d.mts +6 -6
- package/dist/esm/api/types/Vehicle1.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +0 -4
- package/dist/esm/api/types/index.mjs +0 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1190 -1679
- package/dist/cjs/api/resources/directory/client/requests/DbQueryParams.d.ts +0 -12
- package/dist/cjs/api/resources/directory/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/mirror/client/Client.d.ts +0 -138
- package/dist/cjs/api/resources/mirror/client/Client.js +0 -658
- package/dist/cjs/api/resources/notificationsCourierNotificationPreferences/client/Client.d.ts +0 -57
- package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/Client.d.ts +0 -57
- package/dist/cjs/api/resources/oortConnections/client/Client.d.ts +0 -63
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.ts +0 -136
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.d.ts +0 -12
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.d.ts +0 -12
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.ts +0 -6
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/Client.d.ts +0 -94
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +0 -72
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +0 -1
- 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/oortOffChrtShipperOrgConnectionInfo/client/Client.d.ts +0 -75
- 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/oortOrgProfiles/client/requests/GetAvatarRequest.js +0 -5
- 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/cjs/api/resources/root/types/PydanticResponse.d.ts +0 -8
- package/dist/cjs/api/resources/root/types/PydanticResponse.js +0 -5
- package/dist/cjs/api/resources/root/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/root/types/index.js +0 -17
- package/dist/cjs/api/types/EmailReq.d.ts +0 -6
- package/dist/cjs/api/types/EmailReq.js +0 -5
- package/dist/cjs/api/types/EmailRes.d.ts +0 -7
- package/dist/cjs/api/types/EmailRes.js +0 -5
- package/dist/cjs/api/types/Shipper2.d.ts +0 -20
- package/dist/cjs/api/types/Shipper2.js +0 -5
- package/dist/cjs/api/types/StreetAddress1.d.ts +0 -18
- package/dist/cjs/api/types/StreetAddress1.js +0 -5
- package/dist/esm/api/resources/directory/client/requests/DbQueryParams.d.mts +0 -12
- package/dist/esm/api/resources/directory/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/mirror/client/Client.d.mts +0 -138
- package/dist/esm/api/resources/mirror/client/Client.mjs +0 -621
- package/dist/esm/api/resources/notificationsCourierNotificationPreferences/client/Client.d.mts +0 -57
- package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/Client.d.mts +0 -57
- package/dist/esm/api/resources/oortConnections/client/Client.d.mts +0 -63
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.mts +0 -136
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.d.mts +0 -12
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.d.mts +0 -12
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.mts +0 -6
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/Client.d.mts +0 -94
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/Client.d.mts +0 -72
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.mts +0 -1
- 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/oortOffChrtShipperOrgConnectionInfo/client/Client.d.mts +0 -75
- 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/oortOrgProfiles/client/requests/GetAvatarRequest.mjs +0 -4
- 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/esm/api/resources/root/types/PydanticResponse.d.mts +0 -8
- package/dist/esm/api/resources/root/types/PydanticResponse.mjs +0 -4
- package/dist/esm/api/resources/root/types/index.d.mts +0 -1
- package/dist/esm/api/resources/root/types/index.mjs +0 -1
- package/dist/esm/api/types/EmailReq.d.mts +0 -6
- package/dist/esm/api/types/EmailReq.mjs +0 -4
- package/dist/esm/api/types/EmailRes.d.mts +0 -7
- package/dist/esm/api/types/EmailRes.mjs +0 -4
- package/dist/esm/api/types/Shipper2.d.mts +0 -20
- package/dist/esm/api/types/Shipper2.mjs +0 -4
- package/dist/esm/api/types/StreetAddress1.d.mts +0 -18
- package/dist/esm/api/types/StreetAddress1.mjs +0 -4
- package/dist/cjs/api/resources/{mirror → connections}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{directory/client/requests → connections/client}/index.js +0 -0
- package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/CreateConnectionReq.d.ts +0 -0
- package/dist/cjs/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/CreateConnectionReq.js +0 -0
- package/dist/cjs/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/index.d.ts +0 -0
- package/dist/cjs/api/resources/{mirror/client → connections/resources/connectionToCourier/client/requests}/index.js +0 -0
- package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{directory → connections/resources/connectionToCourier}/index.js +0 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/index.js +0 -0
- package/dist/cjs/api/resources/{directory/client/requests/DbQueryParams.js → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.js} +0 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.js} +0 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/AddLineItemsReq.js +0 -0
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{mirror → courierPayDriverLineItemGroup/resources/addLineItems}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{mirror → courierPayDriverLineItemGroup/resources/addLineItems}/index.js +0 -0
- package/dist/cjs/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/RemoveLineItemsReq.js +0 -0
- package/dist/cjs/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup/resources/removeLineItems}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup/resources/removeLineItems}/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/CourierPayDriverPayoutClientCreate1.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverPayouts}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverPayouts}/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRate → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +12 -12
- package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.js +0 -0
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.js → courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.js} +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.js → courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.js} +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRate → drivers}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRate → 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 → 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 → drivers}/client/requests/DriverLastSeenReq.js +0 -0
- package/dist/cjs/api/resources/{oortDrivers → 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/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.js +0 -0
- package/dist/cjs/api/resources/{oortDrivers → drivers}/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/{oortCourierPayDriverRate → drivers}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{oortConnections → drivers}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortConnections → drivers}/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → 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/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → milestoneNotifications}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → milestoneNotifications}/index.js +0 -0
- package/dist/cjs/api/resources/{oortDrivers → milestones}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortDrivers → milestones}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- 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 +1 -1
- package/dist/cjs/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.js +0 -0
- package/dist/cjs/api/resources/{oortDrivers → milestones}/client/requests/index.js +0 -0
- package/dist/{esm/api/resources/directory/client/requests/index.mjs → cjs/api/resources/milestones/resources/blurhash/client/index.d.ts} +0 -0
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences/client/requests → milestones/resources/blurhash/client}/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → milestones/resources/blurhash}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → milestones/resources/blurhash}/index.js +0 -0
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestones/resources/images}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → milestones/resources/images}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.js → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.js} +0 -0
- package/dist/cjs/api/resources/{oortMilestones → milestones/resources/images}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRate → milestones/resources/images}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRate → milestones/resources/images}/index.js +0 -0
- package/dist/{esm/api/resources/mirror/client/index.d.mts → cjs/api/resources/notifications/client/index.d.ts} +0 -0
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo/client/requests → notifications/client}/index.js +0 -0
- package/dist/cjs/api/resources/{oortMilestones → notifications/resources/courierPreferences}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortMilestones → notifications/resources/courierPreferences}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.js → notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js} +0 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/requests/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOrders → notifications/resources/courierPreferences}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → notifications/resources/courierPreferences}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverRateSheets → notifications/resources/courierPreferences}/index.js +0 -0
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → notifications/resources/shipper}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → notifications/resources/shipper}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.js → notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.js} +0 -0
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/requests/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → notifications/resources/shipper}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{oortDrivers → notifications/resources/shipper}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortDrivers → notifications/resources/shipper}/index.js +0 -0
- package/dist/cjs/api/resources/{oortOrders → offChrtShipperOrgConnectionInfo}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOrders → offChrtShipperOrgConnectionInfo}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js +0 -0
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → 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/{oortOrgProfiles → offChrtShipperOrgConnectionInfo}/client/requests/index.js +0 -0
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → offChrtShipperOrgConnectionInfo}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → offChrtShipperOrgConnectionInfo}/index.js +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orders}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orders}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortOrders → 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/{oortShipperContactInfo → orders}/client/requests/index.js +0 -0
- package/dist/{esm/api/resources/mirror/client/index.mjs → cjs/api/resources/orders/resources/full/client/index.d.ts} +0 -0
- package/dist/cjs/api/resources/{oortTaskGroups/client/requests → orders/resources/full/client}/index.js +0 -0
- package/dist/cjs/api/resources/{oortMilestones → orders/resources/full}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortMilestones → orders/resources/full}/index.js +0 -0
- package/dist/{esm/api/resources/notificationsCourierNotificationPreferences/client/requests/index.mjs → cjs/api/resources/orgConnectionInfos/client/index.d.ts} +0 -0
- package/dist/cjs/api/resources/{oortOrgProfiles → orgConnectionInfos/resources/courier}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOrgProfiles → orgConnectionInfos/resources/courier}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.js +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.js +0 -0
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/index.js +0 -0
- package/dist/cjs/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/shipper}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/shipper}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.js +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.js +0 -0
- package/dist/cjs/api/resources/{oortOrders → orgConnectionInfos/resources/shipper}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOrders → orgConnectionInfos/resources/shipper}/index.js +0 -0
- package/dist/cjs/api/resources/{oortTaskGroups → orgProfiles}/client/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortTaskGroups → orgProfiles}/client/index.js +0 -0
- package/dist/cjs/api/resources/{oortOrgProfiles → 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/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.js +0 -0
- package/dist/cjs/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.js → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.js} +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgProfiles}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOrgConnectionInfos → orgProfiles}/index.js +0 -0
- package/dist/cjs/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/{oortShipperContactInfo → 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/{oortOrgProfiles → shipperContactInfo}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortOrgProfiles → shipperContactInfo}/index.js +0 -0
- package/dist/cjs/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.d.ts +2 -2
- package/dist/cjs/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.js +0 -0
- package/dist/{esm/api/resources/notificationsShipperNotificationPreferences/client/requests/index.mjs → cjs/api/resources/taskGroups/resources/full/client/index.d.ts} +0 -0
- package/dist/cjs/api/resources/{oortShipperContactInfo → taskGroups/resources/full}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortShipperContactInfo → taskGroups/resources/full}/index.js +0 -0
- package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.js +0 -0
- package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/index.d.ts +0 -0
- package/dist/cjs/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/index.js +0 -0
- package/dist/esm/api/resources/{oortConnections/client/requests/index.mjs → connections/client/index.d.mts} +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests → connections/client}/index.mjs +0 -0
- package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/CreateConnectionReq.d.mts +0 -0
- package/dist/esm/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/CreateConnectionReq.mjs +0 -0
- package/dist/esm/api/resources/{oortConnections → connections/resources/connectionToCourier}/client/requests/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → connections/resources/connectionToCourier}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/index.d.mts +0 -0
- package/dist/esm/api/resources/{directory → connections/resources/connectionToCourier}/index.mjs +0 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{directory/client/requests/DbQueryParams.mjs → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.mjs} +0 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs → courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.mjs} +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRate → courierPayDriverLineItemGroup}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverLineItemGroup/resources/addLineItems}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/AddLineItemsReq.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverLineItemGroup/resources/addLineItems}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{mirror → courierPayDriverLineItemGroup/resources/addLineItems}/index.d.mts +0 -0
- package/dist/esm/api/resources/{mirror → courierPayDriverLineItemGroup/resources/addLineItems}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortConnections → courierPayDriverLineItemGroup/resources/removeLineItems}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/RemoveLineItemsReq.mjs +0 -0
- package/dist/esm/api/resources/{oortDrivers → courierPayDriverLineItemGroup/resources/removeLineItems}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup/resources/removeLineItems}/index.d.mts +0 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → courierPayDriverLineItemGroup/resources/removeLineItems}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → courierPayDriverPayouts}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/CourierPayDriverPayoutClientCreate1.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverPayouts}/client/requests/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → courierPayDriverPayouts}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverPayouts}/index.d.mts +0 -0
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → courierPayDriverPayouts}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → courierPayDriverRateSheets}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRate → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientCreate1.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +12 -12
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → courierPayDriverRateSheets}/client/requests/CourierPayDriverRateSheetClientUpdate1.mjs +0 -0
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.mjs → courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetsGetRequest.mjs} +0 -0
- package/dist/esm/api/resources/{oortMilestones → courierPayDriverRateSheets}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.mjs → courierPayDriverRateSheets/types/CourierPayDriverRateSheetsGetResponse.mjs} +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRate → drivers}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRate → 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 → 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 → drivers}/client/requests/DriverLastSeenReq.mjs +0 -0
- package/dist/esm/api/resources/{oortDrivers → 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/{oortDrivers → drivers}/client/requests/UpdateDriverDetailsReq.mjs +0 -0
- package/dist/esm/api/resources/{oortDrivers → drivers}/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → drivers}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{oortConnections → drivers}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortConnections → drivers}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → milestoneNotifications}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestoneNotifications}/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → 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/{oortOrders → milestoneNotifications}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → milestoneNotifications}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → milestoneNotifications}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortDrivers → milestones}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortDrivers → milestones}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- 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 +1 -1
- package/dist/esm/api/resources/{oortMilestones → milestones}/client/requests/MilestoneUpdateReq.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → milestones}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgProfiles/client/requests/index.mjs → milestones/resources/blurhash/client/index.d.mts} +0 -0
- package/dist/esm/api/resources/{oortShipperContactInfo/client/requests → milestones/resources/blurhash/client}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → milestones/resources/blurhash}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → milestones/resources/blurhash}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestones/resources/images}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → milestones/resources/images}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.mjs → milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.mjs} +0 -0
- package/dist/esm/api/resources/{oortTaskGroups → milestones/resources/images}/client/requests/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRate → milestones/resources/images}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRate → milestones/resources/images}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortMilestones → notifications/resources/courierPreferences}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortMilestones → notifications/resources/courierPreferences}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.mjs → notifications/resources/courierPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs} +0 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → notifications/resources/courierPreferences}/client/requests/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → notifications/resources/courierPreferences}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverRateSheets → notifications/resources/courierPreferences}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → notifications/resources/shipper}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → notifications/resources/shipper}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.mjs → notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.mjs} +0 -0
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → notifications/resources/shipper}/client/requests/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortDrivers → notifications/resources/shipper}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortDrivers → notifications/resources/shipper}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOrders → offChrtShipperOrgConnectionInfo}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortOrders → offChrtShipperOrgConnectionInfo}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs +0 -0
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → offChrtShipperOrgConnectionInfo}/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → 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/{oortMilestoneNotificationPreferences → offChrtShipperOrgConnectionInfo}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → offChrtShipperOrgConnectionInfo}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orders}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orders}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOrders → 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/{oortMilestones → orders/resources/full}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortMilestones → orders/resources/full}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgProfiles → orgConnectionInfos/resources/courier}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortOrgProfiles → orgConnectionInfos/resources/courier}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientCreate1.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/courier}/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs +0 -0
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortOffChrtShipperOrgConnectionInfo → orgConnectionInfos/resources/courier}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/shipper}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortShipperContactInfo → orgConnectionInfos/resources/shipper}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgConnectionInfos/resources/shipper}/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs +0 -0
- package/dist/esm/api/resources/{oortOrders → orgConnectionInfos/resources/shipper}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortOrders → orgConnectionInfos/resources/shipper}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortTaskGroups → orgProfiles}/client/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortTaskGroups → orgProfiles}/client/index.mjs +0 -0
- package/dist/esm/api/resources/{oortOrgProfiles → 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/{oortOrgProfiles → orgProfiles}/client/requests/CourierOrgProfileClientUpdate3.mjs +0 -0
- package/dist/esm/api/resources/{oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.mjs → orgProfiles/client/requests/OrgProfilesGetAvatarRequest.mjs} +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgProfiles}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortOrgConnectionInfos → orgProfiles}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortShipperContactInfo → shipperContactInfo}/client/requests/ShipperContactInfoClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/{oortShipperContactInfo → 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/{oortOrgProfiles → shipperContactInfo}/index.d.mts +0 -0
- package/dist/esm/api/resources/{oortOrgProfiles → shipperContactInfo}/index.mjs +0 -0
- package/dist/esm/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.d.mts +2 -2
- /package/dist/esm/api/resources/{oortTaskGroups → taskGroups}/client/requests/UpdateTaskGroupReq.mjs +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → taskGroups/resources/full}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortShipperContactInfo → taskGroups/resources/full}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/client/requests/SetTaskGroupPauseReq.mjs +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortTaskGroups → taskGroups/resources/togglePause}/index.mjs +0 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
import { Full } from "../resources/full/client/Client.mjs";
|
|
19
|
+
import { TogglePause } from "../resources/togglePause/client/Client.mjs";
|
|
20
|
+
export class TaskGroups {
|
|
21
|
+
constructor(_options = {}) {
|
|
22
|
+
this._options = _options;
|
|
23
|
+
}
|
|
24
|
+
get full() {
|
|
25
|
+
var _a;
|
|
26
|
+
return ((_a = this._full) !== null && _a !== void 0 ? _a : (this._full = new Full(this._options)));
|
|
27
|
+
}
|
|
28
|
+
get togglePause() {
|
|
29
|
+
var _a;
|
|
30
|
+
return ((_a = this._togglePause) !== null && _a !== void 0 ? _a : (this._togglePause = new TogglePause(this._options)));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Uses the org_id from the JWT - returns task groups and with their list of tasks for the courier org
|
|
34
|
+
*
|
|
35
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.taskGroups.listByCourierOrgId()
|
|
39
|
+
*/
|
|
40
|
+
listByCourierOrgId(requestOptions) {
|
|
41
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
|
|
42
|
+
}
|
|
43
|
+
__listByCourierOrgId(requestOptions) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
var _a, _b, _c, _d;
|
|
46
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
47
|
+
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/task_groups/by_courier_org_id/list"),
|
|
48
|
+
method: "GET",
|
|
49
|
+
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),
|
|
50
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
51
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
52
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
53
|
+
});
|
|
54
|
+
if (_response.ok) {
|
|
55
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
56
|
+
}
|
|
57
|
+
if (_response.error.reason === "status-code") {
|
|
58
|
+
throw new errors.ChrtError({
|
|
59
|
+
statusCode: _response.error.statusCode,
|
|
60
|
+
body: _response.error.body,
|
|
61
|
+
rawResponse: _response.rawResponse,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
switch (_response.error.reason) {
|
|
65
|
+
case "non-json":
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.rawBody,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
case "timeout":
|
|
72
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/by_courier_org_id/list.");
|
|
73
|
+
case "unknown":
|
|
74
|
+
throw new errors.ChrtError({
|
|
75
|
+
message: _response.error.errorMessage,
|
|
76
|
+
rawResponse: _response.rawResponse,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @param {string} driverId
|
|
83
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.taskGroups.listByDriverId("driver_id")
|
|
89
|
+
*/
|
|
90
|
+
listByDriverId(driverId, requestOptions) {
|
|
91
|
+
return core.HttpResponsePromise.fromPromise(this.__listByDriverId(driverId, requestOptions));
|
|
92
|
+
}
|
|
93
|
+
__listByDriverId(driverId, requestOptions) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
var _a, _b, _c, _d;
|
|
96
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
97
|
+
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/task_groups/list/${encodeURIComponent(driverId)}`),
|
|
98
|
+
method: "GET",
|
|
99
|
+
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),
|
|
100
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
101
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
102
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
103
|
+
});
|
|
104
|
+
if (_response.ok) {
|
|
105
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
106
|
+
}
|
|
107
|
+
if (_response.error.reason === "status-code") {
|
|
108
|
+
switch (_response.error.statusCode) {
|
|
109
|
+
case 422:
|
|
110
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
111
|
+
default:
|
|
112
|
+
throw new errors.ChrtError({
|
|
113
|
+
statusCode: _response.error.statusCode,
|
|
114
|
+
body: _response.error.body,
|
|
115
|
+
rawResponse: _response.rawResponse,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
switch (_response.error.reason) {
|
|
120
|
+
case "non-json":
|
|
121
|
+
throw new errors.ChrtError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.rawBody,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
case "timeout":
|
|
127
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/list/{driver_id}.");
|
|
128
|
+
case "unknown":
|
|
129
|
+
throw new errors.ChrtError({
|
|
130
|
+
message: _response.error.errorMessage,
|
|
131
|
+
rawResponse: _response.rawResponse,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @param {string} id
|
|
138
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* await client.taskGroups.start("id")
|
|
144
|
+
*/
|
|
145
|
+
start(id, requestOptions) {
|
|
146
|
+
return core.HttpResponsePromise.fromPromise(this.__start(id, requestOptions));
|
|
147
|
+
}
|
|
148
|
+
__start(id, requestOptions) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
var _a, _b, _c, _d;
|
|
151
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
|
+
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/task_groups/start/${encodeURIComponent(id)}`),
|
|
153
|
+
method: "PUT",
|
|
154
|
+
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),
|
|
155
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
156
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
157
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
|
+
});
|
|
159
|
+
if (_response.ok) {
|
|
160
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
161
|
+
}
|
|
162
|
+
if (_response.error.reason === "status-code") {
|
|
163
|
+
switch (_response.error.statusCode) {
|
|
164
|
+
case 422:
|
|
165
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
166
|
+
default:
|
|
167
|
+
throw new errors.ChrtError({
|
|
168
|
+
statusCode: _response.error.statusCode,
|
|
169
|
+
body: _response.error.body,
|
|
170
|
+
rawResponse: _response.rawResponse,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
switch (_response.error.reason) {
|
|
175
|
+
case "non-json":
|
|
176
|
+
throw new errors.ChrtError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.rawBody,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
180
|
+
});
|
|
181
|
+
case "timeout":
|
|
182
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/task_groups/start/{id}.");
|
|
183
|
+
case "unknown":
|
|
184
|
+
throw new errors.ChrtError({
|
|
185
|
+
message: _response.error.errorMessage,
|
|
186
|
+
rawResponse: _response.rawResponse,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @param {Chrt.UpdateTaskGroupReq} request
|
|
193
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
194
|
+
*
|
|
195
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* await client.taskGroups.update({
|
|
199
|
+
* task_group_id: "task_group_id"
|
|
200
|
+
* })
|
|
201
|
+
*/
|
|
202
|
+
update(request, requestOptions) {
|
|
203
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
204
|
+
}
|
|
205
|
+
__update(request, requestOptions) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
var _a, _b, _c, _d;
|
|
208
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
209
|
+
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/task_groups/update"),
|
|
210
|
+
method: "POST",
|
|
211
|
+
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),
|
|
212
|
+
contentType: "application/json",
|
|
213
|
+
requestType: "json",
|
|
214
|
+
body: request,
|
|
215
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
216
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
217
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
218
|
+
});
|
|
219
|
+
if (_response.ok) {
|
|
220
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
221
|
+
}
|
|
222
|
+
if (_response.error.reason === "status-code") {
|
|
223
|
+
switch (_response.error.statusCode) {
|
|
224
|
+
case 422:
|
|
225
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
226
|
+
default:
|
|
227
|
+
throw new errors.ChrtError({
|
|
228
|
+
statusCode: _response.error.statusCode,
|
|
229
|
+
body: _response.error.body,
|
|
230
|
+
rawResponse: _response.rawResponse,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
switch (_response.error.reason) {
|
|
235
|
+
case "non-json":
|
|
236
|
+
throw new errors.ChrtError({
|
|
237
|
+
statusCode: _response.error.statusCode,
|
|
238
|
+
body: _response.error.rawBody,
|
|
239
|
+
rawResponse: _response.rawResponse,
|
|
240
|
+
});
|
|
241
|
+
case "timeout":
|
|
242
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/task_groups/update.");
|
|
243
|
+
case "unknown":
|
|
244
|
+
throw new errors.ChrtError({
|
|
245
|
+
message: _response.error.errorMessage,
|
|
246
|
+
rawResponse: _response.rawResponse,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Returns a single task group and its tasks
|
|
253
|
+
*
|
|
254
|
+
* @param {string} id
|
|
255
|
+
* @param {TaskGroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
256
|
+
*
|
|
257
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* await client.taskGroups.getById("id")
|
|
261
|
+
*/
|
|
262
|
+
getById(id, requestOptions) {
|
|
263
|
+
return core.HttpResponsePromise.fromPromise(this.__getById(id, requestOptions));
|
|
264
|
+
}
|
|
265
|
+
__getById(id, requestOptions) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
var _a, _b, _c, _d;
|
|
268
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
269
|
+
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/task_groups/${encodeURIComponent(id)}`),
|
|
270
|
+
method: "GET",
|
|
271
|
+
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),
|
|
272
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
273
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
274
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
275
|
+
});
|
|
276
|
+
if (_response.ok) {
|
|
277
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
278
|
+
}
|
|
279
|
+
if (_response.error.reason === "status-code") {
|
|
280
|
+
switch (_response.error.statusCode) {
|
|
281
|
+
case 422:
|
|
282
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
283
|
+
default:
|
|
284
|
+
throw new errors.ChrtError({
|
|
285
|
+
statusCode: _response.error.statusCode,
|
|
286
|
+
body: _response.error.body,
|
|
287
|
+
rawResponse: _response.rawResponse,
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
switch (_response.error.reason) {
|
|
292
|
+
case "non-json":
|
|
293
|
+
throw new errors.ChrtError({
|
|
294
|
+
statusCode: _response.error.statusCode,
|
|
295
|
+
body: _response.error.rawBody,
|
|
296
|
+
rawResponse: _response.rawResponse,
|
|
297
|
+
});
|
|
298
|
+
case "timeout":
|
|
299
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/{id}.");
|
|
300
|
+
case "unknown":
|
|
301
|
+
throw new errors.ChrtError({
|
|
302
|
+
message: _response.error.errorMessage,
|
|
303
|
+
rawResponse: _response.rawResponse,
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
_getAuthorizationHeader() {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
311
|
+
if (bearer != null) {
|
|
312
|
+
return `Bearer ${bearer}`;
|
|
313
|
+
}
|
|
314
|
+
return undefined;
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type UpdateTaskGroupReq } from "./UpdateTaskGroupReq.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
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 Full {
|
|
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 Full {
|
|
29
|
+
protected readonly _options: Full.Options;
|
|
30
|
+
constructor(_options?: Full.Options);
|
|
31
|
+
/**
|
|
32
|
+
* Uses the org_id from the JWT - returns multiple task groups with their tasks, milestones, and cargos
|
|
33
|
+
*
|
|
34
|
+
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await client.taskGroups.full.listByCourierOrgId()
|
|
38
|
+
*/
|
|
39
|
+
listByCourierOrgId(requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.MultipleTaskGroupsDetailsResponse>;
|
|
40
|
+
private __listByCourierOrgId;
|
|
41
|
+
/**
|
|
42
|
+
* Returns a single task group and its tasks, milestones, and cargos
|
|
43
|
+
*
|
|
44
|
+
* @param {string} id
|
|
45
|
+
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.taskGroups.full.getByTaskGroupId("id")
|
|
51
|
+
*/
|
|
52
|
+
getByTaskGroupId(id: string, requestOptions?: Full.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupWithDetails>;
|
|
53
|
+
private __getByTaskGroupId;
|
|
54
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
18
|
+
export class Full {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Uses the org_id from the JWT - returns multiple task groups with their tasks, milestones, and cargos
|
|
24
|
+
*
|
|
25
|
+
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.taskGroups.full.listByCourierOrgId()
|
|
29
|
+
*/
|
|
30
|
+
listByCourierOrgId(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__listByCourierOrgId(requestOptions));
|
|
32
|
+
}
|
|
33
|
+
__listByCourierOrgId(requestOptions) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
var _a, _b, _c, _d;
|
|
36
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
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/task_groups/by_courier_org_id/list/full"),
|
|
38
|
+
method: "GET",
|
|
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),
|
|
40
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
41
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
42
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
43
|
+
});
|
|
44
|
+
if (_response.ok) {
|
|
45
|
+
return {
|
|
46
|
+
data: _response.body,
|
|
47
|
+
rawResponse: _response.rawResponse,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
if (_response.error.reason === "status-code") {
|
|
51
|
+
throw new errors.ChrtError({
|
|
52
|
+
statusCode: _response.error.statusCode,
|
|
53
|
+
body: _response.error.body,
|
|
54
|
+
rawResponse: _response.rawResponse,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
switch (_response.error.reason) {
|
|
58
|
+
case "non-json":
|
|
59
|
+
throw new errors.ChrtError({
|
|
60
|
+
statusCode: _response.error.statusCode,
|
|
61
|
+
body: _response.error.rawBody,
|
|
62
|
+
rawResponse: _response.rawResponse,
|
|
63
|
+
});
|
|
64
|
+
case "timeout":
|
|
65
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/by_courier_org_id/list/full.");
|
|
66
|
+
case "unknown":
|
|
67
|
+
throw new errors.ChrtError({
|
|
68
|
+
message: _response.error.errorMessage,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Returns a single task group and its tasks, milestones, and cargos
|
|
76
|
+
*
|
|
77
|
+
* @param {string} id
|
|
78
|
+
* @param {Full.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.taskGroups.full.getByTaskGroupId("id")
|
|
84
|
+
*/
|
|
85
|
+
getByTaskGroupId(id, requestOptions) {
|
|
86
|
+
return core.HttpResponsePromise.fromPromise(this.__getByTaskGroupId(id, requestOptions));
|
|
87
|
+
}
|
|
88
|
+
__getByTaskGroupId(id, requestOptions) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
var _a, _b, _c, _d;
|
|
91
|
+
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/task_groups/${encodeURIComponent(id)}/full`),
|
|
93
|
+
method: "GET",
|
|
94
|
+
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
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
96
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
97
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
98
|
+
});
|
|
99
|
+
if (_response.ok) {
|
|
100
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
101
|
+
}
|
|
102
|
+
if (_response.error.reason === "status-code") {
|
|
103
|
+
switch (_response.error.statusCode) {
|
|
104
|
+
case 422:
|
|
105
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
106
|
+
default:
|
|
107
|
+
throw new errors.ChrtError({
|
|
108
|
+
statusCode: _response.error.statusCode,
|
|
109
|
+
body: _response.error.body,
|
|
110
|
+
rawResponse: _response.rawResponse,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
switch (_response.error.reason) {
|
|
115
|
+
case "non-json":
|
|
116
|
+
throw new errors.ChrtError({
|
|
117
|
+
statusCode: _response.error.statusCode,
|
|
118
|
+
body: _response.error.rawBody,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
});
|
|
121
|
+
case "timeout":
|
|
122
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/task_groups/{id}/full.");
|
|
123
|
+
case "unknown":
|
|
124
|
+
throw new errors.ChrtError({
|
|
125
|
+
message: _response.error.errorMessage,
|
|
126
|
+
rawResponse: _response.rawResponse,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
_getAuthorizationHeader() {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
134
|
+
if (bearer != null) {
|
|
135
|
+
return `Bearer ${bearer}`;
|
|
136
|
+
}
|
|
137
|
+
return undefined;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/api/resources/{directory → taskGroups/resources/togglePause}/client/Client.d.mts
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as environments from "
|
|
5
|
-
import * as core from "
|
|
6
|
-
import * as Chrt from "
|
|
7
|
-
export declare namespace
|
|
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 TogglePause {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -25,21 +25,23 @@ export declare namespace Directory {
|
|
|
25
25
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export declare class
|
|
29
|
-
protected readonly _options:
|
|
30
|
-
constructor(_options?:
|
|
28
|
+
export declare class TogglePause {
|
|
29
|
+
protected readonly _options: TogglePause.Options;
|
|
30
|
+
constructor(_options?: TogglePause.Options);
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @param {
|
|
35
|
-
* @param {Directory.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
* @param {string} id
|
|
33
|
+
* @param {Chrt.taskGroups.SetTaskGroupPauseReq} request
|
|
34
|
+
* @param {TogglePause.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
35
|
*
|
|
37
36
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
38
37
|
*
|
|
39
38
|
* @example
|
|
40
|
-
* await client.
|
|
39
|
+
* await client.taskGroups.togglePause.byId("id", {
|
|
40
|
+
* paused: true,
|
|
41
|
+
* task_group_id: "task_group_id"
|
|
42
|
+
* })
|
|
41
43
|
*/
|
|
42
|
-
|
|
43
|
-
private
|
|
44
|
+
byId(id: string, request: Chrt.taskGroups.SetTaskGroupPauseReq, requestOptions?: TogglePause.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
45
|
+
private __byId;
|
|
44
46
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
45
47
|
}
|