@medusajs/types 1.12.0-snapshot-20240403120107 → 1.12.0-snapshot-20240405154416

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/dist/auth/common/auth-user.d.ts +21 -16
  2. package/dist/auth/common/auth-user.d.ts.map +1 -1
  3. package/dist/auth/common/provider.d.ts +28 -15
  4. package/dist/auth/common/provider.d.ts.map +1 -1
  5. package/dist/auth/service.d.ts +137 -75
  6. package/dist/auth/service.d.ts.map +1 -1
  7. package/dist/bundles.d.ts +2 -0
  8. package/dist/bundles.d.ts.map +1 -1
  9. package/dist/bundles.js +3 -1
  10. package/dist/bundles.js.map +1 -1
  11. package/dist/cart/common.d.ts +443 -62
  12. package/dist/cart/common.d.ts.map +1 -1
  13. package/dist/cart/mutations.d.ts +483 -0
  14. package/dist/cart/mutations.d.ts.map +1 -1
  15. package/dist/cart/mutations.js.map +1 -1
  16. package/dist/cart/service.d.ts +1607 -0
  17. package/dist/cart/service.d.ts.map +1 -1
  18. package/dist/common/index.d.ts +1 -0
  19. package/dist/common/index.d.ts.map +1 -1
  20. package/dist/common/index.js +1 -0
  21. package/dist/common/index.js.map +1 -1
  22. package/dist/common/rule.d.ts +2 -0
  23. package/dist/common/rule.d.ts.map +1 -0
  24. package/dist/common/rule.js +3 -0
  25. package/dist/common/rule.js.map +1 -0
  26. package/dist/customer/service.d.ts +445 -197
  27. package/dist/customer/service.d.ts.map +1 -1
  28. package/dist/file/common.d.ts +14 -0
  29. package/dist/file/common.d.ts.map +1 -0
  30. package/dist/file/common.js +3 -0
  31. package/dist/file/common.js.map +1 -0
  32. package/dist/file/index.d.ts +4 -0
  33. package/dist/file/index.d.ts.map +1 -0
  34. package/dist/file/index.js +20 -0
  35. package/dist/file/index.js.map +1 -0
  36. package/dist/file/mutations.d.ts +18 -0
  37. package/dist/file/mutations.d.ts.map +1 -0
  38. package/dist/file/mutations.js +3 -0
  39. package/dist/file/mutations.js.map +1 -0
  40. package/dist/file/service.d.ts +76 -0
  41. package/dist/file/service.d.ts.map +1 -0
  42. package/dist/file/service.js +3 -0
  43. package/dist/file/service.js.map +1 -0
  44. package/dist/fulfillment/mutations/shipping-option-rule.d.ts +2 -2
  45. package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
  46. package/dist/http/fulfillment/admin/fulfillment-address.d.ts +22 -0
  47. package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -0
  48. package/dist/http/fulfillment/admin/fulfillment-address.js +3 -0
  49. package/dist/http/fulfillment/admin/fulfillment-address.js.map +1 -0
  50. package/dist/http/fulfillment/admin/fulfillment-item.d.ts +17 -0
  51. package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -0
  52. package/dist/http/fulfillment/admin/fulfillment-item.js +3 -0
  53. package/dist/http/fulfillment/admin/fulfillment-item.js.map +1 -0
  54. package/dist/http/fulfillment/admin/fulfillment-label.d.ts +14 -0
  55. package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -0
  56. package/dist/http/fulfillment/admin/fulfillment-label.js +3 -0
  57. package/dist/http/fulfillment/admin/fulfillment-label.js.map +1 -0
  58. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +12 -0
  59. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -0
  60. package/dist/http/fulfillment/admin/fulfillment-provider.js +3 -0
  61. package/dist/http/fulfillment/admin/fulfillment-provider.js.map +1 -0
  62. package/dist/http/fulfillment/admin/fulfillment-set.d.ts +15 -0
  63. package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -0
  64. package/dist/http/fulfillment/admin/fulfillment-set.js +3 -0
  65. package/dist/http/fulfillment/admin/fulfillment-set.js.map +1 -0
  66. package/dist/http/fulfillment/admin/fulfillment.d.ts +27 -0
  67. package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -0
  68. package/dist/http/fulfillment/admin/fulfillment.js +3 -0
  69. package/dist/http/fulfillment/admin/fulfillment.js.map +1 -0
  70. package/dist/http/fulfillment/admin/geo-zone.d.ts +17 -0
  71. package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -0
  72. package/dist/http/fulfillment/admin/geo-zone.js +3 -0
  73. package/dist/http/fulfillment/admin/geo-zone.js.map +1 -0
  74. package/dist/http/fulfillment/admin/index.d.ts +13 -0
  75. package/dist/http/fulfillment/admin/index.d.ts.map +1 -0
  76. package/dist/http/fulfillment/admin/index.js +29 -0
  77. package/dist/http/fulfillment/admin/index.js.map +1 -0
  78. package/dist/http/fulfillment/admin/service-zone.d.ts +14 -0
  79. package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -0
  80. package/dist/http/fulfillment/admin/service-zone.js +3 -0
  81. package/dist/http/fulfillment/admin/service-zone.js.map +1 -0
  82. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +16 -0
  83. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -0
  84. package/dist/http/fulfillment/admin/shipping-option-rule.js +3 -0
  85. package/dist/http/fulfillment/admin/shipping-option-rule.js.map +1 -0
  86. package/dist/http/fulfillment/admin/shipping-option-type.d.ts +14 -0
  87. package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -0
  88. package/dist/http/fulfillment/admin/shipping-option-type.js +3 -0
  89. package/dist/http/fulfillment/admin/shipping-option-type.js.map +1 -0
  90. package/dist/http/fulfillment/admin/shipping-option.d.ts +31 -0
  91. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -0
  92. package/dist/http/fulfillment/admin/shipping-option.js +3 -0
  93. package/dist/http/fulfillment/admin/shipping-option.js.map +1 -0
  94. package/dist/http/fulfillment/admin/shipping-profile.d.ts +13 -0
  95. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -0
  96. package/dist/http/fulfillment/admin/shipping-profile.js +3 -0
  97. package/dist/http/fulfillment/admin/shipping-profile.js.map +1 -0
  98. package/dist/http/fulfillment/index.d.ts +2 -0
  99. package/dist/http/fulfillment/index.d.ts.map +1 -0
  100. package/dist/http/fulfillment/index.js +18 -0
  101. package/dist/http/fulfillment/index.js.map +1 -0
  102. package/dist/http/index.d.ts +2 -0
  103. package/dist/http/index.d.ts.map +1 -0
  104. package/dist/http/index.js +18 -0
  105. package/dist/http/index.js.map +1 -0
  106. package/dist/index.d.ts +2 -0
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +2 -0
  109. package/dist/index.js.map +1 -1
  110. package/dist/inventory/common/inventory-item.d.ts +55 -64
  111. package/dist/inventory/common/inventory-item.d.ts.map +1 -1
  112. package/dist/inventory/common/inventory-level.d.ts +37 -37
  113. package/dist/inventory/common/inventory-level.d.ts.map +1 -1
  114. package/dist/inventory/common/reservation-item.d.ts +34 -44
  115. package/dist/inventory/common/reservation-item.d.ts.map +1 -1
  116. package/dist/inventory/service-next.d.ts +596 -534
  117. package/dist/inventory/service-next.d.ts.map +1 -1
  118. package/dist/payment/common.d.ts +175 -54
  119. package/dist/payment/common.d.ts.map +1 -1
  120. package/dist/payment/common.js +3 -3
  121. package/dist/payment/common.js.map +1 -1
  122. package/dist/payment/mutations.d.ts +58 -17
  123. package/dist/payment/mutations.d.ts.map +1 -1
  124. package/dist/payment/provider.d.ts +128 -43
  125. package/dist/payment/provider.d.ts.map +1 -1
  126. package/dist/payment/provider.js.map +1 -1
  127. package/dist/payment/service.d.ts +460 -39
  128. package/dist/payment/service.d.ts.map +1 -1
  129. package/dist/pricing/common/price-list.d.ts +2 -2
  130. package/dist/pricing/common/price-set.d.ts +6 -4
  131. package/dist/pricing/common/price-set.d.ts.map +1 -1
  132. package/dist/pricing/service.d.ts +731 -1695
  133. package/dist/pricing/service.d.ts.map +1 -1
  134. package/dist/promotion/common/application-method.d.ts +153 -0
  135. package/dist/promotion/common/application-method.d.ts.map +1 -1
  136. package/dist/promotion/common/campaign-budget.d.ts +37 -0
  137. package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
  138. package/dist/promotion/common/campaign.d.ts +36 -0
  139. package/dist/promotion/common/campaign.d.ts.map +1 -1
  140. package/dist/promotion/common/compute-actions.d.ts +135 -0
  141. package/dist/promotion/common/compute-actions.d.ts.map +1 -1
  142. package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
  143. package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
  144. package/dist/promotion/common/promotion-rule.d.ts +77 -0
  145. package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
  146. package/dist/promotion/common/promotion.d.ts +100 -0
  147. package/dist/promotion/common/promotion.d.ts.map +1 -1
  148. package/dist/promotion/mutations.d.ts +84 -0
  149. package/dist/promotion/mutations.d.ts.map +1 -1
  150. package/dist/promotion/service.d.ts +786 -0
  151. package/dist/promotion/service.d.ts.map +1 -1
  152. package/dist/region/common.d.ts +1 -1
  153. package/dist/region/common.d.ts.map +1 -1
  154. package/dist/region/service.d.ts +1 -1
  155. package/dist/stock-location/common.d.ts +14 -0
  156. package/dist/stock-location/common.d.ts.map +1 -1
  157. package/dist/stock-location/service-next.d.ts +178 -186
  158. package/dist/stock-location/service-next.d.ts.map +1 -1
  159. package/dist/store/common/store.d.ts +42 -0
  160. package/dist/store/common/store.d.ts.map +1 -1
  161. package/dist/store/mutations/store.d.ts +75 -0
  162. package/dist/store/mutations/store.d.ts.map +1 -1
  163. package/dist/store/service.d.ts +113 -75
  164. package/dist/store/service.d.ts.map +1 -1
  165. package/dist/tax/common.d.ts +298 -10
  166. package/dist/tax/common.d.ts.map +1 -1
  167. package/dist/tax/mutations.d.ts +157 -0
  168. package/dist/tax/mutations.d.ts.map +1 -1
  169. package/dist/tax/provider.d.ts +126 -0
  170. package/dist/tax/provider.d.ts.map +1 -1
  171. package/dist/tax/service.d.ts +600 -0
  172. package/dist/tax/service.d.ts.map +1 -1
  173. package/dist/workflow/index.d.ts +1 -0
  174. package/dist/workflow/index.d.ts.map +1 -1
  175. package/dist/workflow/index.js +2 -1
  176. package/dist/workflow/index.js.map +1 -1
  177. package/dist/workflow/region/create-regions.d.ts +8 -0
  178. package/dist/workflow/region/create-regions.d.ts.map +1 -0
  179. package/dist/workflow/region/create-regions.js +3 -0
  180. package/dist/workflow/region/create-regions.js.map +1 -0
  181. package/dist/workflow/region/index.d.ts +3 -0
  182. package/dist/workflow/region/index.d.ts.map +1 -0
  183. package/dist/workflow/region/index.js +19 -0
  184. package/dist/workflow/region/index.js.map +1 -0
  185. package/dist/workflow/region/update-regions.d.ts +9 -0
  186. package/dist/workflow/region/update-regions.d.ts.map +1 -0
  187. package/dist/workflow/region/update-regions.js +3 -0
  188. package/dist/workflow/region/update-regions.js.map +1 -0
  189. package/package.json +1 -1
