@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
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Instantiate and use the client with the following:
|
|
|
23
23
|
import { ChrtClient } from "@chrt-inc/typescript-sdk";
|
|
24
24
|
|
|
25
25
|
const client = new ChrtClient({ token: "YOUR_TOKEN" });
|
|
26
|
-
await client.dev.
|
|
26
|
+
await client.dev.createTemplate({
|
|
27
27
|
message: "message",
|
|
28
28
|
number: 1,
|
|
29
29
|
timestamp: "2024-01-15T09:30:00Z",
|
|
@@ -52,7 +52,7 @@ will be thrown.
|
|
|
52
52
|
import { ChrtError } from "@chrt-inc/typescript-sdk";
|
|
53
53
|
|
|
54
54
|
try {
|
|
55
|
-
await client.dev.
|
|
55
|
+
await client.dev.createTemplate(...);
|
|
56
56
|
} catch (err) {
|
|
57
57
|
if (err instanceof ChrtError) {
|
|
58
58
|
console.log(err.statusCode);
|
|
@@ -70,7 +70,7 @@ try {
|
|
|
70
70
|
If you would like to send additional headers as part of the request, use the `headers` request option.
|
|
71
71
|
|
|
72
72
|
```typescript
|
|
73
|
-
const response = await client.dev.
|
|
73
|
+
const response = await client.dev.createTemplate(..., {
|
|
74
74
|
headers: {
|
|
75
75
|
'X-Custom-Header': 'custom value'
|
|
76
76
|
}
|
|
@@ -92,7 +92,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
|
|
|
92
92
|
Use the `maxRetries` request option to configure this behavior.
|
|
93
93
|
|
|
94
94
|
```typescript
|
|
95
|
-
const response = await client.dev.
|
|
95
|
+
const response = await client.dev.createTemplate(..., {
|
|
96
96
|
maxRetries: 0 // override maxRetries at the request level
|
|
97
97
|
});
|
|
98
98
|
```
|
|
@@ -102,7 +102,7 @@ const response = await client.dev.postTemplate(..., {
|
|
|
102
102
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
103
103
|
|
|
104
104
|
```typescript
|
|
105
|
-
const response = await client.dev.
|
|
105
|
+
const response = await client.dev.createTemplate(..., {
|
|
106
106
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
107
107
|
});
|
|
108
108
|
```
|
|
@@ -113,7 +113,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
113
113
|
|
|
114
114
|
```typescript
|
|
115
115
|
const controller = new AbortController();
|
|
116
|
-
const response = await client.dev.
|
|
116
|
+
const response = await client.dev.createTemplate(..., {
|
|
117
117
|
abortSignal: controller.signal
|
|
118
118
|
});
|
|
119
119
|
controller.abort(); // aborts the request
|
|
@@ -125,7 +125,7 @@ The SDK provides access to raw response data, including headers, through the `.w
|
|
|
125
125
|
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
126
126
|
|
|
127
127
|
```typescript
|
|
128
|
-
const { data, rawResponse } = await client.dev.
|
|
128
|
+
const { data, rawResponse } = await client.dev.createTemplate(...).withRawResponse();
|
|
129
129
|
|
|
130
130
|
console.log(data);
|
|
131
131
|
console.log(rawResponse.headers['X-My-Header']);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -3,29 +3,25 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments.js";
|
|
5
5
|
import * as core from "./core/index.js";
|
|
6
|
+
import { Root } from "./api/resources/root/client/Client.js";
|
|
6
7
|
import { Dev } from "./api/resources/dev/client/Client.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { OortCourierPayDriverLineItemGroups } from "./api/resources/oortCourierPayDriverLineItemGroups/client/Client.js";
|
|
20
|
-
import { OortCourierPayDriverPayouts } from "./api/resources/oortCourierPayDriverPayouts/client/Client.js";
|
|
21
|
-
import { OortConnections } from "./api/resources/oortConnections/client/Client.js";
|
|
22
|
-
import { OortTaskGroups } from "./api/resources/oortTaskGroups/client/Client.js";
|
|
23
|
-
import { OortShipperContactInfo } from "./api/resources/oortShipperContactInfo/client/Client.js";
|
|
24
|
-
import { OortMilestoneNotificationPreferences } from "./api/resources/oortMilestoneNotificationPreferences/client/Client.js";
|
|
8
|
+
import { Connections } from "./api/resources/connections/client/Client.js";
|
|
9
|
+
import { CourierPayDriverLineItemGroup } from "./api/resources/courierPayDriverLineItemGroup/client/Client.js";
|
|
10
|
+
import { CourierPayDriverPayouts } from "./api/resources/courierPayDriverPayouts/client/Client.js";
|
|
11
|
+
import { CourierPayDriverRateSheets } from "./api/resources/courierPayDriverRateSheets/client/Client.js";
|
|
12
|
+
import { Drivers } from "./api/resources/drivers/client/Client.js";
|
|
13
|
+
import { MilestoneNotifications } from "./api/resources/milestoneNotifications/client/Client.js";
|
|
14
|
+
import { Milestones } from "./api/resources/milestones/client/Client.js";
|
|
15
|
+
import { OffChrtShipperOrgConnectionInfo } from "./api/resources/offChrtShipperOrgConnectionInfo/client/Client.js";
|
|
16
|
+
import { Orders } from "./api/resources/orders/client/Client.js";
|
|
17
|
+
import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.js";
|
|
18
|
+
import { ShipperContactInfo } from "./api/resources/shipperContactInfo/client/Client.js";
|
|
19
|
+
import { TaskGroups } from "./api/resources/taskGroups/client/Client.js";
|
|
25
20
|
import { Orgs } from "./api/resources/orgs/client/Client.js";
|
|
26
21
|
import { Payments } from "./api/resources/payments/client/Client.js";
|
|
27
|
-
import { Root } from "./api/resources/root/client/Client.js";
|
|
28
22
|
import { Users } from "./api/resources/users/client/Client.js";
|
|
23
|
+
import { Notifications } from "./api/resources/notifications/client/Client.js";
|
|
24
|
+
import { OrgConnectionInfos } from "./api/resources/orgConnectionInfos/client/Client.js";
|
|
29
25
|
export declare namespace ChrtClient {
|
|
30
26
|
interface Options {
|
|
31
27
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -49,51 +45,43 @@ export declare namespace ChrtClient {
|
|
|
49
45
|
}
|
|
50
46
|
export declare class ChrtClient {
|
|
51
47
|
protected readonly _options: ChrtClient.Options;
|
|
48
|
+
protected _root: Root | undefined;
|
|
52
49
|
protected _dev: Dev | undefined;
|
|
53
|
-
protected
|
|
54
|
-
protected
|
|
55
|
-
protected
|
|
56
|
-
protected
|
|
57
|
-
protected
|
|
58
|
-
protected
|
|
59
|
-
protected
|
|
60
|
-
protected
|
|
61
|
-
protected
|
|
62
|
-
protected
|
|
63
|
-
protected
|
|
64
|
-
protected
|
|
65
|
-
protected _oortCourierPayDriverLineItemGroups: OortCourierPayDriverLineItemGroups | undefined;
|
|
66
|
-
protected _oortCourierPayDriverPayouts: OortCourierPayDriverPayouts | undefined;
|
|
67
|
-
protected _oortConnections: OortConnections | undefined;
|
|
68
|
-
protected _oortTaskGroups: OortTaskGroups | undefined;
|
|
69
|
-
protected _oortShipperContactInfo: OortShipperContactInfo | undefined;
|
|
70
|
-
protected _oortMilestoneNotificationPreferences: OortMilestoneNotificationPreferences | undefined;
|
|
50
|
+
protected _connections: Connections | undefined;
|
|
51
|
+
protected _courierPayDriverLineItemGroup: CourierPayDriverLineItemGroup | undefined;
|
|
52
|
+
protected _courierPayDriverPayouts: CourierPayDriverPayouts | undefined;
|
|
53
|
+
protected _courierPayDriverRateSheets: CourierPayDriverRateSheets | undefined;
|
|
54
|
+
protected _drivers: Drivers | undefined;
|
|
55
|
+
protected _milestoneNotifications: MilestoneNotifications | undefined;
|
|
56
|
+
protected _milestones: Milestones | undefined;
|
|
57
|
+
protected _offChrtShipperOrgConnectionInfo: OffChrtShipperOrgConnectionInfo | undefined;
|
|
58
|
+
protected _orders: Orders | undefined;
|
|
59
|
+
protected _orgProfiles: OrgProfiles | undefined;
|
|
60
|
+
protected _shipperContactInfo: ShipperContactInfo | undefined;
|
|
61
|
+
protected _taskGroups: TaskGroups | undefined;
|
|
71
62
|
protected _orgs: Orgs | undefined;
|
|
72
63
|
protected _payments: Payments | undefined;
|
|
73
|
-
protected _root: Root | undefined;
|
|
74
64
|
protected _users: Users | undefined;
|
|
65
|
+
protected _notifications: Notifications | undefined;
|
|
66
|
+
protected _orgConnectionInfos: OrgConnectionInfos | undefined;
|
|
75
67
|
constructor(_options?: ChrtClient.Options);
|
|
68
|
+
get root(): Root;
|
|
76
69
|
get dev(): Dev;
|
|
77
|
-
get
|
|
78
|
-
get
|
|
79
|
-
get
|
|
80
|
-
get
|
|
81
|
-
get
|
|
82
|
-
get
|
|
83
|
-
get
|
|
84
|
-
get
|
|
85
|
-
get
|
|
86
|
-
get
|
|
87
|
-
get
|
|
88
|
-
get
|
|
89
|
-
get oortCourierPayDriverLineItemGroups(): OortCourierPayDriverLineItemGroups;
|
|
90
|
-
get oortCourierPayDriverPayouts(): OortCourierPayDriverPayouts;
|
|
91
|
-
get oortConnections(): OortConnections;
|
|
92
|
-
get oortTaskGroups(): OortTaskGroups;
|
|
93
|
-
get oortShipperContactInfo(): OortShipperContactInfo;
|
|
94
|
-
get oortMilestoneNotificationPreferences(): OortMilestoneNotificationPreferences;
|
|
70
|
+
get connections(): Connections;
|
|
71
|
+
get courierPayDriverLineItemGroup(): CourierPayDriverLineItemGroup;
|
|
72
|
+
get courierPayDriverPayouts(): CourierPayDriverPayouts;
|
|
73
|
+
get courierPayDriverRateSheets(): CourierPayDriverRateSheets;
|
|
74
|
+
get drivers(): Drivers;
|
|
75
|
+
get milestoneNotifications(): MilestoneNotifications;
|
|
76
|
+
get milestones(): Milestones;
|
|
77
|
+
get offChrtShipperOrgConnectionInfo(): OffChrtShipperOrgConnectionInfo;
|
|
78
|
+
get orders(): Orders;
|
|
79
|
+
get orgProfiles(): OrgProfiles;
|
|
80
|
+
get shipperContactInfo(): ShipperContactInfo;
|
|
81
|
+
get taskGroups(): TaskGroups;
|
|
95
82
|
get orgs(): Orgs;
|
|
96
83
|
get payments(): Payments;
|
|
97
|
-
get root(): Root;
|
|
98
84
|
get users(): Users;
|
|
85
|
+
get notifications(): Notifications;
|
|
86
|
+
get orgConnectionInfos(): OrgConnectionInfos;
|
|
99
87
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -39,131 +39,111 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ChrtClient = void 0;
|
|
40
40
|
const core = __importStar(require("./core/index.js"));
|
|
41
41
|
const headers_js_1 = require("./core/headers.js");
|
|
42
|
-
const Client_js_1 = require("./api/resources/
|
|
43
|
-
const Client_js_2 = require("./api/resources/
|
|
44
|
-
const Client_js_3 = require("./api/resources/
|
|
45
|
-
const Client_js_4 = require("./api/resources/
|
|
46
|
-
const Client_js_5 = require("./api/resources/
|
|
47
|
-
const Client_js_6 = require("./api/resources/
|
|
48
|
-
const Client_js_7 = require("./api/resources/
|
|
49
|
-
const Client_js_8 = require("./api/resources/
|
|
50
|
-
const Client_js_9 = require("./api/resources/
|
|
51
|
-
const Client_js_10 = require("./api/resources/
|
|
52
|
-
const Client_js_11 = require("./api/resources/
|
|
53
|
-
const Client_js_12 = require("./api/resources/
|
|
54
|
-
const Client_js_13 = require("./api/resources/
|
|
55
|
-
const Client_js_14 = require("./api/resources/
|
|
56
|
-
const Client_js_15 = require("./api/resources/
|
|
57
|
-
const Client_js_16 = require("./api/resources/
|
|
58
|
-
const Client_js_17 = require("./api/resources/
|
|
59
|
-
const Client_js_18 = require("./api/resources/
|
|
60
|
-
const Client_js_19 = require("./api/resources/
|
|
61
|
-
const Client_js_20 = require("./api/resources/orgs/client/Client.js");
|
|
62
|
-
const Client_js_21 = require("./api/resources/payments/client/Client.js");
|
|
63
|
-
const Client_js_22 = require("./api/resources/root/client/Client.js");
|
|
64
|
-
const Client_js_23 = require("./api/resources/users/client/Client.js");
|
|
42
|
+
const Client_js_1 = require("./api/resources/root/client/Client.js");
|
|
43
|
+
const Client_js_2 = require("./api/resources/dev/client/Client.js");
|
|
44
|
+
const Client_js_3 = require("./api/resources/connections/client/Client.js");
|
|
45
|
+
const Client_js_4 = require("./api/resources/courierPayDriverLineItemGroup/client/Client.js");
|
|
46
|
+
const Client_js_5 = require("./api/resources/courierPayDriverPayouts/client/Client.js");
|
|
47
|
+
const Client_js_6 = require("./api/resources/courierPayDriverRateSheets/client/Client.js");
|
|
48
|
+
const Client_js_7 = require("./api/resources/drivers/client/Client.js");
|
|
49
|
+
const Client_js_8 = require("./api/resources/milestoneNotifications/client/Client.js");
|
|
50
|
+
const Client_js_9 = require("./api/resources/milestones/client/Client.js");
|
|
51
|
+
const Client_js_10 = require("./api/resources/offChrtShipperOrgConnectionInfo/client/Client.js");
|
|
52
|
+
const Client_js_11 = require("./api/resources/orders/client/Client.js");
|
|
53
|
+
const Client_js_12 = require("./api/resources/orgProfiles/client/Client.js");
|
|
54
|
+
const Client_js_13 = require("./api/resources/shipperContactInfo/client/Client.js");
|
|
55
|
+
const Client_js_14 = require("./api/resources/taskGroups/client/Client.js");
|
|
56
|
+
const Client_js_15 = require("./api/resources/orgs/client/Client.js");
|
|
57
|
+
const Client_js_16 = require("./api/resources/payments/client/Client.js");
|
|
58
|
+
const Client_js_17 = require("./api/resources/users/client/Client.js");
|
|
59
|
+
const Client_js_18 = require("./api/resources/notifications/client/Client.js");
|
|
60
|
+
const Client_js_19 = require("./api/resources/orgConnectionInfos/client/Client.js");
|
|
65
61
|
class ChrtClient {
|
|
66
62
|
constructor(_options = {}) {
|
|
67
63
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
68
64
|
"X-Fern-Language": "JavaScript",
|
|
69
65
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
70
|
-
"X-Fern-SDK-Version": "0.0.
|
|
71
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.
|
|
66
|
+
"X-Fern-SDK-Version": "0.0.174",
|
|
67
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.174",
|
|
72
68
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
69
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
70
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
75
71
|
}
|
|
76
|
-
get
|
|
77
|
-
var _a;
|
|
78
|
-
return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Client_js_1.Dev(this._options)));
|
|
79
|
-
}
|
|
80
|
-
get directory() {
|
|
81
|
-
var _a;
|
|
82
|
-
return ((_a = this._directory) !== null && _a !== void 0 ? _a : (this._directory = new Client_js_2.Directory(this._options)));
|
|
83
|
-
}
|
|
84
|
-
get mirror() {
|
|
85
|
-
var _a;
|
|
86
|
-
return ((_a = this._mirror) !== null && _a !== void 0 ? _a : (this._mirror = new Client_js_3.Mirror(this._options)));
|
|
87
|
-
}
|
|
88
|
-
get notificationsShipperNotificationPreferences() {
|
|
89
|
-
var _a;
|
|
90
|
-
return ((_a = this._notificationsShipperNotificationPreferences) !== null && _a !== void 0 ? _a : (this._notificationsShipperNotificationPreferences = new Client_js_4.NotificationsShipperNotificationPreferences(this._options)));
|
|
91
|
-
}
|
|
92
|
-
get notificationsCourierNotificationPreferences() {
|
|
93
|
-
var _a;
|
|
94
|
-
return ((_a = this._notificationsCourierNotificationPreferences) !== null && _a !== void 0 ? _a : (this._notificationsCourierNotificationPreferences = new Client_js_5.NotificationsCourierNotificationPreferences(this._options)));
|
|
95
|
-
}
|
|
96
|
-
get oortDrivers() {
|
|
72
|
+
get root() {
|
|
97
73
|
var _a;
|
|
98
|
-
return ((_a = this.
|
|
74
|
+
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_js_1.Root(this._options)));
|
|
99
75
|
}
|
|
100
|
-
get
|
|
76
|
+
get dev() {
|
|
101
77
|
var _a;
|
|
102
|
-
return ((_a = this.
|
|
78
|
+
return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Client_js_2.Dev(this._options)));
|
|
103
79
|
}
|
|
104
|
-
get
|
|
80
|
+
get connections() {
|
|
105
81
|
var _a;
|
|
106
|
-
return ((_a = this.
|
|
82
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_3.Connections(this._options)));
|
|
107
83
|
}
|
|
108
|
-
get
|
|
84
|
+
get courierPayDriverLineItemGroup() {
|
|
109
85
|
var _a;
|
|
110
|
-
return ((_a = this.
|
|
86
|
+
return ((_a = this._courierPayDriverLineItemGroup) !== null && _a !== void 0 ? _a : (this._courierPayDriverLineItemGroup = new Client_js_4.CourierPayDriverLineItemGroup(this._options)));
|
|
111
87
|
}
|
|
112
|
-
get
|
|
88
|
+
get courierPayDriverPayouts() {
|
|
113
89
|
var _a;
|
|
114
|
-
return ((_a = this.
|
|
90
|
+
return ((_a = this._courierPayDriverPayouts) !== null && _a !== void 0 ? _a : (this._courierPayDriverPayouts = new Client_js_5.CourierPayDriverPayouts(this._options)));
|
|
115
91
|
}
|
|
116
|
-
get
|
|
92
|
+
get courierPayDriverRateSheets() {
|
|
117
93
|
var _a;
|
|
118
|
-
return ((_a = this.
|
|
94
|
+
return ((_a = this._courierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._courierPayDriverRateSheets = new Client_js_6.CourierPayDriverRateSheets(this._options)));
|
|
119
95
|
}
|
|
120
|
-
get
|
|
96
|
+
get drivers() {
|
|
121
97
|
var _a;
|
|
122
|
-
return ((_a = this.
|
|
98
|
+
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Client_js_7.Drivers(this._options)));
|
|
123
99
|
}
|
|
124
|
-
get
|
|
100
|
+
get milestoneNotifications() {
|
|
125
101
|
var _a;
|
|
126
|
-
return ((_a = this.
|
|
102
|
+
return ((_a = this._milestoneNotifications) !== null && _a !== void 0 ? _a : (this._milestoneNotifications = new Client_js_8.MilestoneNotifications(this._options)));
|
|
127
103
|
}
|
|
128
|
-
get
|
|
104
|
+
get milestones() {
|
|
129
105
|
var _a;
|
|
130
|
-
return ((_a = this.
|
|
106
|
+
return ((_a = this._milestones) !== null && _a !== void 0 ? _a : (this._milestones = new Client_js_9.Milestones(this._options)));
|
|
131
107
|
}
|
|
132
|
-
get
|
|
108
|
+
get offChrtShipperOrgConnectionInfo() {
|
|
133
109
|
var _a;
|
|
134
|
-
return ((_a = this.
|
|
110
|
+
return ((_a = this._offChrtShipperOrgConnectionInfo) !== null && _a !== void 0 ? _a : (this._offChrtShipperOrgConnectionInfo = new Client_js_10.OffChrtShipperOrgConnectionInfo(this._options)));
|
|
135
111
|
}
|
|
136
|
-
get
|
|
112
|
+
get orders() {
|
|
137
113
|
var _a;
|
|
138
|
-
return ((_a = this.
|
|
114
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_11.Orders(this._options)));
|
|
139
115
|
}
|
|
140
|
-
get
|
|
116
|
+
get orgProfiles() {
|
|
141
117
|
var _a;
|
|
142
|
-
return ((_a = this.
|
|
118
|
+
return ((_a = this._orgProfiles) !== null && _a !== void 0 ? _a : (this._orgProfiles = new Client_js_12.OrgProfiles(this._options)));
|
|
143
119
|
}
|
|
144
|
-
get
|
|
120
|
+
get shipperContactInfo() {
|
|
145
121
|
var _a;
|
|
146
|
-
return ((_a = this.
|
|
122
|
+
return ((_a = this._shipperContactInfo) !== null && _a !== void 0 ? _a : (this._shipperContactInfo = new Client_js_13.ShipperContactInfo(this._options)));
|
|
147
123
|
}
|
|
148
|
-
get
|
|
124
|
+
get taskGroups() {
|
|
149
125
|
var _a;
|
|
150
|
-
return ((_a = this.
|
|
126
|
+
return ((_a = this._taskGroups) !== null && _a !== void 0 ? _a : (this._taskGroups = new Client_js_14.TaskGroups(this._options)));
|
|
151
127
|
}
|
|
152
128
|
get orgs() {
|
|
153
129
|
var _a;
|
|
154
|
-
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new
|
|
130
|
+
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_15.Orgs(this._options)));
|
|
155
131
|
}
|
|
156
132
|
get payments() {
|
|
157
133
|
var _a;
|
|
158
|
-
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new
|
|
134
|
+
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_js_16.Payments(this._options)));
|
|
159
135
|
}
|
|
160
|
-
get
|
|
136
|
+
get users() {
|
|
161
137
|
var _a;
|
|
162
|
-
return ((_a = this.
|
|
138
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_17.Users(this._options)));
|
|
163
139
|
}
|
|
164
|
-
get
|
|
140
|
+
get notifications() {
|
|
141
|
+
var _a;
|
|
142
|
+
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_18.Notifications(this._options)));
|
|
143
|
+
}
|
|
144
|
+
get orgConnectionInfos() {
|
|
165
145
|
var _a;
|
|
166
|
-
return ((_a = this.
|
|
146
|
+
return ((_a = this._orgConnectionInfos) !== null && _a !== void 0 ? _a : (this._orgConnectionInfos = new Client_js_19.OrgConnectionInfos(this._options)));
|
|
167
147
|
}
|
|
168
148
|
}
|
|
169
149
|
exports.ChrtClient = ChrtClient;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../index.js";
|
|
7
|
+
import { ConnectionToCourier } from "../resources/connectionToCourier/client/Client.js";
|
|
8
|
+
export declare namespace Connections {
|
|
9
|
+
interface Options {
|
|
10
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
11
|
+
/** Specify a custom URL to connect the client to. */
|
|
12
|
+
baseUrl?: core.Supplier<string>;
|
|
13
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
+
fetcher?: core.FetchFunction;
|
|
17
|
+
}
|
|
18
|
+
interface RequestOptions {
|
|
19
|
+
/** The maximum time to wait for a response in seconds. */
|
|
20
|
+
timeoutInSeconds?: number;
|
|
21
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
22
|
+
maxRetries?: number;
|
|
23
|
+
/** A hook to abort the request. */
|
|
24
|
+
abortSignal?: AbortSignal;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare class Connections {
|
|
30
|
+
protected readonly _options: Connections.Options;
|
|
31
|
+
protected _connectionToCourier: ConnectionToCourier | undefined;
|
|
32
|
+
constructor(_options?: Connections.Options);
|
|
33
|
+
get connectionToCourier(): ConnectionToCourier;
|
|
34
|
+
/**
|
|
35
|
+
* List all couriers connected to the current org
|
|
36
|
+
*
|
|
37
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.connections.listCouriers()
|
|
41
|
+
*/
|
|
42
|
+
listCouriers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.CourierOrgConnectionInfo1[]>;
|
|
43
|
+
private __listCouriers;
|
|
44
|
+
/**
|
|
45
|
+
* List all shippers connected to the current org
|
|
46
|
+
*
|
|
47
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.connections.listShippers()
|
|
51
|
+
*/
|
|
52
|
+
listShippers(requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperOrgConnectionInfo1[]>;
|
|
53
|
+
private __listShippers;
|
|
54
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Connections = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
52
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
|
+
const Client_js_1 = require("../resources/connectionToCourier/client/Client.js");
|
|
54
|
+
class Connections {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
get connectionToCourier() {
|
|
59
|
+
var _a;
|
|
60
|
+
return ((_a = this._connectionToCourier) !== null && _a !== void 0 ? _a : (this._connectionToCourier = new Client_js_1.ConnectionToCourier(this._options)));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* List all couriers connected to the current org
|
|
64
|
+
*
|
|
65
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.connections.listCouriers()
|
|
69
|
+
*/
|
|
70
|
+
listCouriers(requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__listCouriers(requestOptions));
|
|
72
|
+
}
|
|
73
|
+
__listCouriers(requestOptions) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a, _b, _c, _d;
|
|
76
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
|
+
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/connections/couriers/list"),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
81
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
|
+
});
|
|
84
|
+
if (_response.ok) {
|
|
85
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
86
|
+
}
|
|
87
|
+
if (_response.error.reason === "status-code") {
|
|
88
|
+
throw new errors.ChrtError({
|
|
89
|
+
statusCode: _response.error.statusCode,
|
|
90
|
+
body: _response.error.body,
|
|
91
|
+
rawResponse: _response.rawResponse,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
switch (_response.error.reason) {
|
|
95
|
+
case "non-json":
|
|
96
|
+
throw new errors.ChrtError({
|
|
97
|
+
statusCode: _response.error.statusCode,
|
|
98
|
+
body: _response.error.rawBody,
|
|
99
|
+
rawResponse: _response.rawResponse,
|
|
100
|
+
});
|
|
101
|
+
case "timeout":
|
|
102
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/couriers/list.");
|
|
103
|
+
case "unknown":
|
|
104
|
+
throw new errors.ChrtError({
|
|
105
|
+
message: _response.error.errorMessage,
|
|
106
|
+
rawResponse: _response.rawResponse,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* List all shippers connected to the current org
|
|
113
|
+
*
|
|
114
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* await client.connections.listShippers()
|
|
118
|
+
*/
|
|
119
|
+
listShippers(requestOptions) {
|
|
120
|
+
return core.HttpResponsePromise.fromPromise(this.__listShippers(requestOptions));
|
|
121
|
+
}
|
|
122
|
+
__listShippers(requestOptions) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
var _a, _b, _c, _d;
|
|
125
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
126
|
+
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/connections/shippers/list"),
|
|
127
|
+
method: "GET",
|
|
128
|
+
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
129
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
130
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
131
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
132
|
+
});
|
|
133
|
+
if (_response.ok) {
|
|
134
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
135
|
+
}
|
|
136
|
+
if (_response.error.reason === "status-code") {
|
|
137
|
+
throw new errors.ChrtError({
|
|
138
|
+
statusCode: _response.error.statusCode,
|
|
139
|
+
body: _response.error.body,
|
|
140
|
+
rawResponse: _response.rawResponse,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
switch (_response.error.reason) {
|
|
144
|
+
case "non-json":
|
|
145
|
+
throw new errors.ChrtError({
|
|
146
|
+
statusCode: _response.error.statusCode,
|
|
147
|
+
body: _response.error.rawBody,
|
|
148
|
+
rawResponse: _response.rawResponse,
|
|
149
|
+
});
|
|
150
|
+
case "timeout":
|
|
151
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/connections/shippers/list.");
|
|
152
|
+
case "unknown":
|
|
153
|
+
throw new errors.ChrtError({
|
|
154
|
+
message: _response.error.errorMessage,
|
|
155
|
+
rawResponse: _response.rawResponse,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
_getAuthorizationHeader() {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
163
|
+
if (bearer != null) {
|
|
164
|
+
return `Bearer ${bearer}`;
|
|
165
|
+
}
|
|
166
|
+
return undefined;
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.Connections = Connections;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|