@medusajs/types 1.12.0-snapshot-20240405070935 → 1.12.0-snapshot-20240406075900

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) 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 +3 -0
  103. package/dist/http/index.d.ts.map +1 -0
  104. package/dist/http/index.js +19 -0
  105. package/dist/http/index.js.map +1 -0
  106. package/dist/http/stock-locations/common.d.ts +28 -0
  107. package/dist/http/stock-locations/common.d.ts.map +1 -0
  108. package/dist/http/stock-locations/common.js +3 -0
  109. package/dist/http/stock-locations/common.js.map +1 -0
  110. package/dist/http/stock-locations/index.d.ts +2 -0
  111. package/dist/http/stock-locations/index.d.ts.map +1 -0
  112. package/dist/http/stock-locations/index.js +18 -0
  113. package/dist/http/stock-locations/index.js.map +1 -0
  114. package/dist/index.d.ts +4 -1
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +4 -1
  117. package/dist/index.js.map +1 -1
  118. package/dist/inventory/common/inventory-item.d.ts +55 -64
  119. package/dist/inventory/common/inventory-item.d.ts.map +1 -1
  120. package/dist/inventory/common/inventory-level.d.ts +37 -37
  121. package/dist/inventory/common/inventory-level.d.ts.map +1 -1
  122. package/dist/inventory/common/reservation-item.d.ts +34 -44
  123. package/dist/inventory/common/reservation-item.d.ts.map +1 -1
  124. package/dist/inventory/service-next.d.ts +596 -534
  125. package/dist/inventory/service-next.d.ts.map +1 -1
  126. package/dist/payment/common.d.ts +174 -53
  127. package/dist/payment/common.d.ts.map +1 -1
  128. package/dist/payment/common.js +3 -3
  129. package/dist/payment/common.js.map +1 -1
  130. package/dist/payment/mutations.d.ts +58 -17
  131. package/dist/payment/mutations.d.ts.map +1 -1
  132. package/dist/payment/provider.d.ts +128 -43
  133. package/dist/payment/provider.d.ts.map +1 -1
  134. package/dist/payment/provider.js.map +1 -1
  135. package/dist/payment/service.d.ts +460 -39
  136. package/dist/payment/service.d.ts.map +1 -1
  137. package/dist/pricing/common/price-list.d.ts +2 -2
  138. package/dist/pricing/common/price-set.d.ts +6 -4
  139. package/dist/pricing/common/price-set.d.ts.map +1 -1
  140. package/dist/pricing/service.d.ts +731 -1695
  141. package/dist/pricing/service.d.ts.map +1 -1
  142. package/dist/product/common.d.ts +4 -0
  143. package/dist/product/common.d.ts.map +1 -1
  144. package/dist/product-category/repository.d.ts +2 -1
  145. package/dist/product-category/repository.d.ts.map +1 -1
  146. package/dist/promotion/common/application-method.d.ts +153 -0
  147. package/dist/promotion/common/application-method.d.ts.map +1 -1
  148. package/dist/promotion/common/campaign-budget.d.ts +37 -0
  149. package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
  150. package/dist/promotion/common/campaign.d.ts +36 -0
  151. package/dist/promotion/common/campaign.d.ts.map +1 -1
  152. package/dist/promotion/common/compute-actions.d.ts +135 -0
  153. package/dist/promotion/common/compute-actions.d.ts.map +1 -1
  154. package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
  155. package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
  156. package/dist/promotion/common/promotion-rule.d.ts +77 -0
  157. package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
  158. package/dist/promotion/common/promotion.d.ts +100 -0
  159. package/dist/promotion/common/promotion.d.ts.map +1 -1
  160. package/dist/promotion/mutations.d.ts +84 -0
  161. package/dist/promotion/mutations.d.ts.map +1 -1
  162. package/dist/promotion/service.d.ts +786 -0
  163. package/dist/promotion/service.d.ts.map +1 -1
  164. package/dist/region/common.d.ts +9 -0
  165. package/dist/region/common.d.ts.map +1 -1
  166. package/dist/region/mutations.d.ts +11 -3
  167. package/dist/region/mutations.d.ts.map +1 -1
  168. package/dist/region/service.d.ts +210 -85
  169. package/dist/region/service.d.ts.map +1 -1
  170. package/dist/stock-location/common.d.ts +14 -0
  171. package/dist/stock-location/common.d.ts.map +1 -1
  172. package/dist/stock-location/service-next.d.ts +178 -186
  173. package/dist/stock-location/service-next.d.ts.map +1 -1
  174. package/dist/store/common/store.d.ts +42 -0
  175. package/dist/store/common/store.d.ts.map +1 -1
  176. package/dist/store/mutations/store.d.ts +75 -0
  177. package/dist/store/mutations/store.d.ts.map +1 -1
  178. package/dist/store/service.d.ts +113 -75
  179. package/dist/store/service.d.ts.map +1 -1
  180. package/dist/tax/common.d.ts +298 -10
  181. package/dist/tax/common.d.ts.map +1 -1
  182. package/dist/tax/mutations.d.ts +157 -0
  183. package/dist/tax/mutations.d.ts.map +1 -1
  184. package/dist/tax/provider.d.ts +126 -0
  185. package/dist/tax/provider.d.ts.map +1 -1
  186. package/dist/tax/service.d.ts +600 -0
  187. package/dist/tax/service.d.ts.map +1 -1
  188. package/dist/workflows/index.d.ts +2 -0
  189. package/dist/workflows/index.d.ts.map +1 -0
  190. package/dist/workflows/index.js +18 -0
  191. package/dist/workflows/index.js.map +1 -0
  192. package/dist/workflows/stock-locations/index.d.ts +2 -0
  193. package/dist/workflows/stock-locations/index.d.ts.map +1 -0
  194. package/dist/workflows/stock-locations/index.js +18 -0
  195. package/dist/workflows/stock-locations/index.js.map +1 -0
  196. package/dist/workflows/stock-locations/mutations.d.ts +8 -0
  197. package/dist/workflows/stock-locations/mutations.d.ts.map +1 -0
  198. package/dist/workflows/stock-locations/mutations.js +3 -0
  199. package/dist/workflows/stock-locations/mutations.js.map +1 -0
  200. package/package.json +1 -1
