@trusted-solutions/sdit.models 0.18.0-alpha.10 → 0.18.0-alpha.14
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/enums/real-time-switch-type.d.ts +1 -1
- package/enums/real-time-switch-type.js +1 -1
- package/enums/real-time-switch-type.js.map +1 -1
- package/lambda/online-ordering.d.ts +4 -3
- package/lambda/request/real-time-switch.d.ts +10 -4
- package/models/online-ordering.d.ts +2 -0
- package/models/online-ordering.js.map +1 -1
- package/models/store.d.ts +3 -3
- package/package.json +1 -1
|
@@ -4,5 +4,5 @@ export declare enum RealTimeSwitchType {
|
|
|
4
4
|
ServeTypeDisableDineIn = "ServeTypeDisableDineIn",
|
|
5
5
|
ServeTypeDisableTakeout = "ServeTypeDisableTakeout",
|
|
6
6
|
DisableKiosk = "DisableKiosk",
|
|
7
|
-
|
|
7
|
+
OnlineOrderUntilOpen = "OnlineOrderUntilOpen"
|
|
8
8
|
}
|
|
@@ -8,6 +8,6 @@ var RealTimeSwitchType;
|
|
|
8
8
|
RealTimeSwitchType["ServeTypeDisableDineIn"] = "ServeTypeDisableDineIn";
|
|
9
9
|
RealTimeSwitchType["ServeTypeDisableTakeout"] = "ServeTypeDisableTakeout";
|
|
10
10
|
RealTimeSwitchType["DisableKiosk"] = "DisableKiosk";
|
|
11
|
-
RealTimeSwitchType["
|
|
11
|
+
RealTimeSwitchType["OnlineOrderUntilOpen"] = "OnlineOrderUntilOpen";
|
|
12
12
|
})(RealTimeSwitchType = exports.RealTimeSwitchType || (exports.RealTimeSwitchType = {}));
|
|
13
13
|
//# sourceMappingURL=real-time-switch-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"real-time-switch-type.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/real-time-switch-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,uDAAiC,CAAA;IACjC,yEAAmD,CAAA;IACnD,uEAAiD,CAAA;IACjD,yEAAmD,CAAA;IACnD,mDAA6B,CAAA;IAC7B,
|
|
1
|
+
{"version":3,"file":"real-time-switch-type.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/real-time-switch-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,uDAAiC,CAAA;IACjC,yEAAmD,CAAA;IACnD,uEAAiD,CAAA;IACjD,yEAAmD,CAAA;IACnD,mDAA6B,CAAA;IAC7B,mEAA6C,CAAA;AAC/C,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B"}
|
|
@@ -62,10 +62,11 @@ export interface SOGetStoreInfoResponse {
|
|
|
62
62
|
*/
|
|
63
63
|
buyerIdInputHidden: boolean;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
65
|
+
* 線上店到untilOpen之後可接單
|
|
66
|
+
* 設Infinity為永久停業
|
|
67
|
+
* @Default null
|
|
67
68
|
*/
|
|
68
|
-
|
|
69
|
+
untilOpen: number;
|
|
69
70
|
/**
|
|
70
71
|
* 是否使用線上點餐
|
|
71
72
|
* @Default false
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
import { RealTimeSwitchType } from '../../enums/real-time-switch-type';
|
|
2
|
-
export declare type RealTimeSwitchRequest = ProductRealTimeSwitchRequest | ProductAttributeRealTimeSwitchRequest | DisableDineInRealTimeSwitchRequest | DisableTakeoutRealTimeSwitchRequest | DisableKioskRealTimeSwitchRequest |
|
|
2
|
+
export declare type RealTimeSwitchRequest = ProductRealTimeSwitchRequest | ProductAttributeRealTimeSwitchRequest | DisableDineInRealTimeSwitchRequest | DisableTakeoutRealTimeSwitchRequest | DisableKioskRealTimeSwitchRequest | OnlineOrderUntilOpenSwitchRequest;
|
|
3
3
|
export interface BaseRealTimeSwitchRequest {
|
|
4
4
|
storeId: string;
|
|
5
5
|
type: RealTimeSwitchType;
|
|
6
|
-
value: boolean;
|
|
6
|
+
value: boolean | number;
|
|
7
7
|
}
|
|
8
8
|
export interface ProductRealTimeSwitchRequest extends BaseRealTimeSwitchRequest {
|
|
9
9
|
type: RealTimeSwitchType.ProductSoldOut;
|
|
10
10
|
productId: string;
|
|
11
|
+
value: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface ProductAttributeRealTimeSwitchRequest extends BaseRealTimeSwitchRequest {
|
|
13
14
|
type: RealTimeSwitchType.ProductAttributeSoldOut;
|
|
14
15
|
productAttributeId: string;
|
|
16
|
+
value: boolean;
|
|
15
17
|
}
|
|
16
18
|
export interface DisableDineInRealTimeSwitchRequest extends BaseRealTimeSwitchRequest {
|
|
17
19
|
type: RealTimeSwitchType.ServeTypeDisableDineIn;
|
|
20
|
+
value: boolean;
|
|
18
21
|
}
|
|
19
22
|
export interface DisableTakeoutRealTimeSwitchRequest extends BaseRealTimeSwitchRequest {
|
|
20
23
|
type: RealTimeSwitchType.ServeTypeDisableTakeout;
|
|
24
|
+
value: boolean;
|
|
21
25
|
}
|
|
22
26
|
export interface DisableKioskRealTimeSwitchRequest extends BaseRealTimeSwitchRequest {
|
|
23
27
|
type: RealTimeSwitchType.DisableKiosk;
|
|
28
|
+
value: boolean;
|
|
24
29
|
}
|
|
25
|
-
export interface
|
|
26
|
-
type: RealTimeSwitchType.
|
|
30
|
+
export interface OnlineOrderUntilOpenSwitchRequest extends BaseRealTimeSwitchRequest {
|
|
31
|
+
type: RealTimeSwitchType.OnlineOrderUntilOpen;
|
|
32
|
+
value: number;
|
|
27
33
|
}
|
|
@@ -119,6 +119,8 @@ export interface SOOrder {
|
|
|
119
119
|
actualPaymentMethod?: SOPaymentMethod;
|
|
120
120
|
/** 消費者付款時間 undefined為未付款 */
|
|
121
121
|
paidAt?: number;
|
|
122
|
+
/** 訂單被取消或拒絕後,已付款的退款時間 undefined 為未退款 */
|
|
123
|
+
refundedAt?: number;
|
|
122
124
|
}
|
|
123
125
|
export interface SOUnavailableCartItem {
|
|
124
126
|
menuItemType: 'product' | 'attribute';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAaX;AAbD,WAAY,gBAAgB;IAC1B,YAAY;IACZ,qDAAiC,CAAA;IACjC,eAAe;IACf,iEAA6C,CAAA;IAC7C,WAAW;IACX,+CAA2B,CAAA;IAC3B,aAAa;IACb,mDAA+B,CAAA;IAC/B,YAAY;IACZ,uDAAmC,CAAA;IACnC,gBAAgB;IAChB,uDAAmC,CAAA;AACrC,CAAC,EAbW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAa3B;AAgDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;
|
|
1
|
+
{"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAaX;AAbD,WAAY,gBAAgB;IAC1B,YAAY;IACZ,qDAAiC,CAAA;IACjC,eAAe;IACf,iEAA6C,CAAA;IAC7C,WAAW;IACX,+CAA2B,CAAA;IAC3B,aAAa;IACb,mDAA+B,CAAA;IAC/B,YAAY;IACZ,uDAAmC,CAAA;IACnC,gBAAgB;IAChB,uDAAmC,CAAA;AACrC,CAAC,EAbW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAa3B;AAgDD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAmFD,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACzC,sDAAmB,CAAA;IACnB,kEAA+B,CAAA;AACjC,CAAC,EAHW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAG1C;AA8BD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"}
|
package/models/store.d.ts
CHANGED
|
@@ -130,11 +130,11 @@ export interface Store {
|
|
|
130
130
|
*/
|
|
131
131
|
onlineBuyerIdInputHidden?: boolean;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
133
|
+
* 暫時停止營業直到onlineUntilOpen (時間戳記)
|
|
134
|
+
* 設Infinity為永久停業; null的話,看openingHours判斷是否營業中
|
|
135
135
|
* 使用 lambda func `realTimeSwitch` 來更新此 property
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
onlineUntilOpen?: number;
|
|
138
138
|
/**
|
|
139
139
|
* 是否使用線上點餐
|
|
140
140
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.18.0-alpha.
|
|
3
|
+
"version": "0.18.0-alpha.14",
|
|
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": {
|