@medusajs/js-sdk 0.0.2-snapshot-20240808104955 → 0.0.2-snapshot-20240815071705
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin/index.d.ts +5 -1
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +5 -1
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/product-variant.d.ts +9 -0
- package/dist/admin/product-variant.d.ts.map +1 -0
- package/dist/admin/product-variant.js +12 -0
- package/dist/admin/product-variant.js.map +1 -0
- package/dist/admin/refund-reasons.d.ts +9 -0
- package/dist/admin/refund-reasons.d.ts.map +1 -0
- package/dist/admin/refund-reasons.js +12 -0
- package/dist/admin/refund-reasons.js.map +1 -0
- package/dist/admin/return-reason.d.ts +5 -1
- package/dist/admin/return-reason.d.ts.map +1 -1
- package/dist/admin/return-reason.js +31 -2
- package/dist/admin/return-reason.js.map +1 -1
- package/package.json +2 -2
package/dist/admin/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Client } from "../client";
|
2
|
+
import { Claim } from "./claim";
|
2
3
|
import { Currency } from "./currency";
|
3
4
|
import { Customer } from "./customer";
|
4
5
|
import { Fulfillment } from "./fulfillment";
|
@@ -16,6 +17,8 @@ import { ProductCategory } from "./product-category";
|
|
16
17
|
import { ProductCollection } from "./product-collection";
|
17
18
|
import { ProductTag } from "./product-tag";
|
18
19
|
import { ProductType } from "./product-type";
|
20
|
+
import { ProductVariant } from "./product-variant";
|
21
|
+
import { RefundReason } from "./refund-reasons";
|
19
22
|
import { Region } from "./region";
|
20
23
|
import { Return } from "./return";
|
21
24
|
import { ReturnReason } from "./return-reason";
|
@@ -28,7 +31,6 @@ import { TaxRate } from "./tax-rate";
|
|
28
31
|
import { TaxRegion } from "./tax-region";
|
29
32
|
import { Upload } from "./upload";
|
30
33
|
import { User } from "./user";
|
31
|
-
import { Claim } from "./claim";
|
32
34
|
export declare class Admin {
|
33
35
|
invite: Invite;
|
34
36
|
customer: Customer;
|
@@ -60,6 +62,8 @@ export declare class Admin {
|
|
60
62
|
user: User;
|
61
63
|
currency: Currency;
|
62
64
|
payment: Payment;
|
65
|
+
productVariant: ProductVariant;
|
66
|
+
refundReason: RefundReason;
|
63
67
|
constructor(client: Client);
|
64
68
|
}
|
65
69
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OA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;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,WAAW,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,YAAY,CAAA;IAC1B,aAAa,EAAE,aAAa,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;IAC1B,cAAc,EAAE,cAAc,CAAA;IAC9B,WAAW,EAAE,WAAW,CAAA;IACxB,mBAAmB,EAAE,mBAAmB,CAAA;IACxC,cAAc,EAAE,cAAc,CAAA;IAC9B,eAAe,EAAE,eAAe,CAAA;IAChC,aAAa,EAAE,aAAa,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;IAC1B,KAAK,EAAE,KAAK,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,KAAK,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,cAAc,EAAE,cAAc,CAAA;IAC9B,YAAY,EAAE,YAAY,CAAA;gBAErB,MAAM,EAAE,MAAM;CAkC3B"}
|
package/dist/admin/index.js
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Claim } from "./claim";
|
1
2
|
import { Currency } from "./currency";
|
2
3
|
import { Customer } from "./customer";
|
3
4
|
import { Fulfillment } from "./fulfillment";
|
@@ -15,6 +16,8 @@ import { ProductCategory } from "./product-category";
|
|
15
16
|
import { ProductCollection } from "./product-collection";
|
16
17
|
import { ProductTag } from "./product-tag";
|
17
18
|
import { ProductType } from "./product-type";
|
19
|
+
import { ProductVariant } from "./product-variant";
|
20
|
+
import { RefundReason } from "./refund-reasons";
|
18
21
|
import { Region } from "./region";
|
19
22
|
import { Return } from "./return";
|
20
23
|
import { ReturnReason } from "./return-reason";
|
@@ -27,7 +30,6 @@ import { TaxRate } from "./tax-rate";
|
|
27
30
|
import { TaxRegion } from "./tax-region";
|
28
31
|
import { Upload } from "./upload";
|
29
32
|
import { User } from "./user";
|
30
|
-
import { Claim } from "./claim";
|
31
33
|
export class Admin {
|
32
34
|
constructor(client) {
|
33
35
|
this.invite = new Invite(client);
|
@@ -60,6 +62,8 @@ export class Admin {
|
|
60
62
|
this.user = new User(client);
|
61
63
|
this.currency = new Currency(client);
|
62
64
|
this.payment = new Payment(client);
|
65
|
+
this.productVariant = new ProductVariant(client);
|
66
|
+
this.refundReason = new RefundReason(client);
|
63
67
|
}
|
64
68
|
}
|
65
69
|
//# sourceMappingURL=index.js.map
|
package/dist/admin/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/admin/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,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M,CAAC,CAAA;QAClD,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAA;QAC9C,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;QAC5C,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAA;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAA;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,CAAA;QACtC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAA;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,CAAA;QAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAA;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAA;QAChD,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;IAC9C,CAAC;CACF"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class ProductVariant {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
list(queryParams?: HttpTypes.AdminProductVariantParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductVariantListResponse>;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=product-variant.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-variant.d.ts","sourceRoot":"","sources":["../../src/admin/product-variant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,IAAI,CACR,WAAW,CAAC,EAAE,SAAS,CAAC,yBAAyB,EACjD,OAAO,CAAC,EAAE,aAAa;CAU1B"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export class ProductVariant {
|
2
|
+
constructor(client) {
|
3
|
+
this.client = client;
|
4
|
+
}
|
5
|
+
async list(queryParams, headers) {
|
6
|
+
return await this.client.fetch(`/admin/product-variants`, {
|
7
|
+
headers,
|
8
|
+
query: queryParams,
|
9
|
+
});
|
10
|
+
}
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=product-variant.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-variant.js","sourceRoot":"","sources":["../../src/admin/product-variant.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,cAAc;IAEzB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,WAAiD,EACjD,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EACzB;YACE,OAAO;YACP,KAAK,EAAE,WAAW;SACnB,CACF,CAAA;IACH,CAAC;CACF"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class RefundReason {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
list(query?: HttpTypes.RefundReasonFilters, headers?: ClientHeaders): Promise<HttpTypes.RefundReasonsResponse>;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=refund-reasons.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"refund-reasons.d.ts","sourceRoot":"","sources":["../../src/admin/refund-reasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,mBAAmB,EAAE,OAAO,CAAC,EAAE,aAAa;CAS1E"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"refund-reasons.js","sourceRoot":"","sources":["../../src/admin/refund-reasons.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,YAAY;IAEvB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,KAAqC,EAAE,OAAuB;QACvE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EACvB;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF"}
|
@@ -4,6 +4,10 @@ import { ClientHeaders } from "../types";
|
|
4
4
|
export declare class ReturnReason {
|
5
5
|
private client;
|
6
6
|
constructor(client: Client);
|
7
|
-
list(
|
7
|
+
list(query?: HttpTypes.AdminReturnReasonListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnReasonListResponse>;
|
8
|
+
retrieve(id: string, query?: HttpTypes.AdminReturnReasonParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnReasonResponse>;
|
9
|
+
create(body: HttpTypes.AdminCreateReturnReason, query?: HttpTypes.AdminReturnReasonParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnReasonResponse>;
|
10
|
+
update(id: string, body: HttpTypes.AdminUpdateReturnReason, query?: HttpTypes.AdminReturnReasonParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnReasonResponse>;
|
11
|
+
delete(id: string, query?: HttpTypes.AdminReturnReasonParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnReasonDeleteResponse>;
|
8
12
|
}
|
9
13
|
//# sourceMappingURL=return-reason.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"return-reason.d.ts","sourceRoot":"","sources":["../../src/admin/return-reason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,IAAI,CACR,
|
1
|
+
{"version":3,"file":"return-reason.d.ts","sourceRoot":"","sources":["../../src/admin/return-reason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,2BAA2B,EAC7C,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;IAWnB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,uBAAuB,EACvC,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,uBAAuB,EACvC,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,uBAAuB,EACzC,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
@@ -2,10 +2,39 @@ export class ReturnReason {
|
|
2
2
|
constructor(client) {
|
3
3
|
this.client = client;
|
4
4
|
}
|
5
|
-
async list(
|
5
|
+
async list(query, headers) {
|
6
6
|
return await this.client.fetch("/admin/return-reasons", {
|
7
7
|
headers,
|
8
|
-
query
|
8
|
+
query,
|
9
|
+
});
|
10
|
+
}
|
11
|
+
async retrieve(id, query, headers) {
|
12
|
+
return await this.client.fetch(`/admin/return-reasons/${id}`, {
|
13
|
+
query,
|
14
|
+
headers,
|
15
|
+
});
|
16
|
+
}
|
17
|
+
async create(body, query, headers) {
|
18
|
+
return this.client.fetch(`/admin/return-reasons`, {
|
19
|
+
method: "POST",
|
20
|
+
headers,
|
21
|
+
body,
|
22
|
+
query,
|
23
|
+
});
|
24
|
+
}
|
25
|
+
async update(id, body, query, headers) {
|
26
|
+
return this.client.fetch(`/admin/return-reasons/${id}`, {
|
27
|
+
method: "POST",
|
28
|
+
headers,
|
29
|
+
body,
|
30
|
+
query,
|
31
|
+
});
|
32
|
+
}
|
33
|
+
async delete(id, query, headers) {
|
34
|
+
return await this.client.fetch(`/admin/return-reasons/${id}`, {
|
35
|
+
method: "DELETE",
|
36
|
+
headers,
|
37
|
+
query,
|
9
38
|
});
|
10
39
|
}
|
11
40
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"return-reason.js","sourceRoot":"","sources":["../../src/admin/return-reason.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,YAAY;IAEvB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,
|
1
|
+
{"version":3,"file":"return-reason.js","sourceRoot":"","sources":["../../src/admin/return-reason.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,YAAY;IAEvB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,KAA6C,EAC7C,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EACvB;YACE,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAAyC,EACzC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,EAAE,EAC7B;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAuC,EACvC,KAAyC,EACzC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,uBAAuB,EACvB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAuC,EACvC,KAAyC,EACzC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,yBAAyB,EAAE,EAAE,EAC7B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,KAAyC,EACzC,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,EAAE,EAC7B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/js-sdk",
|
3
|
-
"version": "0.0.2-snapshot-
|
3
|
+
"version": "0.0.2-snapshot-20240815071705",
|
4
4
|
"description": "SDK for the Medusa API",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"repository": {
|
@@ -20,7 +20,7 @@
|
|
20
20
|
"author": "Medusa",
|
21
21
|
"license": "MIT",
|
22
22
|
"devDependencies": {
|
23
|
-
"@medusajs/types": "1.12.0-snapshot-
|
23
|
+
"@medusajs/types": "1.12.0-snapshot-20240815071705",
|
24
24
|
"cross-env": "^5.2.1",
|
25
25
|
"jest": "^29.7.0",
|
26
26
|
"msw": "^2.3.0",
|