@@ -10,27 +10,29 @@ export type AuthUserDTO = {
10
10
  */
11
11
  id: string;
12
12
  /**
13
- * The provider of the auth user.
13
+ * The ID of the provider used to authenticate the user.
14
14
  */
15
15
  provider: string;
16
16
  /**
17
- * The associated providers entity's ID.
17
+ * The user's identifier. For example, when using the `emailpass`
18
+ * provider, the `entity_id` would be the user's email.
18
19
  */
19
20
  entity_id: string;
20
21
  /**
21
- * The scope of the auth user.
22
+ * The scope of the auth user. For example,
23
+ * `admin` or `store`.
22
24
  */
23
25
  scope: string;
24
26
  /**
25
- * The provider metadata of the auth user.
27
+ * Holds custom data related to the provider in key-value pairs.
26
28
  */
27
29
  provider_metadata?: Record<string, unknown>;
28
30
  /**
29
- * The user metadata of the auth user.
31
+ * Holds custom data related to the user in key-value pairs.
30
32
  */
31
33
  user_metadata: Record<string, unknown>;
32
34
  /**
33
- * The app metadata of the auth user.
35
+ * Holds custom data related to the third-party app in key-value pairs.
34
36
  */
35
37
  app_metadata: Record<string, unknown>;
36
38
  };
