@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.
- package/dist/auth/common/auth-user.d.ts +21 -16
- package/dist/auth/common/auth-user.d.ts.map +1 -1
- package/dist/auth/common/provider.d.ts +28 -15
- package/dist/auth/common/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +137 -75
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +2 -0
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +3 -1
- package/dist/bundles.js.map +1 -1
- package/dist/cart/common.d.ts +443 -62
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +483 -0
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +1607 -0
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/rule.d.ts +2 -0
- package/dist/common/rule.d.ts.map +1 -0
- package/dist/common/rule.js +3 -0
- package/dist/common/rule.js.map +1 -0
- package/dist/customer/service.d.ts +445 -197
- package/dist/customer/service.d.ts.map +1 -1
- package/dist/file/common.d.ts +14 -0
- package/dist/file/common.d.ts.map +1 -0
- package/dist/file/common.js +3 -0
- package/dist/file/common.js.map +1 -0
- package/dist/file/index.d.ts +4 -0
- package/dist/file/index.d.ts.map +1 -0
- package/dist/file/index.js +20 -0
- package/dist/file/index.js.map +1 -0
- package/dist/file/mutations.d.ts +18 -0
- package/dist/file/mutations.d.ts.map +1 -0
- package/dist/file/mutations.js +3 -0
- package/dist/file/mutations.js.map +1 -0
- package/dist/file/service.d.ts +76 -0
- package/dist/file/service.d.ts.map +1 -0
- package/dist/file/service.js +3 -0
- package/dist/file/service.js.map +1 -0
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts +2 -2
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts +22 -0
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts +17 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts +14 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +12 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts +15 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts +27 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment.js.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts +17 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.js +3 -0
- package/dist/http/fulfillment/admin/geo-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/index.d.ts +13 -0
- package/dist/http/fulfillment/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/index.js +29 -0
- package/dist/http/fulfillment/admin/index.js.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts +14 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.js +3 -0
- package/dist/http/fulfillment/admin/service-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +16 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts +14 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts +31 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts +13 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.js +3 -0
- package/dist/http/fulfillment/admin/shipping-profile.js.map +1 -0
- package/dist/http/fulfillment/index.d.ts +2 -0
- package/dist/http/fulfillment/index.d.ts.map +1 -0
- package/dist/http/fulfillment/index.js +18 -0
- package/dist/http/fulfillment/index.js.map +1 -0
- package/dist/http/index.d.ts +3 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +19 -0
- package/dist/http/index.js.map +1 -0
- package/dist/http/stock-locations/common.d.ts +28 -0
- package/dist/http/stock-locations/common.d.ts.map +1 -0
- package/dist/http/stock-locations/common.js +3 -0
- package/dist/http/stock-locations/common.js.map +1 -0
- package/dist/http/stock-locations/index.d.ts +2 -0
- package/dist/http/stock-locations/index.d.ts.map +1 -0
- package/dist/http/stock-locations/index.js +18 -0
- package/dist/http/stock-locations/index.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory/common/inventory-item.d.ts +55 -64
- package/dist/inventory/common/inventory-item.d.ts.map +1 -1
- package/dist/inventory/common/inventory-level.d.ts +37 -37
- package/dist/inventory/common/inventory-level.d.ts.map +1 -1
- package/dist/inventory/common/reservation-item.d.ts +34 -44
- package/dist/inventory/common/reservation-item.d.ts.map +1 -1
- package/dist/inventory/service-next.d.ts +596 -534
- package/dist/inventory/service-next.d.ts.map +1 -1
- package/dist/payment/common.d.ts +174 -53
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/common.js +3 -3
- package/dist/payment/common.js.map +1 -1
- package/dist/payment/mutations.d.ts +58 -17
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +128 -43
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/provider.js.map +1 -1
- package/dist/payment/service.d.ts +460 -39
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/pricing/common/price-list.d.ts +2 -2
- package/dist/pricing/common/price-set.d.ts +6 -4
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +731 -1695
- package/dist/pricing/service.d.ts.map +1 -1
- package/dist/product/common.d.ts +4 -0
- package/dist/product/common.d.ts.map +1 -1
- package/dist/product-category/repository.d.ts +2 -1
- package/dist/product-category/repository.d.ts.map +1 -1
- package/dist/promotion/common/application-method.d.ts +153 -0
- package/dist/promotion/common/application-method.d.ts.map +1 -1
- package/dist/promotion/common/campaign-budget.d.ts +37 -0
- package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
- package/dist/promotion/common/campaign.d.ts +36 -0
- package/dist/promotion/common/campaign.d.ts.map +1 -1
- package/dist/promotion/common/compute-actions.d.ts +135 -0
- package/dist/promotion/common/compute-actions.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
- package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule.d.ts +77 -0
- package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
- package/dist/promotion/common/promotion.d.ts +100 -0
- package/dist/promotion/common/promotion.d.ts.map +1 -1
- package/dist/promotion/mutations.d.ts +84 -0
- package/dist/promotion/mutations.d.ts.map +1 -1
- package/dist/promotion/service.d.ts +786 -0
- package/dist/promotion/service.d.ts.map +1 -1
- package/dist/region/common.d.ts +9 -0
- package/dist/region/common.d.ts.map +1 -1
- package/dist/region/mutations.d.ts +11 -3
- package/dist/region/mutations.d.ts.map +1 -1
- package/dist/region/service.d.ts +210 -85
- package/dist/region/service.d.ts.map +1 -1
- package/dist/stock-location/common.d.ts +14 -0
- package/dist/stock-location/common.d.ts.map +1 -1
- package/dist/stock-location/service-next.d.ts +178 -186
- package/dist/stock-location/service-next.d.ts.map +1 -1
- package/dist/store/common/store.d.ts +42 -0
- package/dist/store/common/store.d.ts.map +1 -1
- package/dist/store/mutations/store.d.ts +75 -0
- package/dist/store/mutations/store.d.ts.map +1 -1
- package/dist/store/service.d.ts +113 -75
- package/dist/store/service.d.ts.map +1 -1
- package/dist/tax/common.d.ts +298 -10
- package/dist/tax/common.d.ts.map +1 -1
- package/dist/tax/mutations.d.ts +157 -0
- package/dist/tax/mutations.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +126 -0
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/tax/service.d.ts +600 -0
- package/dist/tax/service.d.ts.map +1 -1
- package/dist/workflows/index.d.ts +2 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +18 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/stock-locations/index.d.ts +2 -0
- package/dist/workflows/stock-locations/index.d.ts.map +1 -0
- package/dist/workflows/stock-locations/index.js +18 -0
- package/dist/workflows/stock-locations/index.js.map +1 -0
- package/dist/workflows/stock-locations/mutations.d.ts +8 -0
- package/dist/workflows/stock-locations/mutations.d.ts.map +1 -0
- package/dist/workflows/stock-locations/mutations.js +3 -0
- package/dist/workflows/stock-locations/mutations.js.map +1 -0
- package/package.json +1 -1
@@ -10,27 +10,29 @@ export type AuthUserDTO = {
|
|
10
10
|
*/
|
11
11
|
id: string;
|
12
12
|
/**
|
13
|
-
* The
|
13
|
+
* The ID of the provider used to authenticate the user.
|
14
14
|
*/
|
15
15
|
provider: string;
|
16
16
|
/**
|
17
|
-
* The
|
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
|
-
*
|
27
|
+
* Holds custom data related to the provider in key-value pairs.
|
26
28
|
*/
|
27
29
|
provider_metadata?: Record<string, unknown>;
|
28
30
|
/**
|
29
|
-
*
|
31
|
+
* Holds custom data related to the user in key-value pairs.
|
30
32
|
*/
|
31
33
|
user_metadata: Record<string, unknown>;
|
32
34
|
/**
|
33
|
-
*
|
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
|
50
|
+
* The ID of the provider used to authenticate
|
51
|
+
* the user.
|
49
52
|
*/
|
50
53
|
provider: string;
|
51
54
|
/**
|
52
|
-
* The
|
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
|
-
*
|
65
|
+
* Holds custom data related to the provider in key-value pairs.
|
61
66
|
*/
|
62
67
|
provider_metadata?: Record<string, unknown>;
|
63
68
|
/**
|
64
|
-
*
|
69
|
+
* Holds custom data related to the user in key-value pairs.
|
65
70
|
*/
|
66
71
|
user_metadata?: Record<string, unknown>;
|
67
72
|
/**
|
68
|
-
*
|
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
|
-
*
|
88
|
+
* Holds custom data related to the provider in key-value pairs.
|
84
89
|
*/
|
85
90
|
provider_metadata?: Record<string, unknown>;
|
86
91
|
/**
|
87
|
-
*
|
92
|
+
* Holds custom data related to the user in key-value pairs.
|
88
93
|
*/
|
89
94
|
user_metadata?: Record<string, unknown>;
|
90
95
|
/**
|
91
|
-
*
|
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
|
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;AAC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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.
|
13
|
-
* depends on the used provider ID.
|
12
|
+
* The authenticated user's details.
|
14
13
|
*/
|
15
14
|
authUser?: any;
|
16
15
|
/**
|
17
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
43
|
+
* The configurations of the `providers` option
|
44
|
+
* passed to the Auth Module.
|
33
45
|
*/
|
34
46
|
export type AuthModuleProviderConfig = {
|
35
47
|
/**
|
36
|
-
*
|
48
|
+
* The provider's name.
|
37
49
|
*/
|
38
50
|
name: string;
|
39
51
|
/**
|
40
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
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
|
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"}
|
package/dist/auth/service.d.ts
CHANGED
@@ -9,171 +9,233 @@ export type JWTGenerationOptions = {
|
|
9
9
|
expiresIn?: string | number;
|
10
10
|
};
|
11
11
|
/**
|
12
|
-
* The main service interface for the
|
12
|
+
* The main service interface for the Auth Module.
|
13
13
|
*/
|
14
14
|
export interface IAuthModuleService extends IModuleService {
|
15
15
|
/**
|
16
|
-
* This method is
|
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
|
-
*
|
19
|
-
*
|
20
|
-
* @
|
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
|
-
*
|
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
|
-
*
|
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
|
-
*
|
30
|
-
*
|
31
|
-
*
|
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
|
-
*
|
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
|
79
|
+
* This method retrieves an auth user by its ID.
|
39
80
|
*
|
40
|
-
* @param {string} id - The ID of the
|
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
|
-
*
|
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
|
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
|
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
|
-
* {
|
104
|
+
* const authUsers = await authModuleService.list({
|
105
|
+
* id: ["authusr_123", "authusr_321"],
|
106
|
+
* })
|
82
107
|
* ```
|
83
108
|
*
|
84
|
-
* By default, only the first `
|
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
|
-
*
|
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
|
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
|
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
|
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
|
-
*
|
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 `
|
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
|
-
*
|
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
|
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
|
-
*
|
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
|
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
|
-
* {
|
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
|
197
|
+
* This method updates existing auths.
|
148
198
|
*
|
149
|
-
* @param {UpdateAuthUserDTO[]} data - The attributes to update in the auth
|
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
|
201
|
+
* @returns {Promise<AuthUserDTO[]>} The updated auths.
|
152
202
|
*
|
153
203
|
* @example
|
154
|
-
*
|
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
|
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
|
219
|
+
* @returns {Promise<AuthUserDTO>} The updated auth.
|
163
220
|
*
|
164
221
|
* @example
|
165
|
-
* {
|
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
|
231
|
+
* This method deletes a auth by its ID.
|
170
232
|
*
|
171
|
-
* @param {string[]} ids - The
|
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
|
235
|
+
* @returns {Promise<void>} Resolves when {summary}
|
174
236
|
*
|
175
237
|
* @example
|
176
|
-
*
|
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;
|
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;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;IAC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BG;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
|
package/dist/bundles.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bundles.d.ts","sourceRoot":"","sources":["../src/bundles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,UAAU,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,aAAa,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,GAAG,MAAM,OAAO,CAAA;AAC5B,OAAO,KAAK,aAAa,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,gBAAgB,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,gBAAgB,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,cAAc,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,WAAW,MAAM,UA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KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,eAAe,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,UAAU,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,YAAY,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,YAAY,MAAM,WAAW,CAAA;AACzC,OAAO,KAAK,cAAc,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C,OAAO,KAAK,iBAAiB,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,WAAW,MAAM,UAAU,CAAA;AACvC,OAAO,KAAK,kBAAkB,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,oBAAoB,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,aAAa,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,WAAW,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,aAAa,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,SAAS,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
|
package/dist/bundles.js.map
CHANGED
@@ -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"}
|