@medusajs/types 3.0.0-preview-20250211091350 → 3.0.0-preview-20250406180144

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 (264) hide show
  1. package/dist/cache/service.d.ts +27 -0
  2. package/dist/cache/service.d.ts.map +1 -1
  3. package/dist/cart/common.d.ts +81 -0
  4. package/dist/cart/common.d.ts.map +1 -1
  5. package/dist/cart/mutations.d.ts +17 -2
  6. package/dist/cart/mutations.d.ts.map +1 -1
  7. package/dist/cart/mutations.js.map +1 -1
  8. package/dist/cart/service.d.ts +114 -1
  9. package/dist/cart/service.d.ts.map +1 -1
  10. package/dist/cart/workflows.d.ts +9 -0
  11. package/dist/cart/workflows.d.ts.map +1 -1
  12. package/dist/common/config-module.d.ts +5 -1
  13. package/dist/common/config-module.d.ts.map +1 -1
  14. package/dist/dal/repository-service.d.ts +2 -2
  15. package/dist/dal/repository-service.d.ts.map +1 -1
  16. package/dist/dml/index.d.ts +8 -0
  17. package/dist/dml/index.d.ts.map +1 -1
  18. package/dist/event-bus/common.d.ts +24 -0
  19. package/dist/event-bus/common.d.ts.map +1 -1
  20. package/dist/event-bus/event-bus-module.d.ts +58 -0
  21. package/dist/event-bus/event-bus-module.d.ts.map +1 -1
  22. package/dist/file/common.d.ts +3 -2
  23. package/dist/file/common.d.ts.map +1 -1
  24. package/dist/file/mutations.d.ts +5 -2
  25. package/dist/file/mutations.d.ts.map +1 -1
  26. package/dist/file/provider.d.ts +9 -3
  27. package/dist/file/provider.d.ts.map +1 -1
  28. package/dist/file/service.d.ts +10 -9
  29. package/dist/file/service.d.ts.map +1 -1
  30. package/dist/fulfillment/common/order.d.ts +2 -72
  31. package/dist/fulfillment/common/order.d.ts.map +1 -1
  32. package/dist/fulfillment/mutations/shipping-option.d.ts +23 -2
  33. package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
  34. package/dist/fulfillment/mutations/shipping-profile.d.ts +1 -1
  35. package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
  36. package/dist/fulfillment/service.d.ts +3 -0
  37. package/dist/fulfillment/service.d.ts.map +1 -1
  38. package/dist/http/auth/payloads.d.ts +3 -0
  39. package/dist/http/auth/payloads.d.ts.map +1 -1
  40. package/dist/http/common/request.d.ts +2 -2
  41. package/dist/http/common/response.d.ts +21 -0
  42. package/dist/http/common/response.d.ts.map +1 -1
  43. package/dist/http/draft-order/admin/entities.d.ts +6 -0
  44. package/dist/http/draft-order/admin/entities.d.ts.map +1 -0
  45. package/dist/http/draft-order/admin/entities.js +3 -0
  46. package/dist/http/draft-order/admin/entities.js.map +1 -0
  47. package/dist/http/draft-order/admin/index.d.ts +5 -0
  48. package/dist/http/draft-order/admin/index.d.ts.map +1 -0
  49. package/dist/http/draft-order/admin/index.js +21 -0
  50. package/dist/http/draft-order/admin/index.js.map +1 -0
  51. package/dist/http/draft-order/admin/payloads.d.ts +243 -0
  52. package/dist/http/draft-order/admin/payloads.d.ts.map +1 -0
  53. package/dist/http/draft-order/admin/payloads.js +3 -0
  54. package/dist/http/draft-order/admin/payloads.js.map +1 -0
  55. package/dist/http/draft-order/admin/queries.d.ts +35 -0
  56. package/dist/http/draft-order/admin/queries.d.ts.map +1 -0
  57. package/dist/http/draft-order/admin/queries.js +3 -0
  58. package/dist/http/draft-order/admin/queries.js.map +1 -0
  59. package/dist/http/draft-order/admin/responses.d.ts +13 -0
  60. package/dist/http/draft-order/admin/responses.d.ts.map +1 -0
  61. package/dist/http/draft-order/admin/responses.js +3 -0
  62. package/dist/http/draft-order/admin/responses.js.map +1 -0
  63. package/dist/http/draft-order/index.d.ts +2 -0
  64. package/dist/http/draft-order/index.d.ts.map +1 -0
  65. package/dist/http/draft-order/index.js +18 -0
  66. package/dist/http/draft-order/index.js.map +1 -0
  67. package/dist/http/file/admin/responses.d.ts +6 -0
  68. package/dist/http/file/admin/responses.d.ts.map +1 -1
  69. package/dist/http/file/common.d.ts +17 -0
  70. package/dist/http/file/common.d.ts.map +1 -1
  71. package/dist/http/fulfillment/store/index.d.ts +4 -0
  72. package/dist/http/fulfillment/store/index.d.ts.map +1 -1
  73. package/dist/http/fulfillment-provider/admin/responses.d.ts +3 -0
  74. package/dist/http/fulfillment-provider/admin/responses.d.ts.map +1 -1
  75. package/dist/http/index.d.ts +2 -0
  76. package/dist/http/index.d.ts.map +1 -1
  77. package/dist/http/index.js +2 -0
  78. package/dist/http/index.js.map +1 -1
  79. package/dist/http/inventory-level/admin/payloads.d.ts +0 -16
  80. package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -1
  81. package/dist/http/order/admin/entities.d.ts +10 -1
  82. package/dist/http/order/admin/entities.d.ts.map +1 -1
  83. package/dist/http/order/admin/queries.d.ts +0 -9
  84. package/dist/http/order/admin/queries.d.ts.map +1 -1
  85. package/dist/http/order/admin/responses.d.ts +0 -6
  86. package/dist/http/order/admin/responses.d.ts.map +1 -1
  87. package/dist/http/order/common.d.ts +6 -39
  88. package/dist/http/order/common.d.ts.map +1 -1
  89. package/dist/http/payment/admin/queries.d.ts +6 -0
  90. package/dist/http/payment/admin/queries.d.ts.map +1 -1
  91. package/dist/http/payment/admin/responses.d.ts +3 -0
  92. package/dist/http/payment/admin/responses.d.ts.map +1 -1
  93. package/dist/http/plugins/admin/responses.d.ts +10 -0
  94. package/dist/http/plugins/admin/responses.d.ts.map +1 -0
  95. package/dist/http/plugins/admin/responses.js +3 -0
  96. package/dist/http/plugins/admin/responses.js.map +1 -0
  97. package/dist/http/plugins/index.d.ts +2 -0
  98. package/dist/http/plugins/index.d.ts.map +1 -0
  99. package/dist/http/plugins/index.js +18 -0
  100. package/dist/http/plugins/index.js.map +1 -0
  101. package/dist/http/pricing/common.d.ts +8 -0
  102. package/dist/http/pricing/common.d.ts.map +1 -1
  103. package/dist/http/product/admin/payloads.d.ts +2 -2
  104. package/dist/http/product/admin/payloads.d.ts.map +1 -1
  105. package/dist/http/promotion/admin/entities.d.ts +20 -0
  106. package/dist/http/promotion/admin/entities.d.ts.map +1 -1
  107. package/dist/http/promotion/admin/payloads.d.ts +156 -0
  108. package/dist/http/promotion/admin/payloads.d.ts.map +1 -1
  109. package/dist/http/promotion/admin/queries.d.ts +45 -1
  110. package/dist/http/promotion/admin/queries.d.ts.map +1 -1
  111. package/dist/http/promotion/admin/responses.d.ts +17 -2
  112. package/dist/http/promotion/admin/responses.d.ts.map +1 -1
  113. package/dist/http/promotion/common.d.ts +53 -0
  114. package/dist/http/promotion/common.d.ts.map +1 -1
  115. package/dist/http/region/admin/entities.d.ts +3 -0
  116. package/dist/http/region/admin/entities.d.ts.map +1 -1
  117. package/dist/http/region/admin/payloads.d.ts +68 -0
  118. package/dist/http/region/admin/payloads.d.ts.map +1 -1
  119. package/dist/http/region/admin/queries.d.ts +21 -0
  120. package/dist/http/region/admin/queries.d.ts.map +1 -1
  121. package/dist/http/region/admin/responses.d.ts +6 -0
  122. package/dist/http/region/admin/responses.d.ts.map +1 -1
  123. package/dist/http/reservation/admin/entities.d.ts +39 -0
  124. package/dist/http/reservation/admin/entities.d.ts.map +1 -1
  125. package/dist/http/reservation/admin/payloads.d.ts +32 -0
  126. package/dist/http/reservation/admin/payloads.d.ts.map +1 -1
  127. package/dist/http/reservation/admin/queries.d.ts +34 -0
  128. package/dist/http/reservation/admin/queries.d.ts.map +1 -1
  129. package/dist/http/reservation/admin/responses.d.ts +6 -0
  130. package/dist/http/reservation/admin/responses.d.ts.map +1 -1
  131. package/dist/http/return/admin/entities.d.ts +3 -0
  132. package/dist/http/return/admin/entities.d.ts.map +1 -1
  133. package/dist/http/return/admin/payloads.d.ts +154 -0
  134. package/dist/http/return/admin/payloads.d.ts.map +1 -1
  135. package/dist/http/return/admin/queries.d.ts +15 -0
  136. package/dist/http/return/admin/queries.d.ts.map +1 -1
  137. package/dist/http/return/admin/responses.d.ts +6 -0
  138. package/dist/http/return/admin/responses.d.ts.map +1 -1
  139. package/dist/http/return/common.d.ts +73 -0
  140. package/dist/http/return/common.d.ts.map +1 -1
  141. package/dist/http/return-reason/admin/payloads.d.ts +21 -0
  142. package/dist/http/return-reason/admin/payloads.d.ts.map +1 -1
  143. package/dist/http/return-reason/admin/queries.d.ts +3 -0
  144. package/dist/http/return-reason/admin/queries.d.ts.map +1 -1
  145. package/dist/http/return-reason/admin/responses.d.ts +6 -0
  146. package/dist/http/return-reason/admin/responses.d.ts.map +1 -1
  147. package/dist/http/return-reason/common.d.ts +27 -0
  148. package/dist/http/return-reason/common.d.ts.map +1 -1
  149. package/dist/http/sales-channel/admin/entities.d.ts +24 -0
  150. package/dist/http/sales-channel/admin/entities.d.ts.map +1 -1
  151. package/dist/http/sales-channel/admin/payloads.d.ts +32 -0
  152. package/dist/http/sales-channel/admin/payloads.d.ts.map +1 -1
  153. package/dist/http/sales-channel/admin/queries.d.ts +32 -0
  154. package/dist/http/sales-channel/admin/queries.d.ts.map +1 -1
  155. package/dist/http/sales-channel/admin/responses.d.ts +6 -0
  156. package/dist/http/sales-channel/admin/responses.d.ts.map +1 -1
  157. package/dist/http/shipping-option/admin/entities.d.ts +187 -0
  158. package/dist/http/shipping-option/admin/entities.d.ts.map +1 -1
  159. package/dist/http/shipping-option/admin/payloads.d.ts +181 -0
  160. package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
  161. package/dist/http/shipping-option/admin/queries.d.ts +36 -0
  162. package/dist/http/shipping-option/admin/queries.d.ts.map +1 -1
  163. package/dist/http/shipping-option/admin/responses.d.ts +6 -0
  164. package/dist/http/shipping-option/admin/responses.d.ts.map +1 -1
  165. package/dist/http/shipping-option/store/payloads.d.ts +12 -0
  166. package/dist/http/shipping-option/store/payloads.d.ts.map +1 -1
  167. package/dist/http/shipping-option/store/responses.d.ts +12 -0
  168. package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
  169. package/dist/http/shipping-profile/admin/entities.d.ts +21 -0
  170. package/dist/http/shipping-profile/admin/entities.d.ts.map +1 -1
  171. package/dist/http/shipping-profile/admin/payloads.d.ts +18 -0
  172. package/dist/http/shipping-profile/admin/payloads.d.ts.map +1 -1
  173. package/dist/http/shipping-profile/admin/queries.d.ts +27 -0
  174. package/dist/http/shipping-profile/admin/queries.d.ts.map +1 -1
  175. package/dist/http/shipping-profile/admin/responses.d.ts +6 -0
  176. package/dist/http/shipping-profile/admin/responses.d.ts.map +1 -1
  177. package/dist/http/stock-locations/admin/entities.d.ts +21 -0
  178. package/dist/http/stock-locations/admin/entities.d.ts.map +1 -1
  179. package/dist/http/stock-locations/admin/payloads.d.ts +69 -0
  180. package/dist/http/stock-locations/admin/payloads.d.ts.map +1 -1
  181. package/dist/http/stock-locations/admin/queries.d.ts +24 -2
  182. package/dist/http/stock-locations/admin/queries.d.ts.map +1 -1
  183. package/dist/http/stock-locations/admin/responses.d.ts +6 -0
  184. package/dist/http/stock-locations/admin/responses.d.ts.map +1 -1
  185. package/dist/http/store/admin/entities.d.ts +54 -0
  186. package/dist/http/store/admin/entities.d.ts.map +1 -1
  187. package/dist/http/store/admin/queries.d.ts +9 -0
  188. package/dist/http/store/admin/queries.d.ts.map +1 -1
  189. package/dist/http/store/admin/responses.d.ts +6 -0
  190. package/dist/http/store/admin/responses.d.ts.map +1 -1
  191. package/dist/http/tax-rate/admin/entities.d.ts +54 -0
  192. package/dist/http/tax-rate/admin/entities.d.ts.map +1 -1
  193. package/dist/http/tax-rate/admin/payloads.d.ts +57 -0
  194. package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -1
  195. package/dist/http/tax-rate/admin/queries.d.ts +30 -0
  196. package/dist/http/tax-rate/admin/queries.d.ts.map +1 -1
  197. package/dist/http/tax-rate/admin/responses.d.ts +6 -0
  198. package/dist/http/tax-rate/admin/responses.d.ts.map +1 -1
  199. package/dist/http/tax-region/admin/entities.d.ts +42 -0
  200. package/dist/http/tax-region/admin/entities.d.ts.map +1 -1
  201. package/dist/http/tax-region/admin/payloads.d.ts +30 -0
  202. package/dist/http/tax-region/admin/payloads.d.ts.map +1 -1
  203. package/dist/http/tax-region/admin/queries.d.ts +28 -0
  204. package/dist/http/tax-region/admin/queries.d.ts.map +1 -1
  205. package/dist/http/tax-region/admin/responses.d.ts +6 -0
  206. package/dist/http/tax-region/admin/responses.d.ts.map +1 -1
  207. package/dist/http/user/admin/entities.d.ts +27 -0
  208. package/dist/http/user/admin/entities.d.ts.map +1 -1
  209. package/dist/http/user/admin/payloads.d.ts +12 -0
  210. package/dist/http/user/admin/payloads.d.ts.map +1 -1
  211. package/dist/http/user/admin/queries.d.ts +24 -0
  212. package/dist/http/user/admin/queries.d.ts.map +1 -1
  213. package/dist/http/user/admin/responses.d.ts +6 -0
  214. package/dist/http/user/admin/responses.d.ts.map +1 -1
  215. package/dist/http/workflow-execution/admin/entities.d.ts +136 -2
  216. package/dist/http/workflow-execution/admin/entities.d.ts.map +1 -1
  217. package/dist/http/workflow-execution/admin/queries.d.ts +6 -0
  218. package/dist/http/workflow-execution/admin/queries.d.ts.map +1 -1
  219. package/dist/http/workflow-execution/admin/responses.d.ts +6 -0
  220. package/dist/http/workflow-execution/admin/responses.d.ts.map +1 -1
  221. package/dist/index-data/query-config/query-input-config.d.ts +1 -1
  222. package/dist/index-data/query-config/query-input-config.d.ts.map +1 -1
  223. package/dist/locking/index.d.ts +466 -0
  224. package/dist/locking/index.d.ts.map +1 -1
  225. package/dist/modules-sdk/index.d.ts +6 -1
  226. package/dist/modules-sdk/index.d.ts.map +1 -1
  227. package/dist/modules-sdk/medusa-internal-service.d.ts +5 -5
  228. package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -1
  229. package/dist/modules-sdk/remote-query-object-from-string.d.ts +4 -0
  230. package/dist/modules-sdk/remote-query-object-from-string.d.ts.map +1 -1
  231. package/dist/modules-sdk/remote-query.d.ts +16 -0
  232. package/dist/modules-sdk/remote-query.d.ts.map +1 -1
  233. package/dist/notification/mutations.d.ts +5 -4
  234. package/dist/notification/mutations.d.ts.map +1 -1
  235. package/dist/notification/service.d.ts +2 -5
  236. package/dist/notification/service.d.ts.map +1 -1
  237. package/dist/order/common.d.ts +45 -79
  238. package/dist/order/common.d.ts.map +1 -1
  239. package/dist/order/mutations.d.ts +38 -1
  240. package/dist/order/mutations.d.ts.map +1 -1
  241. package/dist/order/service.d.ts +101 -3
  242. package/dist/order/service.d.ts.map +1 -1
  243. package/dist/payment/common.d.ts +9 -1
  244. package/dist/payment/common.d.ts.map +1 -1
  245. package/dist/payment/mutations.d.ts +24 -1
  246. package/dist/payment/mutations.d.ts.map +1 -1
  247. package/dist/payment/provider.d.ts +121 -85
  248. package/dist/payment/provider.d.ts.map +1 -1
  249. package/dist/payment/service.d.ts +89 -10
  250. package/dist/payment/service.d.ts.map +1 -1
  251. package/dist/product/common.d.ts +11 -6
  252. package/dist/product/common.d.ts.map +1 -1
  253. package/dist/tax/provider.d.ts +9 -37
  254. package/dist/tax/provider.d.ts.map +1 -1
  255. package/dist/tsconfig.tsbuildinfo +1 -1
  256. package/dist/workflow/order/items.d.ts +5 -1
  257. package/dist/workflow/order/items.d.ts.map +1 -1
  258. package/dist/workflow/product-category/index.d.ts +5 -4
  259. package/dist/workflow/product-category/index.d.ts.map +1 -1
  260. package/dist/workflows/products/mutations.d.ts +2 -2
  261. package/dist/workflows/products/mutations.d.ts.map +1 -1
  262. package/dist/workflows-sdk/service.d.ts +12 -8
  263. package/dist/workflows-sdk/service.d.ts.map +1 -1
  264. package/package.json +3 -3
