@trusted-solutions/sdit.models 0.62.0-alpha.5 → 0.62.0-alpha.6
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,7 +1,7 @@
|
|
|
1
1
|
import { Address, DayOfWeekTimePeriod, GalleryConfig, Operator, PointProvider } from '../models/store';
|
|
2
2
|
import { CustomerPointDetail, MultiLanguageText, OrderDiscount } from '../models';
|
|
3
3
|
import { PaymentServiceProvider, ServeType } from '../enums';
|
|
4
|
-
import { SOPublicMenu, SOPublicCategory, SOPublicProduct, SOPublicProductAttribute, SOPublicProductAttributeCategory, SOPaymentMethod, SOValidateCart, SOOrderState, SOOrder, SOEater, SOPublicDiscountRule, SOMemberCoupon } from '../models/online-ordering';
|
|
4
|
+
import { SOPublicMenu, SOPublicCategory, SOPublicProduct, SOPublicProductWithContext, SOPublicProductAttribute, SOPublicProductAttributeCategory, SOPaymentMethod, SOValidateCart, SOOrderState, SOOrder, SOEater, SOPublicDiscountRule, SOMemberCoupon } from '../models/online-ordering';
|
|
5
5
|
import { RoundingMode } from '../enums/rounding-mode.enum';
|
|
6
6
|
import { MultipleItems } from './response';
|
|
7
7
|
/**
|
|
@@ -230,6 +230,21 @@ export interface SOGetStoreMenuResponse {
|
|
|
230
230
|
*/
|
|
231
231
|
attributeCategories: SOPublicProductAttributeCategory[];
|
|
232
232
|
}
|
|
233
|
+
export interface SOGetPopularProductsRequest {
|
|
234
|
+
storeId: string;
|
|
235
|
+
when?: number;
|
|
236
|
+
serveType?: ServeType;
|
|
237
|
+
}
|
|
238
|
+
export interface SOGetPopularProductsResponse extends MultipleItems<SOPublicProductWithContext> {
|
|
239
|
+
}
|
|
240
|
+
export interface SOGetBestPairingsRequest {
|
|
241
|
+
storeId: string;
|
|
242
|
+
productId: string;
|
|
243
|
+
when?: number;
|
|
244
|
+
serveType?: ServeType;
|
|
245
|
+
}
|
|
246
|
+
export interface SOGetBestPairingsResponse extends MultipleItems<SOPublicProductWithContext> {
|
|
247
|
+
}
|
|
233
248
|
export interface SOGetMyMemberCouponsRequest {
|
|
234
249
|
storeId: string;
|
|
235
250
|
limit?: number;
|
|
@@ -271,6 +271,11 @@ export interface SOPublicProduct {
|
|
|
271
271
|
type?: ProductType;
|
|
272
272
|
isComboOnly?: boolean;
|
|
273
273
|
}
|
|
274
|
+
export interface SOPublicProductWithContext {
|
|
275
|
+
menuId: string;
|
|
276
|
+
categoryId: string;
|
|
277
|
+
product: SOPublicProduct;
|
|
278
|
+
}
|
|
274
279
|
export interface DiscountLabel {
|
|
275
280
|
i18nKey: string;
|
|
276
281
|
i18nParams: Record<string, any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.62.0-alpha.
|
|
3
|
+
"version": "0.62.0-alpha.6",
|
|
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": {
|