@edgebound/bigcommerce 0.3.2 → 0.4.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 (348) hide show
  1. package/README.md +473 -0
  2. package/dist/bigcommerce-entities/addresses/index.d.ts +2 -0
  3. package/dist/bigcommerce-entities/addresses/index.d.ts.map +1 -0
  4. package/dist/bigcommerce-entities/addresses/index.js +18 -0
  5. package/dist/bigcommerce-entities/addresses/index.js.map +1 -0
  6. package/dist/{addresses.d.mts → bigcommerce-entities/addresses/schemas/address.schema.d.ts} +2 -9
  7. package/dist/bigcommerce-entities/addresses/schemas/address.schema.d.ts.map +1 -0
  8. package/dist/bigcommerce-entities/addresses/schemas/address.schema.js +54 -0
  9. package/dist/bigcommerce-entities/addresses/schemas/address.schema.js.map +1 -0
  10. package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.d.ts +6 -0
  11. package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.d.ts.map +1 -0
  12. package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.js +42 -0
  13. package/dist/bigcommerce-entities/addresses/schemas/form-field.schema.js.map +1 -0
  14. package/dist/bigcommerce-entities/addresses/schemas/index.d.ts +3 -0
  15. package/dist/bigcommerce-entities/addresses/schemas/index.d.ts.map +1 -0
  16. package/dist/bigcommerce-entities/addresses/schemas/index.js +19 -0
  17. package/dist/bigcommerce-entities/addresses/schemas/index.js.map +1 -0
  18. package/dist/bigcommerce-entities/companies/companies.service.d.ts +309 -0
  19. package/dist/bigcommerce-entities/companies/companies.service.d.ts.map +1 -0
  20. package/dist/bigcommerce-entities/companies/companies.service.js +331 -0
  21. package/dist/bigcommerce-entities/companies/companies.service.js.map +1 -0
  22. package/dist/bigcommerce-entities/companies/index.d.ts +3 -0
  23. package/dist/bigcommerce-entities/companies/index.d.ts.map +1 -0
  24. package/dist/bigcommerce-entities/companies/index.js +19 -0
  25. package/dist/bigcommerce-entities/companies/index.js.map +1 -0
  26. package/dist/bigcommerce-entities/companies/schemas/company.schema.d.ts +63 -0
  27. package/dist/bigcommerce-entities/companies/schemas/company.schema.d.ts.map +1 -0
  28. package/dist/bigcommerce-entities/companies/schemas/company.schema.js +101 -0
  29. package/dist/bigcommerce-entities/companies/schemas/company.schema.js.map +1 -0
  30. package/dist/bigcommerce-entities/companies/schemas/credit.schemas.d.ts +15 -0
  31. package/dist/bigcommerce-entities/companies/schemas/credit.schemas.d.ts.map +1 -0
  32. package/dist/bigcommerce-entities/companies/schemas/credit.schemas.js +49 -0
  33. package/dist/bigcommerce-entities/companies/schemas/credit.schemas.js.map +1 -0
  34. package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.d.ts +28 -0
  35. package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.d.ts.map +1 -0
  36. package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.js +60 -0
  37. package/dist/bigcommerce-entities/companies/schemas/extra-fields.schema.js.map +1 -0
  38. package/dist/bigcommerce-entities/companies/schemas/index.d.ts +8 -0
  39. package/dist/bigcommerce-entities/companies/schemas/index.d.ts.map +1 -0
  40. package/dist/bigcommerce-entities/companies/schemas/index.js +24 -0
  41. package/dist/bigcommerce-entities/companies/schemas/index.js.map +1 -0
  42. package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.d.ts +12 -0
  43. package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.d.ts.map +1 -0
  44. package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.js +50 -0
  45. package/dist/bigcommerce-entities/companies/schemas/payment-methods.schema.js.map +1 -0
  46. package/dist/bigcommerce-entities/companies/schemas/roles.d.ts +28 -0
  47. package/dist/bigcommerce-entities/companies/schemas/roles.d.ts.map +1 -0
  48. package/dist/bigcommerce-entities/companies/schemas/roles.js +59 -0
  49. package/dist/bigcommerce-entities/companies/schemas/roles.js.map +1 -0
  50. package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.d.ts +15 -0
  51. package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.d.ts.map +1 -0
  52. package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.js +51 -0
  53. package/dist/bigcommerce-entities/companies/schemas/sales-staff.schema.js.map +1 -0
  54. package/dist/bigcommerce-entities/companies/schemas/user.schema.d.ts +51 -0
  55. package/dist/bigcommerce-entities/companies/schemas/user.schema.d.ts.map +1 -0
  56. package/dist/bigcommerce-entities/companies/schemas/user.schema.js +91 -0
  57. package/dist/bigcommerce-entities/companies/schemas/user.schema.js.map +1 -0
  58. package/dist/bigcommerce-entities/currencies/index.d.ts +2 -0
  59. package/dist/bigcommerce-entities/currencies/index.d.ts.map +1 -0
  60. package/dist/bigcommerce-entities/currencies/index.js +3 -0
  61. package/dist/bigcommerce-entities/currencies/index.js.map +1 -0
  62. package/dist/bigcommerce-entities/customers/customers.service.d.ts +270 -0
  63. package/dist/bigcommerce-entities/customers/customers.service.d.ts.map +1 -0
  64. package/dist/bigcommerce-entities/customers/customers.service.js +254 -0
  65. package/dist/bigcommerce-entities/customers/customers.service.js.map +1 -0
  66. package/dist/bigcommerce-entities/customers/index.d.ts +3 -0
  67. package/dist/bigcommerce-entities/customers/index.d.ts.map +1 -0
  68. package/dist/bigcommerce-entities/customers/index.js +19 -0
  69. package/dist/bigcommerce-entities/customers/index.js.map +1 -0
  70. package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.d.ts +35 -0
  71. package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.d.ts.map +1 -0
  72. package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.js +74 -0
  73. package/dist/bigcommerce-entities/customers/schemas/customer-group.schema.js.map +1 -0
  74. package/dist/bigcommerce-entities/customers/schemas/customer.schema.d.ts +38 -0
  75. package/dist/bigcommerce-entities/customers/schemas/customer.schema.d.ts.map +1 -0
  76. package/dist/bigcommerce-entities/customers/schemas/customer.schema.js +65 -0
  77. package/dist/bigcommerce-entities/customers/schemas/customer.schema.js.map +1 -0
  78. package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.d.ts +35 -0
  79. package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.d.ts.map +1 -0
  80. package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.js +81 -0
  81. package/dist/bigcommerce-entities/customers/schemas/find-addresses.schema.js.map +1 -0
  82. package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.d.ts +9 -0
  83. package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.d.ts.map +1 -0
  84. package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.js +54 -0
  85. package/dist/bigcommerce-entities/customers/schemas/find-customer.criteria.js.map +1 -0
  86. package/dist/bigcommerce-entities/customers/schemas/index.d.ts +5 -0
  87. package/dist/bigcommerce-entities/customers/schemas/index.d.ts.map +1 -0
  88. package/dist/bigcommerce-entities/customers/schemas/index.js +21 -0
  89. package/dist/bigcommerce-entities/customers/schemas/index.js.map +1 -0
  90. package/dist/bigcommerce-entities/index.d.ts +11 -0
  91. package/dist/bigcommerce-entities/index.d.ts.map +1 -0
  92. package/dist/bigcommerce-entities/index.js +27 -0
  93. package/dist/bigcommerce-entities/index.js.map +1 -0
  94. package/dist/bigcommerce-entities/orders/index.d.ts +3 -0
  95. package/dist/bigcommerce-entities/orders/index.d.ts.map +1 -0
  96. package/dist/bigcommerce-entities/orders/index.js +19 -0
  97. package/dist/bigcommerce-entities/orders/index.js.map +1 -0
  98. package/dist/bigcommerce-entities/orders/orders.service.d.ts +470 -0
  99. package/dist/bigcommerce-entities/orders/orders.service.d.ts.map +1 -0
  100. package/dist/bigcommerce-entities/orders/orders.service.js +274 -0
  101. package/dist/bigcommerce-entities/orders/orders.service.js.map +1 -0
  102. package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.d.ts +17 -0
  103. package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.d.ts.map +1 -0
  104. package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.js +55 -0
  105. package/dist/bigcommerce-entities/orders/schemas/find-orders.criteria.js.map +1 -0
  106. package/dist/bigcommerce-entities/orders/schemas/index.d.ts +6 -0
  107. package/dist/bigcommerce-entities/orders/schemas/index.d.ts.map +1 -0
  108. package/dist/bigcommerce-entities/orders/schemas/index.js +22 -0
  109. package/dist/bigcommerce-entities/orders/schemas/index.js.map +1 -0
  110. package/dist/bigcommerce-entities/orders/schemas/order-product.schema.d.ts +31 -0
  111. package/dist/bigcommerce-entities/orders/schemas/order-product.schema.d.ts.map +1 -0
  112. package/dist/bigcommerce-entities/orders/schemas/order-product.schema.js +64 -0
  113. package/dist/bigcommerce-entities/orders/schemas/order-product.schema.js.map +1 -0
  114. package/dist/{addresses.d.ts → bigcommerce-entities/orders/schemas/order-shipping-address.schema.d.ts} +5 -9
  115. package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.d.ts.map +1 -0
  116. package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.js +44 -0
  117. package/dist/bigcommerce-entities/orders/schemas/order-shipping-address.schema.js.map +1 -0
  118. package/dist/bigcommerce-entities/orders/schemas/order.schema.d.ts +104 -0
  119. package/dist/bigcommerce-entities/orders/schemas/order.schema.d.ts.map +1 -0
  120. package/dist/bigcommerce-entities/orders/schemas/order.schema.js +109 -0
  121. package/dist/bigcommerce-entities/orders/schemas/order.schema.js.map +1 -0
  122. package/dist/{status.schema-BgztUtGy.d.mts → bigcommerce-entities/orders/schemas/status.schema.d.ts} +4 -6
  123. package/dist/bigcommerce-entities/orders/schemas/status.schema.d.ts.map +1 -0
  124. package/dist/bigcommerce-entities/orders/schemas/status.schema.js +74 -0
  125. package/dist/bigcommerce-entities/orders/schemas/status.schema.js.map +1 -0
  126. package/dist/bigcommerce-entities/payments/index.d.ts +3 -0
  127. package/dist/bigcommerce-entities/payments/index.d.ts.map +1 -0
  128. package/dist/bigcommerce-entities/payments/index.js +19 -0
  129. package/dist/bigcommerce-entities/payments/index.js.map +1 -0
  130. package/dist/bigcommerce-entities/payments/payments.service.d.ts +40 -0
  131. package/dist/bigcommerce-entities/payments/payments.service.d.ts.map +1 -0
  132. package/dist/bigcommerce-entities/payments/payments.service.js +66 -0
  133. package/dist/bigcommerce-entities/payments/payments.service.js.map +1 -0
  134. package/dist/bigcommerce-entities/payments/schemas/index.d.ts +2 -0
  135. package/dist/bigcommerce-entities/payments/schemas/index.d.ts.map +1 -0
  136. package/dist/bigcommerce-entities/payments/schemas/index.js +18 -0
  137. package/dist/bigcommerce-entities/payments/schemas/index.js.map +1 -0
  138. package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.d.ts +14 -0
  139. package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.d.ts.map +1 -0
  140. package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.js +46 -0
  141. package/dist/bigcommerce-entities/payments/schemas/payment-methods.schema.js.map +1 -0
  142. package/dist/bigcommerce-entities/price-lists/index.d.ts +3 -0
  143. package/dist/bigcommerce-entities/price-lists/index.d.ts.map +1 -0
  144. package/dist/bigcommerce-entities/price-lists/index.js +19 -0
  145. package/dist/bigcommerce-entities/price-lists/index.js.map +1 -0
  146. package/dist/bigcommerce-entities/price-lists/price-lists.service.d.ts +97 -0
  147. package/dist/bigcommerce-entities/price-lists/price-lists.service.d.ts.map +1 -0
  148. package/dist/bigcommerce-entities/price-lists/price-lists.service.js +126 -0
  149. package/dist/bigcommerce-entities/price-lists/price-lists.service.js.map +1 -0
  150. package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.d.ts +11 -0
  151. package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.d.ts.map +1 -0
  152. package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.js +47 -0
  153. package/dist/bigcommerce-entities/price-lists/schemas/create-price-lists.schema.js.map +1 -0
  154. package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.d.ts +32 -0
  155. package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.d.ts.map +1 -0
  156. package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.js +66 -0
  157. package/dist/bigcommerce-entities/price-lists/schemas/get-prices-lists.schema.js.map +1 -0
  158. package/dist/bigcommerce-entities/price-lists/schemas/index.d.ts +3 -0
  159. package/dist/bigcommerce-entities/price-lists/schemas/index.d.ts.map +1 -0
  160. package/dist/bigcommerce-entities/price-lists/schemas/index.js +19 -0
  161. package/dist/bigcommerce-entities/price-lists/schemas/index.js.map +1 -0
  162. package/dist/bigcommerce-entities/products/index.d.ts +3 -0
  163. package/dist/bigcommerce-entities/products/index.d.ts.map +1 -0
  164. package/dist/bigcommerce-entities/products/index.js +19 -0
  165. package/dist/bigcommerce-entities/products/index.js.map +1 -0
  166. package/dist/bigcommerce-entities/products/products.service.d.ts +88 -0
  167. package/dist/bigcommerce-entities/products/products.service.d.ts.map +1 -0
  168. package/dist/bigcommerce-entities/products/products.service.js +165 -0
  169. package/dist/bigcommerce-entities/products/products.service.js.map +1 -0
  170. package/dist/bigcommerce-entities/products/schemas/index.d.ts +3 -0
  171. package/dist/bigcommerce-entities/products/schemas/index.d.ts.map +1 -0
  172. package/dist/bigcommerce-entities/products/schemas/index.js +19 -0
  173. package/dist/bigcommerce-entities/products/schemas/index.js.map +1 -0
  174. package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.d.ts +26 -0
  175. package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.d.ts.map +1 -0
  176. package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.js +57 -0
  177. package/dist/bigcommerce-entities/products/schemas/set-inventory.schema.js.map +1 -0
  178. package/dist/bigcommerce-entities/products/schemas/update-products.schema.d.ts +11 -0
  179. package/dist/bigcommerce-entities/products/schemas/update-products.schema.d.ts.map +1 -0
  180. package/dist/bigcommerce-entities/products/schemas/update-products.schema.js +44 -0
  181. package/dist/bigcommerce-entities/products/schemas/update-products.schema.js.map +1 -0
  182. package/dist/bigcommerce-entities/sales-staff/index.d.ts +3 -0
  183. package/dist/bigcommerce-entities/sales-staff/index.d.ts.map +1 -0
  184. package/dist/bigcommerce-entities/sales-staff/index.js +19 -0
  185. package/dist/bigcommerce-entities/sales-staff/index.js.map +1 -0
  186. package/dist/bigcommerce-entities/sales-staff/sales-staff.service.d.ts +78 -0
  187. package/dist/bigcommerce-entities/sales-staff/sales-staff.service.d.ts.map +1 -0
  188. package/dist/bigcommerce-entities/sales-staff/sales-staff.service.js +102 -0
  189. package/dist/bigcommerce-entities/sales-staff/sales-staff.service.js.map +1 -0
  190. package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.d.ts +31 -0
  191. package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.d.ts.map +1 -0
  192. package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.js +62 -0
  193. package/dist/bigcommerce-entities/sales-staff/schemas/get-sales-staff.schema.js.map +1 -0
  194. package/dist/bigcommerce-entities/sales-staff/schemas/index.d.ts +2 -0
  195. package/dist/bigcommerce-entities/sales-staff/schemas/index.d.ts.map +1 -0
  196. package/dist/bigcommerce-entities/sales-staff/schemas/index.js +18 -0
  197. package/dist/bigcommerce-entities/sales-staff/schemas/index.js.map +1 -0
  198. package/dist/bigcommerce-entities/webhooks/index.d.ts +2 -0
  199. package/dist/bigcommerce-entities/webhooks/index.d.ts.map +1 -0
  200. package/dist/bigcommerce-entities/webhooks/index.js +18 -0
  201. package/dist/bigcommerce-entities/webhooks/index.js.map +1 -0
  202. package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.d.ts +28 -0
  203. package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.d.ts.map +1 -0
  204. package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.js +64 -0
  205. package/dist/bigcommerce-entities/webhooks/schemas/customer.scope.schema.js.map +1 -0
  206. package/dist/bigcommerce-entities/webhooks/schemas/index.d.ts +4 -0
  207. package/dist/bigcommerce-entities/webhooks/schemas/index.d.ts.map +1 -0
  208. package/dist/bigcommerce-entities/webhooks/schemas/index.js +20 -0
  209. package/dist/bigcommerce-entities/webhooks/schemas/index.js.map +1 -0
  210. package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.d.ts +26 -0
  211. package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.d.ts.map +1 -0
  212. package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.js +57 -0
  213. package/dist/bigcommerce-entities/webhooks/schemas/order.scope.schema.js.map +1 -0
  214. package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.d.ts +54 -0
  215. package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.d.ts.map +1 -0
  216. package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.js +52 -0
  217. package/dist/bigcommerce-entities/webhooks/schemas/webhooks.schema.js.map +1 -0
  218. package/dist/bigcommerce.module.d.ts +16 -0
  219. package/dist/bigcommerce.module.d.ts.map +1 -0
  220. package/dist/bigcommerce.module.js +83 -0
  221. package/dist/bigcommerce.module.js.map +1 -0
  222. package/dist/constants.d.ts +52 -0
  223. package/dist/constants.d.ts.map +1 -0
  224. package/dist/constants.js +55 -0
  225. package/dist/constants.js.map +1 -0
  226. package/dist/core/bigcommerce-fetcher.service.d.ts +40 -0
  227. package/dist/core/bigcommerce-fetcher.service.d.ts.map +1 -0
  228. package/dist/core/bigcommerce-fetcher.service.js +133 -0
  229. package/dist/core/bigcommerce-fetcher.service.js.map +1 -0
  230. package/dist/core/bigcommerce.error.d.ts +51 -0
  231. package/dist/core/bigcommerce.error.d.ts.map +1 -0
  232. package/dist/core/bigcommerce.error.js +160 -0
  233. package/dist/core/bigcommerce.error.js.map +1 -0
  234. package/dist/core/config.module.d.ts +12 -0
  235. package/dist/core/config.module.d.ts.map +1 -0
  236. package/dist/core/config.module.js +75 -0
  237. package/dist/core/config.module.js.map +1 -0
  238. package/dist/core/config.schema.d.ts +20 -0
  239. package/dist/core/config.schema.d.ts.map +1 -0
  240. package/dist/core/config.schema.js +74 -0
  241. package/dist/core/config.schema.js.map +1 -0
  242. package/dist/core/config.service.d.ts +13 -0
  243. package/dist/core/config.service.d.ts.map +1 -0
  244. package/dist/core/config.service.js +30 -0
  245. package/dist/core/config.service.js.map +1 -0
  246. package/dist/core/index.d.ts +6 -0
  247. package/dist/core/index.d.ts.map +1 -0
  248. package/dist/core/index.js +22 -0
  249. package/dist/core/index.js.map +1 -0
  250. package/dist/index.d.ts +5 -36
  251. package/dist/index.d.ts.map +1 -0
  252. package/dist/index.js +18 -371
  253. package/dist/index.js.map +1 -1
  254. package/dist/utils/chunk.d.ts +2 -0
  255. package/dist/utils/chunk.d.ts.map +1 -0
  256. package/dist/utils/chunk.js +12 -0
  257. package/dist/utils/chunk.js.map +1 -0
  258. package/dist/utils/concurrency.d.ts +11 -0
  259. package/dist/utils/concurrency.d.ts.map +1 -0
  260. package/dist/utils/concurrency.js +20 -0
  261. package/dist/utils/concurrency.js.map +1 -0
  262. package/dist/utils/index.d.ts +5 -0
  263. package/dist/utils/index.d.ts.map +1 -0
  264. package/dist/utils/index.js +10 -0
  265. package/dist/utils/index.js.map +1 -0
  266. package/dist/utils/validation.error.d.ts +6 -0
  267. package/dist/utils/validation.error.d.ts.map +1 -0
  268. package/dist/utils/validation.error.js +50 -0
  269. package/dist/utils/validation.error.js.map +1 -0
  270. package/dist/utils/while.d.ts +8 -0
  271. package/dist/utils/while.d.ts.map +1 -0
  272. package/dist/utils/while.js +23 -0
  273. package/dist/utils/while.js.map +1 -0
  274. package/package.json +23 -67
  275. package/dist/addresses.js +0 -69
  276. package/dist/addresses.js.map +0 -1
  277. package/dist/addresses.mjs +0 -9
  278. package/dist/addresses.mjs.map +0 -1
  279. package/dist/bigcommerce.fetcher-Ujztbs8P.d.mts +0 -90
  280. package/dist/bigcommerce.fetcher-Ujztbs8P.d.ts +0 -90
  281. package/dist/chunk-BWLQCNNX.mjs +0 -30
  282. package/dist/chunk-BWLQCNNX.mjs.map +0 -1
  283. package/dist/chunk-CERZFSUE.mjs +0 -20
  284. package/dist/chunk-CERZFSUE.mjs.map +0 -1
  285. package/dist/chunk-V2WZ3SDN.mjs +0 -333
  286. package/dist/chunk-V2WZ3SDN.mjs.map +0 -1
  287. package/dist/chunk-XONZC4AG.mjs +0 -45
  288. package/dist/chunk-XONZC4AG.mjs.map +0 -1
  289. package/dist/companies.d.mts +0 -346
  290. package/dist/companies.d.ts +0 -346
  291. package/dist/companies.js +0 -837
  292. package/dist/companies.js.map +0 -1
  293. package/dist/companies.mjs +0 -467
  294. package/dist/companies.mjs.map +0 -1
  295. package/dist/currencies.d.mts +0 -2
  296. package/dist/currencies.d.ts +0 -2
  297. package/dist/currencies.js +0 -2
  298. package/dist/currencies.js.map +0 -1
  299. package/dist/currencies.mjs +0 -1
  300. package/dist/currencies.mjs.map +0 -1
  301. package/dist/customers.d.mts +0 -235
  302. package/dist/customers.d.ts +0 -235
  303. package/dist/customers.js +0 -679
  304. package/dist/customers.js.map +0 -1
  305. package/dist/customers.mjs +0 -320
  306. package/dist/customers.mjs.map +0 -1
  307. package/dist/index.d.mts +0 -36
  308. package/dist/index.mjs +0 -39
  309. package/dist/index.mjs.map +0 -1
  310. package/dist/orders.d.mts +0 -492
  311. package/dist/orders.d.ts +0 -492
  312. package/dist/orders.js +0 -723
  313. package/dist/orders.js.map +0 -1
  314. package/dist/orders.mjs +0 -312
  315. package/dist/orders.mjs.map +0 -1
  316. package/dist/payments.d.mts +0 -28
  317. package/dist/payments.d.ts +0 -28
  318. package/dist/payments.js +0 -372
  319. package/dist/payments.js.map +0 -1
  320. package/dist/payments.mjs +0 -43
  321. package/dist/payments.mjs.map +0 -1
  322. package/dist/priceLists.d.mts +0 -81
  323. package/dist/priceLists.d.ts +0 -81
  324. package/dist/priceLists.js +0 -465
  325. package/dist/priceLists.js.map +0 -1
  326. package/dist/priceLists.mjs +0 -118
  327. package/dist/priceLists.mjs.map +0 -1
  328. package/dist/products.d.mts +0 -52
  329. package/dist/products.d.ts +0 -52
  330. package/dist/products.js +0 -470
  331. package/dist/products.js.map +0 -1
  332. package/dist/products.mjs +0 -120
  333. package/dist/products.mjs.map +0 -1
  334. package/dist/salesStaff.d.mts +0 -64
  335. package/dist/salesStaff.d.ts +0 -64
  336. package/dist/salesStaff.js +0 -426
  337. package/dist/salesStaff.js.map +0 -1
  338. package/dist/salesStaff.mjs +0 -82
  339. package/dist/salesStaff.mjs.map +0 -1
  340. package/dist/status.schema-BgztUtGy.d.ts +0 -39
  341. package/dist/validation.error-CHLpPYC_.d.mts +0 -14
  342. package/dist/validation.error-CHLpPYC_.d.ts +0 -14
  343. package/dist/webhooks.d.mts +0 -109
  344. package/dist/webhooks.d.ts +0 -109
  345. package/dist/webhooks.js +0 -157
  346. package/dist/webhooks.js.map +0 -1
  347. package/dist/webhooks.mjs +0 -79
  348. package/dist/webhooks.mjs.map +0 -1