@@ -1,31 +1,100 @@
1
1
  interface AdminUpsertStockLocationAddress {
2
+ /**
3
+ * The first line of the address.
4
+ */
2
5
  address_1: string;
6
+ /**
7
+ * The second line of the address.
8
+ */
3
9
  address_2?: string;
10
+ /**
11
+ * The company name associated with the address.
12
+ */
4
13
  company?: string;
14
+ /**
15
+ * The country code of the address.
16
+ *
17
+ * @example
18
+ * "us"
19
+ */
5
20
  country_code: string;
21
+ /**
22
+ * The city of the address.
23
+ */
6
24
  city?: string;
25
+ /**
26
+ * The phone number of the address.
27
+ */
7
28
  phone?: string;
29
+ /**
30
+ * The postal or zip code of the address.
31
+ */
8
32
  postal_code?: string;
33
+ /**
34
+ * The province or state of the address.
35
+ */
9
36
  province?: string;
10
37
  }
11
38
  export interface AdminCreateStockLocation {
39
+ /**
40
+ * The name of the stock location.
41
+ */
12
42
  name: string;
43
+ /**
44
+ * The ID of the address to associate with the stock location.
45
+ * If you provide an `address`, you don't need to provide this property.
46
+ */
13
47
  address_id?: string;
48
+ /**
49
+ * The address to create or update for the stock location.
50
+ * If you provide an `address_id`, you don't need
51
+ * to provide this property.
52
+ */
14
53
  address?: AdminUpsertStockLocationAddress;
54
+ /**
55
+ * Custom key-value pairs that can be added to the stock location.
56
+ */
15
57
  metadata?: Record<string, unknown>;
16
58
  }
