@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/api/resources/index.js
CHANGED
|
@@ -36,36 +36,38 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.payments = exports.orgs = exports.oortTaskGroups = exports.
|
|
39
|
+
exports.oortCourierPayDriverRate = exports.mirror = exports.users = exports.payments = exports.orgs = exports.oortTaskGroups = exports.oortShippers = exports.oortRoutes = exports.oortRateSheets = exports.oortOrders = exports.oortOrgProfiles = exports.oortMilestones = exports.oortHandles = exports.oortDrivers = exports.messages = exports.directory = exports.dev = exports.root = exports.profiles = void 0;
|
|
40
|
+
exports.profiles = __importStar(require("./profiles"));
|
|
41
|
+
__exportStar(require("./profiles/types"), exports);
|
|
40
42
|
exports.root = __importStar(require("./root"));
|
|
41
43
|
__exportStar(require("./root/types"), exports);
|
|
42
|
-
exports.mirror = __importStar(require("./mirror"));
|
|
43
44
|
exports.dev = __importStar(require("./dev"));
|
|
44
45
|
exports.directory = __importStar(require("./directory"));
|
|
45
|
-
exports.
|
|
46
|
-
exports.oortCourierPayDriverRate = __importStar(require("./oortCourierPayDriverRate"));
|
|
46
|
+
exports.messages = __importStar(require("./messages"));
|
|
47
47
|
exports.oortDrivers = __importStar(require("./oortDrivers"));
|
|
48
|
+
exports.oortHandles = __importStar(require("./oortHandles"));
|
|
48
49
|
exports.oortMilestones = __importStar(require("./oortMilestones"));
|
|
49
|
-
exports.oortNotificationPreferences = __importStar(require("./oortNotificationPreferences"));
|
|
50
|
-
exports.oortOrders = __importStar(require("./oortOrders"));
|
|
51
|
-
exports.oortOrgConnectionInfos = __importStar(require("./oortOrgConnectionInfos"));
|
|
52
50
|
exports.oortOrgProfiles = __importStar(require("./oortOrgProfiles"));
|
|
53
|
-
exports.
|
|
51
|
+
exports.oortOrders = __importStar(require("./oortOrders"));
|
|
52
|
+
exports.oortRateSheets = __importStar(require("./oortRateSheets"));
|
|
53
|
+
exports.oortRoutes = __importStar(require("./oortRoutes"));
|
|
54
|
+
exports.oortShippers = __importStar(require("./oortShippers"));
|
|
54
55
|
exports.oortTaskGroups = __importStar(require("./oortTaskGroups"));
|
|
55
56
|
exports.orgs = __importStar(require("./orgs"));
|
|
56
57
|
exports.payments = __importStar(require("./payments"));
|
|
57
58
|
exports.users = __importStar(require("./users"));
|
|
59
|
+
exports.mirror = __importStar(require("./mirror"));
|
|
60
|
+
exports.oortCourierPayDriverRate = __importStar(require("./oortCourierPayDriverRate"));
|
|
58
61
|
__exportStar(require("./dev/client/requests"), exports);
|
|
59
62
|
__exportStar(require("./directory/client/requests"), exports);
|
|
60
|
-
__exportStar(require("./
|
|
61
|
-
__exportStar(require("./oortCourierPayDriverRate/client/requests"), exports);
|
|
63
|
+
__exportStar(require("./messages/client/requests"), exports);
|
|
62
64
|
__exportStar(require("./oortDrivers/client/requests"), exports);
|
|
65
|
+
__exportStar(require("./oortHandles/client/requests"), exports);
|
|
63
66
|
__exportStar(require("./oortMilestones/client/requests"), exports);
|
|
64
|
-
__exportStar(require("./oortNotificationPreferences/client/requests"), exports);
|
|
65
|
-
__exportStar(require("./oortOrders/client/requests"), exports);
|
|
66
|
-
__exportStar(require("./oortOrgConnectionInfos/client/requests"), exports);
|
|
67
67
|
__exportStar(require("./oortOrgProfiles/client/requests"), exports);
|
|
68
|
-
__exportStar(require("./
|
|
69
|
-
__exportStar(require("./
|
|
68
|
+
__exportStar(require("./oortOrders/client/requests"), exports);
|
|
69
|
+
__exportStar(require("./oortRateSheets/client/requests"), exports);
|
|
70
|
+
__exportStar(require("./oortRoutes/client/requests"), exports);
|
|
70
71
|
__exportStar(require("./orgs/client/requests"), exports);
|
|
71
72
|
__exportStar(require("./payments/client/requests"), exports);
|
|
73
|
+
__exportStar(require("./profiles/client/requests"), exports);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
6
|
import * as Chrt from "../../../index";
|
|
7
|
-
export declare namespace
|
|
7
|
+
export declare namespace Messages {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -23,27 +23,35 @@ export declare namespace OortNotificationPreferences {
|
|
|
23
23
|
headers?: Record<string, string>;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export declare class
|
|
27
|
-
protected readonly _options:
|
|
28
|
-
constructor(_options?:
|
|
26
|
+
export declare class Messages {
|
|
27
|
+
protected readonly _options: Messages.Options;
|
|
28
|
+
constructor(_options?: Messages.Options);
|
|
29
29
|
/**
|
|
30
|
-
* @param {
|
|
30
|
+
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* await client.
|
|
33
|
+
* await client.messages.getForCourier()
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
getForCourier(requestOptions?: Messages.RequestOptions): Promise<Chrt.ShipperToCourier1[]>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
37
|
+
* Server logic overwrites `user_id`, `shipper_user_id`, and `created_at`
|
|
38
|
+
*
|
|
39
|
+
* @param {Chrt.ShipperToCourierCreate1} request
|
|
40
|
+
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
41
|
*
|
|
40
42
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
41
43
|
*
|
|
42
44
|
* @example
|
|
43
|
-
* await client.
|
|
44
|
-
*
|
|
45
|
+
* await client.messages.postShipperToCourier({
|
|
46
|
+
* handle: "handle",
|
|
47
|
+
* schema_version: 1,
|
|
48
|
+
* user_id: "user_id",
|
|
49
|
+
* name: "name",
|
|
50
|
+
* email_address: "email_address",
|
|
51
|
+
* message: "message",
|
|
52
|
+
* viewed: true
|
|
45
53
|
* })
|
|
46
54
|
*/
|
|
47
|
-
|
|
55
|
+
postShipperToCourier(request: Chrt.ShipperToCourierCreate1, requestOptions?: Messages.RequestOptions): Promise<unknown>;
|
|
48
56
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
49
57
|
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.Messages = void 0;
|
|
63
|
+
const environments = __importStar(require("../../../../environments"));
|
|
64
|
+
const core = __importStar(require("../../../../core"));
|
|
65
|
+
const Chrt = __importStar(require("../../../index"));
|
|
66
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
67
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
68
|
+
class Messages {
|
|
69
|
+
constructor(_options = {}) {
|
|
70
|
+
this._options = _options;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* await client.messages.getForCourier()
|
|
77
|
+
*/
|
|
78
|
+
getForCourier(requestOptions) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
var _a, _b, _c;
|
|
81
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
82
|
+
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, "messages/for_courier"),
|
|
83
|
+
method: "GET",
|
|
84
|
+
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),
|
|
85
|
+
contentType: "application/json",
|
|
86
|
+
requestType: "json",
|
|
87
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
88
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
|
+
});
|
|
91
|
+
if (_response.ok) {
|
|
92
|
+
return _response.body;
|
|
93
|
+
}
|
|
94
|
+
if (_response.error.reason === "status-code") {
|
|
95
|
+
throw new errors.ChrtError({
|
|
96
|
+
statusCode: _response.error.statusCode,
|
|
97
|
+
body: _response.error.body,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
switch (_response.error.reason) {
|
|
101
|
+
case "non-json":
|
|
102
|
+
throw new errors.ChrtError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.rawBody,
|
|
105
|
+
});
|
|
106
|
+
case "timeout":
|
|
107
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /messages/for_courier.");
|
|
108
|
+
case "unknown":
|
|
109
|
+
throw new errors.ChrtError({
|
|
110
|
+
message: _response.error.errorMessage,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Server logic overwrites `user_id`, `shipper_user_id`, and `created_at`
|
|
117
|
+
*
|
|
118
|
+
* @param {Chrt.ShipperToCourierCreate1} request
|
|
119
|
+
* @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* await client.messages.postShipperToCourier({
|
|
125
|
+
* handle: "handle",
|
|
126
|
+
* schema_version: 1,
|
|
127
|
+
* user_id: "user_id",
|
|
128
|
+
* name: "name",
|
|
129
|
+
* email_address: "email_address",
|
|
130
|
+
* message: "message",
|
|
131
|
+
* viewed: true
|
|
132
|
+
* })
|
|
133
|
+
*/
|
|
134
|
+
postShipperToCourier(request, requestOptions) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
var _a, _b, _c;
|
|
137
|
+
const { handle } = request, _body = __rest(request, ["handle"]);
|
|
138
|
+
const _queryParams = {};
|
|
139
|
+
_queryParams["handle"] = handle;
|
|
140
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
141
|
+
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, "messages/shipper_to_courier"),
|
|
142
|
+
method: "POST",
|
|
143
|
+
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),
|
|
144
|
+
contentType: "application/json",
|
|
145
|
+
queryParameters: _queryParams,
|
|
146
|
+
requestType: "json",
|
|
147
|
+
body: _body,
|
|
148
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
149
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
150
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
151
|
+
});
|
|
152
|
+
if (_response.ok) {
|
|
153
|
+
return _response.body;
|
|
154
|
+
}
|
|
155
|
+
if (_response.error.reason === "status-code") {
|
|
156
|
+
switch (_response.error.statusCode) {
|
|
157
|
+
case 422:
|
|
158
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body);
|
|
159
|
+
default:
|
|
160
|
+
throw new errors.ChrtError({
|
|
161
|
+
statusCode: _response.error.statusCode,
|
|
162
|
+
body: _response.error.body,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
switch (_response.error.reason) {
|
|
167
|
+
case "non-json":
|
|
168
|
+
throw new errors.ChrtError({
|
|
169
|
+
statusCode: _response.error.statusCode,
|
|
170
|
+
body: _response.error.rawBody,
|
|
171
|
+
});
|
|
172
|
+
case "timeout":
|
|
173
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /messages/shipper_to_courier.");
|
|
174
|
+
case "unknown":
|
|
175
|
+
throw new errors.ChrtError({
|
|
176
|
+
message: _response.error.errorMessage,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
_getAuthorizationHeader() {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
184
|
+
if (bearer != null) {
|
|
185
|
+
return `Bearer ${bearer}`;
|
|
186
|
+
}
|
|
187
|
+
return undefined;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.Messages = Messages;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* handle: "handle",
|
|
8
|
+
* schema_version: 1,
|
|
9
|
+
* user_id: "user_id",
|
|
10
|
+
* name: "name",
|
|
11
|
+
* email_address: "email_address",
|
|
12
|
+
* message: "message",
|
|
13
|
+
* viewed: true
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface ShipperToCourierCreate1 {
|
|
17
|
+
handle: string;
|
|
18
|
+
schema_version: number;
|
|
19
|
+
user_id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
email_address: string;
|
|
22
|
+
message: string;
|
|
23
|
+
phone_number?: string;
|
|
24
|
+
viewed: boolean;
|
|
25
|
+
/** Must be a string starting with `user_` */
|
|
26
|
+
shipper_user_id?: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ShipperToCourierCreate1 } from "./ShipperToCourierCreate1";
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Chrt from "../../../index";
|
|
7
6
|
export declare namespace Mirror {
|
|
8
7
|
interface Options {
|
|
9
8
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -96,29 +95,5 @@ export declare class Mirror {
|
|
|
96
95
|
* await client.mirror.patchMirror()
|
|
97
96
|
*/
|
|
98
97
|
patchMirror(requestOptions?: Mirror.RequestOptions): Promise<unknown>;
|
|
99
|
-
/**
|
|
100
|
-
* @param {Chrt.EmailReq} request
|
|
101
|
-
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
|
-
*
|
|
103
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* await client.mirror.postOrderCompletedEmail({
|
|
107
|
-
* to: ["to"]
|
|
108
|
-
* })
|
|
109
|
-
*/
|
|
110
|
-
postOrderCompletedEmail(request: Chrt.EmailReq, requestOptions?: Mirror.RequestOptions): Promise<Chrt.EmailRes>;
|
|
111
|
-
/**
|
|
112
|
-
* @param {Chrt.EmailReq} request
|
|
113
|
-
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
114
|
-
*
|
|
115
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* await client.mirror.postOrderInProgressEmail({
|
|
119
|
-
* to: ["to"]
|
|
120
|
-
* })
|
|
121
|
-
*/
|
|
122
|
-
postOrderInProgressEmail(request: Chrt.EmailReq, requestOptions?: Mirror.RequestOptions): Promise<Chrt.EmailRes>;
|
|
123
98
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
124
99
|
}
|
|
@@ -53,7 +53,6 @@ const environments = __importStar(require("../../../../environments"));
|
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const url_join_1 = __importDefault(require("url-join"));
|
|
55
55
|
const errors = __importStar(require("../../../../errors/index"));
|
|
56
|
-
const Chrt = __importStar(require("../../../index"));
|
|
57
56
|
class Mirror {
|
|
58
57
|
constructor(_options = {}) {
|
|
59
58
|
this._options = _options;
|
|
@@ -70,7 +69,7 @@ class Mirror {
|
|
|
70
69
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
71
70
|
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, "authd_mirror"),
|
|
72
71
|
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
|
|
72
|
+
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
73
|
contentType: "application/json",
|
|
75
74
|
requestType: "json",
|
|
76
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -113,7 +112,7 @@ class Mirror {
|
|
|
113
112
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
114
113
|
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, "authd_mirror"),
|
|
115
114
|
method: "POST",
|
|
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
|
|
115
|
+
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
116
|
contentType: "application/json",
|
|
118
117
|
requestType: "json",
|
|
119
118
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -156,7 +155,7 @@ class Mirror {
|
|
|
156
155
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
157
156
|
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, "authd_mirror"),
|
|
158
157
|
method: "PUT",
|
|
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
|
|
158
|
+
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
159
|
contentType: "application/json",
|
|
161
160
|
requestType: "json",
|
|
162
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -199,7 +198,7 @@ class Mirror {
|
|
|
199
198
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
200
199
|
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, "authd_mirror"),
|
|
201
200
|
method: "DELETE",
|
|
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.0
|
|
201
|
+
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),
|
|
203
202
|
contentType: "application/json",
|
|
204
203
|
requestType: "json",
|
|
205
204
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -242,7 +241,7 @@ class Mirror {
|
|
|
242
241
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
243
242
|
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, "authd_mirror"),
|
|
244
243
|
method: "PATCH",
|
|
245
|
-
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
|
|
244
|
+
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),
|
|
246
245
|
contentType: "application/json",
|
|
247
246
|
requestType: "json",
|
|
248
247
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -285,7 +284,7 @@ class Mirror {
|
|
|
285
284
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
286
285
|
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, "mirror"),
|
|
287
286
|
method: "GET",
|
|
288
|
-
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
|
|
287
|
+
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),
|
|
289
288
|
contentType: "application/json",
|
|
290
289
|
requestType: "json",
|
|
291
290
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -328,7 +327,7 @@ class Mirror {
|
|
|
328
327
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
329
328
|
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, "mirror"),
|
|
330
329
|
method: "POST",
|
|
331
|
-
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
|
|
330
|
+
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),
|
|
332
331
|
contentType: "application/json",
|
|
333
332
|
requestType: "json",
|
|
334
333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -371,7 +370,7 @@ class Mirror {
|
|
|
371
370
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
372
371
|
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, "mirror"),
|
|
373
372
|
method: "PUT",
|
|
374
|
-
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
|
|
373
|
+
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),
|
|
375
374
|
contentType: "application/json",
|
|
376
375
|
requestType: "json",
|
|
377
376
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -414,7 +413,7 @@ class Mirror {
|
|
|
414
413
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
414
|
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, "mirror"),
|
|
416
415
|
method: "DELETE",
|
|
417
|
-
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
|
|
416
|
+
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),
|
|
418
417
|
contentType: "application/json",
|
|
419
418
|
requestType: "json",
|
|
420
419
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -457,7 +456,7 @@ class Mirror {
|
|
|
457
456
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
458
457
|
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, "mirror"),
|
|
459
458
|
method: "PATCH",
|
|
460
|
-
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
|
|
459
|
+
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),
|
|
461
460
|
contentType: "application/json",
|
|
462
461
|
requestType: "json",
|
|
463
462
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -488,114 +487,6 @@ class Mirror {
|
|
|
488
487
|
}
|
|
489
488
|
});
|
|
490
489
|
}
|
|
491
|
-
/**
|
|
492
|
-
* @param {Chrt.EmailReq} request
|
|
493
|
-
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
494
|
-
*
|
|
495
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
496
|
-
*
|
|
497
|
-
* @example
|
|
498
|
-
* await client.mirror.postOrderCompletedEmail({
|
|
499
|
-
* to: ["to"]
|
|
500
|
-
* })
|
|
501
|
-
*/
|
|
502
|
-
postOrderCompletedEmail(request, requestOptions) {
|
|
503
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
504
|
-
var _a, _b, _c;
|
|
505
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
506
|
-
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, "order_completed_email"),
|
|
507
|
-
method: "POST",
|
|
508
|
-
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", "User-Agent": "@chrt-inc/typescript-sdk/0.0.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
509
|
-
contentType: "application/json",
|
|
510
|
-
requestType: "json",
|
|
511
|
-
body: request,
|
|
512
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
513
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
514
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
515
|
-
});
|
|
516
|
-
if (_response.ok) {
|
|
517
|
-
return _response.body;
|
|
518
|
-
}
|
|
519
|
-
if (_response.error.reason === "status-code") {
|
|
520
|
-
switch (_response.error.statusCode) {
|
|
521
|
-
case 422:
|
|
522
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body);
|
|
523
|
-
default:
|
|
524
|
-
throw new errors.ChrtError({
|
|
525
|
-
statusCode: _response.error.statusCode,
|
|
526
|
-
body: _response.error.body,
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
switch (_response.error.reason) {
|
|
531
|
-
case "non-json":
|
|
532
|
-
throw new errors.ChrtError({
|
|
533
|
-
statusCode: _response.error.statusCode,
|
|
534
|
-
body: _response.error.rawBody,
|
|
535
|
-
});
|
|
536
|
-
case "timeout":
|
|
537
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /order_completed_email.");
|
|
538
|
-
case "unknown":
|
|
539
|
-
throw new errors.ChrtError({
|
|
540
|
-
message: _response.error.errorMessage,
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* @param {Chrt.EmailReq} request
|
|
547
|
-
* @param {Mirror.RequestOptions} requestOptions - Request-specific configuration.
|
|
548
|
-
*
|
|
549
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
550
|
-
*
|
|
551
|
-
* @example
|
|
552
|
-
* await client.mirror.postOrderInProgressEmail({
|
|
553
|
-
* to: ["to"]
|
|
554
|
-
* })
|
|
555
|
-
*/
|
|
556
|
-
postOrderInProgressEmail(request, requestOptions) {
|
|
557
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
558
|
-
var _a, _b, _c;
|
|
559
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
560
|
-
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, "order_in_progress_email"),
|
|
561
|
-
method: "POST",
|
|
562
|
-
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", "User-Agent": "@chrt-inc/typescript-sdk/0.0.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
563
|
-
contentType: "application/json",
|
|
564
|
-
requestType: "json",
|
|
565
|
-
body: request,
|
|
566
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
567
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
568
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
569
|
-
});
|
|
570
|
-
if (_response.ok) {
|
|
571
|
-
return _response.body;
|
|
572
|
-
}
|
|
573
|
-
if (_response.error.reason === "status-code") {
|
|
574
|
-
switch (_response.error.statusCode) {
|
|
575
|
-
case 422:
|
|
576
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body);
|
|
577
|
-
default:
|
|
578
|
-
throw new errors.ChrtError({
|
|
579
|
-
statusCode: _response.error.statusCode,
|
|
580
|
-
body: _response.error.body,
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
switch (_response.error.reason) {
|
|
585
|
-
case "non-json":
|
|
586
|
-
throw new errors.ChrtError({
|
|
587
|
-
statusCode: _response.error.statusCode,
|
|
588
|
-
body: _response.error.rawBody,
|
|
589
|
-
});
|
|
590
|
-
case "timeout":
|
|
591
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /order_in_progress_email.");
|
|
592
|
-
case "unknown":
|
|
593
|
-
throw new errors.ChrtError({
|
|
594
|
-
message: _response.error.errorMessage,
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
490
|
_getAuthorizationHeader() {
|
|
600
491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
601
492
|
const bearer = yield core.Supplier.get(this._options.token);
|