@medusajs/types 1.12.0-snapshot-20240523101006 → 1.12.0-snapshot-20240523143641

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/dist/auth/common/auth-identity.d.ts +22 -0
  2. package/dist/auth/common/auth-identity.d.ts.map +1 -1
  3. package/dist/auth/common/provider.d.ts +31 -5
  4. package/dist/auth/common/provider.d.ts.map +1 -1
  5. package/dist/auth/index.d.ts +0 -2
  6. package/dist/auth/index.d.ts.map +1 -1
  7. package/dist/auth/index.js +0 -2
  8. package/dist/auth/index.js.map +1 -1
  9. package/dist/auth/service.d.ts +11 -0
  10. package/dist/auth/service.d.ts.map +1 -1
  11. package/dist/common/config-module.d.ts +0 -37
  12. package/dist/common/config-module.d.ts.map +1 -1
  13. package/dist/http/campaign/admin/campaign.d.ts +1 -0
  14. package/dist/http/campaign/admin/campaign.d.ts.map +1 -1
  15. package/dist/http/promotion/admin/index.d.ts +1 -0
  16. package/dist/http/promotion/admin/index.d.ts.map +1 -1
  17. package/dist/http/promotion/admin/index.js +1 -0
  18. package/dist/http/promotion/admin/index.js.map +1 -1
  19. package/dist/http/promotion/admin/rule-value-options.d.ts +15 -0
  20. package/dist/http/promotion/admin/rule-value-options.d.ts.map +1 -0
  21. package/dist/{auth/providers/emailpass.js → http/promotion/admin/rule-value-options.js} +1 -1
  22. package/dist/http/promotion/admin/rule-value-options.js.map +1 -0
  23. package/dist/joiner/index.d.ts +0 -5
  24. package/dist/joiner/index.d.ts.map +1 -1
  25. package/dist/modules-sdk/index.d.ts +0 -4
  26. package/dist/modules-sdk/index.d.ts.map +1 -1
  27. package/dist/promotion/common/application-method.d.ts +13 -1
  28. package/dist/promotion/common/application-method.d.ts.map +1 -1
  29. package/dist/promotion/common/campaign-budget.d.ts +4 -0
  30. package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
  31. package/dist/promotion/common/campaign.d.ts +0 -4
  32. package/dist/promotion/common/campaign.d.ts.map +1 -1
  33. package/dist/promotion/common/promotion.d.ts +1 -1
  34. package/dist/promotion/common/promotion.d.ts.map +1 -1
  35. package/dist/promotion/http.d.ts +1 -0
  36. package/dist/promotion/http.d.ts.map +1 -1
  37. package/dist/promotion/mutations.d.ts +10 -10
  38. package/dist/promotion/mutations.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/dist/auth/provider.d.ts +0 -19
  41. package/dist/auth/provider.d.ts.map +0 -1
  42. package/dist/auth/provider.js +0 -3
  43. package/dist/auth/provider.js.map +0 -1
  44. package/dist/auth/providers/emailpass.d.ts +0 -8
  45. package/dist/auth/providers/emailpass.d.ts.map +0 -1
  46. package/dist/auth/providers/emailpass.js.map +0 -1
  47. package/dist/auth/providers/index.d.ts +0 -2
  48. package/dist/auth/providers/index.d.ts.map +0 -1
  49. package/dist/auth/providers/index.js +0 -18
  50. package/dist/auth/providers/index.js.map +0 -1