package/README.md ADDED
@@ -0,0 +1,473 @@
1
+ # @edgebound/bigcommerce
2
+
3
+ A comprehensive NestJS module for integrating with BigCommerce APIs. Provides type-safe, validated services for managing companies, customers, orders, products, payments, and more.
4
+
5
+ ## Features
6
+
7
+ - 🔒 **Type-safe** - Full TypeScript support with Zod validation
8
+ - 🔄 **Automatic retries** - Built-in retry logic for failed requests
9
+ - 📦 **Batch operations** - Efficient concurrent processing for bulk operations
10
+ - 🔌 **NestJS integration** - Native dependency injection support
11
+ - ✅ **Input validation** - Automatic request validation using Zod schemas
12
+ - 🚀 **Pagination helpers** - Automatic pagination handling for large datasets
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ npm install @edgebound/bigcommerce
18
+ # or
19
+ pnpm add @edgebound/bigcommerce
20
+ # or
21
+ yarn add @edgebound/bigcommerce
22
+ ```
23
+
24
+ ### Peer Dependencies
25
+
26
+ ```bash
27
+ npm install @nestjs/common @nestjs/config zod neverthrow neverthrow-result-utils reflect-metadata rxjs p-limit
28
+ ```
29
+
30
+ ## Quick Start
31
+
32
+ ### 1. Import the Module
33
+
34
+ ```typescript
35
+ import { Module } from '@nestjs/common';
36
+ import { BigCommerceModule } from '@edgebound/bigcommerce';
37
+
38
+ @Module({
39
+ imports: [
40
+ // Option 1: Use environment variables (default)
41
+ BigCommerceModule,
42
+
43
+ // Option 2: Provide configuration directly
44
+ BigCommerceModule.forRootAsync({
45
+ store: {
46
+ hash: 'your-store-hash'
47
+ },
48
+ credentials: {
49
+ clientId: 'your-client-id',
50
+ clientSecret: 'your-client-secret',
51
+ accessToken: 'your-access-token'
52
+ }
53
+ })
54
+ ],
55
+ })
56
+ export class AppModule {}
57
+ ```
58
+
59
+ ### 2. Environment Variables (Option 1)
60
+
61
+ Create a `.env` file:
62
+
63
+ ```env
64
+ BIGCOMMERCE_STORE_HASH=your-store-hash
65
+ BIGCOMMERCE_CLIENT_ID=your-client-id
66
+ BIGCOMMERCE_CLIENT_SECRET=your-client-secret
67
+ BIGCOMMERCE_ACCESS_TOKEN=your-access-token
68
+ ```
69
+
70
+ ### 3. Use Services
71
+
72
+ ```typescript
73
+ import { Injectable } from '@nestjs/common';
74
+ import { BigCommerceCompaniesService, BigCommerceOrdersService } from '@edgebound/bigcommerce';
75
+
76
+ @Injectable()
77
+ export class MyService {
78
+ constructor(
79
+ private readonly companiesService: BigCommerceCompaniesService,
80
+ private readonly ordersService: BigCommerceOrdersService,
81
+ ) {}
82
+
83
+ async createCompany() {
84
+ const result = await this.companiesService.createCompany({
85
+ company_name: 'Acme Corporation',
86
+ company_email: 'contact@acme.com',
87
+ });
88
+
89
+ return result.match(
90
+ (company) => company,
91
+ (error) => {
92
+ throw error;
93
+ }
94
+ );
95
+ }
96
+ }
97
+ ```
98
+
99
+ ## Available Services
100
+
101
+ ### BigCommerceCompaniesService
102
+
103
+ Manage B2B companies, users, roles, and company settings.
104
+
105
+ ```typescript
106
+ // Create a company
107
+ await companiesService.createCompany({
108
+ company_name: 'Acme Corp',
109
+ company_email: 'contact@acme.com'
110
+ });
111
+
112
+ // Create a company user
113
+ await companiesService.createCompanyUser({
114
+ email: 'john@acme.com',
115
+ first_name: 'John',
116
+ last_name: 'Doe',
117
+ company_id: 1,
118
+ role_id: 2
119
+ });
120
+
121
+ // Set company credit limit
122
+ await companiesService.setCompanyCredit({
123
+ companyId: 1,
124
+ data: {
125
+ credit_limit: 10000,
126
+ currency_code: 'USD'
127
+ }
128
+ });
129
+
130
+ // Assign sales staff to companies
131
+ await companiesService.assignSalesStaffToCompany({
132
+ assignments: [
133
+ { companyId: 1, salesStaffId: 10 },
134
+ { companyId: 2, salesStaffId: 11 }
135
+ ]
136
+ });
137
+
138
+ // Get company details
139
+ await companiesService.getCompanyDetails({ companyId: 1 });
140
+
141
+ // Get all company roles (auto-paginated)
142
+ await companiesService.getAllCompanyRoles();
143
+
144
+ // Get all company extra fields (auto-paginated)
145
+ await companiesService.getAllCompanyExtraFields();
146
+
147
+ // Set payment methods for a company
148
+ await companiesService.setCompanyPaymentMethods({
149
+ companyId: 1,
150
+ data: {
151
+ payment_methods: ['credit_card', 'purchase_order']
152
+ }
153
+ });
154
+
155
+ // Get user by customer ID
156
+ await companiesService.getUserByCustomerId({ customerId: 123 });
157
+ ```
158
+
159
+ ### BigCommerceCustomersService
160
+
161
+ Manage customers, customer groups, and customer addresses.
162
+
163
+ ```typescript
164
+ // Create customer group
165
+ await customersService.createCustomerGroup({
166
+ name: 'VIP Customers',
167
+ discount_rules: [
168
+ {
169
+ type: 'price_list',
170
+ price_list_id: 1
171
+ }
172
+ ]
173
+ });
174
+
175
+ // Find customers with criteria
176
+ await customersService.findCustomers({
177
+ 'email:in': ['john@example.com', 'jane@example.com'],
178
+ page: 1,
179
+ limit: 50
180
+ });
181
+
182
+ // Get all customers (auto-paginated)
183
+ await customersService.getAllCustomersBy({
184
+ 'company:in': ['Acme Corp']
185
+ });
186
+
187
+ // Find customer addresses
188
+ await customersService.findCustomerAddresses({
189
+ 'customer_id:in': [1, 2, 3],
190
+ page: 1,
191
+ limit: 50
192
+ });
193
+
194
+ // Get all customer addresses (auto-paginated)
195
+ await customersService.getAllCustomerAddressesBy({
196
+ 'customer_id:in': [1, 2, 3]
197
+ });
198
+
199
+ // Find customer groups
200
+ await customersService.findCustomersGroups({
201
+ page: 1,
202
+ limit: 50
203
+ });
204
+
205
+ // Get all customer groups (auto-paginated)
206
+ await customersService.getAllCustomerGroupsBy();
207
+
208
+ // Get specific customer
209
+ await customersService.getCustomer(123);
210
+
211
+ // Set customer group price list
212
+ await customersService.setCustomerGroupPriceList({
213
+ customerGroupId: 1,
214
+ data: {
215
+ discount_rules: [
216
+ {
217
+ type: 'price_list',
218
+ price_list_id: 2
219
+ }
220
+ ]
221
+ }
222
+ });
223
+ ```
224
+
225
+ ### BigCommerceOrdersService
226
+
227
+ Manage orders, shipping addresses, and order products.
228
+
229
+ ```typescript
230
+ // Find orders with criteria
231
+ await ordersService.findOrders({
232
+ min_date_created: '2024-01-01',
233
+ status_id: 11,
234
+ page: 1,
235
+ limit: 50
236
+ });
237
+
238
+ // Get all orders (auto-paginated)
239
+ await ordersService.getAllOrdersBy({
240
+ min_date_created: '2024-01-01',
241
+ status_id: 11
242
+ });
243
+
244
+ // Get specific order
245
+ await ordersService.getOrder(12345);
246
+
247
+ // Find order shipping addresses
248
+ await ordersService.findOrderShippingAddresses(12345, 1, 50);
249
+
250
+ // Get all order shipping addresses (auto-paginated)
251
+ await ordersService.getAllOrderShippingAddresses(12345);
252
+
253
+ // Find order products
254
+ await ordersService.findOrderProducts(12345, 1, 50);
255
+
256
+ // Get all order products (auto-paginated)
257
+ await ordersService.getAllOrderProducts(12345);
258
+ ```
259
+
260
+ ### BigCommerceProductsService
261
+
262
+ Manage product inventory and visibility.
263
+
264
+ ```typescript
265
+ // Set products inventory in batch
266
+ await productsService.setProductsInventory('Inventory adjustment', [
267
+ {
268
+ product_id: 1,
269
+ variant_id: 10,
270
+ location_id: 1,
271
+ quantity: 100
272
+ },
273
+ {
274
+ product_id: 2,
275
+ variant_id: 20,
276
+ location_id: 1,
277
+ quantity: 50
278
+ }
279
+ ]);
280
+
281
+ // Update products in batch
282
+ await productsService.updateProducts([
283
+ {
284
+ id: 1,
285
+ name: 'Updated Product Name',
286
+ price: 29.99
287
+ },
288
+ {
289
+ id: 2,
290
+ is_visible: true
291
+ }
292
+ ]);
293
+
294
+ // Set product visibility
295
+ await productsService.setProductVisibility([
296
+ {
297
+ id: 1,
298
+ is_visible: true
299
+ },
300
+ {
301
+ id: 2,
302
+ is_visible: false
303
+ }
304
+ ]);
305
+ ```
306
+
307
+ ### BigCommercePaymentsService
308
+
309
+ Manage payment methods.
310
+
311
+ ```typescript
312
+ // Get available payment methods
313
+ await paymentsService.getPaymentMethods();
314
+ ```
315
+
316
+ ### BigCommercePriceListsService
317
+
318
+ Manage price lists.
319
+
320
+ ```typescript
321
+ // Create price list
322
+ await priceListsService.createPriceList({
323
+ name: 'Wholesale Prices',
324
+ active: true
325
+ });
326
+
327
+ // Find price lists with criteria
328
+ await priceListsService.findPriceLists({
329
+ page: 1,
330
+ limit: 50
331
+ });
332
+
333
+ // Get all price lists (auto-paginated)
334
+ await priceListsService.getAllPriceListsBy();
335
+ ```
336
+
337
+ ### BigCommerceSalesStaffService
338
+
339
+ Manage sales staff assignments.
340
+
341
+ ```typescript
342
+ // Find sales staff with criteria
343
+ await salesStaffService.findSalesStaff({
344
+ limit: 50,
345
+ offset: 0
346
+ });
347
+
348
+ // Get all sales staff (auto-paginated)
349
+ await salesStaffService.getAllSalesStaffBy();
350
+ ```
351
+
352
+ ## Error Handling
353
+
354
+ All service methods return `ResultAsync` from the `neverthrow` library, providing type-safe error handling:
355
+
356
+ ```typescript
357
+ const result = await companiesService.createCompany({
358
+ company_name: 'Acme Corp',
359
+ company_email: 'contact@acme.com'
360
+ });
361
+
362
+ result.match(
363
+ (company) => {
364
+ console.log('Company created:', company);
365
+ },
366
+ (error) => {
367
+ if (error instanceof InputDataValidationError) {
368
+ console.error('Validation error:', error.details);
369
+ } else if (error instanceof BigCommerceError) {
370
+ console.error('API error:', error.message);
371
+ } else {
372
+ console.error('Unknown error:', error);
373
+ }
374
+ }
375
+ );
376
+ ```
377
+
378
+ ## Advanced Features
379
+
380
+ ### Automatic Pagination
381
+
382
+ Services provide `getAll*` methods that automatically handle pagination:
383
+
384
+ ```typescript
385
+ // Fetches all pages automatically
386
+ const allCustomers = await customersService.getAllCustomersBy({
387
+ 'company:in': ['Acme Corp']
388
+ });
389
+ ```
390
+
391
+ ### Batch Operations with Concurrency
392
+
393
+ Batch operations are automatically processed with optimal concurrency:
394
+
395
+ ```typescript
396
+ // Processes in batches with controlled concurrency
397
+ await productsService.setProductsInventory('Stock update', [
398
+ // ... hundreds of items
399
+ ]);
400
+ ```
401
+
402
+ ### Input Validation
403
+
404
+ All inputs are automatically validated using Zod schemas:
405
+
406
+ ```typescript
407
+ // Invalid input will be caught before making API request
408
+ await companiesService.createCompany({
409
+ company_name: '', // Error: company_name is required
410
+ });
411
+ ```
412
+
413
+ ### Automatic Retries
414
+
415
+ Failed requests are automatically retried with exponential backoff:
416
+
417
+ ```typescript
418
+ // Automatically retries on transient failures
419
+ await ordersService.getOrder(12345);
420
+ ```
421
+
422
+ ## Configuration
423
+
424
+ ### Default Configuration
425
+
426
+ The module uses sensible defaults for batch sizes, concurrency limits, and retry policies. These are defined in the `DEFAULTS` constant.
427
+
428
+ ### Custom Configuration
429
+
430
+ You can override defaults by providing custom configuration:
431
+
432
+ ```typescript
433
+ BigCommerceModule.forRootAsync({
434
+ store: {
435
+ hash: process.env.BIGCOMMERCE_STORE_HASH
436
+ },
437
+ credentials: {
438
+ clientId: process.env.BIGCOMMERCE_CLIENT_ID,
439
+ clientSecret: process.env.BIGCOMMERCE_CLIENT_SECRET,
440
+ accessToken: process.env.BIGCOMMERCE_ACCESS_TOKEN
441
+ }
442
+ })
443
+ ```
444
+
445
+ ## TypeScript Support
446
+
447
+ Full TypeScript support with exported types:
448
+
449
+ ```typescript
450
+ import type {
451
+ CreateCompanySchema,
452
+ CreateCompanyResponseSchema,
453
+ FindCustomersCriteriaSchema,
454
+ // ... and many more
455
+ } from '@edgebound/bigcommerce';
456
+ ```
457
+
458
+ ## API Reference
459
+
460
+ For detailed API documentation, refer to the JSDoc comments in the source code. Each service method includes:
461
+
462
+ - Parameter descriptions
463
+ - Return type information
464
+ - Usage examples
465
+ - Error scenarios
466
+
467
+ ## License
468
+
469
+ MIT
470
+
471
+ ## Support
472
+
473
+ For issues and feature requests, please open an issue on the GitHub repository.
@@ -0,0 +1,2 @@
1
+ export * from './schemas';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bigcommerce-entities/addresses/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./schemas"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/bigcommerce-entities/addresses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
@@ -1,6 +1,5 @@
1
1
  import * as z from 'zod';
2
-
3
- declare const AddressSchema: z.ZodObject<{
2
+ export declare const AddressSchema: z.ZodObject<{
4
3
  first_name: z.ZodString;
5
4
  last_name: z.ZodString;
6
5
  company: z.ZodString;
@@ -18,10 +17,4 @@ declare const AddressSchema: z.ZodObject<{
18
17
  value: z.ZodString;
19
18
  }, z.core.$strip>>;
20
19
  }, z.core.$strip>;
21
-
22
- declare const AddressFormFieldSchema: z.ZodObject<{
23
- name: z.ZodString;
24
- value: z.ZodString;
25
- }, z.core.$strip>;
26
-
27
- export { AddressFormFieldSchema, AddressSchema };
20
+ //# sourceMappingURL=address.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/addresses/schemas/address.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;iBAcxB,CAAC"}
@@ -0,0 +1,54 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.AddressSchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ const form_field_schema_1 = require("./form-field.schema");
39
+ exports.AddressSchema = z.object({
40
+ first_name: z.string(),
41
+ last_name: z.string(),
42
+ company: z.string(),
43
+ street_1: z.string(),
44
+ street_2: z.string(),
45
+ city: z.string(),
46
+ state: z.string(),
47
+ zip: z.string(),
48
+ country: z.string(),
49
+ country_iso2: z.string(),
50
+ phone: z.string(),
51
+ email: z.string(),
52
+ form_fields: z.array(form_field_schema_1.AddressFormFieldSchema),
53
+ });
54
+ //# sourceMappingURL=address.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"address.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/addresses/schemas/address.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2DAA6D;AAEhD,QAAA,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,0CAAsB,CAAC;CAC7C,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as z from 'zod';
2
+ export declare const AddressFormFieldSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ value: z.ZodString;
5
+ }, z.core.$strip>;
6
+ //# sourceMappingURL=form-field.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field.schema.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/addresses/schemas/form-field.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC"}
@@ -0,0 +1,42 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.AddressFormFieldSchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ exports.AddressFormFieldSchema = z.object({
39
+ name: z.string(),
40
+ value: z.string(),
41
+ });
42
+ //# sourceMappingURL=form-field.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field.schema.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/addresses/schemas/form-field.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEZ,QAAA,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './address.schema';
2
+ export * from './form-field.schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/addresses/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,19 @@
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("./address.schema"), exports);
18
+ __exportStar(require("./form-field.schema"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bigcommerce-entities/addresses/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,sDAAoC"}