17
59
  export interface AdminUpdateStockLocation {
60
+ /**
61
+ * The name of the stock location.
62
+ */
18
63
  name?: string;
64
+ /**
65
+ * The ID of the address to associate with the stock location.
66
+ * If you provide an `address`, you don't need to provide this property.
67
+ */
19
68
  address_id?: string;
69
+ /**
70
+ * The address to create or update for the stock location.
71
+ * If you provide an `address_id`, you don't need
72
+ * to provide this property.
73
+ */
20
74
  address?: AdminUpsertStockLocationAddress;
75
+ /**
76
+ * Custom key-value pairs that can be added to the stock location.
77
+ */
21
78
  metadata?: Record<string, unknown>;
22
79
  }
23
80
  export interface AdminUpdateStockLocationSalesChannels {
81
+ /**
82
+ * The IDs of the sales channels to add to the stock location.
83
+ */
24
84
  add?: string[];
85
+ /**
86
+ * The IDs of the sales channels to remove from the stock location.
87
+ */
25
88
  remove?: string[];
26
89
  }
27
90
  export interface AdminCreateStockLocationFulfillmentSet {
91
+ /**
92
+ * The name of the fulfillment set.
93
+ */
28
94
  name: string;
95
+ /**
96
+ * The type of the fulfillment set.
97
+ */
29
98
  type: string;
30
99
  }
