@medusajs/js-sdk 0.0.2-snapshot-20240925105124 → 0.0.2-snapshot-20240925111619
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin/api-key.js +1 -5
- package/dist/admin/api-key.js.map +1 -1
- package/dist/admin/campaign.js +1 -5
- package/dist/admin/campaign.js.map +1 -1
- package/dist/admin/claim.js +1 -5
- package/dist/admin/claim.js.map +1 -1
- package/dist/admin/currency.js +1 -5
- package/dist/admin/currency.js.map +1 -1
- package/dist/admin/customer-group.js +1 -5
- package/dist/admin/customer-group.js.map +1 -1
- package/dist/admin/customer.d.ts.map +1 -1
- package/dist/admin/customer.js +1 -5
- package/dist/admin/customer.js.map +1 -1
- package/dist/admin/exchange.js +1 -5
- package/dist/admin/exchange.js.map +1 -1
- package/dist/admin/fulfillment-provider.js +1 -5
- package/dist/admin/fulfillment-provider.js.map +1 -1
- package/dist/admin/fulfillment-set.js +1 -5
- package/dist/admin/fulfillment-set.js.map +1 -1
- package/dist/admin/fulfillment.d.ts.map +1 -1
- package/dist/admin/fulfillment.js +1 -5
- package/dist/admin/fulfillment.js.map +1 -1
- package/dist/admin/index.js +83 -90
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/inventory-item.js +1 -5
- package/dist/admin/inventory-item.js.map +1 -1
- package/dist/admin/invite.d.ts.map +1 -1
- package/dist/admin/invite.js +1 -5
- package/dist/admin/invite.js.map +1 -1
- package/dist/admin/notification.js +1 -5
- package/dist/admin/notification.js.map +1 -1
- package/dist/admin/order-edit.js +1 -5
- package/dist/admin/order-edit.js.map +1 -1
- package/dist/admin/order.d.ts.map +1 -1
- package/dist/admin/order.js +1 -5
- package/dist/admin/order.js.map +1 -1
- package/dist/admin/payment-collection.js +1 -5
- package/dist/admin/payment-collection.js.map +1 -1
- package/dist/admin/payment.js +1 -5
- package/dist/admin/payment.js.map +1 -1
- package/dist/admin/price-list.js +1 -5
- package/dist/admin/price-list.js.map +1 -1
- package/dist/admin/price-preference.js +1 -5
- package/dist/admin/price-preference.js.map +1 -1
- package/dist/admin/product-category.js +1 -5
- package/dist/admin/product-category.js.map +1 -1
- package/dist/admin/product-collection.js +1 -5
- package/dist/admin/product-collection.js.map +1 -1
- package/dist/admin/product-tag.js +1 -5
- package/dist/admin/product-tag.js.map +1 -1
- package/dist/admin/product-type.js +1 -5
- package/dist/admin/product-type.js.map +1 -1
- package/dist/admin/product-variant.js +1 -5
- package/dist/admin/product-variant.js.map +1 -1
- package/dist/admin/product.js +1 -5
- package/dist/admin/product.js.map +1 -1
- package/dist/admin/promotion.js +1 -5
- package/dist/admin/promotion.js.map +1 -1
- package/dist/admin/refund-reasons.js +1 -5
- package/dist/admin/refund-reasons.js.map +1 -1
- package/dist/admin/region.d.ts.map +1 -1
- package/dist/admin/region.js +1 -5
- package/dist/admin/region.js.map +1 -1
- package/dist/admin/reservation.js +1 -3
- package/dist/admin/reservation.js.map +1 -1
- package/dist/admin/return-reason.js +1 -5
- package/dist/admin/return-reason.js.map +1 -1
- package/dist/admin/return.js +1 -5
- package/dist/admin/return.js.map +1 -1
- package/dist/admin/sales-channel.js +1 -5
- package/dist/admin/sales-channel.js.map +1 -1
- package/dist/admin/shipping-option.js +1 -5
- package/dist/admin/shipping-option.js.map +1 -1
- package/dist/admin/shipping-profile.js +1 -5
- package/dist/admin/shipping-profile.js.map +1 -1
- package/dist/admin/stock-location.js +1 -5
- package/dist/admin/stock-location.js.map +1 -1
- package/dist/admin/store.js +1 -5
- package/dist/admin/store.js.map +1 -1
- package/dist/admin/tax-rate.js +1 -5
- package/dist/admin/tax-rate.js.map +1 -1
- package/dist/admin/tax-region.js +1 -5
- package/dist/admin/tax-region.js.map +1 -1
- package/dist/admin/upload.d.ts.map +1 -1
- package/dist/admin/upload.js +1 -5
- package/dist/admin/upload.js.map +1 -1
- package/dist/admin/user.js +1 -5
- package/dist/admin/user.js.map +1 -1
- package/dist/admin/workflow-execution.js +1 -5
- package/dist/admin/workflow-execution.js.map +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -5
- package/dist/auth/index.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -16
- package/dist/client.js.map +1 -1
- package/dist/index.js +10 -14
- package/dist/index.js.map +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +1 -5
- package/dist/store/index.js.map +1 -1
- package/dist/types.js +1 -2
- package/package.json +6 -11
package/dist/admin/store.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/admin/store.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/admin/store.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,KAAK;IAEhB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAAkC,EAClC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,EAAE,EACrB;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,KAAsC,EAAE,OAAuB;QACxE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,eAAe,EACf;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAgC,EAChC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,EAAE,EACrB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF"}
|
package/dist/admin/tax-rate.js
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TaxRate = void 0;
|
4
1
|
const taxRateUrl = "/admin/tax-rates";
|
5
|
-
class TaxRate {
|
2
|
+
export class TaxRate {
|
6
3
|
constructor(client) {
|
7
4
|
this.client = client;
|
8
5
|
}
|
@@ -43,5 +40,4 @@ class TaxRate {
|
|
43
40
|
});
|
44
41
|
}
|
45
42
|
}
|
46
|
-
exports.TaxRate = TaxRate;
|
47
43
|
//# sourceMappingURL=tax-rate.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tax-rate.js","sourceRoot":"","sources":["../../src/admin/tax-rate.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"tax-rate.js","sourceRoot":"","sources":["../../src/admin/tax-rate.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,GAAG,kBAAkB,CAAA;AAErC,MAAM,OAAO,OAAO;IAElB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAkC,EAClC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAiC,UAAU,EAAE;YACzE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAkC,EAClC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,GAAG,UAAU,IAAI,EAAE,EAAE,EACrB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,GAAG,UAAU,IAAI,EAAE,EAAE,EACrB;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,GAAG,UAAU,IAAI,EAAE,EAAE,EACrB;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CACR,KAAwC,EACxC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,UAAU,EACV;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF"}
|
package/dist/admin/tax-region.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TaxRegion = void 0;
|
4
1
|
const taxRegionUrl = "/admin/tax-regions";
|
5
2
|
// TODO: Add support for updating a tax region
|
6
|
-
class TaxRegion {
|
3
|
+
export class TaxRegion {
|
7
4
|
constructor(client) {
|
8
5
|
this.client = client;
|
9
6
|
}
|
@@ -36,5 +33,4 @@ class TaxRegion {
|
|
36
33
|
});
|
37
34
|
}
|
38
35
|
}
|
39
|
-
exports.TaxRegion = TaxRegion;
|
40
36
|
//# sourceMappingURL=tax-region.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tax-region.js","sourceRoot":"","sources":["../../src/admin/tax-region.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"tax-region.js","sourceRoot":"","sources":["../../src/admin/tax-region.ts"],"names":[],"mappings":"AAIA,MAAM,YAAY,GAAG,oBAAoB,CAAA;AAEzC,8CAA8C;AAC9C,MAAM,OAAO,SAAS;IAEpB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MA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,eAAe,EAC/B,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;eAqBW,
|
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,UAAU,SAAS,EAAE;;IAenD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;cACrC,UAAU,SAAS;;IAShD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CAMjD"}
|
package/dist/admin/upload.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Upload = void 0;
|
4
|
-
class Upload {
|
1
|
+
export class Upload {
|
5
2
|
constructor(client) {
|
6
3
|
this.client = client;
|
7
4
|
}
|
@@ -46,5 +43,4 @@ class Upload {
|
|
46
43
|
});
|
47
44
|
}
|
48
45
|
}
|
49
|
-
exports.Upload = Upload;
|
50
46
|
//# sourceMappingURL=upload.js.map
|
package/dist/admin/upload.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../src/admin/upload.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../src/admin/upload.ts"],"names":[],"mappings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,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAoC,kBAAkB,EAAE,EAAE,EAAE;YAClF,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/dist/admin/user.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.User = void 0;
|
4
|
-
class User {
|
1
|
+
export class User {
|
5
2
|
constructor(client) {
|
6
3
|
this.client = client;
|
7
4
|
}
|
@@ -46,5 +43,4 @@ class User {
|
|
46
43
|
});
|
47
44
|
}
|
48
45
|
}
|
49
|
-
exports.User = User;
|
50
46
|
//# sourceMappingURL=user.js.map
|
package/dist/admin/user.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/admin/user.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/admin/user.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,IAAI;IAEf,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAA+B,EAC/B,KAAiC,EACjC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAA8B,cAAc,EAAE;YACpE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAA+B,EAC/B,KAAiC,EACjC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAAE,EAAE,EACpB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CACR,WAA2C,EAC3C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAkC,cAAc,EAAE;YACxE,OAAO;YACP,KAAK,EAAE,WAAW;SACnB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAAiC,EACjC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAAE,EAAE,EACpB;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAAE,EAAE,EACpB;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,EAAE,CAAC,KAAiC,EAAE,OAAuB;QACjE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAA8B,iBAAiB,EAAE;YACvE,KAAK;YACL,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF"}
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.WorkflowExecution = void 0;
|
4
|
-
class WorkflowExecution {
|
1
|
+
export class WorkflowExecution {
|
5
2
|
constructor(client) {
|
6
3
|
this.client = client;
|
7
4
|
}
|
@@ -17,5 +14,4 @@ class WorkflowExecution {
|
|
17
14
|
});
|
18
15
|
}
|
19
16
|
}
|
20
|
-
exports.WorkflowExecution = WorkflowExecution;
|
21
17
|
//# sourceMappingURL=workflow-execution.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workflow-execution.js","sourceRoot":"","sources":["../../src/admin/workflow-execution.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"workflow-execution.js","sourceRoot":"","sources":["../../src/admin/workflow-execution.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,iBAAiB;IAE5B,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,WAAwD,EACxD,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,6BAA6B,EAC7B;YACE,KAAK,EAAE,WAAW;YAClB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,OAAuB;QAChD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,+BAA+B,EAAE,EAAE,EACnC;YACE,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF"}
|
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,
|
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,UAAU,4BAA4B,qBAahD;IAED,KAAK,UACI,MAAM,UACL,MAAM,WACL,UAAU,4BAA4B,GAAG,OAAO,MAAM,EAAE,OAAO,CAAC;;OAmB1E;IAGD,QAAQ,UACC,MAAM,UACL,MAAM,UACN,OAAO,MAAM,EAAE,OAAO,CAAC,qBAYhC;IAED,OAAO,wBAYN;IAED,MAAM,sBAQL;IAED,OAAO,CAAC,SAAS,CAUhB;CACF"}
|
package/dist/auth/index.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Auth = void 0;
|
4
|
-
class Auth {
|
1
|
+
export class Auth {
|
5
2
|
constructor(client, config) {
|
6
3
|
this.register = async (actor, method, payload) => {
|
7
4
|
const { token } = await this.client.fetch(`/auth/${actor}/${method}/register`, {
|
@@ -67,5 +64,4 @@ class Auth {
|
|
67
64
|
this.config = config;
|
68
65
|
}
|
69
66
|
}
|
70
|
-
exports.Auth = Auth;
|
71
67
|
//# sourceMappingURL=index.js.map
|
package/dist/auth/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"
|
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,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,CAA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Q;IACtB,OAAO,CAAC,MAAM,CAAQ;IAEtB,OAAO,CAAC,uBAAuB,CAAsB;IACrD,OAAO,CAAC,KAAK,CAAK;gBAEN,MAAM,EAAE,MAAM;IAiB1B;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,CAAC,SAAS,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;IAIrE;;;;;;;;;OASG;IACG,WAAW,CACf,KAAK,EAAE,UAAU,EACjB,IAAI,CAAC,EAAE,SAAS,GACf,OAAO,CAAC,mBAAmB,CAAC;IAgB/B,QAAQ,CAAC,KAAK,EAAE,MAAM;IAItB,UAAU;IAIV,SAAS,CAAC,WAAW;IAkBrB,SAAS,CAAC,UAAU,IAAI,WAAW;IA2DnC,SAAS,CAAC,gBAAgB,QAAO;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,GAAG,EAAE,CAI9D;IAED,SAAS,CAAC,wBAAwB,QAC9B;QAAE,wBAAwB,EAAE,MAAM,CAAA;KAAE,GACpC,EAAE,CAIL;IAED,SAAS,CAAC,aAAa,QAAO;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,GAAG,EAAE,CAQ3D;IAED,SAAS,CAAC,SAAS,UAAW,MAAM,UAgBnC;IAED,SAAS,CAAC,SAAS,kCAelB;IAED,SAAS,CAAC,oBAAoB;;;MAoB7B;CACF"}
|
package/dist/client.js
CHANGED
@@ -1,12 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.Client = exports.FetchError = exports.PUBLISHABLE_KEY_HEADER = void 0;
|
7
|
-
const qs_1 = __importDefault(require("qs"));
|
8
|
-
const fetch_event_stream_1 = require("fetch-event-stream");
|
9
|
-
exports.PUBLISHABLE_KEY_HEADER = "x-publishable-api-key";
|
1
|
+
import qs from "qs";
|
2
|
+
import { events } from "fetch-event-stream";
|
3
|
+
export const PUBLISHABLE_KEY_HEADER = "x-publishable-api-key";
|
10
4
|
const hasStorage = (storage) => {
|
11
5
|
if (typeof window !== "undefined") {
|
12
6
|
return storage in window;
|
@@ -47,15 +41,14 @@ const normalizeResponse = async (resp, reqHeaders) => {
|
|
47
41
|
const isJsonRequest = reqHeaders.get("accept")?.includes("application/json");
|
48
42
|
return isJsonRequest ? await resp.json() : resp;
|
49
43
|
};
|
50
|
-
class FetchError extends Error {
|
44
|
+
export class FetchError extends Error {
|
51
45
|
constructor(message, statusText, status) {
|
52
46
|
super(message);
|
53
47
|
this.statusText = statusText;
|
54
48
|
this.status = status;
|
55
49
|
}
|
56
50
|
}
|
57
|
-
|
58
|
-
class Client {
|
51
|
+
export class Client {
|
59
52
|
constructor(config) {
|
60
53
|
this.DEFAULT_JWT_STORAGE_KEY = "medusa_auth_token";
|
61
54
|
this.token = "";
|
@@ -66,7 +59,7 @@ class Client {
|
|
66
59
|
};
|
67
60
|
this.getPublishableKeyHeader_ = () => {
|
68
61
|
return this.config.publishableKey
|
69
|
-
? { [
|
62
|
+
? { [PUBLISHABLE_KEY_HEADER]: this.config.publishableKey }
|
70
63
|
: {};
|
71
64
|
};
|
72
65
|
this.getJwtHeader_ = () => {
|
@@ -171,7 +164,7 @@ class Client {
|
|
171
164
|
headers: { ...init?.headers, accept: "text/event-stream" },
|
172
165
|
});
|
173
166
|
if (res.ok) {
|
174
|
-
return { stream:
|
167
|
+
return { stream: events(res, abort.signal), abort: abort.abort };
|
175
168
|
}
|
176
169
|
return { stream: null, abort: abort.abort };
|
177
170
|
}
|
@@ -228,7 +221,7 @@ class Client {
|
|
228
221
|
normalizedInput = new URL(input, this.config.baseUrl);
|
229
222
|
if (init?.query) {
|
230
223
|
const params = Object.fromEntries(normalizedInput.searchParams.entries());
|
231
|
-
const stringifiedQuery =
|
224
|
+
const stringifiedQuery = qs.stringify({ ...params, ...init.query });
|
232
225
|
normalizedInput.search = stringifiedQuery;
|
233
226
|
}
|
234
227
|
}
|
@@ -241,5 +234,4 @@ class Client {
|
|
241
234
|
};
|
242
235
|
}
|
243
236
|
}
|
244
|
-
exports.Client = Client;
|
245
237
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAU3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAA;AAE7D,MAAM,UAAU,GAAG,CAAC,OAA0C,EAAE,EAAE;IAChE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,OAAO,IAAI,MAAM,CAAA;IAC1B,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,EAAE;IAC/B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACzB,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAC5C,CAAC,CAAA;AAED,MAAM,eAAe,GAAG,CAAC,OAAgB,EAAE,EAAE;IAC3C,OAAO;QACL,GAAG,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACxC,aAAa,EAAE,YAAY;KAC5B,CAAA;AACH,CAAC,CAAA;AAED,MAAM,gBAAgB,GAAG,CACvB,IAA2B,EAC3B,OAAgB,EAChB,MAAc,EACW,EAAE;IAC3B,IAAI,IAAI,GAAG,IAAI,EAAE,IAAI,CAAA;IACrB,IAAI,IAAI,IAAI,O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0BAA0B,EAC1B,QAAQ,eAAe,CAAC,QAAQ,EAAE,IAAI,EACtC,YAAY,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAClE,CAAA;YAED,kFAAkF;YAClF,OAAO,MAAM,KAAK,CAChB,eAAe,EACf,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAC7C,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;gBACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,iCAAiC,IAAI,CAAC,MAAM,IAAI,CAAC,CAAA;gBACnE,OAAO,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;YACzC,CAAC,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC;CAkFF"}
|
package/dist/index.js
CHANGED
@@ -1,19 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const auth_1 = require("./auth");
|
6
|
-
const client_1 = require("./client");
|
7
|
-
const store_1 = require("./store");
|
1
|
+
import { Admin } from "./admin";
|
2
|
+
import { Auth } from "./auth";
|
3
|
+
import { Client } from "./client";
|
4
|
+
import { Store } from "./store";
|
8
5
|
class Medusa {
|
9
6
|
constructor(config) {
|
10
|
-
this.client = new
|
11
|
-
this.admin = new
|
12
|
-
this.store = new
|
13
|
-
this.auth = new
|
7
|
+
this.client = new Client(config);
|
8
|
+
this.admin = new Admin(this.client);
|
9
|
+
this.store = new Store(this.client);
|
10
|
+
this.auth = new Auth(this.client, config);
|
14
11
|
}
|
15
12
|
}
|
16
|
-
|
17
|
-
|
18
|
-
Object.defineProperty(exports, "FetchError", { enumerable: true, get: function () { return client_2.FetchError; } });
|
13
|
+
export default Medusa;
|
14
|
+
export { FetchError } from "./client";
|
19
15
|
//# 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":"
|
1
|
+
{"version":3,"file":"index.js","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;AAG/B,MAAM,MAAM;IAOV,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAA;QAEhC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3C,CAAC;CACF;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA"}
|
@@ -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,KAAK;IAChB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM;IAInB,MAAM;uBAED,UAAU,GAAG,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS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
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Store = void 0;
|
4
|
-
class Store {
|
1
|
+
export class Store {
|
5
2
|
constructor(client) {
|
6
3
|
this.region = {
|
7
4
|
list: async (query, headers) => {
|
@@ -230,5 +227,4 @@ class Store {
|
|
230
227
|
this.client = client;
|
231
228
|
}
|
232
229
|
}
|
233
|
-
exports.Store = Store;
|
234
230
|
//# sourceMappingURL=index.js.map
|
package/dist/store/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"
|
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,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,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/package.json
CHANGED
@@ -1,38 +1,33 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/js-sdk",
|
3
|
-
"version": "0.0.2-snapshot-
|
3
|
+
"version": "0.0.2-snapshot-20240925111619",
|
4
4
|
"description": "SDK for the Medusa API",
|
5
5
|
"main": "dist/index.js",
|
6
|
-
"exports": {
|
7
|
-
".": "./dist/index.js"
|
8
|
-
},
|
9
6
|
"repository": {
|
10
7
|
"type": "git",
|
11
8
|
"url": "https://github.com/medusajs/medusa",
|
12
9
|
"directory": "packages/core/js-sdk"
|
13
10
|
},
|
14
11
|
"engines": {
|
15
|
-
"node": ">=
|
12
|
+
"node": ">=18"
|
16
13
|
},
|
17
14
|
"publishConfig": {
|
18
15
|
"access": "public"
|
19
16
|
},
|
20
17
|
"files": [
|
21
|
-
"dist"
|
22
|
-
"!dist/**/__tests__",
|
23
|
-
"!dist/**/__mocks__",
|
24
|
-
"!dist/**/__fixtures__"
|
18
|
+
"dist"
|
25
19
|
],
|
26
20
|
"author": "Medusa",
|
27
21
|
"license": "MIT",
|
28
22
|
"devDependencies": {
|
23
|
+
"@medusajs/types": "1.12.0-snapshot-20240925111619",
|
24
|
+
"cross-env": "^5.2.1",
|
29
25
|
"jest": "^29.7.0",
|
30
26
|
"msw": "^2.3.0",
|
31
27
|
"rimraf": "^5.0.1",
|
32
|
-
"typescript": "^5.6
|
28
|
+
"typescript": "^5.1.6"
|
33
29
|
},
|
34
30
|
"dependencies": {
|
35
|
-
"@medusajs/types": "1.12.0-snapshot-20240925105124",
|
36
31
|
"fetch-event-stream": "^0.1.5",
|
37
32
|
"qs": "^6.12.1"
|
38
33
|
},
|