@chrt-inc/typescript-sdk 0.0.170 → 0.1.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +24 -36
- package/dist/cjs/Client.js +50 -70
- package/dist/cjs/api/resources/index.d.ts +14 -24
- package/dist/cjs/api/resources/index.js +15 -25
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → messages}/client/Client.d.ts +22 -14
- package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → messages}/client/Client.js +42 -23
- package/dist/cjs/api/resources/messages/client/requests/ShipperToCourierCreate1.d.ts +27 -0
- package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/mirror/client/Client.d.ts +0 -27
- package/dist/cjs/api/resources/mirror/client/Client.js +0 -121
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/Client.d.ts +12 -42
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/Client.js +36 -79
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRate/client/index.js +0 -15
- package/dist/cjs/api/resources/oortDrivers/client/Client.d.ts +4 -17
- package/dist/cjs/api/resources/oortDrivers/client/Client.js +3 -60
- package/dist/cjs/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +0 -2
- package/dist/cjs/api/resources/oortDrivers/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/{oortConnections → oortHandles}/client/Client.d.ts +25 -18
- package/dist/cjs/api/resources/{oortConnections → oortHandles}/client/Client.js +44 -32
- package/dist/cjs/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → oortHandles/client/requests/HandlesReq.d.ts} +1 -1
- package/dist/cjs/api/resources/oortHandles/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/oortMilestones/client/Client.d.ts +0 -31
- package/dist/cjs/api/resources/oortMilestones/client/Client.js +0 -122
- package/dist/cjs/api/resources/oortMilestones/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortOrders/client/Client.d.ts +1 -22
- package/dist/cjs/api/resources/oortOrders/client/Client.js +1 -105
- package/dist/cjs/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +0 -2
- package/dist/cjs/api/resources/oortOrgProfiles/client/Client.d.ts +14 -42
- package/dist/cjs/api/resources/oortOrgProfiles/client/Client.js +34 -157
- package/dist/cjs/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +5 -4
- package/dist/cjs/api/resources/oortOrgProfiles/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortRateSheets/client/Client.d.ts +70 -0
- package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → oortRateSheets}/client/Client.js +57 -44
- package/dist/cjs/api/resources/{oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts → oortRateSheets/client/requests/RateSheetClientCreate1.d.ts} +7 -8
- package/dist/cjs/api/resources/oortRateSheets/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/oortRoutes/client/Client.d.ts +112 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/Client.js +130 -142
- package/dist/cjs/api/resources/oortRoutes/client/requests/GetOortRoutesByIdRequest.d.ts +29 -0
- package/dist/{esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts → cjs/api/resources/oortRoutes/client/requests/RouteCreateReq.d.ts} +3 -3
- package/dist/cjs/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts → oortRoutes/client/requests/UpdateRouteReq.d.ts} +5 -3
- package/dist/cjs/api/resources/oortRoutes/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/oortShippers/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/{oortMilestoneNotificationPreferences → oortShippers}/client/Client.js +24 -41
- package/dist/cjs/api/resources/oortTaskGroups/client/Client.d.ts +6 -60
- package/dist/cjs/api/resources/oortTaskGroups/client/Client.js +2 -238
- package/dist/cjs/api/resources/oortTaskGroups/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortTaskGroups/client/index.js +0 -15
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -57
- package/dist/cjs/api/resources/orgs/client/Client.js +2 -230
- package/dist/{esm/api/resources/oortConnections/client/requests/CreateConnectionReq.d.mts → cjs/api/resources/orgs/client/requests/PostOrgPublicDataReq.d.ts} +1 -1
- package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -2
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +72 -0
- package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → profiles}/client/Client.js +52 -37
- package/dist/cjs/api/resources/profiles/client/requests/CourierProfileCreate2.d.ts +32 -0
- package/dist/cjs/api/resources/profiles/client/requests/GetCourierProfileRequest.d.ts +12 -0
- package/dist/cjs/api/resources/profiles/client/requests/GetHandleIsAvailableRequest.d.ts +15 -0
- package/dist/cjs/api/resources/profiles/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/profiles/index.d.ts +2 -0
- package/dist/cjs/api/resources/profiles/index.js +18 -0
- package/dist/cjs/api/resources/profiles/types/Type.d.ts +8 -0
- package/dist/cjs/api/resources/profiles/types/Type.js +10 -0
- package/dist/cjs/api/resources/profiles/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/profiles/types/index.js +17 -0
- package/dist/cjs/api/resources/root/types/PydanticResponse.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
- package/dist/{esm/api/types/Vehicle1.d.mts → cjs/api/types/AppModelsDbOortVehicle1Vehicle1.d.ts} +1 -1
- package/dist/cjs/api/types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.d.ts +10 -0
- package/dist/cjs/api/types/CourierAvailabilityEnum.d.ts +9 -0
- package/dist/cjs/api/types/CourierAvailabilityEnum.js +11 -0
- package/dist/cjs/api/types/{MultipleTaskGroupsDetailsResponse.d.ts → CourierCity.d.ts} +4 -2
- package/dist/cjs/api/types/{CourierOrgConnectionInfo1.d.ts → CourierOrgInfo1.d.ts} +2 -1
- package/dist/cjs/api/types/CourierOrgProfile3.d.ts +1 -2
- package/dist/cjs/api/types/CourierProfile2.d.ts +28 -0
- package/dist/cjs/api/types/{MultipleTaskGroupsWithTasks.d.ts → CourierProfileRes2.d.ts} +3 -2
- package/dist/cjs/api/types/CourierServiceEnum.d.ts +20 -0
- package/dist/cjs/api/types/CourierServiceEnum.js +22 -0
- package/dist/cjs/api/types/CourierState.d.ts +8 -0
- package/dist/cjs/api/types/Driver1.d.ts +4 -6
- package/dist/cjs/api/types/EmailAddress1.d.ts +8 -0
- package/dist/cjs/api/types/{TaskGroupWithDetails.d.ts → GetTaskGroupWithFullTaskInfoRes.d.ts} +2 -2
- package/dist/cjs/api/types/{TaskGroupWithTasks.d.ts → GetTaskGroupWithTasksRes.d.ts} +1 -1
- package/dist/cjs/api/types/GetTaskGroupsWithFullTaskInfoListRes.d.ts +7 -0
- package/dist/cjs/api/types/GetTaskGroupsWithTasksListRes.d.ts +7 -0
- package/dist/cjs/api/types/{TaskGroupDetailsResponse.d.ts → GetTaskInfoListRes.d.ts} +2 -2
- package/dist/cjs/api/types/IndustryEnum.d.ts +21 -0
- package/dist/cjs/api/types/IndustryEnum.js +23 -0
- package/dist/cjs/api/types/Milestone1.d.ts +1 -5
- package/dist/cjs/api/types/MilestoneTypeEnum1.d.ts +2 -3
- package/dist/cjs/api/types/MilestoneTypeEnum1.js +1 -2
- package/dist/cjs/api/types/Order1.d.ts +1 -4
- package/dist/cjs/api/types/OrgPublicData2.d.ts +0 -1
- package/dist/cjs/api/types/PhoneNumber1.d.ts +8 -0
- package/dist/cjs/api/types/{CourierPayDriverRateSheet1.d.ts → RateSheet1.d.ts} +7 -7
- package/dist/cjs/api/types/Route1.d.ts +13 -0
- package/dist/cjs/api/types/RouteByIdEnum.d.ts +8 -0
- package/dist/cjs/api/types/RouteByIdEnum.js +10 -0
- package/dist/cjs/api/types/RouteDetailRes.d.ts +9 -0
- package/dist/cjs/api/types/{ShipperOrgConnectionInfo1.d.ts → ShipperOrgInfo1.d.ts} +2 -1
- package/dist/cjs/api/types/ShipperToCourier1.d.ts +16 -0
- package/dist/cjs/api/types/{ShipperContactInfoClientCreate1.d.ts → ShipperUserInfo1.d.ts} +3 -3
- package/dist/cjs/api/types/SocialLinks.d.ts +8 -0
- package/dist/cjs/api/types/Task1.d.ts +4 -4
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +3 -3
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +0 -2
- package/dist/cjs/api/types/TaskDetailRes.d.ts +9 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -7
- package/dist/cjs/api/types/TaskGroupDetailRes.d.ts +8 -0
- package/dist/cjs/api/types/{TaskWithDetails.d.ts → TaskInfo.d.ts} +1 -1
- package/dist/cjs/api/types/{UpdateTaskGroupRes.d.ts → UpdateRouteRes.d.ts} +1 -1
- package/dist/cjs/api/types/UsStatesEnum.d.ts +58 -0
- package/dist/cjs/api/types/UsStatesEnum.js +60 -0
- package/dist/cjs/api/types/{UserPublicData6.d.ts → UserPublicData5.d.ts} +2 -1
- package/dist/cjs/api/types/Vehicle1Input.d.ts +10 -0
- package/dist/cjs/api/types/VehicleRate1.d.ts +9 -0
- package/dist/cjs/api/types/index.d.ts +33 -28
- package/dist/cjs/api/types/index.js +33 -28
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +24 -36
- package/dist/esm/Client.mjs +34 -54
- package/dist/esm/api/resources/index.d.mts +14 -24
- package/dist/esm/api/resources/index.mjs +14 -24
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → messages}/client/Client.d.mts +22 -14
- package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → messages}/client/Client.mjs +40 -21
- package/dist/esm/api/resources/messages/client/requests/ShipperToCourierCreate1.d.mts +27 -0
- package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/mirror/client/Client.d.mts +0 -27
- package/dist/esm/api/resources/mirror/client/Client.mjs +0 -121
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/Client.d.mts +12 -42
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/Client.mjs +36 -79
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRate/client/index.mjs +1 -1
- package/dist/esm/api/resources/oortDrivers/client/Client.d.mts +4 -17
- package/dist/esm/api/resources/oortDrivers/client/Client.mjs +3 -60
- package/dist/esm/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.mts +0 -2
- package/dist/esm/api/resources/oortDrivers/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/{oortConnections → oortHandles}/client/Client.d.mts +25 -18
- package/dist/esm/api/resources/{oortConnections → oortHandles}/client/Client.mjs +42 -30
- package/dist/esm/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.mts → oortHandles/client/requests/HandlesReq.d.mts} +1 -1
- package/dist/esm/api/resources/oortHandles/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/oortMilestones/client/Client.d.mts +0 -31
- package/dist/esm/api/resources/oortMilestones/client/Client.mjs +0 -122
- package/dist/esm/api/resources/oortMilestones/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortOrders/client/Client.d.mts +1 -22
- package/dist/esm/api/resources/oortOrders/client/Client.mjs +1 -105
- package/dist/esm/api/resources/oortOrders/client/requests/CreateOrderReq.d.mts +0 -2
- package/dist/esm/api/resources/oortOrgProfiles/client/Client.d.mts +14 -42
- package/dist/esm/api/resources/oortOrgProfiles/client/Client.mjs +34 -157
- package/dist/esm/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.mts +5 -4
- package/dist/esm/api/resources/oortOrgProfiles/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/oortRateSheets/client/Client.d.mts +70 -0
- package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → oortRateSheets}/client/Client.mjs +55 -42
- package/dist/esm/api/resources/{oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts → oortRateSheets/client/requests/RateSheetClientCreate1.d.mts} +7 -8
- package/dist/esm/api/resources/oortRateSheets/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/oortRoutes/client/Client.d.mts +112 -0
- package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/Client.mjs +128 -140
- package/dist/esm/api/resources/oortRoutes/client/requests/GetOortRoutesByIdRequest.d.mts +29 -0
- package/dist/{cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts → esm/api/resources/oortRoutes/client/requests/RouteCreateReq.d.mts} +3 -3
- package/dist/esm/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.d.mts → oortRoutes/client/requests/UpdateRouteReq.d.mts} +5 -3
- package/dist/esm/api/resources/oortRoutes/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/oortShippers/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → oortShippers}/client/Client.mjs +22 -39
- package/dist/esm/api/resources/oortTaskGroups/client/Client.d.mts +6 -60
- package/dist/esm/api/resources/oortTaskGroups/client/Client.mjs +2 -238
- package/dist/esm/api/resources/oortTaskGroups/client/index.d.mts +0 -1
- package/dist/esm/api/resources/oortTaskGroups/client/index.mjs +1 -1
- package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -57
- package/dist/esm/api/resources/orgs/client/Client.mjs +2 -230
- package/dist/{cjs/api/resources/oortConnections/client/requests/CreateConnectionReq.d.ts → esm/api/resources/orgs/client/requests/PostOrgPublicDataReq.d.mts} +1 -1
- package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/profiles/client/Client.d.mts +72 -0
- package/dist/esm/api/resources/{oortCourierPayDriverPayouts → profiles}/client/Client.mjs +50 -35
- package/dist/esm/api/resources/profiles/client/requests/CourierProfileCreate2.d.mts +32 -0
- package/dist/esm/api/resources/profiles/client/requests/GetCourierProfileRequest.d.mts +12 -0
- package/dist/esm/api/resources/profiles/client/requests/GetHandleIsAvailableRequest.d.mts +15 -0
- package/dist/esm/api/resources/profiles/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/profiles/index.d.mts +2 -0
- package/dist/esm/api/resources/profiles/index.mjs +2 -0
- package/dist/esm/api/resources/profiles/types/Type.d.mts +8 -0
- package/dist/{cjs/api/types/EmailReq.d.ts → esm/api/resources/profiles/types/Type.mjs} +4 -3
- package/dist/esm/api/resources/profiles/types/index.d.mts +1 -0
- package/dist/esm/api/resources/profiles/types/index.mjs +1 -0
- package/dist/esm/api/resources/root/types/PydanticResponse.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
- package/dist/{cjs/api/types/Vehicle1.d.ts → esm/api/types/AppModelsDbOortVehicle1Vehicle1.d.mts} +1 -1
- package/dist/esm/api/types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.d.mts +10 -0
- package/dist/esm/api/types/CourierAvailabilityEnum.d.mts +9 -0
- package/dist/esm/api/types/CourierAvailabilityEnum.mjs +8 -0
- package/dist/esm/api/types/CourierCity.d.mts +9 -0
- package/dist/esm/api/types/{CourierOrgConnectionInfo1.d.mts → CourierOrgInfo1.d.mts} +2 -1
- package/dist/esm/api/types/CourierOrgProfile3.d.mts +1 -2
- package/dist/esm/api/types/CourierProfile2.d.mts +28 -0
- package/dist/esm/api/types/{MultipleTaskGroupsWithTasks.d.mts → CourierProfileRes2.d.mts} +3 -2
- package/dist/esm/api/types/CourierServiceEnum.d.mts +20 -0
- package/dist/esm/api/types/CourierServiceEnum.mjs +19 -0
- package/dist/esm/api/types/CourierState.d.mts +8 -0
- package/dist/esm/api/types/Driver1.d.mts +4 -6
- package/dist/esm/api/types/EmailAddress1.d.mts +8 -0
- package/dist/esm/api/types/{TaskGroupWithDetails.d.mts → GetTaskGroupWithFullTaskInfoRes.d.mts} +2 -2
- package/dist/esm/api/types/{TaskGroupWithTasks.d.mts → GetTaskGroupWithTasksRes.d.mts} +1 -1
- package/dist/esm/api/types/GetTaskGroupsWithFullTaskInfoListRes.d.mts +7 -0
- package/dist/esm/api/types/GetTaskGroupsWithTasksListRes.d.mts +7 -0
- package/dist/esm/api/types/{TaskGroupDetailsResponse.d.mts → GetTaskInfoListRes.d.mts} +2 -2
- package/dist/esm/api/types/IndustryEnum.d.mts +21 -0
- package/dist/esm/api/types/IndustryEnum.mjs +20 -0
- package/dist/esm/api/types/Milestone1.d.mts +1 -5
- package/dist/esm/api/types/MilestoneTypeEnum1.d.mts +2 -3
- package/dist/esm/api/types/MilestoneTypeEnum1.mjs +1 -2
- package/dist/esm/api/types/Order1.d.mts +1 -4
- package/dist/esm/api/types/OrgPublicData2.d.mts +0 -1
- package/dist/esm/api/types/PhoneNumber1.d.mts +8 -0
- package/dist/esm/api/types/{CourierPayDriverRateSheet1.d.mts → RateSheet1.d.mts} +7 -7
- package/dist/esm/api/types/Route1.d.mts +13 -0
- package/dist/esm/api/types/RouteByIdEnum.d.mts +8 -0
- package/dist/esm/api/types/RouteByIdEnum.mjs +7 -0
- package/dist/esm/api/types/RouteDetailRes.d.mts +9 -0
- package/dist/esm/api/types/{ShipperOrgConnectionInfo1.d.mts → ShipperOrgInfo1.d.mts} +2 -1
- package/dist/esm/api/types/ShipperToCourier1.d.mts +16 -0
- package/dist/esm/api/types/{ShipperContactInfoClientCreate1.d.mts → ShipperUserInfo1.d.mts} +3 -3
- package/dist/esm/api/types/SocialLinks.d.mts +8 -0
- package/dist/esm/api/types/Task1.d.mts +4 -4
- package/dist/esm/api/types/TaskClientCreate1.d.mts +3 -3
- package/dist/esm/api/types/TaskCreateBundle.d.mts +0 -2
- package/dist/esm/api/types/TaskDetailRes.d.mts +9 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -7
- package/dist/esm/api/types/{MultipleTaskGroupsDetailsResponse.d.mts → TaskGroupDetailRes.d.mts} +3 -2
- package/dist/esm/api/types/{TaskWithDetails.d.mts → TaskInfo.d.mts} +1 -1
- package/dist/esm/api/types/{UpdateTaskGroupRes.d.mts → UpdateRouteRes.d.mts} +1 -1
- package/dist/esm/api/types/UsStatesEnum.d.mts +58 -0
- package/dist/esm/api/types/UsStatesEnum.mjs +57 -0
- package/dist/esm/api/types/{UserPublicData6.d.mts → UserPublicData5.d.mts} +2 -1
- package/dist/esm/api/types/Vehicle1Input.d.mts +10 -0
- package/dist/esm/api/types/VehicleRate1.d.mts +9 -0
- package/dist/esm/api/types/index.d.mts +33 -28
- package/dist/esm/api/types/index.mjs +33 -28
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +604 -3034
- package/dist/cjs/api/resources/notificationsCourierNotificationPreferences/client/Client.d.ts +0 -57
- package/dist/cjs/api/resources/notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/notificationsCourierNotificationPreferences/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/Client.d.ts +0 -57
- package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/notificationsShipperNotificationPreferences/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortConnections/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.ts +0 -136
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/AddLineItemsReq.d.ts +0 -19
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.d.ts +0 -18
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.d.ts +0 -18
- 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/RemoveLineItemsReq.d.ts +0 -19
- package/dist/cjs/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.ts +0 -6
- package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/Client.d.ts +0 -70
- package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.ts +0 -14
- package/dist/cjs/api/resources/oortCourierPayDriverPayouts/client/requests/index.d.ts +0 -1
- 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/Client.js +0 -243
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/index.js +0 -17
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +0 -29
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortCourierPayDriverRateSheets/index.js +0 -17
- package/dist/cjs/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +0 -17
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/index.js +0 -17
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortMilestoneNotificationPreferences/index.js +0 -17
- package/dist/cjs/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +0 -16
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.d.ts +0 -75
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.js +0 -252
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/index.js +0 -17
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +0 -25
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +0 -20
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortOffChrtShipperOrgConnectionInfo/index.js +0 -17
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -110
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/Client.js +0 -412
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/index.js +0 -17
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +0 -24
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +0 -20
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +0 -24
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +0 -20
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/oortOrgConnectionInfos/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortOrgConnectionInfos/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortOrgConnectionInfos/index.js +0 -17
- package/dist/cjs/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +0 -12
- package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.d.ts +0 -148
- package/dist/cjs/api/resources/oortShipperContactInfo/client/Client.js +0 -579
- package/dist/cjs/api/resources/oortShipperContactInfo/client/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortShipperContactInfo/client/index.js +0 -17
- package/dist/cjs/api/resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +0 -21
- package/dist/cjs/api/resources/oortShipperContactInfo/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortShipperContactInfo/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/oortShipperContactInfo/index.d.ts +0 -1
- package/dist/cjs/api/resources/oortShipperContactInfo/index.js +0 -17
- package/dist/cjs/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +0 -14
- package/dist/cjs/api/resources/oortTaskGroups/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/oortTaskGroups/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +0 -14
- package/dist/cjs/api/types/CourierNotificationEventEnum.d.ts +0 -7
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +0 -18
- package/dist/cjs/api/types/CourierPayDriverLineItemGroup1.d.ts +0 -14
- package/dist/cjs/api/types/CourierPayDriverLineItemGroupClientCreate1.d.ts +0 -10
- package/dist/cjs/api/types/DriverStatusEnum.d.ts +0 -9
- package/dist/cjs/api/types/DriverStatusEnum.js +0 -11
- package/dist/cjs/api/types/EmailRes.d.ts +0 -7
- package/dist/cjs/api/types/MilestoneNotificationPreferences1.d.ts +0 -18
- package/dist/cjs/api/types/MultipleTaskGroupsWithTasks.js +0 -5
- package/dist/cjs/api/types/NotificationChannelEnum.d.ts +0 -13
- package/dist/cjs/api/types/NotificationChannelEnum.js +0 -12
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +0 -23
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.js +0 -5
- package/dist/cjs/api/types/OrderStatusEnum1.d.ts +0 -10
- package/dist/cjs/api/types/OrderStatusEnum1.js +0 -12
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +0 -28
- package/dist/cjs/api/types/ShipperContactInfo1.js +0 -5
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.js +0 -5
- package/dist/cjs/api/types/ShipperNotificationEventEnum.d.ts +0 -7
- package/dist/cjs/api/types/ShipperNotificationEventEnum.js +0 -5
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +0 -18
- package/dist/cjs/api/types/ShipperNotificationPreferences1.js +0 -5
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.js +0 -5
- package/dist/cjs/api/types/TaskGroupDetailsResponse.js +0 -5
- package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +0 -9
- package/dist/cjs/api/types/TaskGroupStatusEnum1.js +0 -11
- package/dist/cjs/api/types/TaskGroupWithDetails.js +0 -5
- package/dist/cjs/api/types/TaskGroupWithTasks.js +0 -5
- package/dist/cjs/api/types/TaskWithDetails.js +0 -5
- package/dist/cjs/api/types/UpdateTaskGroupRes.js +0 -5
- package/dist/cjs/api/types/UserPublicData6.js +0 -5
- package/dist/cjs/api/types/Vehicle1.js +0 -5
- package/dist/esm/api/resources/notificationsCourierNotificationPreferences/client/Client.d.mts +0 -57
- package/dist/esm/api/resources/notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/notificationsCourierNotificationPreferences/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/Client.d.mts +0 -57
- package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/notificationsShipperNotificationPreferences/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortConnections/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/Client.d.mts +0 -136
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/AddLineItemsReq.d.mts +0 -19
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.d.mts +0 -18
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.d.mts +0 -18
- 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/RemoveLineItemsReq.d.mts +0 -19
- package/dist/esm/api/resources/oortCourierPayDriverLineItemGroups/client/requests/index.d.mts +0 -6
- package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/Client.d.mts +0 -70
- package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.d.mts +0 -14
- package/dist/esm/api/resources/oortCourierPayDriverPayouts/client/requests/index.d.mts +0 -1
- 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/Client.mjs +0 -206
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +0 -29
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/index.d.mts +0 -1
- package/dist/esm/api/resources/oortCourierPayDriverRateSheets/index.mjs +0 -1
- package/dist/esm/api/resources/oortDrivers/client/requests/DriverCreateReq.d.mts +0 -17
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/index.d.mts +0 -1
- package/dist/esm/api/resources/oortMilestoneNotificationPreferences/index.mjs +0 -1
- package/dist/esm/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.mts +0 -16
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.d.mts +0 -75
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/Client.mjs +0 -215
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +0 -25
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +0 -20
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/index.d.mts +0 -1
- package/dist/esm/api/resources/oortOffChrtShipperOrgConnectionInfo/index.mjs +0 -1
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.d.mts +0 -110
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/Client.mjs +0 -375
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +0 -24
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +0 -20
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +0 -24
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +0 -20
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/oortOrgConnectionInfos/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/oortOrgConnectionInfos/index.d.mts +0 -1
- package/dist/esm/api/resources/oortOrgConnectionInfos/index.mjs +0 -1
- package/dist/esm/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +0 -12
- package/dist/esm/api/resources/oortShipperContactInfo/client/Client.d.mts +0 -148
- package/dist/esm/api/resources/oortShipperContactInfo/client/Client.mjs +0 -542
- package/dist/esm/api/resources/oortShipperContactInfo/client/index.d.mts +0 -2
- package/dist/esm/api/resources/oortShipperContactInfo/client/index.mjs +0 -1
- package/dist/esm/api/resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +0 -21
- package/dist/esm/api/resources/oortShipperContactInfo/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/oortShipperContactInfo/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/oortShipperContactInfo/index.d.mts +0 -1
- package/dist/esm/api/resources/oortShipperContactInfo/index.mjs +0 -1
- package/dist/esm/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.mts +0 -14
- package/dist/esm/api/resources/oortTaskGroups/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/oortTaskGroups/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.mts +0 -14
- package/dist/esm/api/types/CourierNotificationEventEnum.d.mts +0 -7
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +0 -18
- package/dist/esm/api/types/CourierPayDriverLineItemGroup1.d.mts +0 -14
- package/dist/esm/api/types/CourierPayDriverLineItemGroupClientCreate1.d.mts +0 -10
- package/dist/esm/api/types/DriverStatusEnum.d.mts +0 -9
- package/dist/esm/api/types/DriverStatusEnum.mjs +0 -8
- package/dist/esm/api/types/EmailReq.d.mts +0 -6
- package/dist/esm/api/types/EmailRes.d.mts +0 -7
- package/dist/esm/api/types/MilestoneNotificationPreferences1.d.mts +0 -18
- package/dist/esm/api/types/MultipleTaskGroupsWithTasks.mjs +0 -4
- package/dist/esm/api/types/NotificationChannelEnum.d.mts +0 -13
- package/dist/esm/api/types/NotificationChannelEnum.mjs +0 -9
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +0 -23
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.mjs +0 -4
- package/dist/esm/api/types/OrderStatusEnum1.d.mts +0 -10
- package/dist/esm/api/types/OrderStatusEnum1.mjs +0 -9
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +0 -28
- package/dist/esm/api/types/ShipperContactInfo1.mjs +0 -4
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.mjs +0 -4
- package/dist/esm/api/types/ShipperNotificationEventEnum.d.mts +0 -7
- package/dist/esm/api/types/ShipperNotificationEventEnum.mjs +0 -4
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +0 -18
- package/dist/esm/api/types/ShipperNotificationPreferences1.mjs +0 -4
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.mjs +0 -4
- package/dist/esm/api/types/TaskGroupDetailsResponse.mjs +0 -4
- package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +0 -9
- package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +0 -8
- package/dist/esm/api/types/TaskGroupWithDetails.mjs +0 -4
- package/dist/esm/api/types/TaskGroupWithTasks.mjs +0 -4
- package/dist/esm/api/types/TaskWithDetails.mjs +0 -4
- package/dist/esm/api/types/UpdateTaskGroupRes.mjs +0 -4
- package/dist/esm/api/types/UserPublicData6.mjs +0 -4
- package/dist/esm/api/types/Vehicle1.mjs +0 -4
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.js → messages/client/requests/ShipperToCourierCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsCourierNotificationPreferences → messages}/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.js → oortHandles/client/requests/HandlesReq.js} +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortConnections/client/requests/CreateConnectionReq.js → oortRateSheets/client/requests/RateSheetClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortConnections → oortRateSheets}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/AddLineItemsReq.js → oortRoutes/client/requests/GetOortRoutesByIdRequest.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.js → oortRoutes/client/requests/RouteCreateReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.js → oortRoutes/client/requests/UpdateRouteReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/index.js +0 -0
- /package/dist/{esm/api/resources/notificationsCourierNotificationPreferences/client/requests/index.mjs → cjs/api/resources/oortShippers/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts/client/requests → oortShippers/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → oortShippers}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → oortShippers}/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.js → orgs/client/requests/PostOrgPublicDataReq.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → profiles}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts → profiles}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.js → profiles/client/requests/CourierProfileCreate2.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/RemoveLineItemsReq.js → profiles/client/requests/GetCourierProfileRequest.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.js → profiles/client/requests/GetHandleIsAvailableRequest.js} +0 -0
- /package/dist/cjs/api/resources/{oortCourierPayDriverRate → profiles}/client/requests/index.js +0 -0
- /package/dist/cjs/api/{resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.js → types/AppModelsDbOortVehicle1Vehicle1.js} +0 -0
- /package/dist/cjs/api/{resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.js → types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.js} +0 -0
- /package/dist/cjs/api/{resources/oortDrivers/client/requests/DriverCreateReq.js → types/CourierCity.js} +0 -0
- /package/dist/cjs/api/{resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.js → types/CourierOrgInfo1.js} +0 -0
- /package/dist/cjs/api/{resources/oortMilestones/client/requests/MilestoneAddToTaskReq.js → types/CourierProfile2.js} +0 -0
- /package/dist/cjs/api/{resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.js → types/CourierProfileRes2.js} +0 -0
- /package/dist/cjs/api/{resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.js → types/CourierState.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js → types/EmailAddress1.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.js → types/GetTaskGroupWithFullTaskInfoRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js → types/GetTaskGroupWithTasksRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → types/GetTaskGroupsWithFullTaskInfoListRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.js → types/GetTaskGroupsWithTasksListRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortOrgProfiles/client/requests/GetAvatarRequest.js → types/GetTaskInfoListRes.js} +0 -0
- /package/dist/cjs/api/{resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.js → types/PhoneNumber1.js} +0 -0
- /package/dist/cjs/api/{resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.js → types/RateSheet1.js} +0 -0
- /package/dist/cjs/api/{resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.js → types/Route1.js} +0 -0
- /package/dist/cjs/api/{resources/orgs/client/requests/CreateOrgPublicDataReq.js → types/RouteDetailRes.js} +0 -0
- /package/dist/cjs/api/{resources/orgs/client/requests/UpdateOrgPublicDataReq.js → types/ShipperOrgInfo1.js} +0 -0
- /package/dist/cjs/api/types/{CourierNotificationEventEnum.js → ShipperToCourier1.js} +0 -0
- /package/dist/cjs/api/types/{CourierNotificationPreferences1.js → ShipperUserInfo1.js} +0 -0
- /package/dist/cjs/api/types/{CourierOrgConnectionInfo1.js → SocialLinks.js} +0 -0
- /package/dist/cjs/api/types/{CourierPayDriverLineItemGroup1.js → TaskDetailRes.js} +0 -0
- /package/dist/cjs/api/types/{CourierPayDriverLineItemGroupClientCreate1.js → TaskGroupDetailRes.js} +0 -0
- /package/dist/cjs/api/types/{CourierPayDriverRateSheet1.js → TaskInfo.js} +0 -0
- /package/dist/cjs/api/types/{EmailReq.js → UpdateRouteRes.js} +0 -0
- /package/dist/cjs/api/types/{EmailRes.js → UserPublicData5.js} +0 -0
- /package/dist/cjs/api/types/{MilestoneNotificationPreferences1.js → Vehicle1Input.js} +0 -0
- /package/dist/cjs/api/types/{MultipleTaskGroupsDetailsResponse.js → VehicleRate1.js} +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → messages}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → messages}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences/client/requests/CourierNotificationPreferencesClientCreate1.mjs → messages/client/requests/ShipperToCourierCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → messages}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → messages}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsCourierNotificationPreferences → messages}/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences/client/requests/ShipperNotificationPreferencesClientCreate1.mjs → oortHandles/client/requests/HandlesReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortHandles}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notificationsShipperNotificationPreferences → oortHandles}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortRateSheets}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortRateSheets}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortConnections/client/requests/CreateConnectionReq.mjs → oortRateSheets/client/requests/RateSheetClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRateSheets}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortRateSheets}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortConnections → oortRateSheets}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/AddLineItemsReq.mjs → oortRoutes/client/requests/GetOortRoutesByIdRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/CreateCourierPayDriverLineItemGroupRequest.mjs → oortRoutes/client/requests/RouteCreateReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCalculateCourierPayDriverLineItemGroupRequest.mjs → oortRoutes/client/requests/UpdateRouteReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → oortRoutes}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups → oortRoutes}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRate/client/requests/index.mjs → oortShippers/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverRateSheets/client/requests → oortShippers/client}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → oortShippers}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → oortShippers}/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByIdRequest.mjs → orgs/client/requests/PostOrgPublicDataReq.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → profiles}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts → profiles}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/GetCourierPayDriverLineItemGroupByTaskGroupIdRequest.mjs → profiles/client/requests/CourierProfileCreate2.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverLineItemGroups/client/requests/RemoveLineItemsReq.mjs → profiles/client/requests/GetCourierProfileRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{oortCourierPayDriverPayouts/client/requests/CourierPayDriverPayoutClientCreate1.mjs → profiles/client/requests/GetHandleIsAvailableRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{oortMilestoneNotificationPreferences → profiles}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/{resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.mjs → types/AppModelsDbOortVehicle1Vehicle1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.mjs → types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortDrivers/client/requests/DriverCreateReq.mjs → types/CourierCity.mjs} +0 -0
- /package/dist/esm/api/{resources/oortMilestoneNotificationPreferences/client/requests/MilestoneNotificationPreferencesClientCreate1.mjs → types/CourierOrgInfo1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortMilestones/client/requests/MilestoneAddToTaskReq.mjs → types/CourierProfile2.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.mjs → types/CourierProfileRes2.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOffChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.mjs → types/CourierState.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.mjs → types/EmailAddress1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientUpdate1.mjs → types/GetTaskGroupWithFullTaskInfoRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.mjs → types/GetTaskGroupWithTasksRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.mjs → types/GetTaskGroupsWithFullTaskInfoListRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgProfiles/client/requests/CourierOrgProfileClientUpdate3.mjs → types/GetTaskGroupsWithTasksListRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortOrgProfiles/client/requests/GetAvatarRequest.mjs → types/GetTaskInfoListRes.mjs} +0 -0
- /package/dist/esm/api/{resources/oortShipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.mjs → types/PhoneNumber1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.mjs → types/RateSheet1.mjs} +0 -0
- /package/dist/esm/api/{resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.mjs → types/Route1.mjs} +0 -0
- /package/dist/esm/api/{resources/orgs/client/requests/CreateOrgPublicDataReq.mjs → types/RouteDetailRes.mjs} +0 -0
- /package/dist/esm/api/{resources/orgs/client/requests/UpdateOrgPublicDataReq.mjs → types/ShipperOrgInfo1.mjs} +0 -0
- /package/dist/esm/api/types/{CourierNotificationEventEnum.mjs → ShipperToCourier1.mjs} +0 -0
- /package/dist/esm/api/types/{CourierNotificationPreferences1.mjs → ShipperUserInfo1.mjs} +0 -0
- /package/dist/esm/api/types/{CourierOrgConnectionInfo1.mjs → SocialLinks.mjs} +0 -0
- /package/dist/esm/api/types/{CourierPayDriverLineItemGroup1.mjs → TaskDetailRes.mjs} +0 -0
- /package/dist/esm/api/types/{CourierPayDriverLineItemGroupClientCreate1.mjs → TaskGroupDetailRes.mjs} +0 -0
- /package/dist/esm/api/types/{CourierPayDriverRateSheet1.mjs → TaskInfo.mjs} +0 -0
- /package/dist/esm/api/types/{EmailReq.mjs → UpdateRouteRes.mjs} +0 -0
- /package/dist/esm/api/types/{EmailRes.mjs → UserPublicData5.mjs} +0 -0
- /package/dist/esm/api/types/{MilestoneNotificationPreferences1.mjs → Vehicle1Input.mjs} +0 -0
- /package/dist/esm/api/types/{MultipleTaskGroupsDetailsResponse.mjs → VehicleRate1.mjs} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../index.mjs";
|
|
7
|
-
export declare namespace
|
|
7
|
+
export declare namespace OortHandles {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -25,39 +25,46 @@ export declare namespace OortConnections {
|
|
|
25
25
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export declare class
|
|
29
|
-
protected readonly _options:
|
|
30
|
-
constructor(_options?:
|
|
28
|
+
export declare class OortHandles {
|
|
29
|
+
protected readonly _options: OortHandles.Options;
|
|
30
|
+
constructor(_options?: OortHandles.Options);
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* This uses the org_id from the JWT
|
|
33
|
+
*
|
|
34
|
+
* @param {OortHandles.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
35
|
*
|
|
34
36
|
* @example
|
|
35
|
-
* await client.
|
|
37
|
+
* await client.oortHandles.getHandlesByOrgId()
|
|
36
38
|
*/
|
|
37
|
-
|
|
38
|
-
private
|
|
39
|
+
getHandlesByOrgId(requestOptions?: OortHandles.RequestOptions): core.HttpResponsePromise<string>;
|
|
40
|
+
private __getHandlesByOrgId;
|
|
39
41
|
/**
|
|
40
|
-
*
|
|
42
|
+
* Check if a handle is available, returns true if it is, false if it is not
|
|
43
|
+
*
|
|
44
|
+
* @param {string} handle
|
|
45
|
+
* @param {OortHandles.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
48
|
*
|
|
42
49
|
* @example
|
|
43
|
-
* await client.
|
|
50
|
+
* await client.oortHandles.getAvailability("handle")
|
|
44
51
|
*/
|
|
45
|
-
|
|
46
|
-
private
|
|
52
|
+
getAvailability(handle: string, requestOptions?: OortHandles.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
53
|
+
private __getAvailability;
|
|
47
54
|
/**
|
|
48
|
-
*
|
|
55
|
+
* Create a new handle for an org
|
|
49
56
|
*
|
|
50
|
-
* @param {Chrt.
|
|
51
|
-
* @param {
|
|
57
|
+
* @param {Chrt.HandlesReq} request
|
|
58
|
+
* @param {OortHandles.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
59
|
*
|
|
53
60
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
54
61
|
*
|
|
55
62
|
* @example
|
|
56
|
-
* await client.
|
|
63
|
+
* await client.oortHandles.createHandle({
|
|
57
64
|
* handle: "handle"
|
|
58
65
|
* })
|
|
59
66
|
*/
|
|
60
|
-
|
|
61
|
-
private
|
|
67
|
+
createHandle(request: Chrt.HandlesReq, requestOptions?: OortHandles.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
68
|
+
private __createHandle;
|
|
62
69
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
63
70
|
}
|
|
@@ -12,27 +12,29 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
12
12
|
};
|
|
13
13
|
import * as environments from "../../../../environments.mjs";
|
|
14
14
|
import * as core from "../../../../core/index.mjs";
|
|
15
|
-
import * as Chrt from "../../../index.mjs";
|
|
16
15
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
16
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
-
|
|
17
|
+
import * as Chrt from "../../../index.mjs";
|
|
18
|
+
export class OortHandles {
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* This uses the org_id from the JWT
|
|
24
|
+
*
|
|
25
|
+
* @param {OortHandles.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
|
-
* await client.
|
|
28
|
+
* await client.oortHandles.getHandlesByOrgId()
|
|
27
29
|
*/
|
|
28
|
-
|
|
29
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
30
|
+
getHandlesByOrgId(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__getHandlesByOrgId(requestOptions));
|
|
30
32
|
}
|
|
31
|
-
|
|
33
|
+
__getHandlesByOrgId(requestOptions) {
|
|
32
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
35
|
var _a, _b, _c, _d;
|
|
34
36
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
35
|
-
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/
|
|
37
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/handles/by_org_id"),
|
|
36
38
|
method: "GET",
|
|
37
39
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
38
40
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -57,7 +59,7 @@ export class OortConnections {
|
|
|
57
59
|
rawResponse: _response.rawResponse,
|
|
58
60
|
});
|
|
59
61
|
case "timeout":
|
|
60
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/
|
|
62
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/handles/by_org_id.");
|
|
61
63
|
case "unknown":
|
|
62
64
|
throw new errors.ChrtError({
|
|
63
65
|
message: _response.error.errorMessage,
|
|
@@ -67,19 +69,24 @@ export class OortConnections {
|
|
|
67
69
|
});
|
|
68
70
|
}
|
|
69
71
|
/**
|
|
70
|
-
*
|
|
72
|
+
* Check if a handle is available, returns true if it is, false if it is not
|
|
73
|
+
*
|
|
74
|
+
* @param {string} handle
|
|
75
|
+
* @param {OortHandles.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
71
78
|
*
|
|
72
79
|
* @example
|
|
73
|
-
* await client.
|
|
80
|
+
* await client.oortHandles.getAvailability("handle")
|
|
74
81
|
*/
|
|
75
|
-
|
|
76
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
82
|
+
getAvailability(handle, requestOptions) {
|
|
83
|
+
return core.HttpResponsePromise.fromPromise(this.__getAvailability(handle, requestOptions));
|
|
77
84
|
}
|
|
78
|
-
|
|
85
|
+
__getAvailability(handle, requestOptions) {
|
|
79
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
87
|
var _a, _b, _c, _d;
|
|
81
88
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
82
|
-
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,
|
|
89
|
+
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/handles/availability/${encodeURIComponent(handle)}`),
|
|
83
90
|
method: "GET",
|
|
84
91
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -90,11 +97,16 @@ export class OortConnections {
|
|
|
90
97
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
91
98
|
}
|
|
92
99
|
if (_response.error.reason === "status-code") {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
100
|
+
switch (_response.error.statusCode) {
|
|
101
|
+
case 422:
|
|
102
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
103
|
+
default:
|
|
104
|
+
throw new errors.ChrtError({
|
|
105
|
+
statusCode: _response.error.statusCode,
|
|
106
|
+
body: _response.error.body,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
98
110
|
}
|
|
99
111
|
switch (_response.error.reason) {
|
|
100
112
|
case "non-json":
|
|
@@ -104,7 +116,7 @@ export class OortConnections {
|
|
|
104
116
|
rawResponse: _response.rawResponse,
|
|
105
117
|
});
|
|
106
118
|
case "timeout":
|
|
107
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/
|
|
119
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/handles/availability/{handle}.");
|
|
108
120
|
case "unknown":
|
|
109
121
|
throw new errors.ChrtError({
|
|
110
122
|
message: _response.error.errorMessage,
|
|
@@ -114,26 +126,26 @@ export class OortConnections {
|
|
|
114
126
|
});
|
|
115
127
|
}
|
|
116
128
|
/**
|
|
117
|
-
*
|
|
129
|
+
* Create a new handle for an org
|
|
118
130
|
*
|
|
119
|
-
* @param {Chrt.
|
|
120
|
-
* @param {
|
|
131
|
+
* @param {Chrt.HandlesReq} request
|
|
132
|
+
* @param {OortHandles.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
133
|
*
|
|
122
134
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
123
135
|
*
|
|
124
136
|
* @example
|
|
125
|
-
* await client.
|
|
137
|
+
* await client.oortHandles.createHandle({
|
|
126
138
|
* handle: "handle"
|
|
127
139
|
* })
|
|
128
140
|
*/
|
|
129
|
-
|
|
130
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
141
|
+
createHandle(request, requestOptions) {
|
|
142
|
+
return core.HttpResponsePromise.fromPromise(this.__createHandle(request, requestOptions));
|
|
131
143
|
}
|
|
132
|
-
|
|
144
|
+
__createHandle(request, requestOptions) {
|
|
133
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
146
|
var _a, _b, _c, _d;
|
|
135
147
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
136
|
-
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/
|
|
148
|
+
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/handles/create"),
|
|
137
149
|
method: "POST",
|
|
138
150
|
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
139
151
|
contentType: "application/json",
|
|
@@ -166,7 +178,7 @@ export class OortConnections {
|
|
|
166
178
|
rawResponse: _response.rawResponse,
|
|
167
179
|
});
|
|
168
180
|
case "timeout":
|
|
169
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/
|
|
181
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/handles/create.");
|
|
170
182
|
case "unknown":
|
|
171
183
|
throw new errors.ChrtError({
|
|
172
184
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type HandlesReq } from "./HandlesReq.mjs";
|
|
@@ -41,20 +41,6 @@ export declare class OortMilestones {
|
|
|
41
41
|
*/
|
|
42
42
|
postOortMilestonesUpdate(request: Chrt.MilestoneUpdateReq, requestOptions?: OortMilestones.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
43
43
|
private __postOortMilestonesUpdate;
|
|
44
|
-
/**
|
|
45
|
-
* @param {Chrt.MilestoneAddToTaskReq} request
|
|
46
|
-
* @param {OortMilestones.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
-
*
|
|
48
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* await client.oortMilestones.postOortMilestonesAddToTask({
|
|
52
|
-
* task_id: "task_id",
|
|
53
|
-
* type: "image"
|
|
54
|
-
* })
|
|
55
|
-
*/
|
|
56
|
-
postOortMilestonesAddToTask(request: Chrt.MilestoneAddToTaskReq, requestOptions?: OortMilestones.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
57
|
-
private __postOortMilestonesAddToTask;
|
|
58
44
|
/**
|
|
59
45
|
* @param {string} milestoneId
|
|
60
46
|
* @param {Chrt.BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost} request
|
|
@@ -93,22 +79,5 @@ export declare class OortMilestones {
|
|
|
93
79
|
*/
|
|
94
80
|
deleteOortMilestonesImage(milestoneS3ObjectMetadataId: string, requestOptions?: OortMilestones.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
95
81
|
private __deleteOortMilestonesImage;
|
|
96
|
-
/**
|
|
97
|
-
* Get the blurhash for a milestone image.
|
|
98
|
-
*
|
|
99
|
-
* This endpoint returns only the blurhash string, which is much faster
|
|
100
|
-
* than downloading the full image. Clients can use this for showing
|
|
101
|
-
* image placeholders while the full image loads.
|
|
102
|
-
*
|
|
103
|
-
* @param {string} milestoneS3ObjectMetadataId
|
|
104
|
-
* @param {OortMilestones.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
-
*
|
|
106
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* await client.oortMilestones.getOortMilestonesBlurhash("milestone_s3_object_metadata_id")
|
|
110
|
-
*/
|
|
111
|
-
getOortMilestonesBlurhash(milestoneS3ObjectMetadataId: string, requestOptions?: OortMilestones.RequestOptions): core.HttpResponsePromise<string>;
|
|
112
|
-
private __getOortMilestonesBlurhash;
|
|
113
82
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
114
83
|
}
|
|
@@ -79,67 +79,6 @@ export class OortMilestones {
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
/**
|
|
83
|
-
* @param {Chrt.MilestoneAddToTaskReq} request
|
|
84
|
-
* @param {OortMilestones.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
-
*
|
|
86
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
87
|
-
*
|
|
88
|
-
* @example
|
|
89
|
-
* await client.oortMilestones.postOortMilestonesAddToTask({
|
|
90
|
-
* task_id: "task_id",
|
|
91
|
-
* type: "image"
|
|
92
|
-
* })
|
|
93
|
-
*/
|
|
94
|
-
postOortMilestonesAddToTask(request, requestOptions) {
|
|
95
|
-
return core.HttpResponsePromise.fromPromise(this.__postOortMilestonesAddToTask(request, requestOptions));
|
|
96
|
-
}
|
|
97
|
-
__postOortMilestonesAddToTask(request, requestOptions) {
|
|
98
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
-
var _a, _b, _c, _d;
|
|
100
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
101
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "oort/milestones/add_to_task"),
|
|
102
|
-
method: "POST",
|
|
103
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
104
|
-
contentType: "application/json",
|
|
105
|
-
requestType: "json",
|
|
106
|
-
body: request,
|
|
107
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
108
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
109
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
110
|
-
});
|
|
111
|
-
if (_response.ok) {
|
|
112
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
113
|
-
}
|
|
114
|
-
if (_response.error.reason === "status-code") {
|
|
115
|
-
switch (_response.error.statusCode) {
|
|
116
|
-
case 422:
|
|
117
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
118
|
-
default:
|
|
119
|
-
throw new errors.ChrtError({
|
|
120
|
-
statusCode: _response.error.statusCode,
|
|
121
|
-
body: _response.error.body,
|
|
122
|
-
rawResponse: _response.rawResponse,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
switch (_response.error.reason) {
|
|
127
|
-
case "non-json":
|
|
128
|
-
throw new errors.ChrtError({
|
|
129
|
-
statusCode: _response.error.statusCode,
|
|
130
|
-
body: _response.error.rawBody,
|
|
131
|
-
rawResponse: _response.rawResponse,
|
|
132
|
-
});
|
|
133
|
-
case "timeout":
|
|
134
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/milestones/add_to_task.");
|
|
135
|
-
case "unknown":
|
|
136
|
-
throw new errors.ChrtError({
|
|
137
|
-
message: _response.error.errorMessage,
|
|
138
|
-
rawResponse: _response.rawResponse,
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
82
|
/**
|
|
144
83
|
* @param {string} milestoneId
|
|
145
84
|
* @param {Chrt.BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost} request
|
|
@@ -321,67 +260,6 @@ export class OortMilestones {
|
|
|
321
260
|
}
|
|
322
261
|
});
|
|
323
262
|
}
|
|
324
|
-
/**
|
|
325
|
-
* Get the blurhash for a milestone image.
|
|
326
|
-
*
|
|
327
|
-
* This endpoint returns only the blurhash string, which is much faster
|
|
328
|
-
* than downloading the full image. Clients can use this for showing
|
|
329
|
-
* image placeholders while the full image loads.
|
|
330
|
-
*
|
|
331
|
-
* @param {string} milestoneS3ObjectMetadataId
|
|
332
|
-
* @param {OortMilestones.RequestOptions} requestOptions - Request-specific configuration.
|
|
333
|
-
*
|
|
334
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
335
|
-
*
|
|
336
|
-
* @example
|
|
337
|
-
* await client.oortMilestones.getOortMilestonesBlurhash("milestone_s3_object_metadata_id")
|
|
338
|
-
*/
|
|
339
|
-
getOortMilestonesBlurhash(milestoneS3ObjectMetadataId, requestOptions) {
|
|
340
|
-
return core.HttpResponsePromise.fromPromise(this.__getOortMilestonesBlurhash(milestoneS3ObjectMetadataId, requestOptions));
|
|
341
|
-
}
|
|
342
|
-
__getOortMilestonesBlurhash(milestoneS3ObjectMetadataId, requestOptions) {
|
|
343
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
344
|
-
var _a, _b, _c, _d;
|
|
345
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
346
|
-
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/milestones/blurhash/${encodeURIComponent(milestoneS3ObjectMetadataId)}`),
|
|
347
|
-
method: "GET",
|
|
348
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
349
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
350
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
351
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
352
|
-
});
|
|
353
|
-
if (_response.ok) {
|
|
354
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
355
|
-
}
|
|
356
|
-
if (_response.error.reason === "status-code") {
|
|
357
|
-
switch (_response.error.statusCode) {
|
|
358
|
-
case 422:
|
|
359
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
360
|
-
default:
|
|
361
|
-
throw new errors.ChrtError({
|
|
362
|
-
statusCode: _response.error.statusCode,
|
|
363
|
-
body: _response.error.body,
|
|
364
|
-
rawResponse: _response.rawResponse,
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
switch (_response.error.reason) {
|
|
369
|
-
case "non-json":
|
|
370
|
-
throw new errors.ChrtError({
|
|
371
|
-
statusCode: _response.error.statusCode,
|
|
372
|
-
body: _response.error.rawBody,
|
|
373
|
-
rawResponse: _response.rawResponse,
|
|
374
|
-
});
|
|
375
|
-
case "timeout":
|
|
376
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/milestones/blurhash/{milestone_s3_object_metadata_id}.");
|
|
377
|
-
case "unknown":
|
|
378
|
-
throw new errors.ChrtError({
|
|
379
|
-
message: _response.error.errorMessage,
|
|
380
|
-
rawResponse: _response.rawResponse,
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
263
|
_getAuthorizationHeader() {
|
|
386
264
|
return __awaiter(this, void 0, void 0, function* () {
|
|
387
265
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export { type MilestoneUpdateReq } from "./MilestoneUpdateReq.mjs";
|
|
2
|
-
export { type MilestoneAddToTaskReq } from "./MilestoneAddToTaskReq.mjs";
|
|
3
2
|
export { type BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost } from "./BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.mjs";
|
|
@@ -29,7 +29,7 @@ export declare class OortOrders {
|
|
|
29
29
|
protected readonly _options: OortOrders.Options;
|
|
30
30
|
constructor(_options?: OortOrders.Options);
|
|
31
31
|
/**
|
|
32
|
-
* Accepts both order_id and order_short_id values and returns
|
|
32
|
+
* Accepts both order_id and order_short_id values and returns the Order
|
|
33
33
|
*
|
|
34
34
|
* @param {string} orderIdOrShortId
|
|
35
35
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -54,17 +54,6 @@ export declare class OortOrders {
|
|
|
54
54
|
*/
|
|
55
55
|
getOortOrdersOrderIdOrShortIdFull(orderIdOrShortId: string, requestOptions?: OortOrders.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderFullRes>;
|
|
56
56
|
private __getOortOrdersOrderIdOrShortIdFull;
|
|
57
|
-
/**
|
|
58
|
-
* @param {string} orderIdOrShortId
|
|
59
|
-
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
-
*
|
|
61
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* await client.oortOrders.putOortOrdersOrderIdOrShortIdCancel("order_id_or_short_id")
|
|
65
|
-
*/
|
|
66
|
-
putOortOrdersOrderIdOrShortIdCancel(orderIdOrShortId: string, requestOptions?: OortOrders.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
67
|
-
private __putOortOrdersOrderIdOrShortIdCancel;
|
|
68
57
|
/**
|
|
69
58
|
* @param {Chrt.CreateOrderReq} request
|
|
70
59
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -124,15 +113,5 @@ export declare class OortOrders {
|
|
|
124
113
|
*/
|
|
125
114
|
getOortOrdersListByCourierOrgId(requestOptions?: OortOrders.RequestOptions): core.HttpResponsePromise<Chrt.Order1[]>;
|
|
126
115
|
private __getOortOrdersListByCourierOrgId;
|
|
127
|
-
/**
|
|
128
|
-
* Uses the org_id from the JWT
|
|
129
|
-
*
|
|
130
|
-
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
|
-
*
|
|
132
|
-
* @example
|
|
133
|
-
* await client.oortOrders.getOortOrdersListByCourierOrgIdFull()
|
|
134
|
-
*/
|
|
135
|
-
getOortOrdersListByCourierOrgIdFull(requestOptions?: OortOrders.RequestOptions): core.HttpResponsePromise<Chrt.GetOrderFullRes[]>;
|
|
136
|
-
private __getOortOrdersListByCourierOrgIdFull;
|
|
137
116
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
138
117
|
}
|
|
@@ -20,7 +20,7 @@ export class OortOrders {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Accepts both order_id and order_short_id values and returns
|
|
23
|
+
* Accepts both order_id and order_short_id values and returns the Order
|
|
24
24
|
*
|
|
25
25
|
* @param {string} orderIdOrShortId
|
|
26
26
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -133,61 +133,6 @@ export class OortOrders {
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
/**
|
|
137
|
-
* @param {string} orderIdOrShortId
|
|
138
|
-
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
|
-
*
|
|
140
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* await client.oortOrders.putOortOrdersOrderIdOrShortIdCancel("order_id_or_short_id")
|
|
144
|
-
*/
|
|
145
|
-
putOortOrdersOrderIdOrShortIdCancel(orderIdOrShortId, requestOptions) {
|
|
146
|
-
return core.HttpResponsePromise.fromPromise(this.__putOortOrdersOrderIdOrShortIdCancel(orderIdOrShortId, requestOptions));
|
|
147
|
-
}
|
|
148
|
-
__putOortOrdersOrderIdOrShortIdCancel(orderIdOrShortId, requestOptions) {
|
|
149
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
-
var _a, _b, _c, _d;
|
|
151
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, `oort/orders/${encodeURIComponent(orderIdOrShortId)}/cancel`),
|
|
153
|
-
method: "PUT",
|
|
154
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
155
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
156
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
157
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
|
-
});
|
|
159
|
-
if (_response.ok) {
|
|
160
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
161
|
-
}
|
|
162
|
-
if (_response.error.reason === "status-code") {
|
|
163
|
-
switch (_response.error.statusCode) {
|
|
164
|
-
case 422:
|
|
165
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
166
|
-
default:
|
|
167
|
-
throw new errors.ChrtError({
|
|
168
|
-
statusCode: _response.error.statusCode,
|
|
169
|
-
body: _response.error.body,
|
|
170
|
-
rawResponse: _response.rawResponse,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
switch (_response.error.reason) {
|
|
175
|
-
case "non-json":
|
|
176
|
-
throw new errors.ChrtError({
|
|
177
|
-
statusCode: _response.error.statusCode,
|
|
178
|
-
body: _response.error.rawBody,
|
|
179
|
-
rawResponse: _response.rawResponse,
|
|
180
|
-
});
|
|
181
|
-
case "timeout":
|
|
182
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PUT /oort/orders/{order_id_or_short_id}/cancel.");
|
|
183
|
-
case "unknown":
|
|
184
|
-
throw new errors.ChrtError({
|
|
185
|
-
message: _response.error.errorMessage,
|
|
186
|
-
rawResponse: _response.rawResponse,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
136
|
/**
|
|
192
137
|
* @param {Chrt.CreateOrderReq} request
|
|
193
138
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -411,55 +356,6 @@ export class OortOrders {
|
|
|
411
356
|
}
|
|
412
357
|
});
|
|
413
358
|
}
|
|
414
|
-
/**
|
|
415
|
-
* Uses the org_id from the JWT
|
|
416
|
-
*
|
|
417
|
-
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
418
|
-
*
|
|
419
|
-
* @example
|
|
420
|
-
* await client.oortOrders.getOortOrdersListByCourierOrgIdFull()
|
|
421
|
-
*/
|
|
422
|
-
getOortOrdersListByCourierOrgIdFull(requestOptions) {
|
|
423
|
-
return core.HttpResponsePromise.fromPromise(this.__getOortOrdersListByCourierOrgIdFull(requestOptions));
|
|
424
|
-
}
|
|
425
|
-
__getOortOrdersListByCourierOrgIdFull(requestOptions) {
|
|
426
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
427
|
-
var _a, _b, _c, _d;
|
|
428
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
429
|
-
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/orders/list/by_courier_org_id/full"),
|
|
430
|
-
method: "GET",
|
|
431
|
-
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
432
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
433
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
434
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
435
|
-
});
|
|
436
|
-
if (_response.ok) {
|
|
437
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
438
|
-
}
|
|
439
|
-
if (_response.error.reason === "status-code") {
|
|
440
|
-
throw new errors.ChrtError({
|
|
441
|
-
statusCode: _response.error.statusCode,
|
|
442
|
-
body: _response.error.body,
|
|
443
|
-
rawResponse: _response.rawResponse,
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
switch (_response.error.reason) {
|
|
447
|
-
case "non-json":
|
|
448
|
-
throw new errors.ChrtError({
|
|
449
|
-
statusCode: _response.error.statusCode,
|
|
450
|
-
body: _response.error.rawBody,
|
|
451
|
-
rawResponse: _response.rawResponse,
|
|
452
|
-
});
|
|
453
|
-
case "timeout":
|
|
454
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_courier_org_id/full.");
|
|
455
|
-
case "unknown":
|
|
456
|
-
throw new errors.ChrtError({
|
|
457
|
-
message: _response.error.errorMessage,
|
|
458
|
-
rawResponse: _response.rawResponse,
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
359
|
_getAuthorizationHeader() {
|
|
464
360
|
return __awaiter(this, void 0, void 0, function* () {
|
|
465
361
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -38,8 +38,6 @@ export interface CreateOrderReq {
|
|
|
38
38
|
shipper_org_id?: string;
|
|
39
39
|
/** Must be a string starting with `user_` */
|
|
40
40
|
shipper_user_id?: string;
|
|
41
|
-
/** Used for off-platform shipper orders. Mutually exclusive with shipper_org_id. */
|
|
42
|
-
off_chrt_shipper_org_connection_info_id?: string;
|
|
43
41
|
/** For DTC orders placed by shippers or chrt, this field is required. */
|
|
44
42
|
courier_org_id?: string;
|
|
45
43
|
}
|