31
100
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/stock-locations/admin/payloads.ts"],"names":[],"mappings":"AAAA,UAAU,+BAA+B;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,+BAA+B,CAAA;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,+BAA+B,CAAA;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,qCAAqC;IACpD,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,sCAAsC;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb"}
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/stock-locations/admin/payloads.ts"],"names":[],"mappings":"AAAA,UAAU,+BAA+B;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,+BAA+B,CAAA;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,+BAA+B,CAAA;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -1,15 +1,37 @@
1
1
  import { BaseFilterable, OperatorMap } from "../../../dal";
2
2
  import { FindParams } from "../../common";
3
3
  export interface AdminStockLocationListParams extends FindParams, BaseFilterable<AdminStockLocationListParams> {
4
+ /**
5
+ * Filter by stock location ID(s).
6
+ */
4
7
  id?: string | string[];
8
+ /**
9
+ * Query or keywords to search the stock location's searchable fields.
10
+ */
5
11
  q?: string;
12
+ /**
13
+ * Filter by stock location name.
14
+ */
6
15
  name?: string | string[];
16
+ /**
17
+ * Filter by stock location address ID(s).
18
+ */
7
19
  address_id?: string | string[];
20
+ /**
21
+ * Filter by sales channel ID(s) to retrieve the stock locations for.
22
+ */
8
23
  sales_channel_id?: string | string[];
9
- $and?: AdminStockLocationListParams[];
10
- $or?: AdminStockLocationListParams[];
24
+ /**
25
+ * Filter by the date the stock location was created.
26
+ */
11
27
  created_at?: OperatorMap<string>;
28
+ /**
29
+ * Filter by the date the stock location was updated.
30
+ */
12
31
  updated_at?: OperatorMap<string>;
32
+ /**
33
+ * Filter by the date the stock location was deleted.
34
+ */
13
35
  deleted_at?: OperatorMap<string>;
14
36
  }
