gap-nodejs-sdk 1.0.327 → 1.0.329
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/go_check_in_api/1.0.0/api/customer.d.ts +0 -7
- package/dist/api/go_check_in_api/1.0.0/api/customer.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/api/customer.js +0 -71
- package/dist/api/go_check_in_api/1.0.0/api/group.d.ts +17 -0
- package/dist/api/go_check_in_api/1.0.0/api/group.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/api/group.js +81 -0
- package/dist/api/go_check_in_api/1.0.0/api/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/api/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/api/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/customer.d.ts +0 -7
- package/dist/api/go_check_in_api/1.0.0/endpoints/customer.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/endpoints/customer.js +0 -7
- package/dist/api/go_check_in_api/1.0.0/endpoints/group.d.ts +11 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/group.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/group.js +9 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/endpoints/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/group.d.ts +3 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/group.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/interfaces/group.js +2 -0
- package/dist/api/go_check_in_api/1.0.0/models/customer.d.ts +0 -41
- package/dist/api/go_check_in_api/1.0.0/models/customer.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/models/customer.js +3 -58
- package/dist/api/go_check_in_api/1.0.0/models/group.d.ts +42 -0
- package/dist/api/go_check_in_api/1.0.0/models/group.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/models/group.js +79 -0
- package/dist/api/go_check_in_api/1.0.0/models/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/models/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/models/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/customer.d.ts +0 -15
- package/dist/api/go_check_in_api/1.0.0/types/request/customer.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/types/request/group.d.ts +17 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/group.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/group.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/request/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/types/request/index.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/customer.d.ts +5 -47
- package/dist/api/go_check_in_api/1.0.0/types/response/customer.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/types/response/group.d.ts +48 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/group.d.ts.map +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/group.js +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts +1 -0
- package/dist/api/go_check_in_api/1.0.0/types/response/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/1.0.0/types/response/index.js +1 -0
- package/dist/api/go_check_in_api/index.d.ts +1 -0
- package/dist/api/go_check_in_api/index.d.ts.map +1 -1
- package/dist/api/go_check_in_api/index.js +1 -0
- package/dist/gap-sdk.js +1 -1
- package/dist/http_client/http_client.d.ts.map +1 -1
- package/dist/http_client/http_client.js +3 -1
- package/package.json +1 -1
|
@@ -6,19 +6,12 @@ import * as Response from "../types/response";
|
|
|
6
6
|
import { DataWithMetaResponse } from "../../../../types";
|
|
7
7
|
export default class Customer extends Base implements CustomerAbstractClass {
|
|
8
8
|
static API_VERSION: GapApiVersion;
|
|
9
|
-
static getInfoGroup(data: Request.GetInfoGroupRequest): Promise<DataWithMetaResponse<Response.GetInfoGroupResponse>>;
|
|
10
9
|
static updateListGroup(data: Request.UpdateListGroupRequest): Promise<Response.UpdateListGroupResponse>;
|
|
11
|
-
static getGroup(query: Request.GetGroupRequest): Promise<DataWithMetaResponse<Response.GetGroupResponse>>;
|
|
12
|
-
static createGroup(data: Request.CreateGroupRequest): Promise<Response.CreateGroupResponse>;
|
|
13
|
-
static updateGroup(data: Request.UpdateGroupRequest): Promise<Response.UpdateGroupResponse>;
|
|
14
|
-
static deleteGroup(data: Request.DeleteGroupRequest): Promise<Response.DeleteGroupResponse>;
|
|
15
|
-
static getListCustomerToAddGroup(query: Request.GetListCustomerToAddGroupRequest): Promise<DataWithMetaResponse<Response.GetListCustomerToAddGroupResponse>>;
|
|
16
10
|
static getListCustomer(query?: Request.GetListCustomerRequest): Promise<DataWithMetaResponse<Response.GetListCustomerResponse>>;
|
|
17
11
|
static getCustomer(query: Request.GetCustomerRequest): Promise<Response.GetCustomerResponse>;
|
|
18
12
|
static updateCustomer(data: Request.UpdateCustomerCheckinRequest): Promise<Response.UpdateCustomerCheckinResponse>;
|
|
19
13
|
static getCustomerHistory(query: Request.GetCustomerHistoryCheckinRequest): Promise<DataWithMetaResponse<Response.GetCustomerHistoryCheckinResponse>>;
|
|
20
14
|
static deleteCustomers(data: Request.DeleteCustomersRequest): Promise<Response.DeleteCustomersResponse>;
|
|
21
|
-
static removeCustomers(data: Request.RemoveCustomerRequest): Promise<Response.RemoveCustomerResponse>;
|
|
22
15
|
static getChartInfo(query?: Request.GetChartInfoRequest): Promise<Response.GetChartInfoResponse>;
|
|
23
16
|
static exportMember(query?: Request.ExportMemberRequest): Promise<Response.ExportMemberResponse>;
|
|
24
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/customer.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;AAG9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;IACvE,OAAc,WAAW,gBAAoB;WAEzB,
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/customer.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;AAG9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,qBAAqB;IACvE,OAAc,WAAW,gBAAoB;WAEzB,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAWhG,eAAe,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;WAUxH,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;WAUrF,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC;WAW3G,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC;WAU9I,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,sBAAsB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAWhG,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;WAUzF,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC;CAQhH"}
|
|
@@ -6,15 +6,6 @@ import * as Model from "../models";
|
|
|
6
6
|
import { objectToFormData } from "../../../../utils/form-data";
|
|
7
7
|
import { DataWithMetaModel } from "../../../../models";
|
|
8
8
|
export default class Customer extends Base {
|
|
9
|
-
static getInfoGroup(data) {
|
|
10
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
const response = yield this.client.get({
|
|
12
|
-
path: customer.GET_INFO_GROUP,
|
|
13
|
-
query: data
|
|
14
|
-
});
|
|
15
|
-
return DataWithMetaModel(response, Model.GetInfoGroupModel);
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
9
|
static updateListGroup(data) {
|
|
19
10
|
var _a;
|
|
20
11
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -26,57 +17,6 @@ export default class Customer extends Base {
|
|
|
26
17
|
return (((_a = response === null || response === void 0 ? void 0 : response.results) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.UpdateListGroupModel(item));
|
|
27
18
|
});
|
|
28
19
|
}
|
|
29
|
-
static getGroup(query) {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
const response = yield this.client.get({
|
|
32
|
-
path: customer.GET_GROUP,
|
|
33
|
-
query: query
|
|
34
|
-
});
|
|
35
|
-
return DataWithMetaModel(response, Model.GetGroupModel);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
static createGroup(data) {
|
|
39
|
-
var _a;
|
|
40
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
const formData = objectToFormData(data);
|
|
42
|
-
const response = yield this.client.post({
|
|
43
|
-
path: customer.CREATE_GROUP,
|
|
44
|
-
data: formData
|
|
45
|
-
});
|
|
46
|
-
return Model.CreateGroupModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
static updateGroup(data) {
|
|
50
|
-
var _a;
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
const formData = objectToFormData(data);
|
|
53
|
-
const response = yield this.client.post({
|
|
54
|
-
path: customer.UPDATE_GROUP,
|
|
55
|
-
data: formData
|
|
56
|
-
});
|
|
57
|
-
return Model.UpdateGroupModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
static deleteGroup(data) {
|
|
61
|
-
var _a;
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
const formData = objectToFormData(data);
|
|
64
|
-
const response = yield this.client.post({
|
|
65
|
-
path: customer.DELETE_GROUP,
|
|
66
|
-
data: formData
|
|
67
|
-
});
|
|
68
|
-
return Model.DeleteGroupModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
static getListCustomerToAddGroup(query) {
|
|
72
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
const response = yield this.client.get({
|
|
74
|
-
path: customer.GET_LIST_CUSTOMER_TO_ADD_GROUP,
|
|
75
|
-
query: query
|
|
76
|
-
});
|
|
77
|
-
return DataWithMetaModel(response, Model.GetListCustomerToAddGroupModel);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
20
|
static getListCustomer(query) {
|
|
81
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
22
|
const response = yield this.client.get({
|
|
@@ -127,17 +67,6 @@ export default class Customer extends Base {
|
|
|
127
67
|
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(Model.CustomerModel);
|
|
128
68
|
});
|
|
129
69
|
}
|
|
130
|
-
static removeCustomers(data) {
|
|
131
|
-
var _a;
|
|
132
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
const formData = objectToFormData(data);
|
|
134
|
-
const response = yield this.client.post({
|
|
135
|
-
path: customer.REMOVE_CUSTOMERS,
|
|
136
|
-
data: formData
|
|
137
|
-
});
|
|
138
|
-
return Model.RemoveCustomersModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
70
|
static getChartInfo(query) {
|
|
142
71
|
var _a;
|
|
143
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import GroupAbstractClass from "../interfaces/customer";
|
|
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
|
+
import { DataWithMetaResponse } from "../../../../types";
|
|
7
|
+
export default class Group extends Base implements GroupAbstractClass {
|
|
8
|
+
static API_VERSION: GapApiVersion;
|
|
9
|
+
static getListGroup(query: Request.GetListGroupRequest): Promise<DataWithMetaResponse<Response.GetListGroupResponse>>;
|
|
10
|
+
static getGroup(query: Request.GetGroupRequest): Promise<DataWithMetaResponse<Response.GetGroupResponse>>;
|
|
11
|
+
static createGroup(data: Request.CreateGroupRequest): Promise<Response.CreateGroupResponse>;
|
|
12
|
+
static updateGroup(data: Request.UpdateGroupRequest): Promise<Response.UpdateGroupResponse>;
|
|
13
|
+
static deleteGroup(data: Request.DeleteGroupRequest): Promise<Response.DeleteGroupResponse>;
|
|
14
|
+
static removeCustomers(data: Request.RemoveCustomerRequest): Promise<Response.RemoveCustomerResponse>;
|
|
15
|
+
static getListCustomerToAddGroup(query: Request.GetListCustomerToAddGroupRequest): Promise<DataWithMetaResponse<Response.GetListCustomerToAddGroupResponse>>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/group.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,MAAM,wBAAwB,CAAC;AACxD,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;AAG9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAGvD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,IAAK,YAAW,kBAAkB;IACjE,OAAc,WAAW,gBAAoB;WAEzB,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;WAU9G,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;WAUlG,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;WAWpF,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;WAWpF,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;WAWpF,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAW9F,yBAAyB,CAAC,KAAK,EAAE,OAAO,CAAC,gCAAgC,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,iCAAiC,CAAC,CAAC;CAS5K"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { group } from "../endpoints";
|
|
3
|
+
import Base from "../../../../base/Base";
|
|
4
|
+
import { GapApiVersion } from "../../../../base_type";
|
|
5
|
+
import * as Model from "../models";
|
|
6
|
+
import { objectToFormData } from "../../../../utils/form-data";
|
|
7
|
+
import { DataWithMetaModel } from "../../../../models";
|
|
8
|
+
export default class Group extends Base {
|
|
9
|
+
static getListGroup(query) {
|
|
10
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const response = yield this.client.get({
|
|
12
|
+
path: group.GET_LIST_GROUP,
|
|
13
|
+
query: query
|
|
14
|
+
});
|
|
15
|
+
return DataWithMetaModel(response, Model.GetListGroupModel);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static getGroup(query) {
|
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
const response = yield this.client.get({
|
|
21
|
+
path: group.GET_GROUP,
|
|
22
|
+
query: query
|
|
23
|
+
});
|
|
24
|
+
return DataWithMetaModel(response, Model.GetGroupModel);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
static createGroup(data) {
|
|
28
|
+
var _a;
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const formData = objectToFormData(data);
|
|
31
|
+
const response = yield this.client.post({
|
|
32
|
+
path: group.CREATE_GROUP,
|
|
33
|
+
data: formData
|
|
34
|
+
});
|
|
35
|
+
return Model.CreateGroupModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
static updateGroup(data) {
|
|
39
|
+
var _a;
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const formData = objectToFormData(data);
|
|
42
|
+
const response = yield this.client.post({
|
|
43
|
+
path: group.UPDATE_GROUP,
|
|
44
|
+
data: formData
|
|
45
|
+
});
|
|
46
|
+
return Model.UpdateGroupModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
static deleteGroup(data) {
|
|
50
|
+
var _a;
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const formData = objectToFormData(data);
|
|
53
|
+
const response = yield this.client.post({
|
|
54
|
+
path: group.DELETE_GROUP,
|
|
55
|
+
data: formData
|
|
56
|
+
});
|
|
57
|
+
return Model.DeleteGroupModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
static removeCustomers(data) {
|
|
61
|
+
var _a;
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const formData = objectToFormData(data);
|
|
64
|
+
const response = yield this.client.post({
|
|
65
|
+
path: group.REMOVE_CUSTOMERS,
|
|
66
|
+
data: formData
|
|
67
|
+
});
|
|
68
|
+
return Model.RemoveCustomersModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
static getListCustomerToAddGroup(query) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const response = yield this.client.get({
|
|
74
|
+
path: group.GET_LIST_CUSTOMER_TO_ADD_GROUP,
|
|
75
|
+
query: query
|
|
76
|
+
});
|
|
77
|
+
return DataWithMetaModel(response, Model.GetListCustomerToAddGroupModel);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
Group.API_VERSION = GapApiVersion.V1;
|
|
@@ -8,4 +8,5 @@ export { default as Notification } from "./notification";
|
|
|
8
8
|
export { default as Customer } from "./customer";
|
|
9
9
|
export { default as Business } from "./business";
|
|
10
10
|
export { default as Campaign } from "./campaign";
|
|
11
|
+
export { default as Group } from "./group";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC"}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
GET_INFO_GROUP: string;
|
|
3
2
|
UPDATE_LIST_GROUP: string;
|
|
4
|
-
GET_GROUP: string;
|
|
5
|
-
CREATE_GROUP: string;
|
|
6
|
-
UPDATE_GROUP: string;
|
|
7
|
-
DELETE_GROUP: string;
|
|
8
|
-
GET_LIST_CUSTOMER_TO_ADD_GROUP: string;
|
|
9
3
|
GET_LIST_CUSTOMER: string;
|
|
10
4
|
GET_CUSTOMER: string;
|
|
11
5
|
UPDATE_CUSTOMER: string;
|
|
12
6
|
DELETE_CUSTOMERS: string;
|
|
13
7
|
GET_CUSTOMER_HISTORY: string;
|
|
14
|
-
REMOVE_CUSTOMERS: string;
|
|
15
8
|
GET_CHART_INFO: string;
|
|
16
9
|
EXPORT_MEMBER: string;
|
|
17
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/customer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/customer.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wBASC"}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
GET_INFO_GROUP: '/v1/gocheckin/group/site/list',
|
|
3
2
|
UPDATE_LIST_GROUP: '/v1/gocheckin/customer/form/update-list-group',
|
|
4
|
-
GET_GROUP: '/v1/gocheckin/group/site/get',
|
|
5
|
-
CREATE_GROUP: '/v1/gocheckin/group/form/create',
|
|
6
|
-
UPDATE_GROUP: '/v1/gocheckin/group/form/update',
|
|
7
|
-
DELETE_GROUP: '/v1/gocheckin/group/form/delete',
|
|
8
|
-
GET_LIST_CUSTOMER_TO_ADD_GROUP: '/v1/gocheckin/group/site/list-to-add',
|
|
9
3
|
GET_LIST_CUSTOMER: '/v1/gocheckin/customer/site/list',
|
|
10
4
|
GET_CUSTOMER: '/v1/gocheckin/customer/site/get',
|
|
11
5
|
UPDATE_CUSTOMER: '/v1/gocheckin/customer/form/update',
|
|
12
6
|
DELETE_CUSTOMERS: '/v1/gocheckin/customer/form/bulk-delete',
|
|
13
7
|
GET_CUSTOMER_HISTORY: '/v1/gocheckin/customer/history/get',
|
|
14
|
-
REMOVE_CUSTOMERS: '/v1/gocheckin/group/form/remove-customers',
|
|
15
8
|
GET_CHART_INFO: '/v1/gocheckin/customer/site/chart-info',
|
|
16
9
|
EXPORT_MEMBER: '/v1/gocheckin/customer/site/export-member',
|
|
17
10
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
GET_LIST_GROUP: string;
|
|
3
|
+
GET_GROUP: string;
|
|
4
|
+
CREATE_GROUP: string;
|
|
5
|
+
UPDATE_GROUP: string;
|
|
6
|
+
DELETE_GROUP: string;
|
|
7
|
+
REMOVE_CUSTOMERS: string;
|
|
8
|
+
GET_LIST_CUSTOMER_TO_ADD_GROUP: string;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/group.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wBAQC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
GET_LIST_GROUP: '/v1/gocheckin/group/site/list',
|
|
3
|
+
GET_GROUP: '/v1/gocheckin/group/site/get',
|
|
4
|
+
CREATE_GROUP: '/v1/gocheckin/group/form/create',
|
|
5
|
+
UPDATE_GROUP: '/v1/gocheckin/group/form/update',
|
|
6
|
+
DELETE_GROUP: '/v1/gocheckin/group/form/delete',
|
|
7
|
+
REMOVE_CUSTOMERS: '/v1/gocheckin/group/form/remove-customers',
|
|
8
|
+
GET_LIST_CUSTOMER_TO_ADD_GROUP: '/v1/gocheckin/group/site/list-to-add',
|
|
9
|
+
};
|
|
@@ -8,4 +8,5 @@ export { default as notification } from "./notification";
|
|
|
8
8
|
export { default as customer } from "./customer";
|
|
9
9
|
export { default as business } from "./business";
|
|
10
10
|
export { default as campaign } from "./campaign";
|
|
11
|
+
export { default as group } from "./group";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/interfaces/group.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK;CAClC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export declare const GetInfoGroupModel: (data: any) => {
|
|
2
|
-
id: any;
|
|
3
|
-
name: any;
|
|
4
|
-
description: any;
|
|
5
|
-
status: any;
|
|
6
|
-
};
|
|
7
1
|
export declare const UpdateListGroupModel: (data: any) => {
|
|
8
2
|
customer_id: any;
|
|
9
3
|
group_id: any;
|
|
@@ -95,15 +89,6 @@ export declare const HistoryModel: (data: any) => {
|
|
|
95
89
|
show_on_wait_list: any;
|
|
96
90
|
};
|
|
97
91
|
};
|
|
98
|
-
export declare const RemoveCustomersModel: (data: any) => {
|
|
99
|
-
group: {
|
|
100
|
-
id: any;
|
|
101
|
-
name: any;
|
|
102
|
-
description: any;
|
|
103
|
-
status: any;
|
|
104
|
-
};
|
|
105
|
-
customers: any;
|
|
106
|
-
};
|
|
107
92
|
export declare const ChartInfoModel: (data: any) => {
|
|
108
93
|
all: any;
|
|
109
94
|
vip: any;
|
|
@@ -114,30 +99,4 @@ export declare const ChartInfoModel: (data: any) => {
|
|
|
114
99
|
import: any;
|
|
115
100
|
booking: any;
|
|
116
101
|
};
|
|
117
|
-
export declare const GetGroupModel: (data: any) => {
|
|
118
|
-
customer: any;
|
|
119
|
-
};
|
|
120
|
-
export declare const CreateGroupModel: (data: any) => {
|
|
121
|
-
id: any;
|
|
122
|
-
name: any;
|
|
123
|
-
status: any;
|
|
124
|
-
};
|
|
125
|
-
export declare const UpdateGroupModel: (data: any) => {
|
|
126
|
-
group: {
|
|
127
|
-
id: any;
|
|
128
|
-
name: any;
|
|
129
|
-
description: any;
|
|
130
|
-
status: any;
|
|
131
|
-
};
|
|
132
|
-
customers: any;
|
|
133
|
-
};
|
|
134
|
-
export declare const DeleteGroupModel: (data: any) => {
|
|
135
|
-
id: any;
|
|
136
|
-
name: any;
|
|
137
|
-
description: any;
|
|
138
|
-
status: any;
|
|
139
|
-
};
|
|
140
|
-
export declare const GetListCustomerToAddGroupModel: (data: any) => {
|
|
141
|
-
customer: any;
|
|
142
|
-
};
|
|
143
102
|
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/customer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/customer.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,SAAU,GAAG;;;;CAI5C,CAAC;AACH,eAAO,MAAM,aAAa,SAAU,GAAG;;;;;;;;;;;;;;;;;;CAkBrC,CAAC;AACH,eAAO,MAAM,iBAAiB,SAAU,GAAG;;;;;;;;;;;;;;;;;CAiBzC,CAAA;AACF,eAAO,MAAM,YAAY,SAAU,GAAG;;;;;;;;;CASpC,CAAA;AACF,eAAO,MAAM,SAAS,SAAU,GAAG;;CAEjC,CAAA;AACF,eAAO,MAAM,YAAY,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASpC,CAAC;AACH,eAAO,MAAM,cAAc,SAAU,GAAG;;;;;;;;;CAStC,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var _a
|
|
1
|
+
const GroupModel = (data) => {
|
|
2
|
+
var _a;
|
|
3
3
|
return ({
|
|
4
|
-
|
|
5
|
-
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
6
|
-
description: (_c = data === null || data === void 0 ? void 0 : data.description) !== null && _c !== void 0 ? _c : null,
|
|
7
|
-
status: (_d = data === null || data === void 0 ? void 0 : data.status) !== null && _d !== void 0 ? _d : null,
|
|
4
|
+
group_id: (_a = data === null || data === void 0 ? void 0 : data.group_id) !== null && _a !== void 0 ? _a : null,
|
|
8
5
|
});
|
|
9
6
|
};
|
|
10
7
|
export const UpdateListGroupModel = (data) => {
|
|
@@ -15,12 +12,6 @@ export const UpdateListGroupModel = (data) => {
|
|
|
15
12
|
id: (_c = data === null || data === void 0 ? void 0 : data.id) !== null && _c !== void 0 ? _c : null,
|
|
16
13
|
});
|
|
17
14
|
};
|
|
18
|
-
const GroupModel = (data) => {
|
|
19
|
-
var _a;
|
|
20
|
-
return ({
|
|
21
|
-
group_id: (_a = data === null || data === void 0 ? void 0 : data.group_id) !== null && _a !== void 0 ? _a : null,
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
15
|
export const CustomerModel = (data) => {
|
|
25
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
26
17
|
return ({
|
|
@@ -96,32 +87,6 @@ export const HistoryModel = (data) => {
|
|
|
96
87
|
checkin: CheckinModel(data === null || data === void 0 ? void 0 : data.checkin),
|
|
97
88
|
});
|
|
98
89
|
};
|
|
99
|
-
const GroupCustomerModel = (data) => ({
|
|
100
|
-
customer: ((data === null || data === void 0 ? void 0 : data.customer) || []).map(item => {
|
|
101
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
102
|
-
return ({
|
|
103
|
-
id: (_b = (_a = item === null || item === void 0 ? void 0 : item.customer) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null,
|
|
104
|
-
full_name: (_d = (_c = item === null || item === void 0 ? void 0 : item.customer) === null || _c === void 0 ? void 0 : _c.full_name) !== null && _d !== void 0 ? _d : null,
|
|
105
|
-
email: (_f = (_e = item === null || item === void 0 ? void 0 : item.customer) === null || _e === void 0 ? void 0 : _e.email) !== null && _f !== void 0 ? _f : null,
|
|
106
|
-
create_at: (_h = (_g = item === null || item === void 0 ? void 0 : item.customer) === null || _g === void 0 ? void 0 : _g.create_at) !== null && _h !== void 0 ? _h : null,
|
|
107
|
-
phone: (_k = (_j = item === null || item === void 0 ? void 0 : item.customer) === null || _j === void 0 ? void 0 : _j.phone) !== null && _k !== void 0 ? _k : null,
|
|
108
|
-
lifetime_point: (_m = (_l = item === null || item === void 0 ? void 0 : item.customer) === null || _l === void 0 ? void 0 : _l.lifetime_point) !== null && _m !== void 0 ? _m : null,
|
|
109
|
-
current_point: (_p = (_o = item === null || item === void 0 ? void 0 : item.customer) === null || _o === void 0 ? void 0 : _o.current_point) !== null && _p !== void 0 ? _p : null,
|
|
110
|
-
});
|
|
111
|
-
})
|
|
112
|
-
});
|
|
113
|
-
export const RemoveCustomersModel = (data) => {
|
|
114
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
115
|
-
return ({
|
|
116
|
-
group: {
|
|
117
|
-
id: (_b = (_a = data === null || data === void 0 ? void 0 : data.group) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null,
|
|
118
|
-
name: (_d = (_c = data === null || data === void 0 ? void 0 : data.group) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : null,
|
|
119
|
-
description: (_f = (_e = data === null || data === void 0 ? void 0 : data.group) === null || _e === void 0 ? void 0 : _e.description) !== null && _f !== void 0 ? _f : null,
|
|
120
|
-
status: (_h = (_g = data === null || data === void 0 ? void 0 : data.group) === null || _g === void 0 ? void 0 : _g.status) !== null && _h !== void 0 ? _h : null,
|
|
121
|
-
},
|
|
122
|
-
customers: ((data === null || data === void 0 ? void 0 : data.customers) || []).map(GroupCustomerModel),
|
|
123
|
-
});
|
|
124
|
-
};
|
|
125
90
|
export const ChartInfoModel = (data) => {
|
|
126
91
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
127
92
|
return ({
|
|
@@ -135,23 +100,3 @@ export const ChartInfoModel = (data) => {
|
|
|
135
100
|
booking: (_h = data === null || data === void 0 ? void 0 : data.booking) !== null && _h !== void 0 ? _h : null,
|
|
136
101
|
});
|
|
137
102
|
};
|
|
138
|
-
export const GetGroupModel = GroupCustomerModel;
|
|
139
|
-
export const CreateGroupModel = (data) => {
|
|
140
|
-
var _a, _b, _c;
|
|
141
|
-
return ({
|
|
142
|
-
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
143
|
-
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
144
|
-
status: (_c = data === null || data === void 0 ? void 0 : data.status) !== null && _c !== void 0 ? _c : null,
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
export const UpdateGroupModel = RemoveCustomersModel;
|
|
148
|
-
export const DeleteGroupModel = (data) => {
|
|
149
|
-
var _a, _b, _c, _d;
|
|
150
|
-
return ({
|
|
151
|
-
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
152
|
-
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
153
|
-
description: (_c = data === null || data === void 0 ? void 0 : data.description) !== null && _c !== void 0 ? _c : null,
|
|
154
|
-
status: (_d = data === null || data === void 0 ? void 0 : data.status) !== null && _d !== void 0 ? _d : null
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
export const GetListCustomerToAddGroupModel = GroupCustomerModel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const GetListGroupModel: (data: any) => {
|
|
2
|
+
id: any;
|
|
3
|
+
name: any;
|
|
4
|
+
description: any;
|
|
5
|
+
status: any;
|
|
6
|
+
};
|
|
7
|
+
export declare const GetGroupModel: (data: any) => {
|
|
8
|
+
customer: any;
|
|
9
|
+
};
|
|
10
|
+
export declare const CreateGroupModel: (data: any) => {
|
|
11
|
+
id: any;
|
|
12
|
+
name: any;
|
|
13
|
+
status: any;
|
|
14
|
+
};
|
|
15
|
+
export declare const UpdateGroupModel: (data: any) => {
|
|
16
|
+
group: {
|
|
17
|
+
id: any;
|
|
18
|
+
name: any;
|
|
19
|
+
description: any;
|
|
20
|
+
status: any;
|
|
21
|
+
};
|
|
22
|
+
customers: any;
|
|
23
|
+
};
|
|
24
|
+
export declare const DeleteGroupModel: (data: any) => {
|
|
25
|
+
id: any;
|
|
26
|
+
name: any;
|
|
27
|
+
description: any;
|
|
28
|
+
status: any;
|
|
29
|
+
};
|
|
30
|
+
export declare const RemoveCustomersModel: (data: any) => {
|
|
31
|
+
group: {
|
|
32
|
+
id: any;
|
|
33
|
+
name: any;
|
|
34
|
+
description: any;
|
|
35
|
+
status: any;
|
|
36
|
+
};
|
|
37
|
+
customers: any;
|
|
38
|
+
};
|
|
39
|
+
export declare const GetListCustomerToAddGroupModel: (data: any) => {
|
|
40
|
+
customer: any;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/models/group.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,SAAU,GAAG;;;;;CAKzC,CAAC;AACH,eAAO,MAAM,aAAa,SAAU,GAAG;;CAUrC,CAAC;AACH,eAAO,MAAM,gBAAgB,SAAU,GAAG;;;;CAIxC,CAAC;AACH,eAAO,MAAM,gBAAgB,SAAU,GAAG;;;;;;;;CAQxC,CAAC;AACH,eAAO,MAAM,gBAAgB,SAAU,GAAG;;;;;CAKxC,CAAA;AACF,eAAO,MAAM,oBAAoB,SAAU,GAAG;;;;;;;;CAQ5C,CAAC;AACH,eAAO,MAAM,8BAA8B,SAxCP,GAAG;;CAwCoB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const GroupCustomerModel = (data) => ({
|
|
2
|
+
customer: ((data === null || data === void 0 ? void 0 : data.customer) || []).map(item => {
|
|
3
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
4
|
+
return ({
|
|
5
|
+
id: (_b = (_a = item === null || item === void 0 ? void 0 : item.customer) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
full_name: (_d = (_c = item === null || item === void 0 ? void 0 : item.customer) === null || _c === void 0 ? void 0 : _c.full_name) !== null && _d !== void 0 ? _d : null,
|
|
7
|
+
email: (_f = (_e = item === null || item === void 0 ? void 0 : item.customer) === null || _e === void 0 ? void 0 : _e.email) !== null && _f !== void 0 ? _f : null,
|
|
8
|
+
create_at: (_h = (_g = item === null || item === void 0 ? void 0 : item.customer) === null || _g === void 0 ? void 0 : _g.create_at) !== null && _h !== void 0 ? _h : null,
|
|
9
|
+
phone: (_k = (_j = item === null || item === void 0 ? void 0 : item.customer) === null || _j === void 0 ? void 0 : _j.phone) !== null && _k !== void 0 ? _k : null,
|
|
10
|
+
lifetime_point: (_m = (_l = item === null || item === void 0 ? void 0 : item.customer) === null || _l === void 0 ? void 0 : _l.lifetime_point) !== null && _m !== void 0 ? _m : null,
|
|
11
|
+
current_point: (_p = (_o = item === null || item === void 0 ? void 0 : item.customer) === null || _o === void 0 ? void 0 : _o.current_point) !== null && _p !== void 0 ? _p : null,
|
|
12
|
+
});
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
export const GetListGroupModel = (data) => {
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
return ({
|
|
18
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
19
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
20
|
+
description: (_c = data === null || data === void 0 ? void 0 : data.description) !== null && _c !== void 0 ? _c : null,
|
|
21
|
+
status: (_d = data === null || data === void 0 ? void 0 : data.status) !== null && _d !== void 0 ? _d : null,
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export const GetGroupModel = (data) => ({
|
|
25
|
+
customer: ((data === null || data === void 0 ? void 0 : data.customer) || []).map(item => {
|
|
26
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
27
|
+
return ({
|
|
28
|
+
id: (_b = (_a = item === null || item === void 0 ? void 0 : item.customer) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null,
|
|
29
|
+
full_name: (_d = (_c = item === null || item === void 0 ? void 0 : item.customer) === null || _c === void 0 ? void 0 : _c.full_name) !== null && _d !== void 0 ? _d : null,
|
|
30
|
+
email: (_f = (_e = item === null || item === void 0 ? void 0 : item.customer) === null || _e === void 0 ? void 0 : _e.email) !== null && _f !== void 0 ? _f : null,
|
|
31
|
+
create_at: (_h = (_g = item === null || item === void 0 ? void 0 : item.customer) === null || _g === void 0 ? void 0 : _g.create_at) !== null && _h !== void 0 ? _h : null,
|
|
32
|
+
phone: (_k = (_j = item === null || item === void 0 ? void 0 : item.customer) === null || _j === void 0 ? void 0 : _j.phone) !== null && _k !== void 0 ? _k : null,
|
|
33
|
+
lifetime_point: (_m = (_l = item === null || item === void 0 ? void 0 : item.customer) === null || _l === void 0 ? void 0 : _l.lifetime_point) !== null && _m !== void 0 ? _m : null,
|
|
34
|
+
current_point: (_p = (_o = item === null || item === void 0 ? void 0 : item.customer) === null || _o === void 0 ? void 0 : _o.current_point) !== null && _p !== void 0 ? _p : null,
|
|
35
|
+
});
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
export const CreateGroupModel = (data) => {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
return ({
|
|
41
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
42
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
43
|
+
status: (_c = data === null || data === void 0 ? void 0 : data.status) !== null && _c !== void 0 ? _c : null,
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export const UpdateGroupModel = (data) => {
|
|
47
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
48
|
+
return ({
|
|
49
|
+
group: {
|
|
50
|
+
id: (_b = (_a = data === null || data === void 0 ? void 0 : data.group) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null,
|
|
51
|
+
name: (_d = (_c = data === null || data === void 0 ? void 0 : data.group) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : null,
|
|
52
|
+
description: (_f = (_e = data === null || data === void 0 ? void 0 : data.group) === null || _e === void 0 ? void 0 : _e.description) !== null && _f !== void 0 ? _f : null,
|
|
53
|
+
status: (_h = (_g = data === null || data === void 0 ? void 0 : data.group) === null || _g === void 0 ? void 0 : _g.status) !== null && _h !== void 0 ? _h : null,
|
|
54
|
+
},
|
|
55
|
+
customers: ((data === null || data === void 0 ? void 0 : data.customers) || []).map(GroupCustomerModel),
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
export const DeleteGroupModel = (data) => {
|
|
59
|
+
var _a, _b, _c, _d;
|
|
60
|
+
return ({
|
|
61
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
62
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
63
|
+
description: (_c = data === null || data === void 0 ? void 0 : data.description) !== null && _c !== void 0 ? _c : null,
|
|
64
|
+
status: (_d = data === null || data === void 0 ? void 0 : data.status) !== null && _d !== void 0 ? _d : null
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
export const RemoveCustomersModel = (data) => {
|
|
68
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
69
|
+
return ({
|
|
70
|
+
group: {
|
|
71
|
+
id: (_b = (_a = data === null || data === void 0 ? void 0 : data.group) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null,
|
|
72
|
+
name: (_d = (_c = data === null || data === void 0 ? void 0 : data.group) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : null,
|
|
73
|
+
description: (_f = (_e = data === null || data === void 0 ? void 0 : data.group) === null || _e === void 0 ? void 0 : _e.description) !== null && _f !== void 0 ? _f : null,
|
|
74
|
+
status: (_h = (_g = data === null || data === void 0 ? void 0 : data.group) === null || _g === void 0 ? void 0 : _g.status) !== null && _h !== void 0 ? _h : null,
|
|
75
|
+
},
|
|
76
|
+
customers: ((data === null || data === void 0 ? void 0 : data.customers) || []).map(GroupCustomerModel),
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
export const GetListCustomerToAddGroupModel = GetGroupModel;
|