@trusted-solutions/sdit.models 0.17.0-alpha.6 → 0.18.0-alpha.11
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/error-type.d.ts +5 -2
- package/enums/error-type.js +4 -0
- package/enums/error-type.js.map +1 -1
- package/enums/event.d.ts +2 -1
- package/enums/event.js +1 -0
- package/enums/event.js.map +1 -1
- package/enums/printer.d.ts +7 -1
- package/enums/printer.js +9 -1
- package/enums/printer.js.map +1 -1
- package/enums/real-time-switch-type.d.ts +2 -1
- package/enums/real-time-switch-type.js +1 -0
- package/enums/real-time-switch-type.js.map +1 -1
- package/lambda/index.d.ts +1 -0
- package/lambda/index.js +1 -0
- package/lambda/index.js.map +1 -1
- package/lambda/line-notify.d.ts +8 -0
- package/lambda/line-notify.js +5 -0
- package/lambda/line-notify.js.map +1 -0
- package/lambda/online-ordering.d.ts +0 -4
- package/lambda/request/real-time-switch.d.ts +5 -2
- package/models/menu.d.ts +13 -0
- package/models/online-integration.d.ts +1 -0
- package/models/online-integration.js +1 -0
- package/models/online-integration.js.map +1 -1
- package/models/online-ordering.d.ts +14 -2
- package/models/online-ordering.js +9 -0
- package/models/online-ordering.js.map +1 -1
- package/models/plugin/printer/printer-request.d.ts +1 -1
- package/models/plugin/printer/printer.d.ts +38 -13
- package/models/plugin/printer/printer.js +1 -18
- package/models/plugin/printer/printer.js.map +1 -1
- package/models/printer.d.ts +2 -2
- package/models/store.d.ts +9 -0
- package/package.json +2 -1
package/enums/error-type.d.ts
CHANGED
|
@@ -42,7 +42,8 @@ export declare enum ErrorType {
|
|
|
42
42
|
FilterExpressionException = "FilterExpressionException",
|
|
43
43
|
AkitaUnsupportedException = "AkitaUnsupportedException",
|
|
44
44
|
ResponseLengthException = "ResponseLengthException",
|
|
45
|
-
InconsistentStateException = "InconsistentStateException"
|
|
45
|
+
InconsistentStateException = "InconsistentStateException",
|
|
46
|
+
SOOrderException = "SOOrderException"
|
|
46
47
|
}
|
|
47
48
|
export declare enum ErrorMessage {
|
|
48
49
|
BadRequest = "\u8ACB\u6C42\u932F\u8AA4",
|
|
@@ -102,5 +103,7 @@ export declare enum ErrorMessage {
|
|
|
102
103
|
ShiftClosingPaymentDetailInconsistencyException = "\u907A\u6F0F\u6216\u6709\u91CD\u8907\u7684\u5C0F\u7D50\u4ED8\u6B3E\u660E\u7D30\uFF01",
|
|
103
104
|
BetweenValueException = "\u4F7F\u7528\u4ECB\u65BC\u904B\u7B97\u5B50\uFF0C\u524D\u503C\u9700\u5C0F\u65BC\u5F8C\u503C\uFF01",
|
|
104
105
|
AkitaUnsupportedException = "\u7576\u524D\u64CD\u4F5C\u4E0D\u652F\u63F4\u67F4\u72AC\u529F\u80FD\uFF0C\u8ACB\u4F7F\u7528\u9078\u9805\u7E5E\u904E\u7260\uFF01",
|
|
105
|
-
ResponseLengthException = "\u56DE\u61C9\u503C\u7684\u6578\u91CF\u8207\u9810\u671F\u4E0D\u7B26\uFF01"
|
|
106
|
+
ResponseLengthException = "\u56DE\u61C9\u503C\u7684\u6578\u91CF\u8207\u9810\u671F\u4E0D\u7B26\uFF01",
|
|
107
|
+
InconsistentStateException = "\u8A02\u55AE\u72C0\u614B\u5DF2\u904E\u671F\uFF0C\u8ACB\u91CD\u65B0\u8F09\u5165\u518D\u8A66\u4E00\u6B21",
|
|
108
|
+
SOOrderException = "\u8A02\u55AE\u932F\u8AA4"
|
|
106
109
|
}
|
package/enums/error-type.js
CHANGED
|
@@ -63,6 +63,7 @@ var ErrorType;
|
|
|
63
63
|
ErrorType["ResponseLengthException"] = "ResponseLengthException";
|
|
64
64
|
// online orders
|
|
65
65
|
ErrorType["InconsistentStateException"] = "InconsistentStateException";
|
|
66
|
+
ErrorType["SOOrderException"] = "SOOrderException";
|
|
66
67
|
})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
|
|
67
68
|
var ErrorMessage;
|
|
68
69
|
(function (ErrorMessage) {
|
|
@@ -138,5 +139,8 @@ var ErrorMessage;
|
|
|
138
139
|
// data service
|
|
139
140
|
ErrorMessage["AkitaUnsupportedException"] = "\u7576\u524D\u64CD\u4F5C\u4E0D\u652F\u63F4\u67F4\u72AC\u529F\u80FD\uFF0C\u8ACB\u4F7F\u7528\u9078\u9805\u7E5E\u904E\u7260\uFF01";
|
|
140
141
|
ErrorMessage["ResponseLengthException"] = "\u56DE\u61C9\u503C\u7684\u6578\u91CF\u8207\u9810\u671F\u4E0D\u7B26\uFF01";
|
|
142
|
+
// online orders
|
|
143
|
+
ErrorMessage["InconsistentStateException"] = "\u8A02\u55AE\u72C0\u614B\u5DF2\u904E\u671F\uFF0C\u8ACB\u91CD\u65B0\u8F09\u5165\u518D\u8A66\u4E00\u6B21";
|
|
144
|
+
ErrorMessage["SOOrderException"] = "\u8A02\u55AE\u932F\u8AA4";
|
|
141
145
|
})(ErrorMessage = exports.ErrorMessage || (exports.ErrorMessage = {}));
|
|
142
146
|
//# sourceMappingURL=error-type.js.map
|
package/enums/error-type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-type.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/error-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"error-type.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/error-type.ts"],"names":[],"mappings":"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"}
|
package/enums/event.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export declare enum EventNameEnum {
|
|
|
9
9
|
aggregateOrder = "aggregateOrder",
|
|
10
10
|
aggregateClosing = "aggregateClosing",
|
|
11
11
|
putInventory = "putInventory",
|
|
12
|
-
aggregateInventory = "aggregateInventory"
|
|
12
|
+
aggregateInventory = "aggregateInventory",
|
|
13
|
+
putReceipt = "putReceipt"
|
|
13
14
|
}
|
|
14
15
|
export declare enum EventEntityTypeEnum {
|
|
15
16
|
order = "order",
|
package/enums/event.js
CHANGED
|
@@ -14,6 +14,7 @@ var EventNameEnum;
|
|
|
14
14
|
EventNameEnum["aggregateClosing"] = "aggregateClosing";
|
|
15
15
|
EventNameEnum["putInventory"] = "putInventory";
|
|
16
16
|
EventNameEnum["aggregateInventory"] = "aggregateInventory";
|
|
17
|
+
EventNameEnum["putReceipt"] = "putReceipt";
|
|
17
18
|
})(EventNameEnum = exports.EventNameEnum || (exports.EventNameEnum = {}));
|
|
18
19
|
var EventEntityTypeEnum;
|
|
19
20
|
(function (EventEntityTypeEnum) {
|
package/enums/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/event.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/event.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAaX;AAbD,WAAY,aAAa;IACrB,kEAAiD,CAAA;IACjD,sEAAqD,CAAA;IACrD,0EAAyD,CAAA;IACzD,sDAAqC,CAAA;IACrC,8DAA6C,CAAA;IAC7C,0EAAyD,CAAA;IACzD,0DAAyC,CAAA;IACzC,kDAAiC,CAAA;IACjC,sDAAqC,CAAA;IACrC,8CAA6B,CAAA;IAC7B,0DAAyC,CAAA;IACzC,0CAAyB,CAAA;AAC7B,CAAC,EAbW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAaxB;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,0CAAmB,CAAA;AACvB,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;AACrB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,uCAAyB,CAAA;IACzB,2CAA6B,CAAA;AACjC,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
|
package/enums/printer.d.ts
CHANGED
|
@@ -5,7 +5,13 @@ export declare enum PrinterInstructionType {
|
|
|
5
5
|
export declare enum PaperWidth {
|
|
6
6
|
width3_5 = 0,
|
|
7
7
|
width5_7 = 1,
|
|
8
|
-
width8_0 = 2
|
|
8
|
+
width8_0 = 2,
|
|
9
|
+
width4_0 = 3
|
|
10
|
+
}
|
|
11
|
+
export declare enum PaperHeight {
|
|
12
|
+
unset = 0,
|
|
13
|
+
height2_5 = 1,
|
|
14
|
+
height3_0 = 2
|
|
9
15
|
}
|
|
10
16
|
export declare enum Justification {
|
|
11
17
|
left = 0,
|
package/enums/printer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServeTypeAndFloorExcludeType = exports.SplitMethodEnum = exports.PrintingRuleType = exports.Justification = exports.PaperWidth = exports.PrinterInstructionType = void 0;
|
|
3
|
+
exports.ServeTypeAndFloorExcludeType = exports.SplitMethodEnum = exports.PrintingRuleType = exports.Justification = exports.PaperHeight = exports.PaperWidth = exports.PrinterInstructionType = void 0;
|
|
4
4
|
var PrinterInstructionType;
|
|
5
5
|
(function (PrinterInstructionType) {
|
|
6
6
|
PrinterInstructionType[PrinterInstructionType["ESC"] = 0] = "ESC";
|
|
@@ -11,7 +11,15 @@ var PaperWidth;
|
|
|
11
11
|
PaperWidth[PaperWidth["width3_5"] = 0] = "width3_5";
|
|
12
12
|
PaperWidth[PaperWidth["width5_7"] = 1] = "width5_7";
|
|
13
13
|
PaperWidth[PaperWidth["width8_0"] = 2] = "width8_0";
|
|
14
|
+
// Due to data stored in DB, new enum should only be placed to the bottom.
|
|
15
|
+
PaperWidth[PaperWidth["width4_0"] = 3] = "width4_0";
|
|
14
16
|
})(PaperWidth = exports.PaperWidth || (exports.PaperWidth = {}));
|
|
17
|
+
var PaperHeight;
|
|
18
|
+
(function (PaperHeight) {
|
|
19
|
+
PaperHeight[PaperHeight["unset"] = 0] = "unset";
|
|
20
|
+
PaperHeight[PaperHeight["height2_5"] = 1] = "height2_5";
|
|
21
|
+
PaperHeight[PaperHeight["height3_0"] = 2] = "height3_0";
|
|
22
|
+
})(PaperHeight = exports.PaperHeight || (exports.PaperHeight = {}));
|
|
15
23
|
var Justification;
|
|
16
24
|
(function (Justification) {
|
|
17
25
|
Justification[Justification["left"] = 0] = "left";
|
package/enums/printer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printer.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/printer.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;
|
|
1
|
+
{"version":3,"file":"printer.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/enums/printer.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,iEAAO,CAAA;IACP,mEAAQ,CAAA;AACV,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,mDAAY,CAAA;IACZ,mDAAY,CAAA;IACZ,mDAAY,CAAA;IACZ,0EAA0E;IAC1E,mDAAY,CAAA;AACd,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,+CAAS,CAAA;IACT,uDAAa,CAAA;IACb,uDAAa,CAAA;AACf,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,iDAAQ,CAAA;IACR,yDAAY,CAAA;IACZ,mDAAS,CAAA;AACX,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;AACrB,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B;AAED,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;AAC3B,CAAC,EALW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAK1B;AAED,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,mDAAmB,CAAA;IACnB,uDAAuB,CAAA;AACzB,CAAC,EAHW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAGvC"}
|
|
@@ -3,5 +3,6 @@ export declare enum RealTimeSwitchType {
|
|
|
3
3
|
ProductAttributeSoldOut = "ProductAttributeSoldOut",
|
|
4
4
|
ServeTypeDisableDineIn = "ServeTypeDisableDineIn",
|
|
5
5
|
ServeTypeDisableTakeout = "ServeTypeDisableTakeout",
|
|
6
|
-
DisableKiosk = "DisableKiosk"
|
|
6
|
+
DisableKiosk = "DisableKiosk",
|
|
7
|
+
OnlineOrderClosed = "OnlineOrderClosed"
|
|
7
8
|
}
|
|
@@ -8,5 +8,6 @@ var RealTimeSwitchType;
|
|
|
8
8
|
RealTimeSwitchType["ServeTypeDisableDineIn"] = "ServeTypeDisableDineIn";
|
|
9
9
|
RealTimeSwitchType["ServeTypeDisableTakeout"] = "ServeTypeDisableTakeout";
|
|
10
10
|
RealTimeSwitchType["DisableKiosk"] = "DisableKiosk";
|
|
11
|
+
RealTimeSwitchType["OnlineOrderClosed"] = "OnlineOrderClosed";
|
|
11
12
|
})(RealTimeSwitchType = exports.RealTimeSwitchType || (exports.RealTimeSwitchType = {}));
|
|
12
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;
|
|
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,6DAAuC,CAAA;AACzC,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B"}
|
package/lambda/index.d.ts
CHANGED
package/lambda/index.js
CHANGED
|
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./request"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./response"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./online-integration"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./online-ordering"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./line-notify"), exports);
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
package/lambda/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/lambda/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,oDAA0B;AAC1B,qDAA2B;AAG3B,+DAAqC;AACrC,4DAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/lambda/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,oDAA0B;AAC1B,qDAA2B;AAG3B,+DAAqC;AACrC,4DAAkC;AAElC,wDAA8B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*******************************/
|
|
2
|
+
/*******************************/
|
|
3
|
+
export interface AuthLineNotifyAccessTokenRequest {
|
|
4
|
+
redirectUrl: string;
|
|
5
|
+
code: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type AuthLineNotifyAccessTokenResponse = null;
|
|
8
|
+
export declare const COGNITO_LINE_NOTIFY_TOKEN_ATTR = "custom:line_notify_token";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"line-notify.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/lambda/line-notify.ts"],"names":[],"mappings":";;;AAUa,QAAA,8BAA8B,GAAG,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RealTimeSwitchType } from
|
|
2
|
-
export declare type RealTimeSwitchRequest = ProductRealTimeSwitchRequest | ProductAttributeRealTimeSwitchRequest | DisableDineInRealTimeSwitchRequest | DisableTakeoutRealTimeSwitchRequest | DisableKioskRealTimeSwitchRequest;
|
|
1
|
+
import { RealTimeSwitchType } from '../../enums/real-time-switch-type';
|
|
2
|
+
export declare type RealTimeSwitchRequest = ProductRealTimeSwitchRequest | ProductAttributeRealTimeSwitchRequest | DisableDineInRealTimeSwitchRequest | DisableTakeoutRealTimeSwitchRequest | DisableKioskRealTimeSwitchRequest | OnlineOrderClosedSwitchRequest;
|
|
3
3
|
export interface BaseRealTimeSwitchRequest {
|
|
4
4
|
storeId: string;
|
|
5
5
|
type: RealTimeSwitchType;
|
|
@@ -22,3 +22,6 @@ export interface DisableTakeoutRealTimeSwitchRequest extends BaseRealTimeSwitchR
|
|
|
22
22
|
export interface DisableKioskRealTimeSwitchRequest extends BaseRealTimeSwitchRequest {
|
|
23
23
|
type: RealTimeSwitchType.DisableKiosk;
|
|
24
24
|
}
|
|
25
|
+
export interface OnlineOrderClosedSwitchRequest extends BaseRealTimeSwitchRequest {
|
|
26
|
+
type: RealTimeSwitchType.OnlineOrderClosed;
|
|
27
|
+
}
|
package/models/menu.d.ts
CHANGED
|
@@ -37,6 +37,11 @@ export interface Product {
|
|
|
37
37
|
attributeIds: string[];
|
|
38
38
|
tax: Tax;
|
|
39
39
|
sort: number;
|
|
40
|
+
/**
|
|
41
|
+
* @readonly
|
|
42
|
+
* 是否售完。
|
|
43
|
+
* 使用 lambda func `realTimeSwitch` 來更新此 property
|
|
44
|
+
*/
|
|
40
45
|
soldOut: boolean;
|
|
41
46
|
externals?: External[];
|
|
42
47
|
discountModules?: ItemDiscountModule[];
|
|
@@ -51,6 +56,11 @@ export interface ProductAttribute {
|
|
|
51
56
|
additionalAmount: number;
|
|
52
57
|
sort: number;
|
|
53
58
|
storeTemplateId?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @readonly
|
|
61
|
+
* 是否售完。
|
|
62
|
+
* 使用 lambda func `realTimeSwitch` 來更新此 property
|
|
63
|
+
*/
|
|
54
64
|
soldOut?: boolean;
|
|
55
65
|
disableOnline?: boolean;
|
|
56
66
|
disableKiosk?: boolean;
|
|
@@ -60,6 +70,9 @@ export interface ProductAttributeCategory {
|
|
|
60
70
|
name: string;
|
|
61
71
|
nameLang?: Language[];
|
|
62
72
|
sort: number;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated 改由 `quantity` 判斷
|
|
75
|
+
*/
|
|
63
76
|
multiSelect?: boolean;
|
|
64
77
|
quantity?: Quantity;
|
|
65
78
|
storeTemplateId?: string;
|
|
@@ -24,6 +24,7 @@ export declare enum OOReasonCode {
|
|
|
24
24
|
OUT_OF_ITEMS = "OUT_OF_ITEMS",
|
|
25
25
|
CUSTOMER_CALLED_TO_CANCEL = "CUSTOMER_CALLED_TO_CANCEL",
|
|
26
26
|
CANNOT_COMPLETE_CUSTOMER_NOTE = "CANNOT_COMPLETE_CUSTOMER_NOTE",
|
|
27
|
+
PAYMENT_EXPIRED = "PAYMENT_EXPIRED",
|
|
27
28
|
OTHER = "OTHER"
|
|
28
29
|
}
|
|
29
30
|
export declare enum OMEntityType {
|
|
@@ -31,6 +31,7 @@ var OOReasonCode;
|
|
|
31
31
|
OOReasonCode["OUT_OF_ITEMS"] = "OUT_OF_ITEMS";
|
|
32
32
|
OOReasonCode["CUSTOMER_CALLED_TO_CANCEL"] = "CUSTOMER_CALLED_TO_CANCEL";
|
|
33
33
|
OOReasonCode["CANNOT_COMPLETE_CUSTOMER_NOTE"] = "CANNOT_COMPLETE_CUSTOMER_NOTE";
|
|
34
|
+
OOReasonCode["PAYMENT_EXPIRED"] = "PAYMENT_EXPIRED";
|
|
34
35
|
OOReasonCode["OTHER"] = "OTHER";
|
|
35
36
|
})(OOReasonCode = exports.OOReasonCode || (exports.OOReasonCode = {}));
|
|
36
37
|
var OMEntityType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"online-integration.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-integration.ts"],"names":[],"mappings":";;;AAEA,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,wDAAuB,CAAA;IACvB,kEAAiC,CAAA;IACjC,oDAAmB,CAAA;AACrB,CAAC,EAJW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAIxC;AAID,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2DAAQ,CAAA;IACR,2DAAQ,CAAA;IACR,+EAAkB,CAAA;AACpB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAGD,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,mEAAuC,CAAA;AACzC,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,mCAAa,CAAA;AACf,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"online-integration.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-integration.ts"],"names":[],"mappings":";;;AAEA,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,wDAAuB,CAAA;IACvB,kEAAiC,CAAA;IACjC,oDAAmB,CAAA;AACrB,CAAC,EAJW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAIxC;AAID,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,2DAAQ,CAAA;IACR,2DAAQ,CAAA;IACR,+EAAkB,CAAA;AACpB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAGD,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,mEAAuC,CAAA;AACzC,CAAC,EAHW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAGnC;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,+CAAyB,CAAA;IACzB,mCAAa,CAAA;AACf,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,2DAA2C,CAAA;IAC3C,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,uEAAuD,CAAA;IACvD,+EAA+D,CAAA;IAC/D,mDAAmC,CAAA;IACnC,+BAAe,CAAA;AACjB,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AAID,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,iDAAiC,CAAA;AACnC,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
|
|
@@ -9,9 +9,17 @@ export interface SOOrderError {
|
|
|
9
9
|
unavailableCartItems?: SOUnavailableCartItem[];
|
|
10
10
|
}
|
|
11
11
|
export declare enum SOOrderErrorType {
|
|
12
|
+
/** 未啟用菜單 */
|
|
13
|
+
menuNotEnabled = "menuNotEnabled",
|
|
14
|
+
/** 菜單超出販售時間 */
|
|
15
|
+
menuOutOfServiceTime = "menuOutOfServiceTime",
|
|
16
|
+
/** 品項售完 */
|
|
12
17
|
itemSoldOut = "itemSoldOut",
|
|
18
|
+
/** 品項金額改變 */
|
|
13
19
|
amountChanged = "amountChanged",
|
|
20
|
+
/** 不開放點餐 */
|
|
14
21
|
storeNotOpening = "storeNotOpening",
|
|
22
|
+
/** 未啟用線上點餐功能 */
|
|
15
23
|
storeNotEnabled = "storeNotEnabled"
|
|
16
24
|
}
|
|
17
25
|
export interface SOPaymentMethod {
|
|
@@ -54,7 +62,8 @@ export interface SOEater {
|
|
|
54
62
|
}
|
|
55
63
|
export declare enum SOOperateParty {
|
|
56
64
|
store = "store",
|
|
57
|
-
buyer = "buyer"
|
|
65
|
+
buyer = "buyer",
|
|
66
|
+
system = "system"
|
|
58
67
|
}
|
|
59
68
|
export interface SOCart {
|
|
60
69
|
items: SOCartItem[];
|
|
@@ -110,6 +119,8 @@ export interface SOOrder {
|
|
|
110
119
|
actualPaymentMethod?: SOPaymentMethod;
|
|
111
120
|
/** 消費者付款時間 undefined為未付款 */
|
|
112
121
|
paidAt?: number;
|
|
122
|
+
/** 訂單被取消或拒絕後,已付款的退款時間 undefined 為未退款 */
|
|
123
|
+
refundedAt?: number;
|
|
113
124
|
}
|
|
114
125
|
export interface SOUnavailableCartItem {
|
|
115
126
|
menuItemType: 'product' | 'attribute';
|
|
@@ -129,6 +140,8 @@ export interface SOValidateCart {
|
|
|
129
140
|
export interface SOValidateCartItem {
|
|
130
141
|
/** 前端決定 cart item Id (timestamp ms) */
|
|
131
142
|
id: string;
|
|
143
|
+
/** 此品項由哪一個菜單id加入購物車 */
|
|
144
|
+
menuId: string;
|
|
132
145
|
productCategoryId: string;
|
|
133
146
|
productId: string;
|
|
134
147
|
/** 原單價 */
|
|
@@ -194,7 +207,6 @@ export interface SOPublicProductAttributeCategory {
|
|
|
194
207
|
id: string;
|
|
195
208
|
name: MultiLanguageText;
|
|
196
209
|
sort: number;
|
|
197
|
-
multiSelect?: boolean;
|
|
198
210
|
quantity?: Quantity;
|
|
199
211
|
storeTemplateId?: string;
|
|
200
212
|
}
|
|
@@ -3,15 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SOOrderState = exports.SOUnavailableCartItemReasonCode = exports.SOOperateParty = exports.SOOrderErrorType = void 0;
|
|
4
4
|
var SOOrderErrorType;
|
|
5
5
|
(function (SOOrderErrorType) {
|
|
6
|
+
/** 未啟用菜單 */
|
|
7
|
+
SOOrderErrorType["menuNotEnabled"] = "menuNotEnabled";
|
|
8
|
+
/** 菜單超出販售時間 */
|
|
9
|
+
SOOrderErrorType["menuOutOfServiceTime"] = "menuOutOfServiceTime";
|
|
10
|
+
/** 品項售完 */
|
|
6
11
|
SOOrderErrorType["itemSoldOut"] = "itemSoldOut";
|
|
12
|
+
/** 品項金額改變 */
|
|
7
13
|
SOOrderErrorType["amountChanged"] = "amountChanged";
|
|
14
|
+
/** 不開放點餐 */
|
|
8
15
|
SOOrderErrorType["storeNotOpening"] = "storeNotOpening";
|
|
16
|
+
/** 未啟用線上點餐功能 */
|
|
9
17
|
SOOrderErrorType["storeNotEnabled"] = "storeNotEnabled";
|
|
10
18
|
})(SOOrderErrorType = exports.SOOrderErrorType || (exports.SOOrderErrorType = {}));
|
|
11
19
|
var SOOperateParty;
|
|
12
20
|
(function (SOOperateParty) {
|
|
13
21
|
SOOperateParty["store"] = "store";
|
|
14
22
|
SOOperateParty["buyer"] = "buyer";
|
|
23
|
+
SOOperateParty["system"] = "system";
|
|
15
24
|
})(SOOperateParty = exports.SOOperateParty || (exports.SOOperateParty = {}));
|
|
16
25
|
var SOUnavailableCartItemReasonCode;
|
|
17
26
|
(function (SOUnavailableCartItemReasonCode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,
|
|
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"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { Justification, PaperHeight, PaperWidth, PrinterInstructionType } from '../../../enums';
|
|
2
|
+
import { PeripheralEventType } from '../peripheral.model';
|
|
1
3
|
export interface PrinterTaskRequest {
|
|
2
4
|
id: string;
|
|
3
5
|
data: {
|
|
4
6
|
htmlString: string;
|
|
5
7
|
paperWidth: PaperWidth;
|
|
8
|
+
paperHeight?: PaperHeight;
|
|
6
9
|
justification?: Justification;
|
|
7
10
|
};
|
|
8
11
|
ip?: string;
|
|
@@ -12,7 +15,7 @@ export interface PrinterTaskRequest {
|
|
|
12
15
|
printerInstructionType?: PrinterInstructionType;
|
|
13
16
|
meta?: {
|
|
14
17
|
virtualPrinterId?: string;
|
|
15
|
-
|
|
18
|
+
printingRuleId?: string;
|
|
16
19
|
orderId?: string;
|
|
17
20
|
receiptId?: string;
|
|
18
21
|
[key: string]: any;
|
|
@@ -23,21 +26,43 @@ export interface PrinterTaskResponse extends PrinterTaskRequest {
|
|
|
23
26
|
errorCode: number;
|
|
24
27
|
message?: string;
|
|
25
28
|
}
|
|
29
|
+
export interface BatchPrintRequest {
|
|
30
|
+
id: string;
|
|
31
|
+
connectConfig: PrintConnectConfig;
|
|
32
|
+
data: PrintData[];
|
|
33
|
+
openDrawerAfterPrint?: boolean;
|
|
34
|
+
meta: {
|
|
35
|
+
virtualPrinterId?: string;
|
|
36
|
+
ruleId?: string;
|
|
37
|
+
orderId?: string;
|
|
38
|
+
receiptId?: string;
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface BatchPrintRequestPayload {
|
|
43
|
+
batchPrintRequests: BatchPrintRequest[];
|
|
44
|
+
}
|
|
45
|
+
export interface BatchPrintResponse {
|
|
46
|
+
id: string;
|
|
47
|
+
isSuccess: boolean;
|
|
48
|
+
errorCode?: string;
|
|
49
|
+
errorMsg?: string;
|
|
50
|
+
transportEventType: PeripheralEventType;
|
|
51
|
+
}
|
|
26
52
|
export declare enum PrinterActionEnum {
|
|
27
53
|
printHtml = 0,
|
|
28
54
|
openCashDrawer = 1
|
|
29
55
|
}
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
56
|
+
export interface PrintConnectConfig {
|
|
57
|
+
ip?: string;
|
|
58
|
+
vendorId?: number;
|
|
59
|
+
productId?: number;
|
|
60
|
+
isInnerPrinter?: boolean;
|
|
61
|
+
printerInstructionType?: PrinterInstructionType;
|
|
62
|
+
paperWidth: PaperWidth;
|
|
63
|
+
paperHeight?: PaperHeight;
|
|
64
|
+
justification?: Justification;
|
|
38
65
|
}
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
centered = 1,
|
|
42
|
-
right = 2
|
|
66
|
+
export interface PrintData {
|
|
67
|
+
htmlString: string;
|
|
43
68
|
}
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PrinterActionEnum = void 0;
|
|
4
4
|
var PrinterActionEnum;
|
|
5
5
|
(function (PrinterActionEnum) {
|
|
6
6
|
PrinterActionEnum[PrinterActionEnum["printHtml"] = 0] = "printHtml";
|
|
7
7
|
PrinterActionEnum[PrinterActionEnum["openCashDrawer"] = 1] = "openCashDrawer";
|
|
8
8
|
})(PrinterActionEnum = exports.PrinterActionEnum || (exports.PrinterActionEnum = {}));
|
|
9
|
-
var PrinterInstructionType;
|
|
10
|
-
(function (PrinterInstructionType) {
|
|
11
|
-
PrinterInstructionType[PrinterInstructionType["ESC"] = 0] = "ESC";
|
|
12
|
-
PrinterInstructionType[PrinterInstructionType["EZPL"] = 1] = "EZPL";
|
|
13
|
-
})(PrinterInstructionType = exports.PrinterInstructionType || (exports.PrinterInstructionType = {}));
|
|
14
|
-
var PaperWidth;
|
|
15
|
-
(function (PaperWidth) {
|
|
16
|
-
PaperWidth[PaperWidth["width3_5"] = 0] = "width3_5";
|
|
17
|
-
PaperWidth[PaperWidth["width5_7"] = 1] = "width5_7";
|
|
18
|
-
PaperWidth[PaperWidth["width8_0"] = 2] = "width8_0";
|
|
19
|
-
})(PaperWidth = exports.PaperWidth || (exports.PaperWidth = {}));
|
|
20
|
-
var Justification;
|
|
21
|
-
(function (Justification) {
|
|
22
|
-
Justification[Justification["left"] = 0] = "left";
|
|
23
|
-
Justification[Justification["centered"] = 1] = "centered";
|
|
24
|
-
Justification[Justification["right"] = 2] = "right";
|
|
25
|
-
})(Justification = exports.Justification || (exports.Justification = {}));
|
|
26
9
|
//# sourceMappingURL=printer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printer.js","sourceRoot":"","sources":["../../../../../projects/sdit-model-lib/src/models/plugin/printer/printer.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"printer.js","sourceRoot":"","sources":["../../../../../projects/sdit-model-lib/src/models/plugin/printer/printer.ts"],"names":[],"mappings":";;;AA0DA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,mEAAS,CAAA;IACT,6EAAc,CAAA;AAChB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
|
package/models/printer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PrinterInstructionType, PrintingRuleType, SplitMethodEnum, PaperWidth, Justification, ServeTypeAndFloorExcludeType } from '../enums/printer';
|
|
1
|
+
import { PrinterInstructionType, PrintingRuleType, SplitMethodEnum, PaperWidth, Justification, ServeTypeAndFloorExcludeType, PaperHeight } from '../enums/printer';
|
|
2
2
|
import { ServeType } from '../enums/serve-type';
|
|
3
3
|
import { TypeValue } from './utils';
|
|
4
4
|
export interface VirtualPrinter {
|
|
@@ -7,7 +7,7 @@ export interface VirtualPrinter {
|
|
|
7
7
|
name: string;
|
|
8
8
|
instruction: PrinterInstructionType;
|
|
9
9
|
paperWidth: PaperWidth;
|
|
10
|
-
paperHeight?:
|
|
10
|
+
paperHeight?: PaperHeight;
|
|
11
11
|
justification: Justification;
|
|
12
12
|
enabled: boolean;
|
|
13
13
|
}
|
package/models/store.d.ts
CHANGED
|
@@ -40,6 +40,9 @@ export interface Store {
|
|
|
40
40
|
*/
|
|
41
41
|
kioskPaymentConfigs?: PaymentConfig[];
|
|
42
42
|
/**
|
|
43
|
+
* @readonly
|
|
44
|
+
* 使用 lambda func `realTimeSwitch` 來更新此 property
|
|
45
|
+
*
|
|
43
46
|
* if value is undefined, default value regarding as a
|
|
44
47
|
* ```
|
|
45
48
|
* {
|
|
@@ -60,6 +63,10 @@ export interface Store {
|
|
|
60
63
|
* ```
|
|
61
64
|
*/
|
|
62
65
|
customerConfig?: CustomerConfig;
|
|
66
|
+
/**
|
|
67
|
+
* @readonly
|
|
68
|
+
* 使用 lambda func `realTimeSwitch` 來更新此 property
|
|
69
|
+
*/
|
|
63
70
|
kioskDisabled?: boolean;
|
|
64
71
|
flowConfig?: FlowConfig;
|
|
65
72
|
multiplePaymentConfigs?: MultiplePaymentConfig[];
|
|
@@ -123,7 +130,9 @@ export interface Store {
|
|
|
123
130
|
*/
|
|
124
131
|
onlineBuyerIdInputHidden?: boolean;
|
|
125
132
|
/**
|
|
133
|
+
* @readonly
|
|
126
134
|
* 線上店是否營業中可接單
|
|
135
|
+
* 使用 lambda func `realTimeSwitch` 來更新此 property
|
|
127
136
|
*/
|
|
128
137
|
onlineIsOpen?: boolean;
|
|
129
138
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0-alpha.11",
|
|
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": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"moment": "^2.29.1",
|
|
18
|
+
"tslib": "^2.0.0",
|
|
18
19
|
"uuid": "^8.3.1"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|