@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
|
@@ -0,0 +1,59 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.chooseStreamWrapper = chooseStreamWrapper;
|
|
46
|
+
const runtime_1 = require("../../runtime");
|
|
47
|
+
function chooseStreamWrapper(responseBody) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
if (runtime_1.RUNTIME.type === "node" && runtime_1.RUNTIME.parsedVersion != null && runtime_1.RUNTIME.parsedVersion >= 18) {
|
|
50
|
+
return new (yield Promise.resolve().then(() => __importStar(require("./Node18UniversalStreamWrapper")))).Node18UniversalStreamWrapper(responseBody);
|
|
51
|
+
}
|
|
52
|
+
else if (runtime_1.RUNTIME.type !== "node" && typeof fetch === "function") {
|
|
53
|
+
return new (yield Promise.resolve().then(() => __importStar(require("./UndiciStreamWrapper")))).UndiciStreamWrapper(responseBody);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return new (yield Promise.resolve().then(() => __importStar(require("./NodePre18StreamWrapper")))).NodePre18StreamWrapper(responseBody);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type MaybePromise<T> = Promise<T> | T;
|
|
2
|
+
interface FormDataRequest<Body> {
|
|
3
|
+
body: Body;
|
|
4
|
+
headers: Record<string, string>;
|
|
5
|
+
duplex?: "half";
|
|
6
|
+
}
|
|
7
|
+
export interface CrossPlatformFormData {
|
|
8
|
+
setup(): Promise<void>;
|
|
9
|
+
append(key: string, value: unknown): void;
|
|
10
|
+
appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
|
|
11
|
+
getRequest(): MaybePromise<FormDataRequest<unknown>>;
|
|
12
|
+
}
|
|
13
|
+
export declare function newFormData(): Promise<CrossPlatformFormData>;
|
|
14
|
+
export type Node18FormDataFd = {
|
|
15
|
+
append(name: string, value: unknown, fileName?: string): void;
|
|
16
|
+
} | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Form Data Implementation for Node.js 18+
|
|
19
|
+
*/
|
|
20
|
+
export declare class Node18FormData implements CrossPlatformFormData {
|
|
21
|
+
private fd;
|
|
22
|
+
setup(): Promise<void>;
|
|
23
|
+
append(key: string, value: any): void;
|
|
24
|
+
appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
|
|
25
|
+
getRequest(): Promise<FormDataRequest<unknown>>;
|
|
26
|
+
}
|
|
27
|
+
export type Node16FormDataFd = {
|
|
28
|
+
append(name: string, value: unknown, options?: string | {
|
|
29
|
+
header?: string | Headers;
|
|
30
|
+
knownLength?: number;
|
|
31
|
+
filename?: string;
|
|
32
|
+
filepath?: string;
|
|
33
|
+
contentType?: string;
|
|
34
|
+
}): void;
|
|
35
|
+
getHeaders(): Record<string, string>;
|
|
36
|
+
} | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Form Data Implementation for Node.js 16-18
|
|
39
|
+
*/
|
|
40
|
+
export declare class Node16FormData implements CrossPlatformFormData {
|
|
41
|
+
private fd;
|
|
42
|
+
setup(): Promise<void>;
|
|
43
|
+
append(key: string, value: any): void;
|
|
44
|
+
appendFile(key: string, value: unknown, fileName?: string): Promise<void>;
|
|
45
|
+
getRequest(): FormDataRequest<Node16FormDataFd>;
|
|
46
|
+
}
|
|
47
|
+
export type WebFormDataFd = {
|
|
48
|
+
append(name: string, value: string | Blob, fileName?: string): void;
|
|
49
|
+
} | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Form Data Implementation for Web
|
|
52
|
+
*/
|
|
53
|
+
export declare class WebFormData implements CrossPlatformFormData {
|
|
54
|
+
protected fd: WebFormDataFd;
|
|
55
|
+
setup(): Promise<void>;
|
|
56
|
+
append(key: string, value: any): void;
|
|
57
|
+
appendFile(key: string, value: any, fileName?: string): Promise<void>;
|
|
58
|
+
getRequest(): FormDataRequest<WebFormDataFd>;
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,188 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.WebFormData = exports.Node16FormData = exports.Node18FormData = void 0;
|
|
46
|
+
exports.newFormData = newFormData;
|
|
47
|
+
const runtime_1 = require("../runtime");
|
|
48
|
+
function isNamedValue(value) {
|
|
49
|
+
return typeof value === "object" && value != null && "name" in value;
|
|
50
|
+
}
|
|
51
|
+
function newFormData() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
let formdata;
|
|
54
|
+
if (runtime_1.RUNTIME.type === "node" && runtime_1.RUNTIME.parsedVersion != null && runtime_1.RUNTIME.parsedVersion >= 18) {
|
|
55
|
+
formdata = new Node18FormData();
|
|
56
|
+
}
|
|
57
|
+
else if (runtime_1.RUNTIME.type === "node") {
|
|
58
|
+
formdata = new Node16FormData();
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
formdata = new WebFormData();
|
|
62
|
+
}
|
|
63
|
+
yield formdata.setup();
|
|
64
|
+
return formdata;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Form Data Implementation for Node.js 18+
|
|
69
|
+
*/
|
|
70
|
+
class Node18FormData {
|
|
71
|
+
setup() {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
this.fd = new (yield Promise.resolve().then(() => __importStar(require("formdata-node")))).FormData();
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
append(key, value) {
|
|
77
|
+
var _a;
|
|
78
|
+
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value);
|
|
79
|
+
}
|
|
80
|
+
appendFile(key, value, fileName) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
if (fileName == null && isNamedValue(value)) {
|
|
84
|
+
fileName = value.name;
|
|
85
|
+
}
|
|
86
|
+
if (value instanceof Blob) {
|
|
87
|
+
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value, fileName);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
(_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, {
|
|
91
|
+
type: undefined,
|
|
92
|
+
name: fileName,
|
|
93
|
+
[Symbol.toStringTag]: "File",
|
|
94
|
+
stream() {
|
|
95
|
+
return value;
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
getRequest() {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const encoder = new (yield Promise.resolve().then(() => __importStar(require("form-data-encoder")))).FormDataEncoder(this.fd);
|
|
104
|
+
return {
|
|
105
|
+
body: (yield Promise.resolve().then(() => __importStar(require("readable-stream")))).Readable.from(encoder),
|
|
106
|
+
headers: encoder.headers,
|
|
107
|
+
duplex: "half",
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.Node18FormData = Node18FormData;
|
|
113
|
+
/**
|
|
114
|
+
* Form Data Implementation for Node.js 16-18
|
|
115
|
+
*/
|
|
116
|
+
class Node16FormData {
|
|
117
|
+
setup() {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
this.fd = new (yield Promise.resolve().then(() => __importStar(require("form-data")))).default();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
append(key, value) {
|
|
123
|
+
var _a;
|
|
124
|
+
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value);
|
|
125
|
+
}
|
|
126
|
+
appendFile(key, value, fileName) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
var _a, _b;
|
|
129
|
+
if (fileName == null && isNamedValue(value)) {
|
|
130
|
+
fileName = value.name;
|
|
131
|
+
}
|
|
132
|
+
let bufferedValue;
|
|
133
|
+
if (value instanceof Blob) {
|
|
134
|
+
bufferedValue = Buffer.from(yield value.arrayBuffer());
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
bufferedValue = value;
|
|
138
|
+
}
|
|
139
|
+
if (fileName == null) {
|
|
140
|
+
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, bufferedValue);
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
(_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, bufferedValue, { filename: fileName });
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
getRequest() {
|
|
148
|
+
return {
|
|
149
|
+
body: this.fd,
|
|
150
|
+
headers: this.fd ? this.fd.getHeaders() : {},
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.Node16FormData = Node16FormData;
|
|
155
|
+
/**
|
|
156
|
+
* Form Data Implementation for Web
|
|
157
|
+
*/
|
|
158
|
+
class WebFormData {
|
|
159
|
+
setup() {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
this.fd = new FormData();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
append(key, value) {
|
|
165
|
+
var _a;
|
|
166
|
+
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value);
|
|
167
|
+
}
|
|
168
|
+
appendFile(key, value, fileName) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
var _a, _b;
|
|
171
|
+
if (fileName == null && isNamedValue(value)) {
|
|
172
|
+
fileName = value.name;
|
|
173
|
+
}
|
|
174
|
+
if (value instanceof Blob) {
|
|
175
|
+
(_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value, fileName);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
(_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, new Blob([value]), fileName);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
getRequest() {
|
|
182
|
+
return {
|
|
183
|
+
body: this.fd,
|
|
184
|
+
headers: {},
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.WebFormData = WebFormData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FormDataWrapper";
|
|
@@ -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("./FormDataWrapper"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./fetcher"), exports);
|
|
18
|
+
__exportStar(require("./auth"), exports);
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./form-data-utils"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize a value to JSON
|
|
3
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
4
|
+
* @param replacer A function that transforms the results.
|
|
5
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
6
|
+
* @returns JSON string
|
|
7
|
+
*/
|
|
8
|
+
export declare const toJson: (value: unknown, replacer?: (this: unknown, key: string, value: unknown) => unknown, space?: string | number) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Parse JSON string to object, array, or other type
|
|
11
|
+
* @param text A valid JSON string.
|
|
12
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
13
|
+
* @returns Parsed object, array, or other type
|
|
14
|
+
*/
|
|
15
|
+
export declare function fromJson<T = unknown>(text: string, reviver?: (this: unknown, key: string, value: unknown) => unknown): T;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toJson = void 0;
|
|
4
|
+
exports.fromJson = fromJson;
|
|
5
|
+
/**
|
|
6
|
+
* Serialize a value to JSON
|
|
7
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
8
|
+
* @param replacer A function that transforms the results.
|
|
9
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
10
|
+
* @returns JSON string
|
|
11
|
+
*/
|
|
12
|
+
const toJson = (value, replacer, space) => {
|
|
13
|
+
return JSON.stringify(value, replacer, space);
|
|
14
|
+
};
|
|
15
|
+
exports.toJson = toJson;
|
|
16
|
+
/**
|
|
17
|
+
* Parse JSON string to object, array, or other type
|
|
18
|
+
* @param text A valid JSON string.
|
|
19
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
20
|
+
* @returns Parsed object, array, or other type
|
|
21
|
+
*/
|
|
22
|
+
function fromJson(text, reviver) {
|
|
23
|
+
return JSON.parse(text, reviver);
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RUNTIME } from "./runtime";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A constant that indicates which environment and version the SDK is running in.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RUNTIME: Runtime;
|
|
5
|
+
export interface Runtime {
|
|
6
|
+
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd" | "edge-runtime";
|
|
7
|
+
version?: string;
|
|
8
|
+
parsedVersion?: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RUNTIME = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A constant that indicates which environment and version the SDK is running in.
|
|
6
|
+
*/
|
|
7
|
+
exports.RUNTIME = evaluateRuntime();
|
|
8
|
+
function evaluateRuntime() {
|
|
9
|
+
var _a, _b, _c, _d, _e;
|
|
10
|
+
/**
|
|
11
|
+
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
12
|
+
*/
|
|
13
|
+
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
14
|
+
if (isBrowser) {
|
|
15
|
+
return {
|
|
16
|
+
type: "browser",
|
|
17
|
+
version: window.navigator.userAgent,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A constant that indicates whether the environment the code is running is Cloudflare.
|
|
22
|
+
* https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
|
|
23
|
+
*/
|
|
24
|
+
const isCloudflare = typeof globalThis !== "undefined" && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === "Cloudflare-Workers";
|
|
25
|
+
if (isCloudflare) {
|
|
26
|
+
return {
|
|
27
|
+
type: "workerd",
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A constant that indicates whether the environment the code is running is Edge Runtime.
|
|
32
|
+
* https://vercel.com/docs/functions/runtimes/edge-runtime#check-if-you're-running-on-the-edge-runtime
|
|
33
|
+
*/
|
|
34
|
+
const isEdgeRuntime = typeof EdgeRuntime === "string";
|
|
35
|
+
if (isEdgeRuntime) {
|
|
36
|
+
return {
|
|
37
|
+
type: "edge-runtime",
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A constant that indicates whether the environment the code is running is a Web Worker.
|
|
42
|
+
*/
|
|
43
|
+
const isWebWorker = typeof self === "object" &&
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
|
|
46
|
+
(((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "DedicatedWorkerGlobalScope" ||
|
|
47
|
+
((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "ServiceWorkerGlobalScope" ||
|
|
48
|
+
((_d = self.constructor) === null || _d === void 0 ? void 0 : _d.name) === "SharedWorkerGlobalScope");
|
|
49
|
+
if (isWebWorker) {
|
|
50
|
+
return {
|
|
51
|
+
type: "web-worker",
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A constant that indicates whether the environment the code is running is Deno.
|
|
56
|
+
* FYI Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
|
|
57
|
+
*/
|
|
58
|
+
const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
|
|
59
|
+
if (isDeno) {
|
|
60
|
+
return {
|
|
61
|
+
type: "deno",
|
|
62
|
+
version: Deno.version.deno,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* A constant that indicates whether the environment the code is running is Bun.sh.
|
|
67
|
+
*/
|
|
68
|
+
const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
|
|
69
|
+
if (isBun) {
|
|
70
|
+
return {
|
|
71
|
+
type: "bun",
|
|
72
|
+
version: Bun.version,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
77
|
+
*/
|
|
78
|
+
const isNode = typeof process !== "undefined" &&
|
|
79
|
+
"version" in process &&
|
|
80
|
+
!!process.version &&
|
|
81
|
+
"versions" in process &&
|
|
82
|
+
!!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
|
|
83
|
+
if (isNode) {
|
|
84
|
+
return {
|
|
85
|
+
type: "node",
|
|
86
|
+
version: process.versions.node,
|
|
87
|
+
parsedVersion: Number(process.versions.node.split(".")[0]),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
92
|
+
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
93
|
+
*/
|
|
94
|
+
const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
|
|
95
|
+
if (isReactNative) {
|
|
96
|
+
return {
|
|
97
|
+
type: "react-native",
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
type: "unknown",
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare class ChrtError extends Error {
|
|
5
|
+
readonly statusCode?: number;
|
|
6
|
+
readonly body?: unknown;
|
|
7
|
+
constructor({ message, statusCode, body }: {
|
|
8
|
+
message?: string;
|
|
9
|
+
statusCode?: number;
|
|
10
|
+
body?: unknown;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.ChrtError = void 0;
|
|
7
|
+
const json_1 = require("../core/json");
|
|
8
|
+
class ChrtError extends Error {
|
|
9
|
+
constructor({ message, statusCode, body }) {
|
|
10
|
+
super(buildMessage({ message, statusCode, body }));
|
|
11
|
+
Object.setPrototypeOf(this, ChrtError.prototype);
|
|
12
|
+
if (statusCode != null) {
|
|
13
|
+
this.statusCode = statusCode;
|
|
14
|
+
}
|
|
15
|
+
if (body !== undefined) {
|
|
16
|
+
this.body = body;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ChrtError = ChrtError;
|
|
21
|
+
function buildMessage({ message, statusCode, body, }) {
|
|
22
|
+
let lines = [];
|
|
23
|
+
if (message != null) {
|
|
24
|
+
lines.push(message);
|
|
25
|
+
}
|
|
26
|
+
if (statusCode != null) {
|
|
27
|
+
lines.push(`Status code: ${statusCode.toString()}`);
|
|
28
|
+
}
|
|
29
|
+
if (body != null) {
|
|
30
|
+
lines.push(`Body: ${(0, json_1.toJson)(body, undefined, 2)}`);
|
|
31
|
+
}
|
|
32
|
+
return lines.join("\n");
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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.ChrtTimeoutError = void 0;
|
|
7
|
+
class ChrtTimeoutError extends Error {
|
|
8
|
+
constructor(message) {
|
|
9
|
+
super(message);
|
|
10
|
+
Object.setPrototypeOf(this, ChrtTimeoutError.prototype);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ChrtTimeoutError = ChrtTimeoutError;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChrtTimeoutError = exports.ChrtError = void 0;
|
|
4
|
+
var ChrtError_1 = require("./ChrtError");
|
|
5
|
+
Object.defineProperty(exports, "ChrtError", { enumerable: true, get: function () { return ChrtError_1.ChrtError; } });
|
|
6
|
+
var ChrtTimeoutError_1 = require("./ChrtTimeoutError");
|
|
7
|
+
Object.defineProperty(exports, "ChrtTimeoutError", { enumerable: true, get: function () { return ChrtTimeoutError_1.ChrtTimeoutError; } });
|
package/dist/index.d.ts
ADDED