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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (242) hide show
  1. package/dist/cart/common.d.ts +64 -47
  2. package/dist/cart/common.d.ts.map +1 -1
  3. package/dist/cart/mutations.d.ts +14 -13
  4. package/dist/cart/mutations.d.ts.map +1 -1
  5. package/dist/cart/mutations.js.map +1 -1
  6. package/dist/cart/workflows.d.ts +6 -5
  7. package/dist/cart/workflows.d.ts.map +1 -1
  8. package/dist/common/rule.d.ts +3 -0
  9. package/dist/common/rule.d.ts.map +1 -1
  10. package/dist/customer/common.d.ts +21 -13
  11. package/dist/customer/common.d.ts.map +1 -1
  12. package/dist/customer/mutations.d.ts +13 -13
  13. package/dist/customer/mutations.d.ts.map +1 -1
  14. package/dist/fulfillment/common/address.d.ts +51 -0
  15. package/dist/fulfillment/common/address.d.ts.map +1 -1
  16. package/dist/fulfillment/common/fulfillment-item.d.ts +39 -0
  17. package/dist/fulfillment/common/fulfillment-item.d.ts.map +1 -1
  18. package/dist/fulfillment/common/fulfillment-label.d.ts +30 -0
  19. package/dist/fulfillment/common/fulfillment-label.d.ts.map +1 -1
  20. package/dist/fulfillment/common/fulfillment-provider.d.ts +24 -0
  21. package/dist/fulfillment/common/fulfillment-provider.d.ts.map +1 -1
  22. package/dist/fulfillment/common/fulfillment-set.d.ts +42 -0
  23. package/dist/fulfillment/common/fulfillment-set.d.ts.map +1 -1
  24. package/dist/fulfillment/common/fulfillment.d.ts +91 -0
  25. package/dist/fulfillment/common/fulfillment.d.ts.map +1 -1
  26. package/dist/fulfillment/common/geo-zone.d.ts +54 -0
  27. package/dist/fulfillment/common/geo-zone.d.ts.map +1 -1
  28. package/dist/fulfillment/common/service-zone.d.ts +52 -0
  29. package/dist/fulfillment/common/service-zone.d.ts.map +1 -1
  30. package/dist/fulfillment/common/shipping-option-rule.d.ts +51 -0
  31. package/dist/fulfillment/common/shipping-option-rule.d.ts.map +1 -1
  32. package/dist/fulfillment/common/shipping-option-type.d.ts +45 -0
  33. package/dist/fulfillment/common/shipping-option-type.d.ts.map +1 -1
  34. package/dist/fulfillment/common/shipping-option.d.ts +117 -0
  35. package/dist/fulfillment/common/shipping-option.d.ts.map +1 -1
  36. package/dist/fulfillment/common/shipping-profile.d.ts +42 -0
  37. package/dist/fulfillment/common/shipping-profile.d.ts.map +1 -1
  38. package/dist/fulfillment/mutations/fulfillment-address.d.ts +39 -0
  39. package/dist/fulfillment/mutations/fulfillment-address.d.ts.map +1 -1
  40. package/dist/fulfillment/mutations/fulfillment-item.d.ts +24 -0
  41. package/dist/fulfillment/mutations/fulfillment-item.d.ts.map +1 -1
  42. package/dist/fulfillment/mutations/fulfillment-label.d.ts +15 -0
  43. package/dist/fulfillment/mutations/fulfillment-label.d.ts.map +1 -1
  44. package/dist/fulfillment/mutations/fulfillment-set.d.ts +32 -2
  45. package/dist/fulfillment/mutations/fulfillment-set.d.ts.map +1 -1
  46. package/dist/fulfillment/mutations/fulfillment.d.ts +66 -0
  47. package/dist/fulfillment/mutations/fulfillment.d.ts.map +1 -1
  48. package/dist/fulfillment/mutations/geo-zone.d.ts +123 -0
  49. package/dist/fulfillment/mutations/geo-zone.d.ts.map +1 -1
  50. package/dist/fulfillment/mutations/service-zone.d.ts +33 -1
  51. package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
  52. package/dist/fulfillment/mutations/shipping-option-rule.d.ts +21 -0
  53. package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
  54. package/dist/fulfillment/mutations/shipping-option-type.d.ts +21 -0
  55. package/dist/fulfillment/mutations/shipping-option-type.d.ts.map +1 -1
  56. package/dist/fulfillment/mutations/shipping-option.d.ts +71 -1
  57. package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
  58. package/dist/fulfillment/mutations/shipping-profile.d.ts +15 -0
  59. package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
  60. package/dist/fulfillment/service.d.ts +1933 -218
  61. package/dist/fulfillment/service.d.ts.map +1 -1
  62. package/dist/http/api-key/admin/api-key.d.ts +31 -0
  63. package/dist/http/api-key/admin/api-key.d.ts.map +1 -0
  64. package/dist/http/api-key/admin/api-key.js +3 -0
  65. package/dist/http/api-key/admin/api-key.js.map +1 -0
  66. package/dist/http/api-key/admin/index.d.ts +2 -0
  67. package/dist/http/api-key/admin/index.d.ts.map +1 -0
  68. package/dist/http/api-key/admin/index.js +18 -0
  69. package/dist/http/api-key/admin/index.js.map +1 -0
  70. package/dist/http/api-key/index.d.ts +2 -0
  71. package/dist/http/api-key/index.d.ts.map +1 -0
  72. package/dist/http/api-key/index.js +18 -0
  73. package/dist/http/api-key/index.js.map +1 -0
  74. package/dist/http/common/index.d.ts +2 -0
  75. package/dist/http/common/index.d.ts.map +1 -0
  76. package/dist/http/common/index.js +18 -0
  77. package/dist/http/common/index.js.map +1 -0
  78. package/dist/http/common/paginated-response.d.ts +6 -0
  79. package/dist/http/common/paginated-response.d.ts.map +1 -0
  80. package/dist/http/common/paginated-response.js +3 -0
  81. package/dist/http/common/paginated-response.js.map +1 -0
  82. package/dist/http/customer/admin/customer.d.ts +78 -0
  83. package/dist/http/customer/admin/customer.d.ts.map +1 -0
  84. package/dist/http/customer/admin/customer.js +3 -0
  85. package/dist/http/customer/admin/customer.js.map +1 -0
  86. package/dist/http/customer/admin/index.d.ts +2 -0
  87. package/dist/http/customer/admin/index.d.ts.map +1 -0
  88. package/dist/http/customer/admin/index.js +18 -0
  89. package/dist/http/customer/admin/index.js.map +1 -0
  90. package/dist/http/customer/index.d.ts +2 -0
  91. package/dist/http/customer/index.d.ts.map +1 -0
  92. package/dist/http/customer/index.js +18 -0
  93. package/dist/http/customer/index.js.map +1 -0
  94. package/dist/http/fulfillment/admin/fulfillment-set.d.ts +7 -1
  95. package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -1
  96. package/dist/http/fulfillment/admin/service-zone.d.ts +10 -0
  97. package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -1
  98. package/dist/http/fulfillment/admin/shipping-option.d.ts +11 -4
  99. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -1
  100. package/dist/http/index.d.ts +6 -0
  101. package/dist/http/index.d.ts.map +1 -1
  102. package/dist/http/index.js +6 -0
  103. package/dist/http/index.js.map +1 -1
  104. package/dist/http/pricing/index.d.ts +2 -0
  105. package/dist/http/pricing/index.d.ts.map +1 -0
  106. package/dist/http/pricing/index.js +18 -0
  107. package/dist/http/pricing/index.js.map +1 -0
  108. package/dist/http/pricing/price.d.ts +8 -0
  109. package/dist/http/pricing/price.d.ts.map +1 -0
  110. package/dist/http/pricing/price.js +3 -0
  111. package/dist/http/pricing/price.js.map +1 -0
  112. package/dist/http/sales-channel/admin/index.d.ts +2 -0
  113. package/dist/http/sales-channel/admin/index.d.ts.map +1 -0
  114. package/dist/http/sales-channel/admin/index.js +18 -0
  115. package/dist/http/sales-channel/admin/index.js.map +1 -0
  116. package/dist/http/sales-channel/admin/sales-channel.d.ts +25 -0
  117. package/dist/http/sales-channel/admin/sales-channel.d.ts.map +1 -0
  118. package/dist/http/sales-channel/admin/sales-channel.js +3 -0
  119. package/dist/http/sales-channel/admin/sales-channel.js.map +1 -0
  120. package/dist/http/sales-channel/index.d.ts +2 -0
  121. package/dist/http/sales-channel/index.d.ts.map +1 -0
  122. package/dist/http/sales-channel/index.js +18 -0
  123. package/dist/http/sales-channel/index.js.map +1 -0
  124. package/dist/http/stock-locations/common.d.ts +28 -0
  125. package/dist/http/stock-locations/common.d.ts.map +1 -0
  126. package/dist/http/stock-locations/common.js +3 -0
  127. package/dist/http/stock-locations/common.js.map +1 -0
  128. package/dist/http/stock-locations/index.d.ts +2 -0
  129. package/dist/http/stock-locations/index.d.ts.map +1 -0
  130. package/dist/http/stock-locations/index.js +18 -0
  131. package/dist/http/stock-locations/index.js.map +1 -0
  132. package/dist/http/tax/admin/index.d.ts +2 -0
  133. package/dist/http/tax/admin/index.d.ts.map +1 -0
  134. package/dist/http/tax/admin/index.js +18 -0
  135. package/dist/http/tax/admin/index.js.map +1 -0
  136. package/dist/http/tax/admin/tax-regions.d.ts +32 -0
  137. package/dist/http/tax/admin/tax-regions.d.ts.map +1 -0
  138. package/dist/http/tax/admin/tax-regions.js +3 -0
  139. package/dist/http/tax/admin/tax-regions.js.map +1 -0
  140. package/dist/http/tax/index.d.ts +2 -0
  141. package/dist/http/tax/index.d.ts.map +1 -0
  142. package/dist/http/tax/index.js +18 -0
  143. package/dist/http/tax/index.js.map +1 -0
  144. package/dist/index.d.ts +4 -3
  145. package/dist/index.d.ts.map +1 -1
  146. package/dist/index.js +4 -3
  147. package/dist/index.js.map +1 -1
  148. package/dist/joiner/index.d.ts +2 -2
  149. package/dist/joiner/index.d.ts.map +1 -1
  150. package/dist/modules-sdk/index.d.ts +2 -1
  151. package/dist/modules-sdk/index.d.ts.map +1 -1
  152. package/dist/order/common.d.ts +111 -45
  153. package/dist/order/common.d.ts.map +1 -1
  154. package/dist/order/index.d.ts +1 -0
  155. package/dist/order/index.d.ts.map +1 -1
  156. package/dist/order/index.js +1 -0
  157. package/dist/order/index.js.map +1 -1
  158. package/dist/order/mutations.d.ts +14 -14
  159. package/dist/order/mutations.d.ts.map +1 -1
  160. package/dist/order/mutations.js.map +1 -1
  161. package/dist/order/service.d.ts +60 -662
  162. package/dist/order/service.d.ts.map +1 -1
  163. package/dist/order/workflows.d.ts +8 -0
  164. package/dist/order/workflows.d.ts.map +1 -0
  165. package/dist/order/workflows.js +3 -0
  166. package/dist/order/workflows.js.map +1 -0
  167. package/dist/payment/common.d.ts +14 -13
  168. package/dist/payment/common.d.ts.map +1 -1
  169. package/dist/payment/common.js.map +1 -1
  170. package/dist/payment/mutations.d.ts +9 -8
  171. package/dist/payment/mutations.d.ts.map +1 -1
  172. package/dist/payment/provider.d.ts +6 -5
  173. package/dist/payment/provider.d.ts.map +1 -1
  174. package/dist/payment/provider.js.map +1 -1
  175. package/dist/payment/service.d.ts +1 -0
  176. package/dist/payment/service.d.ts.map +1 -1
  177. package/dist/pricing/common/money-amount.d.ts +10 -9
  178. package/dist/pricing/common/money-amount.d.ts.map +1 -1
  179. package/dist/pricing/common/price-set.d.ts +9 -8
  180. package/dist/pricing/common/price-set.d.ts.map +1 -1
  181. package/dist/pricing/common/price.d.ts +10 -9
  182. package/dist/pricing/common/price.d.ts.map +1 -1
  183. package/dist/pricing/workflows.d.ts +10 -20
  184. package/dist/pricing/workflows.d.ts.map +1 -1
  185. package/dist/product/common.d.ts +4 -0
  186. package/dist/product/common.d.ts.map +1 -1
  187. package/dist/product-category/repository.d.ts +2 -1
  188. package/dist/product-category/repository.d.ts.map +1 -1
  189. package/dist/promotion/http.d.ts +14 -0
  190. package/dist/promotion/http.d.ts.map +1 -0
  191. package/dist/promotion/http.js +3 -0
  192. package/dist/promotion/http.js.map +1 -0
  193. package/dist/promotion/index.d.ts +1 -0
  194. package/dist/promotion/index.d.ts.map +1 -1
  195. package/dist/promotion/index.js +1 -0
  196. package/dist/promotion/index.js.map +1 -1
  197. package/dist/region/common.d.ts +14 -0
  198. package/dist/region/common.d.ts.map +1 -1
  199. package/dist/region/mutations.d.ts +15 -3
  200. package/dist/region/mutations.d.ts.map +1 -1
  201. package/dist/region/service.d.ts +210 -85
  202. package/dist/region/service.d.ts.map +1 -1
  203. package/dist/tax/common.d.ts +4 -3
  204. package/dist/tax/common.d.ts.map +1 -1
  205. package/dist/totals/big-number.d.ts +1 -0
  206. package/dist/totals/big-number.d.ts.map +1 -1
  207. package/dist/totals/index.d.ts +24 -0
  208. package/dist/totals/index.d.ts.map +1 -1
  209. package/dist/totals/index.js.map +1 -1
  210. package/dist/workflow/fulfillment/create-shipping-options.d.ts +31 -0
  211. package/dist/workflow/fulfillment/create-shipping-options.d.ts.map +1 -0
  212. package/dist/workflow/fulfillment/create-shipping-options.js +3 -0
  213. package/dist/workflow/fulfillment/create-shipping-options.js.map +1 -0
  214. package/dist/workflow/fulfillment/index.d.ts +4 -0
  215. package/dist/workflow/fulfillment/index.d.ts.map +1 -0
  216. package/dist/workflow/fulfillment/index.js +20 -0
  217. package/dist/workflow/fulfillment/index.js.map +1 -0
  218. package/dist/workflow/fulfillment/service-zones.d.ts +21 -0
  219. package/dist/workflow/fulfillment/service-zones.d.ts.map +1 -0
  220. package/dist/workflow/fulfillment/service-zones.js +3 -0
  221. package/dist/workflow/fulfillment/service-zones.js.map +1 -0
  222. package/dist/workflow/fulfillment/update-shipping-options.d.ts +32 -0
  223. package/dist/workflow/fulfillment/update-shipping-options.d.ts.map +1 -0
  224. package/dist/workflow/fulfillment/update-shipping-options.js +3 -0
  225. package/dist/workflow/fulfillment/update-shipping-options.js.map +1 -0
  226. package/dist/workflow/index.d.ts +1 -0
  227. package/dist/workflow/index.d.ts.map +1 -1
  228. package/dist/workflow/index.js +2 -1
  229. package/dist/workflow/index.js.map +1 -1
  230. package/dist/workflows/index.d.ts +2 -0
  231. package/dist/workflows/index.d.ts.map +1 -0
  232. package/dist/workflows/index.js +18 -0
  233. package/dist/workflows/index.js.map +1 -0
  234. package/dist/workflows/stock-locations/index.d.ts +2 -0
  235. package/dist/workflows/stock-locations/index.d.ts.map +1 -0
  236. package/dist/workflows/stock-locations/index.js +18 -0
  237. package/dist/workflows/stock-locations/index.js.map +1 -0
  238. package/dist/workflows/stock-locations/mutations.d.ts +8 -0
  239. package/dist/workflows/stock-locations/mutations.d.ts.map +1 -0
  240. package/dist/workflows/stock-locations/mutations.js +3 -0
  241. package/dist/workflows/stock-locations/mutations.js.map +1 -0
  242. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { Context } from "../shared-context";
