gap-nodejs-sdk 1.0.128 → 1.0.129
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/api/appointment_api/1.0.0/api/settings.js +3 -3
- package/dist/api/base_api/1.0.0/api/auth.js +4 -4
- package/dist/api/go_check_in_api/1.0.0/api/category.js +6 -6
- package/dist/api/go_check_in_api/1.0.0/api/service.js +7 -7
- package/dist/api/go_check_in_api/1.0.0/api/settings.d.ts +1 -1
- package/dist/api/go_check_in_api/1.0.0/api/settings.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/api/settings.js +2 -2
- package/dist/api/go_check_in_api/1.0.0/api/staff.js +16 -16
- package/dist/api/go_check_in_api/1.0.0/api/ticket.js +14 -14
- package/dist/api/pos_client_api/1.0.0/api/batch_history.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/business.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/call.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/category.js +2 -2
- package/dist/api/pos_client_api/1.0.0/api/check_in.js +7 -7
- package/dist/api/pos_client_api/1.0.0/api/check_out.js +34 -34
- package/dist/api/pos_client_api/1.0.0/api/combo.js +7 -7
- package/dist/api/pos_client_api/1.0.0/api/commission.js +2 -2
- package/dist/api/pos_client_api/1.0.0/api/customer.js +5 -5
- package/dist/api/pos_client_api/1.0.0/api/gift_card.js +4 -4
- package/dist/api/pos_client_api/1.0.0/api/income.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/key_storage.js +2 -2
- package/dist/api/pos_client_api/1.0.0/api/order.js +19 -19
- package/dist/api/pos_client_api/1.0.0/api/payroll.js +17 -17
- package/dist/api/pos_client_api/1.0.0/api/printer.d.ts.map +1 -1
- package/dist/api/pos_client_api/1.0.0/api/product.js +6 -6
- package/dist/api/pos_client_api/1.0.0/api/service.js +3 -3
- package/dist/api/pos_client_api/1.0.0/api/setting.js +17 -17
- package/dist/api/pos_client_api/1.0.0/api/staff.js +4 -4
- package/dist/api/pos_client_api/1.0.0/api/ticket.js +14 -14
- package/dist/api/pos_client_api/1.0.0/api/time_keeping.js +8 -8
- package/dist/api/pos_client_api/1.0.0/api/user.js +2 -2
- package/dist/api/settings_api/1.0.0/api/check_in.js +2 -2
- package/dist/api/settings_api/1.0.0/api/checkout.js +2 -2
- package/dist/api/settings_api/1.0.0/api/key_storage.js +7 -7
- package/dist/api/user_api/1.0.0/api/auth.js +2 -2
- package/dist/gap-sdk.js +1 -1
- package/dist/http_client/types.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/dist/interfaces/invoke_event_interface.d.ts +0 -4
- package/dist/interfaces/invoke_event_interface.d.ts.map +0 -1
- package/dist/interfaces/invoke_event_interface.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { settings } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class Settings extends Base {
|
|
|
8
8
|
var _a;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: settings.GET_SMS_CONTENT,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return Model.GetSMSContentModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -18,7 +18,7 @@ export default class Settings extends Base {
|
|
|
18
18
|
var _a;
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const response = yield this.client.post({
|
|
21
|
-
path:
|
|
21
|
+
path: settings.UPDATE_SMS_CONTENT,
|
|
22
22
|
data: data
|
|
23
23
|
});
|
|
24
24
|
return Model.UpdateSMSContentModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { auth } from "../endpoints";
|
|
3
3
|
import { GapApiVersion } from "../../../../base_type";
|
|
4
4
|
import * as Model from "../models";
|
|
5
5
|
import { objectToFormData } from "../../../../utils/form-data";
|
|
@@ -10,7 +10,7 @@ export default class Auth extends Base {
|
|
|
10
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const formData = objectToFormData(data);
|
|
12
12
|
const response = yield this.client.post({
|
|
13
|
-
path:
|
|
13
|
+
path: auth.LOGIN,
|
|
14
14
|
data: formData,
|
|
15
15
|
headers: {
|
|
16
16
|
'G-ClientID': data.g_client_id,
|
|
@@ -23,7 +23,7 @@ export default class Auth extends Base {
|
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const formData = objectToFormData(data);
|
|
25
25
|
yield this.client.post({
|
|
26
|
-
path:
|
|
26
|
+
path: auth.FORGOT_PASSWORD,
|
|
27
27
|
data: formData
|
|
28
28
|
});
|
|
29
29
|
return null;
|
|
@@ -33,7 +33,7 @@ export default class Auth extends Base {
|
|
|
33
33
|
var _a;
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
const response = yield this.client.get({
|
|
36
|
-
path:
|
|
36
|
+
path: auth.GET_DNS_INFO,
|
|
37
37
|
query: data
|
|
38
38
|
});
|
|
39
39
|
return Model.DnsInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { category } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -9,7 +9,7 @@ export default class Category extends Base {
|
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const formData = objectToFormData(data);
|
|
11
11
|
yield this.client.post({
|
|
12
|
-
path:
|
|
12
|
+
path: category.SORT_CATEGORY,
|
|
13
13
|
data: formData
|
|
14
14
|
});
|
|
15
15
|
return null;
|
|
@@ -19,7 +19,7 @@ export default class Category extends Base {
|
|
|
19
19
|
var _a, _b;
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
const response = yield this.client.get({
|
|
22
|
-
path:
|
|
22
|
+
path: category.GET_LIST_CATEGORY,
|
|
23
23
|
query: data,
|
|
24
24
|
});
|
|
25
25
|
return (((_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.CheckInCategoryModel(item));
|
|
@@ -30,7 +30,7 @@ export default class Category extends Base {
|
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const formData = objectToFormData(data.data);
|
|
32
32
|
const response = yield this.client.post({
|
|
33
|
-
path:
|
|
33
|
+
path: category.UPDATE_CATEGORY,
|
|
34
34
|
query: {
|
|
35
35
|
id: data.id
|
|
36
36
|
},
|
|
@@ -42,7 +42,7 @@ export default class Category extends Base {
|
|
|
42
42
|
static deleteCheckInCategory(data) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
44
|
yield this.client.get({
|
|
45
|
-
path:
|
|
45
|
+
path: category.DELETE_CATEGORY,
|
|
46
46
|
query: data
|
|
47
47
|
});
|
|
48
48
|
return null;
|
|
@@ -53,7 +53,7 @@ export default class Category extends Base {
|
|
|
53
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
54
54
|
const formData = objectToFormData(data);
|
|
55
55
|
const response = yield this.client.post({
|
|
56
|
-
path:
|
|
56
|
+
path: category.CREATE_CATEGORY,
|
|
57
57
|
data: formData
|
|
58
58
|
});
|
|
59
59
|
return Model.CheckInCategory2Model((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { service } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -9,7 +9,7 @@ export default class Services extends Base {
|
|
|
9
9
|
static getCheckInListByCategory(data) {
|
|
10
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const response = yield this.client.get({
|
|
12
|
-
path:
|
|
12
|
+
path: service.GET_LIST_BY_CATEGORY,
|
|
13
13
|
query: data
|
|
14
14
|
});
|
|
15
15
|
return DataWithMetaModel(response, Model.CheckInListByCategoryModel);
|
|
@@ -19,7 +19,7 @@ export default class Services extends Base {
|
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const formData = objectToFormData(data);
|
|
21
21
|
yield this.client.post({
|
|
22
|
-
path:
|
|
22
|
+
path: service.SORT_SERVICE,
|
|
23
23
|
data: formData
|
|
24
24
|
});
|
|
25
25
|
return null;
|
|
@@ -29,7 +29,7 @@ export default class Services extends Base {
|
|
|
29
29
|
var _a, _b;
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const response = yield this.client.get({
|
|
32
|
-
path:
|
|
32
|
+
path: service.GET_LIST_SERVICE,
|
|
33
33
|
query: data
|
|
34
34
|
});
|
|
35
35
|
return (((_b = (_a = response.result) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.items) || []).map(item => Model.CheckInServiceModel(item));
|
|
@@ -40,7 +40,7 @@ export default class Services extends Base {
|
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
const formData = objectToFormData(data.data);
|
|
42
42
|
const response = yield this.client.post({
|
|
43
|
-
path:
|
|
43
|
+
path: service.UPDATE_SERVICE,
|
|
44
44
|
query: data,
|
|
45
45
|
data: formData,
|
|
46
46
|
});
|
|
@@ -50,7 +50,7 @@ export default class Services extends Base {
|
|
|
50
50
|
static deleteCheckInService(data) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
52
|
yield this.client.get({
|
|
53
|
-
path:
|
|
53
|
+
path: service.DELETE_SERVICE,
|
|
54
54
|
query: data
|
|
55
55
|
});
|
|
56
56
|
return null;
|
|
@@ -61,7 +61,7 @@ export default class Services extends Base {
|
|
|
61
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
62
|
const formData = objectToFormData(data);
|
|
63
63
|
const response = yield this.client.post({
|
|
64
|
-
path:
|
|
64
|
+
path: service.CREATE_SERVICE,
|
|
65
65
|
data: formData
|
|
66
66
|
});
|
|
67
67
|
return Model.CheckInServiceModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -3,7 +3,7 @@ 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
|
-
export default class
|
|
6
|
+
export default class Settings extends Base implements SettingsAbstractClass {
|
|
7
7
|
static API_VERSION: GapApiVersion;
|
|
8
8
|
static getServiceFee(data: Request.GetServiceFeeRequest): Promise<Response.GetServiceFeeResponse>;
|
|
9
9
|
static updateServiceFee(data: Request.UpdateServiceFeeRequest): Promise<Response.UpdateServiceFeeResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/settings.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/settings.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;IACvE,OAAc,WAAW,gBAAoB;WAEzB,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;WAU1F,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC;WAUlH,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,+BAA+B,GAAG,OAAO,CAAC,QAAQ,CAAC,gCAAgC,CAAC;WAU3H,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,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;WAUpF,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAW7F,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAUnG,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAU5G,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAU5G,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAS5I"}
|
|
@@ -4,7 +4,7 @@ import Base from "../../../../base/Base";
|
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
6
6
|
import { objectToFormData } from "../../../../utils/form-data";
|
|
7
|
-
export default class
|
|
7
|
+
export default class Settings extends Base {
|
|
8
8
|
static getServiceFee(data) {
|
|
9
9
|
var _a;
|
|
10
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -126,4 +126,4 @@ export default class CheckIn extends Base {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
Settings.API_VERSION = GapApiVersion.V1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { staff } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -9,7 +9,7 @@ export default class Staff extends Base {
|
|
|
9
9
|
static getListStaff(data) {
|
|
10
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const response = yield this.client.get({
|
|
12
|
-
path:
|
|
12
|
+
path: staff.GET_LIST_STAFF,
|
|
13
13
|
query: data
|
|
14
14
|
});
|
|
15
15
|
return DataWithMetaModel(response, Model.ListStaffModel);
|
|
@@ -19,7 +19,7 @@ export default class Staff extends Base {
|
|
|
19
19
|
var _a;
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
const response = yield this.client.post({
|
|
22
|
-
path:
|
|
22
|
+
path: staff.CREATE_STAFF,
|
|
23
23
|
data: data
|
|
24
24
|
});
|
|
25
25
|
return Model.StaffModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -29,7 +29,7 @@ export default class Staff extends Base {
|
|
|
29
29
|
var _a;
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const response = yield this.client.post({
|
|
32
|
-
path:
|
|
32
|
+
path: staff.UPDATE_STAFF,
|
|
33
33
|
data: data
|
|
34
34
|
});
|
|
35
35
|
return Model.StaffModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -38,7 +38,7 @@ export default class Staff extends Base {
|
|
|
38
38
|
static deleteStaff(data) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
yield this.client.get({
|
|
41
|
-
path:
|
|
41
|
+
path: staff.DELETE_STAFF,
|
|
42
42
|
query: data
|
|
43
43
|
});
|
|
44
44
|
return null;
|
|
@@ -47,7 +47,7 @@ export default class Staff extends Base {
|
|
|
47
47
|
static sortStaff(data) {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
49
|
yield this.client.post({
|
|
50
|
-
path:
|
|
50
|
+
path: staff.SORT_STAFF,
|
|
51
51
|
data: data
|
|
52
52
|
});
|
|
53
53
|
return null;
|
|
@@ -57,7 +57,7 @@ export default class Staff extends Base {
|
|
|
57
57
|
var _a;
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
59
|
const response = yield this.client.get({
|
|
60
|
-
path:
|
|
60
|
+
path: staff.GET_STAFF_WORK_HOUR,
|
|
61
61
|
query: data
|
|
62
62
|
});
|
|
63
63
|
return Model.StaffWorkHourModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -68,7 +68,7 @@ export default class Staff extends Base {
|
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
const formData = objectToFormData(data);
|
|
70
70
|
const response = yield this.client.post({
|
|
71
|
-
path:
|
|
71
|
+
path: staff.UPDATE_STAFF_WORK_HOUR,
|
|
72
72
|
query: {
|
|
73
73
|
id: data.id
|
|
74
74
|
},
|
|
@@ -81,7 +81,7 @@ export default class Staff extends Base {
|
|
|
81
81
|
var _a, _b;
|
|
82
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
83
|
const response = yield this.client.get({
|
|
84
|
-
path:
|
|
84
|
+
path: staff.GET_LIST_SERVICE_BY_STAFF,
|
|
85
85
|
query: data
|
|
86
86
|
});
|
|
87
87
|
return (((_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.StaffServiceModel(item));
|
|
@@ -91,7 +91,7 @@ export default class Staff extends Base {
|
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
const formData = objectToFormData(data);
|
|
93
93
|
yield this.client.post({
|
|
94
|
-
path:
|
|
94
|
+
path: staff.ADD_LIST_SERVICE_BY_STAFF,
|
|
95
95
|
data: formData
|
|
96
96
|
});
|
|
97
97
|
return null;
|
|
@@ -101,7 +101,7 @@ export default class Staff extends Base {
|
|
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
const formData = objectToFormData(data);
|
|
103
103
|
yield this.client.post({
|
|
104
|
-
path:
|
|
104
|
+
path: staff.DELETE_LIST_SERVICE_BY_STAFF,
|
|
105
105
|
data: formData
|
|
106
106
|
});
|
|
107
107
|
return null;
|
|
@@ -111,7 +111,7 @@ export default class Staff extends Base {
|
|
|
111
111
|
var _a;
|
|
112
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
113
|
const response = yield this.client.get({
|
|
114
|
-
path:
|
|
114
|
+
path: staff.GET_LIST_PERMISSION,
|
|
115
115
|
query: data
|
|
116
116
|
});
|
|
117
117
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map((item) => Model.PermissionModel(item));
|
|
@@ -122,7 +122,7 @@ export default class Staff extends Base {
|
|
|
122
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
123
|
const formData = objectToFormData(data);
|
|
124
124
|
const response = yield this.client.post({
|
|
125
|
-
path:
|
|
125
|
+
path: staff.SAVE_COMMISSION,
|
|
126
126
|
data: formData
|
|
127
127
|
});
|
|
128
128
|
return Model.SaveCommissionModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -132,7 +132,7 @@ export default class Staff extends Base {
|
|
|
132
132
|
var _a;
|
|
133
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
134
|
const response = yield this.client.post({
|
|
135
|
-
path:
|
|
135
|
+
path: staff.UPDATE_STAFF_COMMISSION,
|
|
136
136
|
data: data
|
|
137
137
|
});
|
|
138
138
|
return Model.ListStaffModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -140,8 +140,8 @@ export default class Staff extends Base {
|
|
|
140
140
|
}
|
|
141
141
|
static updateRoleAppointment(data) {
|
|
142
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
|
|
144
|
-
path:
|
|
143
|
+
yield this.client.post({
|
|
144
|
+
path: staff.UPDATE_ROLE_APPOINTMENT,
|
|
145
145
|
data: data
|
|
146
146
|
});
|
|
147
147
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { ticket } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class Ticket extends Base {
|
|
|
8
8
|
var _a, _b;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: ticket.GET_TICKET_TEMPLATE,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return (((_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.CheckInTicketModel(item));
|
|
@@ -18,7 +18,7 @@ export default class Ticket extends Base {
|
|
|
18
18
|
var _a;
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const response = yield this.client.get({
|
|
21
|
-
path:
|
|
21
|
+
path: ticket.GET_TICKET_INFO,
|
|
22
22
|
query: data
|
|
23
23
|
});
|
|
24
24
|
return Model.CheckInTicketInfoModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -28,7 +28,7 @@ export default class Ticket extends Base {
|
|
|
28
28
|
var _a;
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const response = yield this.client.get({
|
|
31
|
-
path:
|
|
31
|
+
path: ticket.GET_TICKET_LIST,
|
|
32
32
|
query: data
|
|
33
33
|
});
|
|
34
34
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.CheckInTicketModel(item));
|
|
@@ -38,7 +38,7 @@ export default class Ticket extends Base {
|
|
|
38
38
|
var _a;
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const response = yield this.client.get({
|
|
41
|
-
path:
|
|
41
|
+
path: ticket.GET_TICKET_LIST_BLOCK_NAME,
|
|
42
42
|
query: data
|
|
43
43
|
});
|
|
44
44
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.CheckInTicketBlockNameModel(item));
|
|
@@ -48,7 +48,7 @@ export default class Ticket extends Base {
|
|
|
48
48
|
var _a;
|
|
49
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
50
|
const response = yield this.client.post({
|
|
51
|
-
path:
|
|
51
|
+
path: ticket.CREATE_TICKET_TEMPLATE,
|
|
52
52
|
data: data
|
|
53
53
|
});
|
|
54
54
|
return Model.CheckInTicketModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -56,8 +56,8 @@ export default class Ticket extends Base {
|
|
|
56
56
|
}
|
|
57
57
|
static deleteCheckInTicketTemplate(data) {
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
|
|
60
|
-
path:
|
|
59
|
+
yield this.client.get({
|
|
60
|
+
path: ticket.DELETE_TICKET_TEMPLATE,
|
|
61
61
|
query: data
|
|
62
62
|
});
|
|
63
63
|
return null;
|
|
@@ -67,7 +67,7 @@ export default class Ticket extends Base {
|
|
|
67
67
|
var _a;
|
|
68
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
const response = yield this.client.post({
|
|
70
|
-
path:
|
|
70
|
+
path: ticket.UPDATE_TICKET_TEMPLATE,
|
|
71
71
|
query: data,
|
|
72
72
|
data: data,
|
|
73
73
|
});
|
|
@@ -77,7 +77,7 @@ export default class Ticket extends Base {
|
|
|
77
77
|
static moveCheckInSubject(data) {
|
|
78
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
79
|
const response = yield this.client.post({
|
|
80
|
-
path:
|
|
80
|
+
path: ticket.MOVE_SUBJECT,
|
|
81
81
|
data: data
|
|
82
82
|
});
|
|
83
83
|
return null;
|
|
@@ -85,8 +85,8 @@ export default class Ticket extends Base {
|
|
|
85
85
|
}
|
|
86
86
|
static setCheckInDefaultTicketTemplate(data) {
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
|
|
89
|
-
path:
|
|
88
|
+
yield this.client.post({
|
|
89
|
+
path: ticket.SET_DEFAULT_TICKET_TEMPLATE,
|
|
90
90
|
data: data
|
|
91
91
|
});
|
|
92
92
|
return null;
|
|
@@ -94,8 +94,8 @@ export default class Ticket extends Base {
|
|
|
94
94
|
}
|
|
95
95
|
static sortCheckInPriority(data) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
|
|
98
|
-
path:
|
|
97
|
+
yield this.client.post({
|
|
98
|
+
path: ticket.SORT_PRIORITY,
|
|
99
99
|
data: data
|
|
100
100
|
});
|
|
101
101
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { batch_history } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class BatchHistory extends Base {
|
|
|
8
8
|
var _a;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: batch_history.GET_BATCH_HISTORY,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.BatchHistoryModel(item));
|
|
@@ -17,7 +17,7 @@ export default class BatchHistory extends Base {
|
|
|
17
17
|
static getBatchDetail(data) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
const response = yield this.client.get({
|
|
20
|
-
path:
|
|
20
|
+
path: batch_history.GET_BATCH_DETAIL,
|
|
21
21
|
query: data
|
|
22
22
|
});
|
|
23
23
|
return Model.BatchDetailModel(response.result.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { business } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -7,7 +7,7 @@ export default class Business extends Base {
|
|
|
7
7
|
static getBusinessInfo(data) {
|
|
8
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9
9
|
const response = yield this.client.get({
|
|
10
|
-
path:
|
|
10
|
+
path: business.GET_BUSINESS_INFO,
|
|
11
11
|
query: data
|
|
12
12
|
});
|
|
13
13
|
return Model.BusinessInfoModel(response.result.data);
|
|
@@ -16,7 +16,7 @@ export default class Business extends Base {
|
|
|
16
16
|
static postBusinessUpdateInfo(data) {
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
18
|
const response = yield this.client.post({
|
|
19
|
-
path:
|
|
19
|
+
path: business.POST_BUSINESS_UPDATE_INFO,
|
|
20
20
|
data: data
|
|
21
21
|
});
|
|
22
22
|
return Model.BusinessInfoModel(response.result.data);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { call } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
export default class Call extends Base {
|
|
6
6
|
static sendSms(data) {
|
|
7
7
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
|
|
9
|
-
path:
|
|
8
|
+
yield this.client.post({
|
|
9
|
+
path: call.SEND_SMS,
|
|
10
10
|
data: data
|
|
11
11
|
});
|
|
12
12
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { category } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class Category extends Base {
|
|
|
8
8
|
var _a;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.get({
|
|
11
|
-
path:
|
|
11
|
+
path: category.GET_CATEGORY_LIST_ITEM,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
14
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.CategoryListItemModel(item));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { check_in } from "../endpoints";
|
|
3
3
|
import Base from "../../../../base/Base";
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
@@ -8,7 +8,7 @@ export default class CheckIn extends Base {
|
|
|
8
8
|
var _a;
|
|
9
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
10
|
const response = yield this.client.post({
|
|
11
|
-
path:
|
|
11
|
+
path: check_in.POST_CHECK_IN_FORM_SUBMIT,
|
|
12
12
|
data: data
|
|
13
13
|
});
|
|
14
14
|
return Model.CheckInFormSubmitResponse((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -18,7 +18,7 @@ export default class CheckIn extends Base {
|
|
|
18
18
|
var _a;
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const response = yield this.client.get({
|
|
21
|
-
path:
|
|
21
|
+
path: check_in.GET_CHECK_IN_REPORT,
|
|
22
22
|
query: data
|
|
23
23
|
});
|
|
24
24
|
return Model.CheckInReportModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -28,7 +28,7 @@ export default class CheckIn extends Base {
|
|
|
28
28
|
var _a;
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const response = yield this.client.get({
|
|
31
|
-
path:
|
|
31
|
+
path: check_in.GET_LAST_CHECK_IN,
|
|
32
32
|
query: data
|
|
33
33
|
});
|
|
34
34
|
return Model.LastCheckInModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
@@ -38,7 +38,7 @@ export default class CheckIn extends Base {
|
|
|
38
38
|
var _a, _b;
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
const response = yield this.client.get({
|
|
41
|
-
path:
|
|
41
|
+
path: check_in.GET_CHECK_IN_LIST,
|
|
42
42
|
query: data
|
|
43
43
|
});
|
|
44
44
|
return (((_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.CheckInInfoModel(item));
|
|
@@ -47,7 +47,7 @@ export default class CheckIn extends Base {
|
|
|
47
47
|
static getCheckInInfo(data) {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
49
|
const response = yield this.client.get({
|
|
50
|
-
path:
|
|
50
|
+
path: check_in.GET_CHECK_IN_INFO,
|
|
51
51
|
query: data
|
|
52
52
|
});
|
|
53
53
|
return Model.CheckInInfoModel(response.result.data);
|
|
@@ -56,7 +56,7 @@ export default class CheckIn extends Base {
|
|
|
56
56
|
static searchCheckIn(data) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
58
|
const response = yield this.client.get({
|
|
59
|
-
path:
|
|
59
|
+
path: check_in.SEARCH_CHECK_IN,
|
|
60
60
|
query: data
|
|
61
61
|
});
|
|
62
62
|
return Model.SearchCheckInModel(response.result.data);
|