@chrt-inc/typescript-sdk 0.0.2
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 +79 -0
- package/Client.js +97 -0
- package/README.md +151 -0
- package/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/api/errors/UnprocessableEntityError.js +51 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +17 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/resources/dev/client/Client.d.ts +72 -0
- package/api/resources/dev/client/Client.js +299 -0
- package/api/resources/dev/client/index.d.ts +1 -0
- package/api/resources/dev/client/index.js +17 -0
- package/api/resources/dev/client/requests/TemplateReq.d.ts +16 -0
- package/api/resources/dev/client/requests/TemplateReq.js +5 -0
- package/api/resources/dev/client/requests/index.d.ts +1 -0
- package/api/resources/dev/client/requests/index.js +2 -0
- package/api/resources/dev/index.d.ts +1 -0
- package/api/resources/dev/index.js +17 -0
- package/api/resources/directory/client/Client.d.ts +42 -0
- package/api/resources/directory/client/Client.js +125 -0
- package/api/resources/directory/client/index.d.ts +1 -0
- package/api/resources/directory/client/index.js +17 -0
- package/api/resources/directory/client/requests/DbQueryParams.d.ts +12 -0
- package/api/resources/directory/client/requests/DbQueryParams.js +5 -0
- package/api/resources/directory/client/requests/index.d.ts +1 -0
- package/api/resources/directory/client/requests/index.js +2 -0
- package/api/resources/directory/index.d.ts +1 -0
- package/api/resources/directory/index.js +17 -0
- package/api/resources/index.d.ts +32 -0
- package/api/resources/index.js +71 -0
- package/api/resources/mirror/client/Client.d.ts +124 -0
- package/api/resources/mirror/client/Client.js +609 -0
- package/api/resources/mirror/client/index.d.ts +1 -0
- package/api/resources/mirror/client/index.js +2 -0
- package/api/resources/mirror/index.d.ts +1 -0
- package/api/resources/mirror/index.js +17 -0
- package/api/resources/oortConnections/client/Client.d.ts +58 -0
- package/api/resources/oortConnections/client/Client.js +213 -0
- package/api/resources/oortConnections/client/index.d.ts +1 -0
- package/api/resources/oortConnections/client/index.js +17 -0
- package/api/resources/oortConnections/client/requests/CreateConnectionReq.d.ts +12 -0
- package/api/resources/oortConnections/client/requests/CreateConnectionReq.js +5 -0
- package/api/resources/oortConnections/client/requests/index.d.ts +1 -0
- package/api/resources/oortConnections/client/requests/index.js +2 -0
- package/api/resources/oortConnections/index.d.ts +1 -0
- package/api/resources/oortConnections/index.js +17 -0
- package/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +88 -0
- package/api/resources/oortCourierPayDriverRateSheets/client/Client.js +284 -0
- package/api/resources/oortCourierPayDriverRateSheets/client/index.d.ts +1 -0
- package/api/resources/oortCourierPayDriverRateSheets/client/index.js +17 -0
- package/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +50 -0
- package/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.js +5 -0
- package/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +1 -0
- package/api/resources/oortCourierPayDriverRateSheets/client/requests/index.js +2 -0
- package/api/resources/oortCourierPayDriverRateSheets/index.d.ts +1 -0
- package/api/resources/oortCourierPayDriverRateSheets/index.js +17 -0
- package/api/resources/oortDrivers/client/Client.d.ts +136 -0
- package/api/resources/oortDrivers/client/Client.js +535 -0
- package/api/resources/oortDrivers/client/index.d.ts +1 -0
- package/api/resources/oortDrivers/client/index.js +17 -0
- package/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +17 -0
- package/api/resources/oortDrivers/client/requests/DriverCreateReq.js +5 -0
- package/api/resources/oortDrivers/client/requests/DriverLastSeenReq.d.ts +15 -0
- package/api/resources/oortDrivers/client/requests/DriverLastSeenReq.js +5 -0
- package/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +14 -0
- package/api/resources/oortDrivers/client/requests/SetDriverActivationReq.js +5 -0
- package/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +18 -0
- package/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.js +5 -0
- package/api/resources/oortDrivers/client/requests/index.d.ts +4 -0
- package/api/resources/oortDrivers/client/requests/index.js +2 -0
- package/api/resources/oortDrivers/index.d.ts +1 -0
- package/api/resources/oortDrivers/index.js +17 -0
- package/api/resources/oortMilestones/client/Client.d.ts +91 -0
- package/api/resources/oortMilestones/client/Client.js +346 -0
- package/api/resources/oortMilestones/client/index.d.ts +1 -0
- package/api/resources/oortMilestones/client/index.js +17 -0
- package/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.ts +10 -0
- package/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.js +5 -0
- package/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +16 -0
- package/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.js +5 -0
- package/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +14 -0
- package/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.js +5 -0
- package/api/resources/oortMilestones/client/requests/index.d.ts +3 -0
- package/api/resources/oortMilestones/client/requests/index.js +2 -0
- package/api/resources/oortMilestones/index.d.ts +1 -0
- package/api/resources/oortMilestones/index.js +17 -0
- package/api/resources/oortNotificationPreferences/client/Client.d.ts +49 -0
- package/api/resources/oortNotificationPreferences/client/Client.js +168 -0
- package/api/resources/oortNotificationPreferences/client/index.d.ts +1 -0
- package/api/resources/oortNotificationPreferences/client/index.js +17 -0
- package/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.d.ts +18 -0
- package/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.js +5 -0
- package/api/resources/oortNotificationPreferences/client/requests/index.d.ts +1 -0
- package/api/resources/oortNotificationPreferences/client/requests/index.js +2 -0
- package/api/resources/oortNotificationPreferences/index.d.ts +1 -0
- package/api/resources/oortNotificationPreferences/index.js +17 -0
- package/api/resources/oortOrders/client/Client.d.ts +119 -0
- package/api/resources/oortOrders/client/Client.js +433 -0
- package/api/resources/oortOrders/client/index.d.ts +1 -0
- package/api/resources/oortOrders/client/index.js +17 -0
- package/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +43 -0
- package/api/resources/oortOrders/client/requests/CreateOrderReq.js +5 -0
- package/api/resources/oortOrders/client/requests/index.d.ts +1 -0
- package/api/resources/oortOrders/client/requests/index.js +2 -0
- package/api/resources/oortOrders/index.d.ts +1 -0
- package/api/resources/oortOrders/index.js +17 -0
- package/api/resources/oortOrgConnectionInfos/client/Client.d.ts +102 -0
- package/api/resources/oortOrgConnectionInfos/client/Client.js +383 -0
- package/api/resources/oortOrgConnectionInfos/client/index.d.ts +1 -0
- package/api/resources/oortOrgConnectionInfos/client/index.js +17 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +24 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js +5 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.d.ts +18 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.js +5 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +24 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js +5 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +20 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js +5 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +4 -0
- package/api/resources/oortOrgConnectionInfos/client/requests/index.js +2 -0
- package/api/resources/oortOrgConnectionInfos/index.d.ts +1 -0
- package/api/resources/oortOrgConnectionInfos/index.js +17 -0
- package/api/resources/oortOrgProfiles/client/Client.d.ts +74 -0
- package/api/resources/oortOrgProfiles/client/Client.js +279 -0
- package/api/resources/oortOrgProfiles/client/index.d.ts +1 -0
- package/api/resources/oortOrgProfiles/client/index.js +17 -0
- package/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +18 -0
- package/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.js +5 -0
- package/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.d.ts +12 -0
- package/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.js +5 -0
- package/api/resources/oortOrgProfiles/client/requests/index.d.ts +2 -0
- package/api/resources/oortOrgProfiles/client/requests/index.js +2 -0
- package/api/resources/oortOrgProfiles/index.d.ts +1 -0
- package/api/resources/oortOrgProfiles/index.js +17 -0
- package/api/resources/oortShipperUserInfo/client/Client.d.ts +73 -0
- package/api/resources/oortShipperUserInfo/client/Client.js +275 -0
- package/api/resources/oortShipperUserInfo/client/index.d.ts +1 -0
- package/api/resources/oortShipperUserInfo/client/index.js +17 -0
- package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.d.ts +24 -0
- package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.js +5 -0
- package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.d.ts +21 -0
- package/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.js +5 -0
- package/api/resources/oortShipperUserInfo/client/requests/index.d.ts +2 -0
- package/api/resources/oortShipperUserInfo/client/requests/index.js +2 -0
- package/api/resources/oortShipperUserInfo/index.d.ts +1 -0
- package/api/resources/oortShipperUserInfo/index.js +17 -0
- package/api/resources/oortTaskGroups/client/Client.d.ts +118 -0
- package/api/resources/oortTaskGroups/client/Client.js +479 -0
- package/api/resources/oortTaskGroups/client/index.d.ts +1 -0
- package/api/resources/oortTaskGroups/client/index.js +17 -0
- package/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +14 -0
- package/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.js +5 -0
- package/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts +14 -0
- package/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.js +5 -0
- package/api/resources/oortTaskGroups/client/requests/index.d.ts +2 -0
- package/api/resources/oortTaskGroups/client/requests/index.js +2 -0
- package/api/resources/oortTaskGroups/index.d.ts +1 -0
- package/api/resources/oortTaskGroups/index.js +17 -0
- package/api/resources/orgs/client/Client.d.ts +106 -0
- package/api/resources/orgs/client/Client.js +421 -0
- package/api/resources/orgs/client/index.d.ts +1 -0
- package/api/resources/orgs/client/index.js +17 -0
- package/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +14 -0
- package/api/resources/orgs/client/requests/CreateOrgPublicDataReq.js +5 -0
- package/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +11 -0
- package/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.js +5 -0
- package/api/resources/orgs/client/requests/index.d.ts +2 -0
- package/api/resources/orgs/client/requests/index.js +2 -0
- package/api/resources/orgs/index.d.ts +1 -0
- package/api/resources/orgs/index.js +17 -0
- package/api/resources/payments/client/Client.d.ts +64 -0
- package/api/resources/payments/client/Client.js +219 -0
- package/api/resources/payments/client/index.d.ts +1 -0
- package/api/resources/payments/client/index.js +17 -0
- package/api/resources/payments/client/requests/CreateCheckoutSessionReq2.d.ts +13 -0
- package/api/resources/payments/client/requests/CreateCheckoutSessionReq2.js +5 -0
- package/api/resources/payments/client/requests/index.d.ts +1 -0
- package/api/resources/payments/client/requests/index.js +2 -0
- package/api/resources/payments/index.d.ts +1 -0
- package/api/resources/payments/index.js +17 -0
- package/api/resources/root/client/Client.d.ts +85 -0
- package/api/resources/root/client/Client.js +377 -0
- package/api/resources/root/client/index.d.ts +1 -0
- package/api/resources/root/client/index.js +2 -0
- package/api/resources/root/index.d.ts +2 -0
- package/api/resources/root/index.js +18 -0
- package/api/resources/root/types/PydanticResponse.d.ts +8 -0
- package/api/resources/root/types/PydanticResponse.js +5 -0
- package/api/resources/root/types/index.d.ts +1 -0
- package/api/resources/root/types/index.js +17 -0
- package/api/resources/users/client/Client.d.ts +37 -0
- package/api/resources/users/client/Client.js +113 -0
- package/api/resources/users/client/index.d.ts +1 -0
- package/api/resources/users/client/index.js +2 -0
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +17 -0
- package/api/types/Action.d.ts +5 -0
- package/api/types/Action.js +5 -0
- package/api/types/BaseModel.d.ts +5 -0
- package/api/types/BaseModel.js +5 -0
- package/api/types/Cargo1.d.ts +16 -0
- package/api/types/Cargo1.js +5 -0
- package/api/types/CargoClientCreate1.d.ts +13 -0
- package/api/types/CargoClientCreate1.js +5 -0
- package/api/types/CargoTypeEnum1.d.ts +25 -0
- package/api/types/CargoTypeEnum1.js +27 -0
- package/api/types/Coordinates.d.ts +5 -0
- package/api/types/Coordinates.js +5 -0
- package/api/types/CourierOrgConnectionInfo1.d.ts +22 -0
- package/api/types/CourierOrgConnectionInfo1.js +5 -0
- package/api/types/CourierOrgProfile3.d.ts +12 -0
- package/api/types/CourierOrgProfile3.js +5 -0
- package/api/types/CourierPayDriverRateSheet1.d.ts +31 -0
- package/api/types/CourierPayDriverRateSheet1.js +5 -0
- package/api/types/CreateCheckoutSessionRes2.d.ts +6 -0
- package/api/types/CreateCheckoutSessionRes2.js +5 -0
- package/api/types/CreateOrderRes.d.ts +7 -0
- package/api/types/CreateOrderRes.js +5 -0
- package/api/types/DecodedJwtWithOrgAndUserId.d.ts +28 -0
- package/api/types/DecodedJwtWithOrgAndUserId.js +5 -0
- package/api/types/Driver1.d.ts +23 -0
- package/api/types/Driver1.js +5 -0
- package/api/types/DriverStatusEnum.d.ts +9 -0
- package/api/types/DriverStatusEnum.js +11 -0
- package/api/types/EmailReq.d.ts +6 -0
- package/api/types/EmailReq.js +5 -0
- package/api/types/EmailRes.d.ts +7 -0
- package/api/types/EmailRes.js +5 -0
- package/api/types/Expense1.d.ts +13 -0
- package/api/types/Expense1.js +5 -0
- package/api/types/Feature.d.ts +14 -0
- package/api/types/Feature.js +5 -0
- package/api/types/FeatureInputGeometry.d.ts +28 -0
- package/api/types/FeatureInputGeometry.js +5 -0
- package/api/types/FeatureOutputGeometry.d.ts +28 -0
- package/api/types/FeatureOutputGeometry.js +5 -0
- package/api/types/GeometryCollection.d.ts +11 -0
- package/api/types/GeometryCollection.js +5 -0
- package/api/types/GeometryCollectionInputGeometriesItem.d.ts +28 -0
- package/api/types/GeometryCollectionInputGeometriesItem.js +5 -0
- package/api/types/GeometryCollectionOutputGeometriesItem.d.ts +28 -0
- package/api/types/GeometryCollectionOutputGeometriesItem.js +5 -0
- package/api/types/GetOrderFullRes.d.ts +11 -0
- package/api/types/GetOrderFullRes.js +5 -0
- package/api/types/GetOrderRes.d.ts +7 -0
- package/api/types/GetOrderRes.js +5 -0
- package/api/types/HttpValidationError.d.ts +7 -0
- package/api/types/HttpValidationError.js +5 -0
- package/api/types/Id.d.ts +4 -0
- package/api/types/Id.js +5 -0
- package/api/types/Incident1.d.ts +7 -0
- package/api/types/Incident1.js +5 -0
- package/api/types/IncidentEnum1.d.ts +12 -0
- package/api/types/IncidentEnum1.js +14 -0
- package/api/types/Insurance1.d.ts +7 -0
- package/api/types/Insurance1.js +5 -0
- package/api/types/LineItem1.d.ts +11 -0
- package/api/types/LineItem1.js +5 -0
- package/api/types/LineItemEnum1.d.ts +28 -0
- package/api/types/LineItemEnum1.js +30 -0
- package/api/types/LineString.d.ts +11 -0
- package/api/types/LineString.js +5 -0
- package/api/types/LineStringCoordinatesItem.d.ts +5 -0
- package/api/types/LineStringCoordinatesItem.js +5 -0
- package/api/types/Milestone1.d.ts +27 -0
- package/api/types/Milestone1.js +5 -0
- package/api/types/MilestoneClientCreate1.d.ts +9 -0
- package/api/types/MilestoneClientCreate1.js +5 -0
- package/api/types/MilestoneTypeEnum1.d.ts +14 -0
- package/api/types/MilestoneTypeEnum1.js +16 -0
- package/api/types/MultiLineString.d.ts +11 -0
- package/api/types/MultiLineString.js +5 -0
- package/api/types/MultiLineStringCoordinatesItemItem.d.ts +5 -0
- package/api/types/MultiLineStringCoordinatesItemItem.js +5 -0
- package/api/types/MultiPoint.d.ts +11 -0
- package/api/types/MultiPoint.js +5 -0
- package/api/types/MultiPointCoordinatesItem.d.ts +5 -0
- package/api/types/MultiPointCoordinatesItem.js +5 -0
- package/api/types/MultiPolygon.d.ts +11 -0
- package/api/types/MultiPolygon.js +5 -0
- package/api/types/MultiPolygonCoordinatesItemItemItem.d.ts +5 -0
- package/api/types/MultiPolygonCoordinatesItemItemItem.js +5 -0
- package/api/types/MultipleTaskGroupsDetailsResponse.d.ts +7 -0
- package/api/types/MultipleTaskGroupsDetailsResponse.js +5 -0
- package/api/types/MultipleTaskGroupsWithTasks.d.ts +7 -0
- package/api/types/MultipleTaskGroupsWithTasks.js +5 -0
- package/api/types/NotificationChannelEnum.d.ts +10 -0
- package/api/types/NotificationChannelEnum.js +12 -0
- package/api/types/NotificationPreferences1.d.ts +18 -0
- package/api/types/NotificationPreferences1.js +5 -0
- package/api/types/ObcNfoTaskActionEnum.d.ts +38 -0
- package/api/types/ObcNfoTaskActionEnum.js +40 -0
- package/api/types/Order1.d.ts +28 -0
- package/api/types/Order1.js +5 -0
- package/api/types/OrderClientCreate1.d.ts +6 -0
- package/api/types/OrderClientCreate1.js +5 -0
- package/api/types/OrderCreatedByTypeEnum.d.ts +9 -0
- package/api/types/OrderCreatedByTypeEnum.js +11 -0
- package/api/types/OrderDispatchTypeEnum.d.ts +9 -0
- package/api/types/OrderDispatchTypeEnum.js +11 -0
- package/api/types/OrderStatusEnum1.d.ts +10 -0
- package/api/types/OrderStatusEnum1.js +12 -0
- package/api/types/OrgMemberDetails.d.ts +11 -0
- package/api/types/OrgMemberDetails.js +5 -0
- package/api/types/OrgMembersAndDrivers.d.ts +8 -0
- package/api/types/OrgMembersAndDrivers.js +5 -0
- package/api/types/OrgPublicData2.d.ts +11 -0
- package/api/types/OrgPublicData2.js +5 -0
- package/api/types/PayablesInvoice1.d.ts +22 -0
- package/api/types/PayablesInvoice1.js +5 -0
- package/api/types/Point.d.ts +11 -0
- package/api/types/Point.js +5 -0
- package/api/types/Polygon.d.ts +11 -0
- package/api/types/Polygon.js +5 -0
- package/api/types/PolygonCoordinatesItemItem.d.ts +5 -0
- package/api/types/PolygonCoordinatesItemItem.js +5 -0
- package/api/types/Position2D.d.ts +4 -0
- package/api/types/Position2D.js +5 -0
- package/api/types/Position3D.d.ts +4 -0
- package/api/types/Position3D.js +5 -0
- package/api/types/PriceNameEnum.d.ts +9 -0
- package/api/types/PriceNameEnum.js +11 -0
- package/api/types/Properties.d.ts +5 -0
- package/api/types/Properties.js +5 -0
- package/api/types/ReceivablesInvoice1.d.ts +22 -0
- package/api/types/ReceivablesInvoice1.js +5 -0
- package/api/types/RouteTypeEnum1.d.ts +8 -0
- package/api/types/RouteTypeEnum1.js +10 -0
- package/api/types/Shipper2.d.ts +20 -0
- package/api/types/Shipper2.js +5 -0
- package/api/types/ShipperCourierConnection1.d.ts +13 -0
- package/api/types/ShipperCourierConnection1.js +5 -0
- package/api/types/ShipperOrgConnectionInfo1.d.ts +22 -0
- package/api/types/ShipperOrgConnectionInfo1.js +5 -0
- package/api/types/ShipperUserInfo1.d.ts +23 -0
- package/api/types/ShipperUserInfo1.js +5 -0
- package/api/types/Status.d.ts +13 -0
- package/api/types/Status.js +15 -0
- package/api/types/StreetAddress1.d.ts +18 -0
- package/api/types/StreetAddress1.js +5 -0
- package/api/types/StripeConnectInvoice1.d.ts +20 -0
- package/api/types/StripeConnectInvoice1.js +5 -0
- package/api/types/Task1.d.ts +29 -0
- package/api/types/Task1.js +5 -0
- package/api/types/TaskActionEnum1.d.ts +14 -0
- package/api/types/TaskActionEnum1.js +16 -0
- package/api/types/TaskClientCreate1.d.ts +15 -0
- package/api/types/TaskClientCreate1.js +5 -0
- package/api/types/TaskCreateBundle.d.ts +13 -0
- package/api/types/TaskCreateBundle.js +5 -0
- package/api/types/TaskGroup1.d.ts +24 -0
- package/api/types/TaskGroup1.js +5 -0
- package/api/types/TaskGroupDetailsResponse.d.ts +8 -0
- package/api/types/TaskGroupDetailsResponse.js +5 -0
- package/api/types/TaskGroupStatusEnum1.d.ts +9 -0
- package/api/types/TaskGroupStatusEnum1.js +11 -0
- package/api/types/TaskGroupWithDetails.d.ts +8 -0
- package/api/types/TaskGroupWithDetails.js +5 -0
- package/api/types/TaskGroupWithTasks.d.ts +8 -0
- package/api/types/TaskGroupWithTasks.js +5 -0
- package/api/types/TaskWithDetails.d.ts +9 -0
- package/api/types/TaskWithDetails.js +5 -0
- package/api/types/TemplateRes.d.ts +8 -0
- package/api/types/TemplateRes.js +5 -0
- package/api/types/Tracker1.d.ts +7 -0
- package/api/types/Tracker1.js +5 -0
- package/api/types/TrackerSession1.d.ts +7 -0
- package/api/types/TrackerSession1.js +5 -0
- package/api/types/TransportTypeEnum.d.ts +11 -0
- package/api/types/TransportTypeEnum.js +13 -0
- package/api/types/UpdateTaskGroupRes.d.ts +6 -0
- package/api/types/UpdateTaskGroupRes.js +5 -0
- package/api/types/UserPublicData5.d.ts +15 -0
- package/api/types/UserPublicData5.js +5 -0
- package/api/types/ValidationError.d.ts +9 -0
- package/api/types/ValidationError.js +5 -0
- package/api/types/ValidationErrorLocItem.d.ts +4 -0
- package/api/types/ValidationErrorLocItem.js +5 -0
- package/api/types/Vehicle1.d.ts +7 -0
- package/api/types/Vehicle1.js +5 -0
- package/api/types/VehicleTypeEnum.d.ts +12 -0
- package/api/types/VehicleTypeEnum.js +14 -0
- package/api/types/index.d.ts +93 -0
- package/api/types/index.js +109 -0
- package/core/auth/BasicAuth.d.ts +8 -0
- package/core/auth/BasicAuth.js +26 -0
- package/core/auth/BearerToken.d.ts +5 -0
- package/core/auth/BearerToken.js +15 -0
- package/core/auth/index.d.ts +2 -0
- package/core/auth/index.js +7 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +39 -0
- package/core/fetcher/Fetcher.js +100 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +12 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +68 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +11 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +54 -0
- package/core/fetcher/index.d.ts +5 -0
- package/core/fetcher/index.js +9 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +40 -0
- package/core/fetcher/signals.d.ts +11 -0
- package/core/fetcher/signals.js +36 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/core/form-data-utils/FormDataWrapper.d.ts +60 -0
- package/core/form-data-utils/FormDataWrapper.js +188 -0
- package/core/form-data-utils/index.d.ts +1 -0
- package/core/form-data-utils/index.js +17 -0
- package/core/index.d.ts +4 -0
- package/core/index.js +20 -0
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +9 -0
- package/core/runtime/runtime.js +103 -0
- package/dist/Client.d.ts +79 -0
- package/dist/Client.js +97 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/errors/UnprocessableEntityError.js +51 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +17 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/dev/client/Client.d.ts +72 -0
- package/dist/api/resources/dev/client/Client.js +299 -0
- package/dist/api/resources/dev/client/index.d.ts +1 -0
- package/dist/api/resources/dev/client/index.js +17 -0
- package/dist/api/resources/dev/client/requests/TemplateReq.d.ts +16 -0
- package/dist/api/resources/dev/client/requests/TemplateReq.js +5 -0
- package/dist/api/resources/dev/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dev/client/requests/index.js +2 -0
- package/dist/api/resources/dev/index.d.ts +1 -0
- package/dist/api/resources/dev/index.js +17 -0
- package/dist/api/resources/directory/client/Client.d.ts +42 -0
- package/dist/api/resources/directory/client/Client.js +125 -0
- package/dist/api/resources/directory/client/index.d.ts +1 -0
- package/dist/api/resources/directory/client/index.js +17 -0
- package/dist/api/resources/directory/client/requests/DbQueryParams.d.ts +12 -0
- package/dist/api/resources/directory/client/requests/DbQueryParams.js +5 -0
- package/dist/api/resources/directory/client/requests/index.d.ts +1 -0
- package/dist/api/resources/directory/client/requests/index.js +2 -0
- package/dist/api/resources/directory/index.d.ts +1 -0
- package/dist/api/resources/directory/index.js +17 -0
- package/dist/api/resources/index.d.ts +32 -0
- package/dist/api/resources/index.js +71 -0
- package/dist/api/resources/mirror/client/Client.d.ts +124 -0
- package/dist/api/resources/mirror/client/Client.js +609 -0
- package/dist/api/resources/mirror/client/index.d.ts +1 -0
- package/dist/api/resources/mirror/client/index.js +2 -0
- package/dist/api/resources/mirror/index.d.ts +1 -0
- package/dist/api/resources/mirror/index.js +17 -0
- package/dist/api/resources/oortConnections/client/Client.d.ts +58 -0
- package/dist/api/resources/oortConnections/client/Client.js +213 -0
- package/dist/api/resources/oortConnections/client/index.d.ts +1 -0
- package/dist/api/resources/oortConnections/client/index.js +17 -0
- package/dist/api/resources/oortConnections/client/requests/CreateConnectionReq.d.ts +12 -0
- package/dist/api/resources/oortConnections/client/requests/CreateConnectionReq.js +5 -0
- package/dist/api/resources/oortConnections/client/requests/index.d.ts +1 -0
- package/dist/api/resources/oortConnections/client/requests/index.js +2 -0
- package/dist/api/resources/oortConnections/index.d.ts +1 -0
- package/dist/api/resources/oortConnections/index.js +17 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/client/Client.d.ts +88 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/client/Client.js +284 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/client/index.d.ts +1 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/client/index.js +17 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +50 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.js +5 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/client/requests/index.js +2 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/index.d.ts +1 -0
- package/dist/api/resources/oortCourierPayDriverRateSheets/index.js +17 -0
- package/dist/api/resources/oortDrivers/client/Client.d.ts +136 -0
- package/dist/api/resources/oortDrivers/client/Client.js +535 -0
- package/dist/api/resources/oortDrivers/client/index.d.ts +1 -0
- package/dist/api/resources/oortDrivers/client/index.js +17 -0
- package/dist/api/resources/oortDrivers/client/requests/DriverCreateReq.d.ts +17 -0
- package/dist/api/resources/oortDrivers/client/requests/DriverCreateReq.js +5 -0
- package/dist/api/resources/oortDrivers/client/requests/DriverLastSeenReq.d.ts +15 -0
- package/dist/api/resources/oortDrivers/client/requests/DriverLastSeenReq.js +5 -0
- package/dist/api/resources/oortDrivers/client/requests/SetDriverActivationReq.d.ts +14 -0
- package/dist/api/resources/oortDrivers/client/requests/SetDriverActivationReq.js +5 -0
- package/dist/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.d.ts +18 -0
- package/dist/api/resources/oortDrivers/client/requests/UpdateDriverDetailsReq.js +5 -0
- package/dist/api/resources/oortDrivers/client/requests/index.d.ts +4 -0
- package/dist/api/resources/oortDrivers/client/requests/index.js +2 -0
- package/dist/api/resources/oortDrivers/index.d.ts +1 -0
- package/dist/api/resources/oortDrivers/index.js +17 -0
- package/dist/api/resources/oortMilestones/client/Client.d.ts +91 -0
- package/dist/api/resources/oortMilestones/client/Client.js +346 -0
- package/dist/api/resources/oortMilestones/client/index.d.ts +1 -0
- package/dist/api/resources/oortMilestones/client/index.js +17 -0
- package/dist/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.d.ts +10 -0
- package/dist/api/resources/oortMilestones/client/requests/BodyPostOortMilestonesUploadImageOortMilestonesUploadImageMilestoneIdPost.js +5 -0
- package/dist/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.d.ts +16 -0
- package/dist/api/resources/oortMilestones/client/requests/MilestoneAddToTaskReq.js +5 -0
- package/dist/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.d.ts +14 -0
- package/dist/api/resources/oortMilestones/client/requests/MilestoneUpdateReq.js +5 -0
- package/dist/api/resources/oortMilestones/client/requests/index.d.ts +3 -0
- package/dist/api/resources/oortMilestones/client/requests/index.js +2 -0
- package/dist/api/resources/oortMilestones/index.d.ts +1 -0
- package/dist/api/resources/oortMilestones/index.js +17 -0
- package/dist/api/resources/oortNotificationPreferences/client/Client.d.ts +49 -0
- package/dist/api/resources/oortNotificationPreferences/client/Client.js +168 -0
- package/dist/api/resources/oortNotificationPreferences/client/index.d.ts +1 -0
- package/dist/api/resources/oortNotificationPreferences/client/index.js +17 -0
- package/dist/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.d.ts +18 -0
- package/dist/api/resources/oortNotificationPreferences/client/requests/NotificationPreferencesClientCreate1.js +5 -0
- package/dist/api/resources/oortNotificationPreferences/client/requests/index.d.ts +1 -0
- package/dist/api/resources/oortNotificationPreferences/client/requests/index.js +2 -0
- package/dist/api/resources/oortNotificationPreferences/index.d.ts +1 -0
- package/dist/api/resources/oortNotificationPreferences/index.js +17 -0
- package/dist/api/resources/oortOrders/client/Client.d.ts +119 -0
- package/dist/api/resources/oortOrders/client/Client.js +433 -0
- package/dist/api/resources/oortOrders/client/index.d.ts +1 -0
- package/dist/api/resources/oortOrders/client/index.js +17 -0
- package/dist/api/resources/oortOrders/client/requests/CreateOrderReq.d.ts +43 -0
- package/dist/api/resources/oortOrders/client/requests/CreateOrderReq.js +5 -0
- package/dist/api/resources/oortOrders/client/requests/index.d.ts +1 -0
- package/dist/api/resources/oortOrders/client/requests/index.js +2 -0
- package/dist/api/resources/oortOrders/index.d.ts +1 -0
- package/dist/api/resources/oortOrders/index.js +17 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/Client.d.ts +102 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/Client.js +383 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/index.d.ts +1 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/index.js +17 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +24 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoClientCreate1.js +5 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.d.ts +18 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/CourierOrgConnectionInfoUpdate.js +5 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +24 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientCreate1.js +5 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +20 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/ShipperOrgConnectionInfoClientUpdate1.js +5 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/index.d.ts +4 -0
- package/dist/api/resources/oortOrgConnectionInfos/client/requests/index.js +2 -0
- package/dist/api/resources/oortOrgConnectionInfos/index.d.ts +1 -0
- package/dist/api/resources/oortOrgConnectionInfos/index.js +17 -0
- package/dist/api/resources/oortOrgProfiles/client/Client.d.ts +74 -0
- package/dist/api/resources/oortOrgProfiles/client/Client.js +279 -0
- package/dist/api/resources/oortOrgProfiles/client/index.d.ts +1 -0
- package/dist/api/resources/oortOrgProfiles/client/index.js +17 -0
- package/dist/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.d.ts +18 -0
- package/dist/api/resources/oortOrgProfiles/client/requests/CourierOrgProfileClientCreate3.js +5 -0
- package/dist/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.d.ts +12 -0
- package/dist/api/resources/oortOrgProfiles/client/requests/GetAvatarRequest.js +5 -0
- package/dist/api/resources/oortOrgProfiles/client/requests/index.d.ts +2 -0
- package/dist/api/resources/oortOrgProfiles/client/requests/index.js +2 -0
- package/dist/api/resources/oortOrgProfiles/index.d.ts +1 -0
- package/dist/api/resources/oortOrgProfiles/index.js +17 -0
- package/dist/api/resources/oortShipperUserInfo/client/Client.d.ts +73 -0
- package/dist/api/resources/oortShipperUserInfo/client/Client.js +275 -0
- package/dist/api/resources/oortShipperUserInfo/client/index.d.ts +1 -0
- package/dist/api/resources/oortShipperUserInfo/client/index.js +17 -0
- package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.d.ts +24 -0
- package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientCreate1.js +5 -0
- package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.d.ts +21 -0
- package/dist/api/resources/oortShipperUserInfo/client/requests/ShipperUserInfoClientUpdate1.js +5 -0
- package/dist/api/resources/oortShipperUserInfo/client/requests/index.d.ts +2 -0
- package/dist/api/resources/oortShipperUserInfo/client/requests/index.js +2 -0
- package/dist/api/resources/oortShipperUserInfo/index.d.ts +1 -0
- package/dist/api/resources/oortShipperUserInfo/index.js +17 -0
- package/dist/api/resources/oortTaskGroups/client/Client.d.ts +118 -0
- package/dist/api/resources/oortTaskGroups/client/Client.js +479 -0
- package/dist/api/resources/oortTaskGroups/client/index.d.ts +1 -0
- package/dist/api/resources/oortTaskGroups/client/index.js +17 -0
- package/dist/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.d.ts +14 -0
- package/dist/api/resources/oortTaskGroups/client/requests/SetTaskGroupPauseReq.js +5 -0
- package/dist/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.d.ts +14 -0
- package/dist/api/resources/oortTaskGroups/client/requests/UpdateTaskGroupReq.js +5 -0
- package/dist/api/resources/oortTaskGroups/client/requests/index.d.ts +2 -0
- package/dist/api/resources/oortTaskGroups/client/requests/index.js +2 -0
- package/dist/api/resources/oortTaskGroups/index.d.ts +1 -0
- package/dist/api/resources/oortTaskGroups/index.js +17 -0
- package/dist/api/resources/orgs/client/Client.d.ts +106 -0
- package/dist/api/resources/orgs/client/Client.js +421 -0
- package/dist/api/resources/orgs/client/index.d.ts +1 -0
- package/dist/api/resources/orgs/client/index.js +17 -0
- package/dist/api/resources/orgs/client/requests/CreateOrgPublicDataReq.d.ts +14 -0
- package/dist/api/resources/orgs/client/requests/CreateOrgPublicDataReq.js +5 -0
- package/dist/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +11 -0
- package/dist/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.js +5 -0
- package/dist/api/resources/orgs/client/requests/index.d.ts +2 -0
- package/dist/api/resources/orgs/client/requests/index.js +2 -0
- package/dist/api/resources/orgs/index.d.ts +1 -0
- package/dist/api/resources/orgs/index.js +17 -0
- package/dist/api/resources/payments/client/Client.d.ts +64 -0
- package/dist/api/resources/payments/client/Client.js +219 -0
- package/dist/api/resources/payments/client/index.d.ts +1 -0
- package/dist/api/resources/payments/client/index.js +17 -0
- package/dist/api/resources/payments/client/requests/CreateCheckoutSessionReq2.d.ts +13 -0
- package/dist/api/resources/payments/client/requests/CreateCheckoutSessionReq2.js +5 -0
- package/dist/api/resources/payments/client/requests/index.d.ts +1 -0
- package/dist/api/resources/payments/client/requests/index.js +2 -0
- package/dist/api/resources/payments/index.d.ts +1 -0
- package/dist/api/resources/payments/index.js +17 -0
- package/dist/api/resources/root/client/Client.d.ts +85 -0
- package/dist/api/resources/root/client/Client.js +377 -0
- package/dist/api/resources/root/client/index.d.ts +1 -0
- package/dist/api/resources/root/client/index.js +2 -0
- package/dist/api/resources/root/index.d.ts +2 -0
- package/dist/api/resources/root/index.js +18 -0
- package/dist/api/resources/root/types/PydanticResponse.d.ts +8 -0
- package/dist/api/resources/root/types/PydanticResponse.js +5 -0
- package/dist/api/resources/root/types/index.d.ts +1 -0
- package/dist/api/resources/root/types/index.js +17 -0
- package/dist/api/resources/users/client/Client.d.ts +37 -0
- package/dist/api/resources/users/client/Client.js +113 -0
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/index.js +2 -0
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +17 -0
- package/dist/api/types/Action.d.ts +5 -0
- package/dist/api/types/Action.js +5 -0
- package/dist/api/types/BaseModel.d.ts +5 -0
- package/dist/api/types/BaseModel.js +5 -0
- package/dist/api/types/Cargo1.d.ts +16 -0
- package/dist/api/types/Cargo1.js +5 -0
- package/dist/api/types/CargoClientCreate1.d.ts +13 -0
- package/dist/api/types/CargoClientCreate1.js +5 -0
- package/dist/api/types/CargoTypeEnum1.d.ts +25 -0
- package/dist/api/types/CargoTypeEnum1.js +27 -0
- package/dist/api/types/Coordinates.d.ts +5 -0
- package/dist/api/types/Coordinates.js +5 -0
- package/dist/api/types/CourierOrgConnectionInfo1.d.ts +22 -0
- package/dist/api/types/CourierOrgConnectionInfo1.js +5 -0
- package/dist/api/types/CourierOrgProfile3.d.ts +12 -0
- package/dist/api/types/CourierOrgProfile3.js +5 -0
- package/dist/api/types/CourierPayDriverRateSheet1.d.ts +31 -0
- package/dist/api/types/CourierPayDriverRateSheet1.js +5 -0
- package/dist/api/types/CreateCheckoutSessionRes2.d.ts +6 -0
- package/dist/api/types/CreateCheckoutSessionRes2.js +5 -0
- package/dist/api/types/CreateOrderRes.d.ts +7 -0
- package/dist/api/types/CreateOrderRes.js +5 -0
- package/dist/api/types/DecodedJwtWithOrgAndUserId.d.ts +28 -0
- package/dist/api/types/DecodedJwtWithOrgAndUserId.js +5 -0
- package/dist/api/types/Driver1.d.ts +23 -0
- package/dist/api/types/Driver1.js +5 -0
- package/dist/api/types/DriverStatusEnum.d.ts +9 -0
- package/dist/api/types/DriverStatusEnum.js +11 -0
- package/dist/api/types/EmailReq.d.ts +6 -0
- package/dist/api/types/EmailReq.js +5 -0
- package/dist/api/types/EmailRes.d.ts +7 -0
- package/dist/api/types/EmailRes.js +5 -0
- package/dist/api/types/Expense1.d.ts +13 -0
- package/dist/api/types/Expense1.js +5 -0
- package/dist/api/types/Feature.d.ts +14 -0
- package/dist/api/types/Feature.js +5 -0
- package/dist/api/types/FeatureInputGeometry.d.ts +28 -0
- package/dist/api/types/FeatureInputGeometry.js +5 -0
- package/dist/api/types/FeatureOutputGeometry.d.ts +28 -0
- package/dist/api/types/FeatureOutputGeometry.js +5 -0
- package/dist/api/types/GeometryCollection.d.ts +11 -0
- package/dist/api/types/GeometryCollection.js +5 -0
- package/dist/api/types/GeometryCollectionInputGeometriesItem.d.ts +28 -0
- package/dist/api/types/GeometryCollectionInputGeometriesItem.js +5 -0
- package/dist/api/types/GeometryCollectionOutputGeometriesItem.d.ts +28 -0
- package/dist/api/types/GeometryCollectionOutputGeometriesItem.js +5 -0
- package/dist/api/types/GetOrderFullRes.d.ts +11 -0
- package/dist/api/types/GetOrderFullRes.js +5 -0
- package/dist/api/types/GetOrderRes.d.ts +7 -0
- package/dist/api/types/GetOrderRes.js +5 -0
- package/dist/api/types/HttpValidationError.d.ts +7 -0
- package/dist/api/types/HttpValidationError.js +5 -0
- package/dist/api/types/Id.d.ts +4 -0
- package/dist/api/types/Id.js +5 -0
- package/dist/api/types/Incident1.d.ts +7 -0
- package/dist/api/types/Incident1.js +5 -0
- package/dist/api/types/IncidentEnum1.d.ts +12 -0
- package/dist/api/types/IncidentEnum1.js +14 -0
- package/dist/api/types/Insurance1.d.ts +7 -0
- package/dist/api/types/Insurance1.js +5 -0
- package/dist/api/types/LineItem1.d.ts +11 -0
- package/dist/api/types/LineItem1.js +5 -0
- package/dist/api/types/LineItemEnum1.d.ts +28 -0
- package/dist/api/types/LineItemEnum1.js +30 -0
- package/dist/api/types/LineString.d.ts +11 -0
- package/dist/api/types/LineString.js +5 -0
- package/dist/api/types/LineStringCoordinatesItem.d.ts +5 -0
- package/dist/api/types/LineStringCoordinatesItem.js +5 -0
- package/dist/api/types/Milestone1.d.ts +27 -0
- package/dist/api/types/Milestone1.js +5 -0
- package/dist/api/types/MilestoneClientCreate1.d.ts +9 -0
- package/dist/api/types/MilestoneClientCreate1.js +5 -0
- package/dist/api/types/MilestoneTypeEnum1.d.ts +14 -0
- package/dist/api/types/MilestoneTypeEnum1.js +16 -0
- package/dist/api/types/MultiLineString.d.ts +11 -0
- package/dist/api/types/MultiLineString.js +5 -0
- package/dist/api/types/MultiLineStringCoordinatesItemItem.d.ts +5 -0
- package/dist/api/types/MultiLineStringCoordinatesItemItem.js +5 -0
- package/dist/api/types/MultiPoint.d.ts +11 -0
- package/dist/api/types/MultiPoint.js +5 -0
- package/dist/api/types/MultiPointCoordinatesItem.d.ts +5 -0
- package/dist/api/types/MultiPointCoordinatesItem.js +5 -0
- package/dist/api/types/MultiPolygon.d.ts +11 -0
- package/dist/api/types/MultiPolygon.js +5 -0
- package/dist/api/types/MultiPolygonCoordinatesItemItemItem.d.ts +5 -0
- package/dist/api/types/MultiPolygonCoordinatesItemItemItem.js +5 -0
- package/dist/api/types/MultipleTaskGroupsDetailsResponse.d.ts +7 -0
- package/dist/api/types/MultipleTaskGroupsDetailsResponse.js +5 -0
- package/dist/api/types/MultipleTaskGroupsWithTasks.d.ts +7 -0
- package/dist/api/types/MultipleTaskGroupsWithTasks.js +5 -0
- package/dist/api/types/NotificationChannelEnum.d.ts +10 -0
- package/dist/api/types/NotificationChannelEnum.js +12 -0
- package/dist/api/types/NotificationPreferences1.d.ts +18 -0
- package/dist/api/types/NotificationPreferences1.js +5 -0
- package/dist/api/types/ObcNfoTaskActionEnum.d.ts +38 -0
- package/dist/api/types/ObcNfoTaskActionEnum.js +40 -0
- package/dist/api/types/Order1.d.ts +28 -0
- package/dist/api/types/Order1.js +5 -0
- package/dist/api/types/OrderClientCreate1.d.ts +6 -0
- package/dist/api/types/OrderClientCreate1.js +5 -0
- package/dist/api/types/OrderCreatedByTypeEnum.d.ts +9 -0
- package/dist/api/types/OrderCreatedByTypeEnum.js +11 -0
- package/dist/api/types/OrderDispatchTypeEnum.d.ts +9 -0
- package/dist/api/types/OrderDispatchTypeEnum.js +11 -0
- package/dist/api/types/OrderStatusEnum1.d.ts +10 -0
- package/dist/api/types/OrderStatusEnum1.js +12 -0
- package/dist/api/types/OrgMemberDetails.d.ts +11 -0
- package/dist/api/types/OrgMemberDetails.js +5 -0
- package/dist/api/types/OrgMembersAndDrivers.d.ts +8 -0
- package/dist/api/types/OrgMembersAndDrivers.js +5 -0
- package/dist/api/types/OrgPublicData2.d.ts +11 -0
- package/dist/api/types/OrgPublicData2.js +5 -0
- package/dist/api/types/PayablesInvoice1.d.ts +22 -0
- package/dist/api/types/PayablesInvoice1.js +5 -0
- package/dist/api/types/Point.d.ts +11 -0
- package/dist/api/types/Point.js +5 -0
- package/dist/api/types/Polygon.d.ts +11 -0
- package/dist/api/types/Polygon.js +5 -0
- package/dist/api/types/PolygonCoordinatesItemItem.d.ts +5 -0
- package/dist/api/types/PolygonCoordinatesItemItem.js +5 -0
- package/dist/api/types/Position2D.d.ts +4 -0
- package/dist/api/types/Position2D.js +5 -0
- package/dist/api/types/Position3D.d.ts +4 -0
- package/dist/api/types/Position3D.js +5 -0
- package/dist/api/types/PriceNameEnum.d.ts +9 -0
- package/dist/api/types/PriceNameEnum.js +11 -0
- package/dist/api/types/Properties.d.ts +5 -0
- package/dist/api/types/Properties.js +5 -0
- package/dist/api/types/ReceivablesInvoice1.d.ts +22 -0
- package/dist/api/types/ReceivablesInvoice1.js +5 -0
- package/dist/api/types/RouteTypeEnum1.d.ts +8 -0
- package/dist/api/types/RouteTypeEnum1.js +10 -0
- package/dist/api/types/Shipper2.d.ts +20 -0
- package/dist/api/types/Shipper2.js +5 -0
- package/dist/api/types/ShipperCourierConnection1.d.ts +13 -0
- package/dist/api/types/ShipperCourierConnection1.js +5 -0
- package/dist/api/types/ShipperOrgConnectionInfo1.d.ts +22 -0
- package/dist/api/types/ShipperOrgConnectionInfo1.js +5 -0
- package/dist/api/types/ShipperUserInfo1.d.ts +23 -0
- package/dist/api/types/ShipperUserInfo1.js +5 -0
- package/dist/api/types/Status.d.ts +13 -0
- package/dist/api/types/Status.js +15 -0
- package/dist/api/types/StreetAddress1.d.ts +18 -0
- package/dist/api/types/StreetAddress1.js +5 -0
- package/dist/api/types/StripeConnectInvoice1.d.ts +20 -0
- package/dist/api/types/StripeConnectInvoice1.js +5 -0
- package/dist/api/types/Task1.d.ts +29 -0
- package/dist/api/types/Task1.js +5 -0
- package/dist/api/types/TaskActionEnum1.d.ts +14 -0
- package/dist/api/types/TaskActionEnum1.js +16 -0
- package/dist/api/types/TaskClientCreate1.d.ts +15 -0
- package/dist/api/types/TaskClientCreate1.js +5 -0
- package/dist/api/types/TaskCreateBundle.d.ts +13 -0
- package/dist/api/types/TaskCreateBundle.js +5 -0
- package/dist/api/types/TaskGroup1.d.ts +24 -0
- package/dist/api/types/TaskGroup1.js +5 -0
- package/dist/api/types/TaskGroupDetailsResponse.d.ts +8 -0
- package/dist/api/types/TaskGroupDetailsResponse.js +5 -0
- package/dist/api/types/TaskGroupStatusEnum1.d.ts +9 -0
- package/dist/api/types/TaskGroupStatusEnum1.js +11 -0
- package/dist/api/types/TaskGroupWithDetails.d.ts +8 -0
- package/dist/api/types/TaskGroupWithDetails.js +5 -0
- package/dist/api/types/TaskGroupWithTasks.d.ts +8 -0
- package/dist/api/types/TaskGroupWithTasks.js +5 -0
- package/dist/api/types/TaskWithDetails.d.ts +9 -0
- package/dist/api/types/TaskWithDetails.js +5 -0
- package/dist/api/types/TemplateRes.d.ts +8 -0
- package/dist/api/types/TemplateRes.js +5 -0
- package/dist/api/types/Tracker1.d.ts +7 -0
- package/dist/api/types/Tracker1.js +5 -0
- package/dist/api/types/TrackerSession1.d.ts +7 -0
- package/dist/api/types/TrackerSession1.js +5 -0
- package/dist/api/types/TransportTypeEnum.d.ts +11 -0
- package/dist/api/types/TransportTypeEnum.js +13 -0
- package/dist/api/types/UpdateTaskGroupRes.d.ts +6 -0
- package/dist/api/types/UpdateTaskGroupRes.js +5 -0
- package/dist/api/types/UserPublicData5.d.ts +15 -0
- package/dist/api/types/UserPublicData5.js +5 -0
- package/dist/api/types/ValidationError.d.ts +9 -0
- package/dist/api/types/ValidationError.js +5 -0
- package/dist/api/types/ValidationErrorLocItem.d.ts +4 -0
- package/dist/api/types/ValidationErrorLocItem.js +5 -0
- package/dist/api/types/Vehicle1.d.ts +7 -0
- package/dist/api/types/Vehicle1.js +5 -0
- package/dist/api/types/VehicleTypeEnum.d.ts +12 -0
- package/dist/api/types/VehicleTypeEnum.js +14 -0
- package/dist/api/types/index.d.ts +93 -0
- package/dist/api/types/index.js +109 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +26 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +15 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/index.js +7 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +39 -0
- package/dist/core/fetcher/Fetcher.js +100 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +12 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +68 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +11 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +54 -0
- package/dist/core/fetcher/index.d.ts +5 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +40 -0
- package/dist/core/fetcher/signals.d.ts +11 -0
- package/dist/core/fetcher/signals.js +36 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +60 -0
- package/dist/core/form-data-utils/FormDataWrapper.js +188 -0
- package/dist/core/form-data-utils/index.d.ts +1 -0
- package/dist/core/form-data-utils/index.js +17 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +20 -0
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +103 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/ChrtError.d.ts +12 -0
- package/dist/errors/ChrtError.js +33 -0
- package/dist/errors/ChrtTimeoutError.d.ts +6 -0
- package/dist/errors/ChrtTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +44 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/ChrtError.d.ts +12 -0
- package/errors/ChrtError.js +33 -0
- package/errors/ChrtTimeoutError.d.ts +6 -0
- package/errors/ChrtTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +44 -0
- package/jest.config.mjs +8 -0
- package/package.json +44 -0
- package/reference.md +4621 -0
- package/scripts/rename-to-esm-files.js +115 -0
- package/version.d.ts +1 -0
- package/version.js +4 -0
package/Client.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "./environments";
|
|
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
|
+
import { Dev } from "./api/resources/dev/client/Client";
|
|
9
|
+
import { Directory } from "./api/resources/directory/client/Client";
|
|
10
|
+
import { OortConnections } from "./api/resources/oortConnections/client/Client";
|
|
11
|
+
import { OortCourierPayDriverRateSheets } from "./api/resources/oortCourierPayDriverRateSheets/client/Client";
|
|
12
|
+
import { OortDrivers } from "./api/resources/oortDrivers/client/Client";
|
|
13
|
+
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
|
+
import { OortOrgProfiles } from "./api/resources/oortOrgProfiles/client/Client";
|
|
18
|
+
import { OortShipperUserInfo } from "./api/resources/oortShipperUserInfo/client/Client";
|
|
19
|
+
import { OortTaskGroups } from "./api/resources/oortTaskGroups/client/Client";
|
|
20
|
+
import { Orgs } from "./api/resources/orgs/client/Client";
|
|
21
|
+
import { Payments } from "./api/resources/payments/client/Client";
|
|
22
|
+
import { Users } from "./api/resources/users/client/Client";
|
|
23
|
+
export declare namespace ChrtClient {
|
|
24
|
+
interface Options {
|
|
25
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
26
|
+
/** Specify a custom URL to connect the client to. */
|
|
27
|
+
baseUrl?: core.Supplier<string>;
|
|
28
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
29
|
+
fetcher?: core.FetchFunction;
|
|
30
|
+
}
|
|
31
|
+
interface RequestOptions {
|
|
32
|
+
/** The maximum time to wait for a response in seconds. */
|
|
33
|
+
timeoutInSeconds?: number;
|
|
34
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
35
|
+
maxRetries?: number;
|
|
36
|
+
/** A hook to abort the request. */
|
|
37
|
+
abortSignal?: AbortSignal;
|
|
38
|
+
/** Additional headers to include in the request. */
|
|
39
|
+
headers?: Record<string, string>;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export declare class ChrtClient {
|
|
43
|
+
protected readonly _options: ChrtClient.Options;
|
|
44
|
+
protected _root: Root | undefined;
|
|
45
|
+
protected _mirror: Mirror | undefined;
|
|
46
|
+
protected _dev: Dev | undefined;
|
|
47
|
+
protected _directory: Directory | undefined;
|
|
48
|
+
protected _oortConnections: OortConnections | undefined;
|
|
49
|
+
protected _oortCourierPayDriverRateSheets: OortCourierPayDriverRateSheets | undefined;
|
|
50
|
+
protected _oortDrivers: OortDrivers | undefined;
|
|
51
|
+
protected _oortMilestones: OortMilestones | undefined;
|
|
52
|
+
protected _oortNotificationPreferences: OortNotificationPreferences | undefined;
|
|
53
|
+
protected _oortOrders: OortOrders | undefined;
|
|
54
|
+
protected _oortOrgConnectionInfos: OortOrgConnectionInfos | undefined;
|
|
55
|
+
protected _oortOrgProfiles: OortOrgProfiles | undefined;
|
|
56
|
+
protected _oortShipperUserInfo: OortShipperUserInfo | undefined;
|
|
57
|
+
protected _oortTaskGroups: OortTaskGroups | undefined;
|
|
58
|
+
protected _orgs: Orgs | undefined;
|
|
59
|
+
protected _payments: Payments | undefined;
|
|
60
|
+
protected _users: Users | undefined;
|
|
61
|
+
constructor(_options?: ChrtClient.Options);
|
|
62
|
+
get root(): Root;
|
|
63
|
+
get mirror(): Mirror;
|
|
64
|
+
get dev(): Dev;
|
|
65
|
+
get directory(): Directory;
|
|
66
|
+
get oortConnections(): OortConnections;
|
|
67
|
+
get oortCourierPayDriverRateSheets(): OortCourierPayDriverRateSheets;
|
|
68
|
+
get oortDrivers(): OortDrivers;
|
|
69
|
+
get oortMilestones(): OortMilestones;
|
|
70
|
+
get oortNotificationPreferences(): OortNotificationPreferences;
|
|
71
|
+
get oortOrders(): OortOrders;
|
|
72
|
+
get oortOrgConnectionInfos(): OortOrgConnectionInfos;
|
|
73
|
+
get oortOrgProfiles(): OortOrgProfiles;
|
|
74
|
+
get oortShipperUserInfo(): OortShipperUserInfo;
|
|
75
|
+
get oortTaskGroups(): OortTaskGroups;
|
|
76
|
+
get orgs(): Orgs;
|
|
77
|
+
get payments(): Payments;
|
|
78
|
+
get users(): Users;
|
|
79
|
+
}
|
package/Client.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ChrtClient = void 0;
|
|
7
|
+
const Client_1 = require("./api/resources/root/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/mirror/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/dev/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/directory/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/oortConnections/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/oortCourierPayDriverRateSheets/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/oortDrivers/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/oortMilestones/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/oortNotificationPreferences/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/oortOrders/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/oortOrgConnectionInfos/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/oortOrgProfiles/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/oortShipperUserInfo/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/oortTaskGroups/client/Client");
|
|
21
|
+
const Client_15 = require("./api/resources/orgs/client/Client");
|
|
22
|
+
const Client_16 = require("./api/resources/payments/client/Client");
|
|
23
|
+
const Client_17 = require("./api/resources/users/client/Client");
|
|
24
|
+
class ChrtClient {
|
|
25
|
+
constructor(_options = {}) {
|
|
26
|
+
this._options = _options;
|
|
27
|
+
}
|
|
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
|
+
get dev() {
|
|
37
|
+
var _a;
|
|
38
|
+
return ((_a = this._dev) !== null && _a !== void 0 ? _a : (this._dev = new Client_3.Dev(this._options)));
|
|
39
|
+
}
|
|
40
|
+
get directory() {
|
|
41
|
+
var _a;
|
|
42
|
+
return ((_a = this._directory) !== null && _a !== void 0 ? _a : (this._directory = new Client_4.Directory(this._options)));
|
|
43
|
+
}
|
|
44
|
+
get oortConnections() {
|
|
45
|
+
var _a;
|
|
46
|
+
return ((_a = this._oortConnections) !== null && _a !== void 0 ? _a : (this._oortConnections = new Client_5.OortConnections(this._options)));
|
|
47
|
+
}
|
|
48
|
+
get oortCourierPayDriverRateSheets() {
|
|
49
|
+
var _a;
|
|
50
|
+
return ((_a = this._oortCourierPayDriverRateSheets) !== null && _a !== void 0 ? _a : (this._oortCourierPayDriverRateSheets = new Client_6.OortCourierPayDriverRateSheets(this._options)));
|
|
51
|
+
}
|
|
52
|
+
get oortDrivers() {
|
|
53
|
+
var _a;
|
|
54
|
+
return ((_a = this._oortDrivers) !== null && _a !== void 0 ? _a : (this._oortDrivers = new Client_7.OortDrivers(this._options)));
|
|
55
|
+
}
|
|
56
|
+
get oortMilestones() {
|
|
57
|
+
var _a;
|
|
58
|
+
return ((_a = this._oortMilestones) !== null && _a !== void 0 ? _a : (this._oortMilestones = new Client_8.OortMilestones(this._options)));
|
|
59
|
+
}
|
|
60
|
+
get oortNotificationPreferences() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._oortNotificationPreferences) !== null && _a !== void 0 ? _a : (this._oortNotificationPreferences = new Client_9.OortNotificationPreferences(this._options)));
|
|
63
|
+
}
|
|
64
|
+
get oortOrders() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this._oortOrders) !== null && _a !== void 0 ? _a : (this._oortOrders = new Client_10.OortOrders(this._options)));
|
|
67
|
+
}
|
|
68
|
+
get oortOrgConnectionInfos() {
|
|
69
|
+
var _a;
|
|
70
|
+
return ((_a = this._oortOrgConnectionInfos) !== null && _a !== void 0 ? _a : (this._oortOrgConnectionInfos = new Client_11.OortOrgConnectionInfos(this._options)));
|
|
71
|
+
}
|
|
72
|
+
get oortOrgProfiles() {
|
|
73
|
+
var _a;
|
|
74
|
+
return ((_a = this._oortOrgProfiles) !== null && _a !== void 0 ? _a : (this._oortOrgProfiles = new Client_12.OortOrgProfiles(this._options)));
|
|
75
|
+
}
|
|
76
|
+
get oortShipperUserInfo() {
|
|
77
|
+
var _a;
|
|
78
|
+
return ((_a = this._oortShipperUserInfo) !== null && _a !== void 0 ? _a : (this._oortShipperUserInfo = new Client_13.OortShipperUserInfo(this._options)));
|
|
79
|
+
}
|
|
80
|
+
get oortTaskGroups() {
|
|
81
|
+
var _a;
|
|
82
|
+
return ((_a = this._oortTaskGroups) !== null && _a !== void 0 ? _a : (this._oortTaskGroups = new Client_14.OortTaskGroups(this._options)));
|
|
83
|
+
}
|
|
84
|
+
get orgs() {
|
|
85
|
+
var _a;
|
|
86
|
+
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_15.Orgs(this._options)));
|
|
87
|
+
}
|
|
88
|
+
get payments() {
|
|
89
|
+
var _a;
|
|
90
|
+
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_16.Payments(this._options)));
|
|
91
|
+
}
|
|
92
|
+
get users() {
|
|
93
|
+
var _a;
|
|
94
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.Users(this._options)));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.ChrtClient = ChrtClient;
|
package/README.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Chrt TypeScript Library
|
|
2
|
+
|
|
3
|
+
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Ffern-demo%2Fchrt-typescript-sdk)
|
|
4
|
+
[](https://www.npmjs.com/package/@chrt-inc/typescript-sdk)
|
|
5
|
+
|
|
6
|
+
The Chrt TypeScript library provides convenient access to the Chrt API from TypeScript.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm i -s @chrt-inc/typescript-sdk
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Reference
|
|
15
|
+
|
|
16
|
+
A full reference for this library is available [here](https://github.com/fern-demo/chrt-typescript-sdk/blob/HEAD/./reference.md).
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
Instantiate and use the client with the following:
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { ChrtClient } from "@chrt-inc/typescript-sdk";
|
|
24
|
+
|
|
25
|
+
const client = new ChrtClient({ token: "YOUR_TOKEN" });
|
|
26
|
+
await client.root.postAuthd();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Request And Response Types
|
|
30
|
+
|
|
31
|
+
The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
|
|
32
|
+
following namespace:
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { Chrt } from "@chrt-inc/typescript-sdk";
|
|
36
|
+
|
|
37
|
+
const request: Chrt.TemplateReq = {
|
|
38
|
+
...
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Exception Handling
|
|
43
|
+
|
|
44
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
|
|
45
|
+
will be thrown.
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
import { ChrtError } from "@chrt-inc/typescript-sdk";
|
|
49
|
+
|
|
50
|
+
try {
|
|
51
|
+
await client.root.postAuthd(...);
|
|
52
|
+
} catch (err) {
|
|
53
|
+
if (err instanceof ChrtError) {
|
|
54
|
+
console.log(err.statusCode);
|
|
55
|
+
console.log(err.message);
|
|
56
|
+
console.log(err.body);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Advanced
|
|
62
|
+
|
|
63
|
+
### Additional Headers
|
|
64
|
+
|
|
65
|
+
If you would like to send additional headers as part of the request, use the `headers` request option.
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
const response = await client.root.postAuthd(..., {
|
|
69
|
+
headers: {
|
|
70
|
+
'X-Custom-Header': 'custom value'
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Retries
|
|
76
|
+
|
|
77
|
+
The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
|
|
78
|
+
as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
|
|
79
|
+
retry limit (default: 2).
|
|
80
|
+
|
|
81
|
+
A request is deemed retriable when any of the following HTTP status codes is returned:
|
|
82
|
+
|
|
83
|
+
- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
|
|
84
|
+
- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
|
|
85
|
+
- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
|
|
86
|
+
|
|
87
|
+
Use the `maxRetries` request option to configure this behavior.
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
const response = await client.root.postAuthd(..., {
|
|
91
|
+
maxRetries: 0 // override maxRetries at the request level
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Timeouts
|
|
96
|
+
|
|
97
|
+
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
const response = await client.root.postAuthd(..., {
|
|
101
|
+
timeoutInSeconds: 30 // override timeout to 30s
|
|
102
|
+
});
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Aborting Requests
|
|
106
|
+
|
|
107
|
+
The SDK allows users to abort requests at any point by passing in an abort signal.
|
|
108
|
+
|
|
109
|
+
```typescript
|
|
110
|
+
const controller = new AbortController();
|
|
111
|
+
const response = await client.root.postAuthd(..., {
|
|
112
|
+
abortSignal: controller.signal
|
|
113
|
+
});
|
|
114
|
+
controller.abort(); // aborts the request
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Runtime Compatibility
|
|
118
|
+
|
|
119
|
+
The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
|
|
120
|
+
runtimes:
|
|
121
|
+
|
|
122
|
+
- Node.js 18+
|
|
123
|
+
- Vercel
|
|
124
|
+
- Cloudflare Workers
|
|
125
|
+
- Deno v1.25+
|
|
126
|
+
- Bun 1.0+
|
|
127
|
+
- React Native
|
|
128
|
+
|
|
129
|
+
### Customizing Fetch Client
|
|
130
|
+
|
|
131
|
+
The SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an
|
|
132
|
+
unsupported environment, this provides a way for you to break glass and ensure the SDK works.
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import { ChrtClient } from "@chrt-inc/typescript-sdk";
|
|
136
|
+
|
|
137
|
+
const client = new ChrtClient({
|
|
138
|
+
...
|
|
139
|
+
fetcher: // provide your implementation here
|
|
140
|
+
});
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Contributing
|
|
144
|
+
|
|
145
|
+
While we value open-source contributions to this SDK, this library is generated programmatically.
|
|
146
|
+
Additions made directly to this library would have to be moved over to our generation code,
|
|
147
|
+
otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
|
|
148
|
+
a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
|
|
149
|
+
an issue first to discuss with us!
|
|
150
|
+
|
|
151
|
+
On the other hand, contributions to the README are always very welcome!
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Chrt from "../index";
|
|
6
|
+
export declare class UnprocessableEntityError extends errors.ChrtError {
|
|
7
|
+
constructor(body: Chrt.HttpValidationError);
|
|
8
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UnprocessableEntityError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index"));
|
|
41
|
+
class UnprocessableEntityError extends errors.ChrtError {
|
|
42
|
+
constructor(body) {
|
|
43
|
+
super({
|
|
44
|
+
message: "UnprocessableEntityError",
|
|
45
|
+
statusCode: 422,
|
|
46
|
+
body: body,
|
|
47
|
+
});
|
|
48
|
+
Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./UnprocessableEntityError";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./UnprocessableEntityError"), exports);
|
package/api/index.d.ts
ADDED
package/api/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./errors"), exports);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Chrt from "../../../index";
|
|
7
|
+
export declare namespace Dev {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
fetcher?: core.FetchFunction;
|
|
14
|
+
}
|
|
15
|
+
interface RequestOptions {
|
|
16
|
+
/** The maximum time to wait for a response in seconds. */
|
|
17
|
+
timeoutInSeconds?: number;
|
|
18
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
19
|
+
maxRetries?: number;
|
|
20
|
+
/** A hook to abort the request. */
|
|
21
|
+
abortSignal?: AbortSignal;
|
|
22
|
+
/** Additional headers to include in the request. */
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class Dev {
|
|
27
|
+
protected readonly _options: Dev.Options;
|
|
28
|
+
constructor(_options?: Dev.Options);
|
|
29
|
+
/**
|
|
30
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.dev.getDecodedJwt()
|
|
34
|
+
*/
|
|
35
|
+
getDecodedJwt(requestOptions?: Dev.RequestOptions): Promise<Chrt.DecodedJwtWithOrgAndUserId>;
|
|
36
|
+
/**
|
|
37
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.dev.getEmail()
|
|
41
|
+
*/
|
|
42
|
+
getEmail(requestOptions?: Dev.RequestOptions): Promise<string>;
|
|
43
|
+
/**
|
|
44
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* await client.dev.getTemplate()
|
|
48
|
+
*/
|
|
49
|
+
getTemplate(requestOptions?: Dev.RequestOptions): Promise<string>;
|
|
50
|
+
/**
|
|
51
|
+
* @param {Chrt.TemplateReq} request
|
|
52
|
+
* @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await client.dev.postTemplate({
|
|
58
|
+
* message: "message",
|
|
59
|
+
* number: 1,
|
|
60
|
+
* timestamp: "2024-01-15T09:30:00Z"
|
|
61
|
+
* })
|
|
62
|
+
*/
|
|
63
|
+
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
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
72
|
+
}
|