@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,121 @@
|
|
|
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.Connections = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
+
class Connections {
|
|
54
|
+
constructor(_options = {}) {
|
|
55
|
+
this._options = _options;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Lists every provider the caller's organization has credentials for, across all shipping integrations. | () -> (ShippingIntegrationConnectionListRes)
|
|
59
|
+
*
|
|
60
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.shippingIntegrations.connections.listV1()
|
|
64
|
+
*/
|
|
65
|
+
listV1(requestOptions) {
|
|
66
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
67
|
+
}
|
|
68
|
+
__listV1(requestOptions) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
var _a, _b, _c, _d;
|
|
71
|
+
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);
|
|
72
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
73
|
+
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/connections/list/v1"),
|
|
74
|
+
method: "GET",
|
|
75
|
+
headers: _headers,
|
|
76
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
77
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
78
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
79
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
80
|
+
});
|
|
81
|
+
if (_response.ok) {
|
|
82
|
+
return {
|
|
83
|
+
data: _response.body,
|
|
84
|
+
rawResponse: _response.rawResponse,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
if (_response.error.reason === "status-code") {
|
|
88
|
+
throw new errors.ChrtError({
|
|
89
|
+
statusCode: _response.error.statusCode,
|
|
90
|
+
body: _response.error.body,
|
|
91
|
+
rawResponse: _response.rawResponse,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
switch (_response.error.reason) {
|
|
95
|
+
case "non-json":
|
|
96
|
+
throw new errors.ChrtError({
|
|
97
|
+
statusCode: _response.error.statusCode,
|
|
98
|
+
body: _response.error.rawBody,
|
|
99
|
+
rawResponse: _response.rawResponse,
|
|
100
|
+
});
|
|
101
|
+
case "timeout":
|
|
102
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/connections/list/v1.");
|
|
103
|
+
case "unknown":
|
|
104
|
+
throw new errors.ChrtError({
|
|
105
|
+
message: _response.error.errorMessage,
|
|
106
|
+
rawResponse: _response.rawResponse,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
_getAuthorizationHeader() {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
114
|
+
if (bearer != null) {
|
|
115
|
+
return `Bearer ${bearer}`;
|
|
116
|
+
}
|
|
117
|
+
return undefined;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.Connections = Connections;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,43 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.xcelerator = exports.orders = exports.connections = void 0;
|
|
40
|
+
exports.connections = __importStar(require("./connections/index.js"));
|
|
41
|
+
exports.orders = __importStar(require("./orders/index.js"));
|
|
42
|
+
exports.xcelerator = __importStar(require("./xcelerator/index.js"));
|
|
43
|
+
__exportStar(require("./orders/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,101 @@
|
|
|
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 * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace Orders {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Orders {
|
|
31
|
+
protected readonly _options: Orders.Options;
|
|
32
|
+
constructor(_options?: Orders.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Returns one unified shipping integration order by its Mongo ObjectId. | () -> (ShippingIntegrationOrder1)
|
|
35
|
+
*
|
|
36
|
+
* @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.
|
|
37
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.shippingIntegrations.orders.detailV1("id")
|
|
43
|
+
*/
|
|
44
|
+
detailV1(id: string, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.ShippingIntegrationOrder1>;
|
|
45
|
+
private __detailV1;
|
|
46
|
+
/**
|
|
47
|
+
* Lists the caller's orders from every shipping integration with filtering, sorting, and pagination. | () -> (ShippingIntegrationOrderListRes)
|
|
48
|
+
*
|
|
49
|
+
* @param {Chrt.shippingIntegrations.OrdersListV1Request} request
|
|
50
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.shippingIntegrations.orders.listV1({
|
|
56
|
+
* sort_by: "ordered_at_timestamp",
|
|
57
|
+
* sort_order: "asc",
|
|
58
|
+
* page: 1,
|
|
59
|
+
* page_size: 1,
|
|
60
|
+
* filter_shipping_integration: ["xcelerator"],
|
|
61
|
+
* filter_provider_org_id: ["filter_provider_org_id"],
|
|
62
|
+
* filter_status: ["staged"],
|
|
63
|
+
* filter_integration_order_id: "filter_integration_order_id",
|
|
64
|
+
* filter_reference_number: "filter_reference_number",
|
|
65
|
+
* filter_ordered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
66
|
+
* filter_ordered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
67
|
+
* filter_last_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
68
|
+
* filter_last_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
69
|
+
* filter_first_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
70
|
+
* filter_first_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
71
|
+
* })
|
|
72
|
+
*/
|
|
73
|
+
listV1(request?: Chrt.shippingIntegrations.OrdersListV1Request, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.ShippingIntegrationOrderListRes>;
|
|
74
|
+
private __listV1;
|
|
75
|
+
/**
|
|
76
|
+
* Counts the caller's shipping integration orders by unified status. | () -> (ShippingIntegrationOrderStatusSummaryRes)
|
|
77
|
+
*
|
|
78
|
+
* @param {Chrt.shippingIntegrations.OrdersStatusSummaryV1Request} request
|
|
79
|
+
* @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* await client.shippingIntegrations.orders.statusSummaryV1({
|
|
85
|
+
* filter_shipping_integration: ["xcelerator"],
|
|
86
|
+
* filter_provider_org_id: ["filter_provider_org_id"],
|
|
87
|
+
* filter_status: ["staged"],
|
|
88
|
+
* filter_integration_order_id: "filter_integration_order_id",
|
|
89
|
+
* filter_reference_number: "filter_reference_number",
|
|
90
|
+
* filter_ordered_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
91
|
+
* filter_ordered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
92
|
+
* filter_last_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
93
|
+
* filter_last_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
94
|
+
* filter_first_mirrored_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
95
|
+
* filter_first_mirrored_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
96
|
+
* })
|
|
97
|
+
*/
|
|
98
|
+
statusSummaryV1(request?: Chrt.shippingIntegrations.OrdersStatusSummaryV1Request, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.ShippingIntegrationOrderStatusSummaryRes>;
|
|
99
|
+
private __statusSummaryV1;
|
|
100
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
101
|
+
}
|