15
37
  //# sourceMappingURL=queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/stock-locations/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,4BACf,SAAQ,UAAU,EAChB,cAAc,CAAC,4BAA4B,CAAC;IAC9C,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACpC,IAAI,CAAC,EAAE,4BAA4B,EAAE,CAAA;IACrC,GAAG,CAAC,EAAE,4BAA4B,EAAE,CAAA;IACpC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/stock-locations/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,4BACf,SAAQ,UAAU,EAChB,cAAc,CAAC,4BAA4B,CAAC;IAC9C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -1,9 +1,15 @@
1
1
  import { DeleteResponse, PaginatedResponse } from "../../common";
2
2
  import { AdminStockLocation } from "./entities";
3
3
  export interface AdminStockLocationResponse {
4
+ /**
5
+ * The stock location's details.
6
+ */
4
7
  stock_location: AdminStockLocation;
5
8
  }
6
9
  export interface AdminStockLocationListResponse extends PaginatedResponse<{
10
+ /**
11
+ * The list of stock locations.
12
+ */
7
13
  stock_locations: AdminStockLocation[];
8
14
  }> {
9
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/stock-locations/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,WAAW,0BAA0B;IACzC,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAED,MAAM,WAAW,8BACf,SAAQ,iBAAiB,CAAC;IACxB,eAAe,EAAE,kBAAkB,EAAE,CAAA;CACtC,CAAC;CAAG;AAEP,MAAM,WAAW,gCACf,SAAQ,cAAc,CAAC,gBAAgB,CAAC;CAAG"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/stock-locations/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAED,MAAM,WAAW,8BACf,SAAQ,iBAAiB,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,kBAAkB,EAAE,CAAA;CACtC,CAAC;CAAG;AAEP,MAAM,WAAW,gCACf,SAAQ,cAAc,CAAC,gBAAgB,CAAC;CAAG"}
@@ -1,23 +1,77 @@
1
1
  import { AdminCurrency } from "../../currency";
2
2
  export interface AdminStoreCurrency {
3
+ /**
4
+ * The currency's ID.
5
+ */
3
6
  id: string;
7
+ /**
8
+ * The currency code.
9
+ *
10
+ * @example
11
+ * "usd"
12
+ */
4
13
  currency_code: string;
14
+ /**
15
+ * The ID of the store that the currency belongs to.
16
+ */
5
17
  store_id: string;
18
+ /**
19
+ * Whether the currency is the default currency for the store.
20
+ */
6
21
  is_default: boolean;
22
+ /**
23
+ * The currency's details.
24
+ */
7
25
  currency: AdminCurrency;
26
+ /**
27
+ * The date the currency was created.
28
+ */
8
29
  created_at: string;
30
+ /**
31
+ * The date the currency was updated.
32
+ */
9
33
  updated_at: string;
34
+ /**
35
+ * The date the currency was deleted.
36
+ */
10
37
  deleted_at: string | null;
11
38
  }