@@ -18,6 +18,11 @@ export type AuthIdentityDTO = {
18
18
  * provider, the `entity_id` would be the user's email.
19
19
  */
20
20
  entity_id: string;
21
+ /**
22
+ * The scope of the auth identity. For example,
23
+ * `admin` or `store`.
24
+ */
25
+ scope: string;
21
26
  /**
22
27
  * Holds custom data related to the provider in key-value pairs.
23
28
  */
@@ -26,6 +31,10 @@ export type AuthIdentityDTO = {
26
31
  * Holds custom data related to the user in key-value pairs.
27
32
  */
28
33
  user_metadata: Record<string, unknown>;
34
+ /**
35
+ * Holds custom data related to the third-party app in key-value pairs.
36
+ */
37
+ app_metadata: Record<string, unknown>;
29
38
  };
30
39
  /**
31
40
  * @interface
@@ -47,6 +56,11 @@ export type CreateAuthIdentityDTO = {
47
56
  * provider, the `entity_id` would be the user's email.
48
57
  */
49
58
  entity_id: string;
59
+ /**
60
+ * The scope of the auth identity. For example,
61
+ * `admin` or `store`.
62
+ */
63
+ scope: string;
50
64
  /**
51
65
  * Holds custom data related to the provider in key-value pairs.
52
66
  */
@@ -55,6 +69,10 @@ export type CreateAuthIdentityDTO = {
55
69
  * Holds custom data related to the user in key-value pairs.
56
70
  */
57
71
  user_metadata?: Record<string, unknown>;
72
+ /**
73
+ * Holds custom data related to the third-party app in key-value pairs.
74
+ */
75
+ app_metadata?: Record<string, unknown>;
58
76
  };
59
77
  /**
60
78
  * @interface
@@ -74,6 +92,10 @@ export type UpdateAuthIdentityDTO = {
74
92
  * Holds custom data related to the user in key-value pairs.
75
93
  */
76
94
  user_metadata?: Record<string, unknown>;
95
+ /**
96
+ * Holds custom data related to the third-party app in key-value pairs.
97
+ */
98
+ app_metadata?: Record<string, unknown>;
77
99
  };
78
100
  /**
79
101
  * The filters to apply on the retrieved auth identity.
@@ -1 +1 @@
1
- {"version":3,"file":"auth-identity.d.ts","sourceRoot":"","sources":["../../../src/auth/common/auth-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAE3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACvC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;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;CACxC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAA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AAM,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,qBAAqB,GAAG;IAClC;;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,2BACf,SAAQ,cAAc,CAAC,2BAA2B,CAAC;IACnD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;CAC7B"}
@@ -37,6 +37,28 @@ export type AuthenticationResponse = {
37
37
  */
38
38
  successRedirectUrl?: string;
39
39
  };
40
+ /**
41
+ * @interface
42
+ *
43
+ * The configurations of the `providers` option
44
+ * passed to the Auth Module.
45
+ */
46
+ export type AuthModuleProviderConfig = {
47
+ /**
48
+ * The provider's name.
49
+ */
50
+ name: string;
51
+ /**
52
+ * The scopes configuration of that provider.
53
+ */
54
+ scopes: Record<string, AuthProviderScope>;
55
+ };
56
+ /**
57
+ * @interface
58
+ *
59
+ * The scope configurations of an auth provider.
60
+ */
61
+ export type AuthProviderScope = Record<string, unknown>;
40
62
  /**
41
63
  * @interface
42
64
  *
@@ -47,22 +69,26 @@ export type AuthenticationInput = {
47
69
  /**
48
70
  * URL of the incoming authentication request.
49
71
  */
50
- url?: string;
72
+ url: string;
51
73
  /**
52
74
  * Headers of incoming authentication request.
53
75
  */
54
- headers?: Record<string, string>;
76
+ headers: Record<string, string>;
55
77
  /**
56
78
  * Query params of the incoming authentication request.
57
79
  */
58
- query?: Record<string, string>;
80
+ query: Record<string, string>;
59
81
  /**
60
82
  * Body of the incoming authentication request.
61
83
  */
62
- body?: Record<string, string>;
84
+ body: Record<string, string>;
85
+ /**
86
+ * Scope for the authentication request.
87
+ */
88
+ authScope: string;
63
89
  /**
64
90
  * Protocol of the incoming authentication request (For example, `https`).
65
91
  */
66
- protocol?: string;
92
+ protocol: string;
67
93
  };
68
94
  //# sourceMappingURL=provider.d.ts.map
@@ -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;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAA;IAElB;;;;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,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,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,YAAY,CAAC,EAAE,GAAG,CAAA;IAElB;;;;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"}
@@ -1,5 +1,3 @@
1
1
  export * from "./service";
2
2
  export * from "./common";
3
- export * from "./provider";
4
- export * from "./providers";
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
@@ -16,6 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./service"), exports);
18
18
  __exportStar(require("./common"), exports);
19
- __exportStar(require("./provider"), exports);
20
- __exportStar(require("./providers"), exports);
21
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB;AACxB,6CAA0B;AAC1B,8CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB"}
@@ -34,6 +34,7 @@ export interface IAuthModuleService extends IModuleService {
34
34
  * headers: req.headers,
35
35
  * query: req.query,
36
36
  * body: req.body,
37
+ * authScope: "admin",
37
38
  * protocol: req.protocol,
38
39
  * } as AuthenticationInput)