@@ -4,35 +4,635 @@ import { IModuleService } from "../modules-sdk";
4
4
  import { Context } from "../shared-context";
5
5
  import { FilterableTaxRegionProps, FilterableTaxRateProps, TaxRateDTO, TaxRegionDTO, TaxRateRuleDTO, FilterableTaxRateRuleProps, TaxableItemDTO, TaxCalculationContext, ItemTaxLineDTO, ShippingTaxLineDTO, TaxableShippingDTO } from "./common";
6
6
  import { CreateTaxRateRuleDTO, CreateTaxRateDTO, CreateTaxRegionDTO, UpdateTaxRateDTO, UpsertTaxRateDTO } from "./mutations";
7
+ /**
8
+ * The main service interface for the Tax Module.
9
+ */
7
10
  export interface ITaxModuleService extends IModuleService {
11
+ /**
12
+ * This method retrieves a tax by its ID.
13
+ *
14
+ * @param {string} taxRateId - The tax rate's ID.
15
+ * @param {FindConfig<TaxRateDTO>} config - The configurations determining how the tax rate is retrieved. Its properties, such as `select` or `relations`, accept the
16
+ * attributes or relations associated with a tax rate.
17
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
18
+ * @returns {Promise<TaxRateDTO>} The retrieved tax.
19
+ *
20
+ * @example
21
+ * A simple example that retrieves a tax rate by its ID:
22
+ *
23
+ * ```ts
24
+ * const taxRate = await taxModuleService.retrieve("txr_123")
25
+ * ```
26
+ *
27
+ * To specify relations that should be retrieved:
28
+ *
29
+ * ```ts
30
+ * const taxRate = await taxModuleService.retrieve("txr_123", {
31
+ * relations: ["tax_region"],
32
+ * })
33
+ * ```
34
+ */
8
35
  retrieve(taxRateId: string, config?: FindConfig<TaxRateDTO>, sharedContext?: Context): Promise<TaxRateDTO>;
36
+ /**
37
+ * This method retrieves a paginated list of tax rates based on optional filters and configuration.
38
+ *
39
+ * @param {FilterableTaxRateProps} filters - The filters to apply on the retrieved tax rates.
40
+ * @param {FindConfig<TaxRateDTO>} config - The configurations determining how the tax rate is retrieved. Its properties, such as `select` or `relations`, accept the
41
+ * attributes or relations associated with a tax rate.
42
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
43
+ * @returns {Promise<TaxRateDTO[]>} The list of tax rates.
44
+ *
45
+ * @example
46
+ * To retrieve a list of tax rates using their IDs:
47
+ *
48
+ * ```ts
49
+ * const taxRates = await taxModuleService.list({
50
+ * id: ["txr_123", "txr_321"],
51
+ * })
52
+ * ```
53
+ *
54
+ * To specify relations that should be retrieved within the tax rate:
55
+ *
56
+ * ```ts
57
+ * const taxRates = await taxModuleService.list(
58
+ * {
59
+ * id: ["txr_123", "txr_321"],
60
+ * },
61
+ * {
62
+ * relations: ["tax_region"],
63
+ * }
64
+ * )
65
+ * ```
66
+ *
67
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
68
+ *
69
+ * ```ts
70
+ * const taxRates = await taxModuleService.list(
71
+ * {
72
+ * id: ["txr_123", "txr_321"],
73
+ * },
74
+ * {
75
+ * relations: ["tax_region"],
76
+ * take: 20,
77
+ * skip: 2,
78
+ * }
79
+ * )
80
+ * ```
81
+ */
9
82
  list(filters?: FilterableTaxRateProps, config?: FindConfig<TaxRateDTO>, sharedContext?: Context): Promise<TaxRateDTO[]>;
83
+ /**
84
+ * This method retrieves a paginated list of tax rates along with the total count of available tax rates satisfying the provided filters.
85
+ *
86
+ * @param {FilterableTaxRateProps} filters - The filters to apply on the retrieved tax rates.
87
+ * @param {FindConfig<TaxRateDTO>} config - The configurations determining how the tax rate is retrieved. Its properties, such as `select` or `relations`, accept the
88
+ * attributes or relations associated with a tax rate.
89
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
90
+ * @returns {Promise<[TaxRateDTO[], number]>} The list of tax rates along with their total count.
91
+ *
92
+ * @example
93
+ * To retrieve a list of tax rates using their IDs:
94
+ *
95
+ * ```ts
96
+ * const [taxRates, count] = await taxModuleService.listAndCount(
97
+ * {
98
+ * id: ["txr_123", "txr_321"],
99
+ * }
100
+ * )
101
+ * ```
102
+ *
103
+ * To specify relations that should be retrieved within the tax rate:
104
+ *
105
+ * ```ts
106
+ * const [taxRates, count] = await taxModuleService.listAndCount(
107
+ * {
108
+ * id: ["txr_123", "txr_321"],
109
+ * },
110
+ * {
111
+ * relations: ["tax_region"],
112
+ * }
113
+ * )
114
+ * ```
115
+ *
116
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
117
+ *
118
+ * ```ts
119
+ * const [taxRates, count] = await taxModuleService.listAndCount(
120
+ * {
121
+ * id: ["txr_123", "txr_321"],
122
+ * },
123
+ * {
124
+ * relations: ["tax_region"],
125
+ * take: 20,
126
+ * skip: 2,
127
+ * }
128
+ * )
129
+ * ```
130
+ */
10
131
  listAndCount(filters?: FilterableTaxRateProps, config?: FindConfig<TaxRateDTO>, sharedContext?: Context): Promise<[TaxRateDTO[], number]>;
132
+ /**
133
+ * This method creates tax rates.
134
+ *
135
+ * @param {CreateTaxRateDTO[]} data - The tax rates to be created.
136
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
137
+ * @returns {Promise<TaxRateDTO[]>} The created tax rates.
138
+ *
139
+ * @example
140
+ * const taxRates = await taxModuleService.create([
141
+ * {
142
+ * tax_region_id: "txreg_123",
143
+ * name: "Default rate",
144
+ * rate: 10,
145
+ * },
146
+ * {
147
+ * tax_region_id: "txreg_123",
148
+ * name: "Custom rate",
149
+ * rate: 15,
150
+ * rules: [
151
+ * {
152
+ * reference: "product_type",
153
+ * reference_id: "ptyp_1",
154
+ * },
155
+ * {
156
+ * reference: "product",
157
+ * reference_id: "prod_123",
158
+ * },
159
+ * ],
160
+ * },
161
+ * ])
162
+ */
11
163
  create(data: CreateTaxRateDTO[], sharedContext?: Context): Promise<TaxRateDTO[]>;
164
+ /**
165
+ * This method creates a tax rate.
166
+ *
167
+ * @param {CreateTaxRateDTO} data - The tax rate to be created.
168
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
169
+ * @returns {Promise<TaxRateDTO>} The created tax rate.
170
+ *
171
+ * @example
172
+ * const taxRate = await taxModuleService.create({
173
+ * tax_region_id: "txreg_123",
174
+ * name: "Default rate",
175
+ * rate: 10,
176
+ * })
177
+ */
12
178
  create(data: CreateTaxRateDTO, sharedContext?: Context): Promise<TaxRateDTO>;
179
+ /**
180
+ * This method updates an existing tax rate.
181
+ *
182
+ * @param {string} taxRateId - The tax rate's ID.
183
+ * @param {UpdateTaxRateDTO} data - The attributes to update in the tax rate.
184
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
185
+ * @returns {Promise<TaxRateDTO>} The updated tax rate.
186
+ *
187
+ * @example
188
+ * const taxRate = await taxModuleService.update("txr_123", {
189
+ * rate: 10,
190
+ * })
191
+ */
13
192
  update(taxRateId: string, data: UpdateTaxRateDTO, sharedContext?: Context): Promise<TaxRateDTO>;
193
+ /**
194
+ * This method updates existing tax rates.
195
+ *
196
+ * @param {string[]} taxRateIds - The IDs of tax rates to update.
197
+ * @param {UpdateTaxRateDTO} data - The attributes to update in the tax rate.
198
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
199
+ * @returns {Promise<TaxRateDTO[]>} The updated tax rates.
200
+ *
201
+ * @example
202
+ * const taxRates = await taxModuleService.update(
203
+ * ["txr_123", "txr_321"],
204
+ * {
205
+ * rate: 10,
206
+ * }
207
+ * )
208
+ */
14
209
  update(taxRateIds: string[], data: UpdateTaxRateDTO, sharedContext?: Context): Promise<TaxRateDTO[]>;
210
+ /**
211
+ * This method updates existing tax rates matching the specified filters.
212
+ *
213
+ * @param {FilterableTaxRateProps} selector - The filters specifying which tax rates to update.
214
+ * @param {UpdateTaxRateDTO} data - The attributes to update in the tax rate.
215
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
216
+ * @returns {Promise<TaxRateDTO[]>} The updated tax rates.
217
+ *
218
+ * @example
219
+ * const taxRates = await taxModuleService.update(
220
+ * {
221
+ * id: ["txr_123", "txr_321"],
222
+ * },
223
+ * {
224
+ * rate: 10,
225
+ * }
226
+ * )
227
+ */
15
228
  update(selector: FilterableTaxRateProps, data: UpdateTaxRateDTO, sharedContext?: Context): Promise<TaxRateDTO[]>;
229
+ /**
230
+ * This method updates or creates a tax rate if it doesn't exist.
231
+ *
232
+ * @param {UpsertTaxRateDTO} data - The attributes in the tax rate to be created or updated.
233
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
234
+ * @returns {Promise<TaxRateDTO>} The created or updated tax rate.
235
+ *
236
+ * @example
237
+ * const taxRate = await taxModuleService.upsert({
238
+ * id: "txr_123",
239
+ * rate: 10,
240
+ * })
241
+ */
16
242
  upsert(data: UpsertTaxRateDTO, sharedContext?: Context): Promise<TaxRateDTO>;
243
+ /**
244
+ * This method updates or creates tax rates if they don't exist.
245
+ *
246
+ * @param {UpsertTaxRateDTO[]} data - The attributes in the tax rates to be created or updated.
247
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
248
+ * @returns {Promise<TaxRateDTO[]>} The created or updated tax rates.
249
+ *
250
+ * @example
251
+ * const taxRates = await taxModuleService.upsert([
252
+ * {
253
+ * id: "txr_123",
254
+ * rate: 10,
255
+ * },
256
+ * ])
257
+ */
17
258
  upsert(data: UpsertTaxRateDTO[], sharedContext?: Context): Promise<TaxRateDTO[]>;
259
+ /**
260
+ * This method deletes tax rates by their IDs.
261
+ *
262
+ * @param {string[]} taxRateIds - The IDs of tax rates to delete.
263
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
264
+ * @returns {Promise<void>} Resolves when the tax rates are deleted successfully.
265
+ *
266
+ * @example
267
+ * await taxModuleService.delete(["txr_123", "txr_321"])
268
+ */
18
269
  delete(taxRateIds: string[], sharedContext?: Context): Promise<void>;
270
+ /**
271
+ * This method deletes a tax rate by its ID.
272
+ *
273
+ * @param {string} taxRateId - The tax rate's ID.
274
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
275
+ * @returns {Promise<void>} Resolves when the tax rate is deleted successfully.
276
+ *
277
+ * @example
278
+ * await taxModuleService.delete("txr_123")
279
+ */
19
280
  delete(taxRateId: string, sharedContext?: Context): Promise<void>;
281
+ /**
282
+ * This method restores soft deleted tax rates by their IDs.
283
+ *
284
+ * @param {string[]} taxRateIds - The IDs of the tax rates.
285
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the tax. You can pass to its `returnLinkableKeys`
286
+ * property any of the tax rate's relation attribute names, such as `rules`.
287
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
288
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated rules.
289
+ * The object's keys are the ID attribute names of the tax rate entity's relations, such as `rule_id`,
290
+ * and its value is an array of strings, each being the ID of the record associated with the tax rate through this relation,
291
+ * such as the IDs of associated rules.
292
+ *
293
+ * If there are no related records restored, the promise resolves to `void`.
294
+ *
295
+ * @example
296
+ * await taxModuleService.restore(["txr_123", "txr_321"])
297
+ */
20
298
  restore<TReturnableLinkableKeys extends string = string>(taxRateIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
299
+ /**
300
+ * This method creates a tax region.
301
+ *
302
+ * @param {CreateTaxRegionDTO} data - The tax region to be created.
303
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
304
+ * @returns {Promise<TaxRegionDTO>} The created tax region.
305
+ *
306
+ * @example
307
+ * const taxRegion = await taxModuleService.createTaxRegions({
308
+ * country_code: "us",
309
+ * })
310
+ */
21
311
  createTaxRegions(data: CreateTaxRegionDTO, sharedContext?: Context): Promise<TaxRegionDTO>;
312
+ /**
313
+ * This method creates tax regions.
314
+ *
315
+ * @param {CreateTaxRegionDTO[]} data - The tax regions to be created.
316
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
317
+ * @returns {Promise<TaxRegionDTO[]>} The created tax regions.
318
+ *
319
+ * @example
320
+ * const taxRegions = await taxModuleService.createTaxRegions([
321
+ * {
322
+ * country_code: "us",
323
+ * },
324
+ * {
325
+ * country_code: "gb",
326
+ * },
327
+ * ])
328
+ */
22
329
  createTaxRegions(data: CreateTaxRegionDTO[], sharedContext?: Context): Promise<TaxRegionDTO[]>;
330
+ /**
331
+ * This method deletes tax regions by their IDs.
332
+ *
333
+ * @param {string[]} taxRegionIds - The IDs of the tax regions.
334
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
335
+ * @returns {Promise<void>} Resolves when the tax regions are deleted.
336
+ *
337
+ * @example
338
+ * await taxModuleService.deleteTaxRegions([
339
+ * "txreg_123",
340
+ * "txreg_321",
341
+ * ])
342
+ */
23
343
  deleteTaxRegions(taxRegionIds: string[], sharedContext?: Context): Promise<void>;
344
+ /**
345
+ * This method deletes a tax region by its ID.
346
+ *
347
+ * @param {string} taxRegionId - The tax region's ID.
348
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
349
+ * @returns {Promise<void>} Resolves when the tax region is successfully deleted.
350
+ *
351
+ * @example
352
+ * await taxModuleService.deleteTaxRegions("txreg_123")
353
+ */
24
354
  deleteTaxRegions(taxRegionId: string, sharedContext?: Context): Promise<void>;
355
+ /**
356
+ * This method retrieves a paginated list of tax regions based on optional filters and configuration.
357
+ *
358
+ * @param {FilterableTaxRegionProps} filters - The filters to apply on the retrieved tax regions.
359
+ * @param {FindConfig<TaxRegionDTO>} config - The configurations determining how the tax region is retrieved. Its properties, such as `select` or `relations`, accept the
360
+ * attributes or relations associated with a tax region.
361
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
362
+ * @returns {Promise<TaxRegionDTO[]>} The list of tax regions.
363
+ *
364
+ * @example
365
+ * To retrieve a list of tax regions using their IDs:
366
+ *
367
+ * ```ts
368
+ * const taxRegions = await taxModuleService.listTaxRegions({
369
+ * id: ["txreg_123", "txreg_321"],
370
+ * })
371
+ * ```
372
+ *
373
+ * To specify relations that should be retrieved within the tax region:
374
+ *
375
+ * ```ts
376
+ * const taxRegions = await taxModuleService.listTaxRegions(
377
+ * {
378
+ * id: ["txreg_123", "txreg_321"],
379
+ * },
380
+ * {
381
+ * relations: ["tax_rates"],
382
+ * }
383
+ * )
384
+ * ```
385
+ *
386
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
387
+ *
388
+ * ```ts
389
+ * const taxRegions = await taxModuleService.listTaxRegions(
390
+ * {
391
+ * id: ["txreg_123", "txreg_321"],
392
+ * },
393
+ * {
394
+ * relations: ["tax_rates"],
395
+ * take: 20,
396
+ * skip: 2,
397
+ * }
398
+ * )
399
+ * ```
400
+ */
25
401
  listTaxRegions(filters?: FilterableTaxRegionProps, config?: FindConfig<TaxRegionDTO>, sharedContext?: Context): Promise<TaxRegionDTO[]>;
402
+ /**
403
+ * This method creates a tax rate rule.
404
+ *
405
+ * @param {CreateTaxRateRuleDTO} data - The tax rate rule to be created.
406
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
407
+ * @returns {Promise<TaxRateRuleDTO>} The created tax rate rule.
408
+ *
409
+ * @example
410
+ * const taxRateRule = await taxModuleService.createTaxRateRules(
411
+ * {
412
+ * reference: "product_type",
413
+ * reference_id: "ptyp_123",
414
+ * tax_rate_id: "txr_123",
415
+ * }
416
+ * )
417
+ */
26
418
  createTaxRateRules(data: CreateTaxRateRuleDTO, sharedContext?: Context): Promise<TaxRateRuleDTO>;
419
+ /**
420
+ * This method creates tax rate rules.
421
+ *
422
+ * @param {CreateTaxRateRuleDTO[]} data - The tax rate rules to be created.
423
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
424
+ * @returns {Promise<TaxRateRuleDTO[]>} The created tax rate rules.
425
+ *
426
+ * @example
427
+ * const taxRateRules =
428
+ * await taxModuleService.createTaxRateRules([
429
+ * {
430
+ * reference: "product_type",
431
+ * reference_id: "ptyp_123",
432
+ * tax_rate_id: "txr_123",
433
+ * },
434
+ * {
435
+ * reference: "product",
436
+ * reference_id: "prod_123",
437
+ * tax_rate_id: "txr_321",
438
+ * },
439
+ * ])
440
+ */
27
441
  createTaxRateRules(data: CreateTaxRateRuleDTO[], sharedContext?: Context): Promise<TaxRateRuleDTO[]>;
442
+ /**
443
+ * This method deletes a tax rate rule by its ID.
444
+ *
445
+ * @param {string} taxRateRuleId - The tax rate rule's ID.
446
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
447
+ * @returns {Promise<void>} Resolves when the tax rate rule is deleted successfully.
448
+ *
449
+ * @example
450
+ * await taxModuleService.deleteTaxRateRules("txrule_123")
451
+ */
28
452
  deleteTaxRateRules(taxRateRuleId: string, sharedContext?: Context): Promise<void>;
453
+ /**
454
+ * This method deletes tax rate rules by their IDs.
455
+ *
456
+ * @param {string[]} taxRateRuleIds - The tax rate rules' IDs.
457
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
458
+ * @returns {Promise<void>} Resolves when the tax rate rules are deleted successfully.
459
+ *
460
+ * @example
461
+ * await taxModuleService.deleteTaxRateRules([
462
+ * "txrule_123",
463
+ * "txrule_321",
464
+ * ])
465
+ */
29
466
  deleteTaxRateRules(taxRateRuleIds: string[], sharedContext?: Context): Promise<void>;
467
+ /**
468
+ * This method retrieves a paginated list of tax rate rules based on optional filters and configuration.
469
+ *
470
+ * @param {FilterableTaxRateRuleProps} filters - The filters to apply on the retrieved tax rate rules.
471
+ * @param {FindConfig<TaxRateRuleDTO>} config - The configurations determining how the tax rate rule is retrieved. Its properties, such as `select` or `relations`, accept the
472
+ * attributes or relations associated with a tax rate rule.
473
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
474
+ * @returns {Promise<TaxRateRuleDTO[]>} The list of tax rate rules.
475
+ *
476
+ * @example
477
+ * To retrieve a list of tax rate rules using their associated tax rate's ID:
478
+ *
479
+ * ```ts
480
+ * const taxRateRules = await taxModuleService.listTaxRateRules({
481
+ * tax_rate_id: ["txr_123", "txr_321"],
482
+ * })
483
+ * ```
484
+ *
485
+ * To specify relations that should be retrieved within the tax rate rule:
486
+ *
487
+ * ```ts
488
+ * const taxRateRules = await taxModuleService.listTaxRateRules(
489
+ * {
490
+ * tax_rate_id: ["txr_123", "txr_321"],
491
+ * },
492
+ * {
493
+ * relations: ["tax_rate"],
494
+ * }
495
+ * )
496
+ * ```
497
+ *
498
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
499
+ *
500
+ * ```ts
501
+ * const taxRateRules = await taxModuleService.listTaxRateRules(
502
+ * {
503
+ * tax_rate_id: ["txr_123", "txr_321"],
504
+ * },
505
+ * {
506
+ * relations: ["tax_rate"],
507
+ * take: 20,
508
+ * skip: 2,
509
+ * }
510
+ * )
511
+ * ```
512
+ */
30
513
  listTaxRateRules(filters?: FilterableTaxRateRuleProps, config?: FindConfig<TaxRateRuleDTO>, sharedContext?: Context): Promise<TaxRateRuleDTO[]>;
514
+ /**
515
+ * This method retrieves tax lines for taxable items and shipping methods in a cart.
516
+ *
517
+ * Learn more in [this guide](https://docs.medusajs.com/experimental/tax/tax-calculation-with-provider/).
518
+ *
519
+ * @param {(TaxableItemDTO | TaxableShippingDTO)[]} items - The items and shipping methods to retrieve their tax lines.
520
+ * @param {TaxCalculationContext} calculationContext - The context to pass to the underlying tax provider. It provides more
521
+ * details that are useful to provide accurate tax lines.
522
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
523
+ * @returns {Promise<(ItemTaxLineDTO | ShippingTaxLineDTO)[]>} The item and shipping methods' tax lines.
524
+ *
525
+ * @example
526
+ * const taxLines = await taxModuleService.getTaxLines(
527
+ * [
528
+ * {
529
+ * id: "cali_123",
530
+ * product_id: "prod_123",
531
+ * unit_price: 1000,
532
+ * quantity: 1,
533
+ * },
534
+ * {
535
+ * id: "casm_123",
536
+ * shipping_option_id: "so_123",
537
+ * unit_price: 2000,
538
+ * },
539
+ * ],
540
+ * {
541
+ * address: {
542
+ * country_code: "us",
543
+ * },
544
+ * }
545
+ * )
546
+ */
31
547
  getTaxLines(items: (TaxableItemDTO | TaxableShippingDTO)[], calculationContext: TaxCalculationContext, sharedContext?: Context): Promise<(ItemTaxLineDTO | ShippingTaxLineDTO)[]>;
548
+ /**
549
+ * This method soft deletes tax raes by their IDs.
550
+ *
551
+ * @param {string[]} taxRateIds - The IDs of the tax rates.
552
+ * @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
553
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
554
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted, such as the ID of the associated rules.
555
+ * The object's keys are the ID attribute names of the tax rate entity's relations, such as `rule_id`, and its value is an array of strings, each being the ID of a record associated
556
+ * with the tax rate through this relation, such as the IDs of associated rules.
557
+ *
558
+ * If there are no related records, the promise resolves to `void`.
559
+ *
560
+ * @example
561
+ * await taxModuleService.softDelete(["txr_123", "txr_321"])
562
+ */
32
563
  softDelete<TReturnableLinkableKeys extends string = string>(taxRateIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
564
+ /**
565
+ * This method soft deletes tax regions by their IDs.
566
+ *
567
+ * @param {string[]} taxRegionIds - The IDs of the tax regions.
568
+ * @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
569
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
570
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted, such as the ID of the associated tax rates.
571
+ * The object's keys are the ID attribute names of the tax region entity's relations, such as `tax_rate_id`, and its value is an array of strings, each being the ID of a record associated
572
+ * with the tax region through this relation, such as the IDs of associated tax rates.
573
+ *
574
+ * If there are no related records, the promise resolves to `void`.
575
+ *
576
+ * @example
577
+ * await taxModuleService.softDeleteTaxRegions([
578
+ * "txreg_123",
579
+ * "txreg_321",
580
+ * ])
581
+ */
33
582
  softDeleteTaxRegions<TReturnableLinkableKeys extends string = string>(taxRegionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
583
+ /**
584
+ * This method restores soft deleted tax regions by their IDs.
585
+ *
586
+ * @param {string[]} taxRegionIds - The IDs of the tax regions.
587
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the tax. You can pass to its `returnLinkableKeys`
588
+ * property any of the tax region's relation attribute names, such as `tax_rates`.
589
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
590
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated tax rates.
591
+ * The object's keys are the ID attribute names of the tax region entity's relations, such as `tax_rate_id`,
592
+ * and its value is an array of strings, each being the ID of the record associated with the tax region through this relation,
593
+ * such as the IDs of associated tax rates.
594
+ *
595
+ * If there are no related records restored, the promise resolves to `void`.
596
+ *
597
+ * @example
598
+ * await taxModuleService.restoreTaxRegions([
599
+ * "txreg_123",
600
+ * "txreg_321",
601
+ * ])
602
+ */
34
603
  restoreTaxRegions<TReturnableLinkableKeys extends string = string>(taxRegionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
604
+ /**
605
+ * This method soft deletes tax rate rules by their IDs.
606
+ *
607
+ * @param {string[]} taxRateRuleIds - The IDs of the tax rate rules.
608
+ * @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
609
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
610
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
611
+ * If there are no related records, the promise resolves to `void`.
612
+ *
613
+ * @example
614
+ * await taxModuleService.softDeleteTaxRateRules([
615
+ * "txrule_123",
616
+ * "txrule_321",
617
+ * ])
618
+ */
35
619
  softDeleteTaxRateRules<TReturnableLinkableKeys extends string = string>(taxRateRuleIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
620
+ /**
621
+ * This method restores soft deleted tax rate rules by their IDs.
622
+ *
623
+ * @param {string[]} taxRateRuleIds - The IDs of the tax rate rules.
624
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the tax. You can pass to its `returnLinkableKeys`
625
+ * property any of the tax rate rule's relation attribute names.
626
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
627
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
628
+ * If there are no related records restored, the promise resolves to `void`.
629
+ *
630
+ * @example
631
+ * await taxModuleService.restoreTaxRateRules([
632
+ * "txrule_123",
633
+ * "txrule_321",
634
+ * ])
635
+ */
36
636
  restoreTaxRateRules<TReturnableLinkableKeys extends string = string>(taxRateRuleIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
37
637
  }
38
638
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/tax/service.ts"],"names":[],"mappings":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EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC5C"}
@@ -4,5 +4,6 @@ export * as ProductWorkflow from "./product";
4
4
  export * as InventoryWorkflow from "./inventory";
5
5
  export * as PriceListWorkflow from "./price-list";
6
6
  export * as UserWorkflow from "./user";
7
+ export * as RegionWorkflow from "./region";
7
8
  export * as InviteWorkflow from "./invite";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,eAAe,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,eAAe,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,iBAAiB,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA;AAC1C,OAAO,KAAK,cAAc,MAAM,UAAU,CAAA"}