@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.
Files changed (336) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +13 -8
  3. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.d.ts +3 -0
  4. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/Client.js +3 -0
  5. package/dist/cjs/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodsListV1Request.d.ts +3 -0
  6. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +5 -0
  7. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +5 -0
  8. package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +5 -0
  9. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +4 -0
  10. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +4 -0
  11. package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.ts +4 -0
  12. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +3 -0
  13. package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +3 -0
  14. package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.ts +3 -0
  15. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +2 -0
  16. package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +2 -0
  17. package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +2 -0
  18. package/dist/cjs/api/resources/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/index.js +2 -1
  20. package/dist/cjs/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.d.ts +2 -2
  21. package/dist/cjs/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.js +2 -2
  22. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -0
  23. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +2 -0
  24. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +1 -0
  25. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +1 -0
  26. package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +6 -0
  27. package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +6 -0
  28. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +2 -0
  29. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +2 -0
  30. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +2 -0
  31. package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.d.ts +2 -2
  32. package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.js +2 -2
  33. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +2 -2
  34. package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +2 -2
  35. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +4 -3
  36. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +4 -3
  37. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -1
  38. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +6 -0
  39. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +6 -0
  40. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
  41. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
  42. package/dist/cjs/api/resources/orgs/client/Client.d.ts +1 -0
  43. package/dist/cjs/api/resources/orgs/client/Client.js +1 -0
  44. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +1 -0
  45. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +1 -1
  46. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +1 -1
  47. package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +4 -4
  48. package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +4 -4
  49. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +3 -1
  50. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +3 -1
  51. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +1 -0
  52. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +2 -1
  53. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +1 -0
  54. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +1 -0
  55. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +1 -0
  56. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +8 -0
  57. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +8 -0
  58. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +5 -0
  59. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -0
  60. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
  61. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +2 -0
  62. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.d.ts +1 -0
  63. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +1 -0
  64. package/dist/cjs/api/resources/shippingIntegrations/client/Client.d.ts +29 -0
  65. package/dist/cjs/api/resources/shippingIntegrations/client/Client.js +27 -0
  66. package/dist/cjs/api/resources/shippingIntegrations/client/index.d.ts +1 -0
  67. package/dist/cjs/api/resources/shippingIntegrations/client/index.js +2 -0
  68. package/dist/cjs/api/resources/shippingIntegrations/index.d.ts +2 -0
  69. package/dist/cjs/api/resources/shippingIntegrations/index.js +18 -0
  70. package/dist/cjs/api/resources/shippingIntegrations/resources/connections/client/Client.d.ts +44 -0
  71. package/dist/cjs/api/resources/shippingIntegrations/resources/connections/client/Client.js +121 -0
  72. package/dist/cjs/api/resources/shippingIntegrations/resources/connections/client/index.d.ts +1 -0
  73. package/dist/cjs/api/resources/shippingIntegrations/resources/connections/client/index.js +2 -0
  74. package/dist/cjs/api/resources/shippingIntegrations/resources/connections/index.d.ts +1 -0
  75. package/dist/cjs/api/resources/shippingIntegrations/resources/connections/index.js +17 -0
  76. package/dist/cjs/api/resources/shippingIntegrations/resources/index.d.ts +4 -0
  77. package/dist/cjs/api/resources/shippingIntegrations/resources/index.js +43 -0
  78. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.d.ts +101 -0
  79. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.js +388 -0
  80. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/index.d.ts +2 -0
  81. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/index.js +17 -0
  82. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.ts +54 -0
  83. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.ts +44 -0
  84. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.ts +2 -0
  85. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/index.js +2 -0
  86. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/index.js +17 -0
  88. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/client/Client.d.ts +26 -0
  89. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/client/Client.js +22 -0
  90. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/client/index.d.ts +1 -0
  91. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/client/index.js +2 -0
  92. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/index.d.ts +2 -0
  93. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/index.js +18 -0
  94. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/Client.d.ts +116 -0
  95. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/Client.js +427 -0
  96. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/index.d.ts +2 -0
  97. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/index.js +17 -0
  98. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientCreate1.d.ts +19 -0
  99. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientCreate1.js +5 -0
  100. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientUpdate1.d.ts +15 -0
  101. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientUpdate1.js +5 -0
  102. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/index.d.ts +2 -0
  103. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/index.js +2 -0
  104. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/index.d.ts +1 -0
  105. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/index.js +17 -0
  106. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/index.d.ts +4 -0
  107. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/index.js +43 -0
  108. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +104 -0
  109. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +371 -0
  110. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/index.d.ts +2 -0
  111. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/index.js +17 -0
  112. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.d.ts +48 -0
  113. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.js +5 -0
  114. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/XceleratorOrderSyncOneReq.d.ts +15 -0
  115. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/XceleratorOrderSyncOneReq.js +5 -0
  116. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.ts +2 -0
  117. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.js +2 -0
  118. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/index.d.ts +1 -0
  119. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/index.js +17 -0
  120. package/dist/cjs/api/types/{GeometryCollectionGeometriesItem.d.ts → GeometriesItem.d.ts} +2 -2
  121. package/dist/cjs/api/types/GeometriesItem.js +5 -0
  122. package/dist/cjs/api/types/GeometryCollection.d.ts +1 -1
  123. package/dist/cjs/api/types/InternalDelegationJwtReq.d.ts +1 -1
  124. package/dist/cjs/api/types/OrgShippingIntegrationEnum1.d.ts +11 -0
  125. package/dist/cjs/api/types/OrgShippingIntegrationEnum1.js +13 -0
  126. package/dist/cjs/api/types/ShippingIntegrationConnection.d.ts +24 -0
  127. package/dist/cjs/api/types/ShippingIntegrationConnection.js +5 -0
  128. package/dist/cjs/api/types/ShippingIntegrationConnectionListRes.d.ts +8 -0
  129. package/dist/cjs/api/types/ShippingIntegrationConnectionListRes.js +5 -0
  130. package/dist/cjs/api/types/ShippingIntegrationOrder1.d.ts +24 -0
  131. package/dist/cjs/api/types/ShippingIntegrationOrder1.js +5 -0
  132. package/dist/cjs/api/types/ShippingIntegrationOrderListRes.d.ts +8 -0
  133. package/dist/cjs/api/types/ShippingIntegrationOrderListRes.js +5 -0
  134. package/dist/cjs/api/types/ShippingIntegrationOrderPlace1.d.ts +21 -0
  135. package/dist/cjs/api/types/ShippingIntegrationOrderPlace1.js +5 -0
  136. package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.d.ts +10 -0
  137. package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.js +12 -0
  138. package/dist/cjs/api/types/ShippingIntegrationOrderStatusEnum1.d.ts +11 -0
  139. package/dist/cjs/api/types/ShippingIntegrationOrderStatusEnum1.js +13 -0
  140. package/dist/cjs/api/types/ShippingIntegrationOrderStatusSummaryRes.d.ts +14 -0
  141. package/dist/cjs/api/types/ShippingIntegrationOrderStatusSummaryRes.js +5 -0
  142. package/dist/cjs/api/types/{WorkflowActor.d.ts → WorkflowCaller.d.ts} +1 -1
  143. package/dist/cjs/api/types/WorkflowCaller.js +5 -0
  144. package/dist/cjs/api/types/XceleratorCredsLimited1.d.ts +27 -0
  145. package/dist/cjs/api/types/XceleratorCredsLimited1.js +5 -0
  146. package/dist/cjs/api/types/XceleratorCredsListRes.d.ts +8 -0
  147. package/dist/cjs/api/types/XceleratorCredsListRes.js +5 -0
  148. package/dist/cjs/api/types/XceleratorCredsTestRes.d.ts +11 -0
  149. package/dist/cjs/api/types/XceleratorCredsTestRes.js +5 -0
  150. package/dist/cjs/api/types/XceleratorOrder1.d.ts +19 -0
  151. package/dist/cjs/api/types/XceleratorOrder1.js +5 -0
  152. package/dist/cjs/api/types/XceleratorOrderExtraResponse1.d.ts +11 -0
  153. package/dist/cjs/api/types/XceleratorOrderExtraResponse1.js +5 -0
  154. package/dist/cjs/api/types/XceleratorOrderListRes.d.ts +8 -0
  155. package/dist/cjs/api/types/XceleratorOrderListRes.js +5 -0
  156. package/dist/cjs/api/types/XceleratorOrderPackageResponse1.d.ts +9 -0
  157. package/dist/cjs/api/types/XceleratorOrderPackageResponse1.js +5 -0
  158. package/dist/cjs/api/types/XceleratorOrderResponse1.d.ts +82 -0
  159. package/dist/cjs/api/types/XceleratorOrderResponse1.js +5 -0
  160. package/dist/cjs/api/types/XceleratorOrderSortByEnum.d.ts +10 -0
  161. package/dist/cjs/api/types/XceleratorOrderSortByEnum.js +12 -0
  162. package/dist/cjs/api/types/index.d.ts +20 -2
  163. package/dist/cjs/api/types/index.js +20 -2
  164. package/dist/cjs/version.d.ts +1 -1
  165. package/dist/cjs/version.js +1 -1
  166. package/dist/esm/Client.d.mts +3 -0
  167. package/dist/esm/Client.mjs +7 -2
  168. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.d.mts +3 -0
  169. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/Client.mjs +3 -0
  170. package/dist/esm/api/resources/billingNew/resources/billingPeriods/client/requests/BillingPeriodsListV1Request.d.mts +3 -0
  171. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +5 -0
  172. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +5 -0
  173. package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +5 -0
  174. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +4 -0
  175. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +4 -0
  176. package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsListV1Request.d.mts +4 -0
  177. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +3 -0
  178. package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +3 -0
  179. package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.mts +3 -0
  180. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +2 -0
  181. package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +2 -0
  182. package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +2 -0
  183. package/dist/esm/api/resources/index.d.mts +1 -0
  184. package/dist/esm/api/resources/index.mjs +1 -0
  185. package/dist/esm/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.d.mts +2 -2
  186. package/dist/esm/api/resources/integrations/resources/cargoaiTrackAndTrace/client/Client.mjs +2 -2
  187. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -0
  188. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +2 -0
  189. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +1 -0
  190. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +1 -0
  191. package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +6 -0
  192. package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +6 -0
  193. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +2 -0
  194. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +2 -0
  195. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +2 -0
  196. package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.d.mts +2 -2
  197. package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.mjs +2 -2
  198. package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +2 -2
  199. package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +2 -2
  200. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +4 -3
  201. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +4 -3
  202. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -1
  203. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +6 -0
  204. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +6 -0
  205. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
  206. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
  207. package/dist/esm/api/resources/orgs/client/Client.d.mts +1 -0
  208. package/dist/esm/api/resources/orgs/client/Client.mjs +1 -0
  209. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +1 -0
  210. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +1 -1
  211. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +1 -1
  212. package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +4 -4
  213. package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +4 -4
  214. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +3 -1
  215. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +3 -1
  216. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +1 -0
  217. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +2 -1
  218. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +1 -0
  219. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +1 -0
  220. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +1 -0
  221. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +8 -0
  222. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +8 -0
  223. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +5 -0
  224. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -0
  225. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
  226. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +2 -0
  227. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.d.mts +1 -0
  228. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +1 -0
  229. package/dist/esm/api/resources/shippingIntegrations/client/Client.d.mts +29 -0
  230. package/dist/esm/api/resources/shippingIntegrations/client/Client.mjs +23 -0
  231. package/dist/esm/api/resources/shippingIntegrations/client/index.d.mts +1 -0
  232. package/dist/esm/api/resources/shippingIntegrations/client/index.mjs +1 -0
  233. package/dist/esm/api/resources/shippingIntegrations/index.d.mts +2 -0
  234. package/dist/esm/api/resources/shippingIntegrations/index.mjs +2 -0
  235. package/dist/esm/api/resources/shippingIntegrations/resources/connections/client/Client.d.mts +44 -0
  236. package/dist/esm/api/resources/shippingIntegrations/resources/connections/client/Client.mjs +84 -0
  237. package/dist/esm/api/resources/shippingIntegrations/resources/connections/client/index.d.mts +1 -0
  238. package/dist/esm/api/resources/shippingIntegrations/resources/connections/client/index.mjs +1 -0
  239. package/dist/esm/api/resources/shippingIntegrations/resources/connections/index.d.mts +1 -0
  240. package/dist/esm/api/resources/shippingIntegrations/resources/connections/index.mjs +1 -0
  241. package/dist/esm/api/resources/shippingIntegrations/resources/index.d.mts +4 -0
  242. package/dist/esm/api/resources/shippingIntegrations/resources/index.mjs +4 -0
  243. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.d.mts +101 -0
  244. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.mjs +351 -0
  245. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/index.d.mts +2 -0
  246. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/index.mjs +1 -0
  247. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.mts +54 -0
  248. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.mts +44 -0
  249. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.mts +2 -0
  250. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/index.mjs +1 -0
  251. package/dist/esm/api/resources/shippingIntegrations/resources/orders/index.d.mts +1 -0
  252. package/dist/esm/api/resources/shippingIntegrations/resources/orders/index.mjs +1 -0
  253. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/client/Client.d.mts +26 -0
  254. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/client/Client.mjs +18 -0
  255. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/client/index.d.mts +1 -0
  256. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/client/index.mjs +1 -0
  257. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/index.d.mts +2 -0
  258. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/index.mjs +2 -0
  259. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/Client.d.mts +116 -0
  260. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/Client.mjs +390 -0
  261. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/index.d.mts +2 -0
  262. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/index.mjs +1 -0
  263. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientCreate1.d.mts +19 -0
  264. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientCreate1.mjs +4 -0
  265. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientUpdate1.d.mts +15 -0
  266. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/XceleratorCredsClientUpdate1.mjs +4 -0
  267. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/index.d.mts +2 -0
  268. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/client/requests/index.mjs +1 -0
  269. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/index.d.mts +1 -0
  270. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/creds/index.mjs +1 -0
  271. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/index.d.mts +4 -0
  272. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/index.mjs +4 -0
  273. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +104 -0
  274. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +334 -0
  275. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/index.d.mts +2 -0
  276. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/index.mjs +1 -0
  277. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.d.mts +48 -0
  278. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.mjs +4 -0
  279. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/XceleratorOrderSyncOneReq.d.mts +15 -0
  280. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/XceleratorOrderSyncOneReq.mjs +4 -0
  281. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.mts +2 -0
  282. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.mjs +1 -0
  283. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/index.d.mts +1 -0
  284. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/index.mjs +1 -0
  285. package/dist/esm/api/types/{GeometryCollectionGeometriesItem.d.mts → GeometriesItem.d.mts} +2 -2
  286. package/dist/esm/api/types/GeometriesItem.mjs +4 -0
  287. package/dist/esm/api/types/GeometryCollection.d.mts +1 -1
  288. package/dist/esm/api/types/InternalDelegationJwtReq.d.mts +1 -1
  289. package/dist/esm/api/types/OrgShippingIntegrationEnum1.d.mts +11 -0
  290. package/dist/esm/api/types/OrgShippingIntegrationEnum1.mjs +10 -0
  291. package/dist/esm/api/types/ShippingIntegrationConnection.d.mts +24 -0
  292. package/dist/esm/api/types/ShippingIntegrationConnection.mjs +4 -0
  293. package/dist/esm/api/types/ShippingIntegrationConnectionListRes.d.mts +8 -0
  294. package/dist/esm/api/types/ShippingIntegrationConnectionListRes.mjs +4 -0
  295. package/dist/esm/api/types/ShippingIntegrationOrder1.d.mts +24 -0
  296. package/dist/esm/api/types/ShippingIntegrationOrder1.mjs +4 -0
  297. package/dist/esm/api/types/ShippingIntegrationOrderListRes.d.mts +8 -0
  298. package/dist/esm/api/types/ShippingIntegrationOrderListRes.mjs +4 -0
  299. package/dist/esm/api/types/ShippingIntegrationOrderPlace1.d.mts +21 -0
  300. package/dist/esm/api/types/ShippingIntegrationOrderPlace1.mjs +4 -0
  301. package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.d.mts +10 -0
  302. package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.mjs +9 -0
  303. package/dist/esm/api/types/ShippingIntegrationOrderStatusEnum1.d.mts +11 -0
  304. package/dist/esm/api/types/ShippingIntegrationOrderStatusEnum1.mjs +10 -0
  305. package/dist/esm/api/types/ShippingIntegrationOrderStatusSummaryRes.d.mts +14 -0
  306. package/dist/esm/api/types/ShippingIntegrationOrderStatusSummaryRes.mjs +4 -0
  307. package/dist/esm/api/types/{WorkflowActor.d.mts → WorkflowCaller.d.mts} +1 -1
  308. package/dist/esm/api/types/WorkflowCaller.mjs +4 -0
  309. package/dist/esm/api/types/XceleratorCredsLimited1.d.mts +27 -0
  310. package/dist/esm/api/types/XceleratorCredsLimited1.mjs +4 -0
  311. package/dist/esm/api/types/XceleratorCredsListRes.d.mts +8 -0
  312. package/dist/esm/api/types/XceleratorCredsListRes.mjs +4 -0
  313. package/dist/esm/api/types/XceleratorCredsTestRes.d.mts +11 -0
  314. package/dist/esm/api/types/XceleratorCredsTestRes.mjs +4 -0
  315. package/dist/esm/api/types/XceleratorOrder1.d.mts +19 -0
  316. package/dist/esm/api/types/XceleratorOrder1.mjs +4 -0
  317. package/dist/esm/api/types/XceleratorOrderExtraResponse1.d.mts +11 -0
  318. package/dist/esm/api/types/XceleratorOrderExtraResponse1.mjs +4 -0
  319. package/dist/esm/api/types/XceleratorOrderListRes.d.mts +8 -0
  320. package/dist/esm/api/types/XceleratorOrderListRes.mjs +4 -0
  321. package/dist/esm/api/types/XceleratorOrderPackageResponse1.d.mts +9 -0
  322. package/dist/esm/api/types/XceleratorOrderPackageResponse1.mjs +4 -0
  323. package/dist/esm/api/types/XceleratorOrderResponse1.d.mts +82 -0
  324. package/dist/esm/api/types/XceleratorOrderResponse1.mjs +4 -0
  325. package/dist/esm/api/types/XceleratorOrderSortByEnum.d.mts +10 -0
  326. package/dist/esm/api/types/XceleratorOrderSortByEnum.mjs +9 -0
  327. package/dist/esm/api/types/index.d.mts +20 -2
  328. package/dist/esm/api/types/index.mjs +20 -2
  329. package/dist/esm/version.d.mts +1 -1
  330. package/dist/esm/version.mjs +1 -1
  331. package/package.json +1 -1
  332. package/reference.md +1010 -13
  333. /package/dist/cjs/api/{types/GeometryCollectionGeometriesItem.js → resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.js} +0 -0
  334. /package/dist/cjs/api/{types/WorkflowActor.js → resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.js} +0 -0
  335. /package/dist/esm/api/{types/GeometryCollectionGeometriesItem.mjs → resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.mjs} +0 -0
  336. /package/dist/esm/api/{types/WorkflowActor.mjs → resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.mjs} +0 -0