@@ -45,27 +47,30 @@ export type CreateAuthUserDTO = {
45
47
  */
46
48
  id?: string;
47
49
  /**
48
- * The provider of the auth user.
50
+ * The ID of the provider used to authenticate
51
+ * the user.
49
52
  */
50
53
  provider: string;
51
54
  /**
52
- * The associated entity's ID.
55
+ * The user's identifier. For example, when using the `emailpass`
56
+ * provider, the `entity_id` would be the user's email.
53
57
  */
54
58
  entity_id: string;
55
59
  /**
56
- * The scope of the auth user.
60
+ * The scope of the auth user. For example,
61
+ * `admin` or `store`.
57
62
  */
58
63
  scope: string;
59
64
  /**
60
- * The provider metadata of the auth user.
65
+ * Holds custom data related to the provider in key-value pairs.
61
66
  */
62
67
  provider_metadata?: Record<string, unknown>;
63
68
  /**
64
- * The user metadata of the auth user.
69
+ * Holds custom data related to the user in key-value pairs.
65
70
  */
66
71
  user_metadata?: Record<string, unknown>;
67
72
  /**
68
- * The app metadata of the auth user.
73
+ * Holds custom data related to the third-party app in key-value pairs.
69
74
  */
70
75
  app_metadata?: Record<string, unknown>;
71
76
  };
@@ -80,15 +85,15 @@ export type UpdateAuthUserDTO = {
80
85
  */
81
86
  id: string;
82
87
  /**
83
- * The provider metadata of the auth user.
88
+ * Holds custom data related to the provider in key-value pairs.
84
89
  */
85
90
  provider_metadata?: Record<string, unknown>;
86
91
  /**
87
- * The user metadata of the auth user.
92
+ * Holds custom data related to the user in key-value pairs.
88
93
  */
89
94
  user_metadata?: Record<string, unknown>;
90
95
  /**
91
- * The app metadata of the auth user.
96
+ * Holds custom data related to the third-party app in key-value pairs.
92
97
  */
93
98
  app_metadata?: Record<string, unknown>;
94
99
  };
@@ -101,7 +106,7 @@ export interface FilterableAuthUserProps extends BaseFilterable<FilterableAuthUs
101
106
  */
102
107
  id?: string[];
103
108
  /**
104
- * Filter the auth auth user by the associated provider(s).
109
+ * Filter the auth users by the ID of their auth provider.
105
110
  */
106
111
  provider?: string[] | string;
107
112
  }
