@trusted-solutions/sdit.models 0.58.1-alpha.1 → 0.59.0-alpha.0

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, ProductProductAttribute, Table } from "./../../models";
1
+ import { ProductCategory, Product, ProductAttributeCategory, ProductAttribute, ReorderConfig, ProductProductAttribute, Table, ProductProductAttributeCategory } 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';
@@ -91,5 +91,6 @@ export interface OverwriteMenuRequest extends StoreTemplateItemRequest {
91
91
  productCategories: ProductCategory[];
92
92
  productAttributeCategories: ProductAttributeCategory[];
93
93
  productProductAttributeRelations: ProductProductAttribute[];
94
+ productProductAttributeCategoryRelations: ProductProductAttributeCategory[];
94
95
  tables?: Table[];
95
96
  }
@@ -1,5 +1,5 @@
1
1
  import { PaymentServiceProvider, PaymentType, ServeType } from '../enums';
2
- import { MultiLanguageText, OrderDiscount, Quantity, OOReasonCode, CustomerPointDetail } from '../models';
2
+ import { MultiLanguageText, OrderDiscount, Quantity, OOReasonCode, CustomerPointDetail, ProductType, AttributeType } from '../models';
3
3
  import { Address, DayOfWeekTimePeriod } from './store';
4
4
  export interface SOOrderError {
5
5
  type: SOOrderErrorType;
@@ -231,7 +231,9 @@ export interface SOPublicProduct {
231
231
  amount: number;
232
232
  imageUrl?: string;
233
233
  sort: number;
234
+ /** @deprecated */
234
235
  attributeIds: string[];
236
+ attributeCategoryIds: string[];
235
237
  /**
236
238
  * 線上售完
237
239
  */
@@ -242,6 +244,8 @@ export interface SOPublicProduct {
242
244
  benefit: DiscountLabel;
243
245
  }[];
244
246
  mainStoreProductId?: string;
247
+ type?: ProductType;
248
+ isComboOnly?: boolean;
245
249
  }
246
250
  export interface DiscountLabel {
247
251
  i18nKey: string;
@@ -257,6 +261,8 @@ export interface SOPublicProductAttributeCategory {
257
261
  sort: number;
258
262
  quantity?: Quantity;
259
263
  storeTemplateId?: string;
264
+ /** default: single */
265
+ type?: AttributeType;
260
266
  }
261
267
  export interface SOPublicProductAttribute {
262
268
  /**
@@ -274,6 +280,10 @@ export interface SOPublicProductAttribute {
274
280
  * 線上售完
275
281
  */
276
282
  soldOut: boolean;
283
+ /** default: single */
284
+ type?: AttributeType;
285
+ /** type為combo時,必填 */
286
+ productId?: string;
277
287
  }
278
288
  export interface SOPublicDiscountRule {
279
289
  discountRuleNo: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.58.1-alpha.1",
3
+ "version": "0.59.0-alpha.0",
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": {