@trusted-solutions/sdit.models 0.18.0-alpha.1 → 0.18.0-alpha.5

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/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './request';
3
3
  export * from './response';
4
4
  export * from './online-integration';
5
5
  export * from './online-ordering';
6
+ export * from './line-notify';
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
@@ -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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COGNITO_LINE_NOTIFY_TOKEN_ATTR = void 0;
4
+ exports.COGNITO_LINE_NOTIFY_TOKEN_ATTR = 'custom:line_notify_token';
5
+ //# sourceMappingURL=line-notify.js.map
@@ -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"}
@@ -134,10 +134,6 @@ export interface SOValidateMutationResponse {
134
134
  * 總折扣金額
135
135
  */
136
136
  totalDiscountAmount: number;
137
- /**
138
- * 稅額
139
- */
140
- taxAmount: number;
141
137
  /**
142
138
  * 結帳金額
143
139
  */
@@ -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 {
@@ -129,6 +137,8 @@ export interface SOValidateCart {
129
137
  export interface SOValidateCartItem {
130
138
  /** 前端決定 cart item Id (timestamp ms) */
131
139
  id: string;
140
+ /** 此品項由哪一個菜單id加入購物車 */
141
+ menuId: string;
132
142
  productCategoryId: string;
133
143
  productId: string;
134
144
  /** 原單價 */
@@ -3,9 +3,17 @@ 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;
@@ -1 +1 @@
1
- {"version":3,"file":"online-ordering.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/models/online-ordering.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,mDAA+B,CAAA;IAC/B,uDAAmC,CAAA;IACnC,uDAAmC,CAAA;AACrC,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B;AAgDD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAkFD,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;AA4BD,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
+ {"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,cAGX;AAHD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAkFD,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.18.0-alpha.1",
3
+ "version": "0.18.0-alpha.5",
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": {