@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 CHANGED
@@ -6,3 +6,4 @@ export * from './online-ordering';
6
6
  export * from './line-notify';
7
7
  export * from './contract';
8
8
  export * from './pos-integration';
9
+ export * from './override';
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
@@ -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,5 @@
1
+ import { Override } from '../models';
2
+ export interface PutOverrideRequest {
3
+ item: Override;
4
+ }
5
+ export declare type PutOverrideResponse = {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=override.js.map
@@ -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;
@@ -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
@@ -37,3 +37,4 @@ export * from './contract';
37
37
  export * from './json';
38
38
  export * from './online-integration';
39
39
  export * from './online-ordering';
40
+ export * from './override';
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
@@ -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
@@ -92,6 +92,8 @@ export interface Store {
92
92
  uberEatsCustomPaymentConfigName?: string;
93
93
  /** for pos integration */
94
94
  posIntegration?: StoreOnlinePlatformStore;
95
+ /** 不能手動新增修改品項; 只能用從pos integration 同步 */
96
+ disableManualEditProduct?: boolean;
95
97
  /**
96
98
  * 線上店名
97
99
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.20.0-alpha.1",
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": {