12
39
  export interface AdminStore {
40
+ /**
41
+ * The store's ID.
42
+ */
13
43
  id: string;
44
+ /**
45
+ * The store's name.
46
+ */
14
47
  name: string;
48
+ /**
49
+ * The store's supported currencies.
50
+ */
15
51
  supported_currencies: AdminStoreCurrency[];
52
+ /**
53
+ * The store's default sales channel ID.
54
+ */
16
55
  default_sales_channel_id: string | null;
56
+ /**
57
+ * The store's default region ID.
58
+ */
17
59
  default_region_id: string | null;
60
+ /**
61
+ * The store's default location ID.
62
+ */
18
63
  default_location_id: string | null;
64
+ /**
65
+ * Custom key-value pairs that can be added to the store.
66
+ */
19
67
  metadata: Record<string, any> | null;
68
+ /**
69
+ * The date the store was created.
70
+ */
20
71
  created_at: string;
72
+ /**
73
+ * The date the store was updated.
74
+ */
21
75
  updated_at: string;
22
76
  }
23
77
  //# sourceMappingURL=entities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/store/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,aAAa,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,oBAAoB,EAAE,kBAAkB,EAAE,CAAA;IAC1C,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAA;IACvC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/store/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAA;IACvB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,oBAAoB,EAAE,kBAAkB,EAAE,CAAA;IAC1C;;OAEG;IACH,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAA;IACvC;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC;;OAEG;IACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -1,8 +1,17 @@
1
1
  import { BaseFilterable } from "../../../dal";
2
2
  import { FindParams, SelectParams } from "../../common";
3
3
  export interface AdminStoreListParams extends BaseFilterable<AdminStoreListParams>, FindParams {
4
+ /**
5
+ * Query or keywords to search the store's searchable fields.
6
+ */
4
7
  q?: string;
8
+ /**
9
+ * Filter by store ID(s).
10
+ */
5
11
  id?: string | string[];
12
+ /**
13
+ * Filter by store name.
14
+ */
6
15
  name?: string | string[];
7
16
  }
8
17
  export interface AdminStoreParams extends SelectParams {
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/store/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,WAAW,oBACf,SAAQ,cAAc,CAAC,oBAAoB,CAAC,EAC1C,UAAU;IACZ,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;CAAG"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/store/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,WAAW,oBACf,SAAQ,cAAc,CAAC,oBAAoB,CAAC,EAC1C,UAAU;IACZ;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;CAAG"}
@@ -1,9 +1,15 @@
1
1
  import { PaginatedResponse } from "../../common";
2
2
  import { AdminStore } from "./entities";
3
3
  export interface AdminStoreResponse {
4
+ /**
5
+ * The store's details.
6
+ */
4
7
  store: AdminStore;
5
8
  }
6
9
  export interface AdminStoreListResponse extends PaginatedResponse<{
10
+ /**
11
+ * The list of stores.
12
+ */
7
13
  stores: AdminStore[];
8
14
  }> {
9
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/store/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,sBACf,SAAQ,iBAAiB,CAAC;IACxB,MAAM,EAAE,UAAU,EAAE,CAAA;CACrB,CAAC;CAAG"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/store/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEvC,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,sBACf,SAAQ,iBAAiB,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,UAAU,EAAE,CAAA;CACrB,CAAC;CAAG"}
@@ -1,22 +1,76 @@
1
1
  import { AdminTaxRegion } from "../../tax-region";
2
2
  export interface AdminTaxRateRule {
3
+ /**
4
+ * The name of the table that the rule references.
5
+ *
6
+ * @example
7
+ * "product_type"
8
+ */
3
9
  reference: string;
10
+ /**
11
+ * The ID of the record in the table that the rule references.
12
+ *
13
+ * @example
14
+ * "protyp_123"
15
+ */
4
16
  reference_id: string;
5
17
  }
6
18
  export interface AdminTaxRate {
19
+ /**
20
+ * The tax rate's ID.
21
+ */
7
22
  id: string;
23
+ /**
24
+ * The tax rate's percentage rate.
25
+ */
8
26
  rate: number | null;
27
+ /**
28
+ * The tax rate's code.
29
+ */
9
30
  code: string;
31
+ /**
32
+ * The tax rate's name.
33
+ */
10
34
  name: string;
35
+ /**
36
+ * Custom key-value pairs that can be added to the tax rate.
37
+ */
11
38
  metadata: Record<string, unknown> | null;
39
+ /**
40
+ * The ID of the tax region associated with the tax rate.
41
+ */
12
42
  tax_region_id: string;
43
+ /**
44
+ * Whether the tax rate is combinable with other tax rates.
45
+ */
13
46
  is_combinable: boolean;
47
+ /**
48
+ * Whether the tax rate is the default tax rate in its tax region.
49
+ */
14
50
  is_default: boolean;
51
+ /**
52
+ * The date the tax rate was created.
53
+ */
15
54
  created_at: string;
55
+ /**
56
+ * The date the tax rate was updated.
57
+ */
16
58
  updated_at: string;
59
+ /**
60
+ * The date the tax rate was deleted.
61
+ */
17
62
  deleted_at: null;
63
+ /**
64
+ * The ID of the user who created the tax rate.
65
+ */
18
66
  created_by: string | null;
67
+ /**
68
+ * The tax region associated with the tax rate.
69
+ */
19
70
  tax_region: AdminTaxRegion;
71
+ /**
72
+ * The rules associated with the tax rate.
73
+ */
20
74
  rules: AdminTaxRateRule[];
21
75
  }
