@chrt-inc/typescript-sdk 1.930.0 → 1.932.0
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/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +13 -8
- package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.js +3 -0
- package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +5 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +4 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +4 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +3 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +2 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +2 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.js +2 -2
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +2 -0
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +6 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +2 -0
- package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.js +2 -2
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +2 -2
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +4 -3
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +4 -3
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -1
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +6 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/client/Client.js +1 -0
- package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +1 -1
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +4 -4
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +3 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +2 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +8 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/shippingIntegrations/client/Client.js +27 -0
- package/dist/cjs/api/resources/shippingIntegrations/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/client/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/index.js +18 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/connections/client/Client.d.ts +44 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/connections/client/Client.js +121 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/connections/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/connections/client/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/connections/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/connections/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/index.js +43 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.d.ts +101 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.js +388 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.ts +54 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.ts +44 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/client/Client.js +22 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/client/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/index.js +18 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/Client.d.ts +116 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/Client.js +427 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientCreate1.d.ts +19 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientCreate1.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientUpdate1.d.ts +15 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/index.js +43 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +104 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +371 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/index.js +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.d.ts +48 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/XceleratorOrderSyncOneReq.d.ts +15 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/XceleratorOrderSyncOneReq.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/index.js +17 -0
- package/dist/cjs/api/types/{GeometryCollectionGeometriesItem.d.ts → GeometriesItem.d.ts} +2 -2
- package/dist/cjs/api/types/GeometriesItem.js +5 -0
- package/dist/cjs/api/types/GeometryCollection.d.ts +1 -1
- package/dist/cjs/api/types/InternalDelegationJwtReq.d.ts +1 -1
- package/dist/cjs/api/types/OrgShippingIntegrationEnum1.d.ts +11 -0
- package/dist/cjs/api/types/OrgShippingIntegrationEnum1.js +13 -0
- package/dist/cjs/api/types/ShippingIntegrationConnection.d.ts +24 -0
- package/dist/cjs/api/types/ShippingIntegrationConnection.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationConnectionListRes.d.ts +8 -0
- package/dist/cjs/api/types/ShippingIntegrationConnectionListRes.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrder1.d.ts +24 -0
- package/dist/cjs/api/types/ShippingIntegrationOrder1.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderListRes.d.ts +8 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderListRes.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderPlace1.d.ts +21 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderPlace1.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.d.ts +10 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.js +12 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusEnum1.d.ts +11 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusEnum1.js +13 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusSummaryRes.d.ts +14 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderStatusSummaryRes.js +5 -0
- package/dist/cjs/api/types/{WorkflowActor.d.ts → WorkflowCaller.d.ts} +1 -1
- package/dist/cjs/api/types/WorkflowCaller.js +5 -0
- package/dist/cjs/api/types/XceleratorCredsLimited1.d.ts +27 -0
- package/dist/cjs/api/types/XceleratorCredsLimited1.js +5 -0
- package/dist/cjs/api/types/XceleratorCredsListRes.d.ts +8 -0
- package/dist/cjs/api/types/XceleratorCredsListRes.js +5 -0
- package/dist/cjs/api/types/XceleratorCredsTestRes.d.ts +11 -0
- package/dist/cjs/api/types/XceleratorCredsTestRes.js +5 -0
- package/dist/cjs/api/types/XceleratorOrder1.d.ts +19 -0
- package/dist/cjs/api/types/XceleratorOrder1.js +5 -0
- package/dist/cjs/api/types/XceleratorOrderExtraResponse1.d.ts +11 -0
- package/dist/cjs/api/types/XceleratorOrderExtraResponse1.js +5 -0
- package/dist/cjs/api/types/XceleratorOrderListRes.d.ts +8 -0
- package/dist/cjs/api/types/XceleratorOrderListRes.js +5 -0
- package/dist/cjs/api/types/XceleratorOrderPackageResponse1.d.ts +9 -0
- package/dist/cjs/api/types/XceleratorOrderPackageResponse1.js +5 -0
- package/dist/cjs/api/types/XceleratorOrderResponse1.d.ts +82 -0
- package/dist/cjs/api/types/XceleratorOrderResponse1.js +5 -0
- package/dist/cjs/api/types/XceleratorOrderSortByEnum.d.ts +10 -0
- package/dist/cjs/api/types/XceleratorOrderSortByEnum.js +12 -0
- package/dist/cjs/api/types/index.d.ts +20 -2
- package/dist/cjs/api/types/index.js +20 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.mjs +3 -0
- package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +5 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +5 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +5 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +3 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +2 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +2 -0
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.mjs +2 -2
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +2 -0
- package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +1 -0
- package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +1 -0
- package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +6 -0
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +2 -0
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +2 -0
- package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +2 -0
- package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +2 -2
- package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +4 -3
- package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +4 -3
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -1
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +6 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/orgs/client/Client.mjs +1 -0
- package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +1 -1
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +4 -4
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +3 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +2 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +8 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +5 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/shippingIntegrations/client/Client.mjs +23 -0
- package/dist/esm/api/resources/shippingIntegrations/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/index.mjs +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/connections/client/Client.d.mts +44 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/connections/client/Client.mjs +84 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/connections/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/connections/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/connections/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/connections/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/index.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.d.mts +101 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.mjs +351 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.mts +54 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.mts +44 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/client/Client.d.mts +26 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/client/Client.mjs +18 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/client/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/index.mjs +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/Client.d.mts +116 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/Client.mjs +390 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientCreate1.d.mts +19 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientCreate1.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientUpdate1.d.mts +15 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/index.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +104 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +334 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.d.mts +48 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/XceleratorOrderSyncOneReq.d.mts +15 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/XceleratorOrderSyncOneReq.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/index.mjs +1 -0
- package/dist/esm/api/types/{GeometryCollectionGeometriesItem.d.mts → GeometriesItem.d.mts} +2 -2
- package/dist/esm/api/types/GeometriesItem.mjs +4 -0
- package/dist/esm/api/types/GeometryCollection.d.mts +1 -1
- package/dist/esm/api/types/InternalDelegationJwtReq.d.mts +1 -1
- package/dist/esm/api/types/OrgShippingIntegrationEnum1.d.mts +11 -0
- package/dist/esm/api/types/OrgShippingIntegrationEnum1.mjs +10 -0
- package/dist/esm/api/types/ShippingIntegrationConnection.d.mts +24 -0
- package/dist/esm/api/types/ShippingIntegrationConnection.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationConnectionListRes.d.mts +8 -0
- package/dist/esm/api/types/ShippingIntegrationConnectionListRes.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrder1.d.mts +24 -0
- package/dist/esm/api/types/ShippingIntegrationOrder1.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderListRes.d.mts +8 -0
- package/dist/esm/api/types/ShippingIntegrationOrderListRes.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderPlace1.d.mts +21 -0
- package/dist/esm/api/types/ShippingIntegrationOrderPlace1.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.d.mts +10 -0
- package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.mjs +9 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusEnum1.d.mts +11 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusEnum1.mjs +10 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusSummaryRes.d.mts +14 -0
- package/dist/esm/api/types/ShippingIntegrationOrderStatusSummaryRes.mjs +4 -0
- package/dist/esm/api/types/{WorkflowActor.d.mts → WorkflowCaller.d.mts} +1 -1
- package/dist/esm/api/types/WorkflowCaller.mjs +4 -0
- package/dist/esm/api/types/XceleratorCredsLimited1.d.mts +27 -0
- package/dist/esm/api/types/XceleratorCredsLimited1.mjs +4 -0
- package/dist/esm/api/types/XceleratorCredsListRes.d.mts +8 -0
- package/dist/esm/api/types/XceleratorCredsListRes.mjs +4 -0
- package/dist/esm/api/types/XceleratorCredsTestRes.d.mts +11 -0
- package/dist/esm/api/types/XceleratorCredsTestRes.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrder1.d.mts +19 -0
- package/dist/esm/api/types/XceleratorOrder1.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrderExtraResponse1.d.mts +11 -0
- package/dist/esm/api/types/XceleratorOrderExtraResponse1.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrderListRes.d.mts +8 -0
- package/dist/esm/api/types/XceleratorOrderListRes.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrderPackageResponse1.d.mts +9 -0
- package/dist/esm/api/types/XceleratorOrderPackageResponse1.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrderResponse1.d.mts +82 -0
- package/dist/esm/api/types/XceleratorOrderResponse1.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrderSortByEnum.d.mts +10 -0
- package/dist/esm/api/types/XceleratorOrderSortByEnum.mjs +9 -0
- package/dist/esm/api/types/index.d.mts +20 -2
- package/dist/esm/api/types/index.mjs +20 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1010 -13
- /package/dist/cjs/api/{types/GeometryCollectionGeometriesItem.js → resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.js} +0 -0
- /package/dist/cjs/api/{types/WorkflowActor.js → resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.js} +0 -0
- /package/dist/esm/api/{types/GeometryCollectionGeometriesItem.mjs → resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/WorkflowActor.mjs → resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.mjs} +0 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Orders = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
+
class Orders {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns one unified shipping integration order by its Mongo ObjectId. | () -> (ShippingIntegrationOrder1)
|
|
60
|
+
*
|
|
61
|
+
* @param {string} id - Mongo ObjectId of the unified order document. The provider's own order ID is the integration_order_id field on the returned order.
|
|
62
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.shippingIntegrations.orders.detailV1("id")
|
|
68
|
+
*/
|
|
69
|
+
detailV1(id, requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__detailV1(id, requestOptions));
|
|
71
|
+
}
|
|
72
|
+
__detailV1(id, requestOptions) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a, _b, _c, _d;
|
|
75
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `shipping_integrations/orders/detail/v1/${encodeURIComponent(id)}`),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: _headers,
|
|
80
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
81
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
87
|
+
}
|
|
88
|
+
if (_response.error.reason === "status-code") {
|
|
89
|
+
switch (_response.error.statusCode) {
|
|
90
|
+
case 422:
|
|
91
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
+
default:
|
|
93
|
+
throw new errors.ChrtError({
|
|
94
|
+
statusCode: _response.error.statusCode,
|
|
95
|
+
body: _response.error.body,
|
|
96
|
+
rawResponse: _response.rawResponse,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
switch (_response.error.reason) {
|
|
101
|
+
case "non-json":
|
|
102
|
+
throw new errors.ChrtError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.rawBody,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
});
|
|
107
|
+
case "timeout":
|
|
108
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/orders/detail/v1/{id}.");
|
|
109
|
+
case "unknown":
|
|
110
|
+
throw new errors.ChrtError({
|
|
111
|
+
message: _response.error.errorMessage,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Lists the caller's orders from every shipping integration with filtering, sorting, and pagination. | () -> (ShippingIntegrationOrderListRes)
|
|
119
|
+
*
|
|
120
|
+
* @param {Chrt.shippingIntegrations.OrdersListV1Request} request
|
|
121
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* await client.shippingIntegrations.orders.listV1({
|
|
127
|
+
* sort_by: "ordered_at_timestamp",
|
|
128
|
+
* sort_order: "asc",
|
|
129
|
+
* page: 1,
|
|
130
|
+
* page_size: 1,
|
|
131
|
+
* filter_shipping_integration: ["xcelerator"],
|
|
132
|
+
* filter_provider_org_id: ["filter_provider_org_id"],
|
|
133
|
+
* filter_status: ["staged"],
|
|
134
|
+
* filter_integration_order_id: "filter_integration_order_id",
|
|
135
|
+
* filter_reference_number: "filter_reference_number",
|
|
136
|
+
* filter_ordered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
137
|
+
* filter_ordered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
138
|
+
* filter_last_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
139
|
+
* filter_last_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
140
|
+
* filter_first_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
141
|
+
* filter_first_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
142
|
+
* })
|
|
143
|
+
*/
|
|
144
|
+
listV1(request = {}, requestOptions) {
|
|
145
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
|
|
146
|
+
}
|
|
147
|
+
__listV1() {
|
|
148
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
149
|
+
var _a, _b, _c, _d, _e, _f;
|
|
150
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_shipping_integration: filterShippingIntegration, filter_provider_org_id: filterProviderOrgId, filter_status: filterStatus, filter_integration_order_id: filterIntegrationOrderId, filter_reference_number: filterReferenceNumber, filter_ordered_at_timestamp_gte: filterOrderedAtTimestampGte, filter_ordered_at_timestamp_lte: filterOrderedAtTimestampLte, filter_last_mirrored_at_timestamp_gte: filterLastMirroredAtTimestampGte, filter_last_mirrored_at_timestamp_lte: filterLastMirroredAtTimestampLte, filter_first_mirrored_at_timestamp_gte: filterFirstMirroredAtTimestampGte, filter_first_mirrored_at_timestamp_lte: filterFirstMirroredAtTimestampLte, } = request;
|
|
151
|
+
const _queryParams = {};
|
|
152
|
+
if (sortBy !== undefined) {
|
|
153
|
+
_queryParams["sort_by"] = sortBy;
|
|
154
|
+
}
|
|
155
|
+
if (sortOrder !== undefined) {
|
|
156
|
+
_queryParams["sort_order"] = sortOrder;
|
|
157
|
+
}
|
|
158
|
+
if (page !== undefined) {
|
|
159
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
160
|
+
}
|
|
161
|
+
if (pageSize !== undefined) {
|
|
162
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
163
|
+
}
|
|
164
|
+
if (filterShippingIntegration !== undefined) {
|
|
165
|
+
if (Array.isArray(filterShippingIntegration)) {
|
|
166
|
+
_queryParams["filter_shipping_integration"] = filterShippingIntegration.map((item) => item);
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
_queryParams["filter_shipping_integration"] = filterShippingIntegration;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
if (filterProviderOrgId !== undefined) {
|
|
173
|
+
if (Array.isArray(filterProviderOrgId)) {
|
|
174
|
+
_queryParams["filter_provider_org_id"] = filterProviderOrgId.map((item) => item);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
_queryParams["filter_provider_org_id"] = filterProviderOrgId;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (filterStatus !== undefined) {
|
|
181
|
+
if (Array.isArray(filterStatus)) {
|
|
182
|
+
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
_queryParams["filter_status"] = filterStatus;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (filterIntegrationOrderId !== undefined) {
|
|
189
|
+
_queryParams["filter_integration_order_id"] = filterIntegrationOrderId;
|
|
190
|
+
}
|
|
191
|
+
if (filterReferenceNumber !== undefined) {
|
|
192
|
+
_queryParams["filter_reference_number"] = filterReferenceNumber;
|
|
193
|
+
}
|
|
194
|
+
if (filterOrderedAtTimestampGte !== undefined) {
|
|
195
|
+
_queryParams["filter_ordered_at_timestamp_gte"] = filterOrderedAtTimestampGte;
|
|
196
|
+
}
|
|
197
|
+
if (filterOrderedAtTimestampLte !== undefined) {
|
|
198
|
+
_queryParams["filter_ordered_at_timestamp_lte"] = filterOrderedAtTimestampLte;
|
|
199
|
+
}
|
|
200
|
+
if (filterLastMirroredAtTimestampGte !== undefined) {
|
|
201
|
+
_queryParams["filter_last_mirrored_at_timestamp_gte"] = filterLastMirroredAtTimestampGte;
|
|
202
|
+
}
|
|
203
|
+
if (filterLastMirroredAtTimestampLte !== undefined) {
|
|
204
|
+
_queryParams["filter_last_mirrored_at_timestamp_lte"] = filterLastMirroredAtTimestampLte;
|
|
205
|
+
}
|
|
206
|
+
if (filterFirstMirroredAtTimestampGte !== undefined) {
|
|
207
|
+
_queryParams["filter_first_mirrored_at_timestamp_gte"] = filterFirstMirroredAtTimestampGte;
|
|
208
|
+
}
|
|
209
|
+
if (filterFirstMirroredAtTimestampLte !== undefined) {
|
|
210
|
+
_queryParams["filter_first_mirrored_at_timestamp_lte"] = filterFirstMirroredAtTimestampLte;
|
|
211
|
+
}
|
|
212
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
213
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
214
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping_integrations/orders/list/v1"),
|
|
215
|
+
method: "GET",
|
|
216
|
+
headers: _headers,
|
|
217
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
218
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
219
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
220
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
221
|
+
});
|
|
222
|
+
if (_response.ok) {
|
|
223
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
224
|
+
}
|
|
225
|
+
if (_response.error.reason === "status-code") {
|
|
226
|
+
switch (_response.error.statusCode) {
|
|
227
|
+
case 422:
|
|
228
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
229
|
+
default:
|
|
230
|
+
throw new errors.ChrtError({
|
|
231
|
+
statusCode: _response.error.statusCode,
|
|
232
|
+
body: _response.error.body,
|
|
233
|
+
rawResponse: _response.rawResponse,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
switch (_response.error.reason) {
|
|
238
|
+
case "non-json":
|
|
239
|
+
throw new errors.ChrtError({
|
|
240
|
+
statusCode: _response.error.statusCode,
|
|
241
|
+
body: _response.error.rawBody,
|
|
242
|
+
rawResponse: _response.rawResponse,
|
|
243
|
+
});
|
|
244
|
+
case "timeout":
|
|
245
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/orders/list/v1.");
|
|
246
|
+
case "unknown":
|
|
247
|
+
throw new errors.ChrtError({
|
|
248
|
+
message: _response.error.errorMessage,
|
|
249
|
+
rawResponse: _response.rawResponse,
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Counts the caller's shipping integration orders by unified status. | () -> (ShippingIntegrationOrderStatusSummaryRes)
|
|
256
|
+
*
|
|
257
|
+
* @param {Chrt.shippingIntegrations.OrdersStatusSummaryV1Request} request
|
|
258
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
259
|
+
*
|
|
260
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* await client.shippingIntegrations.orders.statusSummaryV1({
|
|
264
|
+
* filter_shipping_integration: ["xcelerator"],
|
|
265
|
+
* filter_provider_org_id: ["filter_provider_org_id"],
|
|
266
|
+
* filter_status: ["staged"],
|
|
267
|
+
* filter_integration_order_id: "filter_integration_order_id",
|
|
268
|
+
* filter_reference_number: "filter_reference_number",
|
|
269
|
+
* filter_ordered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
270
|
+
* filter_ordered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
271
|
+
* filter_last_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
272
|
+
* filter_last_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
273
|
+
* filter_first_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
274
|
+
* filter_first_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
275
|
+
* })
|
|
276
|
+
*/
|
|
277
|
+
statusSummaryV1(request = {}, requestOptions) {
|
|
278
|
+
return core.HttpResponsePromise.fromPromise(this.__statusSummaryV1(request, requestOptions));
|
|
279
|
+
}
|
|
280
|
+
__statusSummaryV1() {
|
|
281
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
282
|
+
var _a, _b, _c, _d;
|
|
283
|
+
const { filter_shipping_integration: filterShippingIntegration, filter_provider_org_id: filterProviderOrgId, filter_status: filterStatus, filter_integration_order_id: filterIntegrationOrderId, filter_reference_number: filterReferenceNumber, filter_ordered_at_timestamp_gte: filterOrderedAtTimestampGte, filter_ordered_at_timestamp_lte: filterOrderedAtTimestampLte, filter_last_mirrored_at_timestamp_gte: filterLastMirroredAtTimestampGte, filter_last_mirrored_at_timestamp_lte: filterLastMirroredAtTimestampLte, filter_first_mirrored_at_timestamp_gte: filterFirstMirroredAtTimestampGte, filter_first_mirrored_at_timestamp_lte: filterFirstMirroredAtTimestampLte, } = request;
|
|
284
|
+
const _queryParams = {};
|
|
285
|
+
if (filterShippingIntegration !== undefined) {
|
|
286
|
+
if (Array.isArray(filterShippingIntegration)) {
|
|
287
|
+
_queryParams["filter_shipping_integration"] = filterShippingIntegration.map((item) => item);
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
_queryParams["filter_shipping_integration"] = filterShippingIntegration;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (filterProviderOrgId !== undefined) {
|
|
294
|
+
if (Array.isArray(filterProviderOrgId)) {
|
|
295
|
+
_queryParams["filter_provider_org_id"] = filterProviderOrgId.map((item) => item);
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
_queryParams["filter_provider_org_id"] = filterProviderOrgId;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (filterStatus !== undefined) {
|
|
302
|
+
if (Array.isArray(filterStatus)) {
|
|
303
|
+
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
_queryParams["filter_status"] = filterStatus;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
if (filterIntegrationOrderId !== undefined) {
|
|
310
|
+
_queryParams["filter_integration_order_id"] = filterIntegrationOrderId;
|
|
311
|
+
}
|
|
312
|
+
if (filterReferenceNumber !== undefined) {
|
|
313
|
+
_queryParams["filter_reference_number"] = filterReferenceNumber;
|
|
314
|
+
}
|
|
315
|
+
if (filterOrderedAtTimestampGte !== undefined) {
|
|
316
|
+
_queryParams["filter_ordered_at_timestamp_gte"] = filterOrderedAtTimestampGte;
|
|
317
|
+
}
|
|
318
|
+
if (filterOrderedAtTimestampLte !== undefined) {
|
|
319
|
+
_queryParams["filter_ordered_at_timestamp_lte"] = filterOrderedAtTimestampLte;
|
|
320
|
+
}
|
|
321
|
+
if (filterLastMirroredAtTimestampGte !== undefined) {
|
|
322
|
+
_queryParams["filter_last_mirrored_at_timestamp_gte"] = filterLastMirroredAtTimestampGte;
|
|
323
|
+
}
|
|
324
|
+
if (filterLastMirroredAtTimestampLte !== undefined) {
|
|
325
|
+
_queryParams["filter_last_mirrored_at_timestamp_lte"] = filterLastMirroredAtTimestampLte;
|
|
326
|
+
}
|
|
327
|
+
if (filterFirstMirroredAtTimestampGte !== undefined) {
|
|
328
|
+
_queryParams["filter_first_mirrored_at_timestamp_gte"] = filterFirstMirroredAtTimestampGte;
|
|
329
|
+
}
|
|
330
|
+
if (filterFirstMirroredAtTimestampLte !== undefined) {
|
|
331
|
+
_queryParams["filter_first_mirrored_at_timestamp_lte"] = filterFirstMirroredAtTimestampLte;
|
|
332
|
+
}
|
|
333
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
334
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
335
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "shipping_integrations/orders/status_summary/v1"),
|
|
336
|
+
method: "GET",
|
|
337
|
+
headers: _headers,
|
|
338
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
339
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
340
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
341
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
342
|
+
});
|
|
343
|
+
if (_response.ok) {
|
|
344
|
+
return {
|
|
345
|
+
data: _response.body,
|
|
346
|
+
rawResponse: _response.rawResponse,
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
if (_response.error.reason === "status-code") {
|
|
350
|
+
switch (_response.error.statusCode) {
|
|
351
|
+
case 422:
|
|
352
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
353
|
+
default:
|
|
354
|
+
throw new errors.ChrtError({
|
|
355
|
+
statusCode: _response.error.statusCode,
|
|
356
|
+
body: _response.error.body,
|
|
357
|
+
rawResponse: _response.rawResponse,
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
switch (_response.error.reason) {
|
|
362
|
+
case "non-json":
|
|
363
|
+
throw new errors.ChrtError({
|
|
364
|
+
statusCode: _response.error.statusCode,
|
|
365
|
+
body: _response.error.rawBody,
|
|
366
|
+
rawResponse: _response.rawResponse,
|
|
367
|
+
});
|
|
368
|
+
case "timeout":
|
|
369
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/orders/status_summary/v1.");
|
|
370
|
+
case "unknown":
|
|
371
|
+
throw new errors.ChrtError({
|
|
372
|
+
message: _response.error.errorMessage,
|
|
373
|
+
rawResponse: _response.rawResponse,
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
_getAuthorizationHeader() {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
381
|
+
if (bearer != null) {
|
|
382
|
+
return `Bearer ${bearer}`;
|
|
383
|
+
}
|
|
384
|
+
return undefined;
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
exports.Orders = Orders;
|
|
@@ -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("./requests/index.js"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* sort_by: "ordered_at_timestamp",
|
|
9
|
+
* sort_order: "asc",
|
|
10
|
+
* page: 1,
|
|
11
|
+
* page_size: 1,
|
|
12
|
+
* filter_shipping_integration: ["xcelerator"],
|
|
13
|
+
* filter_provider_org_id: ["filter_provider_org_id"],
|
|
14
|
+
* filter_status: ["staged"],
|
|
15
|
+
* filter_integration_order_id: "filter_integration_order_id",
|
|
16
|
+
* filter_reference_number: "filter_reference_number",
|
|
17
|
+
* filter_ordered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
18
|
+
* filter_ordered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
19
|
+
* filter_last_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
|
+
* filter_last_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
|
+
* filter_first_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
|
+
* filter_first_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
23
|
+
* }
|
|
24
|
+
*/
|
|
25
|
+
export interface OrdersListV1Request {
|
|
26
|
+
/** Field to sort by. */
|
|
27
|
+
sort_by?: Chrt.ShippingIntegrationOrderSortByEnum | null;
|
|
28
|
+
/** Sort order (asc or desc). */
|
|
29
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
30
|
+
page?: number | null;
|
|
31
|
+
page_size?: number | null;
|
|
32
|
+
/** Filter by shipping integration(s) */
|
|
33
|
+
filter_shipping_integration?: (Chrt.OrgShippingIntegrationEnum1 | null) | (Chrt.OrgShippingIntegrationEnum1 | null)[];
|
|
34
|
+
/** Filter by provider org ID(s) */
|
|
35
|
+
filter_provider_org_id?: (string | null) | (string | null)[];
|
|
36
|
+
/** Filter by unified status(es) */
|
|
37
|
+
filter_status?: (Chrt.ShippingIntegrationOrderStatusEnum1 | null) | (Chrt.ShippingIntegrationOrderStatusEnum1 | null)[];
|
|
38
|
+
/** Filter by the provider's exact order ID */
|
|
39
|
+
filter_integration_order_id?: string | null;
|
|
40
|
+
/** Filter by an exact reference number carried on the order */
|
|
41
|
+
filter_reference_number?: string | null;
|
|
42
|
+
/** Filter ordered_at_timestamp >= value */
|
|
43
|
+
filter_ordered_at_timestamp_gte?: string | null;
|
|
44
|
+
/** Filter ordered_at_timestamp <= value */
|
|
45
|
+
filter_ordered_at_timestamp_lte?: string | null;
|
|
46
|
+
/** Filter last_mirrored_at_timestamp >= value */
|
|
47
|
+
filter_last_mirrored_at_timestamp_gte?: string | null;
|
|
48
|
+
/** Filter last_mirrored_at_timestamp <= value */
|
|
49
|
+
filter_last_mirrored_at_timestamp_lte?: string | null;
|
|
50
|
+
/** Filter first_mirrored_at_timestamp >= value */
|
|
51
|
+
filter_first_mirrored_at_timestamp_gte?: string | null;
|
|
52
|
+
/** Filter first_mirrored_at_timestamp <= value */
|
|
53
|
+
filter_first_mirrored_at_timestamp_lte?: string | null;
|
|
54
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* filter_shipping_integration: ["xcelerator"],
|
|
9
|
+
* filter_provider_org_id: ["filter_provider_org_id"],
|
|
10
|
+
* filter_status: ["staged"],
|
|
11
|
+
* filter_integration_order_id: "filter_integration_order_id",
|
|
12
|
+
* filter_reference_number: "filter_reference_number",
|
|
13
|
+
* filter_ordered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
14
|
+
* filter_ordered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
15
|
+
* filter_last_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
16
|
+
* filter_last_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
17
|
+
* filter_first_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
18
|
+
* filter_first_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
export interface OrdersStatusSummaryV1Request {
|
|
22
|
+
/** Filter by shipping integration(s) */
|
|
23
|
+
filter_shipping_integration?: (Chrt.OrgShippingIntegrationEnum1 | null) | (Chrt.OrgShippingIntegrationEnum1 | null)[];
|
|
24
|
+
/** Filter by provider org ID(s) */
|
|
25
|
+
filter_provider_org_id?: (string | null) | (string | null)[];
|
|
26
|
+
/** Filter by unified status(es) */
|
|
27
|
+
filter_status?: (Chrt.ShippingIntegrationOrderStatusEnum1 | null) | (Chrt.ShippingIntegrationOrderStatusEnum1 | null)[];
|
|
28
|
+
/** Filter by the provider's exact order ID */
|
|
29
|
+
filter_integration_order_id?: string | null;
|
|
30
|
+
/** Filter by an exact reference number carried on the order */
|
|
31
|
+
filter_reference_number?: string | null;
|
|
32
|
+
/** Filter ordered_at_timestamp >= value */
|
|
33
|
+
filter_ordered_at_timestamp_gte?: string | null;
|
|
34
|
+
/** Filter ordered_at_timestamp <= value */
|
|
35
|
+
filter_ordered_at_timestamp_lte?: string | null;
|
|
36
|
+
/** Filter last_mirrored_at_timestamp >= value */
|
|
37
|
+
filter_last_mirrored_at_timestamp_gte?: string | null;
|
|
38
|
+
/** Filter last_mirrored_at_timestamp <= value */
|
|
39
|
+
filter_last_mirrored_at_timestamp_lte?: string | null;
|
|
40
|
+
/** Filter first_mirrored_at_timestamp >= value */
|
|
41
|
+
filter_first_mirrored_at_timestamp_gte?: string | null;
|
|
42
|
+
/** Filter first_mirrored_at_timestamp <= value */
|
|
43
|
+
filter_first_mirrored_at_timestamp_lte?: string | null;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -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("./client/index.js"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import { Creds } from "../resources/creds/client/Client.js";
|
|
7
|
+
import { Orders } from "../resources/orders/client/Client.js";
|
|
8
|
+
export declare namespace Xcelerator {
|
|
9
|
+
interface Options {
|
|
10
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
11
|
+
/** Specify a custom URL to connect the client to. */
|
|
12
|
+
baseUrl?: core.Supplier<string>;
|
|
13
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
16
|
+
fetcher?: core.FetchFunction;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare class Xcelerator {
|
|
20
|
+
protected readonly _options: Xcelerator.Options;
|
|
21
|
+
protected _creds: Creds | undefined;
|
|
22
|
+
protected _orders: Orders | undefined;
|
|
23
|
+
constructor(_options?: Xcelerator.Options);
|
|
24
|
+
get creds(): Creds;
|
|
25
|
+
get orders(): Orders;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.Xcelerator = void 0;
|
|
7
|
+
const Client_js_1 = require("../resources/creds/client/Client.js");
|
|
8
|
+
const Client_js_2 = require("../resources/orders/client/Client.js");
|
|
9
|
+
class Xcelerator {
|
|
10
|
+
constructor(_options = {}) {
|
|
11
|
+
this._options = _options;
|
|
12
|
+
}
|
|
13
|
+
get creds() {
|
|
14
|
+
var _a;
|
|
15
|
+
return ((_a = this._creds) !== null && _a !== void 0 ? _a : (this._creds = new Client_js_1.Creds(this._options)));
|
|
16
|
+
}
|
|
17
|
+
get orders() {
|
|
18
|
+
var _a;
|
|
19
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_js_2.Orders(this._options)));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Xcelerator = Xcelerator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|