@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,9 +1,29 @@
1
1
  import { ApplicationMethodAllocationValues, ApplicationMethodTargetTypeValues, ApplicationMethodTypeValues, PromotionRuleOperatorValues, PromotionStatusValues, PromotionTypeValues } from "../../../promotion";
2
2
  import { AdminCreateCampaign } from "../../campaign";
3
3
  export interface AdminCreatePromotionRule {
4
+ /**
5
+ * The operator used to check whether the buy rule applies on a cart.
6
+ * For example, `eq` means that the cart's value for the specified attribute
7
+ * must match the specified value.
8
+ */
4
9
  operator: PromotionRuleOperatorValues;
10
+ /**
11
+ * The description of the promotion rule.
12
+ */
5
13
  description?: string | null;
14
+ /**
15
+ * The attribute to compare against when checking whether a promotion can be applied on a cart.
16
+ *
17
+ * @example
18
+ * items.product_id
19
+ */
6
20
  attribute: string;
21
+ /**
22
+ * The value to compare against when checking whether a promotion can be applied on a cart.
23
+ *
24
+ * @example
25
+ * prod_123
26
+ */
7
27
  values: string | string[];
8
28
  }
9
29
  export interface AdminUpdatePromotionRule {
@@ -14,57 +34,193 @@ export interface AdminUpdatePromotionRule {
14
34
  values: string | string[];
15
35
  }
16
36
  export interface AdminCreateApplicationMethod {
37
+ /**
38
+ * The description of the application method.
39
+ */
17
40
  description?: string | null;
41
+ /**
42
+ * The value of the application method.
43
+ */
18
44
  value: number;
45
+ /**
46
+ * The currency code of the application method.
47
+ *
48
+ * @example
49
+ * usd
50
+ */
19
51
  currency_code?: string | null;
52
+ /**
53
+ * The max quantity allowed in the cart for the associated promotion to be applied.
54
+ */
20
55
  max_quantity?: number | null;
56
+ /**
57
+ * The type of the application method.
58
+ */
21
59
  type: ApplicationMethodTypeValues;
60
+ /**
61
+ * The target type of the application method indicating whether the associated promotion is applied
62
+ * to the cart's items, shipping methods, or the whole order.
63
+ */
22
64
  target_type: ApplicationMethodTargetTypeValues;
65
+ /**
66
+ * The allocation value that indicates whether the associated promotion is applied on each
67
+ * item in a cart or split between the items in the cart.
68
+ */
23
69
  allocation?: ApplicationMethodAllocationValues;
70
+ /**
71
+ * The target rules of the application method.
72
+ */
24
73
  target_rules?: AdminCreatePromotionRule[];
74
+ /**
75
+ * The buy rules of the application method.
76
+ */
25
77
  buy_rules?: AdminCreatePromotionRule[];
78
+ /**
79
+ * The quantity of the application method.
80
+ */
26
81
  apply_to_quantity?: number | null;
82
+ /**
83
+ * The minimum quantity required for a `buyget` promotion to be applied. For example,
84
+ * if the promotion is a "Buy 2 shirts get 1 free", the value of this attribute is 2.
85
+ */
27
86
  buy_rules_min_quantity?: number | null;
28
87
  }
29
88
  export interface AdminUpdateApplicationMethod {
89
+ /**
90
+ * The description of the application method.
91
+ */
30
92
  description?: string | null;
93
+ /**
94
+ * The value of the application method.
95
+ */
31
96
  value?: number;
97
+ /**
98
+ * The max quantity allowed in the cart for the associated promotion to be applied.
99
+ */
32
100
  max_quantity?: number | null;
101
+ /**
102
+ * The currency code of the application method.
103
+ *
104
+ * @example
105
+ * usd
106
+ */
33
107
  currency_code?: string | null;
108
+ /**
109
+ * The type of the application method.
110
+ */
34
111
  type?: ApplicationMethodTypeValues;
112
+ /**
113
+ * The target type of the application method indicating whether the associated promotion is applied
114
+ * to the cart's items, shipping methods, or the whole order.
115
+ */
35
116
  target_type?: ApplicationMethodTargetTypeValues;
117
+ /**
118
+ * The allocation value that indicates whether the associated promotion is applied on each
119
+ * item in a cart or split between the items in the cart.
120
+ */
36
121
  allocation?: ApplicationMethodAllocationValues;
122
+ /**
123
+ * The target rules of the application method.
124
+ */
37
125
  target_rules?: AdminCreatePromotionRule[];
126
+ /**
127
+ * The buy rules of the application method.
128
+ */
38
129
  buy_rules?: AdminCreatePromotionRule[];
130
+ /**
131
+ * The quantity of the application method.
132
+ */
39
133
  apply_to_quantity?: number | null;
134
+ /**
135
+ * The minimum quantity required for a `buyget` promotion to be applied. For example,
136
+ * if the promotion is a "Buy 2 shirts get 1 free", the value of this attribute is 2.
137
+ */
40
138
  buy_rules_min_quantity?: number | null;
41
139
  }
42
140
  export interface AdminCreatePromotion {
141
+ /**
142
+ * The promotion's code.
143
+ */
43
144
  code: string;
145
+ /**
146
+ * Whether the promotion is applied automatically
147
+ * or requires the customer to manually apply it
148
+ * by entering the code at checkout.
149
+ */
44
150
  is_automatic?: boolean;
151
+ /**
152
+ * The type of promotion.
153
+ */
45
154
  type: PromotionTypeValues;
155
+ /**
156
+ * The ID of the campaign that the promotion belongs to.
157
+ */
46
158
  campaign_id?: string | null;
159
+ /**
160
+ * The campaign that the promotion belongs to.
161
+ */
47
162
  campaign?: AdminCreateCampaign;
163
+ /**
164
+ * The application method of the promotion.
165
+ */
48
166
  application_method: AdminCreateApplicationMethod;
167
+ /**
168
+ * The rules of the promotion.
169
+ */
49
170
  rules?: AdminCreatePromotionRule[];
50
171
  }
51
172
  export interface AdminUpdatePromotion {
173
+ /**
174
+ * The promotion's code.
175
+ */
52
176
  code?: string;
177
+ /**
178
+ * Whether the promotion is applied automatically
179
+ * or requires the customer to manually apply it
180
+ * by entering the code at checkout.
181
+ */
53
182
  is_automatic?: boolean;
183
+ /**
184
+ * The type of promotion.
185
+ */
54
186
  type?: PromotionTypeValues;
187
+ /**
188
+ * The status of the promotion.
189
+ */
55
190
  status?: PromotionStatusValues;
191
+ /**
192
+ * The ID of the campaign that the promotion belongs to.
193
+ */
56
194
  campaign_id?: string | null;
195
+ /**
196
+ * The campaign that the promotion belongs to.
197
+ */
57
198
  campaign?: AdminCreateCampaign;
199
+ /**
200
+ * The application method of the promotion.
201
+ */
58
202
  application_method?: AdminUpdateApplicationMethod;
203
+ /**
204
+ * The rules of the promotion.
205
+ */
59
206
  rules?: AdminCreatePromotionRule[];
60
207
  }
61
208
  export interface BatchAddPromotionRulesReq {
209
+ /**
210
+ * The rules to add.
211
+ */
62
212
  rules: AdminCreatePromotionRule[];
63
213
  }
64
214
  export interface BatchRemovePromotionRulesReq {
215
+ /**
216
+ * The IDs of the rules to remove.
217
+ */
65
218
  rule_ids: string[];
66
219
  }
67
220
  export interface BatchUpdatePromotionRulesReq {
221
+ /**
222
+ * The rules to update.
223
+ */
68
224
  rules: AdminUpdatePromotionRule[];
69
225
  }
70
226
  //# sourceMappingURL=payloads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/promotion/admin/payloads.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,2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AAC,EAAE,qBAAqB,CAAA;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAA;IAC9B;;OAEG;IACH,kBAAkB,CAAC,EAAE,4BAA4B,CAAA;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE,wBAAwB,EAAE,CAAA;CACnC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,wBAAwB,EAAE,CAAA;CAClC;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,KAAK,EAAE,wBAAwB,EAAE,CAAA;CAClC"}
@@ -3,16 +3,54 @@ import { FindParams, SelectParams } from "../../common";
3
3
  export interface AdminGetPromotionParams extends SelectParams {
4
4
  }
5
5
  export interface AdminGetPromotionsParams extends FindParams, BaseFilterable<AdminGetPromotionsParams> {
6
+ /**
7
+ * Search for a promotion by its searchable
8
+ */
6
9
  q?: string;
7
- code?: string | string[];
10
+ /**
11
+ * Filter by promotion code.
12
+ */
13
+ code?: string | string[] | OperatorMap<string>;
14
+ /**
15
+ * Filter by campaign ID to retrieve promotions by campaign.
16
+ */
8
17
  campaign_id?: string | string[];
18
+ /**
19
+ * Filter by the promotion's application method.
20
+ */
9
21
  application_method?: {
22
+ /**
23
+ * Filter by the promotion's application method currency code.
24
+ */
10
25
  currency_code?: string | string[];
11
26
  };
27
+ /**
28
+ * Filter by the promotion's currency code.
29
+ */
30
+ currency_code?: string | string[];
31
+ /**
32
+ * Filter by the promotion's created date.
33
+ */
12
34
  created_at?: OperatorMap<string>;
35
+ /**
36
+ * Filter by the promotion's updated date.
37
+ */
13
38
  updated_at?: OperatorMap<string>;
39
+ /**
40
+ * Filter by the promotion's deleted date.
41
+ */
14
42
  deleted_at?: OperatorMap<string>;
43
+ /**
44
+ * Filter by the promotion's application method type.
45
+ */
46
+ application_method_type?: string | string[];
47
+ /**
48
+ * An array of filters to apply on the entity, where each item in the array is joined with an "and" condition.
49
+ */
15
50
  $and?: AdminGetPromotionsParams[];
51
+ /**
52
+ * An array of filters to apply on the entity, where each item in the array is joined with an "or" condition.
53
+ */
16
54
  $or?: AdminGetPromotionsParams[];
17
55
  }
18
56
  export interface AdminGetPromotionRuleParams {
@@ -24,7 +62,13 @@ export interface AdminGetPromotionRuleTypeParams extends SelectParams {
24
62
  application_method_type?: string;
25
63
  }
26
64
  export interface AdminGetPromotionsRuleValueParams extends FindParams {
65
+ /**
66
+ * Search for a rule value by its searchable
67
+ */
27
68
  q?: string;
69
+ /**
70
+ * Filter by rule value.
71
+ */
28
72
  value?: string | string[];
29
73
  }
30
74
  //# sourceMappingURL=queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/promotion/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,WAAW,uBAAwB,SAAQ,YAAY;CAAG;AAEhE,MAAM,WAAW,wBACf,SAAQ,UAAU,EAChB,cAAc,CAAC,wBAAwB,CAAC;IAC1C,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/B,kBAAkB,CAAC,EAAE;QACnB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAClC,CAAA;IACD,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW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AE,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;IAChC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACjC;;OAEG;IACH,GAAG,CAAC,EAAE,wBAAwB,EAAE,CAAA;CACjC;AAED,MAAM,WAAW,2BAA2B;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC;AAED,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACjC;AAED,MAAM,WAAW,iCAAkC,SAAQ,UAAU;IACnE;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC1B"}
@@ -1,21 +1,33 @@
1
1
  import { BatchResponse, DeleteResponse, PaginatedResponse } from "../../common";
2
2
  import { AdminPromotion, AdminPromotionRule, AdminRuleAttributeOption, AdminRuleOperatorOption, AdminRuleValueOption } from "./entities";
3
3
  export interface AdminPromotionResponse {
4
+ /**
5
+ * The promotion's details.
6
+ */
4
7
  promotion: AdminPromotion;
5
8
  }
6
9
  export type AdminPromotionListResponse = PaginatedResponse<{
10
+ /**
11
+ * The list of promotions.
12
+ */
7
13
  promotions: AdminPromotion[];
8
14
  }>;
9
15
  export interface PromotionRuleResponse {
10
16
  rule: AdminPromotionRule;
11
17
  }
12
18
  export type AdminPromotionRuleListResponse = {
19
+ /**
20
+ * The list of promotion rules.
21
+ */
13
22
  rules: AdminPromotionRule[];
14
23
  };
15
24
  export interface RuleAttributeOptionsResponse {
16
25
  attribute: AdminRuleAttributeOption[];
17
26
  }
18
27
  export type AdminRuleAttributeOptionsListResponse = {
28
+ /**
29
+ * The list of rule attribute options.
30
+ */
19
31
  attributes: AdminRuleAttributeOption[];
20
32
  };
21
33
  export interface RuleOperatorOptionsResponse {
@@ -33,9 +45,12 @@ export interface RuleValueOptionsResponse {
33
45
  /**
34
46
  * @experimental
35
47
  */
36
- export type AdminRuleValueOptionsListResponse = {
48
+ export type AdminRuleValueOptionsListResponse = PaginatedResponse<{
49
+ /**
50
+ * The list of rule value options.
51
+ */
37
52
  values: AdminRuleValueOption[];
38
- };
53
+ }>;
39
54
  export type AdminPromotionRuleBatchResponse = BatchResponse<AdminPromotionRule>;
40
55
  export type AdminPromotionDeleteResponse = DeleteResponse<"promotion">;
41
56
  //# sourceMappingURL=responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/promotion/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC/E,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,cAAc,CAAA;CAC1B;AAED,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IACzD,UAAU,EAAE,cAAc,EAAE,CAAA;CAC7B,CAAC,CAAA;AAEF,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,kBAAkB,CAAA;CACzB;AAED,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,kBAAkB,EAAE,CAAA;CAC5B,CAAA;AAED,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,wBAAwB,EAAE,CAAA;CACtC;AAED,MAAM,MAAM,qCAAqC,GAAG;IAClD,UAAU,EAAE,wBAAwB,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,uBAAuB,CAAA;CAClC;AAED,MAAM,MAAM,oCAAoC,GAAG,iBAAiB,CAAC;IACnE,SAAS,EAAE,uBAAuB,EAAE,CAAA;CACrC,CAAC,CAAA;AAEF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,oBAAoB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,MAAM,EAAE,oBAAoB,EAAE,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAAA;AAE/E,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/promotion/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC/E,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,SAAS,EAAE,cAAc,CAAA;CAC1B;AAED,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IACzD;;OAEG;IACH,UAAU,EAAE,cAAc,EAAE,CAAA;CAC7B,CAAC,CAAA;AAEF,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,kBAAkB,CAAA;CACzB;AAED,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;OAEG;IACH,KAAK,EAAE,kBAAkB,EAAE,CAAA;CAC5B,CAAA;AAED,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,wBAAwB,EAAE,CAAA;CACtC;AAED,MAAM,MAAM,qCAAqC,GAAG;IAClD;;OAEG;IACH,UAAU,EAAE,wBAAwB,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,uBAAuB,CAAA;CAClC;AAED,MAAM,MAAM,oCAAoC,GAAG,iBAAiB,CAAC;IACnE,SAAS,EAAE,uBAAuB,EAAE,CAAA;CACrC,CAAC,CAAA;AAEF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,oBAAoB,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC;IAChE;;OAEG;IACH,MAAM,EAAE,oBAAoB,EAAE,CAAA;CAC/B,CAAC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAAA;AAE/E,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,WAAW,CAAC,CAAA"}
@@ -1,10 +1,36 @@
1
1
  import { ApplicationMethodAllocationValues, ApplicationMethodTargetTypeValues, ApplicationMethodTypeValues, PromotionRuleOperatorValues, PromotionStatusValues, PromotionTypeValues } from "../../promotion";
2
2
  import { AdminCampaign } from "../campaign";
3
3
  export interface BasePromotionRule {
4
+ /**
5
+ * The rule's ID.
6
+ */
4
7
  id: string;
8
+ /**
9
+ * The rule's description.
10
+ */
5
11
  description?: string | null;
12
+ /**
13
+ * The attribute to compare against when checking whether a promotion can be applied on a cart.
14
+ *
15
+ * @example
16
+ * items.product_id
17
+ */
6
18
  attribute?: string;
19
+ /**
20
+ * The operator used to check whether the buy rule applies on a cart.
21
+ * For example, `eq` means that the cart's value for the specified attribute
22
+ * must match the specified value.
23
+ *
24
+ * @example
25
+ * eq
26
+ */
7
27
  operator?: PromotionRuleOperatorValues;
28
+ /**
29
+ * The values to compare against when checking whether a promotion can be applied on a cart.
30
+ *
31
+ * @example
32
+ * prod_123
33
+ */
8
34
  values: BasePromotionRuleValue[];
9
35
  }
10
36
  export interface BaseApplicationMethod {
@@ -36,12 +62,27 @@ export interface BasePromotion {
36
62
  deleted_at: string | null;
37
63
  }
38
64
  export interface BasePromotionRuleValue {
65
+ /**
66
+ * The rule value's ID.
67
+ */
39
68
  id: string;
69
+ /**
70
+ * The rule value's value.
71
+ */
40
72
  value?: string;
41
73
  }
42
74
  export interface BaseRuleAttributeOptions {
75
+ /**
76
+ * The rule attribute option's ID.
77
+ */
43
78
  id: string;
79
+ /**
80
+ * The rule attribute option's value.
81
+ */
44
82
  value: string;
83
+ /**
84
+ * The rule attribute option's label.
85
+ */
45
86
  label: string;
46
87
  /**
47
88
  * @ignore
@@ -59,11 +100,23 @@ export interface BaseRuleAttributeOptions {
59
100
  * @ignore
60
101
  */
61
102
  hydrate?: boolean;
103
+ /**
104
+ * The attribute option's operators.
105
+ */
62
106
  operators: BaseRuleOperatorOptions[];
63
107
  }
64
108
  export interface BaseRuleOperatorOptions {
109
+ /**
110
+ * The operator option's ID.
111
+ */
65
112
  id: string;
113
+ /**
114
+ * The operator option's value.
115
+ */
66
116
  value: string;
117
+ /**
118
+ * The operator option's label.
119
+ */
67
120
  label: string;
68
121
  }
69
122
  export interface BaseRuleValueOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/promotion/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,2BAA2B,CAAA;IACtC,MAAM,EAAE,sBAAsB,EAAE,CAAA;CACjC;AAED,MAAM,WAAW,qBAAq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OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,uBAAuB,EAAE,CAAA;CACrC;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/promotion/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAA;IACtC;;;;;OAKG;IACH,MAAM,EAAE,sBAAsB,EAAE,CAAA;CACjC;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,2BAA2B,CAAA;IAClC,WAAW,CAAC,EAAE,iCAAiC,CAAA;IAC/C,UAAU,CAAC,EAAE,iCAAiC,CAAA;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B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IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -1,5 +1,8 @@
1
1
  import { BaseRegion, BaseRegionCountry } from "../common";
2
2
  export interface AdminRegion extends Omit<BaseRegion, "countries"> {
3
+ /**
4
+ * The countries in the region.
5
+ */
3
6
  countries?: AdminRegionCountry[];
4
7
  }
5
8
  export interface AdminRegionCountry extends BaseRegionCountry {
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/region/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAEzD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC;IAChE,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAA;CACjC;AACD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;CAAG"}
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/region/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAEzD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC;IAChE;;OAEG;IACH,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAA;CACjC;AACD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;CAAG"}
@@ -1,19 +1,87 @@
1
1
  export interface AdminCreateRegion {
2
+ /**
3
+ * The name of the region.
4
+ */
2
5
  name: string;
6
+ /**
7
+ * The currency code of the region.
8
+ *
9
+ * @example
10
+ * "usd"
11
+ */
3
12
  currency_code: string;
13
+ /**
14
+ * The 2 ISO code of the countries in the region.
15
+ *
16
+ * @example
17
+ * ["us", "ca"]
18
+ */
4
19
  countries?: string[];
20
+ /**
21
+ * Whether taxes are automatically calculated during checkout
22
+ * for this region.
23
+ */
5
24
  automatic_taxes?: boolean;
25
+ /**
26
+ * Whether prices in this region include taxes by default.
27
+ *
28
+ * Learn more in the [tax-inclusive pricing](https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing#content) documentation.
29
+ */
6
30
  is_tax_inclusive?: boolean;
31
+ /**
32
+ * The IDs of the payment providers that are available in this region. The IDs are
33
+ * of the format `pp_{identifier}_{id}`.
34
+ *
35
+ * @example
36
+ * ["pp_stripe_stripe", "pp_system_default"]
37
+ */
7
38
  payment_providers?: string[];
39
+ /**
40
+ * Custom key-value pairs that can be added to the region.
41
+ */
8
42
  metadata?: Record<string, any> | null;
9
43
  }
10
44
  export interface AdminUpdateRegion {
45
+ /**
46
+ * The name of the region.
47
+ */
11
48
  name?: string;
49
+ /**
50
+ * The currency code of the region.
51
+ *
52
+ * @example
53
+ * "usd"
54
+ */
12
55
  currency_code?: string;
56
+ /**
57
+ * The 2 ISO code of the countries in the region.
58
+ *
59
+ * @example
60
+ * ["us", "ca"]
61
+ */
13
62
  countries?: string[];
63
+ /**
64
+ * Whether taxes are automatically calculated during checkout
65
+ * for this region.
66
+ */
14
67
  automatic_taxes?: boolean;
68
+ /**
69
+ * Whether prices in this region include taxes by default.
70
+ *
71
+ * Learn more in the [tax-inclusive pricing](https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing#content) documentation.
72
+ */
15
73
  is_tax_inclusive?: boolean;
74
+ /**
75
+ * The IDs of the payment providers that are available in this region. The IDs are
76
+ * of the format `pp_{identifier}_{id}`.
77
+ *
78
+ * @example
79
+ * ["pp_stripe_stripe", "pp_system_default"]
80
+ */
16
81
  payment_providers?: string[];
82
+ /**
83
+ * Custom key-value pairs that can be added to the region.
84
+ */
17
85
  metadata?: Record<string, any> | null;
18
86
  }
19
87
  //# sourceMappingURL=payloads.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/region/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC"}
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/region/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC"}
@@ -2,12 +2,33 @@ import { BaseFilterable, OperatorMap } from "../../../dal";
2
2
  import { FindParams } from "../../common";
3
3
  import { BaseRegionCountryFilters } from "../common";
4
4
  export interface AdminRegionFilters extends FindParams, BaseFilterable<AdminRegionFilters> {
5
+ /**
6
+ * Query or keywords to search the region's searchable fields.
7
+ */
5
8
  q?: string;
9
+ /**
10
+ * Filter by region ID(s).
11
+ */
6
12
  id?: string | string[];
13
+ /**
14
+ * Filter by currency code(s).
15
+ */
7
16
  currency_code?: string | string[];
17
+ /**
18
+ * Filter by region name(s).
19
+ */
8
20
  name?: string | string[];
21
+ /**
22
+ * Apply filters on the region's creation date.
23
+ */
9
24
  created_at?: OperatorMap<string>;
25
+ /**
26
+ * Apply filters on the region's update date.
27
+ */
10
28
  updated_at?: OperatorMap<string>;
29
+ /**
30
+ * Apply filters on the region's deletion date.
31
+ */
11
32
  deleted_at?: OperatorMap<string>;
12
33
  }
13
34
  export interface AdminRegionCountryFilters extends BaseRegionCountryFilters {
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/region/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEpD,MAAM,WAAW,kBACf,SAAQ,UAAU,EAChB,cAAc,CAAC,kBAAkB,CAAC;IACpC,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxB,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;AACD,MAAM,WAAW,yBAA0B,SAAQ,wBAAwB;CAAG"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/region/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEpD,MAAM,WAAW,kBACf,SAAQ,UAAU,EAChB,cAAc,CAAC,kBAAkB,CAAC;IACpC;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxB;;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;AACD,MAAM,WAAW,yBAA0B,SAAQ,wBAAwB;CAAG"}
@@ -1,9 +1,15 @@
1
1
  import { DeleteResponse, PaginatedResponse } from "../../common";
2
2
  import { AdminRegion } from "./entities";
3
3
  export interface AdminRegionResponse {
4
+ /**
5
+ * The region's details.
6
+ */
4
7
  region: AdminRegion;
5
8
  }
6
9
  export type AdminRegionListResponse = PaginatedResponse<{
10
+ /**
11
+ * The list of regions.
12
+ */
7
13
  regions: AdminRegion[];
8
14
  }>;
9
15
  export type AdminRegionDeleteResponse = DeleteResponse<"region">;
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/region/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACtD,OAAO,EAAE,WAAW,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/region/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACtD;;OAEG;IACH,OAAO,EAAE,WAAW,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}