39
40
  * ```
@@ -67,6 +68,7 @@ export interface IAuthModuleService extends IModuleService {
67
68
  * headers: req.headers,
68
69
  * query: req.query,
69
70
  * body: req.body,
71
+ * authScope: "admin",
70
72
  * protocol: req.protocol,
71
73
  * } as AuthenticationInput)
72
74
  * ```
@@ -166,10 +168,12 @@ export interface IAuthModuleService extends IModuleService {
166
168
  * {
167
169
  * provider: "emailpass",
168
170
  * entity_id: "user@example.com",
171
+ * scope: "admin",
169
172
  * },
170
173
  * {
171
174
  * provider: "google",
172
175
  * entity_id: "user@gmail.com",
176
+ * scope: "email profile",
173
177
  * },
174
178
  * ])
175
179
  */
@@ -185,6 +189,7 @@ export interface IAuthModuleService extends IModuleService {
185
189
  * const authIdentity = await authModuleService.create({
186
190
  * provider: "emailpass",
187
191
  * entity_id: "user@example.com",
192
+ * scope: "admin",
188
193
  * })
189
194
  */
190
195
  create(data: CreateAuthIdentityDTO, sharedContext?: Context): Promise<AuthIdentityDTO>;
@@ -199,6 +204,9 @@ export interface IAuthModuleService extends IModuleService {
199
204
  * const authIdentities = await authModuleService.update([
200
205
  * {
201
206
  * id: "authusr_123",
207
+ * app_metadata: {
208
+ * test: true,
209
+ * },
202
210
  * },
203
211
  * ])
204
212
  */
@@ -213,6 +221,9 @@ export interface IAuthModuleService extends IModuleService {
213
221
  * @example
214
222
  * const authIdentity = await authModuleService.update({
215
223
  * id: "authusr_123",
224
+ * app_metadata: {
225
+ * test: true,
226
+ * },
216
227
  * })
217
228
  */
218
229
  update(data: UpdateAuthIdentityDTO, sharedContext?: Context): Promise<AuthIdentityDTO>;
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/auth/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,UAAU,CAAA;AACjB,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;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;I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
@@ -684,34 +684,6 @@ export type ProjectConfigOptions = {
684
684
  * ```
685
685
  */
686
686
  adminCors: string;
687
- /**
688
- * Optionally you can specify the supported authentication providers per actor type (such as user, customer, or any custom actors).
689
- * For example, you only want to allow SSO logins for `users` to the admin, while you want to allow email/password logins for `customers` to the storefront.
690
- *
691
- * `authMethodsPerActor` is a a map where the actor type (eg. 'user') is the key, and an array of supported auth providers as the value.
692
- *
693
- *
694
- * @example
695
- * Some example values of common use cases:
696
- *
697
- * Then, set the configuration in `medusa-config.js`:
698
- *
699
- * ```js title="medusa-config.js"
700
- * module.exports = {
701
- * projectConfig: {
702
- * http: {
703
- * authMethodsPerActor: {
704
- * user: ['sso'],
705
- * customer: ["emailpass", "google"]
706
- * },
707
- * },
708
- * // ...
709
- * },
710
- * // ...
711
- * }
712
- * ```
713
- */
714
- authMethodsPerActor: Record<string, string[]>;
715
687
  };
716
688
  };
717
689
  /**
@@ -871,15 +843,6 @@ export type ConfigModule = {
871
843
  * :::
872
844
  */
873
845
  featureFlags: Record<string, boolean | string>;
874
- /**
875
- * @ignore
876
- *
877
- * @privateRemarks
878
- * Since this is a temporary config, maybe let's not include it in the generated reference for now.
879
- */
880
- directories?: {
881
- srcDir?: string;
882
- };
883
846
  };
884
847
  export type PluginDetails = {
885
848
  resolve: string;
@@ -1 +1 @@
1
- {"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;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ACZ,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
1
+ {"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,IAAI,MAAM,EAAE,CAAA;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;CAC9C,CAAA;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;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A;IAEnC;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;IAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,OAAO,EAAE,CACL;QACE,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KACjC,GACD,MAAM,CACT,EAAE,CAAA;IAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,OAAO,CAAC,EAAE,MAAM,CACd,MAAM,EACN,OAAO,GAAG,OAAO,CAAC,yBAAyB,GAAG,yBAAyB,CAAC,CACzE,CAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
@@ -11,6 +11,7 @@ export interface CampaignResponse {
11
11
  budget: {
12
12
  id: string;
13
13
  type: CampaignBudgetTypeValues;
14
+ currency_code: string;
14
15
  limit: number;
15
16
  used: number;
16
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../../src/http/campaign/admin/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,Q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@@ -1,4 +1,5 @@
1
1
  export * from "./promotion-rule";
2
2
  export * from "./rule-attribute-options";
3
3
  export * from "./rule-operator-options";
4
+ export * from "./rule-value-options";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/promotion/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/promotion/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA"}
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./promotion-rule"), exports);
18
18
  __exportStar(require("./rule-attribute-options"), exports);
19
19
  __exportStar(require("./rule-operator-options"), exports);
20
+ __exportStar(require("./rule-value-options"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/promotion/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,2DAAwC;AACxC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/promotion/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,2DAAwC;AACxC,0DAAuC;AACvC,uDAAoC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @experimental
3
+ */
4
+ export interface RuleValueOptionsResponse {
5
+ id: string;
6
+ value: string;
7
+ label: string;
8
+ }
9
+ /**
10
+ * @experimental
11
+ */
12
+ export interface AdminRuleValueOptionsListResponse {
13
+ values: RuleValueOptionsResponse[];
14
+ }
15
+ //# sourceMappingURL=rule-value-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-value-options.d.ts","sourceRoot":"","sources":["../../../../src/http/promotion/admin/rule-value-options.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,MAAM,EAAE,wBAAwB,EAAE,CAAA;CACnC"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=emailpass.js.map
3
+ //# sourceMappingURL=rule-value-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-value-options.js","sourceRoot":"","sources":["../../../../src/http/promotion/admin/rule-value-options.ts"],"names":[],"mappings":""}
@@ -3,11 +3,6 @@ export type JoinerRelationship = {
3
3
  foreignKey: string;
4
4
  primaryKey: string;
5
5
  serviceName: string;
6
- /**
7
- * If true, the relationship is an internal service from the medusa core
8
- * TODO: Remove when there are no more "internal" services
9
- */
10
- isInternalService?: boolean;
11
6
  /**
12
7
  * In an inverted relationship the foreign key is on the other service and the primary key is on the current service
13
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/joiner/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CA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M,GAAG,eAAe,EAAE,CAAA;SAAE,CAAA;KACpD,CAAC,CAAA;IACF,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,IAAI,CAAC,EAAE,cAAc,EAAE,CAAA;IACvB,UAAU,CAAC,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,EAAE,CAAA;KAAE,CAAA;CACpD;AAED,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,uBAAuB,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;CAC7C;AAED,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;QACjB,IAAI,CAAC,EAAE,cAAc,EAAE,CAAA;QACvB,OAAO,CAAC,EAAE,mBAAmB,CAAA;KAC9B,CAAA;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,aAAa,EAAE,mBAAmB,CAAA;IAClC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,CAAC,EAAE,cAAc,EAAE,CAAA;IACvB,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAC9B"}
@@ -154,10 +154,6 @@ export type ModuleJoinerConfig = Omit<JoinerServiceConfig, "serviceName" | "prim
154
154
  };
155
155
  };
156
156
  export declare type ModuleJoinerRelationship = JoinerRelationship & {
157
- /**
158
- * If true, the relationship is an internal service from the medusa core TODO: Remove when there are no more "internal" services
159
- */
160
- isInternalService?: boolean;
161
157
  /**
162
158
  * If true, the link joiner will cascade deleting the relationship
163
159
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACn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,IAAI,CAAC,CAAA;QACxC,qBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;QAC3C,4BAA4B,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;KACnD,CAAA;CACF"}
@@ -41,6 +41,10 @@ export interface ApplicationMethodDTO {
41
41
  * The discounted amount applied by the associated promotion based on the `type`.
42
42
  */
43
43
  value?: number;
44
+ /**
45
+ * The currency code of the application method
46
+ */
47
+ currency_code?: string;
44
48
  /**
45
49
  * The max quantity allowed in the cart for the associated promotion to be applied.
46
50
  */
@@ -94,6 +98,10 @@ export interface CreateApplicationMethodDTO {
94
98
  * The discounted amount applied by the associated promotion based on the `type`.
95
99
  */
96
100
  value?: number;
101
+ /**
102
+ * Currency of the value to apply.
103
+ */
104
+ currency_code: string;
97
105
  /**
98
106
  * The max quantity allowed in the cart for the associated promotion to be applied.
99
107
  */
@@ -130,7 +138,7 @@ export interface UpdateApplicationMethodDTO {
130
138
  /**
131
139
  * The ID of the application method.
132
140
  */
133
- id: string;
141
+ id?: string;
134
142
  /**
135
143
  * The type of the application method indicating how
136
144
  * the associated promotion is applied.
@@ -151,6 +159,10 @@ export interface UpdateApplicationMethodDTO {
151
159
  * The discounted amount applied by the associated promotion based on the `type`.
152
160
  */
153
161
  value?: number;
162
+ /**
163
+ * The currency code of the promotions application
164
+ */
165
+ currency_code?: string;
154
166
  /**
155
167
  * The max quantity allowed in the cart for the associated promotion to be applied.
156
168
  */
@@ -1 +1 @@
1
- {"version":3,"file":"application-method.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/application-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAE3E;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,G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AAE,MAAM,GAAG,IAAI,CAAA;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IAEjC;;OAEG;IACH,YAAY,CAAC,EAAE,sBAAsB,EAAE,CAAA;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,sBAAsB,EAAE,CAAA;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;OAGG;IACH,IAAI,CAAC,EAAE,2BAA2B,CAAA;IAElC;;;;OAIG;IACH,WAAW,CAAC,EAAE,iCAAiC,CAAA;IAE/C;;;OAGG;IACH,UAAU,CAAC,EAAE,iCAAiC,CAAA;IAE9C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEtC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,gCACf,SAAQ,cAAc,CAAC,gCAAgC,CAAC;IACxD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,iCAAiC,EAAE,CAAA;IAEjD;;OAEG;IACH,UAAU,CAAC,EAAE,iCAAiC,EAAE,CAAA;CACjD"}
1
+ {"version":3,"file":"application-method.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/application-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,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AAW,CAAC,EAAE,iCAAiC,EAAE,CAAA;IAEjD;;OAEG;IACH,UAAU,CAAC,EAAE,iCAAiC,EAAE,CAAA;CACjD"}
@@ -31,6 +31,10 @@ export interface CampaignBudgetDTO {
31
31
  *
32
32
  */
33
33
  used?: number;
34
+ /**
35
+ * The currency of the campaign.
36
+ */
37
+ currency_code?: string;
34
38
  }
35
39
  /**
36
40
  * The filters to apply on the retrieved campaign budgets.
@@ -1 +1 @@
1
- {"version":3,"file":"campaign-budget.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/campaign-budget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,OAAO,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAA;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,6BACf,SAAQ,cAAc,CAAC,6BAA6B,CAAC;IACrD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB"}
1
+ {"version":3,"file":"campaign-budget.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/campaign-budget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,OAAO,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAA;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,6BACf,SAAQ,cAAc,CAAC,6BAA6B,CAAC;IACrD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB"}
@@ -17,10 +17,6 @@ export interface CampaignDTO {
17
17
  * The description of the campaign.
18
18
  */
19
19
  description?: string;
20
- /**
21
- * The currency of the campaign.
22
- */
23
- currency?: string;
24
20
  /**
25
21
  * The campaign identifier of the campaign.
26
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,YAAY,EAAE,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC/C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC/B"}
1
+ {"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,YAAY,EAAE,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,cAAc,CAAC,uBAAuB,CAAC;IAC/C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IAEb;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC/B"}
@@ -71,7 +71,7 @@ export interface CreatePromotionDTO {
71
71
  /**
72
72
  * The associated application method.
73
73
  */
74
- application_method?: CreateApplicationMethodDTO;
74
+ application_method: CreateApplicationMethodDTO;
75
75
  /**
76
76
  * The rules of the promotion.
77
77
  */
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.d.ts","sourceRoot":"","sources":["../../../src/promotion/common/promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAE3E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IAEzC;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,IAAI,EAAE,mBAAmB,CAAA;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,O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V;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,CAAA;IAE/C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,wBACf,SAAQ,cAAc,CAAC,wBAAwB,CAAC;IAChD;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE1C;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,mBAAmB,EAAE,CAAA;CAC7B"}
@@ -4,6 +4,7 @@ export type AdminGetPromotionRulesRes = {
4
4
  attribute_label: string;
5
5
  field_type?: string;
6
6
  operator: string;
7
+ hydrate: boolean;
7
8
  operator_label: string;
8
9
  values: {
9
10
  label?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/promotion/http.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,EAAE,CAAA"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/promotion/http.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,EAAE,CAAA"}
@@ -10,11 +10,15 @@ export interface CreateCampaignBudgetDTO {
10
10
  /**
11
11
  * The limit of the campaign budget.
12
12
  */
13
- limit?: number;
13
+ limit?: number | null;
14
14
  /**
15
15
  * How much is used of the campaign budget.
16
16
  */
17
17
  used?: number;
18
+ /**
19
+ * The currency of the campaign.
20
+ */
21
+ currency_code?: string | null;
18
22
  }
19
23
  /**
20
24
  * The attributes to update in the campaign budget.
@@ -31,7 +35,11 @@ export interface UpdateCampaignBudgetDTO {
31
35
  /**
32
36
  * The limit of the campaign budget.
33
37
  */
34
- limit?: number;
38
+ limit?: number | null;
39
+ /**
40
+ * The limit of the campaign budget.
41
+ */
42
+ currency_code?: string | null;
35
43
  /**
36
44
  * How much is used of the campaign budget.
37
45
  */
@@ -49,10 +57,6 @@ export interface CreateCampaignDTO {
49
57
  * The description of the campaign.
50
58
  */
51
59
  description?: string;
52
- /**
53
- * The currency of the campaign.
54
- */
55
- currency?: string;
56
60
  /**
57
61
  * The campaign identifier of the campaign.
58
62
  */
@@ -86,10 +90,6 @@ export interface UpdateCampaignDTO {
86
90
  * The description of the campaign.
87
91
  */
88
92
  description?: string;
89
- /**
90
- * The currency of the campaign.
91
- */
92
- currency?: string;
93
93
  /**
94
94
  * The campaign identifier of the campaign.
95
95
  */
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/promotion/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAEnD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAA;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,CAAC,EAAE,wBAAwB,CAAA;IAE/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,uBAAuB,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW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
3
+ "version": "1.12.0-snapshot-20240523143641",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,19 +0,0 @@
1
- import { AuthIdentityDTO, AuthenticationInput, AuthenticationResponse, CreateAuthIdentityDTO } from "./common";
2
- export interface AuthIdentityProviderService {
3
- retrieve: (selector: {
4
- entity_id: string;
5
- provider: string;
6
- }) => Promise<AuthIdentityDTO>;
7
- create: (data: CreateAuthIdentityDTO) => Promise<AuthIdentityDTO>;
8
- }
9
- /**
10
- * ## Overview
11
- *
12
- * Authentication provider interface for the auth module.
13
- *
14
- */
15
- export interface IAuthProvider {
16
- authenticate(data: AuthenticationInput, authIdentityProviderService: AuthIdentityProviderService): Promise<AuthenticationResponse>;
17
- validateCallback(data: AuthenticationInput, authIdentityProviderService: AuthIdentityProviderService): Promise<AuthenticationResponse>;
18
- }
19
- //# sourceMappingURL=provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/auth/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,2BAA2B;IAE1C,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACnB,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,MAAM,CAAA;KACjB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IAC9B,MAAM,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;CAClE;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,YAAY,CACV,IAAI,EAAE,mBAAmB,EACzB,2BAA2B,EAAE,2BAA2B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAClC,gBAAgB,CACd,IAAI,EAAE,mBAAmB,EACzB,2BAA2B,EAAE,2BAA2B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAA;CACnC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/auth/provider.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export interface EmailPassAuthProviderOptions {
2
- hashConfig?: {
3
- logN: number;
4
- r: number;
5
- p: number;
6
- };
7
- }
8
- //# sourceMappingURL=emailpass.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"emailpass.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/emailpass.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,CAAC,EAAE,MAAM,CAAA;QACT,CAAC,EAAE,MAAM,CAAA;KACV,CAAA;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"emailpass.js","sourceRoot":"","sources":["../../../src/auth/providers/emailpass.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./emailpass";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./emailpass"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}