22
76
  //# sourceMappingURL=entities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-rate/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,cAAc,CAAA;IAC1B,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAC1B"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-rate/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB;;OAEG;IACH,UAAU,EAAE,cAAc,CAAA;IAC1B;;OAEG;IACH,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAC1B"}
@@ -1,24 +1,81 @@
1
1
  interface AdminCreateTaxRateRule {
2
+ /**
3
+ * The name of the table that the rule references.
4
+ *
5
+ * @example
6
+ * "product_type"
7
+ */
2
8
  reference: string;
9
+ /**
10
+ * The ID of the record in the table that the rule references.
11
+ *
12
+ * @example
13
+ * "protyp_123"
14
+ */
3
15
  reference_id: string;
4
16
  }
5
17
  export interface AdminCreateTaxRate {
18
+ /**
19
+ * The name of the tax rate.
20
+ */
6
21
  name: string;
22
+ /**
23
+ * The ID of the tax region associated with the tax rate.
24
+ */
7
25
  tax_region_id: string;
26
+ /**
27
+ * The rate of the tax rate.
28
+ */
8
29
  rate?: number;
30
+ /**
31
+ * The code of the tax rate.
32
+ */
9
33
  code: string;
34
+ /**
35
+ * The rules of the tax rate.
36
+ */
10
37
  rules?: AdminCreateTaxRateRule[];
38
+ /**
39
+ * Whether the tax rate is the default tax rate in its tax region.
40
+ */
11
41
  is_default?: boolean;
42
+ /**
43
+ * Whether the tax rate is combinable with other tax rates.
44
+ */
12
45
  is_combinable?: boolean;
46
+ /**
47
+ * Custom key-value pairs that can be added to the tax rate.
48
+ */
13
49
  metadata?: Record<string, unknown>;
14
50
  }
15
51
  export interface AdminUpdateTaxRate {
52
+ /**
53
+ * The name of the tax rate.
54
+ */
16
55
  name?: string;
56
+ /**
57
+ * The percentage rate of the tax rate.
58
+ */
17
59
  rate?: number;
60
+ /**
61
+ * The code of the tax rate.
62
+ */
18
63
  code: string;
64
+ /**
65
+ * The rules of the tax rate.
66
+ */
19
67
  rules?: AdminCreateTaxRateRule[];
68
+ /**
69
+ * Whether the tax rate is the default tax rate in its tax region.
70
+ */
20
71
  is_default?: boolean;
72
+ /**
73
+ * Whether the tax rate is combinable with other tax rates.
74
+ */
21
75
  is_combinable?: boolean;
76
+ /**
77
+ * Custom key-value pairs that can be added to the tax rate.
78
+ */
22
79
  metadata?: Record<string, unknown>;
23
80
  }
24
81
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-rate/admin/payloads.ts"],"names":[],"mappings":"AAAA,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAA;IAChC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAA;IAChC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC"}
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-rate/admin/payloads.ts"],"names":[],"mappings":"AAAA,UAAU,sBAAsB;IAC9B;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC"}
@@ -1,15 +1,45 @@
1
1
  import { BaseFilterable, OperatorMap } from "../../../dal";
2
2
  import { FindParams } from "../../common";
3
3
  export interface AdminTaxRateListParams extends FindParams, BaseFilterable<AdminTaxRateListParams> {
4
+ /**
5
+ * Query or keywords to search the tax rate's searchable fields.
6
+ */
4
7
  q?: string;
8
+ /**
9
+ * Filter by tax region ID(s).
10
+ */
5
11
  tax_region_id?: string | string[] | OperatorMap<string | string[]>;
12
+ /**
13
+ * Filter by whether the tax rate is the default tax rate in its tax region.
14
+ */
6
15
  is_default?: "true" | "false";
16
+ /**
17
+ * Filter by service zone ID(s) to retrieve tax rates that are associated with the service zones.
18
+ */
7
19
  service_zone_id?: string;
20
+ /**
21
+ * Filter by shipping profile ID(s) to retrieve tax rates that are associated with the shipping profiles.
22
+ */
8
23
  shipping_profile_id?: string;
24
+ /**
25
+ * Filter by tax provider ID(s) to retrieve tax rates that are associated with the providers.
26
+ */
9
27
  provider_id?: string;
28
+ /**
29
+ * Filter by shipping option type ID(s) to retrieve tax rates that are associated with the shipping option types.
30
+ */
10
31
  shipping_option_type_id?: string;
32
+ /**
33
+ * Filter by the date the tax rate was created.
34
+ */
11
35
  created_at?: OperatorMap<string>;
36
+ /**
37
+ * Filter by the date the tax rate was updated.
38
+ */
12
39
  updated_at?: OperatorMap<string>;
40
+ /**
41
+ * Filter by the date the tax rate was deleted.
42
+ */
13
43
  deleted_at?: OperatorMap<string>;
14
44
  }