@@ -0,0 +1,116 @@
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 Creds {
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 Creds {
31
+ protected readonly _options: Creds.Options;
32
+ constructor(_options?: Creds.Options);
33
+ /**
34
+ * Returns the caller's Xcelerator credential for one provider, without password or access token. | () -> (XceleratorCredsLimited1)
35
+ *
36
+ * @param {string} providerOrgId - Must be a string starting with `org_`
37
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.shippingIntegrations.xcelerator.creds.detailV1("provider_org_id")
43
+ */
44
+ detailV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.XceleratorCredsLimited1>;
45
+ private __detailV1;
46
+ /**
47
+ * Lists the caller's Xcelerator credentials, one per connected provider, without password or access token. | () -> (XceleratorCredsListRes)
48
+ *
49
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @example
52
+ * await client.shippingIntegrations.xcelerator.creds.listV1()
53
+ */
54
+ listV1(requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.XceleratorCredsListRes>;
55
+ private __listV1;
56
+ /**
57
+ * Confirms the caller's stored Xcelerator credentials for one provider can still obtain an access token, and best-effort refreshes the provider's own account label for the caller to eyeball. | authz: min_org_role=operator | () -> (XceleratorCredsTestRes)
58
+ *
59
+ * @param {string} providerOrgId - Must be a string starting with `org_`
60
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @throws {@link Chrt.UnprocessableEntityError}
63
+ *
64
+ * @example
65
+ * await client.shippingIntegrations.xcelerator.creds.testV1("provider_org_id")
66
+ */
67
+ testV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.XceleratorCredsTestRes>;
68
+ private __testV1;
69
+ /**
70
+ * Stores Xcelerator credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (XceleratorCredsClientCreate1) -> (PydanticObjectId)
71
+ *
72
+ * @param {string} providerOrgId - Must be a string starting with `org_`
73
+ * @param {Chrt.shippingIntegrations.xcelerator.XceleratorCredsClientCreate1} request
74
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link Chrt.UnprocessableEntityError}
77
+ *
78
+ * @example
79
+ * await client.shippingIntegrations.xcelerator.creds.createV1("provider_org_id", {
80
+ * base_url: "base_url",
81
+ * password: "password",
82
+ * schema_version: 1,
83
+ * username: "username"
84
+ * })
85
+ */
86
+ createV1(providerOrgId: string, request: Chrt.shippingIntegrations.xcelerator.XceleratorCredsClientCreate1, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<string>;
87
+ private __createV1;
88
+ /**
89
+ * Deletes the caller's Xcelerator credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)
90
+ *
91
+ * @param {string} providerOrgId - Must be a string starting with `org_`
92
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
93
+ *
94
+ * @throws {@link Chrt.UnprocessableEntityError}
95
+ *
96
+ * @example
97
+ * await client.shippingIntegrations.xcelerator.creds.deleteV1("provider_org_id")
98
+ */
99
+ deleteV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<boolean>;
100
+ private __deleteV1;
101
+ /**
102
+ * Updates the caller's Xcelerator credentials for one provider. | authz: min_org_role=administrator | (XceleratorCredsClientUpdate1) -> (bool)
103
+ *
104
+ * @param {string} providerOrgId - Must be a string starting with `org_`
105
+ * @param {Chrt.shippingIntegrations.xcelerator.XceleratorCredsClientUpdate1} request
106
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
107
+ *
108
+ * @throws {@link Chrt.UnprocessableEntityError}
109
+ *
110
+ * @example
111
+ * await client.shippingIntegrations.xcelerator.creds.updateV1("provider_org_id")
112
+ */
113
+ updateV1(providerOrgId: string, request?: Chrt.shippingIntegrations.xcelerator.XceleratorCredsClientUpdate1, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<boolean>;
114
+ private __updateV1;
115
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
116
+ }
@@ -0,0 +1,427 @@
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.Creds = 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 Creds {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * Returns the caller's Xcelerator credential for one provider, without password or access token. | () -> (XceleratorCredsLimited1)
60
+ *
61
+ * @param {string} providerOrgId - Must be a string starting with `org_`
62
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @throws {@link Chrt.UnprocessableEntityError}
65
+ *
66
+ * @example
67
+ * await client.shippingIntegrations.xcelerator.creds.detailV1("provider_org_id")
68
+ */
69
+ detailV1(providerOrgId, requestOptions) {
70
+ return core.HttpResponsePromise.fromPromise(this.__detailV1(providerOrgId, requestOptions));
71
+ }
72
+ __detailV1(providerOrgId, 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/xcelerator/creds/detail/v1/${encodeURIComponent(providerOrgId)}`),
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/xcelerator/creds/detail/v1/{provider_org_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 Xcelerator credentials, one per connected provider, without password or access token. | () -> (XceleratorCredsListRes)
119
+ *
120
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
121
+ *
122
+ * @example
123
+ * await client.shippingIntegrations.xcelerator.creds.listV1()
124
+ */
125
+ listV1(requestOptions) {
126
+ return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
127
+ }
128
+ __listV1(requestOptions) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ var _a, _b, _c, _d;
131
+ 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);
132
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
133
+ 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/xcelerator/creds/list/v1"),
134
+ method: "GET",
135
+ headers: _headers,
136
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
137
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
138
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
139
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
140
+ });
141
+ if (_response.ok) {
142
+ return { data: _response.body, rawResponse: _response.rawResponse };
143
+ }
144
+ if (_response.error.reason === "status-code") {
145
+ throw new errors.ChrtError({
146
+ statusCode: _response.error.statusCode,
147
+ body: _response.error.body,
148
+ rawResponse: _response.rawResponse,
149
+ });
150
+ }
151
+ switch (_response.error.reason) {
152
+ case "non-json":
153
+ throw new errors.ChrtError({
154
+ statusCode: _response.error.statusCode,
155
+ body: _response.error.rawBody,
156
+ rawResponse: _response.rawResponse,
157
+ });
158
+ case "timeout":
159
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/xcelerator/creds/list/v1.");
160
+ case "unknown":
161
+ throw new errors.ChrtError({
162
+ message: _response.error.errorMessage,
163
+ rawResponse: _response.rawResponse,
164
+ });
165
+ }
166
+ });
167
+ }
168
+ /**
169
+ * Confirms the caller's stored Xcelerator credentials for one provider can still obtain an access token, and best-effort refreshes the provider's own account label for the caller to eyeball. | authz: min_org_role=operator | () -> (XceleratorCredsTestRes)
170
+ *
171
+ * @param {string} providerOrgId - Must be a string starting with `org_`
172
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
173
+ *
174
+ * @throws {@link Chrt.UnprocessableEntityError}
175
+ *
176
+ * @example
177
+ * await client.shippingIntegrations.xcelerator.creds.testV1("provider_org_id")
178
+ */
179
+ testV1(providerOrgId, requestOptions) {
180
+ return core.HttpResponsePromise.fromPromise(this.__testV1(providerOrgId, requestOptions));
181
+ }
182
+ __testV1(providerOrgId, requestOptions) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ var _a, _b, _c, _d;
185
+ 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);
186
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
187
+ 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/xcelerator/creds/test/v1/${encodeURIComponent(providerOrgId)}`),
188
+ method: "POST",
189
+ headers: _headers,
190
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
191
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
192
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
193
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
194
+ });
195
+ if (_response.ok) {
196
+ return { data: _response.body, rawResponse: _response.rawResponse };
197
+ }
198
+ if (_response.error.reason === "status-code") {
199
+ switch (_response.error.statusCode) {
200
+ case 422:
201
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
202
+ default:
203
+ throw new errors.ChrtError({
204
+ statusCode: _response.error.statusCode,
205
+ body: _response.error.body,
206
+ rawResponse: _response.rawResponse,
207
+ });
208
+ }
209
+ }
210
+ switch (_response.error.reason) {
211
+ case "non-json":
212
+ throw new errors.ChrtError({
213
+ statusCode: _response.error.statusCode,
214
+ body: _response.error.rawBody,
215
+ rawResponse: _response.rawResponse,
216
+ });
217
+ case "timeout":
218
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping_integrations/xcelerator/creds/test/v1/{provider_org_id}.");
219
+ case "unknown":
220
+ throw new errors.ChrtError({
221
+ message: _response.error.errorMessage,
222
+ rawResponse: _response.rawResponse,
223
+ });
224
+ }
225
+ });
226
+ }
227
+ /**
228
+ * Stores Xcelerator credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (XceleratorCredsClientCreate1) -> (PydanticObjectId)
229
+ *
230
+ * @param {string} providerOrgId - Must be a string starting with `org_`
231
+ * @param {Chrt.shippingIntegrations.xcelerator.XceleratorCredsClientCreate1} request
232
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
233
+ *
234
+ * @throws {@link Chrt.UnprocessableEntityError}
235
+ *
236
+ * @example
237
+ * await client.shippingIntegrations.xcelerator.creds.createV1("provider_org_id", {
238
+ * base_url: "base_url",
239
+ * password: "password",
240
+ * schema_version: 1,
241
+ * username: "username"
242
+ * })
243
+ */
244
+ createV1(providerOrgId, request, requestOptions) {
245
+ return core.HttpResponsePromise.fromPromise(this.__createV1(providerOrgId, request, requestOptions));
246
+ }
247
+ __createV1(providerOrgId, request, requestOptions) {
248
+ return __awaiter(this, void 0, void 0, function* () {
249
+ var _a, _b, _c, _d;
250
+ 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);
251
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
252
+ 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/xcelerator/creds/v1/${encodeURIComponent(providerOrgId)}`),
253
+ method: "POST",
254
+ headers: _headers,
255
+ contentType: "application/json",
256
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
257
+ requestType: "json",
258
+ body: request,
259
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
260
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
261
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
262
+ });
263
+ if (_response.ok) {
264
+ return { data: _response.body, rawResponse: _response.rawResponse };
265
+ }
266
+ if (_response.error.reason === "status-code") {
267
+ switch (_response.error.statusCode) {
268
+ case 422:
269
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
270
+ default:
271
+ throw new errors.ChrtError({
272
+ statusCode: _response.error.statusCode,
273
+ body: _response.error.body,
274
+ rawResponse: _response.rawResponse,
275
+ });
276
+ }
277
+ }
278
+ switch (_response.error.reason) {
279
+ case "non-json":
280
+ throw new errors.ChrtError({
281
+ statusCode: _response.error.statusCode,
282
+ body: _response.error.rawBody,
283
+ rawResponse: _response.rawResponse,
284
+ });
285
+ case "timeout":
286
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping_integrations/xcelerator/creds/v1/{provider_org_id}.");
287
+ case "unknown":
288
+ throw new errors.ChrtError({
289
+ message: _response.error.errorMessage,
290
+ rawResponse: _response.rawResponse,
291
+ });
292
+ }
293
+ });
294
+ }
295
+ /**
296
+ * Deletes the caller's Xcelerator credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)
297
+ *
298
+ * @param {string} providerOrgId - Must be a string starting with `org_`
299
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
300
+ *
301
+ * @throws {@link Chrt.UnprocessableEntityError}
302
+ *
303
+ * @example
304
+ * await client.shippingIntegrations.xcelerator.creds.deleteV1("provider_org_id")
305
+ */
306
+ deleteV1(providerOrgId, requestOptions) {
307
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(providerOrgId, requestOptions));
308
+ }
309
+ __deleteV1(providerOrgId, requestOptions) {
310
+ return __awaiter(this, void 0, void 0, function* () {
311
+ var _a, _b, _c, _d;
312
+ 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);
313
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
314
+ 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/xcelerator/creds/v1/${encodeURIComponent(providerOrgId)}`),
315
+ method: "DELETE",
316
+ headers: _headers,
317
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
318
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
319
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
320
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
321
+ });
322
+ if (_response.ok) {
323
+ return { data: _response.body, rawResponse: _response.rawResponse };
324
+ }
325
+ if (_response.error.reason === "status-code") {
326
+ switch (_response.error.statusCode) {
327
+ case 422:
328
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
329
+ default:
330
+ throw new errors.ChrtError({
331
+ statusCode: _response.error.statusCode,
332
+ body: _response.error.body,
333
+ rawResponse: _response.rawResponse,
334
+ });
335
+ }
336
+ }
337
+ switch (_response.error.reason) {
338
+ case "non-json":
339
+ throw new errors.ChrtError({
340
+ statusCode: _response.error.statusCode,
341
+ body: _response.error.rawBody,
342
+ rawResponse: _response.rawResponse,
343
+ });
344
+ case "timeout":
345
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping_integrations/xcelerator/creds/v1/{provider_org_id}.");
346
+ case "unknown":
347
+ throw new errors.ChrtError({
348
+ message: _response.error.errorMessage,
349
+ rawResponse: _response.rawResponse,
350
+ });
351
+ }
352
+ });
353
+ }
354
+ /**
355
+ * Updates the caller's Xcelerator credentials for one provider. | authz: min_org_role=administrator | (XceleratorCredsClientUpdate1) -> (bool)
356
+ *
357
+ * @param {string} providerOrgId - Must be a string starting with `org_`
358
+ * @param {Chrt.shippingIntegrations.xcelerator.XceleratorCredsClientUpdate1} request
359
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
360
+ *
361
+ * @throws {@link Chrt.UnprocessableEntityError}
362
+ *
363
+ * @example
364
+ * await client.shippingIntegrations.xcelerator.creds.updateV1("provider_org_id")
365
+ */
366
+ updateV1(providerOrgId, request = {}, requestOptions) {
367
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(providerOrgId, request, requestOptions));
368
+ }
369
+ __updateV1(providerOrgId_1) {
370
+ return __awaiter(this, arguments, void 0, function* (providerOrgId, request = {}, requestOptions) {
371
+ var _a, _b, _c, _d;
372
+ 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);
373
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
374
+ 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/xcelerator/creds/v1/${encodeURIComponent(providerOrgId)}`),
375
+ method: "PATCH",
376
+ headers: _headers,
377
+ contentType: "application/json",
378
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
379
+ requestType: "json",
380
+ body: request,
381
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
382
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
383
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
384
+ });
385
+ if (_response.ok) {
386
+ return { data: _response.body, rawResponse: _response.rawResponse };
387
+ }
388
+ if (_response.error.reason === "status-code") {
389
+ switch (_response.error.statusCode) {
390
+ case 422:
391
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
392
+ default:
393
+ throw new errors.ChrtError({
394
+ statusCode: _response.error.statusCode,
395
+ body: _response.error.body,
396
+ rawResponse: _response.rawResponse,
397
+ });
398
+ }
399
+ }
400
+ switch (_response.error.reason) {
401
+ case "non-json":
402
+ throw new errors.ChrtError({
403
+ statusCode: _response.error.statusCode,
404
+ body: _response.error.rawBody,
405
+ rawResponse: _response.rawResponse,
406
+ });
407
+ case "timeout":
408
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping_integrations/xcelerator/creds/v1/{provider_org_id}.");
409
+ case "unknown":
410
+ throw new errors.ChrtError({
411
+ message: _response.error.errorMessage,
412
+ rawResponse: _response.rawResponse,
413
+ });
414
+ }
415
+ });
416
+ }
417
+ _getAuthorizationHeader() {
418
+ return __awaiter(this, void 0, void 0, function* () {
419
+ const bearer = yield core.Supplier.get(this._options.token);
420
+ if (bearer != null) {
421
+ return `Bearer ${bearer}`;
422
+ }
423
+ return undefined;
424
+ });
425
+ }
426
+ }
427
+ exports.Creds = Creds;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/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("./requests/index.js"), exports);
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * base_url: "base_url",
8
+ * password: "password",
9
+ * schema_version: 1,
10
+ * username: "username"
11
+ * }
12
+ */
13
+ export interface XceleratorCredsClientCreate1 {
14
+ base_url: string;
15
+ description?: string | null;
16
+ password: string;
17
+ schema_version: number;
18
+ username: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface XceleratorCredsClientUpdate1 {
9
+ description?: string | null;
10
+ description__set_to_None?: boolean;
11
+ password?: string | null;
12
+ password__set_to_None?: boolean;
13
+ username?: string | null;
14
+ username__set_to_None?: boolean;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type XceleratorCredsClientCreate1 } from "./XceleratorCredsClientCreate1.js";
2
+ export { type XceleratorCredsClientUpdate1 } from "./XceleratorCredsClientUpdate1.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,4 @@
1
+ export * as creds from "./creds/index.js";
2
+ export * as orders from "./orders/index.js";
3
+ export * from "./creds/client/requests/index.js";
4
+ export * from "./orders/client/requests/index.js";