@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 Customer {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
create(body, query, headers) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return this.client.fetch(`/admin/customers`, {
|
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 this.client.fetch(`/admin/customers/${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 this.client.fetch(`/admin/customers`, {
|
37
|
+
headers,
|
38
|
+
query: queryParams,
|
39
|
+
});
|
40
|
+
});
|
41
|
+
}
|
42
|
+
retrieve(id, query, headers) {
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
44
|
+
return this.client.fetch(`/admin/customers/${id}`, {
|
45
|
+
query,
|
46
|
+
headers,
|
47
|
+
});
|
48
|
+
});
|
49
|
+
}
|
50
|
+
delete(id, headers) {
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
52
|
+
return this.client.fetch(`/admin/customers/${id}`, {
|
53
|
+
method: "DELETE",
|
54
|
+
headers,
|
55
|
+
});
|
56
|
+
});
|
57
|
+
}
|
58
|
+
}
|
59
|
+
//# sourceMappingURL=customer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../../src/admin/customer.ts"],"names":[],"mappings":";;;;;;;;;AASA,MAAM,OAAO,QAAQ;IAEnB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAmC,EACnC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAErB,kBAAkB,EAAE;gBACrB,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CAAC,CAAA;QACJ,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAmC,EACnC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EAAE,EAAE,EACxB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,WAAyD,EACzD,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,kBAAkB,EAAE;gBACpB,OAAO;gBACP,KAAK,EAAE,WAAW;aACnB,CAAC,CAAA;QACJ,CAAC;KAAA;IAEK,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;;YACtE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EAAE,EAAE,EACxB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EAAE,EAAE,EACxB;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class Exchange {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
list(query?: HttpTypes.AdminExchangeListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeListResponse>;
|
8
|
+
retrieve(id: string, query?: HttpTypes.AdminExchangeParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
9
|
+
create(body: HttpTypes.AdminCreateExchange, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
10
|
+
cancel(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
11
|
+
delete(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeDeleteResponse>;
|
12
|
+
addItems(id: string, body: HttpTypes.AdminAddExchangeItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
13
|
+
updateItem(id: string, actionId: string, body: HttpTypes.AdminUpdateExchangeItem, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
14
|
+
removeItem(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminReturnResponse>;
|
15
|
+
addInboundItems(id: string, body: HttpTypes.AdminAddExchangeInboundItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
16
|
+
updateInboundItem(id: string, actionId: string, body: HttpTypes.AdminUpdateExchangeInboundItem, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
17
|
+
removeInboundItem(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
18
|
+
addInboundShipping(id: string, body: HttpTypes.AdminExchangeAddInboundShipping, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
19
|
+
updateInboundShipping(id: string, actionId: string, body: HttpTypes.AdminExchangeUpdateInboundShipping, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
20
|
+
deleteInboundShipping(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
21
|
+
addOutboundItems(id: string, body: HttpTypes.AdminAddExchangeOutboundItems, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
22
|
+
updateOutboundItem(id: string, actionId: string, body: HttpTypes.AdminUpdateExchangeOutboundItem, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
23
|
+
removeOutboundItem(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
24
|
+
addOutboundShipping(id: string, body: HttpTypes.AdminExchangeAddOutboundShipping, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
25
|
+
updateOutboundShipping(id: string, actionId: string, body: HttpTypes.AdminExchangeUpdateOutboundShipping, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
26
|
+
deleteOutboundShipping(id: string, actionId: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
27
|
+
request(id: string, body: HttpTypes.AdminRequestExchange, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
28
|
+
cancelRequest(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminExchangeResponse>;
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=exchange.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"exchange.d.ts","sourceRoot":"","sources":["../../../src/admin/exchange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,S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,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,mBAAmB,CACvB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,gCAAgC,EAChD,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,sBAAsB,CAC1B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,SAAS,CAAC,mCAAmC,EACnD,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,sBAAsB,CAC1B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,OAAO,CACX,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,oBAAoB,EACpC,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,223 @@
|
|
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 Exchange {
|
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/exchanges`, {
|
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/exchanges/${id}`, {
|
25
|
+
query,
|
26
|
+
headers,
|
27
|
+
});
|
28
|
+
});
|
29
|
+
}
|
30
|
+
create(body, query, headers) {
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
32
|
+
return yield this.client.fetch(`/admin/exchanges`, {
|
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/exchanges/${id}/cancel`, {
|
43
|
+
method: "POST",
|
44
|
+
headers,
|
45
|
+
query,
|
46
|
+
});
|
47
|
+
});
|
48
|
+
}
|
49
|
+
delete(id, query, headers) {
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
51
|
+
return yield this.client.fetch(`/admin/exchanges/${id}`, {
|
52
|
+
method: "DELETE",
|
53
|
+
headers,
|
54
|
+
query,
|
55
|
+
});
|
56
|
+
});
|
57
|
+
}
|
58
|
+
addItems(id, body, query, headers) {
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
60
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/exchange-items`, {
|
61
|
+
method: "POST",
|
62
|
+
headers,
|
63
|
+
body,
|
64
|
+
query,
|
65
|
+
});
|
66
|
+
});
|
67
|
+
}
|
68
|
+
updateItem(id, actionId, body, query, headers) {
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
70
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/exchange-items/${actionId}`, {
|
71
|
+
method: "POST",
|
72
|
+
headers,
|
73
|
+
body,
|
74
|
+
query,
|
75
|
+
});
|
76
|
+
});
|
77
|
+
}
|
78
|
+
removeItem(id, actionId, query, headers) {
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
80
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/exchange-items/${actionId}`, {
|
81
|
+
method: "DELETE",
|
82
|
+
headers,
|
83
|
+
query,
|
84
|
+
});
|
85
|
+
});
|
86
|
+
}
|
87
|
+
addInboundItems(id, body, query, headers) {
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
89
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items`, {
|
90
|
+
method: "POST",
|
91
|
+
headers,
|
92
|
+
body,
|
93
|
+
query,
|
94
|
+
});
|
95
|
+
});
|
96
|
+
}
|
97
|
+
updateInboundItem(id, actionId, body, query, headers) {
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
99
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items/${actionId}`, {
|
100
|
+
method: "POST",
|
101
|
+
headers,
|
102
|
+
body,
|
103
|
+
query,
|
104
|
+
});
|
105
|
+
});
|
106
|
+
}
|
107
|
+
removeInboundItem(id, actionId, query, headers) {
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
109
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items/${actionId}`, {
|
110
|
+
method: "DELETE",
|
111
|
+
headers,
|
112
|
+
query,
|
113
|
+
});
|
114
|
+
});
|
115
|
+
}
|
116
|
+
addInboundShipping(id, body, query, headers) {
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
118
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method`, {
|
119
|
+
method: "POST",
|
120
|
+
headers,
|
121
|
+
body,
|
122
|
+
query,
|
123
|
+
});
|
124
|
+
});
|
125
|
+
}
|
126
|
+
updateInboundShipping(id, actionId, body, query, headers) {
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
128
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method/${actionId}`, {
|
129
|
+
method: "POST",
|
130
|
+
headers,
|
131
|
+
body,
|
132
|
+
query,
|
133
|
+
});
|
134
|
+
});
|
135
|
+
}
|
136
|
+
deleteInboundShipping(id, actionId, query, headers) {
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
138
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method/${actionId}`, {
|
139
|
+
method: "DELETE",
|
140
|
+
headers,
|
141
|
+
query,
|
142
|
+
});
|
143
|
+
});
|
144
|
+
}
|
145
|
+
addOutboundItems(id, body, query, headers) {
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
147
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items`, {
|
148
|
+
method: "POST",
|
149
|
+
headers,
|
150
|
+
body,
|
151
|
+
query,
|
152
|
+
});
|
153
|
+
});
|
154
|
+
}
|
155
|
+
updateOutboundItem(id, actionId, body, query, headers) {
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
157
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items/${actionId}`, {
|
158
|
+
method: "POST",
|
159
|
+
headers,
|
160
|
+
body,
|
161
|
+
query,
|
162
|
+
});
|
163
|
+
});
|
164
|
+
}
|
165
|
+
removeOutboundItem(id, actionId, query, headers) {
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
167
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items/${actionId}`, {
|
168
|
+
method: "DELETE",
|
169
|
+
headers,
|
170
|
+
query,
|
171
|
+
});
|
172
|
+
});
|
173
|
+
}
|
174
|
+
addOutboundShipping(id, body, query, headers) {
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
176
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method`, {
|
177
|
+
method: "POST",
|
178
|
+
headers,
|
179
|
+
body,
|
180
|
+
query,
|
181
|
+
});
|
182
|
+
});
|
183
|
+
}
|
184
|
+
updateOutboundShipping(id, actionId, body, query, headers) {
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
186
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method/${actionId}`, {
|
187
|
+
method: "POST",
|
188
|
+
headers,
|
189
|
+
body,
|
190
|
+
query,
|
191
|
+
});
|
192
|
+
});
|
193
|
+
}
|
194
|
+
deleteOutboundShipping(id, actionId, query, headers) {
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
196
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method/${actionId}`, {
|
197
|
+
method: "DELETE",
|
198
|
+
headers,
|
199
|
+
query,
|
200
|
+
});
|
201
|
+
});
|
202
|
+
}
|
203
|
+
request(id, body, query, headers) {
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
205
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/request`, {
|
206
|
+
method: "POST",
|
207
|
+
headers,
|
208
|
+
body,
|
209
|
+
query,
|
210
|
+
});
|
211
|
+
});
|
212
|
+
}
|
213
|
+
cancelRequest(id, query, headers) {
|
214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
215
|
+
return yield this.client.fetch(`/admin/exchanges/${id}/request`, {
|
216
|
+
method: "DELETE",
|
217
|
+
headers,
|
218
|
+
query,
|
219
|
+
});
|
220
|
+
});
|
221
|
+
}
|
222
|
+
}
|
223
|
+
//# sourceMappingURL=exchange.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../../src/admin/exchange.ts"],"names":[],"mappings":";;;;;;;;;AAKA,MAAM,OAAO,QAAQ;IAEnB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,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B,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,oBAAoB,EAAE,UAAU,EAChC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,aAAa,CACjB,EAAU,EACV,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,oBAAoB,EAAE,UAAU,EAChC;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;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 FulfillmentProvider {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
list(query?: HttpTypes.AdminFulfillmentProviderListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentProviderListResponse>;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=fulfillment-provider.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fulfillment-provider.d.ts","sourceRoot":"","sources":["../../../src/admin/fulfillment-provider.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,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,kCAAkC,EACpD,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
@@ -0,0 +1,24 @@
|
|
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 FulfillmentProvider {
|
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/fulfillment-providers`, {
|
17
|
+
method: "GET",
|
18
|
+
headers,
|
19
|
+
query,
|
20
|
+
});
|
21
|
+
});
|
22
|
+
}
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=fulfillment-provider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fulfillment-provider.js","sourceRoot":"","sources":["../../../src/admin/fulfillment-provider.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,mBAAmB;IAE9B,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,IAAI,CACR,KAAoD,EACpD,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,8BAA8B,EAC9B;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,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 FulfillmentSet {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentSetDeleteResponse>;
|
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
|
+
deleteServiceZone(fulfillmentSetId: string, serviceZoneId: string, headers?: ClientHeaders): Promise<HttpTypes.AdminServiceZoneDeleteResponse>;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=fulfillment-set.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fulfillment-set.d.ts","sourceRoot":"","sources":["../../../src/admin/fulfillment-set.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,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,iBAAiB,CACrB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,oCAAoC,EACpD,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,mBAAmB,CACvB,gBAAgB,EAAE,MAAM,EACxB,aAAa,EAAE,MAAM,EACrB,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,iBAAiB,CACrB,gBAAgB,EAAE,MAAM,EACxB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,SAAS,CAAC,oCAAoC,EACpD,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,iBAAiB,CACrB,gBAAgB,EAAE,MAAM,EACxB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,aAAa;CAU1B"}
|
@@ -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 FulfillmentSet {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
delete(id, headers) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return yield this.client.fetch(`/admin/fulfillment-sets/${id}`, {
|
17
|
+
method: "DELETE",
|
18
|
+
headers,
|
19
|
+
});
|
20
|
+
});
|
21
|
+
}
|
22
|
+
createServiceZone(id, body, query, headers) {
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
return yield this.client.fetch(`/admin/fulfillment-sets/${id}/service-zones`, {
|
25
|
+
method: "POST",
|
26
|
+
headers,
|
27
|
+
body,
|
28
|
+
query,
|
29
|
+
});
|
30
|
+
});
|
31
|
+
}
|
32
|
+
retrieveServiceZone(fulfillmentSetId, serviceZoneId, query, headers) {
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
34
|
+
return yield this.client.fetch(`/admin/fulfillment-sets/${fulfillmentSetId}/service-zones/${serviceZoneId}`, {
|
35
|
+
method: "GET",
|
36
|
+
headers,
|
37
|
+
query,
|
38
|
+
});
|
39
|
+
});
|
40
|
+
}
|
41
|
+
updateServiceZone(fulfillmentSetId, serviceZoneId, body, query, headers) {
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
43
|
+
return yield this.client.fetch(`/admin/fulfillment-sets/${fulfillmentSetId}/service-zones/${serviceZoneId}`, {
|
44
|
+
method: "POST",
|
45
|
+
headers,
|
46
|
+
body,
|
47
|
+
query,
|
48
|
+
});
|
49
|
+
});
|
50
|
+
}
|
51
|
+
deleteServiceZone(fulfillmentSetId, serviceZoneId, headers) {
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
53
|
+
return yield this.client.fetch(`/admin/fulfillment-sets/${fulfillmentSetId}/service-zones/${serviceZoneId}`, {
|
54
|
+
method: "DELETE",
|
55
|
+
headers,
|
56
|
+
});
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}
|
60
|
+
//# sourceMappingURL=fulfillment-set.js.map
|
@@ -0,0 +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;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,EAAE,EAAE,EAC/B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,iBAAiB,CACrB,EAAU,EACV,IAAoD,EACpD,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,EAAE,gBAAgB,EAC7C;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,mBAAmB,CACvB,gBAAwB,EACxB,aAAqB,EACrB,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,gBAAgB,kBAAkB,aAAa,EAAE,EAC5E;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,iBAAiB,CACrB,gBAAwB,EACxB,aAAqB,EACrB,IAAoD,EACpD,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,gBAAgB,kBAAkB,aAAa,EAAE,EAC5E;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,iBAAiB,CACrB,gBAAwB,EACxB,aAAqB,EACrB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,2BAA2B,gBAAgB,kBAAkB,aAAa,EAAE,EAC5E;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class Fulfillment {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateFulfillment, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentResponse>;
|
8
|
+
cancel(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentResponse>;
|
9
|
+
createShipment(id: string, body: HttpTypes.AdminCreateFulfillmentShipment, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminFulfillmentResponse>;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=fulfillment.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fulfillment.d.ts","sourceRoot":"","sources":["../../../src/admin/fulfillment.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,WAAW;IACtB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,sBAAsB,EACtC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAYnB,cAAc,CAClB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,8BAA8B,EAC9C,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;CAY1B"}
|
@@ -0,0 +1,44 @@
|
|
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 Fulfillment {
|
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/fulfillments`, {
|
17
|
+
method: "POST",
|
18
|
+
headers,
|
19
|
+
body,
|
20
|
+
query,
|
21
|
+
});
|
22
|
+
});
|
23
|
+
}
|
24
|
+
cancel(id, query, headers) {
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
26
|
+
return yield this.client.fetch(`/admin/fulfillments/${id}`, {
|
27
|
+
method: "POST",
|
28
|
+
body: {},
|
29
|
+
headers,
|
30
|
+
});
|
31
|
+
});
|
32
|
+
}
|
33
|
+
createShipment(id, body, query, headers) {
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
35
|
+
return yield this.client.fetch(`/admin/fulfillments/${id}/shipment`, {
|
36
|
+
method: "POST",
|
37
|
+
headers,
|
38
|
+
body,
|
39
|
+
query,
|
40
|
+
});
|
41
|
+
});
|
42
|
+
}
|
43
|
+
}
|
44
|
+
//# sourceMappingURL=fulfillment.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fulfillment.js","sourceRoot":"","sources":["../../../src/admin/fulfillment.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,WAAW;IAEtB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAsC,EACtC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,qBAAqB,EACrB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,EAAE,EAC3B;gBACE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,EAAE;gBACR,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,cAAc,CAClB,EAAU,EACV,IAA8C,EAC9C,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,uBAAuB,EAAE,WAAW,EACpC;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { Client } from "../client";
|
2
|
+
import { ApiKey } from "./api-key";
|
3
|
+
import { Campaign } from "./campaign";
|
4
|
+
import { Claim } from "./claim";
|
5
|
+
import { Currency } from "./currency";
|
6
|
+
import { Customer } from "./customer";
|
7
|
+
import { CustomerGroup } from "./customer-group";
|
8
|
+
import { Exchange } from "./exchange";
|
9
|
+
import { Fulfillment } from "./fulfillment";
|
10
|
+
import { FulfillmentProvider } from "./fulfillment-provider";
|
11
|
+
import { FulfillmentSet } from "./fulfillment-set";
|
12
|
+
import { InventoryItem } from "./inventory-item";
|
13
|
+
import { Invite } from "./invite";
|
14
|
+
import { Notification } from "./notification";
|
15
|
+
import { Order } from "./order";
|
16
|
+
import { OrderEdit } from "./order-edit";
|
17
|
+
import { Payment } from "./payment";
|
18
|
+
import { PaymentCollection } from "./payment-collection";
|
19
|
+
import { PriceList } from "./price-list";
|
20
|
+
import { PricePreference } from "./price-preference";
|
21
|
+
import { Product } from "./product";
|
22
|
+
import { ProductCategory } from "./product-category";
|
23
|
+
import { ProductCollection } from "./product-collection";
|
24
|
+
import { ProductTag } from "./product-tag";
|
25
|
+
import { ProductType } from "./product-type";
|
26
|
+
import { ProductVariant } from "./product-variant";
|
27
|
+
import { Promotion } from "./promotion";
|
28
|
+
import { RefundReason } from "./refund-reasons";
|
29
|
+
import { Region } from "./region";
|
30
|
+
import Reservation from "./reservation";
|
31
|
+
import { Return } from "./return";
|
32
|
+
import { ReturnReason } from "./return-reason";
|
33
|
+
import { SalesChannel } from "./sales-channel";
|
34
|
+
import { ShippingOption } from "./shipping-option";
|
35
|
+
import { ShippingProfile } from "./shipping-profile";
|
36
|
+
import { StockLocation } from "./stock-location";
|
37
|
+
import { Store } from "./store";
|
38
|
+
import { TaxRate } from "./tax-rate";
|
39
|
+
import { TaxRegion } from "./tax-region";
|
40
|
+
import { Upload } from "./upload";
|
41
|
+
import { User } from "./user";
|
42
|
+
import { WorkflowExecution } from "./workflow-execution";
|
43
|
+
export declare class Admin {
|
44
|
+
invite: Invite;
|
45
|
+
customer: Customer;
|
46
|
+
productCollection: ProductCollection;
|
47
|
+
productCategory: ProductCategory;
|
48
|
+
priceList: PriceList;
|
49
|
+
pricePreference: PricePreference;
|
50
|
+
product: Product;
|
51
|
+
productType: ProductType;
|
52
|
+
upload: Upload;
|
53
|
+
region: Region;
|
54
|
+
returnReason: ReturnReason;
|
55
|
+
stockLocation: StockLocation;
|
56
|
+
salesChannel: SalesChannel;
|
57
|
+
fulfillmentSet: FulfillmentSet;
|
58
|
+
fulfillment: Fulfillment;
|
59
|
+
fulfillmentProvider: FulfillmentProvider;
|
60
|
+
shippingOption: ShippingOption;
|
61
|
+
shippingProfile: ShippingProfile;
|
62
|
+
inventoryItem: InventoryItem;
|
63
|
+
notification: Notification;
|
64
|
+
order: Order;
|
65
|
+
orderEdit: OrderEdit;
|
66
|
+
return: Return;
|
67
|
+
claim: Claim;
|
68
|
+
exchange: Exchange;
|
69
|
+
taxRate: TaxRate;
|
70
|
+
taxRegion: TaxRegion;
|
71
|
+
store: Store;
|
72
|
+
productTag: ProductTag;
|
73
|
+
user: User;
|
74
|
+
currency: Currency;
|
75
|
+
payment: Payment;
|
76
|
+
productVariant: ProductVariant;
|
77
|
+
refundReason: RefundReason;
|
78
|
+
paymentCollection: PaymentCollection;
|
79
|
+
apiKey: ApiKey;
|
80
|
+
workflowExecution: WorkflowExecution;
|
81
|
+
reservation: Reservation;
|
82
|
+
customerGroup: CustomerGroup;
|
83
|
+
promotion: Promotion;
|
84
|
+
campaign: Campaign;
|
85
|
+
constructor(client: Client);
|
86
|
+
}
|
87
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +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,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,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,SAAS,EAAE,MAA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