@chrt-inc/typescript-sdk 0.0.162-b → 0.1.0-beta0
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/Client.d.ts +30 -24
- package/Client.js +55 -45
- package/README.md +10 -6
- package/api/resources/dev/client/Client.d.ts +7 -7
- package/api/resources/dev/client/Client.js +48 -48
- package/api/resources/directory/client/Client.js +1 -1
- package/api/resources/directory/client/requests/DbQueryParams.d.ts +2 -2
- package/api/resources/index.d.ts +16 -14
- package/api/resources/index.js +17 -15
- package/api/resources/{oortNotificationPreferences → messages}/client/Client.d.ts +20 -12
- package/api/resources/messages/client/Client.js +191 -0
- package/api/resources/messages/client/requests/ShipperToCourierCreate1.d.ts +27 -0
- package/api/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/mirror/client/Client.d.ts +0 -25
- package/api/resources/mirror/client/Client.js +10 -119
- package/api/resources/oortCourierPayDriverRate/client/Client.d.ts +8 -38
- package/api/resources/oortCourierPayDriverRate/client/Client.js +24 -65
- package/api/resources/oortCourierPayDriverRate/client/index.d.ts +1 -1
- package/api/resources/oortCourierPayDriverRate/client/index.js +0 -15
- package/api/resources/oortDrivers/client/Client.d.ts +36 -48
- package/api/resources/oortDrivers/client/Client.js +93 -146
- package/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +3 -3
- package/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +0 -2
- package/api/resources/oortDrivers/client/requests/index.d.ts +1 -2
- package/api/resources/{oortConnections → oortHandles}/client/Client.d.ts +22 -15
- package/api/resources/{oortConnections → oortHandles}/client/Client.js +40 -28
- package/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → oortHandles/client/requests/HandlesReq.d.ts} +1 -1
- package/api/resources/oortHandles/client/requests/index.d.ts +1 -0
- package/api/resources/oortMilestones/client/Client.d.ts +15 -28
- package/api/resources/oortMilestones/client/Client.js +41 -96
- package/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
- package/api/resources/oortMilestones/client/requests/index.d.ts +0 -1
- package/api/resources/oortOrders/client/Client.d.ts +35 -45
- package/api/resources/oortOrders/client/Client.js +89 -140
- package/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +14 -14
- package/api/resources/oortOrgProfiles/client/Client.d.ts +3 -15
- package/api/resources/oortOrgProfiles/client/Client.js +8 -65
- package/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +7 -6
- package/api/resources/oortOrgProfiles/client/requests/index.d.ts +0 -1
- package/api/resources/oortRateSheets/client/Client.d.ts +66 -0
- package/api/resources/{oortNotificationPreferences → oortRateSheets}/client/Client.js +52 -35
- package/{dist/api/resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts → api/resources/oortRateSheets/client/requests/RateSheetClientCreate1.d.ts} +25 -26
- package/api/resources/oortRateSheets/client/requests/index.d.ts +1 -0
- package/api/resources/oortRoutes/client/Client.d.ts +103 -0
- package/{dist/api/resources/oortOrgConnectionInfos → api/resources/oortRoutes}/client/Client.js +134 -71
- package/api/resources/oortRoutes/client/requests/GetOortRoutesByIdRequest.d.ts +29 -0
- package/api/resources/{orgs/client/requests/UpdateOrgPublicDataReq.d.ts → oortRoutes/client/requests/RouteCreateReq.d.ts} +3 -3
- package/{dist/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts → api/resources/oortRoutes/client/requests/UpdateRouteReq.d.ts} +6 -4
- package/api/resources/oortRoutes/client/requests/index.d.ts +3 -0
- package/api/resources/oortShippers/client/Client.d.ts +44 -0
- package/api/resources/oortShippers/client/Client.js +156 -0
- package/api/resources/oortShippers/client/index.d.ts +1 -0
- package/api/resources/oortTaskGroups/client/Client.d.ts +6 -56
- package/api/resources/oortTaskGroups/client/Client.js +6 -222
- package/api/resources/oortTaskGroups/client/index.d.ts +1 -1
- package/api/resources/oortTaskGroups/client/index.js +0 -15
- package/api/resources/orgs/client/Client.d.ts +2 -52
- package/api/resources/orgs/client/Client.js +5 -215
- package/api/resources/{oortConnections/client/requests/CreateConnectionReq.d.ts → orgs/client/requests/PostOrgPublicDataReq.d.ts} +1 -1
- package/api/resources/orgs/client/requests/index.d.ts +1 -2
- package/api/resources/payments/client/Client.js +3 -3
- package/api/resources/profiles/client/Client.d.ts +67 -0
- package/{dist/api/resources/oortShipperUserInfo → api/resources/profiles}/client/Client.js +49 -79
- package/api/resources/profiles/client/requests/CourierProfileCreate2.d.ts +32 -0
- package/api/resources/profiles/client/requests/GetCourierProfileRequest.d.ts +12 -0
- package/api/resources/profiles/client/requests/GetHandleIsAvailableRequest.d.ts +15 -0
- package/api/resources/profiles/client/requests/index.d.ts +3 -0
- package/api/resources/profiles/index.d.ts +2 -0
- package/api/resources/profiles/index.js +18 -0
- package/api/resources/profiles/types/Type.d.ts +8 -0
- package/api/resources/profiles/types/Type.js +10 -0
- package/api/resources/profiles/types/index.d.ts +1 -0
- package/api/resources/profiles/types/index.js +17 -0
- package/api/resources/root/client/Client.d.ts +12 -12
- package/api/resources/root/client/Client.js +31 -31
- package/api/resources/root/types/PydanticResponse.d.ts +1 -1
- package/api/resources/users/client/Client.js +1 -1
- package/api/types/Action.d.ts +1 -1
- package/{dist/api/types/Vehicle1.d.ts → api/types/AppModelsDbOortVehicle1Vehicle1.d.ts} +2 -2
- package/api/types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.d.ts +10 -0
- package/api/types/Cargo1.d.ts +6 -6
- package/api/types/CargoClientCreate1.d.ts +3 -3
- package/api/types/CourierAvailabilityEnum.d.ts +9 -0
- package/api/types/CourierAvailabilityEnum.js +11 -0
- package/api/types/CourierCity.d.ts +9 -0
- package/{dist/api/types/CourierOrgConnectionInfo1.d.ts → api/types/CourierOrgInfo1.d.ts} +12 -11
- package/api/types/CourierOrgProfile3.d.ts +3 -4
- package/api/types/CourierProfile2.d.ts +28 -0
- package/{dist/api/types/MultipleTaskGroupsWithTasks.d.ts → api/types/CourierProfileRes2.d.ts} +3 -2
- package/api/types/CourierServiceEnum.d.ts +20 -0
- package/api/types/CourierServiceEnum.js +22 -0
- package/api/types/CourierState.d.ts +8 -0
- package/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
- package/api/types/Driver1.d.ts +8 -10
- package/api/types/EmailAddress1.d.ts +8 -0
- package/api/types/Expense1.d.ts +3 -3
- package/api/types/Feature.d.ts +2 -2
- package/api/types/GetOrderFullRes.d.ts +2 -2
- package/{dist/api/types/TaskGroupWithDetails.d.ts → api/types/GetTaskGroupWithFullTaskInfoRes.d.ts} +2 -2
- package/api/types/{TaskGroupWithTasks.d.ts → GetTaskGroupWithTasksRes.d.ts} +1 -1
- package/api/types/GetTaskGroupsWithFullTaskInfoListRes.d.ts +7 -0
- package/api/types/GetTaskGroupsWithTasksListRes.d.ts +7 -0
- package/api/types/{TaskGroupWithDetails.d.ts → GetTaskInfoListRes.d.ts} +2 -2
- package/api/types/Incident1.d.ts +1 -1
- package/api/types/IndustryEnum.d.ts +21 -0
- package/api/types/IndustryEnum.js +23 -0
- package/api/types/Insurance1.d.ts +1 -1
- package/api/types/LineItem1.d.ts +1 -1
- package/api/types/Milestone1.d.ts +12 -16
- package/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/api/types/MilestoneTypeEnum1.d.ts +2 -3
- package/api/types/MilestoneTypeEnum1.js +1 -2
- package/api/types/Order1.d.ts +9 -11
- package/api/types/OrgMemberDetails.d.ts +2 -2
- package/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/api/types/OrgPublicData2.d.ts +3 -4
- package/api/types/PayablesInvoice1.d.ts +11 -11
- package/api/types/PhoneNumber1.d.ts +8 -0
- package/api/types/{CourierPayDriverRateSheet1.d.ts → RateSheet1.d.ts} +18 -18
- package/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/api/types/Route1.d.ts +13 -0
- package/api/types/RouteByIdEnum.d.ts +8 -0
- package/api/types/RouteByIdEnum.js +10 -0
- package/api/types/RouteDetailRes.d.ts +9 -0
- package/api/types/Shipper2.d.ts +8 -8
- package/api/types/ShipperCourierConnection1.d.ts +4 -4
- package/api/types/{ShipperOrgConnectionInfo1.d.ts → ShipperOrgInfo1.d.ts} +8 -7
- package/api/types/ShipperToCourier1.d.ts +16 -0
- package/api/types/ShipperUserInfo1.d.ts +7 -7
- package/api/types/SocialLinks.d.ts +8 -0
- package/api/types/StreetAddress1.d.ts +3 -3
- package/api/types/StripeConnectInvoice1.d.ts +5 -5
- package/api/types/Task1.d.ts +13 -14
- package/api/types/TaskClientCreate1.d.ts +5 -6
- package/api/types/TaskCreateBundle.d.ts +2 -4
- package/api/types/TaskDetailRes.d.ts +9 -0
- package/api/types/TaskGroup1.d.ts +6 -12
- package/api/types/TaskGroupDetailRes.d.ts +8 -0
- package/{dist/api/types/TaskWithDetails.d.ts → api/types/TaskInfo.d.ts} +3 -3
- package/api/types/Tracker1.d.ts +1 -1
- package/api/types/TrackerSession1.d.ts +1 -1
- package/api/types/{UpdateTaskGroupRes.d.ts → UpdateRouteRes.d.ts} +1 -1
- package/api/types/UsStatesEnum.d.ts +58 -0
- package/api/types/UsStatesEnum.js +60 -0
- package/api/types/UserPublicData5.d.ts +6 -6
- package/api/types/Vehicle1Input.d.ts +10 -0
- package/api/types/VehicleRate1.d.ts +9 -0
- package/api/types/index.d.ts +32 -19
- package/api/types/index.js +32 -19
- package/dist/Client.d.ts +30 -24
- package/dist/Client.js +55 -45
- package/dist/api/resources/dev/client/Client.d.ts +7 -7
- package/dist/api/resources/dev/client/Client.js +48 -48
- package/dist/api/resources/directory/client/Client.js +1 -1
- package/dist/api/resources/directory/client/requests/DbQueryParams.d.ts +2 -2
- package/dist/api/resources/index.d.ts +16 -14
- package/dist/api/resources/index.js +17 -15
- package/dist/api/resources/{oortNotificationPreferences → messages}/client/Client.d.ts +20 -12
- package/dist/api/resources/messages/client/Client.js +191 -0
- package/dist/api/resources/messages/client/requests/ShipperToCourierCreate1.d.ts +27 -0
- package/dist/api/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/mirror/client/Client.d.ts +0 -25
- package/dist/api/resources/mirror/client/Client.js +10 -119
- package/dist/api/resources/oortCourierPayDriverRate/client/Client.d.ts +8 -38
- package/dist/api/resources/oortCourierPayDriverRate/client/Client.js +24 -65
- package/dist/api/resources/oortCourierPayDriverRate/client/index.d.ts +1 -1
- package/dist/api/resources/oortCourierPayDriverRate/client/index.js +0 -15
- package/dist/api/resources/oortDrivers/client/Client.d.ts +36 -48
- package/dist/api/resources/oortDrivers/client/Client.js +93 -146
- package/dist/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +3 -3
- package/dist/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +0 -2
- package/dist/api/resources/oortDrivers/client/requests/index.d.ts +1 -2
- package/dist/api/resources/{oortConnections → oortHandles}/client/Client.d.ts +22 -15
- package/dist/api/resources/{oortConnections → oortHandles}/client/Client.js +40 -28
- package/dist/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.d.ts → oortHandles/client/requests/HandlesReq.d.ts} +1 -1
- package/dist/api/resources/oortHandles/client/requests/index.d.ts +1 -0
- package/dist/api/resources/oortMilestones/client/Client.d.ts +15 -28
- package/dist/api/resources/oortMilestones/client/Client.js +41 -96
- package/dist/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +1 -1
- package/dist/api/resources/oortMilestones/client/requests/index.d.ts +0 -1
- package/dist/api/resources/oortOrders/client/Client.d.ts +35 -45
- package/dist/api/resources/oortOrders/client/Client.js +89 -140
- package/dist/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +14 -14
- package/dist/api/resources/oortOrgProfiles/client/Client.d.ts +3 -15
- package/dist/api/resources/oortOrgProfiles/client/Client.js +8 -65
- package/dist/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +7 -6
- package/dist/api/resources/oortOrgProfiles/client/requests/index.d.ts +0 -1
- package/dist/api/resources/oortRateSheets/client/Client.d.ts +66 -0
- package/dist/api/resources/{oortNotificationPreferences → oortRateSheets}/client/Client.js +52 -35
- package/{api/resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts → dist/api/resources/oortRateSheets/client/requests/RateSheetClientCreate1.d.ts} +25 -26
- package/dist/api/resources/oortRateSheets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/oortRoutes/client/Client.d.ts +103 -0
- package/{api/resources/oortOrgConnectionInfos → dist/api/resources/oortRoutes}/client/Client.js +134 -71
- package/dist/api/resources/oortRoutes/client/index.d.ts +1 -0
- package/dist/api/resources/oortRoutes/client/index.js +17 -0
- package/dist/api/resources/oortRoutes/client/requests/GetOortRoutesByIdRequest.d.ts +29 -0
- package/dist/api/resources/{orgs/client/requests/UpdateOrgPublicDataReq.d.ts → oortRoutes/client/requests/RouteCreateReq.d.ts} +3 -3
- package/{api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts → dist/api/resources/oortRoutes/client/requests/UpdateRouteReq.d.ts} +6 -4
- package/dist/api/resources/oortRoutes/client/requests/index.d.ts +3 -0
- package/dist/api/resources/oortRoutes/index.d.ts +1 -0
- package/dist/api/resources/oortRoutes/index.js +17 -0
- package/dist/api/resources/oortShippers/client/Client.d.ts +44 -0
- package/dist/api/resources/oortShippers/client/Client.js +156 -0
- package/dist/api/resources/oortShippers/client/index.d.ts +1 -0
- package/dist/api/resources/oortShippers/index.d.ts +1 -0
- package/dist/api/resources/oortShippers/index.js +17 -0
- package/dist/api/resources/oortTaskGroups/client/Client.d.ts +6 -56
- package/dist/api/resources/oortTaskGroups/client/Client.js +6 -222
- package/dist/api/resources/oortTaskGroups/client/index.d.ts +1 -1
- package/dist/api/resources/oortTaskGroups/client/index.js +0 -15
- package/dist/api/resources/orgs/client/Client.d.ts +2 -52
- package/dist/api/resources/orgs/client/Client.js +5 -215
- package/dist/api/resources/{oortConnections/client/requests/CreateConnectionReq.d.ts → orgs/client/requests/PostOrgPublicDataReq.d.ts} +1 -1
- package/dist/api/resources/orgs/client/requests/index.d.ts +1 -2
- package/dist/api/resources/payments/client/Client.js +3 -3
- package/dist/api/resources/profiles/client/Client.d.ts +67 -0
- package/{api/resources/oortShipperUserInfo → dist/api/resources/profiles}/client/Client.js +49 -79
- package/dist/api/resources/profiles/client/index.d.ts +1 -0
- package/dist/api/resources/profiles/client/index.js +17 -0
- package/dist/api/resources/profiles/client/requests/CourierProfileCreate2.d.ts +32 -0
- package/dist/api/resources/profiles/client/requests/GetCourierProfileRequest.d.ts +12 -0
- package/dist/api/resources/profiles/client/requests/GetHandleIsAvailableRequest.d.ts +15 -0
- package/dist/api/resources/profiles/client/requests/index.d.ts +3 -0
- package/dist/api/resources/profiles/index.d.ts +2 -0
- package/dist/api/resources/profiles/index.js +18 -0
- package/dist/api/resources/profiles/types/Type.d.ts +8 -0
- package/dist/api/resources/profiles/types/Type.js +10 -0
- package/dist/api/resources/profiles/types/index.d.ts +1 -0
- package/dist/api/resources/profiles/types/index.js +17 -0
- package/dist/api/resources/root/client/Client.d.ts +12 -12
- package/dist/api/resources/root/client/Client.js +31 -31
- package/dist/api/resources/root/types/PydanticResponse.d.ts +1 -1
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/types/Action.d.ts +1 -1
- package/{api/types/Vehicle1.d.ts → dist/api/types/AppModelsDbOortVehicle1Vehicle1.d.ts} +2 -2
- package/dist/api/types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.d.ts +10 -0
- package/dist/api/types/Cargo1.d.ts +6 -6
- package/dist/api/types/CargoClientCreate1.d.ts +3 -3
- package/dist/api/types/CourierAvailabilityEnum.d.ts +9 -0
- package/dist/api/types/CourierAvailabilityEnum.js +11 -0
- package/dist/api/types/CourierCity.d.ts +9 -0
- package/{api/types/CourierOrgConnectionInfo1.d.ts → dist/api/types/CourierOrgInfo1.d.ts} +12 -11
- package/dist/api/types/CourierOrgProfile3.d.ts +3 -4
- package/dist/api/types/CourierProfile2.d.ts +28 -0
- package/{api/types/MultipleTaskGroupsWithTasks.d.ts → dist/api/types/CourierProfileRes2.d.ts} +3 -2
- package/dist/api/types/CourierServiceEnum.d.ts +20 -0
- package/dist/api/types/CourierServiceEnum.js +22 -0
- package/dist/api/types/CourierState.d.ts +8 -0
- package/dist/api/types/DecodedJwtWithOrgAndUserId.d.ts +8 -8
- package/dist/api/types/Driver1.d.ts +8 -10
- package/dist/api/types/EmailAddress1.d.ts +8 -0
- package/dist/api/types/Expense1.d.ts +3 -3
- package/dist/api/types/Feature.d.ts +2 -2
- package/dist/api/types/GetOrderFullRes.d.ts +2 -2
- package/dist/api/types/GetTaskGroupWithFullTaskInfoRes.d.ts +8 -0
- package/dist/api/types/{TaskGroupWithTasks.d.ts → GetTaskGroupWithTasksRes.d.ts} +1 -1
- package/dist/api/types/GetTaskGroupsWithFullTaskInfoListRes.d.ts +7 -0
- package/dist/api/types/GetTaskGroupsWithTasksListRes.d.ts +7 -0
- package/dist/api/types/GetTaskInfoListRes.d.ts +8 -0
- package/dist/api/types/Incident1.d.ts +1 -1
- package/dist/api/types/IndustryEnum.d.ts +21 -0
- package/dist/api/types/IndustryEnum.js +23 -0
- package/dist/api/types/Insurance1.d.ts +1 -1
- package/dist/api/types/LineItem1.d.ts +1 -1
- package/dist/api/types/Milestone1.d.ts +12 -16
- package/dist/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/api/types/MilestoneTypeEnum1.d.ts +2 -3
- package/dist/api/types/MilestoneTypeEnum1.js +1 -2
- package/dist/api/types/Order1.d.ts +9 -11
- package/dist/api/types/OrgMemberDetails.d.ts +2 -2
- package/dist/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/api/types/OrgPublicData2.d.ts +3 -4
- package/dist/api/types/PayablesInvoice1.d.ts +11 -11
- package/dist/api/types/PhoneNumber1.d.ts +8 -0
- package/dist/api/types/{CourierPayDriverRateSheet1.d.ts → RateSheet1.d.ts} +18 -18
- package/dist/api/types/RateSheet1.js +5 -0
- package/dist/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/api/types/Route1.d.ts +13 -0
- package/dist/api/types/Route1.js +5 -0
- package/dist/api/types/RouteByIdEnum.d.ts +8 -0
- package/dist/api/types/RouteByIdEnum.js +10 -0
- package/dist/api/types/RouteDetailRes.d.ts +9 -0
- package/dist/api/types/RouteDetailRes.js +5 -0
- package/dist/api/types/Shipper2.d.ts +8 -8
- package/dist/api/types/ShipperCourierConnection1.d.ts +4 -4
- package/dist/api/types/{ShipperOrgConnectionInfo1.d.ts → ShipperOrgInfo1.d.ts} +8 -7
- package/dist/api/types/ShipperOrgInfo1.js +5 -0
- package/dist/api/types/ShipperToCourier1.d.ts +16 -0
- package/dist/api/types/ShipperToCourier1.js +5 -0
- package/dist/api/types/ShipperUserInfo1.d.ts +7 -7
- package/dist/api/types/SocialLinks.d.ts +8 -0
- package/dist/api/types/SocialLinks.js +5 -0
- package/dist/api/types/StreetAddress1.d.ts +3 -3
- package/dist/api/types/StripeConnectInvoice1.d.ts +5 -5
- package/dist/api/types/Task1.d.ts +13 -14
- package/dist/api/types/TaskClientCreate1.d.ts +5 -6
- package/dist/api/types/TaskCreateBundle.d.ts +2 -4
- package/dist/api/types/TaskDetailRes.d.ts +9 -0
- package/dist/api/types/TaskDetailRes.js +5 -0
- package/dist/api/types/TaskGroup1.d.ts +6 -12
- package/dist/api/types/TaskGroupDetailRes.d.ts +8 -0
- package/dist/api/types/TaskGroupDetailRes.js +5 -0
- package/{api/types/TaskWithDetails.d.ts → dist/api/types/TaskInfo.d.ts} +3 -3
- package/dist/api/types/TaskInfo.js +5 -0
- package/dist/api/types/Tracker1.d.ts +1 -1
- package/dist/api/types/TrackerSession1.d.ts +1 -1
- package/dist/api/types/{UpdateTaskGroupRes.d.ts → UpdateRouteRes.d.ts} +1 -1
- package/dist/api/types/UpdateRouteRes.js +5 -0
- package/dist/api/types/UsStatesEnum.d.ts +58 -0
- package/dist/api/types/UsStatesEnum.js +60 -0
- package/dist/api/types/UserPublicData5.d.ts +6 -6
- package/dist/api/types/Vehicle1Input.d.ts +10 -0
- package/dist/api/types/Vehicle1Input.js +5 -0
- package/dist/api/types/VehicleRate1.d.ts +9 -0
- package/dist/api/types/VehicleRate1.js +5 -0
- package/dist/api/types/index.d.ts +32 -19
- package/dist/api/types/index.js +32 -19
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +759 -1435
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/oortConnections/client/requests/index.d.ts +0 -1
- package/api/resources/oortCourierPayDriverRate/client/requests/index.d.ts +0 -1
- package/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +0 -17
- package/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +0 -16
- package/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.d.ts +0 -18
- package/api/resources/oortNotificationPreferences/client/requests/index.d.ts +0 -1
- package/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -102
- package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +0 -24
- package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.d.ts +0 -18
- package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +0 -24
- package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +0 -20
- package/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +0 -4
- package/api/resources/oortShipperUserInfo/client/Client.d.ts +0 -73
- package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.d.ts +0 -24
- package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.d.ts +0 -21
- package/api/resources/oortShipperUserInfo/client/requests/index.d.ts +0 -2
- package/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +0 -14
- package/api/resources/oortTaskGroups/client/requests/index.d.ts +0 -2
- package/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +0 -14
- package/api/types/DriverStatusEnum.d.ts +0 -9
- package/api/types/DriverStatusEnum.js +0 -11
- package/api/types/EmailReq.d.ts +0 -6
- package/api/types/EmailRes.d.ts +0 -7
- package/api/types/MultipleTaskGroupsDetailsResponse.d.ts +0 -7
- package/api/types/NotificationChannelEnum.d.ts +0 -10
- package/api/types/NotificationChannelEnum.js +0 -12
- package/api/types/NotificationPreferences1.d.ts +0 -18
- package/api/types/OrderStatusEnum1.d.ts +0 -10
- package/api/types/OrderStatusEnum1.js +0 -12
- package/api/types/TaskGroupDetailsResponse.d.ts +0 -8
- package/api/types/TaskGroupStatusEnum1.d.ts +0 -9
- package/api/types/TaskGroupStatusEnum1.js +0 -11
- package/dist/api/resources/oortConnections/client/requests/index.d.ts +0 -1
- package/dist/api/resources/oortCourierPayDriverRate/client/requests/index.d.ts +0 -1
- package/dist/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +0 -17
- package/dist/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +0 -16
- package/dist/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/api/resources/oortNotificationPreferences/client/requests/index.d.ts +0 -1
- package/dist/api/resources/oortOrgConnectionInfos/client/Client.d.ts +0 -102
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +0 -24
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.d.ts +0 -18
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +0 -24
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +0 -20
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +0 -4
- package/dist/api/resources/oortShipperUserInfo/client/Client.d.ts +0 -73
- package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.d.ts +0 -24
- package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.d.ts +0 -21
- package/dist/api/resources/oortShipperUserInfo/client/requests/index.d.ts +0 -2
- package/dist/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +0 -14
- package/dist/api/resources/oortTaskGroups/client/requests/index.d.ts +0 -2
- package/dist/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +0 -14
- package/dist/api/types/DriverStatusEnum.d.ts +0 -9
- package/dist/api/types/DriverStatusEnum.js +0 -11
- package/dist/api/types/EmailReq.d.ts +0 -6
- package/dist/api/types/EmailRes.d.ts +0 -7
- package/dist/api/types/MultipleTaskGroupsDetailsResponse.d.ts +0 -7
- package/dist/api/types/NotificationChannelEnum.d.ts +0 -10
- package/dist/api/types/NotificationChannelEnum.js +0 -12
- package/dist/api/types/NotificationPreferences1.d.ts +0 -18
- package/dist/api/types/OrderStatusEnum1.d.ts +0 -10
- package/dist/api/types/OrderStatusEnum1.js +0 -12
- package/dist/api/types/TaskGroupDetailsResponse.d.ts +0 -8
- package/dist/api/types/TaskGroupStatusEnum1.d.ts +0 -9
- package/dist/api/types/TaskGroupStatusEnum1.js +0 -11
- /package/api/resources/{oortConnections → messages}/client/index.d.ts +0 -0
- /package/api/resources/{oortConnections → messages}/client/index.js +0 -0
- /package/api/resources/{oortConnections/client/requests/CreateConnectionReq.js → messages/client/requests/ShipperToCourierCreate1.js} +0 -0
- /package/api/resources/{oortConnections → messages}/client/requests/index.js +0 -0
- /package/api/resources/{oortConnections → messages}/index.d.ts +0 -0
- /package/api/resources/{oortConnections → messages}/index.js +0 -0
- /package/api/resources/{oortNotificationPreferences → oortHandles}/client/index.d.ts +0 -0
- /package/api/resources/{oortNotificationPreferences → oortHandles}/client/index.js +0 -0
- /package/api/resources/{oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.js → oortHandles/client/requests/HandlesReq.js} +0 -0
- /package/api/resources/{oortCourierPayDriverRate → oortHandles}/client/requests/index.js +0 -0
- /package/api/resources/{oortNotificationPreferences → oortHandles}/index.d.ts +0 -0
- /package/api/resources/{oortNotificationPreferences → oortHandles}/index.js +0 -0
- /package/api/resources/{oortOrgConnectionInfos → oortRateSheets}/client/index.d.ts +0 -0
- /package/api/resources/{oortOrgConnectionInfos → oortRateSheets}/client/index.js +0 -0
- /package/api/resources/{oortDrivers/client/requests/DriverCreateReq.js → oortRateSheets/client/requests/RateSheetClientCreate1.js} +0 -0
- /package/api/resources/{oortNotificationPreferences → oortRateSheets}/client/requests/index.js +0 -0
- /package/api/resources/{oortOrgConnectionInfos → oortRateSheets}/index.d.ts +0 -0
- /package/api/resources/{oortOrgConnectionInfos → oortRateSheets}/index.js +0 -0
- /package/api/resources/{oortShipperUserInfo → oortRoutes}/client/index.d.ts +0 -0
- /package/api/resources/{oortShipperUserInfo → oortRoutes}/client/index.js +0 -0
- /package/api/resources/{oortMilestones/client/requests/MilestoneAddToTaskReq.js → oortRoutes/client/requests/GetOortRoutesByIdRequest.js} +0 -0
- /package/api/resources/{oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.js → oortRoutes/client/requests/RouteCreateReq.js} +0 -0
- /package/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js → oortRoutes/client/requests/UpdateRouteReq.js} +0 -0
- /package/api/resources/{oortOrgConnectionInfos → oortRoutes}/client/requests/index.js +0 -0
- /package/api/resources/{oortShipperUserInfo → oortRoutes}/index.d.ts +0 -0
- /package/api/resources/{oortShipperUserInfo → oortRoutes}/index.js +0 -0
- /package/api/resources/{oortShipperUserInfo/client/requests → oortShippers/client}/index.js +0 -0
- /package/{dist/api/resources/oortConnections → api/resources/oortShippers}/index.d.ts +0 -0
- /package/{dist/api/resources/oortConnections → api/resources/oortShippers}/index.js +0 -0
- /package/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.js → orgs/client/requests/PostOrgPublicDataReq.js} +0 -0
- /package/{dist/api/resources/oortConnections → api/resources/profiles}/client/index.d.ts +0 -0
- /package/{dist/api/resources/oortConnections → api/resources/profiles}/client/index.js +0 -0
- /package/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js → profiles/client/requests/CourierProfileCreate2.js} +0 -0
- /package/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → profiles/client/requests/GetCourierProfileRequest.js} +0 -0
- /package/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.js → profiles/client/requests/GetHandleIsAvailableRequest.js} +0 -0
- /package/api/resources/{oortTaskGroups → profiles}/client/requests/index.js +0 -0
- /package/api/{resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.js → types/AppModelsDbOortVehicle1Vehicle1.js} +0 -0
- /package/api/{resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.js → types/AppModelsDbProfilesCourierOrgProfile2Vehicle1.js} +0 -0
- /package/api/{resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.js → types/CourierCity.js} +0 -0
- /package/api/{resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.js → types/CourierOrgInfo1.js} +0 -0
- /package/api/{resources/orgs/client/requests/CreateOrgPublicDataReq.js → types/CourierProfile2.js} +0 -0
- /package/api/{resources/orgs/client/requests/UpdateOrgPublicDataReq.js → types/CourierProfileRes2.js} +0 -0
- /package/api/types/{CourierOrgConnectionInfo1.js → CourierState.js} +0 -0
- /package/api/types/{CourierPayDriverRateSheet1.js → EmailAddress1.js} +0 -0
- /package/api/types/{EmailReq.js → GetTaskGroupWithFullTaskInfoRes.js} +0 -0
- /package/api/types/{EmailRes.js → GetTaskGroupWithTasksRes.js} +0 -0
- /package/api/types/{MultipleTaskGroupsDetailsResponse.js → GetTaskGroupsWithFullTaskInfoListRes.js} +0 -0
- /package/api/types/{MultipleTaskGroupsWithTasks.js → GetTaskGroupsWithTasksListRes.js} +0 -0
- /package/api/types/{NotificationPreferences1.js → GetTaskInfoListRes.js} +0 -0
- /package/api/types/{ShipperOrgConnectionInfo1.js → PhoneNumber1.js} +0 -0
- /package/api/types/{TaskGroupDetailsResponse.js → RateSheet1.js} +0 -0
- /package/api/types/{TaskGroupWithDetails.js → Route1.js} +0 -0
- /package/api/types/{TaskGroupWithTasks.js → RouteDetailRes.js} +0 -0
- /package/api/types/{TaskWithDetails.js → ShipperOrgInfo1.js} +0 -0
- /package/api/types/{UpdateTaskGroupRes.js → ShipperToCourier1.js} +0 -0
- /package/api/types/{Vehicle1.js → SocialLinks.js} +0 -0
- /package/{dist/api/resources/oortConnections/client/requests/CreateConnectionReq.js → api/types/TaskDetailRes.js} +0 -0
- /package/{dist/api/resources/oortCourierPayDriverRate/client/requests/CourierPayDriverRateSheetClientCreate1.js → api/types/TaskGroupDetailRes.js} +0 -0
- /package/{dist/api/resources/oortDrivers/client/requests/DriverCreateReq.js → api/types/TaskInfo.js} +0 -0
- /package/{dist/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.js → api/types/UpdateRouteRes.js} +0 -0
- /package/{dist/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.js → api/types/Vehicle1Input.js} +0 -0
- /package/{dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js → api/types/VehicleRate1.js} +0 -0
- /package/dist/api/resources/{oortNotificationPreferences → messages}/client/index.d.ts +0 -0
- /package/dist/api/resources/{oortNotificationPreferences → messages}/client/index.js +0 -0
- /package/dist/api/resources/{oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.js → messages/client/requests/ShipperToCourierCreate1.js} +0 -0
- /package/dist/api/resources/{oortConnections → messages}/client/requests/index.js +0 -0
- /package/dist/api/resources/{oortNotificationPreferences → messages}/index.d.ts +0 -0
- /package/dist/api/resources/{oortNotificationPreferences → messages}/index.js +0 -0
- /package/dist/api/resources/{oortOrgConnectionInfos → oortHandles}/client/index.d.ts +0 -0
- /package/dist/api/resources/{oortOrgConnectionInfos → oortHandles}/client/index.js +0 -0
- /package/dist/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js → oortHandles/client/requests/HandlesReq.js} +0 -0
- /package/dist/api/resources/{oortCourierPayDriverRate → oortHandles}/client/requests/index.js +0 -0
- /package/dist/api/resources/{oortOrgConnectionInfos → oortHandles}/index.d.ts +0 -0
- /package/dist/api/resources/{oortOrgConnectionInfos → oortHandles}/index.js +0 -0
- /package/dist/api/resources/{oortShipperUserInfo → oortRateSheets}/client/index.d.ts +0 -0
- /package/dist/api/resources/{oortShipperUserInfo → oortRateSheets}/client/index.js +0 -0
- /package/dist/api/resources/{oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js → oortRateSheets/client/requests/RateSheetClientCreate1.js} +0 -0
- /package/dist/api/resources/{oortNotificationPreferences → oortRateSheets}/client/requests/index.js +0 -0
- /package/dist/api/resources/{oortShipperUserInfo → oortRateSheets}/index.d.ts +0 -0
- /package/dist/api/resources/{oortShipperUserInfo → oortRateSheets}/index.js +0 -0
- /package/dist/api/resources/{oortOrgProfiles/client/requests/GetAvatarRequest.js → oortRoutes/client/requests/GetOortRoutesByIdRequest.js} +0 -0
- /package/dist/api/resources/{oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.js → oortRoutes/client/requests/RouteCreateReq.js} +0 -0
- /package/dist/api/resources/{oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.js → oortRoutes/client/requests/UpdateRouteReq.js} +0 -0
- /package/dist/api/resources/{oortOrgConnectionInfos → oortRoutes}/client/requests/index.js +0 -0
- /package/dist/api/resources/{oortShipperUserInfo/client/requests → oortShippers/client}/index.js +0 -0
- /package/dist/api/resources/{oortTaskGroups/client/requests/SetTaskGroupPauseReq.js → orgs/client/requests/PostOrgPublicDataReq.js} +0 -0
- /package/dist/api/resources/{oortTaskGroups/client/requests/UpdateTaskGroupReq.js → profiles/client/requests/CourierProfileCreate2.js} +0 -0
- /package/dist/api/resources/{orgs/client/requests/CreateOrgPublicDataReq.js → profiles/client/requests/GetCourierProfileRequest.js} +0 -0
- /package/dist/api/resources/{orgs/client/requests/UpdateOrgPublicDataReq.js → profiles/client/requests/GetHandleIsAvailableRequest.js} +0 -0
- /package/dist/api/resources/{oortTaskGroups → profiles}/client/requests/index.js +0 -0
- /package/dist/api/types/{CourierOrgConnectionInfo1.js → AppModelsDbOortVehicle1Vehicle1.js} +0 -0
- /package/dist/api/types/{CourierPayDriverRateSheet1.js → AppModelsDbProfilesCourierOrgProfile2Vehicle1.js} +0 -0
- /package/dist/api/types/{EmailReq.js → CourierCity.js} +0 -0
- /package/dist/api/types/{EmailRes.js → CourierOrgInfo1.js} +0 -0
- /package/dist/api/types/{MultipleTaskGroupsDetailsResponse.js → CourierProfile2.js} +0 -0
- /package/dist/api/types/{MultipleTaskGroupsWithTasks.js → CourierProfileRes2.js} +0 -0
- /package/dist/api/types/{NotificationPreferences1.js → CourierState.js} +0 -0
- /package/dist/api/types/{ShipperOrgConnectionInfo1.js → EmailAddress1.js} +0 -0
- /package/dist/api/types/{TaskGroupDetailsResponse.js → GetTaskGroupWithFullTaskInfoRes.js} +0 -0
- /package/dist/api/types/{TaskGroupWithDetails.js → GetTaskGroupWithTasksRes.js} +0 -0
- /package/dist/api/types/{TaskGroupWithTasks.js → GetTaskGroupsWithFullTaskInfoListRes.js} +0 -0
- /package/dist/api/types/{TaskWithDetails.js → GetTaskGroupsWithTasksListRes.js} +0 -0
- /package/dist/api/types/{UpdateTaskGroupRes.js → GetTaskInfoListRes.js} +0 -0
- /package/dist/api/types/{Vehicle1.js → PhoneNumber1.js} +0 -0
|
@@ -26,6 +26,30 @@ export declare namespace OortOrders {
|
|
|
26
26
|
export declare class OortOrders {
|
|
27
27
|
protected readonly _options: OortOrders.Options;
|
|
28
28
|
constructor(_options?: OortOrders.Options);
|
|
29
|
+
/**
|
|
30
|
+
* Accepts both order_id and order_short_id values and returns the Order
|
|
31
|
+
*
|
|
32
|
+
* @param {string} orderIdOrShortId
|
|
33
|
+
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.oortOrders.getOortOrdersOrderIdOrShortId("order_id_or_short_id")
|
|
39
|
+
*/
|
|
40
|
+
getOortOrdersOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: OortOrders.RequestOptions): Promise<Chrt.GetOrderRes>;
|
|
41
|
+
/**
|
|
42
|
+
* Accepts both order_id and order_short_id values and returns the Order with all its Task Groups, Tasks, Milestones, and Cargos
|
|
43
|
+
*
|
|
44
|
+
* @param {string} orderIdOrShortId
|
|
45
|
+
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.oortOrders.getOortOrdersOrderIdOrShortIdFull("order_id_or_short_id")
|
|
51
|
+
*/
|
|
52
|
+
getOortOrdersOrderIdOrShortIdFull(orderIdOrShortId: string, requestOptions?: OortOrders.RequestOptions): Promise<Chrt.GetOrderFullRes>;
|
|
29
53
|
/**
|
|
30
54
|
* @param {Chrt.CreateOrderReq} request
|
|
31
55
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -34,35 +58,26 @@ export declare class OortOrders {
|
|
|
34
58
|
*
|
|
35
59
|
* @example
|
|
36
60
|
* await client.oortOrders.postOortOrdersCreate({
|
|
37
|
-
* cargo_client_creates_map: {
|
|
38
|
-
* "key": {
|
|
39
|
-
* cargo_type: "spare_parts",
|
|
40
|
-
* schema_version: 1
|
|
41
|
-
* }
|
|
42
|
-
* },
|
|
43
61
|
* order_client_create: {
|
|
44
62
|
* schema_version: 1
|
|
45
63
|
* },
|
|
46
|
-
* order_created_by_type: "chrt",
|
|
47
|
-
* order_dispatch_type: "dtc",
|
|
48
64
|
* task_client_creates_bundle_groupings: [[{
|
|
49
65
|
* task_client_create: {
|
|
50
66
|
* schema_version: 1
|
|
51
67
|
* }
|
|
52
68
|
* }]],
|
|
69
|
+
* cargo_client_creates_map: {
|
|
70
|
+
* "key": {
|
|
71
|
+
* schema_version: 1,
|
|
72
|
+
* cargo_type: "spare_parts"
|
|
73
|
+
* }
|
|
74
|
+
* },
|
|
75
|
+
* order_created_by_type: "chrt",
|
|
76
|
+
* order_dispatch_type: "dtc",
|
|
53
77
|
* transport_type: "ground_only"
|
|
54
78
|
* })
|
|
55
79
|
*/
|
|
56
80
|
postOortOrdersCreate(request: Chrt.CreateOrderReq, requestOptions?: OortOrders.RequestOptions): Promise<Chrt.CreateOrderRes>;
|
|
57
|
-
/**
|
|
58
|
-
* Uses the org_id from the JWT
|
|
59
|
-
*
|
|
60
|
-
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* await client.oortOrders.getOortOrdersListByCourierOrgId()
|
|
64
|
-
*/
|
|
65
|
-
getOortOrdersListByCourierOrgId(requestOptions?: OortOrders.RequestOptions): Promise<Chrt.Order1[]>;
|
|
66
81
|
/**
|
|
67
82
|
* Uses the org_id from the JWT
|
|
68
83
|
*
|
|
@@ -82,38 +97,13 @@ export declare class OortOrders {
|
|
|
82
97
|
*/
|
|
83
98
|
getOortOrdersListByShipperOrgIdFull(requestOptions?: OortOrders.RequestOptions): Promise<Chrt.GetOrderFullRes[]>;
|
|
84
99
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* @param {string} orderIdOrShortId
|
|
88
|
-
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
-
*
|
|
90
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* await client.oortOrders.getOortOrdersOrderIdOrShortId("order_id_or_short_id")
|
|
94
|
-
*/
|
|
95
|
-
getOortOrdersOrderIdOrShortId(orderIdOrShortId: string, requestOptions?: OortOrders.RequestOptions): Promise<Chrt.GetOrderRes>;
|
|
96
|
-
/**
|
|
97
|
-
* @param {string} orderIdOrShortId
|
|
98
|
-
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
|
-
*
|
|
100
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* await client.oortOrders.putOortOrdersOrderIdOrShortIdCancel("order_id_or_short_id")
|
|
104
|
-
*/
|
|
105
|
-
putOortOrdersOrderIdOrShortIdCancel(orderIdOrShortId: string, requestOptions?: OortOrders.RequestOptions): Promise<boolean>;
|
|
106
|
-
/**
|
|
107
|
-
* Accepts both order_id and order_short_id values and returns the Order with all its Task Groups, Tasks, Milestones, and Cargos
|
|
100
|
+
* Uses the org_id from the JWT
|
|
108
101
|
*
|
|
109
|
-
* @param {string} orderIdOrShortId
|
|
110
102
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
103
|
*
|
|
112
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
113
|
-
*
|
|
114
104
|
* @example
|
|
115
|
-
* await client.oortOrders.
|
|
105
|
+
* await client.oortOrders.getOortOrdersListByCourierOrgId()
|
|
116
106
|
*/
|
|
117
|
-
|
|
107
|
+
getOortOrdersListByCourierOrgId(requestOptions?: OortOrders.RequestOptions): Promise<Chrt.Order1[]>;
|
|
118
108
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
119
109
|
}
|
|
@@ -59,42 +59,25 @@ class OortOrders {
|
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Accepts both order_id and order_short_id values and returns the Order
|
|
63
|
+
*
|
|
64
|
+
* @param {string} orderIdOrShortId
|
|
63
65
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
66
|
*
|
|
65
67
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
66
68
|
*
|
|
67
69
|
* @example
|
|
68
|
-
* await client.oortOrders.
|
|
69
|
-
* cargo_client_creates_map: {
|
|
70
|
-
* "key": {
|
|
71
|
-
* cargo_type: "spare_parts",
|
|
72
|
-
* schema_version: 1
|
|
73
|
-
* }
|
|
74
|
-
* },
|
|
75
|
-
* order_client_create: {
|
|
76
|
-
* schema_version: 1
|
|
77
|
-
* },
|
|
78
|
-
* order_created_by_type: "chrt",
|
|
79
|
-
* order_dispatch_type: "dtc",
|
|
80
|
-
* task_client_creates_bundle_groupings: [[{
|
|
81
|
-
* task_client_create: {
|
|
82
|
-
* schema_version: 1
|
|
83
|
-
* }
|
|
84
|
-
* }]],
|
|
85
|
-
* transport_type: "ground_only"
|
|
86
|
-
* })
|
|
70
|
+
* await client.oortOrders.getOortOrdersOrderIdOrShortId("order_id_or_short_id")
|
|
87
71
|
*/
|
|
88
|
-
|
|
72
|
+
getOortOrdersOrderIdOrShortId(orderIdOrShortId, requestOptions) {
|
|
89
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
74
|
var _a, _b, _c;
|
|
91
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
92
|
-
url: (0, url_join_1.default)((_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,
|
|
93
|
-
method: "
|
|
94
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0
|
|
76
|
+
url: (0, url_join_1.default)((_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)}`),
|
|
77
|
+
method: "GET",
|
|
78
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.1.0-beta0", "User-Agent": "@chrt-inc/typescript-sdk/0.1.0-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
95
79
|
contentType: "application/json",
|
|
96
80
|
requestType: "json",
|
|
97
|
-
body: request,
|
|
98
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
99
82
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
100
83
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -120,7 +103,7 @@ class OortOrders {
|
|
|
120
103
|
body: _response.error.rawBody,
|
|
121
104
|
});
|
|
122
105
|
case "timeout":
|
|
123
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
106
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}.");
|
|
124
107
|
case "unknown":
|
|
125
108
|
throw new errors.ChrtError({
|
|
126
109
|
message: _response.error.errorMessage,
|
|
@@ -129,20 +112,23 @@ class OortOrders {
|
|
|
129
112
|
});
|
|
130
113
|
}
|
|
131
114
|
/**
|
|
132
|
-
*
|
|
115
|
+
* Accepts both order_id and order_short_id values and returns the Order with all its Task Groups, Tasks, Milestones, and Cargos
|
|
133
116
|
*
|
|
117
|
+
* @param {string} orderIdOrShortId
|
|
134
118
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
119
|
*
|
|
120
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
121
|
+
*
|
|
136
122
|
* @example
|
|
137
|
-
* await client.oortOrders.
|
|
123
|
+
* await client.oortOrders.getOortOrdersOrderIdOrShortIdFull("order_id_or_short_id")
|
|
138
124
|
*/
|
|
139
|
-
|
|
125
|
+
getOortOrdersOrderIdOrShortIdFull(orderIdOrShortId, requestOptions) {
|
|
140
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
127
|
var _a, _b, _c;
|
|
142
128
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
143
|
-
url: (0, url_join_1.default)((_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,
|
|
129
|
+
url: (0, url_join_1.default)((_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)}/full`),
|
|
144
130
|
method: "GET",
|
|
145
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0
|
|
131
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.1.0-beta0", "User-Agent": "@chrt-inc/typescript-sdk/0.1.0-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
146
132
|
contentType: "application/json",
|
|
147
133
|
requestType: "json",
|
|
148
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -153,10 +139,15 @@ class OortOrders {
|
|
|
153
139
|
return _response.body;
|
|
154
140
|
}
|
|
155
141
|
if (_response.error.reason === "status-code") {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
142
|
+
switch (_response.error.statusCode) {
|
|
143
|
+
case 422:
|
|
144
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body);
|
|
145
|
+
default:
|
|
146
|
+
throw new errors.ChrtError({
|
|
147
|
+
statusCode: _response.error.statusCode,
|
|
148
|
+
body: _response.error.body,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
160
151
|
}
|
|
161
152
|
switch (_response.error.reason) {
|
|
162
153
|
case "non-json":
|
|
@@ -165,7 +156,7 @@ class OortOrders {
|
|
|
165
156
|
body: _response.error.rawBody,
|
|
166
157
|
});
|
|
167
158
|
case "timeout":
|
|
168
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/
|
|
159
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}/full.");
|
|
169
160
|
case "unknown":
|
|
170
161
|
throw new errors.ChrtError({
|
|
171
162
|
message: _response.error.errorMessage,
|
|
@@ -174,22 +165,42 @@ class OortOrders {
|
|
|
174
165
|
});
|
|
175
166
|
}
|
|
176
167
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
168
|
+
* @param {Chrt.CreateOrderReq} request
|
|
179
169
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
180
170
|
*
|
|
171
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
172
|
+
*
|
|
181
173
|
* @example
|
|
182
|
-
* await client.oortOrders.
|
|
174
|
+
* await client.oortOrders.postOortOrdersCreate({
|
|
175
|
+
* order_client_create: {
|
|
176
|
+
* schema_version: 1
|
|
177
|
+
* },
|
|
178
|
+
* task_client_creates_bundle_groupings: [[{
|
|
179
|
+
* task_client_create: {
|
|
180
|
+
* schema_version: 1
|
|
181
|
+
* }
|
|
182
|
+
* }]],
|
|
183
|
+
* cargo_client_creates_map: {
|
|
184
|
+
* "key": {
|
|
185
|
+
* schema_version: 1,
|
|
186
|
+
* cargo_type: "spare_parts"
|
|
187
|
+
* }
|
|
188
|
+
* },
|
|
189
|
+
* order_created_by_type: "chrt",
|
|
190
|
+
* order_dispatch_type: "dtc",
|
|
191
|
+
* transport_type: "ground_only"
|
|
192
|
+
* })
|
|
183
193
|
*/
|
|
184
|
-
|
|
194
|
+
postOortOrdersCreate(request, requestOptions) {
|
|
185
195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
196
|
var _a, _b, _c;
|
|
187
197
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
188
|
-
url: (0, url_join_1.default)((_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/
|
|
189
|
-
method: "
|
|
190
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0
|
|
198
|
+
url: (0, url_join_1.default)((_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/create"),
|
|
199
|
+
method: "POST",
|
|
200
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.1.0-beta0", "User-Agent": "@chrt-inc/typescript-sdk/0.1.0-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
191
201
|
contentType: "application/json",
|
|
192
202
|
requestType: "json",
|
|
203
|
+
body: request,
|
|
193
204
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
194
205
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
195
206
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -198,10 +209,15 @@ class OortOrders {
|
|
|
198
209
|
return _response.body;
|
|
199
210
|
}
|
|
200
211
|
if (_response.error.reason === "status-code") {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
212
|
+
switch (_response.error.statusCode) {
|
|
213
|
+
case 422:
|
|
214
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body);
|
|
215
|
+
default:
|
|
216
|
+
throw new errors.ChrtError({
|
|
217
|
+
statusCode: _response.error.statusCode,
|
|
218
|
+
body: _response.error.body,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
205
221
|
}
|
|
206
222
|
switch (_response.error.reason) {
|
|
207
223
|
case "non-json":
|
|
@@ -210,7 +226,7 @@ class OortOrders {
|
|
|
210
226
|
body: _response.error.rawBody,
|
|
211
227
|
});
|
|
212
228
|
case "timeout":
|
|
213
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
229
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
|
|
214
230
|
case "unknown":
|
|
215
231
|
throw new errors.ChrtError({
|
|
216
232
|
message: _response.error.errorMessage,
|
|
@@ -224,15 +240,15 @@ class OortOrders {
|
|
|
224
240
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
225
241
|
*
|
|
226
242
|
* @example
|
|
227
|
-
* await client.oortOrders.
|
|
243
|
+
* await client.oortOrders.getOortOrdersListByShipperOrgId()
|
|
228
244
|
*/
|
|
229
|
-
|
|
245
|
+
getOortOrdersListByShipperOrgId(requestOptions) {
|
|
230
246
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
247
|
var _a, _b, _c;
|
|
232
248
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
233
|
-
url: (0, url_join_1.default)((_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_shipper_org_id
|
|
249
|
+
url: (0, url_join_1.default)((_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_shipper_org_id"),
|
|
234
250
|
method: "GET",
|
|
235
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0
|
|
251
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.1.0-beta0", "User-Agent": "@chrt-inc/typescript-sdk/0.1.0-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
236
252
|
contentType: "application/json",
|
|
237
253
|
requestType: "json",
|
|
238
254
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -255,7 +271,7 @@ class OortOrders {
|
|
|
255
271
|
body: _response.error.rawBody,
|
|
256
272
|
});
|
|
257
273
|
case "timeout":
|
|
258
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_shipper_org_id
|
|
274
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_shipper_org_id.");
|
|
259
275
|
case "unknown":
|
|
260
276
|
throw new errors.ChrtError({
|
|
261
277
|
message: _response.error.errorMessage,
|
|
@@ -264,74 +280,20 @@ class OortOrders {
|
|
|
264
280
|
});
|
|
265
281
|
}
|
|
266
282
|
/**
|
|
267
|
-
*
|
|
283
|
+
* Uses the org_id from the JWT
|
|
268
284
|
*
|
|
269
|
-
* @param {string} orderIdOrShortId
|
|
270
285
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
271
286
|
*
|
|
272
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
273
|
-
*
|
|
274
287
|
* @example
|
|
275
|
-
* await client.oortOrders.
|
|
288
|
+
* await client.oortOrders.getOortOrdersListByShipperOrgIdFull()
|
|
276
289
|
*/
|
|
277
|
-
|
|
290
|
+
getOortOrdersListByShipperOrgIdFull(requestOptions) {
|
|
278
291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
279
292
|
var _a, _b, _c;
|
|
280
293
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
281
|
-
url: (0, url_join_1.default)((_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,
|
|
294
|
+
url: (0, url_join_1.default)((_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_shipper_org_id/full"),
|
|
282
295
|
method: "GET",
|
|
283
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0
|
|
284
|
-
contentType: "application/json",
|
|
285
|
-
requestType: "json",
|
|
286
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
287
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
288
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
289
|
-
});
|
|
290
|
-
if (_response.ok) {
|
|
291
|
-
return _response.body;
|
|
292
|
-
}
|
|
293
|
-
if (_response.error.reason === "status-code") {
|
|
294
|
-
switch (_response.error.statusCode) {
|
|
295
|
-
case 422:
|
|
296
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body);
|
|
297
|
-
default:
|
|
298
|
-
throw new errors.ChrtError({
|
|
299
|
-
statusCode: _response.error.statusCode,
|
|
300
|
-
body: _response.error.body,
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
switch (_response.error.reason) {
|
|
305
|
-
case "non-json":
|
|
306
|
-
throw new errors.ChrtError({
|
|
307
|
-
statusCode: _response.error.statusCode,
|
|
308
|
-
body: _response.error.rawBody,
|
|
309
|
-
});
|
|
310
|
-
case "timeout":
|
|
311
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/{order_id_or_short_id}.");
|
|
312
|
-
case "unknown":
|
|
313
|
-
throw new errors.ChrtError({
|
|
314
|
-
message: _response.error.errorMessage,
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* @param {string} orderIdOrShortId
|
|
321
|
-
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
322
|
-
*
|
|
323
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
324
|
-
*
|
|
325
|
-
* @example
|
|
326
|
-
* await client.oortOrders.putOortOrdersOrderIdOrShortIdCancel("order_id_or_short_id")
|
|
327
|
-
*/
|
|
328
|
-
putOortOrdersOrderIdOrShortIdCancel(orderIdOrShortId, requestOptions) {
|
|
329
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
-
var _a, _b, _c;
|
|
331
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
332
|
-
url: (0, url_join_1.default)((_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`),
|
|
333
|
-
method: "PUT",
|
|
334
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0.162-b", "User-Agent": "@chrt-inc/typescript-sdk/0.0.162-b", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
296
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.1.0-beta0", "User-Agent": "@chrt-inc/typescript-sdk/0.1.0-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
335
297
|
contentType: "application/json",
|
|
336
298
|
requestType: "json",
|
|
337
299
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -342,15 +304,10 @@ class OortOrders {
|
|
|
342
304
|
return _response.body;
|
|
343
305
|
}
|
|
344
306
|
if (_response.error.reason === "status-code") {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
throw new errors.ChrtError({
|
|
350
|
-
statusCode: _response.error.statusCode,
|
|
351
|
-
body: _response.error.body,
|
|
352
|
-
});
|
|
353
|
-
}
|
|
307
|
+
throw new errors.ChrtError({
|
|
308
|
+
statusCode: _response.error.statusCode,
|
|
309
|
+
body: _response.error.body,
|
|
310
|
+
});
|
|
354
311
|
}
|
|
355
312
|
switch (_response.error.reason) {
|
|
356
313
|
case "non-json":
|
|
@@ -359,7 +316,7 @@ class OortOrders {
|
|
|
359
316
|
body: _response.error.rawBody,
|
|
360
317
|
});
|
|
361
318
|
case "timeout":
|
|
362
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
319
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_shipper_org_id/full.");
|
|
363
320
|
case "unknown":
|
|
364
321
|
throw new errors.ChrtError({
|
|
365
322
|
message: _response.error.errorMessage,
|
|
@@ -368,23 +325,20 @@ class OortOrders {
|
|
|
368
325
|
});
|
|
369
326
|
}
|
|
370
327
|
/**
|
|
371
|
-
*
|
|
328
|
+
* Uses the org_id from the JWT
|
|
372
329
|
*
|
|
373
|
-
* @param {string} orderIdOrShortId
|
|
374
330
|
* @param {OortOrders.RequestOptions} requestOptions - Request-specific configuration.
|
|
375
331
|
*
|
|
376
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
377
|
-
*
|
|
378
332
|
* @example
|
|
379
|
-
* await client.oortOrders.
|
|
333
|
+
* await client.oortOrders.getOortOrdersListByCourierOrgId()
|
|
380
334
|
*/
|
|
381
|
-
|
|
335
|
+
getOortOrdersListByCourierOrgId(requestOptions) {
|
|
382
336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
383
337
|
var _a, _b, _c;
|
|
384
338
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
385
|
-
url: (0, url_join_1.default)((_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,
|
|
339
|
+
url: (0, url_join_1.default)((_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"),
|
|
386
340
|
method: "GET",
|
|
387
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.0
|
|
341
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk", "X-Fern-SDK-Version": "0.1.0-beta0", "User-Agent": "@chrt-inc/typescript-sdk/0.1.0-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
388
342
|
contentType: "application/json",
|
|
389
343
|
requestType: "json",
|
|
390
344
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -395,15 +349,10 @@ class OortOrders {
|
|
|
395
349
|
return _response.body;
|
|
396
350
|
}
|
|
397
351
|
if (_response.error.reason === "status-code") {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
throw new errors.ChrtError({
|
|
403
|
-
statusCode: _response.error.statusCode,
|
|
404
|
-
body: _response.error.body,
|
|
405
|
-
});
|
|
406
|
-
}
|
|
352
|
+
throw new errors.ChrtError({
|
|
353
|
+
statusCode: _response.error.statusCode,
|
|
354
|
+
body: _response.error.body,
|
|
355
|
+
});
|
|
407
356
|
}
|
|
408
357
|
switch (_response.error.reason) {
|
|
409
358
|
case "non-json":
|
|
@@ -412,7 +361,7 @@ class OortOrders {
|
|
|
412
361
|
body: _response.error.rawBody,
|
|
413
362
|
});
|
|
414
363
|
case "timeout":
|
|
415
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/
|
|
364
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/orders/list/by_courier_org_id.");
|
|
416
365
|
case "unknown":
|
|
417
366
|
throw new errors.ChrtError({
|
|
418
367
|
message: _response.error.errorMessage,
|
|
@@ -5,39 +5,39 @@ import * as Chrt from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* cargo_client_creates_map: {
|
|
9
|
-
* "key": {
|
|
10
|
-
* cargo_type: "spare_parts",
|
|
11
|
-
* schema_version: 1
|
|
12
|
-
* }
|
|
13
|
-
* },
|
|
14
8
|
* order_client_create: {
|
|
15
9
|
* schema_version: 1
|
|
16
10
|
* },
|
|
17
|
-
* order_created_by_type: "chrt",
|
|
18
|
-
* order_dispatch_type: "dtc",
|
|
19
11
|
* task_client_creates_bundle_groupings: [[{
|
|
20
12
|
* task_client_create: {
|
|
21
13
|
* schema_version: 1
|
|
22
14
|
* }
|
|
23
15
|
* }]],
|
|
16
|
+
* cargo_client_creates_map: {
|
|
17
|
+
* "key": {
|
|
18
|
+
* schema_version: 1,
|
|
19
|
+
* cargo_type: "spare_parts"
|
|
20
|
+
* }
|
|
21
|
+
* },
|
|
22
|
+
* order_created_by_type: "chrt",
|
|
23
|
+
* order_dispatch_type: "dtc",
|
|
24
24
|
* transport_type: "ground_only"
|
|
25
25
|
* }
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateOrderReq {
|
|
28
|
+
order_client_create: Chrt.OrderClientCreate1;
|
|
29
|
+
/** These become Task Groups */
|
|
30
|
+
task_client_creates_bundle_groupings: Chrt.TaskCreateBundle[][];
|
|
28
31
|
/** A cargo may be shared by Tasks so we use a mapping */
|
|
29
32
|
cargo_client_creates_map: Record<string, Chrt.CargoClientCreate1>;
|
|
30
|
-
/** For DTC orders placed by shippers or chrt, this field is required. */
|
|
31
|
-
courier_org_id?: string;
|
|
32
|
-
order_client_create: Chrt.OrderClientCreate1;
|
|
33
33
|
order_created_by_type: Chrt.OrderCreatedByTypeEnum;
|
|
34
34
|
/** If a shipper or chrt creates an order, this field is required. */
|
|
35
35
|
order_dispatch_type: Chrt.OrderDispatchTypeEnum;
|
|
36
|
+
transport_type: Chrt.TransportTypeEnum;
|
|
36
37
|
/** Optionally used when a courier places a DTC order or chrt places a DTC/FF order */
|
|
37
38
|
shipper_org_id?: string;
|
|
38
39
|
/** Must be a string starting with `user_` */
|
|
39
40
|
shipper_user_id?: string;
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
transport_type: Chrt.TransportTypeEnum;
|
|
41
|
+
/** For DTC orders placed by shippers or chrt, this field is required. */
|
|
42
|
+
courier_org_id?: string;
|
|
43
43
|
}
|
|
@@ -26,18 +26,6 @@ export declare namespace OortOrgProfiles {
|
|
|
26
26
|
export declare class OortOrgProfiles {
|
|
27
27
|
protected readonly _options: OortOrgProfiles.Options;
|
|
28
28
|
constructor(_options?: OortOrgProfiles.Options);
|
|
29
|
-
/**
|
|
30
|
-
* @param {Chrt.GetAvatarRequest} request
|
|
31
|
-
* @param {OortOrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
-
*
|
|
33
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* await client.oortOrgProfiles.getAvatar({
|
|
37
|
-
* handle: "handle"
|
|
38
|
-
* })
|
|
39
|
-
*/
|
|
40
|
-
getAvatar(request: Chrt.GetAvatarRequest, requestOptions?: OortOrgProfiles.RequestOptions): Promise<string>;
|
|
41
29
|
/**
|
|
42
30
|
* @param {string} handle
|
|
43
31
|
* @param {OortOrgProfiles.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -63,10 +51,10 @@ export declare class OortOrgProfiles {
|
|
|
63
51
|
*
|
|
64
52
|
* @example
|
|
65
53
|
* await client.oortOrgProfiles.postOrgProfile({
|
|
54
|
+
* schema_version: 1,
|
|
66
55
|
* description: "description",
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* schema_version: 1
|
|
56
|
+
* org_id: "org_id",
|
|
57
|
+
* company_name: "company_name"
|
|
70
58
|
* })
|
|
71
59
|
*/
|
|
72
60
|
postOrgProfile(request: Chrt.CourierOrgProfileClientCreate3, requestOptions?: OortOrgProfiles.RequestOptions): Promise<boolean>;
|