@trusted-solutions/sdit.models 0.58.1-alpha.2 → 0.59.0-alpha.1
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/request/menu.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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
|
-
import { CursorPaginationEnabled, Filterable } from './common';
|
|
4
|
+
import { CursorPaginationEnabled, Filterable, Selectable } from './common';
|
|
5
5
|
import { StoreTemplateItemRequest, StoreTemplateItemDeleteRequest } from "./store";
|
|
6
6
|
export interface CreateProductCategoryRequest extends StoreTemplateItemRequest {
|
|
7
7
|
item: ProductCategory;
|
|
@@ -50,7 +50,7 @@ export interface DeleteProductAttributeCategoryRequest extends StoreTemplateItem
|
|
|
50
50
|
export interface CreateProductAttributeRequest extends StoreTemplateItemRequest {
|
|
51
51
|
item: ProductAttribute;
|
|
52
52
|
}
|
|
53
|
-
export interface GetProductAttributesRequest extends CursorPaginationEnabled, Filterable, StoreTemplateItemRequest {
|
|
53
|
+
export interface GetProductAttributesRequest extends CursorPaginationEnabled, Selectable, Filterable, StoreTemplateItemRequest {
|
|
54
54
|
blockVersion?: BlockVersion;
|
|
55
55
|
}
|
|
56
56
|
export interface GetProductAttributesByCategoryIdRequest extends StoreTemplateItemRequest {
|
|
@@ -71,12 +71,6 @@ export interface SoldOutSwitchRequest extends StoreTemplateItemRequest {
|
|
|
71
71
|
}
|
|
72
72
|
export interface GetProductsRequest extends CursorPaginationEnabled, Filterable, StoreTemplateItemRequest {
|
|
73
73
|
blockVersion?: BlockVersion;
|
|
74
|
-
/**
|
|
75
|
-
* default: 1
|
|
76
|
-
* version 1: product.attributeIds 有值
|
|
77
|
-
* version 2: product.attributeCategoryIds 有值
|
|
78
|
-
*/
|
|
79
|
-
version?: number;
|
|
80
74
|
}
|
|
81
75
|
/** storeId or chainId must given */
|
|
82
76
|
export interface SetProductAndProductAttributeRelationRequest extends StoreTemplateItemRequest {
|
|
@@ -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.
|
|
3
|
+
"version": "0.59.0-alpha.1",
|
|
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": {
|