@medusajs/js-sdk 1.0.0-rc-20241001083650 → 1.0.0-rc-20241014083213
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin/order.d.ts +1 -2
- package/dist/admin/order.d.ts.map +1 -1
- package/dist/admin/upload.d.ts.map +1 -1
- package/dist/admin/upload.js.map +1 -1
- package/dist/auth/index.d.ts +4 -0
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +13 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/esm/admin/order.d.ts +1 -2
- package/dist/esm/admin/order.d.ts.map +1 -1
- package/dist/esm/admin/upload.d.ts.map +1 -1
- package/dist/esm/admin/upload.js.map +1 -1
- package/dist/esm/auth/index.d.ts +4 -0
- package/dist/esm/auth/index.d.ts.map +1 -1
- package/dist/esm/auth/index.js +13 -0
- package/dist/esm/auth/index.js.map +1 -1
- package/dist/esm/index.d.ts +5 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/store/index.d.ts.map +1 -1
- package/dist/esm/store/index.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js.map +1 -1
- package/package.json +2 -2
package/dist/admin/order.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { FindParams, HttpTypes, SelectParams } from "@medusajs/types";
|
2
|
-
import { AdminOrderChangesResponse } from "@medusajs/types/src/http/order/admin/responses";
|
3
2
|
import { Client } from "../client";
|
4
3
|
import { ClientHeaders } from "../types";
|
5
4
|
export declare class Order {
|
@@ -27,6 +26,6 @@ export declare class Order {
|
|
27
26
|
markAsDelivered(id: string, fulfillmentId: string, body: HttpTypes.AdminMarkOrderFulfillmentAsDelivered, query?: SelectParams, headers?: ClientHeaders): Promise<{
|
28
27
|
order: HttpTypes.AdminOrder;
|
29
28
|
}>;
|
30
|
-
listChanges(id: string, queryParams?: FindParams & HttpTypes.AdminOrderChangesFilters, headers?: ClientHeaders): Promise<HttpTypes.PaginatedResponse<AdminOrderChangesResponse>>;
|
29
|
+
listChanges(id: string, queryParams?: FindParams & HttpTypes.AdminOrderChangesFilters, headers?: ClientHeaders): Promise<HttpTypes.PaginatedResponse<HttpTypes.AdminOrderChangesResponse>>;
|
31
30
|
}
|
32
31
|
//# sourceMappingURL=order.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../src/admin/order.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAET,YAAY,EACb,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../src/admin/order.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAET,YAAY,EACb,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,KAAK;IAChB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;eAC9B,SAAS,CAAC,UAAU;;IASxD,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,iBAAiB,EACnC,OAAO,CAAC,EAAE,aAAa;IAWnB,IAAI,CACR,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,iBAAiB,EACtD,OAAO,CAAC,EAAE,aAAa;gBAGO,SAAS,CAAC,UAAU,EAAE;;IAOhD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;eACN,SAAS,CAAC,UAAU;;IASxD,iBAAi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O,CAAC,EAAE,aAAa;eAqBW,SAAS,CAAC,SAAS,EAAE;;IAenD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;cACrC,SAAS,CAAC,SAAS;;IAShD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../src/admin/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAKpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,eAAe,EAC/B,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;eAqBW,SAAS,CAAC,SAAS,EAAE;;IAenD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;cACrC,SAAS,CAAC,SAAS;;IAShD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD"}
|
package/dist/admin/upload.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../src/admin/upload.ts"],"names":[],"mappings":";;;AAIA,MAAa,MAAM;IAEjB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,+HAA+H;IAC/H,KAAK,CAAC,MAAM,CACV,IAA+B,EAC/B,KAAoB,EACpB,OAAuB;QAEvB,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAA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,EAAE,EACtB;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF;AAjED,wBAiEC"}
|
package/dist/auth/index.d.ts
CHANGED
@@ -12,6 +12,10 @@ export declare class Auth {
|
|
12
12
|
callback: (actor: string, method: string, query?: Record<string, unknown>) => Promise<string>;
|
13
13
|
refresh: () => Promise<string>;
|
14
14
|
logout: () => Promise<void>;
|
15
|
+
resetPassword: (actor: string, provider: string, body: {
|
16
|
+
identifier: string;
|
17
|
+
}) => Promise<void>;
|
18
|
+
updateProvider: (actor: string, provider: string, body: Record<string, unknown>) => Promise<void>;
|
15
19
|
private setToken_;
|
16
20
|
}
|
17
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/auth/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C,QAAQ,UACC,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,qBAahD;IAED,KAAK,UACI,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;OAmB1E;IAGD,QAAQ,UACC,MAAM,UACL,MAAM,UACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,qBAYhC;IAED,OAAO,wBAYN;IAED,MAAM,sBAQL;IAED,OAAO,CAAC,SAAS,CAUhB;CACF"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C,QAAQ,UACC,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,qBAahD;IAED,KAAK,UACI,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;OAmB1E;IAGD,QAAQ,UACC,MAAM,UACL,MAAM,UACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,qBAYhC;IAED,OAAO,wBAYN;IAED,MAAM,sBAQL;IAED,aAAa,UACJ,MAAM,YACH,MAAM,QACV;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,mBAO7B;IAED,cAAc,UACL,MAAM,YACH,MAAM,QACV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,mBAM9B;IAED,OAAO,CAAC,SAAS,CAUhB;CACF"}
|
package/dist/auth/index.js
CHANGED
@@ -51,6 +51,19 @@ class Auth {
|
|
51
51
|
}
|
52
52
|
this.client.clearToken();
|
53
53
|
};
|
54
|
+
this.resetPassword = async (actor, provider, body) => {
|
55
|
+
await this.client.fetch(`/auth/${actor}/${provider}/reset-password`, {
|
56
|
+
method: "POST",
|
57
|
+
body,
|
58
|
+
headers: { accept: "text/plain" }, // 201 Created response
|
59
|
+
});
|
60
|
+
};
|
61
|
+
this.updateProvider = async (actor, provider, body) => {
|
62
|
+
await this.client.fetch(`/auth/${actor}/${provider}/update`, {
|
63
|
+
method: "POST",
|
64
|
+
body,
|
65
|
+
});
|
66
|
+
};
|
54
67
|
this.setToken_ = async (token) => {
|
55
68
|
// By default we just set the token in the configured storage, if configured to use sessions we convert it into session storage instead.
|
56
69
|
if (this.config?.auth?.type === "session") {
|
package/dist/auth/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;AAIA,MAAa,IAAI;IAIf,YAAY,MAAc,EAAE,MAAc;QAK1C,aAAQ,GAAG,KAAK,EACd,KAAa,EACb,MAAc,EACd,OAA+C,EAC/C,EAAE;YACF,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACvC,SAAS,KAAK,IAAI,MAAM,WAAW,EACnC;gBACE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,OAAO;aACd,CACF,CAAA;YAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;YAE3B,OAAO,KAAK,CAAA;QACd,CAAC,CAAA;QAED,UAAK,GAAG,KAAK,EACX,KAAa,EACb,MAAc,EACd,OAAyE,EACzE,EAAE;YACF,oEAAoE;YACpE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAGhD,SAAS,KAAK,IAAI,MAAM,EAAE,EAAE;gBAC7B,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,OAAO;aACd,CAAC,CAAA;YAEF,gFAAgF;YAChF,4EAA4E;YAC5E,IAAI,QAAQ,EAAE,CAAC;gBACb,OAAO,EAAE,QAAQ,EAAE,CAAA;YACrB,CAAC;YAED,MAAM,IAAI,CAAC,SAAS,CAAC,KAAe,CAAC,CAAA;YACrC,OAAO,KAAe,CAAA;QACxB,CAAC,CAAA;QAED,8JAA8J;QAC9J,aAAQ,GAAG,KAAK,EACd,KAAa,EACb,MAAc,EACd,KAA+B,EAC/B,EAAE;YACF,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,I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KAAa,EAAE,EAAE;YAC1C,wIAAwI;YACxI,IAAI,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;gBAC1C,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,EAAE;oBACvC,MAAM,EAAE,MAAM;oBACd,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE;iBAC9C,CAAC,CAAA;YACJ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;YAC7B,CAAC;QACH,CAAC,CAAA;QAzHC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CAwHF;AA/HD,oBA+HC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { FindParams, HttpTypes, SelectParams } from "@medusajs/types";
|
2
|
-
import { AdminOrderChangesResponse } from "@medusajs/types/src/http/order/admin/responses";
|
3
2
|
import { Client } from "../client";
|
4
3
|
import { ClientHeaders } from "../types";
|
5
4
|
export declare class Order {
|
@@ -27,6 +26,6 @@ export declare class Order {
|
|
27
26
|
markAsDelivered(id: string, fulfillmentId: string, body: HttpTypes.AdminMarkOrderFulfillmentAsDelivered, query?: SelectParams, headers?: ClientHeaders): Promise<{
|
28
27
|
order: HttpTypes.AdminOrder;
|
29
28
|
}>;
|
30
|
-
listChanges(id: string, queryParams?: FindParams & HttpTypes.AdminOrderChangesFilters, headers?: ClientHeaders): Promise<HttpTypes.PaginatedResponse<AdminOrderChangesResponse>>;
|
29
|
+
listChanges(id: string, queryParams?: FindParams & HttpTypes.AdminOrderChangesFilters, headers?: ClientHeaders): Promise<HttpTypes.PaginatedResponse<HttpTypes.AdminOrderChangesResponse>>;
|
31
30
|
}
|
32
31
|
//# sourceMappingURL=order.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/admin/order.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAET,YAAY,EACb,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../src/admin/order.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAET,YAAY,EACb,MAAM,iBAAiB,CAAA;AAGxB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,KAAK;IAChB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;eAC9B,SAAS,CAAC,UAAU;;IASxD,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,iBAAiB,EACnC,OAAO,CAAC,EAAE,aAAa;IAWnB,IAAI,CACR,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,iBAAiB,EACtD,OAAO,CAAC,EAAE,aAAa;gBAGO,SAAS,CAAC,UAAU,EAAE;;IAOhD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;eACN,SAAS,CAAC,UAAU;;IASxD,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,2BAA2B,EAC3C,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;eAEiB,SAAS,CAAC,UAAU;;IAWxD,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,2BAA2B,EAC3C,OAAO,CAAC,EAAE,aAAa;eAEiB,SAAS,CAAC,UAAU;;IAUxD,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;eAEiB,SAAS,CAAC,UAAU;;IAWxD,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,oCAAoC,EACpD,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;eAEiB,SAAS,CAAC,UAAU;;IAWxD,WAAW,CACf,EAAE,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,wBAAwB,EAC7D,OAAO,CAAC,EAAE,aAAa;CAS1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/admin/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAKpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,eAAe,EAC/B,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;eAqBW,SAAS,CAAC,SAAS,EAAE;;IAenD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;cACrC,SAAS,CAAC,SAAS;;IAShD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/admin/upload.ts"],"names":[],"mappings":"AA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AC,CAAA;YACJ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;oBAC1B,IAAI,CAAC,MAAM,CACT,OAAO,EACP,SAAS,IAAI,IAAI;wBACf,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;4BACvB,IAAI,EAAE,YAAY;yBACnB,CAAC;wBACJ,CAAC,CAAC,IAAI,EACR,IAAI,CAAC,IAAI,CACV,CAAA;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC;YAED,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAChB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO,kCACF,OAAO;oBACV,8CAA8C;oBAC9C,cAAc,EAAE,IAAI,GACrB;gBACD,IAAI,EAAE,IAAI;gBACV,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;;YACtE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,kBAAkB,EAAE,EAAE,EACtB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,kBAAkB,EAAE,EAAE,EACtB;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
package/dist/esm/auth/index.d.ts
CHANGED
@@ -12,6 +12,10 @@ export declare class Auth {
|
|
12
12
|
callback: (actor: string, method: string, query?: Record<string, unknown>) => Promise<string>;
|
13
13
|
refresh: () => Promise<string>;
|
14
14
|
logout: () => Promise<void>;
|
15
|
+
resetPassword: (actor: string, provider: string, body: {
|
16
|
+
identifier: string;
|
17
|
+
}) => Promise<void>;
|
18
|
+
updateProvider: (actor: string, provider: string, body: Record<string, unknown>) => Promise<void>;
|
15
19
|
private setToken_;
|
16
20
|
}
|
17
21
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C,QAAQ,UACC,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,qBAahD;IAED,KAAK,UACI,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;OAmB1E;IAGD,QAAQ,UACC,MAAM,UACL,MAAM,UACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,qBAYhC;IAED,OAAO,wBAYN;IAED,MAAM,sBAQL;IAED,OAAO,CAAC,SAAS,CAUhB;CACF"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C,QAAQ,UACC,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,qBAahD;IAED,KAAK,UACI,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;OAmB1E;IAGD,QAAQ,UACC,MAAM,UACL,MAAM,UACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,qBAYhC;IAED,OAAO,wBAYN;IAED,MAAM,sBAQL;IAED,aAAa,UACJ,MAAM,YACH,MAAM,QACV;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,mBAO7B;IAED,cAAc,UACL,MAAM,YACH,MAAM,QACV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,mBAM9B;IAED,OAAO,CAAC,SAAS,CAUhB;CACF"}
|
package/dist/esm/auth/index.js
CHANGED
@@ -58,6 +58,19 @@ export class Auth {
|
|
58
58
|
}
|
59
59
|
this.client.clearToken();
|
60
60
|
});
|
61
|
+
this.resetPassword = (actor, provider, body) => __awaiter(this, void 0, void 0, function* () {
|
62
|
+
yield this.client.fetch(`/auth/${actor}/${provider}/reset-password`, {
|
63
|
+
method: "POST",
|
64
|
+
body,
|
65
|
+
headers: { accept: "text/plain" }, // 201 Created response
|
66
|
+
});
|
67
|
+
});
|
68
|
+
this.updateProvider = (actor, provider, body) => __awaiter(this, void 0, void 0, function* () {
|
69
|
+
yield this.client.fetch(`/auth/${actor}/${provider}/update`, {
|
70
|
+
method: "POST",
|
71
|
+
body,
|
72
|
+
});
|
73
|
+
});
|
61
74
|
this.setToken_ = (token) => __awaiter(this, void 0, void 0, function* () {
|
62
75
|
var _a, _b;
|
63
76
|
// By default we just set the token in the configured storage, if configured to use sessions we convert it into session storage instead.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,IAAI;IAIf,YAAY,MAAc,EAAE,MAAc;QAK1C,aAAQ,GAAG,CACT,KAAa,EACb,MAAc,EACd,OAA+C,EAC/C,EAA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U,KAAK,EAAE,EAAE;iBAC9C,CAAC,CAAA;YACJ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;YAC7B,CAAC;QACH,CAAC,CAAA,CAAA;QAzHC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CAwHF"}
|
package/dist/esm/index.d.ts
CHANGED
@@ -11,5 +11,9 @@ declare class Medusa {
|
|
11
11
|
constructor(config: Config);
|
12
12
|
}
|
13
13
|
export default Medusa;
|
14
|
-
export { FetchError } from "./client";
|
14
|
+
export { FetchError, Client } from "./client";
|
15
|
+
export { Admin } from "./admin";
|
16
|
+
export { Auth } from "./auth";
|
17
|
+
export { Store } from "./store";
|
18
|
+
export { Config, ClientHeaders, ClientFetch, FetchArgs, FetchInput, FetchStreamResponse, Logger, ServerSentEventMessage, } from "./types";
|
15
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,cAAM,MAAM;IACH,MAAM,EAAE,MAAM,CAAA;IAEd,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;gBAEL,MAAM,EAAE,MAAM;CAO3B;AAED,eAAe,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,cAAM,MAAM;IACH,MAAM,EAAE,MAAM,CAAA;IAEd,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;gBAEL,MAAM,EAAE,MAAM;CAO3B;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,MAAM,EACN,sBAAsB,GACvB,MAAM,SAAS,CAAA"}
|
package/dist/esm/index.js
CHANGED
@@ -11,5 +11,8 @@ class Medusa {
|
|
11
11
|
}
|
12
12
|
}
|
13
13
|
export default Medusa;
|
14
|
-
export { FetchError } from "./client";
|
14
|
+
export { FetchError, Client } from "./client";
|
15
|
+
export { Admin } from "./admin";
|
16
|
+
export { Auth } from "./auth";
|
17
|
+
export { Store } from "./store";
|
15
18
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,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B,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":";;;;;;;;;AASA,MAAM,OAAO,KAAK;IAGhB,YAAY,MAAc;QAInB,WAAM,GAAG;YACd,IAAI,EAAE,CACJ,KAAiD,EACjD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,gBAAgB,EAAE;oBAClB,KAAK;oBACL,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC,CAAA;YACD,QAAQ,EAAE,CACR,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,kBAAkB,EAAE,EAAE,EACtB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;SACF,CAAA;QAEM,eAAU,GAAG;YAClB,IAAI,EAAE,CACJ,KAAqD,EACrD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,oBAAoB,EAAE;oBACtB,KAAK;oBACL,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC,CAAA;YACD,QAAQ,EAAE,CACR,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;SACF,CAAA;QAEM,aAAQ,GAAG;YAChB,IAAI,EAAE,CACJ,KAA4C,EAC5C,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAItB,2BAA2B,EAAE;oBAC7B,KAAK;oBACL,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC,CAAA;YACD,QAAQ,EAAE,CACR,EAAU,EAC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AA0C,EAC1C,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;oBACJ,KAAK;iBACN,CACF,CAAA;YACH,CAAC,CAAA;YACD,WAAW,EAAE,CACX,KAA0D,EAC1D,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,+BAA+B,EAAE;oBACjC,KAAK;oBACL,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC,CAAA;YACD,eAAe,EAAE,CACf,SAAiB,EACjB,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;YACD,aAAa,EAAE,CAAO,SAAiB,EAAE,OAAuB,EAAE,EAAE;gBAClE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,MAAM,EAAE,QAAQ;oBAChB,OAAO;iBACR,CACF,CAAA;YACH,CAAC,CAAA;SACF,CAAA;QA9aC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CA8aF"}
|
package/dist/index.d.ts
CHANGED
@@ -11,5 +11,9 @@ declare class Medusa {
|
|
11
11
|
constructor(config: Config);
|
12
12
|
}
|
13
13
|
export default Medusa;
|
14
|
-
export { FetchError } from "./client";
|
14
|
+
export { FetchError, Client } from "./client";
|
15
|
+
export { Admin } from "./admin";
|
16
|
+
export { Auth } from "./auth";
|
17
|
+
export { Store } from "./store";
|
18
|
+
export { Config, ClientHeaders, ClientFetch, FetchArgs, FetchInput, FetchStreamResponse, Logger, ServerSentEventMessage, } from "./types";
|
15
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,cAAM,MAAM;IACH,MAAM,EAAE,MAAM,CAAA;IAEd,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;gBAEL,MAAM,EAAE,MAAM;CAO3B;AAED,eAAe,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAEhC,cAAM,MAAM;IACH,MAAM,EAAE,MAAM,CAAA;IAEd,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;IACZ,IAAI,EAAE,IAAI,CAAA;gBAEL,MAAM,EAAE,MAAM;CAO3B;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,MAAM,EACN,sBAAsB,GACvB,MAAM,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FetchError = void 0;
|
3
|
+
exports.Store = exports.Auth = exports.Admin = exports.Client = exports.FetchError = void 0;
|
4
4
|
const admin_1 = require("./admin");
|
5
5
|
const auth_1 = require("./auth");
|
6
6
|
const client_1 = require("./client");
|
@@ -16,4 +16,11 @@ class Medusa {
|
|
16
16
|
exports.default = Medusa;
|
17
17
|
var client_2 = require("./client");
|
18
18
|
Object.defineProperty(exports, "FetchError", { enumerable: true, get: function () { return client_2.FetchError; } });
|
19
|
+
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_2.Client; } });
|
20
|
+
var admin_2 = require("./admin");
|
21
|
+
Object.defineProperty(exports, "Admin", { enumerable: true, get: function () { return admin_2.Admin; } });
|
22
|
+
var auth_2 = require("./auth");
|
23
|
+
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return auth_2.Auth; } });
|
24
|
+
var store_2 = require("./store");
|
25
|
+
Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return store_2.Store; } });
|
19
26
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAC/B,iCAA6B;AAC7B,qCAAiC;AACjC,mCAA+B;AAG/B,MAAM,MAAM;IAOV,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,MAAM,CAAC,CAAA;QAEhC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,WAAI,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3C,CAAC;CACF;AAED,kBAAe,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAA+B;AAC/B,iCAA6B;AAC7B,qCAAiC;AACjC,mCAA+B;AAG/B,MAAM,MAAM;IAOV,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,MAAM,CAAC,CAAA;QAEhC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,WAAI,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3C,CAAC;CACF;AAED,kBAAe,MAAM,CAAA;AAErB,mCAA6C;AAApC,oGAAA,UAAU,OAAA;AAAE,gGAAA,MAAM,OAAA;AAC3B,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,+BAA6B;AAApB,4FAAA,IAAI,OAAA;AACb,iCAA+B;AAAtB,8FAAA,KAAK,OAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAET,YAAY,EACb,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa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S,CAAC,aAAa;;8BAWpD,UAAU,GAAG,SAAS,CAAC,2BAA2B,YAChD,aAAa;uBAGU,SAAS,CAAC,oBAAoB,EAAE;;qCAOtD,MAAM,UACT,YAAY,YACV,aAAa;qBAEa,SAAS,CAAC,oBAAoB;;mCAQnC,MAAM,YAAY,aAAa;MASjE;CACF"}
|
package/dist/store/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":";;;AASA,MAAa,KAAK;IAGhB,YAAY,MAAc;QAInB,WAAM,GAAG;YACd,IAAI,EAAE,KAAK,EACT,KAAiD,EACjD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,gBAAgB,EAAE;oBAClB,KAAK;oBACL,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC;YACD,QAAQ,EAAE,KAAK,EACb,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,kBAAkB,EAAE,EAAE,EACtB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;SACF,CAAA;QAEM,eAAU,GAAG;YAClB,IAAI,EAAE,KAAK,EACT,KAAqD,EACrD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,oBAAoB,EAAE;oBACtB,KAAK;oBACL,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC;YACD,QAAQ,EAAE,KAAK,EACb,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;SACF,CAAA;QAEM,aAAQ,GAAG;YAChB,IAAI,EAAE,KAAK,EACT,KAA4C,EA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,CACF,CAAA;YACH,CAAC;YACD,QAAQ,EAAE,KAAK,EACb,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAAE,EAAE,EACpB;oBACE,OAAO;oBACP,KAAK;iBACN,CACF,CAAA;YACH,CAAC;YACD,cAAc,EAAE,KAAK,EACnB,MAAc,EACd,IAAoC,EACpC,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,MAAM,aAAa,EACnC;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;oBACJ,KAAK;iBACN,CACF,CAAA;YACH,CAAC;YACD,cAAc,EAAE,KAAK,EACnB,MAAc,EACd,UAAkB,EAClB,IAAuC,EACvC,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,MAAM,eAAe,UAAU,EAAE,EACjD;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;oBACJ,KAAK;iBACN,CACF,CAAA;YACH,CAAC;YACD,cAAc,EAAE,KAAK,EACnB,MAAc,EACd,UAAkB,EAClB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":";;;AASA,MAAa,KAAK;IAGhB,YAAY,MAAc;QAInB,WAAM,GAAG;YACd,IAAI,EAAE,KAAK,EACT,KAAiD,EACjD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,gBAAgB,EAAE;oBAClB,KAAK;oBACL,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC;YACD,QAAQ,EAAE,KAAK,EACb,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,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pB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;YACD,aAAa,EAAE,KAAK,EAAE,SAAiB,EAAE,OAAuB,EAAE,EAAE;gBAClE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,iCAAiC,SAAS,EAAE,EAC5C;oBACE,MAAM,EAAE,QAAQ;oBAChB,OAAO;iBACR,CACF,CAAA;YACH,CAAC;SACF,CAAA;QA9aC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CA8aF;AAnbD,sBAmbC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/js-sdk",
|
3
|
-
"version": "1.0.0-rc-
|
3
|
+
"version": "1.0.0-rc-20241014083213",
|
4
4
|
"description": "SDK for the Medusa API",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -35,7 +35,7 @@
|
|
35
35
|
"typescript": "^5.6.2"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@medusajs/types": "2.0.0-rc-
|
38
|
+
"@medusajs/types": "2.0.0-rc-20241014083213",
|
39
39
|
"fetch-event-stream": "^0.1.5",
|
40
40
|
"qs": "^6.12.1"
|
41
41
|
},
|