@trusted-solutions/sdit.models 0.20.0-alpha.1 → 0.20.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lambda/index.d.ts +1 -0
- package/lambda/index.js +1 -0
- package/lambda/index.js.map +1 -1
- package/lambda/override.d.ts +5 -0
- package/lambda/override.js +3 -0
- package/lambda/override.js.map +1 -0
- package/lambda/request/invoice.d.ts +2 -0
- package/lambda/request/menu.d.ts +2 -1
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/index.js.map +1 -1
- package/models/menu.d.ts +4 -0
- package/models/override.d.ts +28 -0
- package/models/override.js +15 -0
- package/models/override.js.map +1 -0
- package/models/store.d.ts +2 -0
- package/package.json +1 -1
package/lambda/index.d.ts
CHANGED
package/lambda/index.js
CHANGED
|
@@ -9,4 +9,5 @@ tslib_1.__exportStar(require("./online-ordering"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./line-notify"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./contract"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./pos-integration"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./override"), exports);
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
package/lambda/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/lambda/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,oDAA0B;AAC1B,qDAA2B;AAG3B,+DAAqC;AACrC,4DAAkC;AAElC,wDAA8B;AAE9B,qDAA2B;AAE3B,4DAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/lambda/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,oDAA0B;AAC1B,qDAA2B;AAG3B,+DAAqC;AACrC,4DAAkC;AAElC,wDAA8B;AAE9B,qDAA2B;AAE3B,4DAAkC;AAClC,qDAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"override.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/lambda/override.ts"],"names":[],"mappings":""}
|
|
@@ -34,6 +34,7 @@ export interface QueryLoveCodeRequest {
|
|
|
34
34
|
apiKey?: string;
|
|
35
35
|
}
|
|
36
36
|
export interface UploadInvoiceRequest {
|
|
37
|
+
storeId: string;
|
|
37
38
|
orderId: string;
|
|
38
39
|
receiptIssuedAt: number;
|
|
39
40
|
totalAmount: number;
|
|
@@ -48,6 +49,7 @@ export interface UploadInvoiceRequest {
|
|
|
48
49
|
taxAmount: number;
|
|
49
50
|
}
|
|
50
51
|
export interface UploadVoidInvoiceRequest {
|
|
52
|
+
storeId: string;
|
|
51
53
|
officeId: string;
|
|
52
54
|
invoice: Partial<OrderInvoice>;
|
|
53
55
|
receiptVoidedAt: number;
|
package/lambda/request/menu.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductCategory, Product, ProductAttributeCategory, ProductAttribute, ReorderConfig } from "./../../models";
|
|
1
|
+
import { ProductCategory, Product, ProductAttributeCategory, ProductAttribute, ReorderConfig, ProductProductAttribute } from "./../../models";
|
|
2
2
|
import { BlockVersion } from "../../enums/block-storage";
|
|
3
3
|
import { AttributeIdsInProduct } from "../../models/array-mutations";
|
|
4
4
|
import { CursorPaginationEnabled, Filterable } from './common';
|
|
@@ -84,4 +84,5 @@ export interface OverwriteMenuRequest extends StoreTemplateItemRequest {
|
|
|
84
84
|
productAttributes: ProductAttribute[];
|
|
85
85
|
productCategories: ProductCategory[];
|
|
86
86
|
productAttributeCategories: ProductAttributeCategory[];
|
|
87
|
+
productProductAttributeRelations: ProductProductAttribute[];
|
|
87
88
|
}
|
package/models/index.d.ts
CHANGED
package/models/index.js
CHANGED
|
@@ -40,4 +40,5 @@ tslib_1.__exportStar(require("./contract"), exports);
|
|
|
40
40
|
tslib_1.__exportStar(require("./json"), exports);
|
|
41
41
|
tslib_1.__exportStar(require("./online-integration"), exports);
|
|
42
42
|
tslib_1.__exportStar(require("./online-ordering"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./override"), exports);
|
|
43
44
|
//# sourceMappingURL=index.js.map
|
package/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,oDAA0B;AAC1B,kDAAwB;AACxB,iDAAuB;AACvB,kDAAwB;AACxB,2DAAiC;AACjC,oDAA0B;AAC1B,kDAAwB;AACxB,6DAAmC;AACnC,+DAAqC;AACrC,kDAAwB;AACxB,iDAAuB;AACvB,2DAAiC;AACjC,+DAAqC;AACrC,qDAA2B;AAC3B,qDAA2B;AAC3B,6DAAmC;AACnC,4DAAkC;AAClC,4DAAkC;AAClC,kDAAwB;AACxB,2DAAiC;AACjC,4DAAkC;AAClC,qDAA2B;AAC3B,kDAAwB;AACxB,4DAAkC;AAClC,oDAA0B;AAC1B,oDAA0B;AAC1B,kDAAwB;AACxB,kEAAwC;AACxC,mDAAyB;AACzB,sDAA4B;AAC5B,gDAAsB;AACtB,wDAA8B;AAC9B,kDAAwB;AACxB,uDAA6B;AAC7B,qDAA2B;AAE3B,iDAAuB;AACvB,+DAAqC;AACrC,4DAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,oDAA0B;AAC1B,kDAAwB;AACxB,iDAAuB;AACvB,kDAAwB;AACxB,2DAAiC;AACjC,oDAA0B;AAC1B,kDAAwB;AACxB,6DAAmC;AACnC,+DAAqC;AACrC,kDAAwB;AACxB,iDAAuB;AACvB,2DAAiC;AACjC,+DAAqC;AACrC,qDAA2B;AAC3B,qDAA2B;AAC3B,6DAAmC;AACnC,4DAAkC;AAClC,4DAAkC;AAClC,kDAAwB;AACxB,2DAAiC;AACjC,4DAAkC;AAClC,qDAA2B;AAC3B,kDAAwB;AACxB,4DAAkC;AAClC,oDAA0B;AAC1B,oDAA0B;AAC1B,kDAAwB;AACxB,kEAAwC;AACxC,mDAAyB;AACzB,sDAA4B;AAC5B,gDAAsB;AACtB,wDAA8B;AAC9B,kDAAwB;AACxB,uDAA6B;AAC7B,qDAA2B;AAE3B,iDAAuB;AACvB,+DAAqC;AACrC,4DAAkC;AAClC,qDAA2B"}
|
package/models/menu.d.ts
CHANGED
|
@@ -65,6 +65,10 @@ export interface ProductAttribute {
|
|
|
65
65
|
disableOnline?: boolean;
|
|
66
66
|
disableKiosk?: boolean;
|
|
67
67
|
}
|
|
68
|
+
export interface ProductProductAttribute {
|
|
69
|
+
productId: string;
|
|
70
|
+
productAttributeId: string;
|
|
71
|
+
}
|
|
68
72
|
export interface ProductAttributeCategory {
|
|
69
73
|
id?: string;
|
|
70
74
|
name: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Product, ProductAttribute } from './menu';
|
|
2
|
+
export declare enum OverrideContextType {
|
|
3
|
+
menu = "menu"
|
|
4
|
+
}
|
|
5
|
+
export declare enum OverrideEntityType {
|
|
6
|
+
product = "product",
|
|
7
|
+
productAttribute = "productAttribute",
|
|
8
|
+
productAttributeCategory = "productAttributeCategory",
|
|
9
|
+
productCategory = "productCategory"
|
|
10
|
+
}
|
|
11
|
+
export interface BaseOverride {
|
|
12
|
+
contextType: OverrideContextType;
|
|
13
|
+
/** ex: menuId */
|
|
14
|
+
contextValue: string;
|
|
15
|
+
entityType: OverrideEntityType;
|
|
16
|
+
/** ex: productId */
|
|
17
|
+
entityValue: string;
|
|
18
|
+
entityContent: any;
|
|
19
|
+
}
|
|
20
|
+
export interface OverrideProduct extends BaseOverride {
|
|
21
|
+
entityType: OverrideEntityType.product;
|
|
22
|
+
entityContent: Partial<Product>;
|
|
23
|
+
}
|
|
24
|
+
export interface OverrideProductAttribute extends BaseOverride {
|
|
25
|
+
entityType: OverrideEntityType.productAttribute;
|
|
26
|
+
entityContent: Partial<ProductAttribute>;
|
|
27
|
+
}
|
|
28
|
+
export declare type Override = OverrideProduct | OverrideProductAttribute;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OverrideEntityType = exports.OverrideContextType = void 0;
|
|
4
|
+
var OverrideContextType;
|
|
5
|
+
(function (OverrideContextType) {
|
|
6
|
+
OverrideContextType["menu"] = "menu";
|
|
7
|
+
})(OverrideContextType = exports.OverrideContextType || (exports.OverrideContextType = {}));
|
|
8
|
+
var OverrideEntityType;
|
|
9
|
+
(function (OverrideEntityType) {
|
|
10
|
+
OverrideEntityType["product"] = "product";
|
|
11
|
+
OverrideEntityType["productAttribute"] = "productAttribute";
|
|
12
|
+
OverrideEntityType["productAttributeCategory"] = "productAttributeCategory";
|
|
13
|
+
OverrideEntityType["productCategory"] = "productCategory";
|
|
14
|
+
})(OverrideEntityType = exports.OverrideEntityType || (exports.OverrideEntityType = {}));
|
|
15
|
+
//# sourceMappingURL=override.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"override.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/override.ts"],"names":[],"mappings":";;;AAEA,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;AACf,CAAC,EAFW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAE9B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2DAAqC,CAAA;IACrC,2EAAqD,CAAA;IACrD,yDAAmC,CAAA;AACrC,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B"}
|
package/models/store.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.20.0-alpha.
|
|
3
|
+
"version": "0.20.0-alpha.4",
|
|
4
4
|
"description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|