@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,430 @@
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 e-Courier credential for one provider, without the password or session token. | () -> (EcourierCredsLimited1)
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.ecourier.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/ecourier/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/ecourier/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 e-Courier credentials, one per connected provider, without the password or session token. | () -> (EcourierCredsListRes)
119
+ *
120
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
121
+ *
122
+ * @example
123
+ * await client.shippingIntegrations.ecourier.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/ecourier/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/ecourier/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 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)
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.ecourier.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/ecourier/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/ecourier/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 e-Courier credentials for one provider on behalf of the caller's organization. | authz: min_org_role=administrator | (EcourierCredsClientCreate1) -> (PydanticObjectId)
229
+ *
230
+ * @param {string} providerOrgId - Must be a string starting with `org_`
231
+ * @param {Chrt.shippingIntegrations.ecourier.EcourierCredsClientCreate1} request
232
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
233
+ *
234
+ * @throws {@link Chrt.UnprocessableEntityError}
235
+ *
236
+ * @example
237
+ * await client.shippingIntegrations.ecourier.creds.createV1("provider_org_id", {
238
+ * base_url: "https://bigtex.e-courier.com",
239
+ * ecourier_customer_code: "ecourier_customer_code",
240
+ * ecourier_customer_id: "ecourier_customer_id",
241
+ * ecourier_database: "ecourier_database",
242
+ * password: "password",
243
+ * schema_version: 1,
244
+ * username: "username"
245
+ * })
246
+ */
247
+ createV1(providerOrgId, request, requestOptions) {
248
+ return core.HttpResponsePromise.fromPromise(this.__createV1(providerOrgId, request, requestOptions));
249
+ }
250
+ __createV1(providerOrgId, request, requestOptions) {
251
+ return __awaiter(this, void 0, void 0, function* () {
252
+ var _a, _b, _c, _d;
253
+ 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);
254
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
255
+ 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/ecourier/creds/v1/${encodeURIComponent(providerOrgId)}`),
256
+ method: "POST",
257
+ headers: _headers,
258
+ contentType: "application/json",
259
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
260
+ requestType: "json",
261
+ body: request,
262
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
263
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
264
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
265
+ });
266
+ if (_response.ok) {
267
+ return { data: _response.body, rawResponse: _response.rawResponse };
268
+ }
269
+ if (_response.error.reason === "status-code") {
270
+ switch (_response.error.statusCode) {
271
+ case 422:
272
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
273
+ default:
274
+ throw new errors.ChrtError({
275
+ statusCode: _response.error.statusCode,
276
+ body: _response.error.body,
277
+ rawResponse: _response.rawResponse,
278
+ });
279
+ }
280
+ }
281
+ switch (_response.error.reason) {
282
+ case "non-json":
283
+ throw new errors.ChrtError({
284
+ statusCode: _response.error.statusCode,
285
+ body: _response.error.rawBody,
286
+ rawResponse: _response.rawResponse,
287
+ });
288
+ case "timeout":
289
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping_integrations/ecourier/creds/v1/{provider_org_id}.");
290
+ case "unknown":
291
+ throw new errors.ChrtError({
292
+ message: _response.error.errorMessage,
293
+ rawResponse: _response.rawResponse,
294
+ });
295
+ }
296
+ });
297
+ }
298
+ /**
299
+ * Deletes the caller's e-Courier credentials for one provider, stopping future syncs. | authz: min_org_role=administrator | () -> (bool)
300
+ *
301
+ * @param {string} providerOrgId - Must be a string starting with `org_`
302
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
303
+ *
304
+ * @throws {@link Chrt.UnprocessableEntityError}
305
+ *
306
+ * @example
307
+ * await client.shippingIntegrations.ecourier.creds.deleteV1("provider_org_id")
308
+ */
309
+ deleteV1(providerOrgId, requestOptions) {
310
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(providerOrgId, requestOptions));
311
+ }
312
+ __deleteV1(providerOrgId, requestOptions) {
313
+ return __awaiter(this, void 0, void 0, function* () {
314
+ var _a, _b, _c, _d;
315
+ 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);
316
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
317
+ 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/ecourier/creds/v1/${encodeURIComponent(providerOrgId)}`),
318
+ method: "DELETE",
319
+ headers: _headers,
320
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
321
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
322
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
323
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
324
+ });
325
+ if (_response.ok) {
326
+ return { data: _response.body, rawResponse: _response.rawResponse };
327
+ }
328
+ if (_response.error.reason === "status-code") {
329
+ switch (_response.error.statusCode) {
330
+ case 422:
331
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
332
+ default:
333
+ throw new errors.ChrtError({
334
+ statusCode: _response.error.statusCode,
335
+ body: _response.error.body,
336
+ rawResponse: _response.rawResponse,
337
+ });
338
+ }
339
+ }
340
+ switch (_response.error.reason) {
341
+ case "non-json":
342
+ throw new errors.ChrtError({
343
+ statusCode: _response.error.statusCode,
344
+ body: _response.error.rawBody,
345
+ rawResponse: _response.rawResponse,
346
+ });
347
+ case "timeout":
348
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping_integrations/ecourier/creds/v1/{provider_org_id}.");
349
+ case "unknown":
350
+ throw new errors.ChrtError({
351
+ message: _response.error.errorMessage,
352
+ rawResponse: _response.rawResponse,
353
+ });
354
+ }
355
+ });
356
+ }
357
+ /**
358
+ * Updates the caller's e-Courier credentials for one provider. | authz: min_org_role=administrator | (EcourierCredsClientUpdate1) -> (bool)
359
+ *
360
+ * @param {string} providerOrgId - Must be a string starting with `org_`
361
+ * @param {Chrt.shippingIntegrations.ecourier.EcourierCredsClientUpdate1} request
362
+ * @param {Creds.RequestOptions} requestOptions - Request-specific configuration.
363
+ *
364
+ * @throws {@link Chrt.UnprocessableEntityError}
365
+ *
366
+ * @example
367
+ * await client.shippingIntegrations.ecourier.creds.updateV1("provider_org_id")
368
+ */
369
+ updateV1(providerOrgId, request = {}, requestOptions) {
370
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(providerOrgId, request, requestOptions));
371
+ }
372
+ __updateV1(providerOrgId_1) {
373
+ return __awaiter(this, arguments, void 0, function* (providerOrgId, request = {}, requestOptions) {
374
+ var _a, _b, _c, _d;
375
+ 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);
376
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
377
+ 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/ecourier/creds/v1/${encodeURIComponent(providerOrgId)}`),
378
+ method: "PATCH",
379
+ headers: _headers,
380
+ contentType: "application/json",
381
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
382
+ requestType: "json",
383
+ body: request,
384
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
385
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
386
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
387
+ });
388
+ if (_response.ok) {
389
+ return { data: _response.body, rawResponse: _response.rawResponse };
390
+ }
391
+ if (_response.error.reason === "status-code") {
392
+ switch (_response.error.statusCode) {
393
+ case 422:
394
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
395
+ default:
396
+ throw new errors.ChrtError({
397
+ statusCode: _response.error.statusCode,
398
+ body: _response.error.body,
399
+ rawResponse: _response.rawResponse,
400
+ });
401
+ }
402
+ }
403
+ switch (_response.error.reason) {
404
+ case "non-json":
405
+ throw new errors.ChrtError({
406
+ statusCode: _response.error.statusCode,
407
+ body: _response.error.rawBody,
408
+ rawResponse: _response.rawResponse,
409
+ });
410
+ case "timeout":
411
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping_integrations/ecourier/creds/v1/{provider_org_id}.");
412
+ case "unknown":
413
+ throw new errors.ChrtError({
414
+ message: _response.error.errorMessage,
415
+ rawResponse: _response.rawResponse,
416
+ });
417
+ }
418
+ });
419
+ }
420
+ _getAuthorizationHeader() {
421
+ return __awaiter(this, void 0, void 0, function* () {
422
+ const bearer = yield core.Supplier.get(this._options.token);
423
+ if (bearer != null) {
424
+ return `Bearer ${bearer}`;
425
+ }
426
+ return undefined;
427
+ });
428
+ }
429
+ }
430
+ 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,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * base_url: "https://bigtex.e-courier.com",
8
+ * ecourier_customer_code: "ecourier_customer_code",
9
+ * ecourier_customer_id: "ecourier_customer_id",
10
+ * ecourier_database: "ecourier_database",
11
+ * password: "password",
12
+ * schema_version: 1,
13
+ * username: "username"
14
+ * }
15
+ */
16
+ export interface EcourierCredsClientCreate1 {
17
+ /** Origin of the courier's e-Courier host, with no path. The request path is derived from `ecourier_database`. */
18
+ base_url: string;
19
+ ecourier_customer_code: string;
20
+ ecourier_customer_id: string;
21
+ ecourier_database: string;
22
+ notes?: string | null;
23
+ password: string;
24
+ schema_version: number;
25
+ username: string;
26
+ }
@@ -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 EcourierCredsClientUpdate1 {
9
+ ecourier_customer_code?: string | null;
10
+ ecourier_customer_id?: string | null;
11
+ notes?: string | null;
12
+ notes__set_to_None?: boolean;
13
+ password?: string | null;
14
+ password__set_to_None?: boolean;
15
+ }
@@ -0,0 +1,2 @@
1
+ export { type EcourierCredsClientCreate1 } from "./EcourierCredsClientCreate1.js";
2
+ export { type EcourierCredsClientUpdate1 } from "./EcourierCredsClientUpdate1.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";
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.orders = exports.creds = void 0;
40
+ exports.creds = __importStar(require("./creds/index.js"));
41
+ exports.orders = __importStar(require("./orders/index.js"));
42
+ __exportStar(require("./creds/client/requests/index.js"), exports);
43
+ __exportStar(require("./orders/client/requests/index.js"), exports);