@trusted-solutions/sdit.models 0.63.0-alpha.1 → 0.63.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.
|
@@ -23,11 +23,16 @@ export interface RejectOnlineOrderRequest {
|
|
|
23
23
|
operator: Operator;
|
|
24
24
|
reasonCode: OOReasonCode;
|
|
25
25
|
reason?: string;
|
|
26
|
+
releaseAvailability?: boolean;
|
|
26
27
|
}
|
|
27
28
|
export interface RejectOnlineOrderResponse {
|
|
28
29
|
storeId: string;
|
|
29
30
|
orderId: string;
|
|
30
31
|
partialUpdateOrder: Partial<Order>;
|
|
32
|
+
availabilityRelease?: {
|
|
33
|
+
released: boolean;
|
|
34
|
+
message?: string;
|
|
35
|
+
};
|
|
31
36
|
}
|
|
32
37
|
export interface CancelOnlineOrderRequest {
|
|
33
38
|
storeId: string;
|
|
@@ -35,12 +40,17 @@ export interface CancelOnlineOrderRequest {
|
|
|
35
40
|
operator: Operator;
|
|
36
41
|
reasonCode: OOReasonCode;
|
|
37
42
|
reason?: string;
|
|
43
|
+
releaseAvailability?: boolean;
|
|
38
44
|
}
|
|
39
45
|
export interface CancelOnlineOrderResponse {
|
|
40
46
|
storeId: string;
|
|
41
47
|
orderId: string;
|
|
42
48
|
partialUpdateOrder: Partial<Order>;
|
|
43
49
|
voidedReceipt?: Receipt;
|
|
50
|
+
availabilityRelease?: {
|
|
51
|
+
released: boolean;
|
|
52
|
+
message?: string;
|
|
53
|
+
};
|
|
44
54
|
}
|
|
45
55
|
export interface CompleteOnlineOrderRequest {
|
|
46
56
|
storeId: string;
|
|
@@ -160,10 +160,6 @@ export interface SOGetStoreInfoResponse {
|
|
|
160
160
|
* false: 不開放
|
|
161
161
|
*/
|
|
162
162
|
availableGuest?: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* LINE LIFF ID
|
|
165
|
-
*/
|
|
166
|
-
liffId?: string;
|
|
167
163
|
/**
|
|
168
164
|
* @deprecated Cognito專用,PoskyIdentity請改用 `userPoolWebClientIdV2`
|
|
169
165
|
*
|
|
@@ -209,6 +205,11 @@ export interface SOGetStoreInfoResponse {
|
|
|
209
205
|
* "subtotal+discount": serviceCharge = ((subtotal+discount) * servicePercent)
|
|
210
206
|
*/
|
|
211
207
|
serviceBase?: "subtotal" | "subtotal+discount";
|
|
208
|
+
/**
|
|
209
|
+
* LINE LIFF app id,用於 LIFF 初始化
|
|
210
|
+
* 由店家/品牌設定,無值時不初始化 LIFF
|
|
211
|
+
*/
|
|
212
|
+
liffId?: string;
|
|
212
213
|
}
|
|
213
214
|
/*******************************/
|
|
214
215
|
/*******************************/
|
|
@@ -378,6 +379,8 @@ export interface SOSendOrderResponse {
|
|
|
378
379
|
/** 消費者識別用 id的末五碼 == Order.serialNumber */
|
|
379
380
|
displayId: string;
|
|
380
381
|
isOnSitePayment: boolean;
|
|
382
|
+
/** 取餐號碼 */
|
|
383
|
+
posSerialNumber?: string;
|
|
381
384
|
}
|
|
382
385
|
/*******************************/
|
|
383
386
|
/*******************************/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Store, DailySummary, SimpleStore, TimeInfo } from "../../models";
|
|
1
|
+
import { Brand, Store, DailySummary, SimpleStore, TimeInfo } from "../../models";
|
|
2
2
|
import { SingleItem, MultipleItems, BatchResponse } from "./common";
|
|
3
3
|
/**
|
|
4
4
|
* Lambda result to kiosk-admin
|
|
@@ -12,6 +12,7 @@ export interface GetStoresResponse extends MultipleItems<SimpleStore> {
|
|
|
12
12
|
}
|
|
13
13
|
export interface GetStoreByIdResponse extends SingleItem<Store> {
|
|
14
14
|
}
|
|
15
|
+
export declare type GetBrandByStoreIdResponse = Brand | null;
|
|
15
16
|
export interface UpdateStoreResponse extends SingleItem<Store> {
|
|
16
17
|
}
|
|
17
18
|
export interface SetAdminPinCodeResponse {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trusted-solutions/sdit.models",
|
|
3
|
-
"version": "0.63.0-alpha.
|
|
3
|
+
"version": "0.63.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": {
|