@trusted-solutions/sdit.models 0.20.0-alpha.1 → 0.20.0-alpha.2

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.
@@ -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/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;
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.2",
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": {