gap-nodejs-sdk 1.0.39 → 1.0.42
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/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/{interface → interfaces}/invoke_event_interface.d.ts +0 -0
- package/dist/interfaces/invoke_event_interface.d.ts.map +1 -0
- package/dist/{interface → interfaces}/invoke_event_interface.js +0 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/meta.d.ts +4 -0
- package/dist/models/meta.d.ts.map +1 -0
- package/dist/{pos_client_api/1.0.0/models → models}/meta.js +7 -0
- package/dist/pos_client_api/1.0.0/api/check_out.d.ts +3 -2
- 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 +3 -10
- package/dist/pos_client_api/1.0.0/api/index.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/api/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/index.js +1 -1
- package/dist/pos_client_api/1.0.0/api/key_storage.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/api/key_storage.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/key_storage.js +2 -2
- package/dist/pos_client_api/1.0.0/api/order.d.ts +2 -1
- package/dist/pos_client_api/1.0.0/api/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/order.js +3 -6
- package/dist/pos_client_api/1.0.0/api/payroll.d.ts +0 -4
- 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 +36 -40
- package/dist/pos_client_api/1.0.0/api/setting.d.ts +23 -0
- package/dist/pos_client_api/1.0.0/api/setting.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/api/setting.js +148 -0
- package/dist/pos_client_api/1.0.0/api/ticket.d.ts +10 -7
- package/dist/pos_client_api/1.0.0/api/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/ticket.js +44 -23
- package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts +2 -1
- package/dist/pos_client_api/1.0.0/api/time_keeping.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/time_keeping.js +2 -5
- package/dist/pos_client_api/1.0.0/endpoints/index.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/index.js +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/key_storage.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/key_storage.js +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/payroll.d.ts +0 -4
- package/dist/pos_client_api/1.0.0/endpoints/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/payroll.js +4 -4
- package/dist/pos_client_api/1.0.0/endpoints/setting.d.ts +18 -0
- package/dist/pos_client_api/1.0.0/endpoints/setting.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/endpoints/setting.js +16 -0
- package/dist/pos_client_api/1.0.0/endpoints/ticket.d.ts +5 -2
- package/dist/pos_client_api/1.0.0/endpoints/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/ticket.js +6 -4
- package/dist/pos_client_api/1.0.0/interfaces/check_out.d.ts +3 -2
- 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/index.d.ts +0 -24
- package/dist/pos_client_api/1.0.0/interfaces/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/index.js +0 -1
- package/dist/pos_client_api/1.0.0/interfaces/key_storage.d.ts +1 -1
- 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 +3 -2
- package/dist/pos_client_api/1.0.0/interfaces/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/interfaces/setting.d.ts +6 -0
- package/dist/pos_client_api/1.0.0/interfaces/setting.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/interfaces/setting.js +2 -0
- package/dist/pos_client_api/1.0.0/interfaces/ticket.d.ts +0 -9
- 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 +2 -1
- package/dist/pos_client_api/1.0.0/interfaces/time_keeping.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/index.d.ts +1 -2
- package/dist/pos_client_api/1.0.0/models/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/index.js +1 -2
- package/dist/pos_client_api/1.0.0/models/key_storage.d.ts +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/models/payroll.d.ts +0 -2
- package/dist/pos_client_api/1.0.0/models/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/payroll.js +21 -23
- package/dist/pos_client_api/1.0.0/models/setting.d.ts +12 -0
- package/dist/pos_client_api/1.0.0/models/setting.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/setting.js +91 -0
- package/dist/pos_client_api/1.0.0/models/ticket.d.ts +3 -2
- package/dist/pos_client_api/1.0.0/models/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/ticket.js +10 -3
- package/dist/pos_client_api/1.0.0/types/request/index.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/types/request/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/index.js +1 -1
- package/dist/pos_client_api/1.0.0/types/request/key_storage.d.ts +1 -1
- package/dist/pos_client_api/1.0.0/types/request/key_storage.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/payroll.d.ts +0 -11
- package/dist/pos_client_api/1.0.0/types/request/payroll.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/setting.d.ts +37 -0
- package/dist/pos_client_api/1.0.0/types/request/setting.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/request/{setting_turn.js → setting.js} +0 -0
- package/dist/pos_client_api/1.0.0/types/request/ticket.d.ts +14 -7
- package/dist/pos_client_api/1.0.0/types/request/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/index.d.ts +1 -7
- package/dist/pos_client_api/1.0.0/types/response/index.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/response/index.js +1 -2
- package/dist/pos_client_api/1.0.0/types/response/key_storage.d.ts +1 -1
- 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/payroll.d.ts +0 -19
- 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/setting.d.ts +67 -0
- package/dist/pos_client_api/1.0.0/types/response/setting.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/{meta.js → setting.js} +0 -0
- package/dist/pos_client_api/1.0.0/types/response/ticket.d.ts +16 -6
- package/dist/pos_client_api/1.0.0/types/response/ticket.d.ts.map +1 -1
- package/dist/pos_client_api/PosClientApi.d.ts +2 -2
- package/dist/pos_client_api/PosClientApi.d.ts.map +1 -1
- package/dist/pos_client_api/PosClientApi.js +2 -2
- package/dist/settings_api/1.0.0/api/check_in.d.ts +10 -0
- package/dist/settings_api/1.0.0/api/check_in.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/api/check_in.js +18 -0
- package/dist/settings_api/1.0.0/api/checkout.d.ts +10 -0
- package/dist/settings_api/1.0.0/api/checkout.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/api/checkout.js +18 -0
- package/dist/settings_api/1.0.0/api/index.d.ts +4 -0
- package/dist/settings_api/1.0.0/api/index.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/api/index.js +3 -0
- package/dist/settings_api/1.0.0/api/key_storage.d.ts +16 -0
- package/dist/settings_api/1.0.0/api/key_storage.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/api/key_storage.js +66 -0
- package/dist/settings_api/1.0.0/endpoints/check_in.d.ts +5 -0
- package/dist/settings_api/1.0.0/endpoints/check_in.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/endpoints/check_in.js +3 -0
- package/dist/settings_api/1.0.0/endpoints/checkout.d.ts +5 -0
- package/dist/settings_api/1.0.0/endpoints/checkout.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/endpoints/checkout.js +3 -0
- package/dist/settings_api/1.0.0/endpoints/index.d.ts +4 -0
- package/dist/settings_api/1.0.0/endpoints/index.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/endpoints/index.js +3 -0
- package/dist/settings_api/1.0.0/endpoints/key_storage.d.ts +10 -0
- package/dist/settings_api/1.0.0/endpoints/key_storage.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/endpoints/key_storage.js +8 -0
- package/dist/settings_api/1.0.0/interfaces/check_in.d.ts +6 -0
- package/dist/settings_api/1.0.0/interfaces/check_in.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/interfaces/check_in.js +2 -0
- package/dist/settings_api/1.0.0/interfaces/checkout.d.ts +6 -0
- package/dist/settings_api/1.0.0/interfaces/checkout.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/interfaces/checkout.js +2 -0
- package/dist/settings_api/1.0.0/interfaces/index.d.ts +1 -0
- package/dist/settings_api/1.0.0/interfaces/index.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/interfaces/index.js +0 -0
- package/dist/settings_api/1.0.0/interfaces/key_storage.d.ts +11 -0
- package/dist/settings_api/1.0.0/interfaces/key_storage.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/interfaces/key_storage.js +2 -0
- package/dist/settings_api/1.0.0/models/check_in.d.ts +20 -0
- package/dist/settings_api/1.0.0/models/check_in.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/models/check_in.js +30 -0
- package/dist/settings_api/1.0.0/models/checkout.d.ts +3 -0
- package/dist/settings_api/1.0.0/models/checkout.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/models/checkout.js +171 -0
- package/dist/settings_api/1.0.0/models/index.d.ts +4 -0
- package/dist/settings_api/1.0.0/models/index.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/models/index.js +3 -0
- package/dist/settings_api/1.0.0/models/key_storage.d.ts +8 -0
- package/dist/settings_api/1.0.0/models/key_storage.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/models/key_storage.js +10 -0
- package/dist/settings_api/1.0.0/types/request/check_in.d.ts +4 -0
- package/dist/settings_api/1.0.0/types/request/check_in.d.ts.map +1 -0
- package/dist/{pos_client_api/1.0.0/types/response/setting_turn.js → settings_api/1.0.0/types/request/check_in.js} +0 -0
- package/dist/settings_api/1.0.0/types/request/checkout.d.ts +4 -0
- package/dist/settings_api/1.0.0/types/request/checkout.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/types/request/checkout.js +1 -0
- package/dist/settings_api/1.0.0/types/request/index.d.ts +4 -0
- package/dist/settings_api/1.0.0/types/request/index.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/types/request/index.js +3 -0
- package/dist/settings_api/1.0.0/types/request/key_storage.d.ts +21 -0
- package/dist/settings_api/1.0.0/types/request/key_storage.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/types/request/key_storage.js +1 -0
- package/dist/settings_api/1.0.0/types/response/check_in.d.ts +24 -0
- package/dist/settings_api/1.0.0/types/response/check_in.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/types/response/check_in.js +1 -0
- package/dist/settings_api/1.0.0/types/response/checkout.d.ts +131 -0
- package/dist/settings_api/1.0.0/types/response/checkout.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/types/response/checkout.js +1 -0
- package/dist/settings_api/1.0.0/types/response/index.d.ts +4 -0
- package/dist/settings_api/1.0.0/types/response/index.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/types/response/index.js +3 -0
- package/dist/settings_api/1.0.0/types/response/key_storage.d.ts +24 -0
- package/dist/settings_api/1.0.0/types/response/key_storage.d.ts.map +1 -0
- package/dist/settings_api/1.0.0/types/response/key_storage.js +1 -0
- package/dist/settings_api/SettingsApi.d.ts +8 -0
- package/dist/settings_api/SettingsApi.d.ts.map +1 -0
- package/dist/settings_api/SettingsApi.js +11 -0
- package/dist/settings_api/api.d.ts +5 -0
- package/dist/settings_api/api.d.ts.map +1 -0
- package/dist/settings_api/api.js +12 -0
- package/dist/settings_api/enums/index.d.ts +1 -0
- package/dist/settings_api/enums/index.d.ts.map +1 -0
- package/dist/settings_api/enums/index.js +0 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +7 -0
- package/dist/types/meta.d.ts +12 -0
- package/dist/types/meta.d.ts.map +1 -0
- package/dist/types/meta.js +1 -0
- package/package.json +1 -1
- package/dist/interface/invoke_event_interface.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/api/setting_turn.d.ts +0 -11
- package/dist/pos_client_api/1.0.0/api/setting_turn.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/api/setting_turn.js +0 -28
- package/dist/pos_client_api/1.0.0/endpoints/setting_turn.d.ts +0 -6
- package/dist/pos_client_api/1.0.0/endpoints/setting_turn.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/endpoints/setting_turn.js +0 -4
- package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts +0 -7
- package/dist/pos_client_api/1.0.0/interfaces/setting_turn.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/interfaces/setting_turn.js +0 -2
- package/dist/pos_client_api/1.0.0/models/meta.d.ts +0 -3
- package/dist/pos_client_api/1.0.0/models/meta.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/models/setting_turn.d.ts +0 -3
- package/dist/pos_client_api/1.0.0/models/setting_turn.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/models/setting_turn.js +0 -3
- package/dist/pos_client_api/1.0.0/types/request/setting_turn.d.ts +0 -5
- package/dist/pos_client_api/1.0.0/types/request/setting_turn.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/types/response/meta.d.ts +0 -8
- package/dist/pos_client_api/1.0.0/types/response/meta.d.ts.map +0 -1
- package/dist/pos_client_api/1.0.0/types/response/setting_turn.d.ts +0 -4
- package/dist/pos_client_api/1.0.0/types/response/setting_turn.d.ts.map +0 -1
- package/dist/types.d.ts +0 -5
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as GapError from './error';
|
|
2
|
-
import
|
|
2
|
+
import PosClientApi from "./pos_client_api/PosClientApi";
|
|
3
|
+
import SettingsApi from "./settings_api/SettingsApi";
|
|
3
4
|
export declare const Gap: {
|
|
4
5
|
Context: import("./context").ContextInterface;
|
|
5
6
|
PosClientApi: typeof PosClientApi;
|
|
7
|
+
SettingsApi: typeof SettingsApi;
|
|
6
8
|
Errors: typeof GapError;
|
|
7
9
|
};
|
|
8
10
|
export default Gap;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AAErD,eAAO,MAAM,GAAG;;;;;CAKf,CAAC;AAIF,eAAe,GAAG,CAAC;AACnB,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Context } from './context';
|
|
2
2
|
import * as GapError from './error';
|
|
3
|
-
import
|
|
3
|
+
import PosClientApi from "./pos_client_api/PosClientApi";
|
|
4
|
+
import SettingsApi from "./settings_api/SettingsApi";
|
|
4
5
|
export const Gap = {
|
|
5
6
|
Context,
|
|
6
7
|
PosClientApi,
|
|
8
|
+
SettingsApi,
|
|
7
9
|
Errors: GapError,
|
|
8
10
|
};
|
|
9
11
|
window.Gap = Gap;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke_event_interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/invoke_event_interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,MAAM,MAAM,CAAC;CAC7B"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./meta";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../src/models/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAE5D,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAOjD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAK9F"}
|
|
@@ -7,3 +7,10 @@ export function MetaModel(data) {
|
|
|
7
7
|
perPage: (_d = data === null || data === void 0 ? void 0 : data.perPage) !== null && _d !== void 0 ? _d : null,
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
export function DataWithMetaModel(response, modelFn) {
|
|
11
|
+
var _a, _b, _c, _d;
|
|
12
|
+
return {
|
|
13
|
+
data: (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map((item) => modelFn(item)),
|
|
14
|
+
_meta: MetaModel((_d = (_c = response === null || response === void 0 ? void 0 : response.result) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d._meta)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -3,13 +3,14 @@ import Base from "../../../base/Base";
|
|
|
3
3
|
import { GapApiVersion } from "../../../base_type";
|
|
4
4
|
import * as Request from "../types/request";
|
|
5
5
|
import * as Response from "../types/response";
|
|
6
|
+
import { DataWithMetaResponse } from "../../../types";
|
|
6
7
|
export default class CheckOut extends Base implements CheckOutAbstractClass {
|
|
7
8
|
static API_VERSION: GapApiVersion;
|
|
8
9
|
static postUpdateInService(data: Request.PostUpdateInServiceRequest): Promise<Response.PostUpdateInServiceResponse>;
|
|
9
10
|
static getItemList(data: Request.GetItemListRequest): Promise<any>;
|
|
10
|
-
static getCheckOutHistoryList(data: Request.GetCheckOutHistoryListRequest): Promise<
|
|
11
|
+
static getCheckOutHistoryList(data: Request.GetCheckOutHistoryListRequest): Promise<DataWithMetaResponse<Array<Response.GetCheckOutHistoryListResponse>>>;
|
|
11
12
|
static getCheckOutInfo(data: Request.GetCheckOutInfoRequest): Promise<Response.GetCheckOutInfoResponse>;
|
|
12
|
-
static getCheckOutHistoryInfo(data: Request.GetCheckOutHistoryInfoRequest): Promise<
|
|
13
|
+
static getCheckOutHistoryInfo(data: Request.GetCheckOutHistoryInfoRequest): Promise<DataWithMetaResponse<Array<Response.GetCheckOutHistoryInfoResponse>>>;
|
|
13
14
|
static getCheckOutBatchCloseSummary(data: Request.GetCheckOutBatchCloseSummaryRequest): Promise<Response.GetCheckOutBatchCloseSummaryResponse>;
|
|
14
15
|
static postCheckOutAddItem(data: Request.PostCheckOutAddItemRequest): Promise<Response.PostCheckOutAddItemResponse>;
|
|
15
16
|
static postCheckOutRemoveItem(data: Request.PostCheckOutRemoveItemRequest): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check_out.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/check_out.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"check_out.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/check_out.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAGpD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;IACvE,OAAc,WAAW,gBAAoB;WAEzB,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAU5G,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB;WAS5C,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CAAC,KAAK,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC,CAAC;WAUlJ,eAAe,C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
5
5
|
import * as Model from "../models";
|
|
6
|
+
import { DataWithMetaModel } from "../../../models";
|
|
6
7
|
export default class CheckOut extends Base {
|
|
7
8
|
static postUpdateInService(data) {
|
|
8
9
|
var _a;
|
|
@@ -23,16 +24,12 @@ export default class CheckOut extends Base {
|
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
26
|
static getCheckOutHistoryList(data) {
|
|
26
|
-
var _a, _b, _c, _d;
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const response = yield this.client.get({
|
|
29
29
|
path: posEndpoints.check_out.GET_CHECK_OUT_HISTORY_LIST,
|
|
30
30
|
query: data
|
|
31
31
|
});
|
|
32
|
-
return
|
|
33
|
-
data: (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.CheckOutInfoModel(item)),
|
|
34
|
-
_meta: Model.MetaModel((_d = (_c = response === null || response === void 0 ? void 0 : response.result) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d._meta)
|
|
35
|
-
};
|
|
32
|
+
return DataWithMetaModel(response, Model.CheckOutInfoModel);
|
|
36
33
|
});
|
|
37
34
|
}
|
|
38
35
|
static getCheckOutInfo(data) {
|
|
@@ -46,16 +43,12 @@ export default class CheckOut extends Base {
|
|
|
46
43
|
});
|
|
47
44
|
}
|
|
48
45
|
static getCheckOutHistoryInfo(data) {
|
|
49
|
-
var _a, _b, _c, _d;
|
|
50
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
47
|
const response = yield this.client.get({
|
|
52
48
|
path: posEndpoints.check_out.GET_CHECKOUT_HISTORY_INFO,
|
|
53
49
|
query: data
|
|
54
50
|
});
|
|
55
|
-
return
|
|
56
|
-
data: (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.CheckOutHistoryInfoModel(item)),
|
|
57
|
-
_meta: Model.MetaModel((_d = (_c = response === null || response === void 0 ? void 0 : response.result) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d._meta)
|
|
58
|
-
};
|
|
51
|
+
return DataWithMetaModel(response, Model.CheckOutHistoryInfoModel);
|
|
59
52
|
});
|
|
60
53
|
}
|
|
61
54
|
static getCheckOutBatchCloseSummary(data) {
|
|
@@ -13,10 +13,10 @@ export { default as Order } from "./order";
|
|
|
13
13
|
export { default as Payroll } from "./payroll";
|
|
14
14
|
export { default as Printer } from "./printer";
|
|
15
15
|
export { default as Service } from "./service";
|
|
16
|
-
export { default as SettingTurn } from "./setting_turn";
|
|
17
16
|
export { default as Staff } from "./staff";
|
|
18
17
|
export { default as Ticket } from "./ticket";
|
|
19
18
|
export { default as TimeKeeping } from "./time_keeping";
|
|
20
19
|
export { default as UnsubscribeContact } from "./unsubscribe_contact";
|
|
21
20
|
export { default as User } from "./user";
|
|
21
|
+
export { default as Setting } from "./setting";
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,O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AAO,IAAI,UAAU,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC"}
|
|
@@ -13,9 +13,9 @@ export { default as Order } from "./order";
|
|
|
13
13
|
export { default as Payroll } from "./payroll";
|
|
14
14
|
export { default as Printer } from "./printer";
|
|
15
15
|
export { default as Service } from "./service";
|
|
16
|
-
export { default as SettingTurn } from "./setting_turn";
|
|
17
16
|
export { default as Staff } from "./staff";
|
|
18
17
|
export { default as Ticket } from "./ticket";
|
|
19
18
|
export { default as TimeKeeping } from "./time_keeping";
|
|
20
19
|
export { default as UnsubscribeContact } from "./unsubscribe_contact";
|
|
21
20
|
export { default as User } from "./user";
|
|
21
|
+
export { default as Setting } from "./setting";
|
|
@@ -5,6 +5,6 @@ import * as Request from "../types/request";
|
|
|
5
5
|
import * as Response from "../types/response";
|
|
6
6
|
export default class KeyStorage extends Base implements KeyStorageAbstractClass {
|
|
7
7
|
static API_VERSION: GapApiVersion;
|
|
8
|
-
static
|
|
8
|
+
static getPosKeyStorage(data: Request.GetPosKeyStorageRequest): Promise<Response.GetPosKeyStorageResponse>;
|
|
9
9
|
}
|
|
10
10
|
//# 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/api/key_storage.ts"],"names":[],"mappings":"AACA,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,IAAK,YAAW,uBAAuB;IAC3E,OAAc,WAAW,gBAAoB;WAEzB,
|
|
1
|
+
{"version":3,"file":"key_storage.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/key_storage.ts"],"names":[],"mappings":"AACA,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,IAAK,YAAW,uBAAuB;IAC3E,OAAc,WAAW,gBAAoB;WAEzB,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAS1H"}
|
|
@@ -4,11 +4,11 @@ import Base from "../../../base/Base";
|
|
|
4
4
|
import { GapApiVersion } from "../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
6
6
|
export default class KeyStorage extends Base {
|
|
7
|
-
static
|
|
7
|
+
static getPosKeyStorage(data) {
|
|
8
8
|
var _a;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path: posEndpoints.key_storage.
|
|
11
|
+
path: posEndpoints.key_storage.GET_POS_KEY_STORAGE,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return Model.KeyStorageModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -3,9 +3,10 @@ import Base from "../../../base/Base";
|
|
|
3
3
|
import { GapApiVersion } from "../../../base_type";
|
|
4
4
|
import * as Request from "../types/request";
|
|
5
5
|
import * as Response from "../types/response";
|
|
6
|
+
import { DataWithMetaResponse } from "../../../types";
|
|
6
7
|
export default class Order extends Base implements OrderAbstractClass {
|
|
7
8
|
static API_VERSION: GapApiVersion;
|
|
8
|
-
static getOrderCheckInList(data: Request.GetOrderCheckInListRequest): Promise<
|
|
9
|
+
static getOrderCheckInList(data: Request.GetOrderCheckInListRequest): Promise<DataWithMetaResponse<Array<Response.GetOrderDetailResponse>>>;
|
|
9
10
|
static getReportCheckIn(data: Request.GetReportCheckInRequest): Promise<Response.GetReportCheckInResponse>;
|
|
10
11
|
static updateOrderStaff(data: Request.UpdateOrderStaffRequest): Promise<Array<Response.UpdateOrderStaffResponse>>;
|
|
11
12
|
static removeOrder(data: Request.RemoveOrderRequest): Promise<null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/order.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAGtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,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C,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;CAS/F"}
|
|
@@ -6,18 +6,15 @@ import { formatExportDateString } from "../../../utils/date-time";
|
|
|
6
6
|
import { GapApiVersion } from "../../../base_type";
|
|
7
7
|
import dayjs from 'dayjs';
|
|
8
8
|
import * as Model from "../models";
|
|
9
|
+
import { DataWithMetaModel } from "../../../models";
|
|
9
10
|
export default class Order extends Base {
|
|
10
11
|
static getOrderCheckInList(data) {
|
|
11
|
-
var _a, _b, _c, _d;
|
|
12
12
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13
13
|
const response = yield this.client.get({
|
|
14
14
|
path: posEndpoints.order.GET_CHECKIN_LIST,
|
|
15
15
|
query: data
|
|
16
16
|
});
|
|
17
|
-
return
|
|
18
|
-
data: (((_b = (_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.OrderDetailModel(item)),
|
|
19
|
-
_meta: Model.MetaModel((_d = (_c = response === null || response === void 0 ? void 0 : response.result) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d._meta)
|
|
20
|
-
};
|
|
17
|
+
return DataWithMetaModel(response, Model.OrderDetailModel);
|
|
21
18
|
});
|
|
22
19
|
}
|
|
23
20
|
// public static async getOrderDetail(data: Request.GetOrderDetailRequest): Promise<Response.GetOrderDetailResponse> {
|
|
@@ -29,7 +26,7 @@ export default class Order extends Base {
|
|
|
29
26
|
// );
|
|
30
27
|
// return Model.OrderDetailModel(response?.result?.data);
|
|
31
28
|
// }
|
|
32
|
-
// public static async getOrderHistoryList(data: Request.GetOrderHistoryListRequest): Promise<
|
|
29
|
+
// public static async getOrderHistoryList(data: Request.GetOrderHistoryListRequest): Promise<DataWithMetaResponse<Array<Response.GetOrderHistoryListResponse>>> {
|
|
33
30
|
// const response = await this.client.get(
|
|
34
31
|
// {
|
|
35
32
|
// path: posEndpoints.order.GET_ORDER_HISTORY_LIST,
|
|
@@ -6,11 +6,7 @@ import * as Response from "../types/response";
|
|
|
6
6
|
export default class Payroll extends Base implements PayrollAbstractClass {
|
|
7
7
|
static API_VERSION: GapApiVersion;
|
|
8
8
|
static getPayrollList(data: Request.GetPayrollListRequest): Promise<Response.GetPayrollListResponse>;
|
|
9
|
-
static getPayrollSetting(data: Request.GetPayrollSettingRequest): Promise<Response.GetPayrollSettingResponse>;
|
|
10
9
|
static approvePayroll(data: Request.ApprovePayrollRequest): Promise<null>;
|
|
11
|
-
static updatePayrollSetting(data: Request.UpdatePayrollSettingRequest): Promise<Response.UpdatePayrollSettingResponse>;
|
|
12
|
-
static getDiscountSetting(data: Request.GetDiscountSettingRequest): Promise<Response.GetDiscountSettingResponse>;
|
|
13
|
-
static updateDiscountSetting(data: Request.UpdateDiscountSettingRequest): Promise<Response.UpdateDiscountSettingResponse>;
|
|
14
10
|
static getCashDiscountSetting(data: Request.GetCashDiscountSettingRequest): Promise<Response.GetCashDiscountSettingResponse>;
|
|
15
11
|
static updateCashDiscountSetting(data: Request.UpdateCashDiscountSettingRequest): Promise<Response.UpdateCashDiscountSettingResponse>;
|
|
16
12
|
static getIncomeDetail(data: Request.GetIncomeDetailRequest): Promise<Response.GetIncomeDetailResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payroll.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/payroll.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAItC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,OAAQ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,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC;WAY9E,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;WAY1E,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;WAU7G,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;CASjI"}
|
|
@@ -17,16 +17,15 @@ export default class Payroll extends Base {
|
|
|
17
17
|
return Model.PayrollModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
static getPayrollSetting(data) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
20
|
+
// public static async getPayrollSetting(data: Request.GetPayrollSettingRequest): Promise<Response.GetPayrollSettingResponse> {
|
|
21
|
+
// const response = await this.client.get(
|
|
22
|
+
// {
|
|
23
|
+
// path: posEndpoints.payroll.GET_PAYROLL_SETTING,
|
|
24
|
+
// query: data
|
|
25
|
+
// }
|
|
26
|
+
// );
|
|
27
|
+
// return Model.PayrollSettingModel(response?.result?.data);
|
|
28
|
+
// }
|
|
30
29
|
static approvePayroll(data) {
|
|
31
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
31
|
const response = yield this.client.post({
|
|
@@ -36,36 +35,33 @@ export default class Payroll extends Base {
|
|
|
36
35
|
return null;
|
|
37
36
|
});
|
|
38
37
|
}
|
|
39
|
-
static updatePayrollSetting(data) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return Model.DiscountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
38
|
+
// public static async updatePayrollSetting(data: Request.UpdatePayrollSettingRequest): Promise<Response.UpdatePayrollSettingResponse> {
|
|
39
|
+
// const response = await this.client.post(
|
|
40
|
+
// {
|
|
41
|
+
// path: posEndpoints.payroll.UPDATE_PAYROLL_SETTING,
|
|
42
|
+
// data: data
|
|
43
|
+
// }
|
|
44
|
+
// );
|
|
45
|
+
// return Model.PayrollSettingModel(response?.result?.data);
|
|
46
|
+
// }
|
|
47
|
+
// public static async getDiscountSetting(data: Request.GetDiscountSettingRequest): Promise<Response.GetDiscountSettingResponse> {
|
|
48
|
+
// const response = await this.client.get(
|
|
49
|
+
// {
|
|
50
|
+
// path: posEndpoints.payroll.GET_DISCOUNT_SETTING,
|
|
51
|
+
// query: data
|
|
52
|
+
// }
|
|
53
|
+
// );
|
|
54
|
+
// return Model.DiscountSettingModel(response?.result?.data);
|
|
55
|
+
// }
|
|
56
|
+
// public static async updateDiscountSetting(data: Request.UpdateDiscountSettingRequest): Promise<Response.UpdateDiscountSettingResponse> {
|
|
57
|
+
// const response = await this.client.post(
|
|
58
|
+
// {
|
|
59
|
+
// path: posEndpoints.payroll.UPDATE_DISCOUNT_SETTING,
|
|
60
|
+
// data: data
|
|
61
|
+
// }
|
|
62
|
+
// );
|
|
63
|
+
// return Model.DiscountSettingModel(response?.result?.data);
|
|
64
|
+
// }
|
|
69
65
|
static getCashDiscountSetting(data) {
|
|
70
66
|
var _a;
|
|
71
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import SettingAbstractClass from "../interfaces/setting";
|
|
2
|
+
import Base from "../../../base/Base";
|
|
3
|
+
import { GapApiVersion } from "../../../base_type";
|
|
4
|
+
import * as Request from "../types/request";
|
|
5
|
+
import * as Response from "../types/response";
|
|
6
|
+
export default class Setting extends Base implements SettingAbstractClass {
|
|
7
|
+
static API_VERSION: GapApiVersion;
|
|
8
|
+
static getPayrollSetting(data: Request.GetPayrollSettingRequest): Promise<Response.GetPayrollSettingResponse>;
|
|
9
|
+
static updatePayrollSetting(data: Request.UpdatePayrollSettingRequest): Promise<Response.UpdatePayrollSettingResponse>;
|
|
10
|
+
static getDiscountSetting(data: Request.GetDiscountSettingRequest): Promise<Response.GetDiscountSettingResponse>;
|
|
11
|
+
static updateDiscountSetting(data: Request.UpdateDiscountSettingRequest): Promise<Response.UpdateDiscountSettingResponse>;
|
|
12
|
+
static getTaxSetting(data: Request.GetTaxSettingRequest): Promise<Array<Response.GetTaxSettingResponse>>;
|
|
13
|
+
static updateTaxSetting(data: Request.UpdateTaxSettingRequest): Promise<Response.UpdateTaxSettingResponse>;
|
|
14
|
+
static getTurnValue(data: Request.GetTurnValueRequest): Promise<Response.GetTurnValueResponse>;
|
|
15
|
+
static updateTurnValue(data: Request.UpdateTurnValueRequest): Promise<Response.UpdateTurnValueResponse>;
|
|
16
|
+
static getTip(data: Request.GetTipRequest): Promise<Response.GetTipResponse>;
|
|
17
|
+
static updateTip(data: Request.UpdateTipRequest): Promise<Response.UpdateTipResponse>;
|
|
18
|
+
static getListAnswer(data: Request.GetListAnswerRequest): Promise<Array<Response.GetListAnswerResponse>>;
|
|
19
|
+
static createAnswer(data: Request.CreateAnswerRequest): Promise<Response.CreateAnswerResponse>;
|
|
20
|
+
static updateAnswer(data: Request.UpdateAnswerRequest): Promise<Response.UpdateAnswerResponse>;
|
|
21
|
+
static changeAnswerStatus(data: Request.ChangeAnswerStatusRequest): Promise<Response.ChangeAnswerStatusResponse>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=setting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setting.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/setting.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,uBAAuB,CAAC;AACzD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAW9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;IACrE,OAAc,WAAW,gBAAoB;WAEzB,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU/G,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;WAUzG,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC;WAUlH,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;WAUjG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUvF,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAUhG,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC;WAUrE,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC;WAU9E,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;WAUjG,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUvF,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUvF,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CAShI"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import * as posEndpoints from "../endpoints";
|
|
3
|
+
import Base from "../../../base/Base";
|
|
4
|
+
import { GapApiVersion } from "../../../base_type";
|
|
5
|
+
import * as Model from "../models";
|
|
6
|
+
import { UpdateAnswerModal, ChangeAnswerStatusModel } from "../models";
|
|
7
|
+
export default class Setting extends Base {
|
|
8
|
+
static getPayrollSetting(data) {
|
|
9
|
+
var _a;
|
|
10
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const response = yield this.client.get({
|
|
12
|
+
path: posEndpoints.setting.GET_PAYROLL_SETTING,
|
|
13
|
+
query: data
|
|
14
|
+
});
|
|
15
|
+
return Model.PayrollSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static updatePayrollSetting(data) {
|
|
19
|
+
var _a;
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const response = yield this.client.post({
|
|
22
|
+
path: posEndpoints.setting.UPDATE_PAYROLL_SETTING,
|
|
23
|
+
data: data
|
|
24
|
+
});
|
|
25
|
+
return Model.PayrollSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static getDiscountSetting(data) {
|
|
29
|
+
var _a;
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const response = yield this.client.get({
|
|
32
|
+
path: posEndpoints.setting.GET_DISCOUNT_SETTING,
|
|
33
|
+
query: data
|
|
34
|
+
});
|
|
35
|
+
return Model.DiscountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
static updateDiscountSetting(data) {
|
|
39
|
+
var _a;
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const response = yield this.client.post({
|
|
42
|
+
path: posEndpoints.setting.UPDATE_DISCOUNT_SETTING,
|
|
43
|
+
data: data
|
|
44
|
+
});
|
|
45
|
+
return Model.DiscountSettingModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
static getTaxSetting(data) {
|
|
49
|
+
var _a;
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const response = yield this.client.get({
|
|
52
|
+
path: posEndpoints.setting.GET_TAX_SETTING,
|
|
53
|
+
query: data
|
|
54
|
+
});
|
|
55
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.TaxSettingModel(item));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
static updateTaxSetting(data) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const response = yield this.client.post({
|
|
61
|
+
path: posEndpoints.setting.UPDATE_TAX_SETTING,
|
|
62
|
+
data: data
|
|
63
|
+
});
|
|
64
|
+
return null;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
static getTurnValue(data) {
|
|
68
|
+
var _a;
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const response = yield this.client.get({
|
|
71
|
+
path: posEndpoints.setting.GET_TURN_VALUE,
|
|
72
|
+
query: data
|
|
73
|
+
});
|
|
74
|
+
return Model.TurnValueModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
static updateTurnValue(data) {
|
|
78
|
+
var _a;
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
const response = yield this.client.post({
|
|
81
|
+
path: posEndpoints.setting.UPDATE_TURN_VALUE,
|
|
82
|
+
data: data
|
|
83
|
+
});
|
|
84
|
+
return Model.TurnValueModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
static getTip(data) {
|
|
88
|
+
var _a;
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const response = yield this.client.get({
|
|
91
|
+
path: posEndpoints.setting.GET_TIP,
|
|
92
|
+
query: data
|
|
93
|
+
});
|
|
94
|
+
return Model.TipModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
static updateTip(data) {
|
|
98
|
+
var _a;
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const response = yield this.client.post({
|
|
101
|
+
path: posEndpoints.setting.UPDATE_TIP,
|
|
102
|
+
data: data
|
|
103
|
+
});
|
|
104
|
+
return Model.UpdateTipModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
static getListAnswer(data) {
|
|
108
|
+
var _a;
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const response = yield this.client.get({
|
|
111
|
+
path: posEndpoints.setting.GET_LIST_ANSWER,
|
|
112
|
+
query: data
|
|
113
|
+
});
|
|
114
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.GetListAnswerModel(item));
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
static createAnswer(data) {
|
|
118
|
+
var _a;
|
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
const response = yield this.client.post({
|
|
121
|
+
path: posEndpoints.setting.CREATE_ANSWER,
|
|
122
|
+
data: data
|
|
123
|
+
});
|
|
124
|
+
return Model.CreateAnswerModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
static updateAnswer(data) {
|
|
128
|
+
var _a;
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
const response = yield this.client.post({
|
|
131
|
+
path: posEndpoints.setting.UPDATE_ANSWER,
|
|
132
|
+
data: data
|
|
133
|
+
});
|
|
134
|
+
return UpdateAnswerModal((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
static changeAnswerStatus(data) {
|
|
138
|
+
var _a;
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const response = yield this.client.post({
|
|
141
|
+
path: posEndpoints.setting.CHANGE_ANSWER_STATUS,
|
|
142
|
+
data: data
|
|
143
|
+
});
|
|
144
|
+
return ChangeAnswerStatusModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
Setting.API_VERSION = GapApiVersion.V1;
|
|
@@ -5,12 +5,15 @@ import * as Request from "../types/request";
|
|
|
5
5
|
import * as Response from "../types/response";
|
|
6
6
|
export default class Ticket extends Base implements TicketAbstractClass {
|
|
7
7
|
static API_VERSION: GapApiVersion;
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
12
|
-
static
|
|
13
|
-
static
|
|
14
|
-
static
|
|
8
|
+
static getPosTicketTemplate(data: Request.GetPosTicketTemplateRequest): Promise<Response.GetPosTicketTemplateResponse>;
|
|
9
|
+
static getPosTicketInfo(data: Request.GetPosTicketInfoRequest): Promise<Response.GetPosTicketInfoResponse>;
|
|
10
|
+
static getPosTicketList(data: Request.GetPosTicketListRequest): Promise<Response.GetPosTicketListResponse>;
|
|
11
|
+
static getPosTicketListBlockName(data: Request.GetTicketListBlockNameRequest): Promise<Response.GetTicketListBlockNameResponse>;
|
|
12
|
+
static createPosTicketTemplate(data: Request.CreatePosTicketTemplateRequest): Promise<Response.CreatePosTicketTemplateResponse>;
|
|
13
|
+
static deletePosTicketTemplate(data: Request.DeletePosTicketTemplateRequest): Promise<Response.DeletePosTicketTemplateResponse>;
|
|
14
|
+
static updatePosTicketTemplate(data: Request.UpdatePosTicketTemplateRequest): Promise<Response.UpdatePosTicketTemplateResponse>;
|
|
15
|
+
static movePosSubject(data: Request.MovePosSubjectRequest): Promise<Response.MovePosSubjectResponse>;
|
|
16
|
+
static setPosDefaultTicketTemplate(data: Request.SetPosDefaultTicketTemplateRequest): Promise<Response.SetPosDefaultTicketTemplateResponse>;
|
|
17
|
+
static sortPosPriority(data: Request.SortPosPriorityRequest): Promise<Response.SortPosPriorityResponse>;
|
|
15
18
|
}
|
|
16
19
|
//# sourceMappingURL=ticket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/ticket.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,IAAK,YAAW,mBAAmB;IACnE,OAAc,WAAW,gBAAoB;WAEzB,
|
|
1
|
+
{"version":3,"file":"ticket.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/ticket.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AACvD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,IAAK,YAAW,mBAAmB;IACnE,OAAc,WAAW,gBAAoB;WAEzB,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC;WAU/G,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ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