@chrt-inc/typescript-sdk 1.935.0 → 1.949.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 (216) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shippingIntegrations/client/Client.d.ts +6 -0
  3. package/dist/cjs/api/resources/shippingIntegrations/client/Client.js +22 -12
  4. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.ts +0 -16
  5. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.js +0 -71
  6. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/index.d.ts +0 -1
  7. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/Client.d.ts +26 -0
  8. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/Client.js +22 -0
  9. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/index.js +2 -0
  11. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/index.js +18 -0
  13. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.d.ts +119 -0
  14. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.js +430 -0
  15. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.js +17 -0
  17. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.d.ts +26 -0
  18. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.d.ts +15 -0
  19. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.d.ts +2 -0
  20. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.js +17 -0
  23. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/index.d.ts +4 -0
  24. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/index.js +43 -0
  25. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.ts +104 -0
  26. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.js +371 -0
  27. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.d.ts +2 -0
  28. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.js +17 -0
  29. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.d.ts +15 -0
  30. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.js +5 -0
  31. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.d.ts +48 -0
  32. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.js +5 -0
  33. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.d.ts +2 -0
  34. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.js +2 -0
  35. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.js +17 -0
  37. package/dist/cjs/api/resources/shippingIntegrations/resources/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/shippingIntegrations/resources/index.js +3 -1
  39. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.d.ts +44 -0
  40. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.js +121 -0
  41. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.js +2 -0
  43. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/index.d.ts +1 -0
  44. package/dist/cjs/api/resources/shippingIntegrations/resources/integrationExecutors/index.js +17 -0
  45. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.d.ts +35 -2
  46. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.js +152 -4
  47. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.d.ts +54 -0
  48. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.js +5 -0
  49. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.ts +6 -0
  50. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.ts +6 -0
  51. package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +0 -16
  53. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +0 -71
  54. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.ts +0 -1
  55. package/dist/cjs/api/types/EcourierCredsLimited1.d.ts +29 -0
  56. package/dist/cjs/api/types/EcourierCredsLimited1.js +5 -0
  57. package/dist/cjs/api/types/EcourierCredsListRes.d.ts +8 -0
  58. package/dist/cjs/api/types/EcourierCredsListRes.js +5 -0
  59. package/dist/cjs/api/types/EcourierCredsTestRes.d.ts +11 -0
  60. package/dist/cjs/api/types/EcourierCredsTestRes.js +5 -0
  61. package/dist/cjs/api/types/EcourierOrder1.d.ts +19 -0
  62. package/dist/cjs/api/types/EcourierOrder1.js +5 -0
  63. package/dist/cjs/api/types/EcourierOrderCustomerResponse1.d.ts +16 -0
  64. package/dist/cjs/api/types/EcourierOrderCustomerResponse1.js +5 -0
  65. package/dist/cjs/api/types/EcourierOrderListRes.d.ts +8 -0
  66. package/dist/cjs/api/types/EcourierOrderListRes.js +5 -0
  67. package/dist/cjs/api/types/EcourierOrderResponse1.d.ts +43 -0
  68. package/dist/cjs/api/types/EcourierOrderResponse1.js +5 -0
  69. package/dist/cjs/api/types/EcourierOrderSortByEnum.d.ts +10 -0
  70. package/dist/cjs/api/types/EcourierOrderSortByEnum.js +12 -0
  71. package/dist/cjs/api/types/EcourierOrderStopResponse1.d.ts +27 -0
  72. package/dist/cjs/api/types/EcourierOrderStopResponse1.js +5 -0
  73. package/dist/cjs/api/types/FraytWebhookResponse.d.ts +7 -0
  74. package/dist/cjs/api/types/FraytWebhookResponse.js +5 -0
  75. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +6 -1
  76. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +5 -0
  77. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +6 -1
  78. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +5 -0
  79. package/dist/cjs/api/types/OrgShippingIntegrationEnum1.d.ts +2 -1
  80. package/dist/cjs/api/types/OrgShippingIntegrationEnum1.js +1 -0
  81. package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutor.d.ts +17 -0
  82. package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutor.js +5 -0
  83. package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutorListRes.d.ts +8 -0
  84. package/dist/cjs/api/types/ShippingIntegrationIntegrationExecutorListRes.js +5 -0
  85. package/dist/cjs/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.d.ts +8 -0
  86. package/dist/cjs/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.js +10 -0
  87. package/dist/cjs/api/types/ShippingIntegrationOrderExpanded1.d.ts +3 -0
  88. package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.d.ts +2 -1
  89. package/dist/cjs/api/types/ShippingIntegrationOrderSortByEnum.js +1 -0
  90. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChange1.d.ts +17 -0
  91. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChange1.js +5 -0
  92. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedReq.d.ts +12 -0
  93. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedReq.js +5 -0
  94. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedRes.d.ts +6 -0
  95. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedRes.js +5 -0
  96. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.d.ts +37 -0
  97. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.js +16 -0
  98. package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.d.ts +5 -1
  99. package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.js +5 -0
  100. package/dist/cjs/api/types/index.d.ts +17 -0
  101. package/dist/cjs/api/types/index.js +17 -0
  102. package/dist/cjs/version.d.ts +1 -1
  103. package/dist/cjs/version.js +1 -1
  104. package/dist/esm/Client.mjs +2 -2
  105. package/dist/esm/api/resources/shippingIntegrations/client/Client.d.mts +6 -0
  106. package/dist/esm/api/resources/shippingIntegrations/client/Client.mjs +10 -0
  107. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.mts +0 -16
  108. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.mjs +0 -71
  109. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/index.d.mts +0 -1
  110. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/Client.d.mts +26 -0
  111. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/Client.mjs +18 -0
  112. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/index.d.mts +1 -0
  113. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/index.mjs +1 -0
  114. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/index.d.mts +2 -0
  115. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/index.mjs +2 -0
  116. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.d.mts +119 -0
  117. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.mjs +393 -0
  118. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.d.mts +2 -0
  119. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.mjs +1 -0
  120. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.d.mts +26 -0
  121. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.d.mts +15 -0
  122. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.d.mts +2 -0
  123. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.mjs +1 -0
  124. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.d.mts +1 -0
  125. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.mjs +1 -0
  126. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/index.d.mts +4 -0
  127. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/index.mjs +4 -0
  128. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.mts +104 -0
  129. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.mjs +334 -0
  130. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.d.mts +2 -0
  131. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.mjs +1 -0
  132. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.d.mts +15 -0
  133. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.mjs +4 -0
  134. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.d.mts +48 -0
  135. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.mjs +4 -0
  136. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.d.mts +2 -0
  137. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.mjs +1 -0
  138. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.d.mts +1 -0
  139. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.mjs +1 -0
  140. package/dist/esm/api/resources/shippingIntegrations/resources/index.d.mts +2 -0
  141. package/dist/esm/api/resources/shippingIntegrations/resources/index.mjs +2 -0
  142. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.d.mts +44 -0
  143. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/Client.mjs +84 -0
  144. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.d.mts +1 -0
  145. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/client/index.mjs +1 -0
  146. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/index.d.mts +1 -0
  147. package/dist/esm/api/resources/shippingIntegrations/resources/integrationExecutors/index.mjs +1 -0
  148. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.d.mts +35 -2
  149. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.mjs +152 -4
  150. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.d.mts +54 -0
  151. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.mjs +4 -0
  152. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.mts +6 -0
  153. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.mts +6 -0
  154. package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/index.d.mts +1 -0
  155. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +0 -16
  156. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +0 -71
  157. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.mts +0 -1
  158. package/dist/esm/api/types/EcourierCredsLimited1.d.mts +29 -0
  159. package/dist/esm/api/types/EcourierCredsLimited1.mjs +4 -0
  160. package/dist/esm/api/types/EcourierCredsListRes.d.mts +8 -0
  161. package/dist/esm/api/types/EcourierCredsListRes.mjs +4 -0
  162. package/dist/esm/api/types/EcourierCredsTestRes.d.mts +11 -0
  163. package/dist/esm/api/types/EcourierCredsTestRes.mjs +4 -0
  164. package/dist/esm/api/types/EcourierOrder1.d.mts +19 -0
  165. package/dist/esm/api/types/EcourierOrder1.mjs +4 -0
  166. package/dist/esm/api/types/EcourierOrderCustomerResponse1.d.mts +16 -0
  167. package/dist/esm/api/types/EcourierOrderCustomerResponse1.mjs +4 -0
  168. package/dist/esm/api/types/EcourierOrderListRes.d.mts +8 -0
  169. package/dist/esm/api/types/EcourierOrderListRes.mjs +4 -0
  170. package/dist/esm/api/types/EcourierOrderResponse1.d.mts +43 -0
  171. package/dist/esm/api/types/EcourierOrderResponse1.mjs +4 -0
  172. package/dist/esm/api/types/EcourierOrderSortByEnum.d.mts +10 -0
  173. package/dist/esm/api/types/EcourierOrderSortByEnum.mjs +9 -0
  174. package/dist/esm/api/types/EcourierOrderStopResponse1.d.mts +27 -0
  175. package/dist/esm/api/types/EcourierOrderStopResponse1.mjs +4 -0
  176. package/dist/esm/api/types/FraytWebhookResponse.d.mts +7 -0
  177. package/dist/esm/api/types/FraytWebhookResponse.mjs +4 -0
  178. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +6 -1
  179. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +5 -0
  180. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +6 -1
  181. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +5 -0
  182. package/dist/esm/api/types/OrgShippingIntegrationEnum1.d.mts +2 -1
  183. package/dist/esm/api/types/OrgShippingIntegrationEnum1.mjs +1 -0
  184. package/dist/esm/api/types/ShippingIntegrationIntegrationExecutor.d.mts +17 -0
  185. package/dist/esm/api/types/ShippingIntegrationIntegrationExecutor.mjs +4 -0
  186. package/dist/esm/api/types/ShippingIntegrationIntegrationExecutorListRes.d.mts +8 -0
  187. package/dist/esm/api/types/ShippingIntegrationIntegrationExecutorListRes.mjs +4 -0
  188. package/dist/esm/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.d.mts +8 -0
  189. package/dist/esm/api/types/ShippingIntegrationOrderCompletedAtProvenanceEnum1.mjs +7 -0
  190. package/dist/esm/api/types/ShippingIntegrationOrderExpanded1.d.mts +3 -0
  191. package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.d.mts +2 -1
  192. package/dist/esm/api/types/ShippingIntegrationOrderSortByEnum.mjs +1 -0
  193. package/dist/esm/api/types/ShippingIntegrationOrderStatusChange1.d.mts +17 -0
  194. package/dist/esm/api/types/ShippingIntegrationOrderStatusChange1.mjs +4 -0
  195. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedReq.d.mts +12 -0
  196. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedReq.mjs +4 -0
  197. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedRes.d.mts +6 -0
  198. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedRes.mjs +4 -0
  199. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.d.mts +37 -0
  200. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.mjs +13 -0
  201. package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.d.mts +5 -1
  202. package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadFieldEnum.mjs +4 -1
  203. package/dist/esm/api/types/index.d.mts +17 -0
  204. package/dist/esm/api/types/index.mjs +17 -0
  205. package/dist/esm/version.d.mts +1 -1
  206. package/dist/esm/version.mjs +1 -1
  207. package/package.json +1 -1
  208. package/reference.md +848 -162
  209. package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +0 -16
  210. package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +0 -16
  211. package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +0 -16
  212. package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +0 -16
  213. /package/dist/cjs/api/resources/shippingIntegrations/resources/{atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.js → ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.js} +0 -0
  214. /package/dist/cjs/api/resources/shippingIntegrations/resources/{xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.js → ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.js} +0 -0
  215. /package/dist/esm/api/resources/shippingIntegrations/resources/{atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs → ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.mjs} +0 -0
  216. /package/dist/esm/api/resources/shippingIntegrations/resources/{xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs → ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.mjs} +0 -0
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface ShippingIntegrationOrderStatusChangedWebhookPayload {
6
+ /** UTC timestamp when the event occurred */
7
+ event_timestamp: string;
8
+ /** The order status event that occurred */
9
+ event_type: ShippingIntegrationOrderStatusChangedWebhookPayload.EventType;
10
+ /** The provider's order ID in their TMS */
11
+ integration_order_id: string;
12
+ /** The order's new status derived from the current sync */
13
+ new_status: Chrt.ShippingIntegrationOrderStatusEnum1;
14
+ /** The order's previous status before this sync */
15
+ previous_status?: Chrt.ShippingIntegrationOrderStatusEnum1 | null;
16
+ /** The courier provider organization ID */
17
+ provider_org_id: string;
18
+ /** Associated reference numbers on the order */
19
+ reference_numbers?: string[];
20
+ /** The TMS shipping integration platform */
21
+ shipping_integration: Chrt.OrgShippingIntegrationEnum1;
22
+ /** The unified shipping integration order ID */
23
+ shipping_integration_order_id: string;
24
+ }
25
+ export declare namespace ShippingIntegrationOrderStatusChangedWebhookPayload {
26
+ /**
27
+ * The order status event that occurred
28
+ */
29
+ type EventType = "shipping_integration.order.staged" | "shipping_integration.order.in_progress" | "shipping_integration.order.completed" | "shipping_integration.order.exception" | "shipping_integration.order.cancelled";
30
+ const EventType: {
31
+ readonly ShippingIntegrationOrderStaged: "shipping_integration.order.staged";
32
+ readonly ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress";
33
+ readonly ShippingIntegrationOrderCompleted: "shipping_integration.order.completed";
34
+ readonly ShippingIntegrationOrderException: "shipping_integration.order.exception";
35
+ readonly ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled";
36
+ };
37
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ShippingIntegrationOrderStatusChangedWebhookPayload = void 0;
7
+ var ShippingIntegrationOrderStatusChangedWebhookPayload;
8
+ (function (ShippingIntegrationOrderStatusChangedWebhookPayload) {
9
+ ShippingIntegrationOrderStatusChangedWebhookPayload.EventType = {
10
+ ShippingIntegrationOrderStaged: "shipping_integration.order.staged",
11
+ ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress",
12
+ ShippingIntegrationOrderCompleted: "shipping_integration.order.completed",
13
+ ShippingIntegrationOrderException: "shipping_integration.order.exception",
14
+ ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled",
15
+ };
16
+ })(ShippingIntegrationOrderStatusChangedWebhookPayload || (exports.ShippingIntegrationOrderStatusChangedWebhookPayload = ShippingIntegrationOrderStatusChangedWebhookPayload = {}));
@@ -1,4 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ShippingIntegrationOrderTypeaheadFieldEnum = "integration_order_id";
4
+ export type ShippingIntegrationOrderTypeaheadFieldEnum = "integration_order_id" | "reference_numbers";
5
+ export declare const ShippingIntegrationOrderTypeaheadFieldEnum: {
6
+ readonly IntegrationOrderId: "integration_order_id";
7
+ readonly ReferenceNumbers: "reference_numbers";
8
+ };
@@ -3,3 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ShippingIntegrationOrderTypeaheadFieldEnum = void 0;
7
+ exports.ShippingIntegrationOrderTypeaheadFieldEnum = {
8
+ IntegrationOrderId: "integration_order_id",
9
+ ReferenceNumbers: "reference_numbers",
10
+ };
@@ -213,6 +213,15 @@ export * from "./DriverStatusEnum.js";
213
213
  export * from "./DriverUpdateAvailabilityReq.js";
214
214
  export * from "./DriverUpdateRes.js";
215
215
  export * from "./DriverWithActiveTaskGroupIds1.js";
216
+ export * from "./EcourierCredsLimited1.js";
217
+ export * from "./EcourierCredsListRes.js";
218
+ export * from "./EcourierCredsTestRes.js";
219
+ export * from "./EcourierOrder1.js";
220
+ export * from "./EcourierOrderCustomerResponse1.js";
221
+ export * from "./EcourierOrderListRes.js";
222
+ export * from "./EcourierOrderResponse1.js";
223
+ export * from "./EcourierOrderSortByEnum.js";
224
+ export * from "./EcourierOrderStopResponse1.js";
216
225
  export * from "./ExtraStopRate1.js";
217
226
  export * from "./FirebaseCloudMessagingTokenData1.js";
218
227
  export * from "./FlatFeeRate1.js";
@@ -229,6 +238,7 @@ export * from "./FlightLegWebhookInfo.js";
229
238
  export * from "./FlightTrackPosition1.js";
230
239
  export * from "./FlightTrackRes.js";
231
240
  export * from "./FlightTrackWaypoint1.js";
241
+ export * from "./FraytWebhookResponse.js";
232
242
  export * from "./FromPayables1.js";
233
243
  export * from "./FuelSurchargeRate1.js";
234
244
  export * from "./GeofencePointLocationFeature1.js";
@@ -451,10 +461,17 @@ export * from "./ShipperCoordinatorConnectionsForCoordinatorListRes.js";
451
461
  export * from "./ShipperCoordinatorConnectionsForShipperListRes.js";
452
462
  export * from "./ShippingIntegrationConnection.js";
453
463
  export * from "./ShippingIntegrationConnectionListRes.js";
464
+ export * from "./ShippingIntegrationIntegrationExecutor.js";
465
+ export * from "./ShippingIntegrationIntegrationExecutorListRes.js";
466
+ export * from "./ShippingIntegrationOrderCompletedAtProvenanceEnum1.js";
454
467
  export * from "./ShippingIntegrationOrderExpanded1.js";
455
468
  export * from "./ShippingIntegrationOrderListRes.js";
456
469
  export * from "./ShippingIntegrationOrderPlace1.js";
457
470
  export * from "./ShippingIntegrationOrderSortByEnum.js";
471
+ export * from "./ShippingIntegrationOrderStatusChange1.js";
472
+ export * from "./ShippingIntegrationOrderStatusChangedReq.js";
473
+ export * from "./ShippingIntegrationOrderStatusChangedRes.js";
474
+ export * from "./ShippingIntegrationOrderStatusChangedWebhookPayload.js";
458
475
  export * from "./ShippingIntegrationOrderStatusEnum1.js";
459
476
  export * from "./ShippingIntegrationOrderStatusSummaryRes.js";
460
477
  export * from "./ShippingIntegrationOrderTypeaheadFieldEnum.js";
@@ -229,6 +229,15 @@ __exportStar(require("./DriverStatusEnum.js"), exports);
229
229
  __exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
230
230
  __exportStar(require("./DriverUpdateRes.js"), exports);
231
231
  __exportStar(require("./DriverWithActiveTaskGroupIds1.js"), exports);
232
+ __exportStar(require("./EcourierCredsLimited1.js"), exports);
233
+ __exportStar(require("./EcourierCredsListRes.js"), exports);
234
+ __exportStar(require("./EcourierCredsTestRes.js"), exports);
235
+ __exportStar(require("./EcourierOrder1.js"), exports);
236
+ __exportStar(require("./EcourierOrderCustomerResponse1.js"), exports);
237
+ __exportStar(require("./EcourierOrderListRes.js"), exports);
238
+ __exportStar(require("./EcourierOrderResponse1.js"), exports);
239
+ __exportStar(require("./EcourierOrderSortByEnum.js"), exports);
240
+ __exportStar(require("./EcourierOrderStopResponse1.js"), exports);
232
241
  __exportStar(require("./ExtraStopRate1.js"), exports);
233
242
  __exportStar(require("./FirebaseCloudMessagingTokenData1.js"), exports);
234
243
  __exportStar(require("./FlatFeeRate1.js"), exports);
@@ -245,6 +254,7 @@ __exportStar(require("./FlightLegWebhookInfo.js"), exports);
245
254
  __exportStar(require("./FlightTrackPosition1.js"), exports);
246
255
  __exportStar(require("./FlightTrackRes.js"), exports);
247
256
  __exportStar(require("./FlightTrackWaypoint1.js"), exports);
257
+ __exportStar(require("./FraytWebhookResponse.js"), exports);
248
258
  __exportStar(require("./FromPayables1.js"), exports);
249
259
  __exportStar(require("./FuelSurchargeRate1.js"), exports);
250
260
  __exportStar(require("./GeofencePointLocationFeature1.js"), exports);
@@ -467,10 +477,17 @@ __exportStar(require("./ShipperCoordinatorConnectionsForCoordinatorListRes.js"),
467
477
  __exportStar(require("./ShipperCoordinatorConnectionsForShipperListRes.js"), exports);
468
478
  __exportStar(require("./ShippingIntegrationConnection.js"), exports);
469
479
  __exportStar(require("./ShippingIntegrationConnectionListRes.js"), exports);
480
+ __exportStar(require("./ShippingIntegrationIntegrationExecutor.js"), exports);
481
+ __exportStar(require("./ShippingIntegrationIntegrationExecutorListRes.js"), exports);
482
+ __exportStar(require("./ShippingIntegrationOrderCompletedAtProvenanceEnum1.js"), exports);
470
483
  __exportStar(require("./ShippingIntegrationOrderExpanded1.js"), exports);
471
484
  __exportStar(require("./ShippingIntegrationOrderListRes.js"), exports);
472
485
  __exportStar(require("./ShippingIntegrationOrderPlace1.js"), exports);
473
486
  __exportStar(require("./ShippingIntegrationOrderSortByEnum.js"), exports);
487
+ __exportStar(require("./ShippingIntegrationOrderStatusChange1.js"), exports);
488
+ __exportStar(require("./ShippingIntegrationOrderStatusChangedReq.js"), exports);
489
+ __exportStar(require("./ShippingIntegrationOrderStatusChangedRes.js"), exports);
490
+ __exportStar(require("./ShippingIntegrationOrderStatusChangedWebhookPayload.js"), exports);
474
491
  __exportStar(require("./ShippingIntegrationOrderStatusEnum1.js"), exports);
475
492
  __exportStar(require("./ShippingIntegrationOrderStatusSummaryRes.js"), exports);
476
493
  __exportStar(require("./ShippingIntegrationOrderTypeaheadFieldEnum.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.935.0";
1
+ export declare const SDK_VERSION = "1.949.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.935.0";
4
+ exports.SDK_VERSION = "1.949.0";
@@ -24,8 +24,8 @@ export class ChrtClient {
24
24
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
25
25
  "X-Fern-Language": "JavaScript",
26
26
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
27
- "X-Fern-SDK-Version": "1.935.0",
28
- "User-Agent": "@chrt-inc/typescript-sdk/1.935.0",
27
+ "X-Fern-SDK-Version": "1.949.0",
28
+ "User-Agent": "@chrt-inc/typescript-sdk/1.949.0",
29
29
  "X-Fern-Runtime": core.RUNTIME.type,
30
30
  "X-Fern-Runtime-Version": core.RUNTIME.version,
31
31
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -4,10 +4,12 @@
4
4
  import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
6
  import { Connections } from "../resources/connections/client/Client.mjs";
7
+ import { IntegrationExecutors } from "../resources/integrationExecutors/client/Client.mjs";
7
8
  import { Orders } from "../resources/orders/client/Client.mjs";
8
9
  import { Atlas } from "../resources/atlas/client/Client.mjs";
9
10
  import { Cxt } from "../resources/cxt/client/Client.mjs";
10
11
  import { DispatchScience } from "../resources/dispatchScience/client/Client.mjs";
12
+ import { Ecourier } from "../resources/ecourier/client/Client.mjs";
11
13
  import { Ontime360 } from "../resources/ontime360/client/Client.mjs";
12
14
  import { Xcelerator } from "../resources/xcelerator/client/Client.mjs";
13
15
  export declare namespace ShippingIntegrations {
@@ -24,18 +26,22 @@ export declare namespace ShippingIntegrations {
24
26
  export declare class ShippingIntegrations {
25
27
  protected readonly _options: ShippingIntegrations.Options;
26
28
  protected _connections: Connections | undefined;
29
+ protected _integrationExecutors: IntegrationExecutors | undefined;
27
30
  protected _orders: Orders | undefined;
28
31
  protected _atlas: Atlas | undefined;
29
32
  protected _cxt: Cxt | undefined;
30
33
  protected _dispatchScience: DispatchScience | undefined;
34
+ protected _ecourier: Ecourier | undefined;
31
35
  protected _ontime360: Ontime360 | undefined;
32
36
  protected _xcelerator: Xcelerator | undefined;
33
37
  constructor(_options?: ShippingIntegrations.Options);
34
38
  get connections(): Connections;
39
+ get integrationExecutors(): IntegrationExecutors;
35
40
  get orders(): Orders;
36
41
  get atlas(): Atlas;
37
42
  get cxt(): Cxt;
38
43
  get dispatchScience(): DispatchScience;
44
+ get ecourier(): Ecourier;
39
45
  get ontime360(): Ontime360;
40
46
  get xcelerator(): Xcelerator;
41
47
  }
@@ -2,10 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import { Connections } from "../resources/connections/client/Client.mjs";
5
+ import { IntegrationExecutors } from "../resources/integrationExecutors/client/Client.mjs";
5
6
  import { Orders } from "../resources/orders/client/Client.mjs";
6
7
  import { Atlas } from "../resources/atlas/client/Client.mjs";
7
8
  import { Cxt } from "../resources/cxt/client/Client.mjs";
8
9
  import { DispatchScience } from "../resources/dispatchScience/client/Client.mjs";
10
+ import { Ecourier } from "../resources/ecourier/client/Client.mjs";
9
11
  import { Ontime360 } from "../resources/ontime360/client/Client.mjs";
10
12
  import { Xcelerator } from "../resources/xcelerator/client/Client.mjs";
11
13
  export class ShippingIntegrations {
@@ -16,6 +18,10 @@ export class ShippingIntegrations {
16
18
  var _a;
17
19
  return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Connections(this._options)));
18
20
  }
21
+ get integrationExecutors() {
22
+ var _a;
23
+ return ((_a = this._integrationExecutors) !== null && _a !== void 0 ? _a : (this._integrationExecutors = new IntegrationExecutors(this._options)));
24
+ }
19
25
  get orders() {
20
26
  var _a;
21
27
  return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Orders(this._options)));
@@ -32,6 +38,10 @@ export class ShippingIntegrations {
32
38
  var _a;
33
39
  return ((_a = this._dispatchScience) !== null && _a !== void 0 ? _a : (this._dispatchScience = new DispatchScience(this._options)));
34
40
  }
41
+ get ecourier() {
42
+ var _a;
43
+ return ((_a = this._ecourier) !== null && _a !== void 0 ? _a : (this._ecourier = new Ecourier(this._options)));
44
+ }
35
45
  get ontime360() {
36
46
  var _a;
37
47
  return ((_a = this._ontime360) !== null && _a !== void 0 ? _a : (this._ontime360 = new Ontime360(this._options)));
@@ -100,21 +100,5 @@ export declare class Orders {
100
100
  */
101
101
  syncOneV1(request: Chrt.shippingIntegrations.atlas.AtlasOrderSyncOneReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.AtlasOrder1>;
102
102
  private __syncOneV1;
103
- /**
104
- * Returns distinct Atlas integration order IDs matching the query via case-insensitive regex within the caller's organization. | authz: caller's organization scope | () -> (list[ShippingIntegrationOrderTypeaheadResult])
105
- *
106
- * @param {Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request} request
107
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
108
- *
109
- * @throws {@link Chrt.UnprocessableEntityError}
110
- *
111
- * @example
112
- * await client.shippingIntegrations.atlas.orders.typeaheadV1({
113
- * query: "query",
114
- * limit: 1
115
- * })
116
- */
117
- typeaheadV1(request: Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.ShippingIntegrationOrderTypeaheadResult[]>;
118
- private __typeaheadV1;
119
103
  protected _getAuthorizationHeader(): Promise<string | undefined>;
120
104
  }
@@ -322,77 +322,6 @@ export class Orders {
322
322
  }
323
323
  });
324
324
  }
325
- /**
326
- * Returns distinct Atlas integration order IDs matching the query via case-insensitive regex within the caller's organization. | authz: caller's organization scope | () -> (list[ShippingIntegrationOrderTypeaheadResult])
327
- *
328
- * @param {Chrt.shippingIntegrations.atlas.OrdersTypeaheadV1Request} request
329
- * @param {Orders.RequestOptions} requestOptions - Request-specific configuration.
330
- *
331
- * @throws {@link Chrt.UnprocessableEntityError}
332
- *
333
- * @example
334
- * await client.shippingIntegrations.atlas.orders.typeaheadV1({
335
- * query: "query",
336
- * limit: 1
337
- * })
338
- */
339
- typeaheadV1(request, requestOptions) {
340
- return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
341
- }
342
- __typeaheadV1(request, requestOptions) {
343
- return __awaiter(this, void 0, void 0, function* () {
344
- var _a, _b, _c, _d, _e;
345
- const { query, limit } = request;
346
- const _queryParams = {};
347
- _queryParams["query"] = query;
348
- if (limit !== undefined) {
349
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
350
- }
351
- let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
352
- const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
353
- url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping_integrations/atlas/orders/typeahead/v1"),
354
- method: "GET",
355
- headers: _headers,
356
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
357
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
358
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
359
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
360
- });
361
- if (_response.ok) {
362
- return {
363
- data: _response.body,
364
- rawResponse: _response.rawResponse,
365
- };
366
- }
367
- if (_response.error.reason === "status-code") {
368
- switch (_response.error.statusCode) {
369
- case 422:
370
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
371
- default:
372
- throw new errors.ChrtError({
373
- statusCode: _response.error.statusCode,
374
- body: _response.error.body,
375
- rawResponse: _response.rawResponse,
376
- });
377
- }
378
- }
379
- switch (_response.error.reason) {
380
- case "non-json":
381
- throw new errors.ChrtError({
382
- statusCode: _response.error.statusCode,
383
- body: _response.error.rawBody,
384
- rawResponse: _response.rawResponse,
385
- });
386
- case "timeout":
387
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping_integrations/atlas/orders/typeahead/v1.");
388
- case "unknown":
389
- throw new errors.ChrtError({
390
- message: _response.error.errorMessage,
391
- rawResponse: _response.rawResponse,
392
- });
393
- }
394
- });
395
- }
396
325
  _getAuthorizationHeader() {
397
326
  return __awaiter(this, void 0, void 0, function* () {
398
327
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1,3 +1,2 @@
1
1
  export { type OrdersListV1Request } from "./OrdersListV1Request.mjs";
2
2
  export { type AtlasOrderSyncOneReq } from "./AtlasOrderSyncOneReq.mjs";
3
- export { type OrdersTypeaheadV1Request } from "./OrdersTypeaheadV1Request.mjs";
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import { Creds } from "../resources/creds/client/Client.mjs";
7
+ import { Orders } from "../resources/orders/client/Client.mjs";
8
+ export declare namespace Ecourier {
9
+ interface Options {
10
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
11
+ /** Specify a custom URL to connect the client to. */
12
+ baseUrl?: core.Supplier<string>;
13
+ token?: core.Supplier<core.BearerToken | undefined>;
14
+ /** Additional headers to include in requests. */
15
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
16
+ fetcher?: core.FetchFunction;
17
+ }
18
+ }
19
+ export declare class Ecourier {
20
+ protected readonly _options: Ecourier.Options;
21
+ protected _creds: Creds | undefined;
22
+ protected _orders: Orders | undefined;
23
+ constructor(_options?: Ecourier.Options);
24
+ get creds(): Creds;
25
+ get orders(): Orders;
26
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import { Creds } from "../resources/creds/client/Client.mjs";
5
+ import { Orders } from "../resources/orders/client/Client.mjs";
6
+ export class Ecourier {
7
+ constructor(_options = {}) {
8
+ this._options = _options;
9
+ }
10
+ get creds() {
11
+ var _a;
12
+ return ((_a = this._creds) !== null && _a !== void 0 ? _a : (this._creds = new Creds(this._options)));
13
+ }
14
+ get orders() {
15
+ var _a;
16
+ return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Orders(this._options)));
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,119 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../../../index.mjs";
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 e-Courier credential for one provider, without the password or session token. | () -> (EcourierCredsLimited1)
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.ecourier.creds.detailV1("provider_org_id")
43
+ */
44
+ detailV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.EcourierCredsLimited1>;
45
+ private __detailV1;
46
+ /**
47
+ * Lists the caller's e-Courier credentials, one per connected provider, without the password or session token. | () -> (EcourierCredsListRes)
48
+ *
49
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @example
52
+ * await client.shippingIntegrations.ecourier.creds.listV1()
53
+ */
54
+ listV1(requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.EcourierCredsListRes>;
55
+ private __listV1;
56
+ /**
57
+ * Confirms the caller's stored e-Courier credentials for one provider can still log in, and reports which customer the credential is scoped to. | authz: min_org_role=operator | () -> (EcourierCredsTestRes)
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.ecourier.creds.testV1("provider_org_id")
66
+ */
67
+ testV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<Chrt.EcourierCredsTestRes>;
68
+ private __testV1;
69
+ /**
70
+ * Stores e-Courier credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (EcourierCredsClientCreate1) -> (PydanticObjectId)
71
+ *
72
+ * @param {string} providerOrgId - Must be a string starting with `org_`
73
+ * @param {Chrt.shippingIntegrations.ecourier.EcourierCredsClientCreate1} request
74
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
75
+ *
76
+ * @throws {@link Chrt.UnprocessableEntityError}
77
+ *
78
+ * @example
79
+ * await client.shippingIntegrations.ecourier.creds.createV1("provider_org_id", {
80
+ * base_url: "https://bigtex.e-courier.com",
81
+ * ecourier_customer_code: "ecourier_customer_code",
82
+ * ecourier_customer_id: "ecourier_customer_id",
83
+ * ecourier_database: "ecourier_database",
84
+ * password: "password",
85
+ * schema_version: 1,
86
+ * username: "username"
87
+ * })
88
+ */
89
+ createV1(providerOrgId: string, request: Chrt.shippingIntegrations.ecourier.EcourierCredsClientCreate1, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<string>;
90
+ private __createV1;
91
+ /**
92
+ * Deletes the caller's e-Courier credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)
93
+ *
94
+ * @param {string} providerOrgId - Must be a string starting with `org_`
95
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link Chrt.UnprocessableEntityError}
98
+ *
99
+ * @example
100
+ * await client.shippingIntegrations.ecourier.creds.deleteV1("provider_org_id")
101
+ */
102
+ deleteV1(providerOrgId: string, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<boolean>;
103
+ private __deleteV1;
104
+ /**
105
+ * Updates the caller's e-Courier credentials for one provider. | authz: min_org_role=administrator | (EcourierCredsClientUpdate1) -> (bool)
106
+ *
107
+ * @param {string} providerOrgId - Must be a string starting with `org_`
108
+ * @param {Chrt.shippingIntegrations.ecourier.EcourierCredsClientUpdate1} request
109
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @throws {@link Chrt.UnprocessableEntityError}
112
+ *
113
+ * @example
114
+ * await client.shippingIntegrations.ecourier.creds.updateV1("provider_org_id")
115
+ */
116
+ updateV1(providerOrgId: string, request?: Chrt.shippingIntegrations.ecourier.EcourierCredsClientUpdate1, requestOptions?: Creds.RequestOptions): core.HttpResponsePromise<boolean>;
117
+ private __updateV1;
118
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
119
+ }