gap-nodejs-sdk 1.0.26 → 1.0.27
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/dist/gap-sdk.js +1 -1
- package/dist/pos_client_api/1.0.0/api/check_out.d.ts +6 -6
- package/dist/pos_client_api/1.0.0/api/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/check_out.js +18 -6
- package/dist/pos_client_api/1.0.0/api/payroll.d.ts +1 -2
- package/dist/pos_client_api/1.0.0/api/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/payroll.js +1 -2
- package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts +1 -2
- package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/call.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/interfaces/call.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/category.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/interfaces/category.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/check_in.d.ts +4 -5
- package/dist/pos_client_api/1.0.0/interfaces/check_in.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts +34 -31
- package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/combo.d.ts +3 -3
- package/dist/pos_client_api/1.0.0/interfaces/combo.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/customer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/gift_card.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/income.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/order.d.ts +8 -8
- package/dist/pos_client_api/1.0.0/interfaces/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/payroll.d.ts +17 -18
- package/dist/pos_client_api/1.0.0/interfaces/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/printer.d.ts +5 -5
- package/dist/pos_client_api/1.0.0/interfaces/printer.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/service.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/interfaces/service.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts +3 -3
- package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/staff.d.ts +3 -3
- package/dist/pos_client_api/1.0.0/interfaces/staff.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts +8 -8
- package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts +8 -9
- package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/user.d.ts +2 -2
- package/dist/pos_client_api/1.0.0/interfaces/user.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/batch_history.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/batch_history.js +26 -23
- package/dist/pos_client_api/1.0.0/models/check_out.d.ts +2 -0
- package/dist/pos_client_api/1.0.0/models/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/check_out.js +18 -0
- package/dist/pos_client_api/1.0.0/models/income.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/key_storage.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/batch_history.d.ts +29 -28
- package/dist/pos_client_api/1.0.0/types/response/batch_history.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/category.d.ts +11 -10
- package/dist/pos_client_api/1.0.0/types/response/category.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts +7 -6
- package/dist/pos_client_api/1.0.0/types/response/check_in.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts +16 -0
- package/dist/pos_client_api/1.0.0/types/response/check_out.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/combo.d.ts +25 -24
- package/dist/pos_client_api/1.0.0/types/response/combo.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/income.d.ts +23 -22
- package/dist/pos_client_api/1.0.0/types/response/income.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/key_storage.d.ts +26 -25
- package/dist/pos_client_api/1.0.0/types/response/key_storage.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/order.d.ts +91 -90
- package/dist/pos_client_api/1.0.0/types/response/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts +75 -74
- package/dist/pos_client_api/1.0.0/types/response/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/staff.d.ts +10 -9
- package/dist/pos_client_api/1.0.0/types/response/staff.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { Nullable } from "../../../../base_type";
|
|
2
|
-
|
|
3
|
-
user_id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
image_url?: string;
|
|
6
|
-
color_code: string;
|
|
7
|
-
code: number;
|
|
8
|
-
status: number;
|
|
9
|
-
permission: GetStaffDailyIncomeResponsePermission[];
|
|
10
|
-
setting_commission: boolean;
|
|
11
|
-
income: GetStaffDailyIncomeResponseIncome;
|
|
12
|
-
daily_service: any[];
|
|
13
|
-
}>;
|
|
14
|
-
export declare type GetStaffDailyIncomeResponsePermission = Nullable<{
|
|
2
|
+
declare type Permission = Nullable<{
|
|
15
3
|
id: number;
|
|
16
4
|
name: string;
|
|
17
5
|
type: string;
|
|
@@ -19,7 +7,7 @@ export declare type GetStaffDailyIncomeResponsePermission = Nullable<{
|
|
|
19
7
|
created_at: string;
|
|
20
8
|
updated_at: string;
|
|
21
9
|
}>;
|
|
22
|
-
|
|
10
|
+
declare type Income = Nullable<{
|
|
23
11
|
commission: number;
|
|
24
12
|
tip: number;
|
|
25
13
|
working_hours: number;
|
|
@@ -34,13 +22,7 @@ export declare type GetStaffDailyIncomeResponseIncome = Nullable<{
|
|
|
34
22
|
check_income: number;
|
|
35
23
|
wage_per_hours: boolean;
|
|
36
24
|
}>;
|
|
37
|
-
|
|
38
|
-
title: string;
|
|
39
|
-
income: number;
|
|
40
|
-
summary: GetIncomeHistoryResponseSummary;
|
|
41
|
-
batches: GetIncomeHistoryResponseBatches[];
|
|
42
|
-
}>;
|
|
43
|
-
export declare type GetIncomeHistoryResponseSummary = Nullable<{
|
|
25
|
+
declare type Summary = Nullable<{
|
|
44
26
|
date: any;
|
|
45
27
|
display_date: any;
|
|
46
28
|
display_date_time: any;
|
|
@@ -62,10 +44,29 @@ export declare type GetIncomeHistoryResponseSummary = Nullable<{
|
|
|
62
44
|
deposit: number;
|
|
63
45
|
total: number;
|
|
64
46
|
}>;
|
|
65
|
-
|
|
47
|
+
declare type Batches = Nullable<{
|
|
66
48
|
order_id: number;
|
|
67
49
|
customer_name: string;
|
|
68
50
|
total_income: number;
|
|
69
51
|
subtotal: number;
|
|
70
52
|
}>;
|
|
53
|
+
export declare type GetStaffDailyIncomeResponse = Nullable<{
|
|
54
|
+
user_id: number;
|
|
55
|
+
name: string;
|
|
56
|
+
image_url?: string;
|
|
57
|
+
color_code: string;
|
|
58
|
+
code: number;
|
|
59
|
+
status: number;
|
|
60
|
+
permission: Permission[];
|
|
61
|
+
setting_commission: boolean;
|
|
62
|
+
income: Income;
|
|
63
|
+
daily_service: any[];
|
|
64
|
+
}>;
|
|
65
|
+
export declare type GetIncomeHistoryResponse = Nullable<{
|
|
66
|
+
title: string;
|
|
67
|
+
income: number;
|
|
68
|
+
summary: Summary;
|
|
69
|
+
batches: Batches[];
|
|
70
|
+
}>;
|
|
71
|
+
export {};
|
|
71
72
|
//# sourceMappingURL=income.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"income.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/income.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,
|
|
1
|
+
{"version":3,"file":"income.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/income.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,aAAK,UAAU,GAAG,QAAQ,CAAC;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAC,CAAA;AAEF,aAAK,MAAM,GAAG,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,OAAO,CAAA;CAC1B,CAAC,CAAA;AAEF,aAAK,OAAO,GAAG,QAAQ,CAAC;IACpB,IAAI,EAAE,GAAG,CAAA;IACT,YAAY,EAAE,GAAG,CAAA;IACjB,iBAAiB,EAAE,G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OAAO,EAAE,OAAO,EAAE,CAAA;CACrB,CAAC,CAAA"}
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import { Nullable } from "../../../../base_type";
|
|
2
|
+
declare type Mqtt = Nullable<{
|
|
3
|
+
id: string;
|
|
4
|
+
username: string;
|
|
5
|
+
password: string;
|
|
6
|
+
config: Config;
|
|
7
|
+
}>;
|
|
8
|
+
declare type Config = Nullable<{
|
|
9
|
+
call_feature: number;
|
|
10
|
+
}>;
|
|
11
|
+
declare type DiscountActive = Nullable<{
|
|
12
|
+
status: number;
|
|
13
|
+
value: number;
|
|
14
|
+
type: string;
|
|
15
|
+
}>;
|
|
16
|
+
declare type ServiceFee = Nullable<{
|
|
17
|
+
id: number;
|
|
18
|
+
fee: number;
|
|
19
|
+
status: number;
|
|
20
|
+
created_at: string;
|
|
21
|
+
updated_at: any;
|
|
22
|
+
state: number;
|
|
23
|
+
}>;
|
|
2
24
|
export declare type GetKeyStorageResponse = Nullable<{
|
|
3
25
|
ach_payment_active: number;
|
|
4
26
|
pax_standalone_active: number;
|
|
@@ -12,37 +34,16 @@ export declare type GetKeyStorageResponse = Nullable<{
|
|
|
12
34
|
order_ticket_counter: number;
|
|
13
35
|
appointment_calendar_active: number;
|
|
14
36
|
window_appointment_calendar_active: number;
|
|
15
|
-
mqtt:
|
|
37
|
+
mqtt: Mqtt;
|
|
16
38
|
order_page_staff_first: number;
|
|
17
39
|
tax_calculating_mode: number;
|
|
18
|
-
cash_discount_active:
|
|
40
|
+
cash_discount_active: DiscountActive;
|
|
19
41
|
tax_product: number;
|
|
20
42
|
tax_service: number;
|
|
21
|
-
service_fee:
|
|
43
|
+
service_fee: ServiceFee;
|
|
22
44
|
window_active: number;
|
|
23
45
|
qrCode: number;
|
|
24
46
|
flex_checkin: number;
|
|
25
47
|
}>;
|
|
26
|
-
export
|
|
27
|
-
id: string;
|
|
28
|
-
username: string;
|
|
29
|
-
password: string;
|
|
30
|
-
config: GetKeyStorageResponseConfig;
|
|
31
|
-
}>;
|
|
32
|
-
export declare type GetKeyStorageResponseConfig = Nullable<{
|
|
33
|
-
call_feature: number;
|
|
34
|
-
}>;
|
|
35
|
-
export declare type GetKeyStorageResponseCashDiscountActive = Nullable<{
|
|
36
|
-
status: number;
|
|
37
|
-
value: number;
|
|
38
|
-
type: string;
|
|
39
|
-
}>;
|
|
40
|
-
export declare type GetKeyStorageResponseServiceFee = Nullable<{
|
|
41
|
-
id: number;
|
|
42
|
-
fee: number;
|
|
43
|
-
status: number;
|
|
44
|
-
created_at: string;
|
|
45
|
-
updated_at: any;
|
|
46
|
-
state: number;
|
|
47
|
-
}>;
|
|
48
|
+
export {};
|
|
48
49
|
//# sourceMappingURL=key_storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/key_storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,
|
|
1
|
+
{"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/key_storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,aAAK,IAAI,GAAG,QAAQ,CAAC;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA;AAEF,aAAK,MAAM,GAAG,QAAQ,CAAC;IACnB,YAAY,EAAE,MAAM,CAAA;CACvB,CAAC,CAAA;AAEF,aAAK,cAAc,GAAG,QAAQ,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACf,CAAC,CAAA;AAEF,aAAK,UAAU,GAAG,QAAQ,CAAC;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,GAAG,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CAChB,CAAC,CAAA;AAEF,oBAAY,qBAAqB,GAAG,QAAQ,CAAC;IACzC,kBAAkB,EAAE,MAAM,CAAA;IAC1B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,2BAA2B,EAAE,MAAM,CAAA;IACnC,kCAAkC,EAAE,MAAM,CAAA;IAC1C,IAAI,EAAE,IAAI,CAAA;IACV,sBAAsB,EAAE,MAAM,CAAA;IAC9B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,oBAAoB,EAAE,cAAc,CAAA;IACpC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,UAAU,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACvB,CAAC,CAAA"}
|
|
@@ -1,86 +1,5 @@
|
|
|
1
1
|
import { Nullable } from "../../../../base_type";
|
|
2
|
-
|
|
3
|
-
all: number;
|
|
4
|
-
pending: number;
|
|
5
|
-
processing: number;
|
|
6
|
-
cancelled: number;
|
|
7
|
-
done: number;
|
|
8
|
-
settlement_fail: number;
|
|
9
|
-
}>;
|
|
10
|
-
export declare type GetOrderDetailResponse = Nullable<{
|
|
11
|
-
id: number;
|
|
12
|
-
customer_id: any;
|
|
13
|
-
customer_name: string;
|
|
14
|
-
customer_phone: any;
|
|
15
|
-
customer_email: any;
|
|
16
|
-
customer_address: any;
|
|
17
|
-
payment_method: any;
|
|
18
|
-
currency: any;
|
|
19
|
-
start_time: any;
|
|
20
|
-
expected_end_time: any;
|
|
21
|
-
end_time: any;
|
|
22
|
-
picked_up_time: any;
|
|
23
|
-
promotion_code: any;
|
|
24
|
-
total_before_discount: number;
|
|
25
|
-
total_after_discount: number;
|
|
26
|
-
employee_id: any;
|
|
27
|
-
employee_name: any;
|
|
28
|
-
type: string;
|
|
29
|
-
note: any;
|
|
30
|
-
owner_note: any;
|
|
31
|
-
order_status: number;
|
|
32
|
-
status: number;
|
|
33
|
-
created_at: string;
|
|
34
|
-
updated_at: string;
|
|
35
|
-
cancel_reason: any;
|
|
36
|
-
delivered_time: any;
|
|
37
|
-
completed_time: any;
|
|
38
|
-
order_code: string;
|
|
39
|
-
checkin_id: any;
|
|
40
|
-
total_change: number;
|
|
41
|
-
tip: GetOrderDetailResponseTip;
|
|
42
|
-
tax: number;
|
|
43
|
-
is_waiting: number;
|
|
44
|
-
is_recheck: number;
|
|
45
|
-
gift_card_price: any;
|
|
46
|
-
pax_standalone_active: any;
|
|
47
|
-
ach_payment_active: any;
|
|
48
|
-
ach_payment_data: any;
|
|
49
|
-
total_cash_discount: number;
|
|
50
|
-
is_tip_on_device: number;
|
|
51
|
-
tip_by_credit_card: number;
|
|
52
|
-
service_fee: number;
|
|
53
|
-
external_credit_card: number;
|
|
54
|
-
qr_code: any;
|
|
55
|
-
created_date: string;
|
|
56
|
-
created_time: string;
|
|
57
|
-
pos_key: string;
|
|
58
|
-
pos_status: string;
|
|
59
|
-
invoice: GetOrderDetailResponseInvoice;
|
|
60
|
-
customer_point: number;
|
|
61
|
-
order_discount: GetOrderDetailResponseOrderDiscount[];
|
|
62
|
-
checkin_services: any;
|
|
63
|
-
checkin_staffs: any;
|
|
64
|
-
services: GetOrderDetailResponseService[];
|
|
65
|
-
staffs: GetOrderDetailResponseStaff[];
|
|
66
|
-
payment_payment_id: string;
|
|
67
|
-
payment_order_id: any;
|
|
68
|
-
order_batch: GetOrderDetailResponseOrderBatch;
|
|
69
|
-
visit_count: number;
|
|
70
|
-
refund_amount: any;
|
|
71
|
-
last_four: any;
|
|
72
|
-
card_type: any;
|
|
73
|
-
entry_type: any;
|
|
74
|
-
payment_history: any[];
|
|
75
|
-
amount_info: any;
|
|
76
|
-
customer_type: any;
|
|
77
|
-
order_payment_method: GetOrderDetailResponseOrderPaymentMethod[];
|
|
78
|
-
deposit: any;
|
|
79
|
-
product_subtotal: number;
|
|
80
|
-
service_subtotal: number;
|
|
81
|
-
staff_code: number[];
|
|
82
|
-
}>;
|
|
83
|
-
export declare type GetOrderDetailResponseTip = Nullable<{
|
|
2
|
+
declare type Tip = Nullable<{
|
|
84
3
|
id: number;
|
|
85
4
|
order_id: number;
|
|
86
5
|
created_at: string;
|
|
@@ -94,7 +13,7 @@ export declare type GetOrderDetailResponseTip = Nullable<{
|
|
|
94
13
|
giftcard_code: any;
|
|
95
14
|
is_updated: number;
|
|
96
15
|
}>;
|
|
97
|
-
|
|
16
|
+
declare type Invoice = Nullable<{
|
|
98
17
|
id: number;
|
|
99
18
|
checkout_id: number;
|
|
100
19
|
customer_id: any;
|
|
@@ -116,7 +35,7 @@ export declare type GetOrderDetailResponseInvoice = Nullable<{
|
|
|
116
35
|
updated_at: string;
|
|
117
36
|
type: string;
|
|
118
37
|
}>;
|
|
119
|
-
|
|
38
|
+
declare type OrderDiscount = Nullable<{
|
|
120
39
|
id: number;
|
|
121
40
|
order_id: number;
|
|
122
41
|
item_type: string;
|
|
@@ -129,11 +48,11 @@ export declare type GetOrderDetailResponseOrderDiscount = Nullable<{
|
|
|
129
48
|
total_value: number;
|
|
130
49
|
total_discount: number;
|
|
131
50
|
}>;
|
|
132
|
-
|
|
51
|
+
declare type Service = Nullable<{
|
|
133
52
|
staff_name: string;
|
|
134
|
-
items:
|
|
53
|
+
items: Item[];
|
|
135
54
|
}>;
|
|
136
|
-
|
|
55
|
+
declare type Item = Nullable<{
|
|
137
56
|
item_name: string;
|
|
138
57
|
quantity: number;
|
|
139
58
|
price: number;
|
|
@@ -146,12 +65,12 @@ export declare type GetOrderDetailResponseItem = Nullable<{
|
|
|
146
65
|
commission: number;
|
|
147
66
|
cash_discount: number;
|
|
148
67
|
}>;
|
|
149
|
-
|
|
68
|
+
declare type Staff = Nullable<{
|
|
150
69
|
employee_name: string;
|
|
151
70
|
employee_image?: string;
|
|
152
71
|
employee_color: string;
|
|
153
72
|
}>;
|
|
154
|
-
|
|
73
|
+
declare type OrderBatch = Nullable<{
|
|
155
74
|
card_amount: number;
|
|
156
75
|
cash_amount: number;
|
|
157
76
|
check_amount: number;
|
|
@@ -167,7 +86,7 @@ export declare type GetOrderDetailResponseOrderBatch = Nullable<{
|
|
|
167
86
|
cash_discount: number;
|
|
168
87
|
change: number;
|
|
169
88
|
}>;
|
|
170
|
-
|
|
89
|
+
declare type OrderPaymentMethod = Nullable<{
|
|
171
90
|
id: number;
|
|
172
91
|
order_id: number;
|
|
173
92
|
payment_method_type: number;
|
|
@@ -177,6 +96,87 @@ export declare type GetOrderDetailResponseOrderPaymentMethod = Nullable<{
|
|
|
177
96
|
updated_at: any;
|
|
178
97
|
status: number;
|
|
179
98
|
}>;
|
|
99
|
+
export declare type GetReportCheckInResponse = Nullable<{
|
|
100
|
+
all: number;
|
|
101
|
+
pending: number;
|
|
102
|
+
processing: number;
|
|
103
|
+
cancelled: number;
|
|
104
|
+
done: number;
|
|
105
|
+
settlement_fail: number;
|
|
106
|
+
}>;
|
|
107
|
+
export declare type GetOrderDetailResponse = Nullable<{
|
|
108
|
+
id: number;
|
|
109
|
+
customer_id: any;
|
|
110
|
+
customer_name: string;
|
|
111
|
+
customer_phone: any;
|
|
112
|
+
customer_email: any;
|
|
113
|
+
customer_address: any;
|
|
114
|
+
payment_method: any;
|
|
115
|
+
currency: any;
|
|
116
|
+
start_time: any;
|
|
117
|
+
expected_end_time: any;
|
|
118
|
+
end_time: any;
|
|
119
|
+
picked_up_time: any;
|
|
120
|
+
promotion_code: any;
|
|
121
|
+
total_before_discount: number;
|
|
122
|
+
total_after_discount: number;
|
|
123
|
+
employee_id: any;
|
|
124
|
+
employee_name: any;
|
|
125
|
+
type: string;
|
|
126
|
+
note: any;
|
|
127
|
+
owner_note: any;
|
|
128
|
+
order_status: number;
|
|
129
|
+
status: number;
|
|
130
|
+
created_at: string;
|
|
131
|
+
updated_at: string;
|
|
132
|
+
cancel_reason: any;
|
|
133
|
+
delivered_time: any;
|
|
134
|
+
completed_time: any;
|
|
135
|
+
order_code: string;
|
|
136
|
+
checkin_id: any;
|
|
137
|
+
total_change: number;
|
|
138
|
+
tip: Tip;
|
|
139
|
+
tax: number;
|
|
140
|
+
is_waiting: number;
|
|
141
|
+
is_recheck: number;
|
|
142
|
+
gift_card_price: any;
|
|
143
|
+
pax_standalone_active: any;
|
|
144
|
+
ach_payment_active: any;
|
|
145
|
+
ach_payment_data: any;
|
|
146
|
+
total_cash_discount: number;
|
|
147
|
+
is_tip_on_device: number;
|
|
148
|
+
tip_by_credit_card: number;
|
|
149
|
+
service_fee: number;
|
|
150
|
+
external_credit_card: number;
|
|
151
|
+
qr_code: any;
|
|
152
|
+
created_date: string;
|
|
153
|
+
created_time: string;
|
|
154
|
+
pos_key: string;
|
|
155
|
+
pos_status: string;
|
|
156
|
+
invoice: Invoice;
|
|
157
|
+
customer_point: number;
|
|
158
|
+
order_discount: OrderDiscount[];
|
|
159
|
+
checkin_services: any;
|
|
160
|
+
checkin_staffs: any;
|
|
161
|
+
services: Service[];
|
|
162
|
+
staffs: Staff[];
|
|
163
|
+
payment_payment_id: string;
|
|
164
|
+
payment_order_id: any;
|
|
165
|
+
order_batch: OrderBatch;
|
|
166
|
+
visit_count: number;
|
|
167
|
+
refund_amount: any;
|
|
168
|
+
last_four: any;
|
|
169
|
+
card_type: any;
|
|
170
|
+
entry_type: any;
|
|
171
|
+
payment_history: any[];
|
|
172
|
+
amount_info: any;
|
|
173
|
+
customer_type: any;
|
|
174
|
+
order_payment_method: OrderPaymentMethod[];
|
|
175
|
+
deposit: any;
|
|
176
|
+
product_subtotal: number;
|
|
177
|
+
service_subtotal: number;
|
|
178
|
+
staff_code: number[];
|
|
179
|
+
}>;
|
|
180
180
|
export declare type GetOrderHistoryListResponse = Nullable<{
|
|
181
181
|
id: number;
|
|
182
182
|
order_code: string;
|
|
@@ -205,4 +205,5 @@ export declare type UpdateOrderStaffResponse = Nullable<{
|
|
|
205
205
|
staff_name: string;
|
|
206
206
|
combo_id: any;
|
|
207
207
|
}>;
|
|
208
|
+
export {};
|
|
208
209
|
//# sourceMappingURL=order.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,aAAK,GAAG,GAAG,QAAQ,CAAC;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,GAAG,CAAA;IACf,MAAM,EAAE,GAAG,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,GAAG,CAAA;IACnB,aAAa,EAAE,GAAG,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAC,CAAA;AAEF,aAAK,OA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MAAM,CAAA;IACxB,UAAU,EAAE,MAAM,EAAE,CAAA;CACvB,CAAC,CAAA;AAEF,oBAAY,2BAA2B,GAAG,QAAQ,CAAC;IAC/C,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,OAAO,EAAE,GAAG,CAAA;CACf,CAAC,CAAA;AAEF,oBAAY,wBAAwB,GAAG,QAAQ,CAAC;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,GAAG,CAAA;IACjB,aAAa,EAAE,GAAG,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,GAAG,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,GAAG,CAAA;CAChB,CAAC,CAAA"}
|
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
import { Nullable } from "../../../../base_type";
|
|
2
|
-
|
|
2
|
+
declare type Detail = Nullable<{
|
|
3
|
+
date: string;
|
|
4
|
+
final_commission: number;
|
|
5
|
+
}>;
|
|
6
|
+
declare type EmployeeList = Nullable<{
|
|
7
|
+
user_id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
image_url?: string;
|
|
10
|
+
color_code: string;
|
|
11
|
+
setting_commission: boolean;
|
|
12
|
+
payroll_list: PayrollList[];
|
|
13
|
+
}>;
|
|
14
|
+
declare type PayrollList = Nullable<{
|
|
15
|
+
payroll_id?: number;
|
|
16
|
+
start_date: string;
|
|
17
|
+
end_date: string;
|
|
18
|
+
duration: number;
|
|
19
|
+
final_commission: number;
|
|
20
|
+
id: number;
|
|
21
|
+
}>;
|
|
22
|
+
declare type Employee = Nullable<{
|
|
23
|
+
user_id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
code: number;
|
|
26
|
+
created_at: string;
|
|
27
|
+
updated_at: any;
|
|
28
|
+
color_code: any;
|
|
29
|
+
image_url: any;
|
|
30
|
+
delete_image_url: any;
|
|
31
|
+
priority: number;
|
|
32
|
+
commission_type: any;
|
|
33
|
+
turn_priority: number;
|
|
34
|
+
last_turn_priority: number;
|
|
35
|
+
phone: string;
|
|
36
|
+
address: string;
|
|
37
|
+
nickname: string;
|
|
38
|
+
priority_calendar: any;
|
|
39
|
+
staff_commission: any;
|
|
40
|
+
approved_commission: any;
|
|
41
|
+
}>;
|
|
42
|
+
declare type Total = Nullable<{
|
|
43
|
+
income: number;
|
|
44
|
+
commission: number;
|
|
45
|
+
salary: number;
|
|
46
|
+
card_charge: number;
|
|
47
|
+
supply_share: number;
|
|
48
|
+
tip_after_charge: number;
|
|
49
|
+
cash_income: number;
|
|
50
|
+
check_income: number;
|
|
51
|
+
total: number;
|
|
52
|
+
}>;
|
|
53
|
+
declare type ApprovePayrollEmployee = Nullable<{
|
|
3
54
|
user_id: number;
|
|
4
55
|
name: string;
|
|
5
56
|
image_url?: string;
|
|
@@ -15,11 +66,25 @@ export declare type GetPayrollDetailResponse = Nullable<{
|
|
|
15
66
|
total_commission: number;
|
|
16
67
|
working_hour: number;
|
|
17
68
|
wage_per_hours: boolean;
|
|
18
|
-
list_detail:
|
|
69
|
+
list_detail: any;
|
|
19
70
|
}>;
|
|
20
|
-
export declare type
|
|
21
|
-
|
|
22
|
-
|
|
71
|
+
export declare type GetPayrollDetailResponse = Nullable<{
|
|
72
|
+
user_id: number;
|
|
73
|
+
name: string;
|
|
74
|
+
image_url?: string;
|
|
75
|
+
color_code: string;
|
|
76
|
+
income: number;
|
|
77
|
+
commission: number;
|
|
78
|
+
cash_income: number;
|
|
79
|
+
check_income: number;
|
|
80
|
+
card_charge: number;
|
|
81
|
+
supply_share: number;
|
|
82
|
+
salary: number;
|
|
83
|
+
tip: number;
|
|
84
|
+
total_commission: number;
|
|
85
|
+
working_hour: number;
|
|
86
|
+
wage_per_hours: boolean;
|
|
87
|
+
list_detail: Detail[];
|
|
23
88
|
}>;
|
|
24
89
|
export declare type GetAppListPayrollResponse = Nullable<{
|
|
25
90
|
payroll_id: any;
|
|
@@ -31,23 +96,7 @@ export declare type GetAppListPayrollResponse = Nullable<{
|
|
|
31
96
|
export declare type GetPayrollListResponse = Nullable<{
|
|
32
97
|
begin_time: string;
|
|
33
98
|
end_time: string;
|
|
34
|
-
employee_list:
|
|
35
|
-
}>;
|
|
36
|
-
export declare type GetPayrollListResponseEmployeeList = Nullable<{
|
|
37
|
-
user_id: number;
|
|
38
|
-
name: string;
|
|
39
|
-
image_url?: string;
|
|
40
|
-
color_code: string;
|
|
41
|
-
setting_commission: boolean;
|
|
42
|
-
payroll_list: GetPayrollListResponsePayrollList[];
|
|
43
|
-
}>;
|
|
44
|
-
export declare type GetPayrollListResponsePayrollList = Nullable<{
|
|
45
|
-
payroll_id?: number;
|
|
46
|
-
start_date: string;
|
|
47
|
-
end_date: string;
|
|
48
|
-
duration: number;
|
|
49
|
-
final_commission: number;
|
|
50
|
-
id: number;
|
|
99
|
+
employee_list: EmployeeList[];
|
|
51
100
|
}>;
|
|
52
101
|
export declare type GetPayrollSettingResponse = Nullable<{
|
|
53
102
|
id: number;
|
|
@@ -78,65 +127,16 @@ export declare type GetCashDiscountSettingResponse = Nullable<{
|
|
|
78
127
|
}>;
|
|
79
128
|
export declare type UpdateCashDiscountSettingResponse = GetCashDiscountSettingResponse;
|
|
80
129
|
export declare type GetIncomeDetailResponse = Nullable<{
|
|
81
|
-
employee:
|
|
130
|
+
employee: Employee;
|
|
82
131
|
order: any[];
|
|
83
|
-
total:
|
|
84
|
-
}>;
|
|
85
|
-
export declare type GetIncomeDetailResponseEmployee = Nullable<{
|
|
86
|
-
user_id: number;
|
|
87
|
-
name: string;
|
|
88
|
-
code: number;
|
|
89
|
-
created_at: string;
|
|
90
|
-
updated_at: any;
|
|
91
|
-
color_code: any;
|
|
92
|
-
image_url: any;
|
|
93
|
-
delete_image_url: any;
|
|
94
|
-
priority: number;
|
|
95
|
-
commission_type: any;
|
|
96
|
-
turn_priority: number;
|
|
97
|
-
last_turn_priority: number;
|
|
98
|
-
phone: string;
|
|
99
|
-
address: string;
|
|
100
|
-
nickname: string;
|
|
101
|
-
priority_calendar: any;
|
|
102
|
-
staff_commission: any;
|
|
103
|
-
approved_commission: any;
|
|
104
|
-
}>;
|
|
105
|
-
export declare type GetIncomeDetailResponseTotal = Nullable<{
|
|
106
|
-
income: number;
|
|
107
|
-
commission: number;
|
|
108
|
-
salary: number;
|
|
109
|
-
card_charge: number;
|
|
110
|
-
supply_share: number;
|
|
111
|
-
tip_after_charge: number;
|
|
112
|
-
cash_income: number;
|
|
113
|
-
check_income: number;
|
|
114
|
-
total: number;
|
|
132
|
+
total: Total;
|
|
115
133
|
}>;
|
|
116
134
|
export declare type GetApprovePayrollResponse = Nullable<{
|
|
117
135
|
payroll_id: any;
|
|
118
136
|
start_date: string;
|
|
119
137
|
end_date: string;
|
|
120
138
|
total_income: number;
|
|
121
|
-
employee_list:
|
|
122
|
-
}>;
|
|
123
|
-
export declare type GetApprovePayrollResponseEmployee = Nullable<{
|
|
124
|
-
user_id: number;
|
|
125
|
-
name: string;
|
|
126
|
-
image_url?: string;
|
|
127
|
-
color_code: string;
|
|
128
|
-
income: number;
|
|
129
|
-
commission: number;
|
|
130
|
-
cash_income: number;
|
|
131
|
-
check_income: number;
|
|
132
|
-
card_charge: number;
|
|
133
|
-
supply_share: number;
|
|
134
|
-
salary: number;
|
|
135
|
-
tip: number;
|
|
136
|
-
total_commission: number;
|
|
137
|
-
working_hour: number;
|
|
138
|
-
wage_per_hours: boolean;
|
|
139
|
-
list_detail: any;
|
|
139
|
+
employee_list: ApprovePayrollEmployee[];
|
|
140
140
|
}>;
|
|
141
141
|
export declare type GetSalaryChartResponse = Nullable<{
|
|
142
142
|
employee_list: {
|
|
@@ -147,4 +147,5 @@ export declare type GetSalaryChartResponse = Nullable<{
|
|
|
147
147
|
}>;
|
|
148
148
|
};
|
|
149
149
|
}>;
|
|
150
|
+
export {};
|
|
150
151
|
//# sourceMappingURL=payroll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/payroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,
|
|
1
|
+
{"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/response/payroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,aAAK,MAAM,GAAG,QAAQ,CAAC;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,EAAE,MAAM,CAAA;CAC3B,CAAC,CAAA;AAEF,aAAK,YAAY,GAAG,QAAQ,CAAC;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,YAAY,EAAE,WAAW,EAAE,CAAA;CAC9B,CAAC,CAAA;AAEF,aAAK,WAAW,GAAG,QAAQ,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ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