@medusajs/types 1.12.0-snapshot-20240719080828 → 1.12.0-snapshot-20240723115023
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http/index.d.ts +1 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +1 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/notification/admin/entities.d.ts +16 -0
- package/dist/http/notification/admin/entities.d.ts.map +1 -0
- package/dist/http/notification/admin/entities.js +3 -0
- package/dist/http/notification/admin/entities.js.map +1 -0
- package/dist/http/notification/admin/index.d.ts +4 -0
- package/dist/http/notification/admin/index.d.ts.map +1 -0
- package/dist/http/notification/admin/index.js +20 -0
- package/dist/http/notification/admin/index.js.map +1 -0
- package/dist/http/notification/admin/queries.d.ts +10 -0
- package/dist/http/notification/admin/queries.d.ts.map +1 -0
- package/dist/http/{user/common.js → notification/admin/queries.js} +1 -1
- package/dist/http/notification/admin/queries.js.map +1 -0
- package/dist/http/notification/admin/responses.d.ts +10 -0
- package/dist/http/notification/admin/responses.d.ts.map +1 -0
- package/dist/http/notification/admin/responses.js +3 -0
- package/dist/http/notification/admin/responses.js.map +1 -0
- package/dist/http/notification/index.d.ts +2 -0
- package/dist/http/notification/index.d.ts.map +1 -0
- package/dist/http/notification/index.js +18 -0
- package/dist/http/notification/index.js.map +1 -0
- package/dist/http/product/admin/payloads.d.ts +2 -0
- package/dist/http/product/admin/payloads.d.ts.map +1 -1
- package/dist/http/product/admin/responses.d.ts +3 -0
- package/dist/http/product/admin/responses.d.ts.map +1 -1
- package/dist/http/user/{common.d.ts → admin/entities.d.ts} +6 -6
- package/dist/http/user/admin/entities.d.ts.map +1 -0
- package/dist/http/user/admin/entities.js +3 -0
- package/dist/http/user/admin/entities.js.map +1 -0
- package/dist/http/user/admin/index.d.ts +5 -0
- package/dist/http/user/admin/index.d.ts.map +1 -0
- package/dist/http/user/admin/index.js +21 -0
- package/dist/http/user/admin/index.js.map +1 -0
- package/dist/http/user/admin/payloads.d.ts +12 -0
- package/dist/http/user/admin/payloads.d.ts.map +1 -0
- package/dist/http/user/admin/payloads.js +3 -0
- package/dist/http/user/admin/payloads.js.map +1 -0
- package/dist/http/user/admin/queries.d.ts +15 -0
- package/dist/http/user/admin/queries.d.ts.map +1 -0
- package/dist/http/user/{admin.js → admin/queries.js} +1 -1
- package/dist/http/user/admin/queries.js.map +1 -0
- package/dist/http/user/admin/responses.d.ts +12 -0
- package/dist/http/user/admin/responses.d.ts.map +1 -0
- package/dist/http/user/admin/responses.js +3 -0
- package/dist/http/user/admin/responses.js.map +1 -0
- package/dist/inventory/common/reservation-item.d.ts +2 -1
- package/dist/inventory/common/reservation-item.d.ts.map +1 -1
- package/dist/inventory/mutations/inventory-level.d.ts +2 -1
- package/dist/inventory/mutations/inventory-level.d.ts.map +1 -1
- package/dist/inventory/mutations/reservation-item.d.ts +3 -2
- package/dist/inventory/mutations/reservation-item.d.ts.map +1 -1
- package/dist/inventory/service.d.ts +10 -9
- package/dist/inventory/service.d.ts.map +1 -1
- package/dist/link-modules/index.d.ts +2 -13
- package/dist/link-modules/index.d.ts.map +1 -1
- package/dist/link-modules/index.js +16 -0
- package/dist/link-modules/index.js.map +1 -1
- package/dist/link-modules/migrations.d.ts +33 -0
- package/dist/link-modules/migrations.d.ts.map +1 -0
- package/dist/link-modules/migrations.js +3 -0
- package/dist/link-modules/migrations.js.map +1 -0
- package/dist/link-modules/service.d.ts +14 -0
- package/dist/link-modules/service.d.ts.map +1 -0
- package/dist/link-modules/service.js +3 -0
- package/dist/link-modules/service.js.map +1 -0
- package/dist/pricing/common/money-amount.d.ts +9 -0
- package/dist/pricing/common/money-amount.d.ts.map +1 -1
- package/dist/totals/big-number.d.ts +9 -2
- package/dist/totals/big-number.d.ts.map +1 -1
- package/dist/workflow/order/create-fulfillment.d.ts +2 -0
- package/dist/workflow/order/create-fulfillment.d.ts.map +1 -1
- package/dist/workflow/order/create-return-order.d.ts +2 -0
- package/dist/workflow/order/create-return-order.d.ts.map +1 -1
- package/dist/workflow/order/create-shipment.d.ts +1 -1
- package/dist/workflow/order/create-shipment.d.ts.map +1 -1
- package/dist/workflow/product/import-products.d.ts +5 -0
- package/dist/workflow/product/import-products.d.ts.map +1 -0
- package/dist/workflow/product/import-products.js +3 -0
- package/dist/workflow/product/import-products.js.map +1 -0
- package/dist/workflow/product/index.d.ts +1 -0
- package/dist/workflow/product/index.d.ts.map +1 -1
- package/dist/workflow/product/index.js +1 -0
- package/dist/workflow/product/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/http/user/admin.d.ts +0 -3
- package/dist/http/user/admin.d.ts.map +0 -1
- package/dist/http/user/admin.js.map +0 -1
- package/dist/http/user/common.d.ts.map +0 -1
- package/dist/http/user/common.js.map +0 -1
package/dist/http/index.d.ts
CHANGED
package/dist/http/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA"}
|
package/dist/http/index.js
CHANGED
@@ -28,6 +28,7 @@ __exportStar(require("./fulfillment-set"), exports);
|
|
28
28
|
__exportStar(require("./inventory"), exports);
|
29
29
|
__exportStar(require("./inventory-level"), exports);
|
30
30
|
__exportStar(require("./invite"), exports);
|
31
|
+
__exportStar(require("./notification"), exports);
|
31
32
|
__exportStar(require("./order"), exports);
|
32
33
|
__exportStar(require("./payment"), exports);
|
33
34
|
__exportStar(require("./price-list"), exports);
|
package/dist/http/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,yCAAsB;AACtB,+CAA4B;AAC5B,2CAAwB;AACxB,6CAA0B;AAC1B,6CAA0B;AAC1B,yCAAsB;AACtB,gDAA6B;AAC7B,yDAAsC;AACtC,oDAAiC;AACjC,8CAA2B;AAC3B,oDAAiC;AACjC,2CAAwB;AACxB,0CAAuB;AACvB,4CAAyB;AACzB,+CAA4B;AAC5B,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,gDAA6B;AAC7B,iDAA8B;AAC9B,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,2CAAwB;AACxB,kDAA+B;AAC/B,oDAAiC;AACjC,qDAAkC;AAClC,oDAAiC;AACjC,0CAAuB;AACvB,6CAA0B;AAC1B,+CAA4B;AAC5B,yCAAsB"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,yCAAsB;AACtB,+CAA4B;AAC5B,2CAAwB;AACxB,6CAA0B;AAC1B,6CAA0B;AAC1B,yCAAsB;AACtB,gDAA6B;AAC7B,yDAAsC;AACtC,oDAAiC;AACjC,8CAA2B;AAC3B,oDAAiC;AACjC,2CAAwB;AACxB,iDAA8B;AAC9B,0CAAuB;AACvB,4CAAyB;AACzB,+CAA4B;AAC5B,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,gDAA6B;AAC7B,iDAA8B;AAC9B,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,2CAAwB;AACxB,kDAA+B;AAC/B,oDAAiC;AACjC,qDAAkC;AAClC,oDAAiC;AACjC,0CAAuB;AACvB,6CAA0B;AAC1B,+CAA4B;AAC5B,yCAAsB"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export interface AdminNotification {
|
2
|
+
id: string;
|
3
|
+
to: string;
|
4
|
+
channel: string;
|
5
|
+
template: string;
|
6
|
+
data?: Record<string, unknown> | null;
|
7
|
+
trigger_type?: string | null;
|
8
|
+
resource_id?: string | null;
|
9
|
+
resource_type?: string | null;
|
10
|
+
receiver_id?: string | null;
|
11
|
+
original_notification_id?: string | null;
|
12
|
+
external_id?: string | null;
|
13
|
+
provider_id: string;
|
14
|
+
created_at: Date;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=entities.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/notification/admin/entities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,IAAI,CAAA;CACjB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../src/http/notification/admin/entities.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/notification/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./queries"), exports);
|
19
|
+
__exportStar(require("./responses"), exports);
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/notification/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,8CAA2B"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { BaseFilterable } from "../../../dal";
|
2
|
+
import { FindParams, SelectParams } from "../../common";
|
3
|
+
export interface AdminNotificationListParams extends BaseFilterable<AdminNotificationListParams>, FindParams {
|
4
|
+
q?: string;
|
5
|
+
id?: string | string[];
|
6
|
+
channel?: string | string[];
|
7
|
+
}
|
8
|
+
export interface AdminNotificationParams extends SelectParams {
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=queries.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/notification/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,WAAW,2BACf,SAAQ,cAAc,CAAC,2BAA2B,CAAC,EACjD,UAAU;IACZ,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAC5B;AAED,MAAM,WAAW,uBAAwB,SAAQ,YAAY;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/http/notification/admin/queries.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { PaginatedResponse } from "../../common";
|
2
|
+
import { AdminNotification } from "./entities";
|
3
|
+
export interface AdminNotificationResponse {
|
4
|
+
notification: AdminNotification;
|
5
|
+
}
|
6
|
+
export interface AdminNotificationListResponse extends PaginatedResponse<{
|
7
|
+
notifications: AdminNotification[];
|
8
|
+
}> {
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=responses.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/notification/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,iBAAiB,CAAA;CAChC;AAED,MAAM,WAAW,6BACf,SAAQ,iBAAiB,CAAC;IACxB,aAAa,EAAE,iBAAiB,EAAE,CAAA;CACnC,CAAC;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../../src/http/notification/admin/responses.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/notification/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./admin"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
|
@@ -2,6 +2,8 @@ import { BatchMethodRequest } from "../../../common";
|
|
2
2
|
import { ProductStatus } from "../common";
|
3
3
|
export interface AdminExportProductRequest {
|
4
4
|
}
|
5
|
+
export interface AdminImportProductRequest {
|
6
|
+
}
|
5
7
|
export interface AdminBatchProductRequest extends BatchMethodRequest<AdminCreateProduct, AdminUpdateProduct> {
|
6
8
|
}
|
7
9
|
export interface AdminBatchProductVariantRequest extends BatchMethodRequest<AdminCreateProductVariant, AdminUpdateProductVariant> {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/product/admin/payloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,MAAM,WAAW,yBAAyB;CAAG;AAC7C,MAAM,WAAW,wBACf,SAAQ,kBAAkB,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;CAAG;AAEvE,MAAM,WAAW,+BACf,SAAQ,kBAAkB,CACxB,yBAAyB,EACzB,yBAAyB,CAC1B;CAAG;AAEN,MAAM,WAAW,4CACf,SAAQ,kBAAkB,CACxB,sCAAsC,EACtC,sCAAsC,EACtC,sCAAsC,CACvC;CAAG;AAEN,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B,KAAK,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACrC;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE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,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,UAAU,sCAAsC;IAC9C,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,sCAAsC;IAC9C,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,sCAAsC;IAC9C,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
@@ -23,6 +23,9 @@ export interface AdminProductVariantDeleteResponse extends DeleteResponse<"varia
|
|
23
23
|
export interface AdminExportProductResponse {
|
24
24
|
workflow_id: string;
|
25
25
|
}
|
26
|
+
export interface AdminImportProductResponse {
|
27
|
+
workflow_id: string;
|
28
|
+
}
|
26
29
|
export interface AdminBatchProductVariantResponse extends BatchMethodResponse<AdminProductVariant> {
|
27
30
|
}
|
28
31
|
export interface AdminBatchProductVariantInventoryItemResponse extends BatchMethodResponse<AdminInventoryItem> {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/product/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEpD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB,CAAC,CAAA;AAEF,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AG,iBAAiB,CAAC;IACvD,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB,CAAC,CAAA;AAEF,MAAM,WAAW,0BAA2B,SAAQ,cAAc,CAAC,SAAS,CAAC;CAAG;AAEhF,MAAM,WAAW,yBACf,SAAQ,mBAAmB,CAAC,YAAY,CAAC;CAAG;AAE9C,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,mBAAmB,CAAA;CAC7B;AAED,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC9D,QAAQ,EAAE,mBAAmB,EAAE,CAAA;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,iCACf,SAAQ,cAAc,CAAC,SAAS,EAAE,YAAY,CAAC;CAAG;AAEpD,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gCACf,SAAQ,mBAAmB,CAAC,mBAAmB,CAAC;CAAG;AAErD,MAAM,WAAW,6CACf,SAAQ,mBAAmB,CAAC,kBAAkB,CAAC;CAAG;AAEpD,MAAM,WAAW,0BAA0B;IACzC,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAED,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,eAAe,EAAE,kBAAkB,EAAE,CAAA;CACtC,CAAC,CAAA;AAEF,MAAM,WAAW,gCACf,SAAQ,cAAc,CAAC,gBAAgB,EAAE,YAAY,CAAC;CAAG"}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
export
|
1
|
+
export interface AdminUser {
|
2
2
|
id: string;
|
3
3
|
email: string;
|
4
4
|
first_name: string | null;
|
5
5
|
last_name: string | null;
|
6
6
|
avatar_url: string | null;
|
7
7
|
metadata: Record<string, unknown> | null;
|
8
|
-
created_at:
|
9
|
-
updated_at:
|
10
|
-
deleted_at:
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=
|
8
|
+
created_at: string;
|
9
|
+
updated_at: string;
|
10
|
+
deleted_at: string | null;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=entities.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/user/admin/entities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../src/http/user/admin/entities.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/user/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./payloads"), exports);
|
19
|
+
__exportStar(require("./queries"), exports);
|
20
|
+
__exportStar(require("./responses"), exports);
|
21
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/user/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,6CAA0B;AAC1B,4CAAyB;AACzB,8CAA2B"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export interface AdminCreateUser {
|
2
|
+
email: string;
|
3
|
+
first_name?: string | null;
|
4
|
+
last_name?: string | null;
|
5
|
+
avatar_url?: string | null;
|
6
|
+
}
|
7
|
+
export interface AdminUpdateUser {
|
8
|
+
first_name?: string | null;
|
9
|
+
last_name?: string | null;
|
10
|
+
avatar_url?: string | null;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=payloads.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/user/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../../src/http/user/admin/payloads.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { OperatorMap } from "../../../dal";
|
2
|
+
import { FindParams, SelectParams } from "../../common";
|
3
|
+
export interface AdminUserListParams extends FindParams {
|
4
|
+
q?: string;
|
5
|
+
id?: string | string[];
|
6
|
+
email?: string | null;
|
7
|
+
first_name?: string | null;
|
8
|
+
last_name?: string | null;
|
9
|
+
created_at?: OperatorMap<string>;
|
10
|
+
updated_at?: OperatorMap<string>;
|
11
|
+
deleted_at?: OperatorMap<string>;
|
12
|
+
}
|
13
|
+
export interface AdminUserParams extends SelectParams {
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=queries.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/user/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,eAAgB,SAAQ,YAAY;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/http/user/admin/queries.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { DeleteResponse, PaginatedResponse } from "../../common";
|
2
|
+
import { AdminUser } from "./entities";
|
3
|
+
export interface AdminUserResponse {
|
4
|
+
user: AdminUser;
|
5
|
+
}
|
6
|
+
export interface AdminUserListResponse extends PaginatedResponse<{
|
7
|
+
users: AdminUser[];
|
8
|
+
}> {
|
9
|
+
}
|
10
|
+
export interface AdminUserDeleteResponse extends DeleteResponse<"user"> {
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=responses.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/user/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtC,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAA;CAChB;AAED,MAAM,WAAW,qBACf,SAAQ,iBAAiB,CAAC;IAAE,KAAK,EAAE,SAAS,EAAE,CAAA;CAAE,CAAC;CAAG;AAEtD,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,MAAM,CAAC;CAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../../src/http/user/admin/responses.ts"],"names":[],"mappings":""}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { NumericalComparisonOperator, StringComparisonOperator } from "../../common";
|
2
|
+
import { BigNumberInput } from "../../totals/big-number";
|
2
3
|
/**
|
3
4
|
* The reservation item details.
|
4
5
|
*/
|
@@ -18,7 +19,7 @@ export interface ReservationItemDTO {
|
|
18
19
|
/**
|
19
20
|
* The quantity of the reservation item.
|
20
21
|
*/
|
21
|
-
quantity:
|
22
|
+
quantity: BigNumberInput;
|
22
23
|
/**
|
23
24
|
* The associated line item's ID.
|
24
25
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/reservation-item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/reservation-item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAA;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAExC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEhC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAErC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAA;IAE/C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;CAChD"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { BigNumberInput } from "../../totals/big-number";
|
1
2
|
export interface CreateInventoryLevelInput {
|
2
3
|
/**
|
3
4
|
* The ID of the associated inventory item.
|
@@ -62,6 +63,6 @@ export type BulkAdjustInventoryLevelInput = {
|
|
62
63
|
/**
|
63
64
|
* The quantity to adjust the inventory level by.
|
64
65
|
*/
|
65
|
-
adjustment:
|
66
|
+
adjustment: BigNumberInput;
|
66
67
|
} & UpdateInventoryLevelInput;
|
67
68
|
//# sourceMappingURL=inventory-level.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/inventory-level.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB,GAAG,yBAAyB,CAAA;AAE7B,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB,GAAG,yBAAyB,CAAA;AAE7B,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,UAAU,EAAE,cAAc,CAAA;CAC3B,GAAG,yBAAyB,CAAA"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { BigNumberInput } from "../../totals";
|
1
2
|
/**
|
2
3
|
* @interface
|
3
4
|
*
|
@@ -8,7 +9,7 @@ export interface UpdateReservationItemInput {
|
|
8
9
|
/**
|
9
10
|
* The reserved quantity.
|
10
11
|
*/
|
11
|
-
quantity?:
|
12
|
+
quantity?: BigNumberInput;
|
12
13
|
/**
|
13
14
|
* The ID of the associated location.
|
14
15
|
*/
|
@@ -47,7 +48,7 @@ export interface CreateReservationItemInput {
|
|
47
48
|
/**
|
48
49
|
* The reserved quantity.
|
49
50
|
*/
|
50
|
-
quantity:
|
51
|
+
quantity: BigNumberInput;
|
51
52
|
/**
|
52
53
|
* Allow backorder of the item. If true, it won't check inventory levels before reserving it.
|
53
54
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/reservation-item.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,
|
1
|
+
{"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/mutations/reservation-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAA;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC/B"}
|
@@ -2,6 +2,7 @@ import { RestoreReturn, SoftDeleteReturn } from "../dal";
|
|
2
2
|
import { FindConfig } from "../common";
|
3
3
|
import { IModuleService } from "../modules-sdk";
|
4
4
|
import { Context } from "../shared-context";
|
5
|
+
import { BigNumberInput, IBigNumber } from "../totals";
|
5
6
|
import { FilterableInventoryItemProps, FilterableInventoryLevelProps, FilterableReservationItemProps, InventoryItemDTO, InventoryLevelDTO, ReservationItemDTO } from "./common";
|
6
7
|
import { BulkUpdateInventoryLevelInput, CreateInventoryItemInput, CreateInventoryLevelInput, CreateReservationItemInput, UpdateInventoryItemInput, UpdateReservationItemInput } from "./mutations";
|
7
8
|
/**
|
@@ -865,9 +866,9 @@ export interface IInventoryService extends IModuleService {
|
|
865
866
|
adjustInventory(data: {
|
866
867
|
inventoryItemId: string;
|
867
868
|
locationId: string;
|
868
|
-
adjustment:
|
869
|
+
adjustment: BigNumberInput;
|
869
870
|
}[], context?: Context): Promise<InventoryLevelDTO[]>;
|
870
|
-
adjustInventory(inventoryItemId: string, locationId: string, adjustment:
|
871
|
+
adjustInventory(inventoryItemId: string, locationId: string, adjustment: BigNumberInput, context?: Context): Promise<InventoryLevelDTO>;
|
871
872
|
/**
|
872
873
|
* This method confirms that a quantity is available of an inventory item in the specified locations.
|
873
874
|
*
|
@@ -885,14 +886,14 @@ export interface IInventoryService extends IModuleService {
|
|
885
886
|
* 10
|
886
887
|
* )
|
887
888
|
*/
|
888
|
-
confirmInventory(inventoryItemId: string, locationIds: string[], quantity:
|
889
|
+
confirmInventory(inventoryItemId: string, locationIds: string[], quantity: BigNumberInput, context?: Context): Promise<boolean>;
|
889
890
|
/**
|
890
891
|
* This method retrieves the available quantity of an inventory item in the specified locations.
|
891
892
|
*
|
892
893
|
* @param {string} inventoryItemId - The inventory item's ID.
|
893
894
|
* @param {string[]} locationIds - The locations' IDs.
|
894
895
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
895
|
-
* @returns {Promise<
|
896
|
+
* @returns {Promise<BigNumber>} The available quantity of the item.
|
896
897
|
*
|
897
898
|
* @example
|
898
899
|
* const availableQuantity =
|
@@ -901,14 +902,14 @@ export interface IInventoryService extends IModuleService {
|
|
901
902
|
* ["loc_123", "loc_321"]
|
902
903
|
* )
|
903
904
|
*/
|
904
|
-
retrieveAvailableQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<
|
905
|
+
retrieveAvailableQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<IBigNumber>;
|
905
906
|
/**
|
906
907
|
* This method retrieves the stocked quantity of an inventory item in the specified location.
|
907
908
|
*
|
908
909
|
* @param {string} inventoryItemId - The inventory item's ID.
|
909
910
|
* @param {string[]} locationIds - The locations' IDs.
|
910
911
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
911
|
-
* @returns {Promise<
|
912
|
+
* @returns {Promise<BigNumber>} The stocked quantity of the item.
|
912
913
|
*
|
913
914
|
* @example
|
914
915
|
* const stockedQuantity =
|
@@ -917,14 +918,14 @@ export interface IInventoryService extends IModuleService {
|
|
917
918
|
* ["loc_123", "loc_321"]
|
918
919
|
* )
|
919
920
|
*/
|
920
|
-
retrieveStockedQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<
|
921
|
+
retrieveStockedQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<IBigNumber>;
|
921
922
|
/**
|
922
923
|
* This method retrieves the reserved quantity of an inventory item in the specified location.
|
923
924
|
*
|
924
925
|
* @param {string} inventoryItemId - The inventory item's ID.
|
925
926
|
* @param {string[]} locationIds - The locations' IDs.
|
926
927
|
* @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
|
927
|
-
* @returns {Promise<
|
928
|
+
* @returns {Promise<BigNumber>} The reserved quantity of the item.
|
928
929
|
*
|
929
930
|
* @example
|
930
931
|
* const reservedQuantity =
|
@@ -933,6 +934,6 @@ export interface IInventoryService extends IModuleService {
|
|
933
934
|
* ["loc_123", "loc_321"]
|
934
935
|
* )
|
935
936
|
*/
|
936
|
-
retrieveReservedQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<
|
937
|
+
retrieveReservedQuantity(inventoryItemId: string, locationIds: string[], context?: Context): Promise<IBigNumber>;
|
937
938
|
}
|
938
939
|
//# sourceMappingURL=service.d.ts.map
|
@@ -1 +1 @@
|
|
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EAAE,MAAM,EAAE,EACrB,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,UAAU,CAAC,CAAA;IAEtB;;;;;;;;;;;;;;OAcG;IACH,uBAAuB,CACrB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EAAE,EACrB,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,UAAU,CAAC,CAAA;IAEtB;;;;;;;;;;;;;;OAcG;IACH,wBAAwB,CACtB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EAAE,EACrB,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,UAAU,CAAC,CAAA;CACvB"}
|
@@ -1,14 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { IModuleService } from "../modules-sdk";
|
4
|
-
import { Context } from "../shared-context";
|
5
|
-
export interface ILinkModule extends IModuleService {
|
6
|
-
list(filters?: Record<string, unknown>, config?: FindConfig<unknown>, sharedContext?: Context): Promise<unknown[]>;
|
7
|
-
listAndCount(filters?: Record<string, unknown>, config?: FindConfig<unknown>, sharedContext?: Context): Promise<[unknown[], number]>;
|
8
|
-
create(primaryKeyOrBulkData: string | string[] | [string | string[], string, Record<string, unknown>?][], foreignKeyData?: string, sharedContext?: Context): Promise<unknown[]>;
|
9
|
-
dismiss(primaryKeyOrBulkData: string | string[] | [string | string[], string][], foreignKeyData?: string, sharedContext?: Context): Promise<unknown[]>;
|
10
|
-
delete(data: unknown | unknown[], sharedContext?: Context): Promise<void>;
|
11
|
-
softDelete(data: unknown | unknown[], config?: SoftDeleteReturn, sharedContext?: Context): Promise<Record<string, unknown[]> | void>;
|
12
|
-
restore(data: unknown | unknown[], config?: RestoreReturn, sharedContext?: Context): Promise<Record<string, unknown[]> | void>;
|
13
|
-
}
|
1
|
+
export * from "./service";
|
2
|
+
export * from "./migrations";
|
14
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/link-modules/index.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/link-modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
|
@@ -1,3 +1,19 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./service"), exports);
|
18
|
+
__exportStar(require("./migrations"), exports);
|
3
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/link-modules/index.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/link-modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* Link descriptor containing metadata about the link's
|
3
|
+
* modules and models.
|
4
|
+
*/
|
5
|
+
export type PlannerActionLinkDescriptor = {
|
6
|
+
fromModule: string;
|
7
|
+
toModule: string;
|
8
|
+
fromModel: string;
|
9
|
+
toModel: string;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* A list of actions prepared and executed by
|
13
|
+
* the "ILinkMigrationsPlanner".
|
14
|
+
*/
|
15
|
+
export type LinkMigrationsPlannerAction = {
|
16
|
+
action: "create" | "update" | "notify";
|
17
|
+
linkDescriptor: PlannerActionLinkDescriptor;
|
18
|
+
sql: string;
|
19
|
+
tableName: string;
|
20
|
+
} | {
|
21
|
+
action: "noop";
|
22
|
+
tableName: string;
|
23
|
+
linkDescriptor: PlannerActionLinkDescriptor;
|
24
|
+
} | {
|
25
|
+
action: "delete";
|
26
|
+
linkDescriptor: PlannerActionLinkDescriptor;
|
27
|
+
tableName: string;
|
28
|
+
};
|
29
|
+
export interface ILinkMigrationsPlanner {
|
30
|
+
createPlan(): Promise<LinkMigrationsPlannerAction[]>;
|
31
|
+
executePlan(actions: LinkMigrationsPlannerAction[]): Promise<void>;
|
32
|
+
}
|
33
|
+
//# sourceMappingURL=migrations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../src/link-modules/migrations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GACnC;IACE,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACtC,cAAc,EAAE,2BAA2B,CAAA;IAC3C,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;CAClB,GACD;IACE,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,2BAA2B,CAAA;CAC5C,GACD;IACE,MAAM,EAAE,QAAQ,CAAA;IAChB,cAAc,EAAE,2BAA2B,CAAA;IAC3C,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAEL,MAAM,WAAW,sBAAsB;IACrC,UAAU,IAAI,OAAO,CAAC,2BAA2B,EAAE,CAAC,CAAA;IACpD,WAAW,CAAC,OAAO,EAAE,2BAA2B,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACnE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/link-modules/migrations.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { FindConfig } from "../common";
|
2
|
+
import { RestoreReturn, SoftDeleteReturn } from "../dal";
|
3
|
+
import { IModuleService } from "../modules-sdk";
|
4
|
+
import { Context } from "../shared-context";
|
5
|
+
export interface ILinkModule extends IModuleService {
|
6
|
+
list(filters?: Record<string, unknown>, config?: FindConfig<unknown>, sharedContext?: Context): Promise<unknown[]>;
|
7
|
+
listAndCount(filters?: Record<string, unknown>, config?: FindConfig<unknown>, sharedContext?: Context): Promise<[unknown[], number]>;
|
8
|
+
create(primaryKeyOrBulkData: string | string[] | [string | string[], string, Record<string, unknown>?][], foreignKeyData?: string, sharedContext?: Context): Promise<unknown[]>;
|
9
|
+
dismiss(primaryKeyOrBulkData: string | string[] | [string | string[], string][], foreignKeyData?: string, sharedContext?: Context): Promise<unknown[]>;
|
10
|
+
delete(data: unknown | unknown[], sharedContext?: Context): Promise<void>;
|
11
|
+
softDelete(data: unknown | unknown[], config?: SoftDeleteReturn, sharedContext?: Context): Promise<Record<string, unknown[]> | void>;
|
12
|
+
restore(data: unknown | unknown[], config?: RestoreReturn, sharedContext?: Context): Promise<Record<string, unknown[]> | void>;
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/link-modules/service.ts"],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EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEzE,UAAU,CACR,IAAI,EAAE,OAAO,GAAG,OAAO,EAAE,EACzB,MAAM,CAAC,EAAE,gBAAgB,EACzB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;IAE5C,OAAO,CACL,IAAI,EAAE,OAAO,GAAG,OAAO,EAAE,EACzB,MAAM,CAAC,EAAE,aAAa,EACtB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC7C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/link-modules/service.ts"],"names":[],"mappings":""}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { BaseFilterable } from "../../dal";
|
2
2
|
import { BigNumberInput, BigNumberValue } from "../../totals";
|
3
|
+
import { PriceRuleDTO } from "./price-rule";
|
3
4
|
/**
|
4
5
|
* @interface
|
5
6
|
*
|
@@ -26,6 +27,14 @@ export interface MoneyAmountDTO {
|
|
26
27
|
* The maximum quantity required to be purchased for this price to be applied.
|
27
28
|
*/
|
28
29
|
max_quantity?: BigNumberValue;
|
30
|
+
/**
|
31
|
+
* The number of rules that apply to this price
|
32
|
+
*/
|
33
|
+
rules_count?: number;
|
34
|
+
/**
|
35
|
+
* The price rules that apply to this price
|
36
|
+
*/
|
37
|
+
price_rules?: PriceRuleDTO[];
|
29
38
|
/**
|
30
39
|
* When the money_amount was created.
|
31
40
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"money-amount.d.ts","sourceRoot":"","sources":["../../../src/pricing/common/money-amount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"money-amount.d.ts","sourceRoot":"","sources":["../../../src/pricing/common/money-amount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,CAAA;IAC7B;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,CAAA;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,EAAE,CAAA;IAE5B;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,CAAA;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAA;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACrC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACrC;AAED;;;;GAIG;AACH,MAAM,WAAW,0BACf,SAAQ,cAAc,CAAC,0BAA0B,CAAC;IAClD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,EAAE,CAAA;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAClC"}
|
@@ -1,8 +1,15 @@
|
|
1
1
|
import BigNumberJS from "bignumber.js";
|
2
|
+
export interface IBigNumber {
|
3
|
+
numeric: number;
|
4
|
+
raw?: BigNumberRawValue;
|
5
|
+
bigNumber?: BigNumberJS;
|
6
|
+
toJSON(): number;
|
7
|
+
valueOf(): number;
|
8
|
+
}
|
2
9
|
export type BigNumberRawValue = {
|
3
10
|
value: string | number;
|
4
11
|
[key: string]: unknown;
|
5
12
|
};
|
6
|
-
export type BigNumberInput = BigNumberRawValue | number | string | BigNumberJS;
|
7
|
-
export type BigNumberValue = BigNumberJS | number | string;
|
13
|
+
export type BigNumberInput = BigNumberRawValue | number | string | BigNumberJS | IBigNumber;
|
14
|
+
export type BigNumberValue = BigNumberJS | number | string | IBigNumber;
|
8
15
|
//# sourceMappingURL=big-number.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"big-number.d.ts","sourceRoot":"","sources":["../../src/totals/big-number.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAA;AAEtC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,
|
1
|
+
{"version":3,"file":"big-number.d.ts","sourceRoot":"","sources":["../../src/totals/big-number.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAA;AAEtC,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,iBAAiB,CAAA;IACvB,SAAS,CAAC,EAAE,WAAW,CAAA;IAEvB,MAAM,IAAI,MAAM,CAAA;IAChB,OAAO,IAAI,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GACtB,iBAAiB,GACjB,MAAM,GACN,MAAM,GACN,WAAW,GACX,UAAU,CAAA;AAEd,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { BigNumberInput } from "../../totals";
|
2
|
+
import { CreateFulfillmentLabelWorkflowDTO } from "../fulfillment/create-fulfillment";
|
2
3
|
interface CreateOrderFulfillmentItem {
|
3
4
|
id: string;
|
4
5
|
quantity: BigNumberInput;
|
@@ -7,6 +8,7 @@ export interface CreateOrderFulfillmentWorkflowInput {
|
|
7
8
|
order_id: string;
|
8
9
|
created_by?: string;
|
9
10
|
items: CreateOrderFulfillmentItem[];
|
11
|
+
labels?: CreateFulfillmentLabelWorkflowDTO[];
|
10
12
|
no_notification?: boolean;
|
11
13
|
location_id?: string | null;
|
12
14
|
metadata?: Record<string, any> | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-fulfillment.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-fulfillment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"create-fulfillment.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-fulfillment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAA;AAErF,UAAU,0BAA0B;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,0BAA0B,EAAE,CAAA;IACnC,MAAM,CAAC,EAAE,iCAAiC,EAAE,CAAA;IAC5C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { BigNumberInput } from "../../totals";
|
2
|
+
import { CreateFulfillmentLabelWorkflowDTO } from "../fulfillment/create-fulfillment";
|
2
3
|
export interface CreateReturnItem {
|
3
4
|
id: string;
|
4
5
|
quantity: BigNumberInput;
|
@@ -14,6 +15,7 @@ export interface CreateOrderReturnWorkflowInput {
|
|
14
15
|
return_shipping?: {
|
15
16
|
option_id: string;
|
16
17
|
price?: number;
|
18
|
+
labels?: CreateFulfillmentLabelWorkflowDTO[];
|
17
19
|
};
|
18
20
|
note?: string | null;
|
19
21
|
receive_now?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-return-order.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-return-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"create-return-order.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-return-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAA;AAErF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,KAAK,EAAE,gBAAgB,EAAE,CAAA;IACzB,eAAe,CAAC,EAAE;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,iCAAiC,EAAE,CAAA;KAC7C,CAAA;IACD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B"}
|
@@ -10,7 +10,7 @@ export interface CreateOrderShipmentWorkflowInput {
|
|
10
10
|
fulfillment_id: string;
|
11
11
|
created_by?: string;
|
12
12
|
items: CreateOrderShipmentItem[];
|
13
|
-
labels
|
13
|
+
labels?: CreateFulfillmentLabelWorkflowDTO[];
|
14
14
|
no_notification?: boolean;
|
15
15
|
metadata?: MetadataType;
|
16
16
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-shipment.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-shipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAA;AAElE,UAAU,uBAAuB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,uBAAuB,EAAE,CAAA;IAChC,MAAM,EAAE,iCAAiC,EAAE,CAAA;
|
1
|
+
{"version":3,"file":"create-shipment.d.ts","sourceRoot":"","sources":["../../../src/workflow/order/create-shipment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,iCAAiC,EAAE,MAAM,gBAAgB,CAAA;AAElE,UAAU,uBAAuB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,cAAc,CAAA;CACzB;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,uBAAuB,EAAE,CAAA;IAChC,MAAM,CAAC,EAAE,iCAAiC,EAAE,CAAA;IAC5C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,YAAY,CAAA;CACxB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"import-products.d.ts","sourceRoot":"","sources":["../../../src/workflow/product/import-products.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"import-products.js","sourceRoot":"","sources":["../../../src/workflow/product/import-products.ts"],"names":[],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workflow/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
@@ -19,4 +19,5 @@ __exportStar(require("./create-products"), exports);
|
|
19
19
|
__exportStar(require("./update-product-variants"), exports);
|
20
20
|
__exportStar(require("./update-products"), exports);
|
21
21
|
__exportStar(require("./export-products"), exports);
|
22
|
+
__exportStar(require("./import-products"), exports);
|
22
23
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,oDAAiC;AACjC,4DAAyC;AACzC,oDAAiC;AACjC,oDAAiC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workflow/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,oDAAiC;AACjC,4DAAyC;AACzC,oDAAiC;AACjC,oDAAiC;AACjC,oDAAiC"}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/http/user/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE3C,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../../../src/http/user/admin.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/user/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/http/user/common.ts"],"names":[],"mappings":""}
|