5
5
  import { FilterableRegionCountryProps, FilterableRegionProps, RegionCountryDTO, RegionDTO } from "./common";
6
6
  import { CreateRegionDTO, UpdateRegionDTO, UpsertRegionDTO } from "./mutations";
7
7
  /**
8
- * The main service interface for the region module.
8
+ * The main service interface for the Region Module.
9
9
  */
10
10
  export interface IRegionModuleService extends IModuleService {
11
11
  /**
@@ -16,7 +16,18 @@ export interface IRegionModuleService extends IModuleService {
16
16
  * @returns {Promise<RegionDTO[]>} The created regions.
17
17
  *
18
18
  * @example
19
- * {example-code}
19
+ * const region = await regionModuleService.create([
20
+ * {
21
+ * name: "Europe",
22
+ * currency_code: "eur",
23
+ * countries: ["dk", "de", "fr"],
24
+ * },
25
+ * {
26
+ * name: "United States of America",
27
+ * currency_code: "usd",
28
+ * countries: ["us"],
29
+ * },
30
+ * ])
20
31
  */
21
32
  create(data: CreateRegionDTO[], sharedContext?: Context): Promise<RegionDTO[]>;
22
33
  /**
@@ -27,59 +38,89 @@ export interface IRegionModuleService extends IModuleService {
27
38
  * @returns {Promise<RegionDTO>} The created region.
28
39
  *
29
40
  * @example
30
- * {example-code}
41
+ * const region = await regionModuleService.create({
42
+ * name: "Europe",
43
+ * currency_code: "eur",
44
+ * countries: ["dk", "de", "fr"],
45
+ * })
31
46
  */
32
47
  create(data: CreateRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
33
48
  /**
34
- * This method updates existing regions, or creates new ones if they don't exist.
49
+ * This method updates or creates regions if they don't exist.
35
50
  *
36
- * @param {UpsertRegionDTO[]} data - The attributes to update or create in each region.
37
- * @returns {Promise<RegionDTO[]>} The updated and created regions.
51
+ * @param {UpsertRegionDTO[]} data - The attributes in the regions to be created or updated.
52
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
53
+ * @returns {Promise<RegionDTO[]>} The created or updated regions.
38
54
  *
39
55
  * @example
40
- * {example-code}
56
+ * const region = await regionModuleService.upsert([
57
+ * {
58
+ * id: "reg_123",
59
+ * automatic_taxes: false,
60
+ * },
61
+ * {
62
+ * name: "Europe",
63
+ * currency_code: "eur",
64
+ * },
65
+ * ])
41
66
  */
42
67
  upsert(data: UpsertRegionDTO[], sharedContext?: Context): Promise<RegionDTO[]>;
43
68
  /**
44
- * This method updates an existing region, or creates a new one if it doesn't exist.
69
+ * This method updates or creates a region if it doesn't exist.
45
70
  *
46
- * @param {UpsertRegionDTO} data - The attributes to update or create for the region.
47
- * @returns {Promise<RegionDTO>} The updated or created region.
71
+ * @param {UpsertRegionDTO} data - The attributes in the region to be created or updated.
72
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
73
+ * @returns {Promise<RegionDTO>} The created or updated region.
48
74
  *
49
75
  * @example
50
- * {example-code}
76
+ * const region = await regionModuleService.upsert({
77
+ * id: "reg_123",
78
+ * automatic_taxes: false,
79
+ * })
51
80
  */
52
81
  upsert(data: UpsertRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
53
82
  /**
54
83
  * This method updates an existing region.
55
84
  *
56
- * @param {string} id - The region's ID.
57
- * @param {UpdatableRegionFields} data - The details to update in the region.
85
+ * @param {string} id - The ID of the region.
86
+ * @param {UpdateRegionDTO} data - The attributes to update in the region.
58
87
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
59
88
  * @returns {Promise<RegionDTO>} The updated region.
89
+ *
90
+ * @example
91
+ * const region = await regionModuleService.update("reg_123", {
92
+ * automatic_taxes: false,
93
+ * })
60
94
  */
61
95
  update(id: string, data: UpdateRegionDTO, sharedContext?: Context): Promise<RegionDTO>;
62
96
  /**
63
97
  * This method updates existing regions.
64
98
  *
65
- * @param {FilterableRegionProps} selector - The filters to specify which regions should be updated.
66
- * @param {UpdateRegionDTO} data - The details to update in the regions.
99
+ * @param {FilterableRegionProps} selector - The filters to apply on the retrieved regions.
100
+ * @param {UpdateRegionDTO} data - The attributes to update in the region.
67
101
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
68
102
  * @returns {Promise<RegionDTO[]>} The updated regions.
69
103
  *
70
104
  * @example
71
- * {example-code}
105
+ * const region = await regionModuleService.update(
106
+ * {
107
+ * name: "Europe",
108
+ * },
109
+ * {
110
+ * automatic_taxes: false,
111
+ * }
112
+ * )
72
113
  */
73
114
  update(selector: FilterableRegionProps, data: UpdateRegionDTO, sharedContext?: Context): Promise<RegionDTO[]>;
74
115
  /**
75
116
  * This method deletes regions by their IDs.
76
117
  *
77
- * @param {string[]} ids - The list of IDs of regions to delete.
118
+ * @param {string[]} ids - The IDs of the region.
78
119
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
79
120
  * @returns {Promise<void>} Resolves when the regions are deleted.
80
121
  *
81
122
  * @example
82
- * {example-code}
123
+ * await regionModuleService.delete(["reg_123", "reg_321"])
83
124
  */
84
125
  delete(ids: string[], sharedContext?: Context): Promise<void>;
85
126
  /**
@@ -90,209 +131,293 @@ export interface IRegionModuleService extends IModuleService {
90
131
  * @returns {Promise<void>} Resolves when the region is deleted.
91
132
  *
92
133
  * @example
93
- * {example-code}
134
+ * await regionModuleService.delete("reg_123")
94
135
  */
95
136
  delete(id: string, sharedContext?: Context): Promise<void>;
96
137
  /**
97
138
  * This method retrieves a region by its ID.
98
139
  *
99
- * @param {string} id - The ID of the retrieve.
140
+ * @param {string} id - The ID of the region.
100
141
  * @param {FindConfig<RegionDTO>} config - The configurations determining how the region is retrieved. Its properties, such as `select` or `relations`, accept the
101
142
  * attributes or relations associated with a region.
102
143
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
103
144
  * @returns {Promise<RegionDTO>} The retrieved region.
104
145
  *
105
146
  * @example
106
- * A simple example that retrieves a {type name} by its ID:
147
+ * A simple example that retrieves a region by its ID:
107
148
  *
108
149
  * ```ts
109
- * {example-code}
150
+ * const region = await regionModuleService.retrieve("reg_123")
110
151
  * ```
111
152
  *
112
153
  * To specify relations that should be retrieved:
113
154
  *
114
155
  * ```ts
115
- * {example-code}
156
+ * const region = await regionModuleService.retrieve("reg_123", {
157
+ * relations: ["countries"],
158
+ * })
116
159
  * ```
117
- *
118
- *
119
160
  */
120
161
  retrieve(id: string, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<RegionDTO>;
121
162
  /**
122
163
  * This method retrieves a paginated list of regions based on optional filters and configuration.
123
164
  *
124
- * @param {FilterableRegionProps} filters - The filters to apply on the retrieved region.
165
+ * @param {FilterableRegionProps} filters - The filters to apply on the retrieved regions.
125
166
  * @param {FindConfig<RegionDTO>} config - The configurations determining how the region is retrieved. Its properties, such as `select` or `relations`, accept the
126
167
  * attributes or relations associated with a region.
127
168
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
128
169
  * @returns {Promise<RegionDTO[]>} The list of regions.
129
170
  *
130
171
  * @example
131
- * To retrieve a list of {type name} using their IDs:
172
+ * To retrieve a list of regions using their IDs:
132
173
  *
133
174
  * ```ts
134
- * {example-code}
175
+ * const regions = await regionModuleService.list({
176
+ * id: ["reg_123", "reg_321"],
177
+ * })
135
178
  * ```
136
179
  *
137
- * To specify relations that should be retrieved within the {type name}:
180
+ * To specify relations that should be retrieved within the regions:
138
181
  *
139
182
  * ```ts
140
- * {example-code}
183
+ * const regions = await regionModuleService.list(
184
+ * {
185
+ * id: ["reg_123", "reg_321"],
186
+ * },
187
+ * {
188
+ * relations: ["countries"],
189
+ * }
190
+ * )
141
191
  * ```
142
192
  *
143
- * By default, only the first `{default limit}` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
193
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
144
194
  *
145
195
  * ```ts
146
- * {example-code}
196
+ * const regions = await regionModuleService.list(
197
+ * {
198
+ * id: ["reg_123", "reg_321"],
199
+ * },
200
+ * {
201
+ * relations: ["countries"],
202
+ * take: 20,
203
+ * skip: 2,
204
+ * }
205
+ * )
147
206
  * ```
148
- *
149
- *
150
207
  */
151
208
  list(filters?: FilterableRegionProps, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<RegionDTO[]>;
152
209
  /**
153
210
  * This method retrieves a paginated list of regions along with the total count of available regions satisfying the provided filters.
154
211
  *
155
- * @param {FilterableRegionProps} filters - The filters to apply on the retrieved region.
212
+ * @param {FilterableRegionProps} filters - The filters to apply on the retrieved regions.
156
213
  * @param {FindConfig<RegionDTO>} config - The configurations determining how the region is retrieved. Its properties, such as `select` or `relations`, accept the
157
214
  * attributes or relations associated with a region.
158
215
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
159
216
  * @returns {Promise<[RegionDTO[], number]>} The list of regions along with their total count.
160
217
  *
161
218
  * @example
162
- * To retrieve a list of {type name} using their IDs:
219
+ * To retrieve a list of regions using their IDs:
163
220
  *
164
221
  * ```ts
165
- * {example-code}
222
+ * const [regions, count] =
223
+ * await regionModuleService.listAndCount({
224
+ * id: ["reg_123", "reg_321"],
225
+ * })
166
226
  * ```
167
227
  *
168
- * To specify relations that should be retrieved within the {type name}:
228
+ * To specify relations that should be retrieved within the regions:
169
229
  *
170
230
  * ```ts
171
- * {example-code}
231
+ * const [regions, count] =
232
+ * await regionModuleService.listAndCount(
233
+ * {
234
+ * id: ["reg_123", "reg_321"],
235
+ * },
236
+ * {
237
+ * relations: ["countries"],
238
+ * }
239
+ * )
172
240
  * ```
173
241
  *
174
- * By default, only the first `{default limit}` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
242
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
175
243
  *
176
244
  * ```ts
177
- * {example-code}
245
+ * const [regions, count] =
246
+ * await regionModuleService.listAndCount(
247
+ * {
248
+ * id: ["reg_123", "reg_321"],
249
+ * },
250
+ * {
251
+ * relations: ["countries"],
252
+ * take: 20,
253
+ * skip: 2,
254
+ * }
255
+ * )
178
256
  * ```
179
- *
180
- *
181
257
  */
182
258
  listAndCount(filters?: FilterableRegionProps, config?: FindConfig<RegionDTO>, sharedContext?: Context): Promise<[RegionDTO[], number]>;
183
259
  /**
184
- * This method retrieves a country by its ID.
260
+ * This method retrieves a country by its 2 character ISO code.
185
261
  *
186
- * @param {string} countryId - The country's ID.
187
- * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the region country is retrieved. Its properties, such as `select` or `relations`, accept the
188
- * attributes or relations associated with a region country.
262
+ * @param {string} countryId - The country's ID, which is the 2 character ISO code.
263
+ * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the country is retrieved. Its properties, such as `select` or `relations`, accept the
264
+ * attributes or relations associated with a country.
189
265
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
190
266
  * @returns {Promise<RegionCountryDTO>} The retrieved country.
191
267
  *
192
268
  * @example
193
- * A simple example that retrieves a {type name} by its ID:
269
+ * A simple example that retrieves a country by its 2 character ISO code:
194
270
  *
195
271
  * ```ts
196
- * {example-code}
272
+ * const country =
273
+ * await regionModuleService.retrieveCountry("us")
197
274
  * ```
198
275
  *
199
276
  * To specify relations that should be retrieved:
200
277
  *
201
278
  * ```ts
202
- * {example-code}
279
+ * const country = await regionModuleService.retrieveCountry(
280
+ * "us",
281
+ * {
282
+ * relations: ["region"],
283
+ * }
284
+ * )
203
285
  * ```
204
- *
205
- *
206
286
  */
207
287
  retrieveCountry(countryId: string, config?: FindConfig<RegionCountryDTO>, sharedContext?: Context): Promise<RegionCountryDTO>;
208
288
  /**
209
289
  * This method retrieves a paginated list of countries based on optional filters and configuration.
210
290
  *
211
- * @param {FilterableRegionCountryProps} filters - The filters to apply on the retrieved region country.
212
- * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the region country is retrieved. Its properties, such as `select` or `relations`, accept the
213
- * attributes or relations associated with a region country.
291
+ * @param {FilterableRegionCountryProps} filters - The filters to apply on the retrieved countries.
292
+ * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the country is retrieved. Its properties, such as `select` or `relations`, accept the
293
+ * attributes or relations associated with a country.
214
294
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
215
295
  * @returns {Promise<RegionCountryDTO[]>} The list of countries.
216
296
  *
217
297
  * @example
218
- * To retrieve a list of {type name} using their IDs:
298
+ * To retrieve a list of countries using their IDs:
219
299
  *
220
300
  * ```ts
221
- * {example-code}
301
+ * const countries = await regionModuleService.listCountries({
302
+ * iso_2: ["us", "eur"],
303
+ * })
222
304
  * ```
223
305
  *
224
- * To specify relations that should be retrieved within the {type name}:
306
+ * To specify relations that should be retrieved within the countries:
225
307
  *
226
308
  * ```ts
227
- * {example-code}
309
+ * const countries = await regionModuleService.listCountries(
310
+ * {
311
+ * iso_2: ["us", "eur"],
312
+ * },
313
+ * {
314
+ * relations: ["region"],
315
+ * }
316
+ * )
228
317
  * ```
229
318
  *
230
- * By default, only the first `{default limit}` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
319
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
231
320
  *
232
321
  * ```ts
233
- * {example-code}
322
+ * const countries = await regionModuleService.listCountries(
323
+ * {
324
+ * iso_2: ["us", "eur"],
325
+ * },
326
+ * {
327
+ * relations: ["region"],
328
+ * take: 20,
329
+ * skip: 2,
330
+ * }
331
+ * )
234
332
  * ```
235
- *
236
- *
237
333
  */
238
334
  listCountries(filters?: FilterableRegionCountryProps, config?: FindConfig<RegionCountryDTO>, sharedContext?: Context): Promise<RegionCountryDTO[]>;
239
335
  /**
240
336
  * This method retrieves a paginated list of countries along with the total count of available countries satisfying the provided filters.
241
337
  *
242
- * @param {FilterableRegionCountryProps} filters - The filters to apply on the retrieved region country.
243
- * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the region country is retrieved. Its properties, such as `select` or `relations`, accept the
244
- * attributes or relations associated with a region country.
338
+ * @param {FilterableRegionCountryProps} filters - The filters to apply on the retrieved countries.
339
+ * @param {FindConfig<RegionCountryDTO>} config - The configurations determining how the country is retrieved. Its properties, such as `select` or `relations`, accept the
340
+ * attributes or relations associated with a country.
245
341
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
246
342
  * @returns {Promise<[RegionCountryDTO[], number]>} The list of countries along with their total count.
247
343
  *
248
344
  * @example
249
- * To retrieve a list of {type name} using their IDs:
345
+ * To retrieve a list of countries using their IDs:
250
346
  *
251
347
  * ```ts
252
- * {example-code}
348
+ * const [countries, count] =
349
+ * await regionModuleService.listAndCountCountries({
350
+ * iso_2: ["us", "eur"],
351
+ * })
253
352
  * ```
254
353
  *
255
- * To specify relations that should be retrieved within the {type name}:
354
+ * To specify relations that should be retrieved within the countries:
256
355
  *
257
356
  * ```ts
258
- * {example-code}
357
+ * const [countries, count] =
358
+ * await regionModuleService.listAndCountCountries(
359
+ * {
360
+ * iso_2: ["us", "eur"],
361
+ * },
362
+ * {
363
+ * relations: ["region"],
364
+ * }
365
+ * )
259
366
  * ```
260
367
  *
261
- * By default, only the first `{default limit}` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
368
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
262
369
  *
263
370
  * ```ts
264
- * {example-code}
371
+ * const [countries, count] =
372
+ * await regionModuleService.listAndCountCountries(
373
+ * {
374
+ * iso_2: ["us", "eur"],
375
+ * },
376
+ * {
377
+ * relations: ["region"],
378
+ * take: 20,
379
+ * skip: 2,
380
+ * }
381
+ * )
265
382
  * ```
266
- *
267
- *
268
383
  */
269
384
  listAndCountCountries(filters?: FilterableRegionCountryProps, config?: FindConfig<RegionCountryDTO>, sharedContext?: Context): Promise<[RegionCountryDTO[], number]>;
270
385
  /**
271
- * This method soft deletes regions by their IDs.
386
+ * This method soft deletes a region by its IDs.
272
387
  *
273
- * @param {string[]} regionIds - The list of IDs of regions to soft delete.
388
+ * @param {string[]} regionIds - The regions' IDs.
274
389
  * @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.
275
390
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
276
- * @returns {Promise<void | Record<string, string[]>>} Resolves successfully when the regions are soft-deleted.
391
+ * @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 country.
392
+ * The object's keys are the ID attribute names of the region entity's relations, such as `country_id`, and its value is an array of strings, each being the ID of a record associated
393
+ * with the region through this relation, such as the IDs of associated countries.
394
+ *
395
+ * If there are no related records, the promise resolves to `void`.
277
396
  *
278
397
  * @example
279
- * {example-code}
398
+ * await regionModuleService.softDelete(["reg_123", "reg_321"], {
399
+ * returnLinkableKeys: ["country_id"],
400
+ * })
280
401
  */
281
402
  softDelete<TReturnableLinkableKeys extends string = string>(regionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
282
403
  /**
283
404
  * This method restores soft deleted regions by their IDs.
284
405
  *
285
- * @param {string[]} regionIds - The list of IDs of regions to restore.
286
- * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the regions. You can pass to its `returnLinkableKeys`
287
- * property any of the regions's relation attribute names, such as `country`.
406
+ * @param {string[]} regionIds - The regions' IDs.
407
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the region. You can pass to its `returnLinkableKeys`
408
+ * property any of the region's relation attribute names, such as `countries`.
288
409
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
289
- * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated country.
290
- * The object's keys are the ID attribute names of the regions entity's relations, such as `country`,
410
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated countries.
411
+ * The object's keys are the ID attribute names of the region entity's relations, such as `country_id`,
291
412
  * and its value is an array of strings, each being the ID of the record associated with the region through this relation,
292
- * such as the IDs of associated country.
413
+ * such as the IDs of associated countries.
414
+ *
415
+ * If there are no related records restored, the promise resolves to `void`.
293
416
  *
294
417
  * @example
295
- * {example-code}
418
+ * await regionModuleService.restore(["reg_123", "reg_321"], {
419
+ * returnLinkableKeys: ["country_id"],
420
+ * })
296
421
  */
297
422
  restore<TReturnableLinkableKeys extends string = string>(regionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
298
423
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/region/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,EACrB,gBAAgB,EAChB,SAAS,EACV,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE/E;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAA;IAE9E;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;IAE1E;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAA;IAE9E;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;IAE1E;;;;;;;OAOG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,eAAe,EACrB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,SAAS,CAAC,CAAA;IAErB;;;;;;;;;;OAUG;IACH,MAAM,CAC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C,gBAAgB,EAAE,CAAC,CAAA;IAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,qBAAqB,CACnB,OAAO,CAAC,EAAE,4BAA4B,EACtC,MAAM,CAAC,EAAE,UAAU,CAAC,gBAAgB,CAAC,EACrC,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;IAExC;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACxD,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,CAAC,EAAE,gBAAgB,CAAC,uBAAuB,CAAC,EAClD,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;IAE3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,uBAAuB,SAAS,MAAM,GAAG,MAAM,EACrD,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAC/C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC5C"}
@@ -1,5 +1,6 @@
1
1
  import { BaseFilterable } from "../dal";
2
2
  import { OperatorMap } from "../dal/utils";
3
+ import { BigNumberInput } from "../totals";
3
4
  /**
4
5
  * The tax rate details.
5
6
  */
@@ -312,11 +313,11 @@ export interface TaxableItemDTO {
312
313
  /**
313
314
  * The quantity of the taxable item.
314
315
  */
315
- quantity?: number;
316
+ quantity?: BigNumberInput;
316
317
  /**
317
318
  * The unit price of the taxable item.
318
319
  */
319
- unit_price?: number;
320
+ unit_price?: BigNumberInput;
320
321
  /**
321
322
  * The ISO 3 character currency code of the taxable item.
322
323
  */
@@ -337,7 +338,7 @@ export interface TaxableShippingDTO {
337
338
  /**
338
339
  * The unit price of the taxable shipping.
339
340
  */
340
- unit_price?: number;
341
+ unit_price?: BigNumberInput;
341
342
  /**
342
343
  * The ISO 3 character currency code of the taxable shipping.
343
344
  */
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/tax/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE1C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;;OAIG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAExC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,sBACf,SAAQ,cAAc,CAAC,sBAAsB,CAAC;IAC9C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,QAAQ,CAAC,EAAE;QACT;;WAEG;QACH,EAAE,EAAE,MAAM,CAAA;QAEV;;WAEG;QACH,KAAK,EAAE,MAAM,CAAA;QAEb;;WAEG;QACH,eAAe,EAAE,MAAM,EAAE,CAAA;KAC1B,CAAA;IAED;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,UAAU,UAAU;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;CACzB"}
@@ -4,4 +4,5 @@ export type BigNumberRawValue = {
4
4
  [key: string]: unknown;
5
5
  };
6
6
  export type BigNumberInput = BigNumberRawValue | number | string | BigNumberJS;
7
+ export type BigNumberValue = BigNumberJS | number | string;
7
8
  //# sourceMappingURL=big-number.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"big-number.d.ts","sourceRoot":"","sources":["../../src/totals/big-number.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAA;AAEtC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAA"}
1
+ {"version":3,"file":"big-number.d.ts","sourceRoot":"","sources":["../../src/totals/big-number.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAA;AAEtC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,CAAA;AAE9E,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA"}
@@ -1,2 +1,26 @@
1
+ import { BigNumberValue } from "./big-number";
1
2
  export * from "./big-number";
3
+ export type CartLikeWithTotals = {
4
+ original_item_subtotal: BigNumberValue;
5
+ original_item_tax_total: BigNumberValue;
6
+ item_total: BigNumberValue;
7
+ item_subtotal: BigNumberValue;
8
+ item_tax_total: BigNumberValue;
9
+ original_total: BigNumberValue;
10
+ original_subtotal: BigNumberValue;
11
+ original_tax_total: BigNumberValue;
12
+ total: BigNumberValue;
13
+ subtotal: BigNumberValue;
14
+ tax_total: BigNumberValue;
15
+ discount_total: BigNumberValue;
16
+ discount_tax_total: BigNumberValue;
17
+ gift_card_total: BigNumberValue;
18
+ gift_card_tax_total: BigNumberValue;
19
+ shipping_total: BigNumberValue;
20
+ shipping_subtotal: BigNumberValue;
21
+ shipping_tax_total: BigNumberValue;
22
+ original_shipping_total: BigNumberValue;
23
+ original_shipping_subtotal: BigNumberValue;
24
+ original_shipping_tax_total: BigNumberValue;
25
+ };
2
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/totals/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/totals/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,cAAc,cAAc,CAAA;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,sBAAsB,EAAE,cAAc,CAAA;IACtC,uBAAuB,EAAE,cAAc,CAAA;IACvC,UAAU,EAAE,cAAc,CAAA;IAC1B,aAAa,EAAE,cAAc,CAAA;IAC7B,cAAc,EAAE,cAAc,CAAA;IAC9B,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,cAAc,CAAA;IACjC,kBAAkB,EAAE,cAAc,CAAA;IAClC,KAAK,EAAE,cAAc,CAAA;IACrB,QAAQ,EAAE,cAAc,CAAA;IACxB,SAAS,EAAE,cAAc,CAAA;IACzB,cAAc,EAAE,cAAc,CAAA;IAC9B,kBAAkB,EAAE,cAAc,CAAA;IAClC,eAAe,EAAE,cAAc,CAAA;IAC/B,mBAAmB,EAAE,cAAc,CAAA;IACnC,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,cAAc,CAAA;IACjC,kBAAkB,EAAE,cAAc,CAAA;IAClC,uBAAuB,EAAE,cAAc,CAAA;IACvC,0BAA0B,EAAE,cAAc,CAAA;IAC1C,2BAA2B,EAAE,cAAc,CAAA;CAC5C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/totals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/totals/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,+CAA4B"}
@@ -0,0 +1,31 @@
1
+ import { ShippingOptionPriceType } from "../../fulfillment";
2
+ import { RuleOperatorType } from "../../common";
3
+ export interface CreateShippingOptionsWorkflowInput {
4
+ name: string;
5
+ service_zone_id: string;
6
+ shipping_profile_id: string;
7
+ data?: Record<string, unknown>;
8
+ price_type: ShippingOptionPriceType;
9
+ provider_id: string;
10
+ type: {
11
+ label: string;
12
+ description: string;
13
+ code: string;
14
+ };
15
+ prices: ({
16
+ currency_code: string;
17
+ amount: number;
18
+ } | {
19
+ region_id: string;
20
+ amount: number;
21
+ })[];
22
+ rules?: {
23
+ attribute: string;
24
+ operator: RuleOperatorType;
25
+ value: string | string[];
26
+ }[];
27
+ }
28
+ export type CreateShippingOptionsWorkflowOutput = {
29
+ id: string;
30
+ }[];
31
+ //# sourceMappingURL=create-shipping-options.d.ts.map