15
45
  //# sourceMappingURL=queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-rate/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,sBACf,SAAQ,UAAU,EAChB,cAAc,CAAC,sBAAsB,CAAC;IACxC,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAClE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-rate/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,sBACf,SAAQ,UAAU,EAChB,cAAc,CAAC,sBAAsB,CAAC;IACxC;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC7B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -1,9 +1,15 @@
1
1
  import { DeleteResponse, DeleteResponseWithParent, PaginatedResponse } from "../../common";
2
2
  import { AdminTaxRate } from "./entities";
3
3
  export interface AdminTaxRateResponse {
4
+ /**
5
+ * The tax rate's details.
6
+ */
4
7
  tax_rate: AdminTaxRate;
5
8
  }
6
9
  export type AdminTaxRateListResponse = PaginatedResponse<{
10
+ /**
11
+ * The list of tax rates.
12
+ */
7
13
  tax_rates: AdminTaxRate[];
8
14
  }>;
9
15
  export interface AdminTaxRateDeleteResponse extends DeleteResponse<"tax_rate"> {
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-rate/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEzC,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,YAAY,CAAA;CACvB;AAED,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,SAAS,EAAE,YAAY,EAAE,CAAA;CAC1B,CAAC,CAAA;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,CAAC,UAAU,CAAC;CAAG;AAEvC,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CACnE,eAAe,EACf,YAAY,CACb,CAAA"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-rate/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEzC,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAA;CACvB;AAED,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD;;OAEG;IACH,SAAS,EAAE,YAAY,EAAE,CAAA;CAC1B,CAAC,CAAA;AAEF,MAAM,WAAW,0BACf,SAAQ,cAAc,CAAC,UAAU,CAAC;CAAG;AAEvC,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CACnE,eAAe,EACf,YAAY,CACb,CAAA"}
@@ -1,16 +1,58 @@
1
1
  import { AdminTaxRate } from "../../tax-rate";
2
2
  export interface AdminTaxRegion {
3
+ /**
4
+ * The tax region's ID.
5
+ */
3
6
  id: string;
7
+ /**
8
+ * The tax region's country code.
9
+ *
10
+ * @example
11
+ * "us"
12
+ */
4
13
  country_code: string | null;
14
+ /**
15
+ * The tax region's province or state code.
16
+ *
17
+ * @example
18
+ * "ca"
19
+ */
5
20
  province_code: string | null;
21
+ /**
22
+ * Custom key-value pairs that can be added to the tax region.
23
+ */
6
24
  metadata: Record<string, unknown> | null;
25
+ /**
26
+ * The ID of the parent tax region.
27
+ */
7
28
  parent_id: string | null;
29
+ /**
30
+ * The date the tax region was created.
31
+ */
8
32
  created_at: string;
33
+ /**
34
+ * The date the tax region was updated.
35
+ */
9
36
  updated_at: string;
37
+ /**
38
+ * The date the tax region was deleted.
39
+ */
10
40
  deleted_at: string | null;
41
+ /**
42
+ * The ID of the user who created the tax region.
43
+ */
11
44
  created_by: string | null;
45
+ /**
46
+ * The tax rates associated with the tax region.
47
+ */
12
48
  tax_rates: AdminTaxRate[];
49
+ /**
50
+ * The parent tax region.
51
+ */
13
52
  parent: AdminTaxRegion | null;
53
+ /**
54
+ * The child tax regions.
55
+ */
14
56
  children: AdminTaxRegion[];
15
57
  }
16
58
  //# sourceMappingURL=entities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-region/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,EAAE,cAAc,GAAG,IAAI,CAAA;IAC7B,QAAQ,EAAE,cAAc,EAAE,CAAA;CAC3B"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/tax-region/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;;;;OAKG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;;;;OAKG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB;;OAEG;IACH,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB;;OAEG;IACH,MAAM,EAAE,cAAc,GAAG,IAAI,CAAA;IAC7B;;OAEG;IACH,QAAQ,EAAE,cAAc,EAAE,CAAA;CAC3B"}
@@ -1,14 +1,44 @@
1
1
  export interface AdminCreateTaxRegion {
2
+ /**
3
+ * The country code of the tax region.
4
+ */
2
5
  country_code: string;
6
+ /**
7
+ * The province code of the tax region.
8
+ */
3
9
  province_code?: string;
10
+ /**
11
+ * The ID of the parent tax region.
12
+ */
4
13
  parent_id?: string;
14
+ /**
15
+ * The default tax rate of the tax region.
16
+ */
5
17
  default_tax_rate?: {
18
+ /**
19
+ * The percentage rate of the default tax rate.
20
+ */
6
21
  rate?: number;
22
+ /**
23
+ * The code of the default tax rate.
24
+ */
7
25
  code: string;
26
+ /**
27
+ * The name of the default tax rate.
28
+ */
8
29
  name: string;
30
+ /**
31
+ * Whether the default tax rate is combinable with other tax rates.
32
+ */
9
33
  is_combinable?: boolean;
34
+ /**
35
+ * Custom key-value pairs that can be added to the default tax rate.
36
+ */
10
37
  metadata?: Record<string, unknown>;
11
38
  };
39
+ /**
40
+ * Custom key-value pairs that can be added to the tax region.
41
+ */
12
42
  metadata?: Record<string, unknown>;
13
43
  }
14
44
  //# sourceMappingURL=payloads.d.ts.map