gap-nodejs-sdk 1.0.37 → 1.0.40
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 +6 -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 +83 -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/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/order.d.ts +4 -0
- package/dist/pos_client_api/1.0.0/endpoints/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/endpoints/order.js +4 -0
- 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/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 +7 -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/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/check_in.js +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/order.d.ts +2 -0
- package/dist/pos_client_api/1.0.0/models/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/models/order.js +206 -0
- 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/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/order.d.ts +38 -0
- package/dist/pos_client_api/1.0.0/types/request/order.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/types/request/order.js +0 -15
- 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/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/order.d.ts +186 -0
- 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 +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/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,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAUhG,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CA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AAC,oCAAoC,GAAG,OAAO,CAAC,QAAQ,CAAC,qCAAqC,CAAC;WAU1I,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B;WAStE,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC;WAUxH,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B;WAStE,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB;WAShD,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB;WAS5C,+BAA+B,CAAC,IAAI,EAAE,OAAO,CAAC,sCAAsC,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,uCAAuC,CAAC,CAAC;WAUvJ,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B;WAS9D,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAC;WAU9H,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;WAUrH,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CAS/I"}
|
|
@@ -3,6 +3,7 @@ import * as posEndpoints from "../endpoints";
|
|
|
3
3
|
import Base from "../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../base_type";
|
|
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,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,aAAa,CAAC;AAChD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;A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C,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,12 +3,17 @@ 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>;
|
|
12
13
|
static exportOrder(data: Request.ExportOrderRequest): Promise<null>;
|
|
14
|
+
static submitCheckout(data: Request.SubmitCheckoutRequest): Promise<Response.SubmitCheckoutResponse>;
|
|
15
|
+
static submitPayment(data: Request.SubmitPaymentRequest): Promise<Response.SubmitPaymentResponse>;
|
|
16
|
+
static updatePaymentData(data: Request.UpdatePaymentDataRequest): Promise<Response.UpdatePaymentDataResponse>;
|
|
17
|
+
static addNote(data: Request.AddNoteRequest): Promise<Response.AddNoteResponse>;
|
|
13
18
|
}
|
|
14
19
|
//# sourceMappingURL=order.d.ts.map
|
|
@@ -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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AC,QAAQ,CAAC,sBAAsB,CAAC;WAU7F,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;WAU1F,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,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,
|
|
@@ -96,5 +93,85 @@ export default class Order extends Base {
|
|
|
96
93
|
return null;
|
|
97
94
|
});
|
|
98
95
|
}
|
|
96
|
+
// public static async calculateOrder(data: InputDataType.GetIncomeHistory) {
|
|
97
|
+
// return await this.client.get(
|
|
98
|
+
// {
|
|
99
|
+
// path: posEndpoints.order.CALCULATE_ORDER,
|
|
100
|
+
// query: data
|
|
101
|
+
// }
|
|
102
|
+
// );
|
|
103
|
+
// }
|
|
104
|
+
// public static async checkGiftCard(data: InputDataType.GetIncomeHistory) {
|
|
105
|
+
// return await this.client.get(
|
|
106
|
+
// {
|
|
107
|
+
// path: posEndpoints.order.CHECK_GIFTCARD,
|
|
108
|
+
// query: data
|
|
109
|
+
// }
|
|
110
|
+
// );
|
|
111
|
+
// }
|
|
112
|
+
// public static async updateOrder(data: InputDataType.GetIncomeHistory) {
|
|
113
|
+
// return await this.client.get(
|
|
114
|
+
// {
|
|
115
|
+
// path: posEndpoints.order.UPDATE_ORDER,
|
|
116
|
+
// query: data
|
|
117
|
+
// }
|
|
118
|
+
// );
|
|
119
|
+
// }
|
|
120
|
+
// public static async resetGiftCard(data: InputDataType.GetIncomeHistory) {
|
|
121
|
+
// return await this.client.get(
|
|
122
|
+
// {
|
|
123
|
+
// path: posEndpoints.order.RESET_GIFT_CARD,
|
|
124
|
+
// query: data
|
|
125
|
+
// }
|
|
126
|
+
// );
|
|
127
|
+
// }
|
|
128
|
+
// public static async cancelOrder(data: InputDataType.GetIncomeHistory) {
|
|
129
|
+
// return await this.client.get(
|
|
130
|
+
// {
|
|
131
|
+
// path: posEndpoints.order.CANCEL_ORDER,
|
|
132
|
+
// query: data
|
|
133
|
+
// }
|
|
134
|
+
// );
|
|
135
|
+
// }
|
|
136
|
+
static submitCheckout(data) {
|
|
137
|
+
var _a;
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
const response = yield this.client.post({
|
|
140
|
+
path: posEndpoints.order.SUBMIT_CHECKOUT,
|
|
141
|
+
data: data
|
|
142
|
+
});
|
|
143
|
+
return Model.SubmitCheckoutModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
static submitPayment(data) {
|
|
147
|
+
var _a;
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const response = yield this.client.post({
|
|
150
|
+
path: posEndpoints.order.SUBMIT_PAYMENT,
|
|
151
|
+
data: data
|
|
152
|
+
});
|
|
153
|
+
return Model.SubmitCheckoutModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
static updatePaymentData(data) {
|
|
157
|
+
var _a;
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const response = yield this.client.post({
|
|
160
|
+
path: posEndpoints.order.UPDATE_PAYMENT_DATA,
|
|
161
|
+
data: data
|
|
162
|
+
});
|
|
163
|
+
return Model.UpdatePaymentDataModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
static addNote(data) {
|
|
167
|
+
var _a;
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
const response = yield this.client.post({
|
|
170
|
+
path: posEndpoints.order.ADD_NOTE,
|
|
171
|
+
data: data
|
|
172
|
+
});
|
|
173
|
+
return Model.SubmitCheckoutModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
99
176
|
}
|
|
100
177
|
Order.API_VERSION = GapApiVersion.V1;
|
|
@@ -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,MA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AO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;WAYhE,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,g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