@medusajs/js-sdk 0.0.2-snapshot-20240607093839 → 0.0.2-snapshot-20240703074611
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin/fulfillment-set.d.ts +3 -3
- package/dist/admin/fulfillment-set.js +1 -1
- package/dist/admin/fulfillment-set.js.map +1 -1
- package/dist/admin/index.d.ts +12 -0
- package/dist/admin/index.js +12 -0
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/inventory-item.d.ts +16 -0
- package/dist/admin/inventory-item.js +68 -0
- package/dist/admin/inventory-item.js.map +1 -0
- package/dist/admin/price-list.d.ts +14 -0
- package/dist/admin/price-list.js +58 -0
- package/dist/admin/price-list.js.map +1 -0
- package/dist/admin/product-category.d.ts +13 -0
- package/dist/admin/product-category.js +48 -0
- package/dist/admin/product-category.js.map +1 -0
- package/dist/admin/product-type.d.ts +12 -0
- package/dist/admin/product-type.js +40 -0
- package/dist/admin/product-type.js.map +1 -0
- package/dist/admin/product.d.ts +19 -4
- package/dist/admin/product.js +118 -0
- package/dist/admin/product.js.map +1 -1
- package/dist/admin/store.d.ts +10 -0
- package/dist/admin/store.js +28 -0
- package/dist/admin/store.js.map +1 -0
- package/dist/store/index.d.ts +3 -7
- package/dist/store/index.js.map +1 -1
- package/package.json +3 -4
@@ -5,8 +5,8 @@ export declare class FulfillmentSet {
|
|
5
5
|
private client;
|
6
6
|
constructor(client: Client);
|
7
7
|
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentSetDeleteResponse>;
|
8
|
-
createServiceZone(id: string, body: HttpTypes.AdminCreateFulfillmentSetServiceZone, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.
|
9
|
-
|
10
|
-
updateServiceZone(fulfillmentSetId: string, serviceZoneId: string, body: HttpTypes.AdminUpdateFulfillmentSetServiceZone, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.
|
8
|
+
createServiceZone(id: string, body: HttpTypes.AdminCreateFulfillmentSetServiceZone, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentSetResponse>;
|
9
|
+
retrieveServiceZone(fulfillmentSetId: string, serviceZoneId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminServiceZoneResponse>;
|
10
|
+
updateServiceZone(fulfillmentSetId: string, serviceZoneId: string, body: HttpTypes.AdminUpdateFulfillmentSetServiceZone, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentSetResponse>;
|
11
11
|
deleteServiceZone(fulfillmentSetId: string, serviceZoneId: string, headers?: ClientHeaders): Promise<HttpTypes.AdminServiceZoneDeleteResponse>;
|
12
12
|
}
|
@@ -16,7 +16,7 @@ export class FulfillmentSet {
|
|
16
16
|
query,
|
17
17
|
});
|
18
18
|
}
|
19
|
-
async
|
19
|
+
async retrieveServiceZone(fulfillmentSetId, serviceZoneId, query, headers) {
|
20
20
|
return await this.client.fetch(`/admin/fulfillment-sets/${fulfillmentSetId}/service-zones/${serviceZoneId}`, {
|
21
21
|
method: "GET",
|
22
22
|
headers,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fulfillment-set.js","sourceRoot":"","sources":["../../src/admin/fulfillment-set.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,cAAc;IAEzB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,EAAE,EAAE,EAC/B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,EAAU,EACV,IAAoD,EACpD,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,EAAE,gBAAgB,EAC7C;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,
|
1
|
+
{"version":3,"file":"fulfillment-set.js","sourceRoot":"","sources":["../../src/admin/fulfillment-set.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,cAAc;IAEzB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,EAAE,EAAE,EAC/B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,EAAU,EACV,IAAoD,EACpD,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,EAAE,gBAAgB,EAC7C;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,gBAAwB,EACxB,aAAqB,EACrB,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,gBAAgB,kBAAkB,aAAa,EAAE,EAC5E;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,gBAAwB,EACxB,aAAqB,EACrB,IAAoD,EACpD,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,gBAAgB,kBAAkB,aAAa,EAAE,EAC5E;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,gBAAwB,EACxB,aAAqB,EACrB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,gBAAgB,kBAAkB,aAAa,EAAE,EAC5E;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF"}
|
package/dist/admin/index.d.ts
CHANGED
@@ -1,16 +1,22 @@
|
|
1
1
|
import { Client } from "../client";
|
2
2
|
import { Customer } from "./customer";
|
3
3
|
import { Fulfillment } from "./fulfillment";
|
4
|
+
import { FulfillmentProvider } from "./fulfillment-provider";
|
4
5
|
import { FulfillmentSet } from "./fulfillment-set";
|
6
|
+
import { InventoryItem } from "./inventory-item";
|
5
7
|
import { Invite } from "./invite";
|
6
8
|
import { Order } from "./order";
|
9
|
+
import { PriceList } from "./price-list";
|
7
10
|
import { Product } from "./product";
|
11
|
+
import { ProductCategory } from "./product-category";
|
8
12
|
import { ProductCollection } from "./product-collection";
|
13
|
+
import { ProductType } from "./product-type";
|
9
14
|
import { Region } from "./region";
|
10
15
|
import { SalesChannel } from "./sales-channel";
|
11
16
|
import { ShippingOption } from "./shipping-option";
|
12
17
|
import { ShippingProfile } from "./shipping-profile";
|
13
18
|
import { StockLocation } from "./stock-location";
|
19
|
+
import { Store } from "./store";
|
14
20
|
import { TaxRate } from "./tax-rate";
|
15
21
|
import { TaxRegion } from "./tax-region";
|
16
22
|
import { Upload } from "./upload";
|
@@ -18,17 +24,23 @@ export declare class Admin {
|
|
18
24
|
invite: Invite;
|
19
25
|
customer: Customer;
|
20
26
|
productCollection: ProductCollection;
|
27
|
+
productCategory: ProductCategory;
|
28
|
+
priceList: PriceList;
|
21
29
|
product: Product;
|
30
|
+
productType: ProductType;
|
22
31
|
upload: Upload;
|
23
32
|
region: Region;
|
24
33
|
stockLocation: StockLocation;
|
25
34
|
salesChannel: SalesChannel;
|
26
35
|
fulfillmentSet: FulfillmentSet;
|
27
36
|
fulfillment: Fulfillment;
|
37
|
+
fulfillmentProvider: FulfillmentProvider;
|
28
38
|
shippingOption: ShippingOption;
|
29
39
|
shippingProfile: ShippingProfile;
|
40
|
+
inventoryItem: InventoryItem;
|
30
41
|
order: Order;
|
31
42
|
taxRate: TaxRate;
|
32
43
|
taxRegion: TaxRegion;
|
44
|
+
store: Store;
|
33
45
|
constructor(client: Client);
|
34
46
|
}
|
package/dist/admin/index.js
CHANGED
@@ -1,15 +1,21 @@
|
|
1
1
|
import { Customer } from "./customer";
|
2
2
|
import { Fulfillment } from "./fulfillment";
|
3
|
+
import { FulfillmentProvider } from "./fulfillment-provider";
|
3
4
|
import { FulfillmentSet } from "./fulfillment-set";
|
5
|
+
import { InventoryItem } from "./inventory-item";
|
4
6
|
import { Invite } from "./invite";
|
5
7
|
import { Order } from "./order";
|
8
|
+
import { PriceList } from "./price-list";
|
6
9
|
import { Product } from "./product";
|
10
|
+
import { ProductCategory } from "./product-category";
|
7
11
|
import { ProductCollection } from "./product-collection";
|
12
|
+
import { ProductType } from "./product-type";
|
8
13
|
import { Region } from "./region";
|
9
14
|
import { SalesChannel } from "./sales-channel";
|
10
15
|
import { ShippingOption } from "./shipping-option";
|
11
16
|
import { ShippingProfile } from "./shipping-profile";
|
12
17
|
import { StockLocation } from "./stock-location";
|
18
|
+
import { Store } from "./store";
|
13
19
|
import { TaxRate } from "./tax-rate";
|
14
20
|
import { TaxRegion } from "./tax-region";
|
15
21
|
import { Upload } from "./upload";
|
@@ -18,18 +24,24 @@ export class Admin {
|
|
18
24
|
this.invite = new Invite(client);
|
19
25
|
this.customer = new Customer(client);
|
20
26
|
this.productCollection = new ProductCollection(client);
|
27
|
+
this.productCategory = new ProductCategory(client);
|
28
|
+
this.priceList = new PriceList(client);
|
21
29
|
this.product = new Product(client);
|
30
|
+
this.productType = new ProductType(client);
|
22
31
|
this.upload = new Upload(client);
|
23
32
|
this.region = new Region(client);
|
24
33
|
this.stockLocation = new StockLocation(client);
|
25
34
|
this.salesChannel = new SalesChannel(client);
|
26
35
|
this.fulfillmentSet = new FulfillmentSet(client);
|
27
36
|
this.fulfillment = new Fulfillment(client);
|
37
|
+
this.fulfillmentProvider = new FulfillmentProvider(client);
|
28
38
|
this.shippingOption = new ShippingOption(client);
|
29
39
|
this.shippingProfile = new ShippingProfile(client);
|
40
|
+
this.inventoryItem = new InventoryItem(client);
|
30
41
|
this.order = new Order(client);
|
31
42
|
this.taxRate = new TaxRate(client);
|
32
43
|
this.taxRegion = new TaxRegion(client);
|
44
|
+
this.store = new Store(client);
|
33
45
|
}
|
34
46
|
}
|
35
47
|
//# 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,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,cAA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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;IAChC,CAAC;CACF"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { HttpTypes, SelectParams } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class InventoryItem {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateInventoryItem, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemResponse>;
|
8
|
+
update(id: string, body: HttpTypes.AdminUpdateInventoryItem, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemResponse>;
|
9
|
+
list(query?: HttpTypes.AdminInventoryItemParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemListResponse>;
|
10
|
+
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemResponse>;
|
11
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemDeleteResponse>;
|
12
|
+
listLevels(id: string, query?: HttpTypes.AdminInventoryLevelFilters, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryLevelListResponse>;
|
13
|
+
updateLevel(id: string, locationId: string, body: HttpTypes.AdminUpdateInventoryLevel, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemResponse>;
|
14
|
+
deleteLevel(id: string, locationId: string, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemDeleteResponse>;
|
15
|
+
batchUpdateLevels(id: string, body: HttpTypes.AdminBatchUpdateInventoryLevelLocation, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminInventoryItemResponse>;
|
16
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
export class InventoryItem {
|
2
|
+
constructor(client) {
|
3
|
+
this.client = client;
|
4
|
+
}
|
5
|
+
async create(body, query, headers) {
|
6
|
+
return await this.client.fetch(`/admin/inventory-items`, {
|
7
|
+
method: "POST",
|
8
|
+
headers,
|
9
|
+
body,
|
10
|
+
query,
|
11
|
+
});
|
12
|
+
}
|
13
|
+
async update(id, body, query, headers) {
|
14
|
+
return await this.client.fetch(`/admin/inventory-items/${id}`, {
|
15
|
+
method: "POST",
|
16
|
+
headers,
|
17
|
+
body,
|
18
|
+
query,
|
19
|
+
});
|
20
|
+
}
|
21
|
+
async list(query, headers) {
|
22
|
+
return await this.client.fetch(`/admin/inventory-items`, {
|
23
|
+
query,
|
24
|
+
headers,
|
25
|
+
});
|
26
|
+
}
|
27
|
+
async retrieve(id, query, headers) {
|
28
|
+
return await this.client.fetch(`/admin/inventory-items/${id}`, {
|
29
|
+
query,
|
30
|
+
headers,
|
31
|
+
});
|
32
|
+
}
|
33
|
+
async delete(id, headers) {
|
34
|
+
return await this.client.fetch(`/admin/inventory-items/${id}`, {
|
35
|
+
method: "DELETE",
|
36
|
+
headers,
|
37
|
+
});
|
38
|
+
}
|
39
|
+
async listLevels(id, query, headers) {
|
40
|
+
return await this.client.fetch(`/admin/inventory-items/${id}/location-levels`, {
|
41
|
+
query,
|
42
|
+
headers,
|
43
|
+
});
|
44
|
+
}
|
45
|
+
async updateLevel(id, locationId, body, query, headers) {
|
46
|
+
return await this.client.fetch(`/admin/inventory-items/${id}/location-levels/${locationId}`, {
|
47
|
+
method: "POST",
|
48
|
+
headers,
|
49
|
+
body,
|
50
|
+
query,
|
51
|
+
});
|
52
|
+
}
|
53
|
+
async deleteLevel(id, locationId, headers) {
|
54
|
+
return await this.client.fetch(`/admin/inventory-items/${id}/location-levels/${locationId}`, {
|
55
|
+
method: "DELETE",
|
56
|
+
headers,
|
57
|
+
});
|
58
|
+
}
|
59
|
+
async batchUpdateLevels(id, body, query, headers) {
|
60
|
+
return await this.client.fetch(`/admin/inventory-items/${id}/location-levels/batch`, {
|
61
|
+
method: "POST",
|
62
|
+
headers,
|
63
|
+
body,
|
64
|
+
query,
|
65
|
+
});
|
66
|
+
}
|
67
|
+
}
|
68
|
+
//# sourceMappingURL=inventory-item.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inventory-item.js","sourceRoot":"","sources":["../../src/admin/inventory-item.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,aAAa;IAExB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAwC,EACxC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,wBAAwB,EACxB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAwC,EACxC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,EAAE,EAC9B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CACR,KAA0C,EAC1C,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,wBAAwB,EACxB;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;QACtE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,EAAE,EAC9B;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,EAAE,EAC9B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,UAAU,CACd,EAAU,EACV,KAA4C,EAC5C,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,kBAAkB,EAC9C;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CACf,EAAU,EACV,UAAkB,EAClB,IAAyC,EACzC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,oBAAoB,UAAU,EAAE,EAC5D;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,EAAU,EAAE,UAAkB,EAAE,OAAuB;QACvE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,oBAAoB,UAAU,EAAE,EAC5D;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,EAAU,EACV,IAAsD,EACtD,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,wBAAwB,EACpD;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class PriceList {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
retrieve(id: string, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
|
8
|
+
list(query?: HttpTypes.AdminPriceListListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListListResponse>;
|
9
|
+
create(body: HttpTypes.AdminCreatePriceList, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
|
10
|
+
update(id: string, body: HttpTypes.AdminUpdatePriceList, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
|
11
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListDeleteResponse>;
|
12
|
+
batchPrices(id: string, body: HttpTypes.AdminBatchPriceListPrice, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
|
13
|
+
linkProducts(id: string, body: HttpTypes.AdminLinkPriceListProducts, query?: HttpTypes.AdminPriceListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminPriceListResponse>;
|
14
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
export class PriceList {
|
2
|
+
constructor(client) {
|
3
|
+
this.client = client;
|
4
|
+
}
|
5
|
+
async retrieve(id, query, headers) {
|
6
|
+
return this.client.fetch(`/admin/price-lists/${id}`, {
|
7
|
+
method: "GET",
|
8
|
+
headers,
|
9
|
+
query,
|
10
|
+
});
|
11
|
+
}
|
12
|
+
async list(query, headers) {
|
13
|
+
return this.client.fetch(`/admin/price-lists`, {
|
14
|
+
method: "GET",
|
15
|
+
headers,
|
16
|
+
query,
|
17
|
+
});
|
18
|
+
}
|
19
|
+
async create(body, query, headers) {
|
20
|
+
return this.client.fetch(`/admin/price-lists`, {
|
21
|
+
method: "POST",
|
22
|
+
headers,
|
23
|
+
body,
|
24
|
+
query,
|
25
|
+
});
|
26
|
+
}
|
27
|
+
async update(id, body, query, headers) {
|
28
|
+
return this.client.fetch(`/admin/price-lists/${id}`, {
|
29
|
+
method: "POST",
|
30
|
+
headers,
|
31
|
+
body,
|
32
|
+
query,
|
33
|
+
});
|
34
|
+
}
|
35
|
+
async delete(id, headers) {
|
36
|
+
return this.client.fetch(`/admin/price-lists/${id}`, {
|
37
|
+
method: "DELETE",
|
38
|
+
headers,
|
39
|
+
});
|
40
|
+
}
|
41
|
+
async batchPrices(id, body, query, headers) {
|
42
|
+
return this.client.fetch(`/admin/price-lists/${id}/prices/batch`, {
|
43
|
+
method: "POST",
|
44
|
+
headers,
|
45
|
+
body,
|
46
|
+
query,
|
47
|
+
});
|
48
|
+
}
|
49
|
+
async linkProducts(id, body, query, headers) {
|
50
|
+
return this.client.fetch(`/admin/price-lists/${id}/products`, {
|
51
|
+
method: "POST",
|
52
|
+
headers,
|
53
|
+
body,
|
54
|
+
query,
|
55
|
+
});
|
56
|
+
}
|
57
|
+
}
|
58
|
+
//# sourceMappingURL=price-list.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"price-list.js","sourceRoot":"","sources":["../../src/admin/price-list.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,SAAS;IAGpB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAAsC,EACtC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CACR,KAA0C,EAC1C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EACpB;YACE,MAAM,EAAE,KAAK;YACb,OAAO;YACP,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAoC,EACpC,KAAsC,EACtC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EACpB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAoC,EACpC,KAAsC,EACtC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;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,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CACf,EAAU,EACV,IAAwC,EACxC,KAAsC,EACtC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,eAAe,EACvC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,EAAU,EACV,IAA0C,EAC1C,KAAsC,EACtC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,WAAW,EACnC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class ProductCategory {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateProductCategory, query?: HttpTypes.AdminProductCategoryParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryResponse>;
|
8
|
+
update(id: string, body: HttpTypes.AdminUpdateProductCategory, query?: HttpTypes.AdminProductCategoryParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryResponse>;
|
9
|
+
list(query?: HttpTypes.AdminProductCategoryListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryListResponse>;
|
10
|
+
retrieve(id: string, query?: HttpTypes.AdminProductCategoryParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryResponse>;
|
11
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryDeleteResponse>;
|
12
|
+
updateProducts(id: string, body: HttpTypes.AdminUpdateProductCategoryProducts, query?: HttpTypes.AdminProductCategoryParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductCategoryResponse>;
|
13
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
export class ProductCategory {
|
2
|
+
constructor(client) {
|
3
|
+
this.client = client;
|
4
|
+
}
|
5
|
+
async create(body, query, headers) {
|
6
|
+
return this.client.fetch(`/admin/product-categories`, {
|
7
|
+
method: "POST",
|
8
|
+
headers,
|
9
|
+
body,
|
10
|
+
query,
|
11
|
+
});
|
12
|
+
}
|
13
|
+
async update(id, body, query, headers) {
|
14
|
+
return this.client.fetch(`/admin/product-categories/${id}`, {
|
15
|
+
method: "POST",
|
16
|
+
headers,
|
17
|
+
body,
|
18
|
+
query,
|
19
|
+
});
|
20
|
+
}
|
21
|
+
async list(query, headers) {
|
22
|
+
return this.client.fetch(`/admin/product-categories`, {
|
23
|
+
headers,
|
24
|
+
query: query,
|
25
|
+
});
|
26
|
+
}
|
27
|
+
async retrieve(id, query, headers) {
|
28
|
+
return this.client.fetch(`/admin/product-categories/${id}`, {
|
29
|
+
query,
|
30
|
+
headers,
|
31
|
+
});
|
32
|
+
}
|
33
|
+
async delete(id, headers) {
|
34
|
+
return this.client.fetch(`/admin/product-categories/${id}`, {
|
35
|
+
method: "DELETE",
|
36
|
+
headers,
|
37
|
+
});
|
38
|
+
}
|
39
|
+
async updateProducts(id, body, query, headers) {
|
40
|
+
return this.client.fetch(`/admin/product-categories/${id}/products`, {
|
41
|
+
method: "POST",
|
42
|
+
headers,
|
43
|
+
body,
|
44
|
+
query,
|
45
|
+
});
|
46
|
+
}
|
47
|
+
}
|
48
|
+
//# sourceMappingURL=product-category.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-category.js","sourceRoot":"","sources":["../../src/admin/product-category.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,eAAe;IAE1B,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAA0C,EAC1C,KAA4C,EAC5C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,2BAA2B,EAC3B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAA0C,EAC1C,KAA4C,EAC5C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,6BAA6B,EAAE,EAAE,EACjC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CACR,KAAgD,EAChD,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,2BAA2B,EAC3B;YACE,OAAO;YACP,KAAK,EAAE,KAAK;SACb,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAA4C,EAC5C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,6BAA6B,EAAE,EAAE,EACjC;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,6BAA6B,EAAE,EAAE,EACjC;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,EAAU,EACV,IAAkD,EAClD,KAA4C,EAC5C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,6BAA6B,EAAE,WAAW,EAC1C;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;CACF"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class ProductType {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateProductType, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeResponse>;
|
8
|
+
update(id: string, body: HttpTypes.AdminUpdateProductType, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeResponse>;
|
9
|
+
list(query?: HttpTypes.AdminProductTypeListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeListResponse>;
|
10
|
+
retrieve(id: string, query?: HttpTypes.AdminProductTypeParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeResponse>;
|
11
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductTypeDeleteResponse>;
|
12
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
export class ProductType {
|
2
|
+
constructor(client) {
|
3
|
+
this.client = client;
|
4
|
+
}
|
5
|
+
async create(body, query, headers) {
|
6
|
+
return this.client.fetch(`/admin/product-types`, {
|
7
|
+
method: "POST",
|
8
|
+
headers,
|
9
|
+
body,
|
10
|
+
query,
|
11
|
+
});
|
12
|
+
}
|
13
|
+
async update(id, body, query, headers) {
|
14
|
+
return this.client.fetch(`/admin/product-types/${id}`, {
|
15
|
+
method: "POST",
|
16
|
+
headers,
|
17
|
+
body,
|
18
|
+
query,
|
19
|
+
});
|
20
|
+
}
|
21
|
+
async list(query, headers) {
|
22
|
+
return this.client.fetch(`/admin/product-types`, {
|
23
|
+
headers,
|
24
|
+
query: query,
|
25
|
+
});
|
26
|
+
}
|
27
|
+
async retrieve(id, query, headers) {
|
28
|
+
return this.client.fetch(`/admin/product-types/${id}`, {
|
29
|
+
query,
|
30
|
+
headers,
|
31
|
+
});
|
32
|
+
}
|
33
|
+
async delete(id, headers) {
|
34
|
+
return this.client.fetch(`/admin/product-types/${id}`, {
|
35
|
+
method: "DELETE",
|
36
|
+
headers,
|
37
|
+
});
|
38
|
+
}
|
39
|
+
}
|
40
|
+
//# sourceMappingURL=product-type.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-type.js","sourceRoot":"","sources":["../../src/admin/product-type.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,WAAW;IAEtB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAsC,EACtC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EACtB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAsC,EACtC,KAA8B,EAC9B,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,wBAAwB,EAAE,EAAE,EAC5B;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CACR,KAA4C,EAC5C,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EACtB;YACE,OAAO;YACP,KAAK,EAAE,KAAK;SACb,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,KAAwC,EACxC,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,wBAAwB,EAAE,EAAE,EAC5B;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,wBAAwB,EAAE,EAAE,EAC5B;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF"}
|
package/dist/admin/product.d.ts
CHANGED
@@ -1,10 +1,25 @@
|
|
1
|
-
import { HttpTypes, SelectParams } from "@medusajs/types";
|
1
|
+
import { AdminBatchProductVariantInventoryItemResponse, HttpTypes, SelectParams } from "@medusajs/types";
|
2
2
|
import { Client } from "../client";
|
3
3
|
import { ClientHeaders } from "../types";
|
4
4
|
export declare class Product {
|
5
5
|
private client;
|
6
6
|
constructor(client: Client);
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
batch(body: HttpTypes.AdminBatchProductRequest, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminBatchProductResponse>;
|
8
|
+
create(body: HttpTypes.AdminCreateProduct, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductResponse>;
|
9
|
+
update(id: string, body: HttpTypes.AdminUpdateProduct, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductResponse>;
|
10
|
+
list(queryParams?: HttpTypes.AdminProductListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductListResponse>;
|
11
|
+
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductResponse>;
|
12
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductDeleteResponse>;
|
13
|
+
batchVariants(productId: string, body: HttpTypes.AdminBatchProductVariantRequest, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminBatchProductVariantResponse>;
|
14
|
+
createVariant(productId: string, body: HttpTypes.AdminCreateProductVariant, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductResponse>;
|
15
|
+
updateVariant(productId: string, id: string, body: HttpTypes.AdminUpdateProductVariant, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductResponse>;
|
16
|
+
listVariants(productId: string, queryParams?: HttpTypes.AdminProductVariantParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductVariantListResponse>;
|
17
|
+
retrieveVariant(productId: string, id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductVariantResponse>;
|
18
|
+
deleteVariant(productId: string, id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductVariantDeleteResponse>;
|
19
|
+
batchVariantInventoryItems(productId: string, body: HttpTypes.AdminBatchProductVariantInventoryItemRequest, query?: SelectParams, headers?: ClientHeaders): Promise<AdminBatchProductVariantInventoryItemResponse>;
|
20
|
+
createOption(productId: string, body: HttpTypes.AdminCreateProductOption, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductResponse>;
|
21
|
+
updateOption(productId: string, id: string, body: HttpTypes.AdminUpdateProductOption, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductResponse>;
|
22
|
+
listOptions(productId: string, queryParams?: HttpTypes.AdminProductOptionParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionListResponse>;
|
23
|
+
retrieveOption(productId: string, id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionResponse>;
|
24
|
+
deleteOption(productId: string, id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminProductOptionDeleteResponse>;
|
10
25
|
}
|
package/dist/admin/product.js
CHANGED
@@ -2,6 +2,14 @@ export class Product {
|
|
2
2
|
constructor(client) {
|
3
3
|
this.client = client;
|
4
4
|
}
|
5
|
+
async batch(body, query, headers) {
|
6
|
+
return await this.client.fetch(`/admin/products/batch`, {
|
7
|
+
method: "POST",
|
8
|
+
headers,
|
9
|
+
body,
|
10
|
+
query,
|
11
|
+
});
|
12
|
+
}
|
5
13
|
async create(body, query, headers) {
|
6
14
|
return await this.client.fetch(`/admin/products`, {
|
7
15
|
method: "POST",
|
@@ -10,5 +18,115 @@ export class Product {
|
|
10
18
|
query,
|
11
19
|
});
|
12
20
|
}
|
21
|
+
async update(id, body, query, headers) {
|
22
|
+
return await this.client.fetch(`/admin/products/${id}`, {
|
23
|
+
method: "POST",
|
24
|
+
headers,
|
25
|
+
body,
|
26
|
+
query,
|
27
|
+
});
|
28
|
+
}
|
29
|
+
async list(queryParams, headers) {
|
30
|
+
return await this.client.fetch(`/admin/products`, {
|
31
|
+
headers,
|
32
|
+
query: queryParams,
|
33
|
+
});
|
34
|
+
}
|
35
|
+
async retrieve(id, query, headers) {
|
36
|
+
return await this.client.fetch(`/admin/products/${id}`, {
|
37
|
+
query,
|
38
|
+
headers,
|
39
|
+
});
|
40
|
+
}
|
41
|
+
async delete(id, headers) {
|
42
|
+
return await this.client.fetch(`/admin/products/${id}`, {
|
43
|
+
method: "DELETE",
|
44
|
+
headers,
|
45
|
+
});
|
46
|
+
}
|
47
|
+
async batchVariants(productId, body, query, headers) {
|
48
|
+
return await this.client.fetch(`/admin/products/${productId}/variants/batch`, {
|
49
|
+
method: "POST",
|
50
|
+
headers,
|
51
|
+
body,
|
52
|
+
query,
|
53
|
+
});
|
54
|
+
}
|
55
|
+
async createVariant(productId, body, query, headers) {
|
56
|
+
return await this.client.fetch(`/admin/products/${productId}/variants`, {
|
57
|
+
method: "POST",
|
58
|
+
headers,
|
59
|
+
body,
|
60
|
+
query,
|
61
|
+
});
|
62
|
+
}
|
63
|
+
async updateVariant(productId, id, body, query, headers) {
|
64
|
+
return await this.client.fetch(`/admin/products/${productId}/variants/${id}`, {
|
65
|
+
method: "POST",
|
66
|
+
headers,
|
67
|
+
body,
|
68
|
+
query,
|
69
|
+
});
|
70
|
+
}
|
71
|
+
async listVariants(productId, queryParams, headers) {
|
72
|
+
return await this.client.fetch(`/admin/products/${productId}/variants`, {
|
73
|
+
headers,
|
74
|
+
query: queryParams,
|
75
|
+
});
|
76
|
+
}
|
77
|
+
async retrieveVariant(productId, id, query, headers) {
|
78
|
+
return await this.client.fetch(`/admin/products/${productId}/variants/${id}`, {
|
79
|
+
query,
|
80
|
+
headers,
|
81
|
+
});
|
82
|
+
}
|
83
|
+
async deleteVariant(productId, id, headers) {
|
84
|
+
return await this.client.fetch(`/admin/products/${productId}/variants/${id}`, {
|
85
|
+
method: "DELETE",
|
86
|
+
headers,
|
87
|
+
});
|
88
|
+
}
|
89
|
+
async batchVariantInventoryItems(productId, body, query, headers) {
|
90
|
+
return await this.client.fetch(`/admin/products/${productId}/variants/inventory-items/batch`, {
|
91
|
+
method: "POST",
|
92
|
+
headers,
|
93
|
+
body,
|
94
|
+
query,
|
95
|
+
});
|
96
|
+
}
|
97
|
+
async createOption(productId, body, query, headers) {
|
98
|
+
return await this.client.fetch(`/admin/products/${productId}/options`, {
|
99
|
+
method: "POST",
|
100
|
+
headers,
|
101
|
+
body,
|
102
|
+
query,
|
103
|
+
});
|
104
|
+
}
|
105
|
+
async updateOption(productId, id, body, query, headers) {
|
106
|
+
return await this.client.fetch(`/admin/products/${productId}/variants/${id}`, {
|
107
|
+
method: "POST",
|
108
|
+
headers,
|
109
|
+
body,
|
110
|
+
query,
|
111
|
+
});
|
112
|
+
}
|
113
|
+
async listOptions(productId, queryParams, headers) {
|
114
|
+
return await this.client.fetch(`/admin/products/${productId}/options`, {
|
115
|
+
headers,
|
116
|
+
query: queryParams,
|
117
|
+
});
|
118
|
+
}
|
119
|
+
async retrieveOption(productId, id, query, headers) {
|
120
|
+
return await this.client.fetch(`/admin/products/${productId}/options/${id}`, {
|
121
|
+
query,
|
122
|
+
headers,
|
123
|
+
});
|
124
|
+
}
|
125
|
+
async deleteOption(productId, id, headers) {
|
126
|
+
return await this.client.fetch(`/admin/products/${productId}/options/${id}`, {
|
127
|
+
method: "DELETE",
|
128
|
+
headers,
|
129
|
+
});
|
130
|
+
}
|
13
131
|
}
|
14
132
|
//# sourceMappingURL=product.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../src/admin/product.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../src/admin/product.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,OAAO;IAElB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,KAAK,CACT,IAAwC,EACxC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EACvB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IACD,KAAK,CAAC,MAAM,CACV,IAAkC,EAClC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EACjB;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IACD,KAAK,CAAC,MAAM,CACV,EAAU,EACV,IAAkC,EAClC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAA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I,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,UAAU,EACtC;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,SAAiB,EACjB,EAAU,EACV,IAAwC,EACxC,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,aAAa,EAAE,EAAE,EAC7C;YACE,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI;YACJ,KAAK;SACN,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CACf,SAAiB,EACjB,WAAgD,EAChD,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,UAAU,EACtC;YACE,OAAO;YACP,KAAK,EAAE,WAAW;SACnB,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,SAAiB,EACjB,EAAU,EACV,KAAoB,EACpB,OAAuB;QAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,YAAY,EAAE,EAAE,EAC5C;YACE,KAAK;YACL,OAAO;SACR,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,SAAiB,EAAE,EAAU,EAAE,OAAuB;QACvE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,mBAAmB,SAAS,YAAY,EAAE,EAAE,EAC5C;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CACF,CAAA;IACH,CAAC;CACF"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpTypes, SelectParams } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class Store {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
retrieve(id: string, query?: HttpTypes.AdminStoreParams, headers?: ClientHeaders): Promise<HttpTypes.AdminStoreResponse>;
|
8
|
+
list(query?: HttpTypes.AdminStoreListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminStoreListResponse>;
|
9
|
+
update(id: string, body: HttpTypes.AdminUpdateStore, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminStoreResponse>;
|
10
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
export class Store {
|
2
|
+
constructor(client) {
|
3
|
+
this.client = client;
|
4
|
+
}
|
5
|
+
async retrieve(id, query, headers) {
|
6
|
+
return await this.client.fetch(`/admin/stores/${id}`, {
|
7
|
+
method: "GET",
|
8
|
+
headers,
|
9
|
+
query,
|
10
|
+
});
|
11
|
+
}
|
12
|
+
async list(query, headers) {
|
13
|
+
return await this.client.fetch(`/admin/stores`, {
|
14
|
+
method: "GET",
|
15
|
+
headers,
|
16
|
+
query,
|
17
|
+
});
|
18
|
+
}
|
19
|
+
async update(id, body, query, headers) {
|
20
|
+
return await this.client.fetch(`/admin/stores/${id}`, {
|
21
|
+
method: "POST",
|
22
|
+
headers,
|
23
|
+
body,
|
24
|
+
query,
|
25
|
+
});
|
26
|
+
}
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=store.js.map
|
@@ -0,0 +1 @@
|
|
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/store/index.d.ts
CHANGED
@@ -21,7 +21,7 @@ export declare class Store {
|
|
21
21
|
}>;
|
22
22
|
};
|
23
23
|
category: {
|
24
|
-
list: (query?:
|
24
|
+
list: (query?: HttpTypes.StoreProductCategoryParams, headers?: ClientHeaders) => Promise<HttpTypes.PaginatedResponse<{
|
25
25
|
product_categories: HttpTypes.StoreProductCategory[];
|
26
26
|
}>>;
|
27
27
|
retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<{
|
@@ -29,12 +29,8 @@ export declare class Store {
|
|
29
29
|
}>;
|
30
30
|
};
|
31
31
|
product: {
|
32
|
-
list: (query?:
|
33
|
-
|
34
|
-
}>>;
|
35
|
-
retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<{
|
36
|
-
product: HttpTypes.StoreProduct;
|
37
|
-
}>;
|
32
|
+
list: (query?: HttpTypes.StoreProductParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreProductListResponse>;
|
33
|
+
retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreProductResponse>;
|
38
34
|
};
|
39
35
|
cart: {
|
40
36
|
create: (body: HttpTypes.StoreCreateCart, query?: SelectParams, headers?: ClientHeaders) => Promise<{
|
package/dist/store/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAUA,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,sBAAsB,EAAE,EAAE,EAC1B;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;SACF,CAAA;QAEM,aAAQ,GAAG;YAChB,IAAI,EAAE,KAAK,EACT,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAUA,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,EA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H,CAAC;YACD,WAAW,EAAE,KAAK,EAChB,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;YACD,eAAe,EAAE,KAAK,EACpB,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;YACD,aAAa,EAAE,KAAK,EAAE,SAAiB,EAAE,OAAuB,EAAE,EAAE;gBAClE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,iCAAiC,SAAS,EAAE,EAAE;oBAC9C,MAAM,EAAE,QAAQ;oBAChB,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC;SACF,CAAA;QA/aC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CA+aF"}
|
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-20240703074611",
|
4
4
|
"description": "SDK for the Medusa API",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"repository": {
|
@@ -20,12 +20,11 @@
|
|
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-20240703074611",
|
24
24
|
"cross-env": "^5.2.1",
|
25
|
-
"jest": "^29.
|
25
|
+
"jest": "^29.7.0",
|
26
26
|
"msw": "^2.3.0",
|
27
27
|
"rimraf": "^5.0.1",
|
28
|
-
"ts-jest": "^29.1.1",
|
29
28
|
"typescript": "^5.1.6"
|
30
29
|
},
|
31
30
|
"dependencies": {
|