@medusajs/js-sdk 0.0.2-snapshot-20240925105124 → 0.0.2-snapshot-20240926160837
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/admin/api-key.d.ts +15 -0
- package/dist/esm/admin/api-key.d.ts.map +1 -0
- package/dist/esm/admin/api-key.js +75 -0
- package/dist/esm/admin/api-key.js.map +1 -0
- package/dist/esm/admin/campaign.d.ts +14 -0
- package/dist/esm/admin/campaign.d.ts.map +1 -0
- package/dist/esm/admin/campaign.js +66 -0
- package/dist/esm/admin/campaign.js.map +1 -0
- package/dist/esm/admin/claim.d.ts +30 -0
- package/dist/esm/admin/claim.d.ts.map +1 -0
- package/dist/esm/admin/claim.js +223 -0
- package/dist/esm/admin/claim.js.map +1 -0
- package/dist/esm/admin/currency.d.ts +10 -0
- package/dist/esm/admin/currency.d.ts.map +1 -0
- package/dist/esm/admin/currency.js +31 -0
- package/dist/esm/admin/currency.js.map +1 -0
- package/dist/esm/admin/customer-group.d.ts +14 -0
- package/dist/esm/admin/customer-group.d.ts.map +1 -0
- package/dist/esm/admin/customer-group.js +70 -0
- package/dist/esm/admin/customer-group.js.map +1 -0
- package/dist/esm/admin/customer.d.ts +21 -0
- package/dist/esm/admin/customer.d.ts.map +1 -0
- package/dist/esm/admin/customer.js +59 -0
- package/dist/esm/admin/customer.js.map +1 -0
- package/dist/esm/admin/exchange.d.ts +30 -0
- package/dist/esm/admin/exchange.d.ts.map +1 -0
- package/dist/esm/admin/exchange.js +223 -0
- package/dist/esm/admin/exchange.js.map +1 -0
- package/dist/esm/admin/fulfillment-provider.d.ts +9 -0
- package/dist/esm/admin/fulfillment-provider.d.ts.map +1 -0
- package/dist/esm/admin/fulfillment-provider.js +24 -0
- package/dist/esm/admin/fulfillment-provider.js.map +1 -0
- package/dist/esm/admin/fulfillment-set.d.ts +13 -0
- package/dist/esm/admin/fulfillment-set.d.ts.map +1 -0
- package/dist/esm/admin/fulfillment-set.js +60 -0
- package/dist/esm/admin/fulfillment-set.js.map +1 -0
- package/dist/esm/admin/fulfillment.d.ts +11 -0
- package/dist/esm/admin/fulfillment.d.ts.map +1 -0
- package/dist/esm/admin/fulfillment.js +44 -0
- package/dist/esm/admin/fulfillment.js.map +1 -0
- package/dist/esm/admin/index.d.ts +87 -0
- package/dist/esm/admin/index.d.ts.map +1 -0
- package/dist/esm/admin/index.js +87 -0
- package/dist/esm/admin/index.js.map +1 -0
- package/dist/esm/admin/inventory-item.d.ts +17 -0
- package/dist/esm/admin/inventory-item.d.ts.map +1 -0
- package/dist/esm/admin/inventory-item.js +95 -0
- package/dist/esm/admin/inventory-item.js.map +1 -0
- package/dist/esm/admin/invite.d.ts +26 -0
- package/dist/esm/admin/invite.d.ts.map +1 -0
- package/dist/esm/admin/invite.js +79 -0
- package/dist/esm/admin/invite.js.map +1 -0
- package/dist/esm/admin/notification.d.ts +10 -0
- package/dist/esm/admin/notification.d.ts.map +1 -0
- package/dist/esm/admin/notification.js +33 -0
- package/dist/esm/admin/notification.js.map +1 -0
- package/dist/esm/admin/order-edit.d.ts +16 -0
- package/dist/esm/admin/order-edit.d.ts.map +1 -0
- package/dist/esm/admin/order-edit.js +91 -0
- package/dist/esm/admin/order-edit.js.map +1 -0
- package/dist/esm/admin/order.d.ts +32 -0
- package/dist/esm/admin/order.d.ts.map +1 -0
- package/dist/esm/admin/order.js +94 -0
- package/dist/esm/admin/order.js.map +1 -0
- package/dist/esm/admin/payment-collection.d.ts +13 -0
- package/dist/esm/admin/payment-collection.d.ts.map +1 -0
- package/dist/esm/admin/payment-collection.js +59 -0
- package/dist/esm/admin/payment-collection.js.map +1 -0
- package/dist/esm/admin/payment.d.ts +13 -0
- package/dist/esm/admin/payment.d.ts.map +1 -0
- package/dist/esm/admin/payment.js +59 -0
- package/dist/esm/admin/payment.js.map +1 -0
- package/dist/esm/admin/price-list.d.ts +15 -0
- package/dist/esm/admin/price-list.d.ts.map +1 -0
- package/dist/esm/admin/price-list.js +81 -0
- package/dist/esm/admin/price-list.js.map +1 -0
- package/dist/esm/admin/price-preference.d.ts +13 -0
- package/dist/esm/admin/price-preference.d.ts.map +1 -0
- package/dist/esm/admin/price-preference.js +61 -0
- package/dist/esm/admin/price-preference.js.map +1 -0
- package/dist/esm/admin/product-category.d.ts +14 -0
- package/dist/esm/admin/product-category.d.ts.map +1 -0
- package/dist/esm/admin/product-category.js +69 -0
- package/dist/esm/admin/product-category.js.map +1 -0
- package/dist/esm/admin/product-collection.d.ts +14 -0
- package/dist/esm/admin/product-collection.d.ts.map +1 -0
- package/dist/esm/admin/product-collection.js +68 -0
- package/dist/esm/admin/product-collection.js.map +1 -0
- package/dist/esm/admin/product-tag.d.ts +13 -0
- package/dist/esm/admin/product-tag.d.ts.map +1 -0
- package/dist/esm/admin/product-tag.js +59 -0
- package/dist/esm/admin/product-tag.js.map +1 -0
- package/dist/esm/admin/product-type.d.ts +13 -0
- package/dist/esm/admin/product-type.d.ts.map +1 -0
- package/dist/esm/admin/product-type.js +59 -0
- package/dist/esm/admin/product-type.js.map +1 -0
- package/dist/esm/admin/product-variant.d.ts +9 -0
- package/dist/esm/admin/product-variant.d.ts.map +1 -0
- package/dist/esm/admin/product-variant.js +23 -0
- package/dist/esm/admin/product-variant.js.map +1 -0
- package/dist/esm/admin/product.d.ts +29 -0
- package/dist/esm/admin/product.d.ts.map +1 -0
- package/dist/esm/admin/product.js +211 -0
- package/dist/esm/admin/product.js.map +1 -0
- package/dist/esm/admin/promotion.d.ts +19 -0
- package/dist/esm/admin/promotion.d.ts.map +1 -0
- package/dist/esm/admin/promotion.js +110 -0
- package/dist/esm/admin/promotion.js.map +1 -0
- package/dist/esm/admin/refund-reasons.d.ts +9 -0
- package/dist/esm/admin/refund-reasons.d.ts.map +1 -0
- package/dist/esm/admin/refund-reasons.js +23 -0
- package/dist/esm/admin/refund-reasons.js.map +1 -0
- package/dist/esm/admin/region.d.ts +21 -0
- package/dist/esm/admin/region.d.ts.map +1 -0
- package/dist/esm/admin/region.js +59 -0
- package/dist/esm/admin/region.js.map +1 -0
- package/dist/esm/admin/reservation.d.ts +14 -0
- package/dist/esm/admin/reservation.d.ts.map +1 -0
- package/dist/esm/admin/reservation.js +62 -0
- package/dist/esm/admin/reservation.js.map +1 -0
- package/dist/esm/admin/return-reason.d.ts +13 -0
- package/dist/esm/admin/return-reason.d.ts.map +1 -0
- package/dist/esm/admin/return-reason.js +60 -0
- package/dist/esm/admin/return-reason.js.map +1 -0
- package/dist/esm/admin/return.d.ts +30 -0
- package/dist/esm/admin/return.d.ts.map +1 -0
- package/dist/esm/admin/return.js +224 -0
- package/dist/esm/admin/return.js.map +1 -0
- package/dist/esm/admin/sales-channel.d.ts +15 -0
- package/dist/esm/admin/sales-channel.d.ts.map +1 -0
- package/dist/esm/admin/sales-channel.js +79 -0
- package/dist/esm/admin/sales-channel.js.map +1 -0
- package/dist/esm/admin/shipping-option.d.ts +13 -0
- package/dist/esm/admin/shipping-option.d.ts.map +1 -0
- package/dist/esm/admin/shipping-option.js +61 -0
- package/dist/esm/admin/shipping-option.js.map +1 -0
- package/dist/esm/admin/shipping-profile.d.ts +13 -0
- package/dist/esm/admin/shipping-profile.d.ts.map +1 -0
- package/dist/esm/admin/shipping-profile.js +61 -0
- package/dist/esm/admin/shipping-profile.js.map +1 -0
- package/dist/esm/admin/stock-location.d.ts +16 -0
- package/dist/esm/admin/stock-location.d.ts.map +1 -0
- package/dist/esm/admin/stock-location.js +88 -0
- package/dist/esm/admin/stock-location.js.map +1 -0
- package/dist/esm/admin/store.d.ts +11 -0
- package/dist/esm/admin/store.d.ts.map +1 -0
- package/dist/esm/admin/store.js +43 -0
- package/dist/esm/admin/store.js.map +1 -0
- package/dist/esm/admin/tax-rate.d.ts +13 -0
- package/dist/esm/admin/tax-rate.d.ts.map +1 -0
- package/dist/esm/admin/tax-rate.js +62 -0
- package/dist/esm/admin/tax-rate.js.map +1 -0
- package/dist/esm/admin/tax-region.d.ts +12 -0
- package/dist/esm/admin/tax-region.d.ts.map +1 -0
- package/dist/esm/admin/tax-region.js +53 -0
- package/dist/esm/admin/tax-region.js.map +1 -0
- package/dist/esm/admin/upload.d.ts +15 -0
- package/dist/esm/admin/upload.d.ts.map +1 -0
- package/dist/esm/admin/upload.js +59 -0
- package/dist/esm/admin/upload.js.map +1 -0
- package/dist/esm/admin/user.d.ts +14 -0
- package/dist/esm/admin/user.d.ts.map +1 -0
- package/dist/esm/admin/user.js +67 -0
- package/dist/esm/admin/user.js.map +1 -0
- package/dist/esm/admin/workflow-execution.d.ts +10 -0
- package/dist/esm/admin/workflow-execution.d.ts.map +1 -0
- package/dist/esm/admin/workflow-execution.js +30 -0
- package/dist/esm/admin/workflow-execution.js.map +1 -0
- package/dist/esm/auth/index.d.ts +17 -0
- package/dist/esm/auth/index.d.ts.map +1 -0
- package/dist/esm/auth/index.js +78 -0
- package/dist/esm/auth/index.js.map +1 -0
- package/dist/esm/client.d.ts +59 -0
- package/dist/esm/client.d.ts.map +1 -0
- package/dist/esm/client.js +229 -0
- package/dist/esm/client.js.map +1 -0
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/store/index.d.ts +116 -0
- package/dist/esm/store/index.d.ts.map +1 -0
- package/dist/esm/store/index.js +240 -0
- package/dist/esm/store/index.js.map +1 -0
- package/dist/esm/types.d.ts +47 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +7 -4
@@ -0,0 +1,59 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
export class Region {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
create(body, query, headers) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return yield this.client.fetch(`/admin/regions`, {
|
17
|
+
method: "POST",
|
18
|
+
headers,
|
19
|
+
body,
|
20
|
+
query,
|
21
|
+
});
|
22
|
+
});
|
23
|
+
}
|
24
|
+
update(id, body, query, headers) {
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
26
|
+
return yield this.client.fetch(`/admin/regions/${id}`, {
|
27
|
+
method: "POST",
|
28
|
+
headers,
|
29
|
+
body,
|
30
|
+
query,
|
31
|
+
});
|
32
|
+
});
|
33
|
+
}
|
34
|
+
list(queryParams, headers) {
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
36
|
+
return yield this.client.fetch(`/admin/regions`, {
|
37
|
+
query: queryParams,
|
38
|
+
headers,
|
39
|
+
});
|
40
|
+
});
|
41
|
+
}
|
42
|
+
retrieve(id, query, headers) {
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
44
|
+
return yield this.client.fetch(`/admin/regions/${id}`, {
|
45
|
+
query,
|
46
|
+
headers,
|
47
|
+
});
|
48
|
+
});
|
49
|
+
}
|
50
|
+
delete(id, headers) {
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
52
|
+
return yield this.client.fetch(`/admin/regions/${id}`, {
|
53
|
+
method: "DELETE",
|
54
|
+
headers,
|
55
|
+
});
|
56
|
+
});
|
57
|
+
}
|
58
|
+
}
|
59
|
+
//# sourceMappingURL=region.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"region.js","sourceRoot":"","sources":["../../../src/admin/region.ts"],"names":[],"mappings":";;;;;;;;;AASA,MAAM,OAAO,MAAM;IAEjB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAiC,EACjC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,gBAAgB,EAChB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAiC,EACjC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,EAAE,EACtB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,WAAuD,EACvD,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,gBAAgB,EAAE;gBAClB,KAAK,EAAE,WAAW;gBAClB,OAAO;aACR,CAAC,CAAA;QACJ,CAAC;KAAA;IAEK,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;;YACtE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,EAAE,EACtB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,EAAE,EACtB;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
declare class Reservation {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
retrieve(id: string, query?: HttpTypes.AdminReservationParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReservationResponse>;
|
8
|
+
list(query?: HttpTypes.AdminGetReservationsParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReservationListResponse>;
|
9
|
+
create(body: HttpTypes.AdminCreateReservation, query?: HttpTypes.AdminGetReservationsParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReservationResponse>;
|
10
|
+
update(id: string, body: HttpTypes.AdminUpdateReservation, query?: HttpTypes.AdminGetReservationsParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReservationResponse>;
|
11
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminReservationDeleteResponse>;
|
12
|
+
}
|
13
|
+
export default Reservation;
|
14
|
+
//# sourceMappingURL=reservation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reservation.d.ts","sourceRoot":"","sources":["../../../src/admin/reservation.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,cAAM,WAAW;IACf,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,sBAAsB,EACxC,OAAO,CAAC,EAAE,aAAa;IAYnB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAYnB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,sBAAsB,EACtC,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,sBAAsB,EACtC,KAAK,CAAC,EAAE,SAAS,CAAC,0BAA0B,EAC5C,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CASjD;AAED,eAAe,WAAW,CAAA"}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
class Reservation {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
retrieve(id, query, headers) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return yield this.client.fetch(`/admin/reservations/${id}`, {
|
17
|
+
method: "GET",
|
18
|
+
headers,
|
19
|
+
query,
|
20
|
+
});
|
21
|
+
});
|
22
|
+
}
|
23
|
+
list(query, headers) {
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
25
|
+
return yield this.client.fetch("/admin/reservations", {
|
26
|
+
method: "GET",
|
27
|
+
query,
|
28
|
+
headers,
|
29
|
+
});
|
30
|
+
});
|
31
|
+
}
|
32
|
+
create(body, query, headers) {
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
34
|
+
return yield this.client.fetch("/admin/reservations", {
|
35
|
+
method: "POST",
|
36
|
+
body,
|
37
|
+
query,
|
38
|
+
headers,
|
39
|
+
});
|
40
|
+
});
|
41
|
+
}
|
42
|
+
update(id, body, query, headers) {
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
44
|
+
return yield this.client.fetch(`/admin/reservations/${id}`, {
|
45
|
+
method: "POST",
|
46
|
+
body,
|
47
|
+
query,
|
48
|
+
headers,
|
49
|
+
});
|
50
|
+
});
|
51
|
+
}
|
52
|
+
delete(id, headers) {
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
54
|
+
return yield this.client.fetch(`/admin/reservations/${id}`, {
|
55
|
+
method: "DELETE",
|
56
|
+
headers,
|
57
|
+
});
|
58
|
+
});
|
59
|
+
}
|
60
|
+
}
|
61
|
+
export default Reservation;
|
62
|
+
//# sourceMappingURL=reservation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reservation.js","sourceRoot":"","sources":["../../../src/admin/reservation.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,WAAW;IAEf,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,QAAQ,CACZ,EAAU,EACV,KAAwC,EACxC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,EAAE,EAC3B;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,qBAAqB,EACrB;gBACE,MAAM,EAAE,KAAK;gBACb,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,IAAsC,EACtC,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,qBAAqB,EACrB;gBACE,MAAM,EAAE,MAAM;gBACd,IAAI;gBACJ,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAsC,EACtC,KAA4C,EAC5C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,EAAE,EAC3B;gBACE,MAAM,EAAE,MAAM;gBACd,IAAI;gBACJ,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,EAAE,EAC3B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF;AAED,eAAe,WAAW,CAAA"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class ReturnReason {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
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>;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=return-reason.d.ts.map
|
@@ -0,0 +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,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"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
export class ReturnReason {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
list(query, headers) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return yield this.client.fetch("/admin/return-reasons", {
|
17
|
+
headers,
|
18
|
+
query,
|
19
|
+
});
|
20
|
+
});
|
21
|
+
}
|
22
|
+
retrieve(id, query, headers) {
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
return yield this.client.fetch(`/admin/return-reasons/${id}`, {
|
25
|
+
query,
|
26
|
+
headers,
|
27
|
+
});
|
28
|
+
});
|
29
|
+
}
|
30
|
+
create(body, query, headers) {
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
32
|
+
return this.client.fetch(`/admin/return-reasons`, {
|
33
|
+
method: "POST",
|
34
|
+
headers,
|
35
|
+
body,
|
36
|
+
query,
|
37
|
+
});
|
38
|
+
});
|
39
|
+
}
|
40
|
+
update(id, body, query, headers) {
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
42
|
+
return this.client.fetch(`/admin/return-reasons/${id}`, {
|
43
|
+
method: "POST",
|
44
|
+
headers,
|
45
|
+
body,
|
46
|
+
query,
|
47
|
+
});
|
48
|
+
});
|
49
|
+
}
|
50
|
+
delete(id, query, headers) {
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
52
|
+
return yield this.client.fetch(`/admin/return-reasons/${id}`, {
|
53
|
+
method: "DELETE",
|
54
|
+
headers,
|
55
|
+
query,
|
56
|
+
});
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}
|
60
|
+
//# sourceMappingURL=return-reason.js.map
|
@@ -0,0 +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;IAEK,IAAI,CACR,KAA6C,EAC7C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EACvB;gBACE,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAAyC,EACzC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,EAAE,EAC7B;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,IAAuC,EACvC,KAAyC,EACzC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,uBAAuB,EACvB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAuC,EACvC,KAAyC,EACzC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,yBAAyB,EAAE,EAAE,EAC7B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,KAAyC,EACzC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,EAAE,EAC7B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { HttpTypes, SelectParams } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class Return {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
list(query?: HttpTypes.AdminReturnFilters, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnsResponse>;
|
8
|
+
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
9
|
+
initiateRequest(body: HttpTypes.AdminInitiateReturnRequest, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
10
|
+
cancel(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
11
|
+
cancelRequest(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
12
|
+
addReturnItem(id: string, body: HttpTypes.AdminAddReturnItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
13
|
+
updateReturnItem(id: string, actionId: string, body: HttpTypes.AdminUpdateReturnItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
14
|
+
removeReturnItem(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
15
|
+
addReturnShipping(id: string, body: HttpTypes.AdminAddReturnShipping, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
16
|
+
updateReturnShipping(id: string, actionId: string, body: HttpTypes.AdminAddReturnShipping, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
17
|
+
deleteReturnShipping(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
18
|
+
updateRequest(id: string, body: HttpTypes.AdminUpdateReturnRequest, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
19
|
+
confirmRequest(id: string, body: HttpTypes.AdminConfirmReturnRequest, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
20
|
+
initiateReceive(id: string, body: HttpTypes.AdminInitiateReceiveReturn, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
21
|
+
receiveItems(id: string, body: HttpTypes.AdminReceiveItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
22
|
+
updateReceiveItem(id: string, actionId: string, body: HttpTypes.AdminUpdateReceiveItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
23
|
+
removeReceiveItem(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
24
|
+
dismissItems(id: string, body: HttpTypes.AdminDismissItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
25
|
+
updateDismissItem(id: string, actionId: string, body: HttpTypes.AdminUpdateDismissItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
26
|
+
removeDismissItem(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
27
|
+
confirmReceive(id: string, body: HttpTypes.AdminConfirmReceiveReturn, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
28
|
+
cancelReceive(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=return.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"return.d.ts","sourceRoot":"","sources":["../../../src/admin/return.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE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AAM,EAChB,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,YAAY,CAChB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,iBAAiB,EACjC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,SAAS,CAAC,uBAAuB,EACvC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,yBAAyB,EACzC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,aAAa,CACjB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
@@ -0,0 +1,224 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
export class Return {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
list(query, headers) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return yield this.client.fetch(`/admin/returns`, {
|
17
|
+
query,
|
18
|
+
headers,
|
19
|
+
});
|
20
|
+
});
|
21
|
+
}
|
22
|
+
retrieve(id, query, headers) {
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
return yield this.client.fetch(`/admin/returns/${id}`, {
|
25
|
+
query,
|
26
|
+
headers,
|
27
|
+
});
|
28
|
+
});
|
29
|
+
}
|
30
|
+
initiateRequest(body, query, headers) {
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
32
|
+
return yield this.client.fetch(`/admin/returns`, {
|
33
|
+
method: "POST",
|
34
|
+
headers,
|
35
|
+
body,
|
36
|
+
query,
|
37
|
+
});
|
38
|
+
});
|
39
|
+
}
|
40
|
+
cancel(id, query, headers) {
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
42
|
+
return yield this.client.fetch(`/admin/returns/${id}/cancel`, {
|
43
|
+
method: "POST",
|
44
|
+
headers,
|
45
|
+
query,
|
46
|
+
});
|
47
|
+
});
|
48
|
+
}
|
49
|
+
cancelRequest(id, query, headers) {
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
51
|
+
return yield this.client.fetch(`/admin/returns/${id}/request`, {
|
52
|
+
method: "DELETE",
|
53
|
+
headers,
|
54
|
+
query,
|
55
|
+
});
|
56
|
+
});
|
57
|
+
}
|
58
|
+
addReturnItem(id, body, query, headers) {
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
60
|
+
return yield this.client.fetch(`/admin/returns/${id}/request-items`, {
|
61
|
+
method: "POST",
|
62
|
+
headers,
|
63
|
+
body,
|
64
|
+
query,
|
65
|
+
});
|
66
|
+
});
|
67
|
+
}
|
68
|
+
updateReturnItem(id, actionId, body, query, headers) {
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
70
|
+
return yield this.client.fetch(`/admin/returns/${id}/request-items/${actionId}`, {
|
71
|
+
method: "POST",
|
72
|
+
headers,
|
73
|
+
body,
|
74
|
+
query,
|
75
|
+
});
|
76
|
+
});
|
77
|
+
}
|
78
|
+
removeReturnItem(id, actionId, query, headers) {
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
80
|
+
return yield this.client.fetch(`/admin/returns/${id}/request-items/${actionId}`, {
|
81
|
+
method: "DELETE",
|
82
|
+
headers,
|
83
|
+
query,
|
84
|
+
});
|
85
|
+
});
|
86
|
+
}
|
87
|
+
addReturnShipping(id, body, query, headers) {
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
89
|
+
return yield this.client.fetch(`/admin/returns/${id}/shipping-method`, {
|
90
|
+
method: "POST",
|
91
|
+
headers,
|
92
|
+
body,
|
93
|
+
query,
|
94
|
+
});
|
95
|
+
});
|
96
|
+
}
|
97
|
+
updateReturnShipping(id, actionId, body, query, headers) {
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
99
|
+
return yield this.client.fetch(`/admin/returns/${id}/shipping-method/${actionId}`, {
|
100
|
+
method: "POST",
|
101
|
+
headers,
|
102
|
+
body,
|
103
|
+
query,
|
104
|
+
});
|
105
|
+
});
|
106
|
+
}
|
107
|
+
deleteReturnShipping(id, actionId, query, headers) {
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
109
|
+
return yield this.client.fetch(`/admin/returns/${id}/shipping-method/${actionId}`, {
|
110
|
+
method: "DELETE",
|
111
|
+
headers,
|
112
|
+
query,
|
113
|
+
});
|
114
|
+
});
|
115
|
+
}
|
116
|
+
updateRequest(id, body, query, headers) {
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
118
|
+
return yield this.client.fetch(`/admin/returns/${id}`, {
|
119
|
+
method: "POST",
|
120
|
+
headers,
|
121
|
+
body,
|
122
|
+
query,
|
123
|
+
});
|
124
|
+
});
|
125
|
+
}
|
126
|
+
confirmRequest(id, body, query, headers) {
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
128
|
+
return yield this.client.fetch(`/admin/returns/${id}/request`, {
|
129
|
+
method: "POST",
|
130
|
+
headers,
|
131
|
+
body,
|
132
|
+
query,
|
133
|
+
});
|
134
|
+
});
|
135
|
+
}
|
136
|
+
initiateReceive(id, body, query, headers) {
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
138
|
+
return yield this.client.fetch(`/admin/returns/${id}/receive`, {
|
139
|
+
method: "POST",
|
140
|
+
headers,
|
141
|
+
body,
|
142
|
+
query,
|
143
|
+
});
|
144
|
+
});
|
145
|
+
}
|
146
|
+
receiveItems(id, body, query, headers) {
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
148
|
+
return yield this.client.fetch(`/admin/returns/${id}/receive-items`, {
|
149
|
+
method: "POST",
|
150
|
+
headers,
|
151
|
+
body,
|
152
|
+
query,
|
153
|
+
});
|
154
|
+
});
|
155
|
+
}
|
156
|
+
updateReceiveItem(id, actionId, body, query, headers) {
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
158
|
+
return yield this.client.fetch(`/admin/returns/${id}/receive-items/${actionId}`, {
|
159
|
+
method: "POST",
|
160
|
+
headers,
|
161
|
+
body,
|
162
|
+
query,
|
163
|
+
});
|
164
|
+
});
|
165
|
+
}
|
166
|
+
removeReceiveItem(id, actionId, query, headers) {
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
168
|
+
return yield this.client.fetch(`/admin/returns/${id}/receive-items/${actionId}`, {
|
169
|
+
method: "DELETE",
|
170
|
+
headers,
|
171
|
+
query,
|
172
|
+
});
|
173
|
+
});
|
174
|
+
}
|
175
|
+
dismissItems(id, body, query, headers) {
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
177
|
+
return yield this.client.fetch(`/admin/returns/${id}/dismiss-items`, {
|
178
|
+
method: "POST",
|
179
|
+
headers,
|
180
|
+
body,
|
181
|
+
query,
|
182
|
+
});
|
183
|
+
});
|
184
|
+
}
|
185
|
+
updateDismissItem(id, actionId, body, query, headers) {
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
187
|
+
return yield this.client.fetch(`/admin/returns/${id}/dismiss-items/${actionId}`, {
|
188
|
+
method: "POST",
|
189
|
+
headers,
|
190
|
+
body,
|
191
|
+
query,
|
192
|
+
});
|
193
|
+
});
|
194
|
+
}
|
195
|
+
removeDismissItem(id, actionId, query, headers) {
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
197
|
+
return yield this.client.fetch(`/admin/returns/${id}/dismiss-items/${actionId}`, {
|
198
|
+
method: "DELETE",
|
199
|
+
headers,
|
200
|
+
query,
|
201
|
+
});
|
202
|
+
});
|
203
|
+
}
|
204
|
+
confirmReceive(id, body, query, headers) {
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
206
|
+
return yield this.client.fetch(`/admin/returns/${id}/receive/confirm`, {
|
207
|
+
method: "POST",
|
208
|
+
headers,
|
209
|
+
body,
|
210
|
+
query,
|
211
|
+
});
|
212
|
+
});
|
213
|
+
}
|
214
|
+
cancelReceive(id, query, headers) {
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
216
|
+
return yield this.client.fetch(`/admin/returns/${id}/receive`, {
|
217
|
+
method: "DELETE",
|
218
|
+
headers,
|
219
|
+
query,
|
220
|
+
});
|
221
|
+
});
|
222
|
+
}
|
223
|
+
}
|
224
|
+
//# sourceMappingURL=return.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"return.js","sourceRoot":"","sources":["../../../src/admin/return.ts"],"names":[],"mappings":";;;;;;;;;AAKA,MAAM,OAAO,MAAM;IAEjB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,IAAI,CAAC,KAAoC,EAAE,OAAuB;;YACtE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,gBAAgB,EAChB;gBACE,KAAK;gBACL,OAAO;aACR,CAC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B,EAAU,EACV,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,UAAU,EAC9B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class SalesChannel {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateSalesChannel, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminSalesChannelResponse>;
|
8
|
+
update(id: string, body: HttpTypes.AdminUpdateSalesChannel, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminSalesChannelResponse>;
|
9
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminSalesChannelDeleteResponse>;
|
10
|
+
retrieve(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminSalesChannelResponse>;
|
11
|
+
list(query?: HttpTypes.AdminSalesChannelListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminSalesChannelListResponse>;
|
12
|
+
updateProducts(id: string, body: HttpTypes.AdminUpdateSalesChannelProducts, headers?: ClientHeaders): Promise<HttpTypes.AdminSalesChannelResponse>;
|
13
|
+
batchProducts(id: string, body: HttpTypes.AdminBatchLink, headers?: ClientHeaders): Promise<HttpTypes.AdminSalesChannelResponse>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=sales-channel.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sales-channel.d.ts","sourceRoot":"","sources":["../../../src/admin/sales-channel.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,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,uBAAuB,EACvC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,uBAAuB,EACvC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,2BAA2B,EAC7C,OAAO,CAAC,EAAE,aAAa;IAYnB,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,+BAA+B,EAC/C,OAAO,CAAC,EAAE,aAAa;IAYnB,aAAa,CACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,cAAc,EAC9B,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
export class SalesChannel {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
create(body, query, headers) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return yield this.client.fetch(`/admin/sales-channels`, {
|
17
|
+
method: "POST",
|
18
|
+
headers,
|
19
|
+
body,
|
20
|
+
query,
|
21
|
+
});
|
22
|
+
});
|
23
|
+
}
|
24
|
+
update(id, body, query, headers) {
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
26
|
+
return yield this.client.fetch(`/admin/sales-channels/${id}`, {
|
27
|
+
method: "POST",
|
28
|
+
headers,
|
29
|
+
body,
|
30
|
+
query,
|
31
|
+
});
|
32
|
+
});
|
33
|
+
}
|
34
|
+
delete(id, headers) {
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
36
|
+
return yield this.client.fetch(`/admin/sales-channels/${id}`, {
|
37
|
+
method: "DELETE",
|
38
|
+
headers,
|
39
|
+
});
|
40
|
+
});
|
41
|
+
}
|
42
|
+
retrieve(id, query, headers) {
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
44
|
+
return yield this.client.fetch(`/admin/sales-channels/${id}`, {
|
45
|
+
method: "GET",
|
46
|
+
headers,
|
47
|
+
query,
|
48
|
+
});
|
49
|
+
});
|
50
|
+
}
|
51
|
+
list(query, headers) {
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
53
|
+
return yield this.client.fetch(`/admin/sales-channels`, {
|
54
|
+
method: "GET",
|
55
|
+
headers,
|
56
|
+
query,
|
57
|
+
});
|
58
|
+
});
|
59
|
+
}
|
60
|
+
updateProducts(id, body, headers) {
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
62
|
+
return yield this.client.fetch(`/admin/sales-channels/${id}/products`, {
|
63
|
+
method: "POST",
|
64
|
+
headers,
|
65
|
+
body,
|
66
|
+
});
|
67
|
+
});
|
68
|
+
}
|
69
|
+
batchProducts(id, body, headers) {
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
71
|
+
return yield this.client.fetch(`/admin/sales-channels/${id}/products`, {
|
72
|
+
method: "POST",
|
73
|
+
headers,
|
74
|
+
body,
|
75
|
+
});
|
76
|
+
});
|
77
|
+
}
|
78
|
+
}
|
79
|
+
//# sourceMappingURL=sales-channel.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sales-channel.js","sourceRoot":"","sources":["../../../src/admin/sales-channel.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,YAAY;IAEvB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAuC,EACvC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EACvB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAuC,EACvC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,EAAE,EAC7B;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,EAAE,EAC7B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,EAAE,EAC7B;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAA6C,EAC7C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EACvB;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,cAAc,CAClB,EAAU,EACV,IAA+C,EAC/C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,WAAW,EACtC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;IAEK,aAAa,CACjB,EAAU,EACV,IAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,yBAAyB,EAAE,WAAW,EACtC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;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 ShippingOption {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateShippingOption, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminShippingOptionResponse>;
|
8
|
+
update(id: string, body: HttpTypes.AdminUpdateShippingOption, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminShippingOptionResponse>;
|
9
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminShippingOptionDeleteResponse>;
|
10
|
+
list(query?: HttpTypes.AdminShippingOptionListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminShippingOptionListResponse>;
|
11
|
+
updateRules(id: string, body: HttpTypes.AdminUpdateShippingOptionRules, headers?: ClientHeaders): Promise<HttpTypes.AdminUpdateShippingOptionRulesResponse>;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=shipping-option.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shipping-option.d.ts","sourceRoot":"","sources":["../../../src/admin/shipping-option.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,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,yBAAyB,EACzC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,yBAAyB,EACzC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,6BAA6B,EAC/C,OAAO,CAAC,EAAE,aAAa;IAYnB,WAAW,CACf,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,8BAA8B,EAC9C,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|