@@ -1 +1 @@
1
- {"version":3,"file":"auth-user.d.ts","sourceRoot":"","sources":["../../../src/auth/common/auth-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEtC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACtC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,iBA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AE,MAAM,CAAA;IAEb;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC/C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CAC7B"}
@@ -9,52 +9,65 @@ export type AuthenticationResponse = {
9
9
  */
10
10
  success: boolean;
11
11
  /**
12
- * The authenticated user's details. The details shape
13
- * depends on the used provider ID.
12
+ * The authenticated user's details.
14
13
  */
15
14
  authUser?: any;
16
15
  /**
17
- * The error message, if an error occurs.
16
+ * If an error occurs during the authentication process,
17
+ * whether within the Auth Module or a third-party provider,
18
+ * the error message is set in this field.
18
19
  */
19
20
  error?: string;
20
21
  /**
21
- * Redirect location. Location takes precedence over success.
22
+ * The URL to redirect to for further authentication action
23
+ * with a third-party provider. This takes precedence before
24
+ * the `success` field.
25
+ *
26
+ * So, after checking that authentication is successful,
27
+ * you should check whether this field is defined and, if so, redirect to the
28
+ * specified location.
22
29
  */
23
30
  location?: string;
24
31
  /**
25
- * Redirect url for successful authentication.
32
+ * Some authentication providers support redirecting to a specified URL on
33
+ * success. In those cases, the URL to redirect to is set in this field.
34
+ *
35
+ * So, if `success` is true, there's no `location` set, and this field
36
+ * is set, you can redirect to this URL.
26
37
  */
27
38
  successRedirectUrl?: string;
28
39
  };
29
40
  /**
30
41
  * @interface
31
42
  *
32
- * Provider configuration for the Medusa auth module.
43
+ * The configurations of the `providers` option
44
+ * passed to the Auth Module.
33
45
  */
34
46
  export type AuthModuleProviderConfig = {
35
47
  /**
36
- * Provider name
48
+ * The provider's name.
37
49
  */
38
50
  name: string;
39
51
  /**
40
- * Scope configurations for the provider
52
+ * The scopes configuration of that provider.
41
53
  */
42
54
  scopes: Record<string, AuthProviderScope>;
43
55
  };
44
56
  /**
45
57
  * @interface
46
58
  *
47
- * Configuration of a single provider scope
59
+ * The scope configurations of an auth provider.
48
60
  */
49
61
  export type AuthProviderScope = Record<string, unknown>;
50
62
  /**
51
63
  * @interface
52
64
  *
53
- * Input for authentication and callback validation methods.
65
+ * The data passed to the auth provider when authenticating a user
66
+ * or validating a callback.
54
67
  */
55
68
  export type AuthenticationInput = {
56
69
  /**
57
- * url of incoming authentication request.
70
+ * URL of the incoming authentication request.
58
71
  */
59
72
  url: string;
60
73
  /**
@@ -62,19 +75,19 @@ export type AuthenticationInput = {
62
75
  */
63
76
  headers: Record<string, string>;
64
77
  /**
65
- * Query params of incoming authentication request.
78
+ * Query params of the incoming authentication request.
66
79
  */
67
80
  query: Record<string, string>;
68
81
  /**
69
- * Body of incoming authentication request.
82
+ * Body of the incoming authentication request.
70
83
  */
71
84
  body: Record<string, string>;
72
85
  /**
73
- * Scope for authentication request.
86
+ * Scope for the authentication request.
74
87
  */
75
88
  authScope: string;
76
89
  /**
77
- * Protocol of incoming authentication request (For example, `https`).
90
+ * Protocol of the incoming authentication request (For example, `https`).
78
91
  */
79
92
  protocol: string;
80
93
  };
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/auth/common/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/auth/common/provider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
@@ -9,171 +9,233 @@ export type JWTGenerationOptions = {
9
9
  expiresIn?: string | number;
10
10
  };
11
11
  /**
12
- * The main service interface for the authentication module.
12
+ * The main service interface for the Auth Module.
13
13
  */
14
14
  export interface IAuthModuleService extends IModuleService {
15
15
  /**
16
- * This method is the first invoked method of the authentication flow. It handles the incoming authentication request.
16
+ * This method is used to authenticate a user using a provider. The `authenticate` method of the
17
+ * underlying provider is called, passing it the `providerData` parameter as a parameter. The method
18
+ * returns the data returned by the provider.
17
19
  *
18
- * @param {string} provider - The provider to use for authentication.
19
- * @param {AuthenticationInput} providerData - The authentication data necessary to pass to the provider
20
- * @returns {Promise<AuthenticationResponse>} The authentication's result.
20
+ * Refer to [this guide](https://docs.medusajs.com/experimental/auth/auth-flows) to learn more about the authentication flows.
21
+ *
22
+ * @param {string} provider - The ID of the provider to authenticate the user with.
23
+ * @param {AuthenticationInput} providerData - The data to pass to the provider to authenticate the user.
24
+ * @returns {Promise<AuthenticationResponse>} The details of the authentication result.
21
25
  *
22
26
  * @example
23
- * {example-code}
27
+ * The following example is in the context of an API route, where
28
+ * `req` is an instance of the `MedusaRequest` object:
29
+ *
30
+ * ```ts
31
+ * const { success, authUser, location, error } =
32
+ * await authModuleService.authenticate("emailpass", {
33
+ * url: req.url,
34
+ * headers: req.headers,
35
+ * query: req.query,
36
+ * body: req.body,
37
+ * authScope: "admin",
38
+ * protocol: req.protocol,
39
+ * } as AuthenticationInput)
40
+ * ```
24
41
  */
25
42
  authenticate(provider: string, providerData: AuthenticationInput): Promise<AuthenticationResponse>;
26
43
  /**
27
- * This method handles the callback from an authentication provider when an authentication has been initialized and the user is redirected.
44
+ * When authenticating users with a third-party provider, such as Google, the user performs an
45
+ * action to finish the authentication, such as enter their credentials in Google's sign-in
46
+ * form.
28
47
  *
29
- * @param {string} provider - The provider to use for callback validation.
30
- * @param {AuthenticationInput} providerData - The authentication data necessary to pass to the provider
31
- * @returns {Promise<AuthenticationResponse>} The authentication's result.
48
+ * In those cases, you must create an API route or endpoint that's called by the third-party
49
+ * provider when the user finishes performing the required action.
50
+ *
51
+ * In that API route, you can call this method to validate the third-party provider's
52
+ * callback and authenticate the user.
53
+ *
54
+ * Learn more about this authentication flow in [this guide](https://docs.medusajs.com/experimental/auth/auth-flows#authentication-with-third-party-service).
55
+ *
56
+ * @param {string} provider - The ID of the provider to use to validate the callback.
57
+ * @param {AuthenticationInput} providerData - The data to pass to the provider to validate the callback.
58
+ * @returns {Promise<AuthenticationResponse>} The details of the authentication result.
32
59
  *
33
60
  * @example
34
- * {example-code}
61
+ * The following example is in the context of an API route, where
62
+ * `req` is an instance of the `MedusaRequest` object:
63
+ *
64
+ * ```ts
65
+ * const { success, authUser, error, successRedirectUrl } =
66
+ * await authModuleService.validateCallback("google", {
67
+ * url: req.url,
68
+ * headers: req.headers,
69
+ * query: req.query,
70
+ * body: req.body,
71
+ * authScope: "admin",
72
+ * protocol: req.protocol,
73
+ * } as AuthenticationInput)
74
+ * ```
75
+ *
35
76
  */
36
77
  validateCallback(provider: string, providerData: AuthenticationInput): Promise<AuthenticationResponse>;
37
78
  /**
38
- * This method retrieves the user by its ID.
79
+ * This method retrieves an auth user by its ID.
39
80
  *
40
- * @param {string} id - The ID of the retrieve.
81
+ * @param {string} id - The ID of the auth user.
41
82
  * @param {FindConfig<AuthUserDTO>} config - The configurations determining how the auth user is retrieved. Its properties, such as `select` or `relations`, accept the
42
83
  * attributes or relations associated with a auth user.
43
84
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
44
- * @returns {Promise<AuthUserDTO>} The retrieved user.
85
+ * @returns {Promise<AuthUserDTO>} The retrieved auth user.
45
86
  *
46
87
  * @example
47
- * A simple example that retrieves a {type name} by its ID:
48
- *
49
- * ```ts
50
- * {example-code}
51
- * ```
52
- *
53
- * To specify relations that should be retrieved:
54
- *
55
- * ```ts
56
- * {example-code}
57
- * ```
58
- *
59
- *
88
+ * const authUser = await authModuleService.retrieve("authusr_1")
60
89
  */
61
90
  retrieve(id: string, config?: FindConfig<AuthUserDTO>, sharedContext?: Context): Promise<AuthUserDTO>;
62
91
  /**
63
- * This method retrieves a paginated list of users based on optional filters and configuration.
92
+ * This method retrieves a paginated list of auth users based on optional filters and configuration.
64
93
  *
65
- * @param {FilterableAuthUserProps} filters - The filters to apply on the retrieved auth user.
94
+ * @param {FilterableAuthUserProps} filters - The filters to apply on the retrieved auth users.
66
95
  * @param {FindConfig<AuthUserDTO>} config - The configurations determining how the auth user is retrieved. Its properties, such as `select` or `relations`, accept the
67
96
  * attributes or relations associated with a auth user.
68
97
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
69
- * @returns {Promise<AuthUserDTO[]>} The list of users.
98
+ * @returns {Promise<AuthUserDTO[]>} The list of auth users.
70
99
  *
71
100
  * @example
72
- * To retrieve a list of {type name} using their IDs:
73
- *
74
- * ```ts
75
- * {example-code}
76
- * ```
77
- *
78
- * To specify relations that should be retrieved within the {type name}:
101
+ * To retrieve a list of auth users using their IDs:
79
102
  *
80
103
  * ```ts
81
- * {example-code}
104
+ * const authUsers = await authModuleService.list({
105
+ * id: ["authusr_123", "authusr_321"],
106
+ * })
82
107
  * ```
83
108
  *
84
- * 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:
109
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
85
110
  *
86
111
  * ```ts
87
- * {example-code}
112
+ * const authUsers = await authModuleService.list(
113
+ * {
114
+ * id: ["authusr_123", "authusr_321"],
115
+ * },
116
+ * {
117
+ * take: 20,
118
+ * skip: 2,
119
+ * }
120
+ * )
88
121
  * ```
89
- *
90
- *
91
122
  */
92
123
  list(filters?: FilterableAuthUserProps, config?: FindConfig<AuthUserDTO>, sharedContext?: Context): Promise<AuthUserDTO[]>;
93
124
  /**
94
- * This method retrieves a paginated list of user along with the total count of available users satisfying the provided filters.
125
+ * This method retrieves a paginated list of auth users along with the total count of available auth users satisfying the provided filters.
95
126
  *
96
- * @param {FilterableAuthUserProps} filters - The filters to apply on the retrieved auth user.
127
+ * @param {FilterableAuthUserProps} filters - The filters to apply on the retrieved auth users.
97
128
  * @param {FindConfig<AuthUserDTO>} config - The configurations determining how the auth user is retrieved. Its properties, such as `select` or `relations`, accept the
98
129
  * attributes or relations associated with a auth user.
99
130
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
100
- * @returns {Promise<[AuthUserDTO[], number]>} The list of users along with their total count.
131
+ * @returns {Promise<[AuthUserDTO[], number]>} The list of auth users along with their total count.
101
132
  *
102
133
  * @example
103
- * To retrieve a list of {type name} using their IDs:
104
- *
105
- * ```ts
106
- * {example-code}
107
- * ```
108
- *
109
- * To specify relations that should be retrieved within the {type name}:
134
+ * To retrieve a list of auth users using their IDs:
110
135
  *
111
136
  * ```ts
112
- * {example-code}
137
+ * const [authUsers, count] =
138
+ * await authModuleService.listAndCount({
139
+ * id: ["authusr_123", "authusr_321"],
140
+ * })
113
141
  * ```
114
142
  *
115
- * 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:
143
+ * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
116
144
  *
117
145
  * ```ts
118
- * {example-code}
146
+ * const [authUsers, count] =
147
+ * await authModuleService.listAndCount(
148
+ * {
149
+ * id: ["authusr_123", "authusr_321"],
150
+ * },
151
+ * {
152
+ * take: 20,
153
+ * skip: 2,
154
+ * }
155
+ * )
119
156
  * ```
120
- *
121
- *
122
157
  */
123
158
  listAndCount(filters?: FilterableAuthUserProps, config?: FindConfig<AuthUserDTO>, sharedContext?: Context): Promise<[AuthUserDTO[], number]>;
124
159
  /**
125
- * This method creates users
160
+ * This method creates auth users.
126
161
  *
127
- * @param {CreateAuthUserDTO[]} data - The auth user to be created.
162
+ * @param {CreateAuthUserDTO[]} data - The auth users to be created.
128
163
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
129
- * @returns {Promise<AuthUserDTO[]>} The created users.
164
+ * @returns {Promise<AuthUserDTO[]>} The created auth users.
130
165
  *
131
166
  * @example
132
- * {example-code}
167
+ * const authUsers = await authModuleService.create([
168
+ * {
169
+ * provider: "emailpass",
170
+ * entity_id: "user@example.com",
171
+ * scope: "admin",
172
+ * },
173
+ * {
174
+ * provider: "google",
175
+ * entity_id: "user@gmail.com",
176
+ * scope: "email profile",
177
+ * },
178
+ * ])
133
179
  */
134
180
  create(data: CreateAuthUserDTO[], sharedContext?: Context): Promise<AuthUserDTO[]>;
135
181
  /**
136
- * This method creates a user
182
+ * This method creates an auth user.
137
183
  *
138
184
  * @param {CreateAuthUserDTO} data - The auth user to be created.
139
185
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
140
- * @returns {Promise<AuthUserDTO>} The created user.
186
+ * @returns {Promise<AuthUserDTO>} The created auth user.
141
187
  *
142
188
  * @example
143
- * {example-code}
189
+ * const authUser = await authModuleService.create({
190
+ * provider: "emailpass",
191
+ * entity_id: "user@example.com",
192
+ * scope: "admin",
193
+ * })
144
194
  */
145
195
  create(data: CreateAuthUserDTO, sharedContext?: Context): Promise<AuthUserDTO>;
146
196
  /**
147
- * This method updates existing users.
197
+ * This method updates existing auths.
148
198
  *
149
- * @param {UpdateAuthUserDTO[]} data - The attributes to update in the auth user.
199
+ * @param {UpdateAuthUserDTO[]} data - The attributes to update in the auth users.
150
200
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
151
- * @returns {Promise<AuthUserDTO[]>} The updated users.
201
+ * @returns {Promise<AuthUserDTO[]>} The updated auths.
152
202
  *
153
203
  * @example
154
- * {example-code}
204
+ * const authUsers = await authModuleService.update([
205
+ * {
206
+ * id: "authusr_123",
207
+ * app_metadata: {
208
+ * test: true,
209
+ * },
210
+ * },
211
+ * ])
155
212
  */
156
213
  update(data: UpdateAuthUserDTO[], sharedContext?: Context): Promise<AuthUserDTO[]>;
157
214
  /**
158
- * This method updates existing user.
215
+ * This method updates an existing auth.
159
216
  *
160
217
  * @param {UpdateAuthUserDTO} data - The attributes to update in the auth user.
161
218
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
162
- * @returns {Promise<AuthUserDTO>} The updated user.
219
+ * @returns {Promise<AuthUserDTO>} The updated auth.
163
220
  *
164
221
  * @example
165
- * {example-code}
222
+ * const authUser = await authModuleService.update({
223
+ * id: "authusr_123",
224
+ * app_metadata: {
225
+ * test: true,
226
+ * },
227
+ * })
166
228
  */
167
229
  update(data: UpdateAuthUserDTO, sharedContext?: Context): Promise<AuthUserDTO>;
168
230
  /**
169
- * This method deletes users by their IDs.
231
+ * This method deletes a auth by its ID.
170
232
  *
171
- * @param {string[]} ids - The list of IDs of users to delete.
233
+ * @param {string[]} ids - The IDs of the auth.
172
234
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
173
- * @returns {Promise<void>} Resolves when the users are deleted.
235
+ * @returns {Promise<void>} Resolves when {summary}
174
236
  *
175
237
  * @example
176
- * {example-code}
238
+ * await authModuleService.delete(["authusr_123", "authusr_321"])
177
239
  */
178
240
  delete(ids: string[], sharedContext?: Context): Promise<void>;
179
241
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/auth/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC5B,CAAA;AACD;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;;;;;;;OASG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,mBAAmB,GAChC,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAElC;;;;;;;;;OASG;IACH,gBAAgB,CACd,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,mBAAmB,GAChC,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAElC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,QAAQ,C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;;OAiCG;IACH,YAAY,CACV,OAAO,CAAC,EAAE,uBAAuB,EACjC,MAAM,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,EAChC,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC,CAAC,CAAA;IAEnC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAAI,EAAE,iBAAiB,EAAE,EACzB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IAEzB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAE9E;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,IAAI,EAAE,iBAAiB,EAAE,EACzB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IAEzB;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAE9E;;;;;;;;;OASG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC9D"}
package/dist/bundles.d.ts CHANGED
@@ -25,4 +25,6 @@ export * as WorkflowTypes from "./workflow";
25
25
  export * as ApiKeyTypes from "./api-key";
26
26
  export * as StoreTypes from "./store";
27
27
  export * as CurrencyTypes from "./currency";
28
+ export * as HttpTypes from "./http";
29
+ export * as FileTypes from "./file";
28
30
  //# sourceMappingURL=bundles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundles.d.ts","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MA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,MAAM,QAAQ,CAAA"}
package/dist/bundles.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.CurrencyTypes = exports.StoreTypes = exports.ApiKeyTypes = exports.WorkflowTypes = exports.UserTypes = exports.TransactionBaseTypes = exports.TaxTypes = exports.StockLocationTypes = exports.SearchTypes = exports.SalesChannelTypes = exports.RegionTypes = exports.PromotionTypes = exports.ProductTypes = exports.PricingTypes = exports.OrderTypes = exports.ModulesSdkTypes = exports.LoggerTypes = exports.InventoryTypes = exports.FulfillmentTypes = exports.FeatureFlagTypes = exports.EventBusTypes = exports.DAL = exports.CustomerTypes = exports.CommonTypes = exports.CartTypes = exports.CacheTypes = exports.AuthTypes = void 0;
26
+ exports.FileTypes = exports.HttpTypes = exports.CurrencyTypes = exports.StoreTypes = exports.ApiKeyTypes = exports.WorkflowTypes = exports.UserTypes = exports.TransactionBaseTypes = exports.TaxTypes = exports.StockLocationTypes = exports.SearchTypes = exports.SalesChannelTypes = exports.RegionTypes = exports.PromotionTypes = exports.ProductTypes = exports.PricingTypes = exports.OrderTypes = exports.ModulesSdkTypes = exports.LoggerTypes = exports.InventoryTypes = exports.FulfillmentTypes = exports.FeatureFlagTypes = exports.EventBusTypes = exports.DAL = exports.CustomerTypes = exports.CommonTypes = exports.CartTypes = exports.CacheTypes = exports.AuthTypes = void 0;
27
27
  exports.AuthTypes = __importStar(require("./auth"));
28
28
  exports.CacheTypes = __importStar(require("./cache"));
29
29
  exports.CartTypes = __importStar(require("./cart"));
@@ -51,4 +51,6 @@ exports.WorkflowTypes = __importStar(require("./workflow"));
51
51
  exports.ApiKeyTypes = __importStar(require("./api-key"));
52
52
  exports.StoreTypes = __importStar(require("./store"));
53
53
  exports.CurrencyTypes = __importStar(require("./currency"));
54
+ exports.HttpTypes = __importStar(require("./http"));
55
+ exports.FileTypes = __importStar(require("./file"));
54
56
  //# sourceMappingURL=bundles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundles.js","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAmC;AACnC,sDAAqC;AACrC,oDAAmC;AACnC,wDAAuC;AACvC,4DAA2C;AAC3C,6CAA4B;AAC5B,6DAA4C;AAC5C,mEAAkD;AAClD,kEAAiD;AACjD,8DAA6C;AAC7C,wDAAuC;AACvC,iEAAgD;AAChD,sDAAqC;AACrC,0DAAyC;AACzC,0DAAyC;AACzC,8DAA6C;AAC7C,gEAA+C;AAC/C,qEAAoD;AACpD,wDAAuC;AACvC,uEAAsD;AACtD,kDAAiC;AACjC,2EAA0D;AAC1D,oDAAmC;AACnC,4DAA2C;AAC3C,yDAAwC;AACxC,sDAAqC;AACrC,4DAA2C"}
1
+ {"version":3,"file":"bundles.js","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAmC;AACnC,sDAAqC;AACrC,oDAAmC;AACnC,wDAAuC;AACvC,4DAA2C;AAC3C,6CAA4B;AAC5B,6DAA4C;AAC5C,mEAAkD;AAClD,kEAAiD;AACjD,8DAA6C;AAC7C,wDAAuC;AACvC,iEAAgD;AAChD,sDAAqC;AACrC,0DAAyC;AACzC,0DAAyC;AACzC,8DAA6C;AAC7C,gEAA+C;AAC/C,qEAAoD;AACpD,wDAAuC;AACvC,uEAAsD;AACtD,kDAAiC;AACjC,2EAA0D;AAC1D,oDAAmC;AACnC,4DAA2C;AAC3C,yDAAwC;AACxC,sDAAqC;AACrC,4DAA2C;AAC3C,oDAAmC;AACnC,oDAAmC"}