@medusajs/js-sdk 0.0.2-snapshot-20240925111619 → 0.0.2-snapshot-20240926160837
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin/api-key.js +5 -1
- package/dist/admin/api-key.js.map +1 -1
- package/dist/admin/campaign.js +5 -1
- package/dist/admin/campaign.js.map +1 -1
- package/dist/admin/claim.js +5 -1
- package/dist/admin/claim.js.map +1 -1
- package/dist/admin/currency.js +5 -1
- package/dist/admin/currency.js.map +1 -1
- package/dist/admin/customer-group.js +5 -1
- package/dist/admin/customer-group.js.map +1 -1
- package/dist/admin/customer.d.ts.map +1 -1
- package/dist/admin/customer.js +5 -1
- package/dist/admin/customer.js.map +1 -1
- package/dist/admin/exchange.js +5 -1
- package/dist/admin/exchange.js.map +1 -1
- package/dist/admin/fulfillment-provider.js +5 -1
- package/dist/admin/fulfillment-provider.js.map +1 -1
- package/dist/admin/fulfillment-set.js +5 -1
- package/dist/admin/fulfillment-set.js.map +1 -1
- package/dist/admin/fulfillment.d.ts.map +1 -1
- package/dist/admin/fulfillment.js +5 -1
- package/dist/admin/fulfillment.js.map +1 -1
- package/dist/admin/index.js +90 -83
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/inventory-item.js +5 -1
- package/dist/admin/inventory-item.js.map +1 -1
- package/dist/admin/invite.d.ts.map +1 -1
- package/dist/admin/invite.js +5 -1
- package/dist/admin/invite.js.map +1 -1
- package/dist/admin/notification.js +5 -1
- package/dist/admin/notification.js.map +1 -1
- package/dist/admin/order-edit.js +5 -1
- package/dist/admin/order-edit.js.map +1 -1
- package/dist/admin/order.d.ts.map +1 -1
- package/dist/admin/order.js +5 -1
- package/dist/admin/order.js.map +1 -1
- package/dist/admin/payment-collection.js +5 -1
- package/dist/admin/payment-collection.js.map +1 -1
- package/dist/admin/payment.js +5 -1
- package/dist/admin/payment.js.map +1 -1
- package/dist/admin/price-list.js +5 -1
- package/dist/admin/price-list.js.map +1 -1
- package/dist/admin/price-preference.js +5 -1
- package/dist/admin/price-preference.js.map +1 -1
- package/dist/admin/product-category.js +5 -1
- package/dist/admin/product-category.js.map +1 -1
- package/dist/admin/product-collection.js +5 -1
- package/dist/admin/product-collection.js.map +1 -1
- package/dist/admin/product-tag.js +5 -1
- package/dist/admin/product-tag.js.map +1 -1
- package/dist/admin/product-type.js +5 -1
- package/dist/admin/product-type.js.map +1 -1
- package/dist/admin/product-variant.js +5 -1
- package/dist/admin/product-variant.js.map +1 -1
- package/dist/admin/product.js +5 -1
- package/dist/admin/product.js.map +1 -1
- package/dist/admin/promotion.js +5 -1
- package/dist/admin/promotion.js.map +1 -1
- package/dist/admin/refund-reasons.js +5 -1
- package/dist/admin/refund-reasons.js.map +1 -1
- package/dist/admin/region.d.ts.map +1 -1
- package/dist/admin/region.js +5 -1
- package/dist/admin/region.js.map +1 -1
- package/dist/admin/reservation.js +3 -1
- package/dist/admin/reservation.js.map +1 -1
- package/dist/admin/return-reason.js +5 -1
- package/dist/admin/return-reason.js.map +1 -1
- package/dist/admin/return.js +5 -1
- package/dist/admin/return.js.map +1 -1
- package/dist/admin/sales-channel.js +5 -1
- package/dist/admin/sales-channel.js.map +1 -1
- package/dist/admin/shipping-option.js +5 -1
- package/dist/admin/shipping-option.js.map +1 -1
- package/dist/admin/shipping-profile.js +5 -1
- package/dist/admin/shipping-profile.js.map +1 -1
- package/dist/admin/stock-location.js +5 -1
- package/dist/admin/stock-location.js.map +1 -1
- package/dist/admin/store.js +5 -1
- package/dist/admin/store.js.map +1 -1
- package/dist/admin/tax-rate.js +5 -1
- package/dist/admin/tax-rate.js.map +1 -1
- package/dist/admin/tax-region.js +5 -1
- package/dist/admin/tax-region.js.map +1 -1
- package/dist/admin/upload.d.ts.map +1 -1
- package/dist/admin/upload.js +5 -1
- package/dist/admin/upload.js.map +1 -1
- package/dist/admin/user.js +5 -1
- package/dist/admin/user.js.map +1 -1
- package/dist/admin/workflow-execution.js +5 -1
- package/dist/admin/workflow-execution.js.map +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +5 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +16 -8
- package/dist/client.js.map +1 -1
- 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/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +5 -1
- package/dist/store/index.js.map +1 -1
- package/dist/types.js +2 -1
- package/package.json +15 -7
@@ -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 StockLocation {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateStockLocation, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminStockLocationResponse>;
|
8
|
+
update(id: string, body: HttpTypes.AdminUpdateStockLocation, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminStockLocationResponse>;
|
9
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminStockLocationDeleteResponse>;
|
10
|
+
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminStockLocationResponse>;
|
11
|
+
list(query?: HttpTypes.AdminStockLocationListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminStockLocationListResponse>;
|
12
|
+
updateSalesChannels(id: string, body: HttpTypes.AdminUpdateStockLocationSalesChannels, headers?: ClientHeaders): Promise<HttpTypes.AdminStockLocationResponse>;
|
13
|
+
createFulfillmentSet(id: string, body: HttpTypes.AdminCreateStockLocationFulfillmentSet, headers?: ClientHeaders): Promise<HttpTypes.AdminStockLocationResponse>;
|
14
|
+
updateFulfillmentProviders(id: string, body: HttpTypes.AdminBatchLink, headers?: ClientHeaders): Promise<HttpTypes.AdminStockLocationResponse>;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=stock-location.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stock-location.d.ts","sourceRoot":"","sources":["../../../src/admin/stock-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,wBAAwB,EACxC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;IAanB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;IAWlE,IAAI,CACR,KAAK,CAAC,EAAE,SAAS,CAAC,4BAA4B,EAC9C,OAAO,CAAC,EAAE,aAAa;IAYnB,mBAAmB,CACvB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,qCAAqC,EACrD,OAAO,CAAC,EAAE,aAAa;IAYnB,oBAAoB,CACxB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,sCAAsC,EACtD,OAAO,CAAC,EAAE,aAAa;IAYnB,0BAA0B,CAC9B,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,cAAc,EAC9B,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
@@ -0,0 +1,88 @@
|
|
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 StockLocation {
|
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/stock-locations`, {
|
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/stock-locations/${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/stock-locations/${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/stock-locations/${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/stock-locations`, {
|
54
|
+
method: "GET",
|
55
|
+
headers,
|
56
|
+
query,
|
57
|
+
});
|
58
|
+
});
|
59
|
+
}
|
60
|
+
updateSalesChannels(id, body, headers) {
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
62
|
+
return yield this.client.fetch(`/admin/stock-locations/${id}/sales-channels`, {
|
63
|
+
method: "POST",
|
64
|
+
headers,
|
65
|
+
body,
|
66
|
+
});
|
67
|
+
});
|
68
|
+
}
|
69
|
+
createFulfillmentSet(id, body, headers) {
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
71
|
+
return yield this.client.fetch(`/admin/stock-locations/${id}/fulfillment-sets`, {
|
72
|
+
method: "POST",
|
73
|
+
headers,
|
74
|
+
body,
|
75
|
+
});
|
76
|
+
});
|
77
|
+
}
|
78
|
+
updateFulfillmentProviders(id, body, headers) {
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
80
|
+
return yield this.client.fetch(`/admin/stock-locations/${id}/fulfillment-providers`, {
|
81
|
+
method: "POST",
|
82
|
+
headers,
|
83
|
+
body,
|
84
|
+
});
|
85
|
+
});
|
86
|
+
}
|
87
|
+
}
|
88
|
+
//# sourceMappingURL=stock-location.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stock-location.js","sourceRoot":"","sources":["../../../src/admin/stock-location.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,aAAa;IAExB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAwC,EACxC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,wBAAwB,EACxB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAwC,EACxC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,EAAE,EAC9B;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,0BAA0B,EAAE,EAAE,EAC9B;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;;YACtE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,EAAE,EAC9B;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAA8C,EAC9C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,wBAAwB,EACxB;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,mBAAmB,CACvB,EAAU,EACV,IAAqD,EACrD,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,iBAAiB,EAC7C;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;IAEK,oBAAoB,CACxB,EAAU,EACV,IAAsD,EACtD,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,mBAAmB,EAC/C;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;IAEK,0BAA0B,CAC9B,EAAU,EACV,IAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,0BAA0B,EAAE,wBAAwB,EACpD;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;aACL,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,11 @@
|
|
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
|
+
}
|
11
|
+
//# sourceMappingURL=store.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/admin/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,KAAK;IAChB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,gBAAgB,EAClC,OAAO,CAAC,EAAE,aAAa;IAYnB,IAAI,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,oBAAoB,EAAE,OAAO,CAAC,EAAE,aAAa;IAWpE,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,gBAAgB,EAChC,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;CAY1B"}
|
@@ -0,0 +1,43 @@
|
|
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 Store {
|
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/stores/${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/stores`, {
|
26
|
+
method: "GET",
|
27
|
+
headers,
|
28
|
+
query,
|
29
|
+
});
|
30
|
+
});
|
31
|
+
}
|
32
|
+
update(id, body, query, headers) {
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
34
|
+
return yield this.client.fetch(`/admin/stores/${id}`, {
|
35
|
+
method: "POST",
|
36
|
+
headers,
|
37
|
+
body,
|
38
|
+
query,
|
39
|
+
});
|
40
|
+
});
|
41
|
+
}
|
42
|
+
}
|
43
|
+
//# 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;IAEK,QAAQ,CACZ,EAAU,EACV,KAAkC,EAClC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,EAAE,EACrB;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CAAC,KAAsC,EAAE,OAAuB;;YACxE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,eAAe,EACf;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAgC,EAChC,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,iBAAiB,EAAE,EAAE,EACrB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,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 TaxRate {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateTaxRate, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRateResponse>;
|
8
|
+
update(id: string, body: HttpTypes.AdminUpdateTaxRate, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRateResponse>;
|
9
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRateDeleteResponse>;
|
10
|
+
retrieve(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRateResponse>;
|
11
|
+
list(query?: HttpTypes.AdminTaxRateListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRateListResponse>;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=tax-rate.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-rate.d.ts","sourceRoot":"","sources":["../../../src/admin/tax-rate.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;AAIxC,qBAAa,OAAO;IAClB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,kBAAkB,EAClC,KAAK,CAAC,EAAE,SAAS,CAAC,YAAY,EAC9B,OAAO,CAAC,EAAE,aAAa;IAUnB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,kBAAkB,EAClC,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,sBAAsB,EACxC,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
@@ -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
|
+
const taxRateUrl = "/admin/tax-rates";
|
11
|
+
export class TaxRate {
|
12
|
+
constructor(client) {
|
13
|
+
this.client = client;
|
14
|
+
}
|
15
|
+
create(body, query, headers) {
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
17
|
+
return yield this.client.fetch(taxRateUrl, {
|
18
|
+
method: "POST",
|
19
|
+
headers,
|
20
|
+
body,
|
21
|
+
query,
|
22
|
+
});
|
23
|
+
});
|
24
|
+
}
|
25
|
+
update(id, body, query, headers) {
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
27
|
+
return yield this.client.fetch(`${taxRateUrl}/${id}`, {
|
28
|
+
method: "POST",
|
29
|
+
headers,
|
30
|
+
body,
|
31
|
+
query,
|
32
|
+
});
|
33
|
+
});
|
34
|
+
}
|
35
|
+
delete(id, headers) {
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
37
|
+
return yield this.client.fetch(`${taxRateUrl}/${id}`, {
|
38
|
+
method: "DELETE",
|
39
|
+
headers,
|
40
|
+
});
|
41
|
+
});
|
42
|
+
}
|
43
|
+
retrieve(id, query, headers) {
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
45
|
+
return yield this.client.fetch(`${taxRateUrl}/${id}`, {
|
46
|
+
method: "GET",
|
47
|
+
headers,
|
48
|
+
query,
|
49
|
+
});
|
50
|
+
});
|
51
|
+
}
|
52
|
+
list(query, headers) {
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
54
|
+
return yield this.client.fetch(taxRateUrl, {
|
55
|
+
method: "GET",
|
56
|
+
headers,
|
57
|
+
query,
|
58
|
+
});
|
59
|
+
});
|
60
|
+
}
|
61
|
+
}
|
62
|
+
//# sourceMappingURL=tax-rate.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-rate.js","sourceRoot":"","sources":["../../../src/admin/tax-rate.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,UAAU,GAAG,kBAAkB,CAAA;AAErC,MAAM,OAAO,OAAO;IAElB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAkC,EAClC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAiC,UAAU,EAAE;gBACzE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CAAC,CAAA;QACJ,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAAkC,EAClC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,GAAG,UAAU,IAAI,EAAE,EAAE,EACrB;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,GAAG,UAAU,IAAI,EAAE,EAAE,EACrB;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,GAAG,UAAU,IAAI,EAAE,EAAE,EACrB;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAAwC,EACxC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,UAAU,EACV;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;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 TaxRegion {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateTaxRegion, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRegionResponse>;
|
8
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRegionDeleteResponse>;
|
9
|
+
retrieve(id: string, query?: HttpTypes.SelectParams, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRegionResponse>;
|
10
|
+
list(query?: HttpTypes.AdminTaxRegionListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminTaxRegionListResponse>;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=tax-region.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-region.d.ts","sourceRoot":"","sources":["../../../src/admin/tax-region.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;AAKxC,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,oBAAoB,EACpC,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,wBAAwB,EAC1C,OAAO,CAAC,EAAE,aAAa;CAW1B"}
|
@@ -0,0 +1,53 @@
|
|
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
|
+
const taxRegionUrl = "/admin/tax-regions";
|
11
|
+
// TODO: Add support for updating a tax region
|
12
|
+
export class TaxRegion {
|
13
|
+
constructor(client) {
|
14
|
+
this.client = client;
|
15
|
+
}
|
16
|
+
create(body, query, headers) {
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
18
|
+
return yield this.client.fetch(taxRegionUrl, {
|
19
|
+
method: "POST",
|
20
|
+
headers,
|
21
|
+
body,
|
22
|
+
query,
|
23
|
+
});
|
24
|
+
});
|
25
|
+
}
|
26
|
+
delete(id, headers) {
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
28
|
+
return yield this.client.fetch(`${taxRegionUrl}/${id}`, {
|
29
|
+
method: "DELETE",
|
30
|
+
headers,
|
31
|
+
});
|
32
|
+
});
|
33
|
+
}
|
34
|
+
retrieve(id, query, headers) {
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
36
|
+
return yield this.client.fetch(`${taxRegionUrl}/${id}`, {
|
37
|
+
method: "GET",
|
38
|
+
headers,
|
39
|
+
query,
|
40
|
+
});
|
41
|
+
});
|
42
|
+
}
|
43
|
+
list(query, headers) {
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
45
|
+
return yield this.client.fetch(taxRegionUrl, {
|
46
|
+
method: "GET",
|
47
|
+
headers,
|
48
|
+
query,
|
49
|
+
});
|
50
|
+
});
|
51
|
+
}
|
52
|
+
}
|
53
|
+
//# sourceMappingURL=tax-region.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tax-region.js","sourceRoot":"","sources":["../../../src/admin/tax-region.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,YAAY,GAAG,oBAAoB,CAAA;AAEzC,8CAA8C;AAC9C,MAAM,OAAO,SAAS;IAEpB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAAoC,EACpC,KAA8B,EAC9B,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,YAAY,EACZ;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,GAAG,YAAY,IAAI,EAAE,EAAE,EACvB;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,GAAG,YAAY,IAAI,EAAE,EAAE,EACvB;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,KAA0C,EAC1C,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,YAAY,EACZ;gBACE,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { HttpTypes, SelectParams } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class Upload {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminUploadFile, query?: SelectParams, headers?: ClientHeaders): Promise<{
|
8
|
+
files: HttpTypes.AdminFile[];
|
9
|
+
}>;
|
10
|
+
retrieve(id: string, query?: SelectParams, headers?: ClientHeaders): Promise<{
|
11
|
+
file: HttpTypes.AdminFile;
|
12
|
+
}>;
|
13
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminFileDeleteResponse>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=upload.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/admin/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAKpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,eAAe,EAC/B,KAAK,CAAC,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa;eAqBW,SAAS,CAAC,SAAS,EAAE;;IAenD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa;cACrC,SAAS,CAAC,SAAS;;IAShD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CAMjD"}
|
@@ -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 Upload {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
// Note: The creation/upload flow be made more advanced, with support for streaming and progress, but for now we keep it simple
|
15
|
+
create(body, query, headers) {
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
17
|
+
const form = new FormData();
|
18
|
+
if (body instanceof FileList) {
|
19
|
+
Array.from(body).forEach((file) => {
|
20
|
+
form.append("files", file);
|
21
|
+
});
|
22
|
+
}
|
23
|
+
else {
|
24
|
+
body.files.forEach((file) => {
|
25
|
+
form.append("files", "content" in file
|
26
|
+
? new Blob([file.content], {
|
27
|
+
type: "text/plain",
|
28
|
+
})
|
29
|
+
: file, file.name);
|
30
|
+
});
|
31
|
+
}
|
32
|
+
return this.client.fetch(`/admin/uploads`, {
|
33
|
+
method: "POST",
|
34
|
+
headers: Object.assign(Object.assign({}, headers), {
|
35
|
+
// Let the browser determine the content type.
|
36
|
+
"content-type": null }),
|
37
|
+
body: form,
|
38
|
+
query,
|
39
|
+
});
|
40
|
+
});
|
41
|
+
}
|
42
|
+
retrieve(id, query, headers) {
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
44
|
+
return this.client.fetch(`/admin/uploads/${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/uploads/${id}`, {
|
53
|
+
method: "DELETE",
|
54
|
+
headers,
|
55
|
+
});
|
56
|
+
});
|
57
|
+
}
|
58
|
+
}
|
59
|
+
//# sourceMappingURL=upload.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../src/admin/upload.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,MAAM;IAEjB,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,+HAA+H;IACzH,MAAM,CACV,IAA+B,EAC/B,KAAoB,EACpB,OAAuB;;YAEvB,MAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAA;YAC3B,IAAI,IAAI,YAAY,QAAQ,EAAE,CAAC;gBAC7B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;oBAChC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;gBAC5B,CAAC,CAAC,CAAA;YACJ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;oBAC1B,IAAI,CAAC,MAAM,CACT,OAAO,EACP,SAAS,IAAI,IAAI;wBACf,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;4BACvB,IAAI,EAAE,YAAY;yBACnB,CAAC;wBACJ,CAAC,CAAC,IAAI,EACR,IAAI,CAAC,IAAI,CACV,CAAA;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC;YAED,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAChB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO,kCACF,OAAO;oBACV,8CAA8C;oBAC9C,cAAc,EAAE,IAAI,GACrB;gBACD,IAAI,EAAE,IAAI;gBACV,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CAAC,EAAU,EAAE,KAAoB,EAAE,OAAuB;;YACtE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,kBAAkB,EAAE,EAAE,EACtB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAoC,kBAAkB,EAAE,EAAE,EAAE;gBAClF,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CAAC,CAAA;QACJ,CAAC;KAAA;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 User {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
create(body: HttpTypes.AdminCreateUser, query?: HttpTypes.AdminUserParams, headers?: ClientHeaders): Promise<HttpTypes.AdminUserResponse>;
|
8
|
+
update(id: string, body: HttpTypes.AdminUpdateUser, query?: HttpTypes.AdminUserParams, headers?: ClientHeaders): Promise<HttpTypes.AdminUserResponse>;
|
9
|
+
list(queryParams?: HttpTypes.AdminUserListParams, headers?: ClientHeaders): Promise<HttpTypes.AdminUserListResponse>;
|
10
|
+
retrieve(id: string, query?: HttpTypes.AdminUserParams, headers?: ClientHeaders): Promise<HttpTypes.AdminUserResponse>;
|
11
|
+
delete(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminUserDeleteResponse>;
|
12
|
+
me(query?: HttpTypes.AdminUserParams, headers?: ClientHeaders): Promise<HttpTypes.AdminUserResponse>;
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=user.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/admin/user.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,IAAI;IACf,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,MAAM,CACV,IAAI,EAAE,SAAS,CAAC,eAAe,EAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,eAAe,EACjC,OAAO,CAAC,EAAE,aAAa;IAUnB,MAAM,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,SAAS,CAAC,eAAe,EAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,eAAe,EACjC,OAAO,CAAC,EAAE,aAAa;IAanB,IAAI,CACR,WAAW,CAAC,EAAE,SAAS,CAAC,mBAAmB,EAC3C,OAAO,CAAC,EAAE,aAAa;IAQnB,QAAQ,CACZ,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,SAAS,CAAC,eAAe,EACjC,OAAO,CAAC,EAAE,aAAa;IAWnB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;IAU1C,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,eAAe,EAAE,OAAO,CAAC,EAAE,aAAa;CAMpE"}
|
@@ -0,0 +1,67 @@
|
|
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 User {
|
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/users`, {
|
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/users/${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/users`, {
|
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/users/${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/users/${id}`, {
|
53
|
+
method: "DELETE",
|
54
|
+
headers,
|
55
|
+
});
|
56
|
+
});
|
57
|
+
}
|
58
|
+
me(query, headers) {
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
60
|
+
return this.client.fetch(`/admin/users/me`, {
|
61
|
+
query,
|
62
|
+
headers,
|
63
|
+
});
|
64
|
+
});
|
65
|
+
}
|
66
|
+
}
|
67
|
+
//# sourceMappingURL=user.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/admin/user.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,IAAI;IAEf,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,MAAM,CACV,IAA+B,EAC/B,KAAiC,EACjC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAA8B,cAAc,EAAE;gBACpE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CAAC,CAAA;QACJ,CAAC;KAAA;IAEK,MAAM,CACV,EAAU,EACV,IAA+B,EAC/B,KAAiC,EACjC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAAE,EAAE,EACpB;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI;gBACJ,KAAK;aACN,CACF,CAAA;QACH,CAAC;KAAA;IAEK,IAAI,CACR,WAA2C,EAC3C,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAkC,cAAc,EAAE;gBACxE,OAAO;gBACP,KAAK,EAAE,WAAW;aACnB,CAAC,CAAA;QACJ,CAAC;KAAA;IAEK,QAAQ,CACZ,EAAU,EACV,KAAiC,EACjC,OAAuB;;YAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAAE,EAAE,EACpB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,MAAM,CAAC,EAAU,EAAE,OAAuB;;YAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAAE,EAAE,EACpB;gBACE,MAAM,EAAE,QAAQ;gBAChB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,EAAE,CAAC,KAAiC,EAAE,OAAuB;;YACjE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAA8B,iBAAiB,EAAE;gBACvE,KAAK;gBACL,OAAO;aACR,CAAC,CAAA;QACJ,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { ClientHeaders } from "../types";
|
4
|
+
export declare class WorkflowExecution {
|
5
|
+
private client;
|
6
|
+
constructor(client: Client);
|
7
|
+
list(queryParams?: HttpTypes.AdminGetWorkflowExecutionsParams, headers?: ClientHeaders): Promise<HttpTypes.AdminWorkflowExecutionListResponse>;
|
8
|
+
retrieve(id: string, headers?: ClientHeaders): Promise<HttpTypes.AdminWorkflowExecutionResponse>;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=workflow-execution.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"workflow-execution.d.ts","sourceRoot":"","sources":["../../../src/admin/workflow-execution.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,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAQ;gBACV,MAAM,EAAE,MAAM;IAIpB,IAAI,CACR,WAAW,CAAC,EAAE,SAAS,CAAC,gCAAgC,EACxD,OAAO,CAAC,EAAE,aAAa;IAWnB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa;CAQnD"}
|
@@ -0,0 +1,30 @@
|
|
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 WorkflowExecution {
|
11
|
+
constructor(client) {
|
12
|
+
this.client = client;
|
13
|
+
}
|
14
|
+
list(queryParams, headers) {
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
16
|
+
return yield this.client.fetch(`/admin/workflows-executions`, {
|
17
|
+
query: queryParams,
|
18
|
+
headers,
|
19
|
+
});
|
20
|
+
});
|
21
|
+
}
|
22
|
+
retrieve(id, headers) {
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
return yield this.client.fetch(`/admin/workflows-executions/${id}`, {
|
25
|
+
headers,
|
26
|
+
});
|
27
|
+
});
|
28
|
+
}
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=workflow-execution.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"workflow-execution.js","sourceRoot":"","sources":["../../../src/admin/workflow-execution.ts"],"names":[],"mappings":";;;;;;;;;AAIA,MAAM,OAAO,iBAAiB;IAE5B,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAEK,IAAI,CACR,WAAwD,EACxD,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,6BAA6B,EAC7B;gBACE,KAAK,EAAE,WAAW;gBAClB,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAEK,QAAQ,CAAC,EAAU,EAAE,OAAuB;;YAChD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,+BAA+B,EAAE,EAAE,EACnC;gBACE,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;CACF"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { HttpTypes } from "@medusajs/types";
|
2
|
+
import { Client } from "../client";
|
3
|
+
import { Config } from "../types";
|
4
|
+
export declare class Auth {
|
5
|
+
private client;
|
6
|
+
private config;
|
7
|
+
constructor(client: Client, config: Config);
|
8
|
+
register: (actor: string, method: string, payload: HttpTypes.AdminSignUpWithEmailPassword) => Promise<string>;
|
9
|
+
login: (actor: string, method: string, payload: HttpTypes.AdminSignInWithEmailPassword | Record<string, unknown>) => Promise<string | {
|
10
|
+
location: string;
|
11
|
+
}>;
|
12
|
+
callback: (actor: string, method: string, query?: Record<string, unknown>) => Promise<string>;
|
13
|
+
refresh: () => Promise<string>;
|
14
|
+
logout: () => Promise<void>;
|
15
|
+
private setToken_;
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,qBAAa,IAAI;IACf,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,MAAM,CAAQ;gBAEV,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C,QAAQ,UACC,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,qBAahD;IAED,KAAK,UACI,MAAM,UACL,MAAM,WACL,SAAS,CAAC,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;OAmB1E;IAGD,QAAQ,UACC,MAAM,UACL,MAAM,UACN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,qBAYhC;IAED,OAAO,wBAYN;IAED,MAAM,sBAQL;IAED,OAAO,CAAC,SAAS,CAUhB;CACF"}
|