@trusted-solutions/sdit.models 0.40.0-alpha.1 → 0.40.0-alpha.3
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,5 +1,5 @@
|
|
|
1
1
|
import { Address, DayOfWeekTimePeriod, GalleryConfig, Operator } from '../models/store';
|
|
2
|
-
import { MultiLanguageText, OrderDiscount } from '../models';
|
|
2
|
+
import { CustomerPointDetail, MultiLanguageText, OrderDiscount } from '../models';
|
|
3
3
|
import { PaymentServiceProvider, ServeType } from '../enums';
|
|
4
4
|
import { SOPublicMenu, SOPublicCategory, SOPublicProduct, SOPublicProductAttribute, SOPublicProductAttributeCategory, SOPaymentMethod, SOValidateCart, SOOrderState, SOOrder, SOEater } from '../models/online-ordering';
|
|
5
5
|
import { RoundingMode } from '../enums/rounding-mode.enum';
|
|
@@ -205,6 +205,7 @@ export interface SOValidateMutationRequest {
|
|
|
205
205
|
*/
|
|
206
206
|
expectedPickupAt?: number;
|
|
207
207
|
cart: SOValidateCart;
|
|
208
|
+
customerEmail?: string;
|
|
208
209
|
}
|
|
209
210
|
/**
|
|
210
211
|
* @throw `SOOrderError`
|
|
@@ -263,7 +264,7 @@ export interface SOSendOrderRequest {
|
|
|
263
264
|
/** 內用桌ID serveType === dineIn 時有效 */
|
|
264
265
|
tableId?: string;
|
|
265
266
|
/** 折抵點數 */
|
|
266
|
-
|
|
267
|
+
points?: CustomerPointDetail[];
|
|
267
268
|
}
|
|
268
269
|
/**
|
|
269
270
|
* @throw `SOOrderError`
|
package/models/customer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaymentServiceProvider, PaymentType, ServeType } from '../enums';
|
|
2
|
-
import { MultiLanguageText, OrderDiscount, Quantity, OOReasonCode } from '../models';
|
|
2
|
+
import { MultiLanguageText, OrderDiscount, Quantity, OOReasonCode, CustomerPointDetail } from '../models';
|
|
3
3
|
import { Address, DayOfWeekTimePeriod } from './store';
|
|
4
4
|
export interface SOOrderError {
|
|
5
5
|
type: SOOrderErrorType;
|
|
@@ -143,7 +143,7 @@ export interface SOOrder {
|
|
|
143
143
|
transactionId?: string;
|
|
144
144
|
paymentServiceProvider?: PaymentServiceProvider;
|
|
145
145
|
/** 折抵點數 */
|
|
146
|
-
|
|
146
|
+
points?: CustomerPointDetail[];
|
|
147
147
|
}
|
|
148
148
|
export interface SOUnavailableCartItem {
|
|
149
149
|
menuItemType: 'product' | 'attribute';
|
package/models/order.d.ts
CHANGED
package/models/store.d.ts
CHANGED
|
@@ -190,6 +190,14 @@ export interface Store {
|
|
|
190
190
|
onlineStoreDeliveryFreeThresholdAmount?: number;
|
|
191
191
|
/** 最大外送距離(km) */
|
|
192
192
|
onlineStoreDeliveryDistanceLimit?: number;
|
|
193
|
+
/** Cognito user pool 登入的 OIDC provider */
|
|
194
|
+
onlineAvailableFederatedProvider?: string;
|
|
195
|
+
/** 是否開放訪客點餐 */
|
|
196
|
+
onlineAvailableGuest?: boolean;
|
|
197
|
+
/** 可以使用的使用者群組 */
|
|
198
|
+
onlineAvailableStoreUserGroup?: string;
|
|
199
|
+
/** 是否啟用集點 */
|
|
200
|
+
onlineStorePointsEnabled?: boolean;
|
|
193
201
|
}
|
|
194
202
|
export interface SimpleStore {
|
|
195
203
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.40.0-alpha.
|
|
3
|
+
"version": "0.40.0-alpha.3",
|
|
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": {
|