@chrt-inc/typescript-sdk 0.0.162 → 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
package/Client.d.ts
CHANGED
|
@@ -3,23 +3,25 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
|
-
import { Root } from "./api/resources/root/client/Client";
|
|
7
|
-
import { Mirror } from "./api/resources/mirror/client/Client";
|
|
8
6
|
import { Dev } from "./api/resources/dev/client/Client";
|
|
9
7
|
import { Directory } from "./api/resources/directory/client/Client";
|
|
10
|
-
import {
|
|
11
|
-
import { OortCourierPayDriverRate } from "./api/resources/oortCourierPayDriverRate/client/Client";
|
|
8
|
+
import { Messages } from "./api/resources/messages/client/Client";
|
|
12
9
|
import { OortDrivers } from "./api/resources/oortDrivers/client/Client";
|
|
10
|
+
import { OortHandles } from "./api/resources/oortHandles/client/Client";
|
|
13
11
|
import { OortMilestones } from "./api/resources/oortMilestones/client/Client";
|
|
14
|
-
import { OortNotificationPreferences } from "./api/resources/oortNotificationPreferences/client/Client";
|
|
15
|
-
import { OortOrders } from "./api/resources/oortOrders/client/Client";
|
|
16
|
-
import { OortOrgConnectionInfos } from "./api/resources/oortOrgConnectionInfos/client/Client";
|
|
17
12
|
import { OortOrgProfiles } from "./api/resources/oortOrgProfiles/client/Client";
|
|
18
|
-
import {
|
|
13
|
+
import { OortOrders } from "./api/resources/oortOrders/client/Client";
|
|
14
|
+
import { OortRateSheets } from "./api/resources/oortRateSheets/client/Client";
|
|
15
|
+
import { OortRoutes } from "./api/resources/oortRoutes/client/Client";
|
|
16
|
+
import { OortShippers } from "./api/resources/oortShippers/client/Client";
|
|
19
17
|
import { OortTaskGroups } from "./api/resources/oortTaskGroups/client/Client";
|
|
20
18
|
import { Orgs } from "./api/resources/orgs/client/Client";
|
|
21
19
|
import { Payments } from "./api/resources/payments/client/Client";
|
|
20
|
+
import { Profiles } from "./api/resources/profiles/client/Client";
|
|
21
|
+
import { Root } from "./api/resources/root/client/Client";
|
|
22
22
|
import { Users } from "./api/resources/users/client/Client";
|
|
23
|
+
import { Mirror } from "./api/resources/mirror/client/Client";
|
|
24
|
+
import { OortCourierPayDriverRate } from "./api/resources/oortCourierPayDriverRate/client/Client";
|
|
23
25
|
export declare namespace ChrtClient {
|
|
24
26
|
interface Options {
|
|
25
27
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -41,39 +43,43 @@ export declare namespace ChrtClient {
|
|
|
41
43
|
}
|
|
42
44
|
export declare class ChrtClient {
|
|
43
45
|
protected readonly _options: ChrtClient.Options;
|
|
44
|
-
protected _root: Root | undefined;
|
|
45
|
-
protected _mirror: Mirror | undefined;
|
|
46
46
|
protected _dev: Dev | undefined;
|
|
47
47
|
protected _directory: Directory | undefined;
|
|
48
|
-
protected
|
|
49
|
-
protected _oortCourierPayDriverRate: OortCourierPayDriverRate | undefined;
|
|
48
|
+
protected _messages: Messages | undefined;
|
|
50
49
|
protected _oortDrivers: OortDrivers | undefined;
|
|
50
|
+
protected _oortHandles: OortHandles | undefined;
|
|
51
51
|
protected _oortMilestones: OortMilestones | undefined;
|
|
52
|
-
protected _oortNotificationPreferences: OortNotificationPreferences | undefined;
|
|
53
|
-
protected _oortOrders: OortOrders | undefined;
|
|
54
|
-
protected _oortOrgConnectionInfos: OortOrgConnectionInfos | undefined;
|
|
55
52
|
protected _oortOrgProfiles: OortOrgProfiles | undefined;
|
|
56
|
-
protected
|
|
53
|
+
protected _oortOrders: OortOrders | undefined;
|
|
54
|
+
protected _oortRateSheets: OortRateSheets | undefined;
|
|
55
|
+
protected _oortRoutes: OortRoutes | undefined;
|
|
56
|
+
protected _oortShippers: OortShippers | undefined;
|
|
57
57
|
protected _oortTaskGroups: OortTaskGroups | undefined;
|
|
58
58
|
protected _orgs: Orgs | undefined;
|
|
59
59
|
protected _payments: Payments | undefined;
|
|
60
|
+
protected _profiles: Profiles | undefined;
|
|
61
|
+
protected _root: Root | undefined;
|
|
60
62
|
protected _users: Users | undefined;
|
|
63
|
+
protected _mirror: Mirror | undefined;
|
|
64
|
+
protected _oortCourierPayDriverRate: OortCourierPayDriverRate | undefined;
|
|
61
65
|
constructor(_options?: ChrtClient.Options);
|
|
62
|
-
get root(): Root;
|
|
63
|
-
get mirror(): Mirror;
|
|
64
66
|
get dev(): Dev;
|
|
65
67
|
get directory(): Directory;
|
|
66
|
-
get
|
|
67
|
-
get oortCourierPayDriverRate(): OortCourierPayDriverRate;
|
|
68
|
+
get messages(): Messages;
|
|
68
69
|
get oortDrivers(): OortDrivers;
|
|
70
|
+
get oortHandles(): OortHandles;
|
|
69
71
|
get oortMilestones(): OortMilestones;
|
|
70
|
-
get oortNotificationPreferences(): OortNotificationPreferences;
|
|
71
|
-
get oortOrders(): OortOrders;
|
|
72
|
-
get oortOrgConnectionInfos(): OortOrgConnectionInfos;
|
|
73
72
|
get oortOrgProfiles(): OortOrgProfiles;
|
|
74
|
-
get
|
|
73
|
+
get oortOrders(): OortOrders;
|
|
74
|
+
get oortRateSheets(): OortRateSheets;
|
|
75
|
+
get oortRoutes(): OortRoutes;
|
|
76
|
+
get oortShippers(): OortShippers;
|
|
75
77
|
get oortTaskGroups(): OortTaskGroups;
|
|
76
78
|
get orgs(): Orgs;
|
|
77
79
|
get payments(): Payments;
|
|
80
|
+
get profiles(): Profiles;
|
|
81
|
+
get root(): Root;
|
|
78
82
|
get users(): Users;
|
|
83
|
+
get mirror(): Mirror;
|
|
84
|
+
get oortCourierPayDriverRate(): OortCourierPayDriverRate;
|
|
79
85
|
}
|
package/Client.js
CHANGED
|
@@ -4,94 +4,104 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ChrtClient = void 0;
|
|
7
|
-
const Client_1 = require("./api/resources/
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/
|
|
19
|
-
const Client_13 = require("./api/resources/
|
|
20
|
-
const Client_14 = require("./api/resources/
|
|
21
|
-
const Client_15 = require("./api/resources/
|
|
22
|
-
const Client_16 = require("./api/resources/
|
|
7
|
+
const Client_1 = require("./api/resources/dev/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/directory/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/messages/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/oortDrivers/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/oortHandles/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/oortMilestones/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/oortOrgProfiles/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/oortOrders/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/oortRateSheets/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/oortRoutes/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/oortShippers/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/oortTaskGroups/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/orgs/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/payments/client/Client");
|
|
21
|
+
const Client_15 = require("./api/resources/profiles/client/Client");
|
|
22
|
+
const Client_16 = require("./api/resources/root/client/Client");
|
|
23
23
|
const Client_17 = require("./api/resources/users/client/Client");
|
|
24
|
+
const Client_18 = require("./api/resources/mirror/client/Client");
|
|
25
|
+
const Client_19 = require("./api/resources/oortCourierPayDriverRate/client/Client");
|
|
24
26
|
class ChrtClient {
|
|
25
27
|
constructor(_options = {}) {
|
|
26
28
|
this._options = _options;
|
|
27
29
|
}
|
|
28
|
-
get root() {
|
|
29
|
-
var _a;
|
|
30
|
-
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_1.Root(this._options)));
|
|
31
|
-
}
|
|
32
|
-
get mirror() {
|
|
33
|
-
var _a;
|
|
34
|
-
return ((_a = this._mirror) !== null && _a !== void 0 ? _a : (this._mirror = new Client_2.Mirror(this._options)));
|
|
35
|
-
}
|
|
36
30
|
get dev() {
|
|
37
31
|
var _a;
|
|
38
|
-
return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new
|
|
32
|
+
return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Client_1.Dev(this._options)));
|
|
39
33
|
}
|
|
40
34
|
get directory() {
|
|
41
35
|
var _a;
|
|
42
|
-
return ((_a = this._directory) !== null && _a !== void 0 ? _a : (this._directory = new
|
|
36
|
+
return ((_a = this._directory) !== null && _a !== void 0 ? _a : (this._directory = new Client_2.Directory(this._options)));
|
|
43
37
|
}
|
|
44
|
-
get
|
|
38
|
+
get messages() {
|
|
45
39
|
var _a;
|
|
46
|
-
return ((_a = this.
|
|
40
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_3.Messages(this._options)));
|
|
47
41
|
}
|
|
48
|
-
get
|
|
42
|
+
get oortDrivers() {
|
|
49
43
|
var _a;
|
|
50
|
-
return ((_a = this.
|
|
44
|
+
return ((_a = this._oortDrivers) !== null && _a !== void 0 ? _a : (this._oortDrivers = new Client_4.OortDrivers(this._options)));
|
|
51
45
|
}
|
|
52
|
-
get
|
|
46
|
+
get oortHandles() {
|
|
53
47
|
var _a;
|
|
54
|
-
return ((_a = this.
|
|
48
|
+
return ((_a = this._oortHandles) !== null && _a !== void 0 ? _a : (this._oortHandles = new Client_5.OortHandles(this._options)));
|
|
55
49
|
}
|
|
56
50
|
get oortMilestones() {
|
|
57
51
|
var _a;
|
|
58
|
-
return ((_a = this._oortMilestones) !== null && _a !== void 0 ? _a : (this._oortMilestones = new
|
|
52
|
+
return ((_a = this._oortMilestones) !== null && _a !== void 0 ? _a : (this._oortMilestones = new Client_6.OortMilestones(this._options)));
|
|
59
53
|
}
|
|
60
|
-
get
|
|
54
|
+
get oortOrgProfiles() {
|
|
61
55
|
var _a;
|
|
62
|
-
return ((_a = this.
|
|
56
|
+
return ((_a = this._oortOrgProfiles) !== null && _a !== void 0 ? _a : (this._oortOrgProfiles = new Client_7.OortOrgProfiles(this._options)));
|
|
63
57
|
}
|
|
64
58
|
get oortOrders() {
|
|
65
59
|
var _a;
|
|
66
|
-
return ((_a = this._oortOrders) !== null && _a !== void 0 ? _a : (this._oortOrders = new
|
|
60
|
+
return ((_a = this._oortOrders) !== null && _a !== void 0 ? _a : (this._oortOrders = new Client_8.OortOrders(this._options)));
|
|
67
61
|
}
|
|
68
|
-
get
|
|
62
|
+
get oortRateSheets() {
|
|
69
63
|
var _a;
|
|
70
|
-
return ((_a = this.
|
|
64
|
+
return ((_a = this._oortRateSheets) !== null && _a !== void 0 ? _a : (this._oortRateSheets = new Client_9.OortRateSheets(this._options)));
|
|
71
65
|
}
|
|
72
|
-
get
|
|
66
|
+
get oortRoutes() {
|
|
73
67
|
var _a;
|
|
74
|
-
return ((_a = this.
|
|
68
|
+
return ((_a = this._oortRoutes) !== null && _a !== void 0 ? _a : (this._oortRoutes = new Client_10.OortRoutes(this._options)));
|
|
75
69
|
}
|
|
76
|
-
get
|
|
70
|
+
get oortShippers() {
|
|
77
71
|
var _a;
|
|
78
|
-
return ((_a = this.
|
|
72
|
+
return ((_a = this._oortShippers) !== null && _a !== void 0 ? _a : (this._oortShippers = new Client_11.OortShippers(this._options)));
|
|
79
73
|
}
|
|
80
74
|
get oortTaskGroups() {
|
|
81
75
|
var _a;
|
|
82
|
-
return ((_a = this._oortTaskGroups) !== null && _a !== void 0 ? _a : (this._oortTaskGroups = new
|
|
76
|
+
return ((_a = this._oortTaskGroups) !== null && _a !== void 0 ? _a : (this._oortTaskGroups = new Client_12.OortTaskGroups(this._options)));
|
|
83
77
|
}
|
|
84
78
|
get orgs() {
|
|
85
79
|
var _a;
|
|
86
|
-
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new
|
|
80
|
+
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_13.Orgs(this._options)));
|
|
87
81
|
}
|
|
88
82
|
get payments() {
|
|
89
83
|
var _a;
|
|
90
|
-
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new
|
|
84
|
+
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_14.Payments(this._options)));
|
|
85
|
+
}
|
|
86
|
+
get profiles() {
|
|
87
|
+
var _a;
|
|
88
|
+
return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_15.Profiles(this._options)));
|
|
89
|
+
}
|
|
90
|
+
get root() {
|
|
91
|
+
var _a;
|
|
92
|
+
return ((_a = this._root) !== null && _a !== void 0 ? _a : (this._root = new Client_16.Root(this._options)));
|
|
91
93
|
}
|
|
92
94
|
get users() {
|
|
93
95
|
var _a;
|
|
94
96
|
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.Users(this._options)));
|
|
95
97
|
}
|
|
98
|
+
get mirror() {
|
|
99
|
+
var _a;
|
|
100
|
+
return ((_a = this._mirror) !== null && _a !== void 0 ? _a : (this._mirror = new Client_18.Mirror(this._options)));
|
|
101
|
+
}
|
|
102
|
+
get oortCourierPayDriverRate() {
|
|
103
|
+
var _a;
|
|
104
|
+
return ((_a = this._oortCourierPayDriverRate) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverRate = new Client_19.OortCourierPayDriverRate(this._options)));
|
|
105
|
+
}
|
|
96
106
|
}
|
|
97
107
|
exports.ChrtClient = ChrtClient;
|
package/README.md
CHANGED
|
@@ -23,7 +23,11 @@ Instantiate and use the client with the following:
|
|
|
23
23
|
import { ChrtClient } from "@chrt-inc/typescript-sdk";
|
|
24
24
|
|
|
25
25
|
const client = new ChrtClient({ token: "YOUR_TOKEN" });
|
|
26
|
-
await client.
|
|
26
|
+
await client.dev.postTemplate({
|
|
27
|
+
message: "message",
|
|
28
|
+
number: 1,
|
|
29
|
+
timestamp: "2024-01-15T09:30:00Z",
|
|
30
|
+
});
|
|
27
31
|
```
|
|
28
32
|
|
|
29
33
|
## Request And Response Types
|
|
@@ -48,7 +52,7 @@ will be thrown.
|
|
|
48
52
|
import { ChrtError } from "@chrt-inc/typescript-sdk";
|
|
49
53
|
|
|
50
54
|
try {
|
|
51
|
-
await client.
|
|
55
|
+
await client.dev.postTemplate(...);
|
|
52
56
|
} catch (err) {
|
|
53
57
|
if (err instanceof ChrtError) {
|
|
54
58
|
console.log(err.statusCode);
|
|
@@ -65,7 +69,7 @@ try {
|
|
|
65
69
|
If you would like to send additional headers as part of the request, use the `headers` request option.
|
|
66
70
|
|
|
67
71
|
```typescript
|
|
68
|
-
const response = await client.
|
|
72
|
+
const response = await client.dev.postTemplate(..., {
|
|
69
73
|
headers: {
|
|
70
74
|
'X-Custom-Header': 'custom value'
|
|
71
75
|
}
|
|
@@ -87,7 +91,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
|
87
91
|
Use the `maxRetries` request option to configure this behavior.
|
|
88
92
|
|
|
89
93
|
```typescript
|
|
90
|
-
const response = await client.
|
|
94
|
+
const response = await client.dev.postTemplate(..., {
|
|
91
95
|
maxRetries: 0 // override maxRetries at the request level
|
|
92
96
|
});
|
|
93
97
|
```
|
|
@@ -97,7 +101,7 @@ const response = await client.root.postAuthd(..., {
|
|
|
97
101
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
98
102
|
|
|
99
103
|
```typescript
|
|
100
|
-
const response = await client.
|
|
104
|
+
const response = await client.dev.postTemplate(..., {
|
|
101
105
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
102
106
|
});
|
|
103
107
|
```
|
|
@@ -108,7 +112,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
108
112
|
|
|
109
113
|
```typescript
|
|
110
114
|
const controller = new AbortController();
|
|
111
|
-
const response = await client.
|
|
115
|
+
const response = await client.dev.postTemplate(..., {
|
|
112
116
|
abortSignal: controller.signal
|
|
113
117
|
});
|
|
114
118
|
controller.abort(); // aborts the request
|
|
@@ -26,6 +26,13 @@ export declare namespace Dev {
|
|
|
26
26
|
export declare class Dev {
|
|
27
27
|
protected readonly _options: Dev.Options;
|
|
28
28
|
constructor(_options?: Dev.Options);
|
|
29
|
+
/**
|
|
30
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.dev.getUserId()
|
|
34
|
+
*/
|
|
35
|
+
getUserId(requestOptions?: Dev.RequestOptions): Promise<string>;
|
|
29
36
|
/**
|
|
30
37
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
38
|
*
|
|
@@ -61,12 +68,5 @@ export declare class Dev {
|
|
|
61
68
|
* })
|
|
62
69
|
*/
|
|
63
70
|
postTemplate(request: Chrt.TemplateReq, requestOptions?: Dev.RequestOptions): Promise<Chrt.TemplateRes>;
|
|
64
|
-
/**
|
|
65
|
-
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* await client.dev.getUserId()
|
|
69
|
-
*/
|
|
70
|
-
getUserId(requestOptions?: Dev.RequestOptions): Promise<string>;
|
|
71
71
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
72
72
|
}
|
|
@@ -51,9 +51,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.Dev = void 0;
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
|
-
const Chrt = __importStar(require("../../../index"));
|
|
55
54
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
55
|
const errors = __importStar(require("../../../../errors/index"));
|
|
56
|
+
const Chrt = __importStar(require("../../../index"));
|
|
57
57
|
class Dev {
|
|
58
58
|
constructor(_options = {}) {
|
|
59
59
|
this._options = _options;
|
|
@@ -62,15 +62,15 @@ class Dev {
|
|
|
62
62
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.dev.
|
|
65
|
+
* await client.dev.getUserId()
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
getUserId(requestOptions) {
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
var _a, _b, _c;
|
|
70
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
|
-
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, "dev/
|
|
71
|
+
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, "dev/user_id"),
|
|
72
72
|
method: "GET",
|
|
73
|
-
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
|
|
73
|
+
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),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
requestType: "json",
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -93,7 +93,7 @@ class Dev {
|
|
|
93
93
|
body: _response.error.rawBody,
|
|
94
94
|
});
|
|
95
95
|
case "timeout":
|
|
96
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/
|
|
96
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/user_id.");
|
|
97
97
|
case "unknown":
|
|
98
98
|
throw new errors.ChrtError({
|
|
99
99
|
message: _response.error.errorMessage,
|
|
@@ -105,15 +105,15 @@ class Dev {
|
|
|
105
105
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
106
|
*
|
|
107
107
|
* @example
|
|
108
|
-
* await client.dev.
|
|
108
|
+
* await client.dev.getDecodedJwt()
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
getDecodedJwt(requestOptions) {
|
|
111
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
112
|
var _a, _b, _c;
|
|
113
113
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
114
|
-
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, "dev/
|
|
114
|
+
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, "dev/decoded_jwt"),
|
|
115
115
|
method: "GET",
|
|
116
|
-
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
|
|
116
|
+
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),
|
|
117
117
|
contentType: "application/json",
|
|
118
118
|
requestType: "json",
|
|
119
119
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -136,7 +136,7 @@ class Dev {
|
|
|
136
136
|
body: _response.error.rawBody,
|
|
137
137
|
});
|
|
138
138
|
case "timeout":
|
|
139
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/
|
|
139
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/decoded_jwt.");
|
|
140
140
|
case "unknown":
|
|
141
141
|
throw new errors.ChrtError({
|
|
142
142
|
message: _response.error.errorMessage,
|
|
@@ -148,15 +148,15 @@ class Dev {
|
|
|
148
148
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
149
|
*
|
|
150
150
|
* @example
|
|
151
|
-
* await client.dev.
|
|
151
|
+
* await client.dev.getEmail()
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
getEmail(requestOptions) {
|
|
154
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
155
|
var _a, _b, _c;
|
|
156
156
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
157
|
-
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, "dev/
|
|
157
|
+
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, "dev/email"),
|
|
158
158
|
method: "GET",
|
|
159
|
-
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
|
|
159
|
+
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),
|
|
160
160
|
contentType: "application/json",
|
|
161
161
|
requestType: "json",
|
|
162
162
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -179,7 +179,7 @@ class Dev {
|
|
|
179
179
|
body: _response.error.rawBody,
|
|
180
180
|
});
|
|
181
181
|
case "timeout":
|
|
182
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/
|
|
182
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/email.");
|
|
183
183
|
case "unknown":
|
|
184
184
|
throw new errors.ChrtError({
|
|
185
185
|
message: _response.error.errorMessage,
|
|
@@ -188,28 +188,20 @@ class Dev {
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
|
-
* @param {Chrt.TemplateReq} request
|
|
192
191
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
193
192
|
*
|
|
194
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
195
|
-
*
|
|
196
193
|
* @example
|
|
197
|
-
* await client.dev.
|
|
198
|
-
* message: "message",
|
|
199
|
-
* number: 1,
|
|
200
|
-
* timestamp: "2024-01-15T09:30:00Z"
|
|
201
|
-
* })
|
|
194
|
+
* await client.dev.getTemplate()
|
|
202
195
|
*/
|
|
203
|
-
|
|
196
|
+
getTemplate(requestOptions) {
|
|
204
197
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
198
|
var _a, _b, _c;
|
|
206
199
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
207
200
|
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, "dev/template"),
|
|
208
|
-
method: "
|
|
209
|
-
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
|
|
201
|
+
method: "GET",
|
|
202
|
+
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),
|
|
210
203
|
contentType: "application/json",
|
|
211
204
|
requestType: "json",
|
|
212
|
-
body: request,
|
|
213
205
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
214
206
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
215
207
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -218,15 +210,10 @@ class Dev {
|
|
|
218
210
|
return _response.body;
|
|
219
211
|
}
|
|
220
212
|
if (_response.error.reason === "status-code") {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
throw new errors.ChrtError({
|
|
226
|
-
statusCode: _response.error.statusCode,
|
|
227
|
-
body: _response.error.body,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
213
|
+
throw new errors.ChrtError({
|
|
214
|
+
statusCode: _response.error.statusCode,
|
|
215
|
+
body: _response.error.body,
|
|
216
|
+
});
|
|
230
217
|
}
|
|
231
218
|
switch (_response.error.reason) {
|
|
232
219
|
case "non-json":
|
|
@@ -235,7 +222,7 @@ class Dev {
|
|
|
235
222
|
body: _response.error.rawBody,
|
|
236
223
|
});
|
|
237
224
|
case "timeout":
|
|
238
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
225
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/template.");
|
|
239
226
|
case "unknown":
|
|
240
227
|
throw new errors.ChrtError({
|
|
241
228
|
message: _response.error.errorMessage,
|
|
@@ -244,20 +231,28 @@ class Dev {
|
|
|
244
231
|
});
|
|
245
232
|
}
|
|
246
233
|
/**
|
|
234
|
+
* @param {Chrt.TemplateReq} request
|
|
247
235
|
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
236
|
*
|
|
237
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
238
|
+
*
|
|
249
239
|
* @example
|
|
250
|
-
* await client.dev.
|
|
240
|
+
* await client.dev.postTemplate({
|
|
241
|
+
* message: "message",
|
|
242
|
+
* number: 1,
|
|
243
|
+
* timestamp: "2024-01-15T09:30:00Z"
|
|
244
|
+
* })
|
|
251
245
|
*/
|
|
252
|
-
|
|
246
|
+
postTemplate(request, requestOptions) {
|
|
253
247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
248
|
var _a, _b, _c;
|
|
255
249
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
256
|
-
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, "dev/
|
|
257
|
-
method: "
|
|
258
|
-
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
|
|
250
|
+
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, "dev/template"),
|
|
251
|
+
method: "POST",
|
|
252
|
+
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),
|
|
259
253
|
contentType: "application/json",
|
|
260
254
|
requestType: "json",
|
|
255
|
+
body: request,
|
|
261
256
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
262
257
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
263
258
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -266,10 +261,15 @@ class Dev {
|
|
|
266
261
|
return _response.body;
|
|
267
262
|
}
|
|
268
263
|
if (_response.error.reason === "status-code") {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
264
|
+
switch (_response.error.statusCode) {
|
|
265
|
+
case 422:
|
|
266
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body);
|
|
267
|
+
default:
|
|
268
|
+
throw new errors.ChrtError({
|
|
269
|
+
statusCode: _response.error.statusCode,
|
|
270
|
+
body: _response.error.body,
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
273
|
}
|
|
274
274
|
switch (_response.error.reason) {
|
|
275
275
|
case "non-json":
|
|
@@ -278,7 +278,7 @@ class Dev {
|
|
|
278
278
|
body: _response.error.rawBody,
|
|
279
279
|
});
|
|
280
280
|
case "timeout":
|
|
281
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
281
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/template.");
|
|
282
282
|
case "unknown":
|
|
283
283
|
throw new errors.ChrtError({
|
|
284
284
|
message: _response.error.errorMessage,
|
|
@@ -75,7 +75,7 @@ class Directory {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
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, "directory/shippers"),
|
|
77
77
|
method: "POST",
|
|
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.0
|
|
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),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: request,
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
+
export * as profiles from "./profiles";
|
|
2
|
+
export * from "./profiles/types";
|
|
1
3
|
export * as root from "./root";
|
|
2
4
|
export * from "./root/types";
|
|
3
|
-
export * as mirror from "./mirror";
|
|
4
5
|
export * as dev from "./dev";
|
|
5
6
|
export * as directory from "./directory";
|
|
6
|
-
export * as
|
|
7
|
-
export * as oortCourierPayDriverRate from "./oortCourierPayDriverRate";
|
|
7
|
+
export * as messages from "./messages";
|
|
8
8
|
export * as oortDrivers from "./oortDrivers";
|
|
9
|
+
export * as oortHandles from "./oortHandles";
|
|
9
10
|
export * as oortMilestones from "./oortMilestones";
|
|
10
|
-
export * as oortNotificationPreferences from "./oortNotificationPreferences";
|
|
11
|
-
export * as oortOrders from "./oortOrders";
|
|
12
|
-
export * as oortOrgConnectionInfos from "./oortOrgConnectionInfos";
|
|
13
11
|
export * as oortOrgProfiles from "./oortOrgProfiles";
|
|
14
|
-
export * as
|
|
12
|
+
export * as oortOrders from "./oortOrders";
|
|
13
|
+
export * as oortRateSheets from "./oortRateSheets";
|
|
14
|
+
export * as oortRoutes from "./oortRoutes";
|
|
15
|
+
export * as oortShippers from "./oortShippers";
|
|
15
16
|
export * as oortTaskGroups from "./oortTaskGroups";
|
|
16
17
|
export * as orgs from "./orgs";
|
|
17
18
|
export * as payments from "./payments";
|
|
18
19
|
export * as users from "./users";
|
|
20
|
+
export * as mirror from "./mirror";
|
|
21
|
+
export * as oortCourierPayDriverRate from "./oortCourierPayDriverRate";
|
|
19
22
|
export * from "./dev/client/requests";
|
|
20
23
|
export * from "./directory/client/requests";
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./oortCourierPayDriverRate/client/requests";
|
|
24
|
+
export * from "./messages/client/requests";
|
|
23
25
|
export * from "./oortDrivers/client/requests";
|
|
26
|
+
export * from "./oortHandles/client/requests";
|
|
24
27
|
export * from "./oortMilestones/client/requests";
|
|
25
|
-
export * from "./oortNotificationPreferences/client/requests";
|
|
26
|
-
export * from "./oortOrders/client/requests";
|
|
27
|
-
export * from "./oortOrgConnectionInfos/client/requests";
|
|
28
28
|
export * from "./oortOrgProfiles/client/requests";
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./
|
|
29
|
+
export * from "./oortOrders/client/requests";
|
|
30
|
+
export * from "./oortRateSheets/client/requests";
|
|
31
|
+
export * from "./oortRoutes/client/requests";
|
|
31
32
|
export * from "./orgs/client/requests";
|
|
32
33
|
export * from "./payments/client/requests";
|
|
34
|
+
export * from "./profiles/client/requests";
|