gap-nodejs-sdk 1.0.59 → 1.0.60
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/go_check_in_api/1.0.0/api/category.d.ts +12 -0
- package/dist/go_check_in_api/1.0.0/api/category.d.ts.map +1 -1
- package/dist/go_check_in_api/1.0.0/api/category.js +104 -0
- package/dist/go_check_in_api/1.0.0/endpoints/category.d.ts +10 -1
- package/dist/go_check_in_api/1.0.0/endpoints/category.d.ts.map +1 -1
- package/dist/go_check_in_api/1.0.0/endpoints/category.js +10 -1
- package/dist/go_check_in_api/1.0.0/models/category.d.ts +2 -1
- package/dist/go_check_in_api/1.0.0/models/category.d.ts.map +1 -1
- package/dist/go_check_in_api/1.0.0/models/category.js +45 -3
- package/dist/go_check_in_api/1.0.0/types/request/category.d.ts +46 -1
- package/dist/go_check_in_api/1.0.0/types/request/category.d.ts.map +1 -1
- package/dist/go_check_in_api/1.0.0/types/response/category.d.ts +50 -1
- package/dist/go_check_in_api/1.0.0/types/response/category.d.ts.map +1 -1
- package/dist/pos_client_api/1.0.0/api/index.d.ts +1 -0
- 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 -0
- package/dist/pos_client_api/1.0.0/api/product.d.ts +14 -0
- package/dist/pos_client_api/1.0.0/api/product.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/api/product.js +60 -0
- package/dist/pos_client_api/1.0.0/endpoints/index.d.ts +1 -0
- 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 -0
- package/dist/pos_client_api/1.0.0/endpoints/product.d.ts +9 -0
- package/dist/pos_client_api/1.0.0/endpoints/product.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/endpoints/product.js +7 -0
- package/dist/pos_client_api/1.0.0/interfaces/product.d.ts +3 -0
- package/dist/pos_client_api/1.0.0/interfaces/product.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/interfaces/product.js +2 -0
- package/dist/pos_client_api/1.0.0/models/index.d.ts +1 -0
- 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 -0
- package/dist/pos_client_api/1.0.0/models/product.d.ts +2 -0
- package/dist/pos_client_api/1.0.0/models/product.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/models/product.js +16 -0
- package/dist/pos_client_api/1.0.0/types/request/index.d.ts +1 -0
- 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 -0
- package/dist/pos_client_api/1.0.0/types/request/product.d.ts +36 -0
- package/dist/pos_client_api/1.0.0/types/request/product.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/request/product.js +1 -0
- package/dist/pos_client_api/1.0.0/types/response/index.d.ts +1 -0
- 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 -0
- package/dist/pos_client_api/1.0.0/types/response/product.d.ts +19 -0
- package/dist/pos_client_api/1.0.0/types/response/product.d.ts.map +1 -0
- package/dist/pos_client_api/1.0.0/types/response/product.js +1 -0
- package/dist/pos_client_api/index.d.ts +1 -0
- package/dist/pos_client_api/index.d.ts.map +1 -1
- package/dist/pos_client_api/index.js +1 -0
- package/dist/utils/form-data.d.ts +2 -0
- package/dist/utils/form-data.d.ts.map +1 -0
- package/dist/utils/form-data.js +7 -0
- package/package.json +1 -1
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import CategoryAbstractClass from "../interfaces/category";
|
|
2
2
|
import Base from "../../../base/Base";
|
|
3
3
|
import { GapApiVersion } from "../../../base_type";
|
|
4
|
+
import * as Request from "../types/request";
|
|
5
|
+
import * as Response from "../types/response";
|
|
4
6
|
export default class Category extends Base implements CategoryAbstractClass {
|
|
5
7
|
static API_VERSION: GapApiVersion;
|
|
8
|
+
static sortCheckInCategory(data: Request.ShortCheckInCategoryRequest): Promise<Response.ShortCheckInCategoryResponse>;
|
|
9
|
+
static getCheckInListCategory(data: Request.GetCheckInListCategoryRequest): Promise<Response.GetCheckInListCategoryResponse>;
|
|
10
|
+
static updateCheckInCategory(data: Request.UpdateCheckInCategoryRequest): Promise<Response.UpdateCheckInCategoryResponse>;
|
|
11
|
+
static deleteCheckInCategory(data: Request.DeleteCheckInCategoryRequest): Promise<Response.DeleteCheckInCategoryResponse>;
|
|
12
|
+
static createCheckInCategory(data: Request.CreateCheckInCategoryRequest): Promise<Response.CreateCheckInCategoryResponse>;
|
|
13
|
+
static sortCheckInService(data: Request.ShortCheckInServiceRequest): Promise<Response.ShortCheckInServiceResponse>;
|
|
14
|
+
static getCheckInListService(data: Request.GetCheckInListServiceRequest): Promise<Response.GetCheckInListServiceResponse>;
|
|
15
|
+
static updateCheckInService(data: Request.UpdateCheckInServiceRequest): Promise<Response.UpdateCheckInServiceResponse>;
|
|
16
|
+
static deleteCheckInService(data: Request.DeleteCheckInServiceRequest): Promise<Response.DeleteCheckInServiceResponse>;
|
|
17
|
+
static createCheckInService(data: Request.CreateCheckInServiceRequest): Promise<Response.CreateCheckInServiceResponse>;
|
|
6
18
|
}
|
|
7
19
|
//# sourceMappingURL=category.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/api/category.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/api/category.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3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CAAC,QAAQ,CAAC,4BAA4B,CAAC;CAStI"}
|
|
@@ -1,5 +1,109 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import * as posEndpoints from "../endpoints";
|
|
1
3
|
import Base from "../../../base/Base";
|
|
2
4
|
import { GapApiVersion } from "../../../base_type";
|
|
5
|
+
import * as Model from "../models";
|
|
6
|
+
import { objectToFormData } from "../../../utils/form-data";
|
|
3
7
|
export default class Category extends Base {
|
|
8
|
+
static sortCheckInCategory(data) {
|
|
9
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const formData = objectToFormData(data);
|
|
11
|
+
yield this.client.post({
|
|
12
|
+
path: posEndpoints.category.SORT_CATEGORY,
|
|
13
|
+
data: formData
|
|
14
|
+
});
|
|
15
|
+
return null;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static getCheckInListCategory(data) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const response = yield this.client.get({
|
|
22
|
+
path: posEndpoints.category.GET_LIST_CATEGORY,
|
|
23
|
+
query: data,
|
|
24
|
+
});
|
|
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));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static updateCheckInCategory(data) {
|
|
29
|
+
var _a;
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const formData = objectToFormData(data);
|
|
32
|
+
const response = yield this.client.post({
|
|
33
|
+
path: posEndpoints.category.UPDATE_CATEGORY,
|
|
34
|
+
query: {
|
|
35
|
+
id: data.id
|
|
36
|
+
},
|
|
37
|
+
data: formData,
|
|
38
|
+
});
|
|
39
|
+
return Model.CheckInCategory2Model((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
static deleteCheckInCategory(data) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
yield this.client.get({
|
|
45
|
+
path: posEndpoints.category.DELETE_CATEGORY,
|
|
46
|
+
query: data
|
|
47
|
+
});
|
|
48
|
+
return null;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
static createCheckInCategory(data) {
|
|
52
|
+
var _a;
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const formData = objectToFormData(data);
|
|
55
|
+
const response = yield this.client.post({
|
|
56
|
+
path: posEndpoints.category.CREATE_CATEGORY,
|
|
57
|
+
data: data
|
|
58
|
+
});
|
|
59
|
+
return Model.CheckInCategory2Model((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
static sortCheckInService(data) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const formData = objectToFormData(data);
|
|
65
|
+
yield this.client.post({
|
|
66
|
+
path: posEndpoints.category.SORT_SERVICE,
|
|
67
|
+
data: formData
|
|
68
|
+
});
|
|
69
|
+
return null;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
static getCheckInListService(data) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const response = yield this.client.get({
|
|
75
|
+
path: posEndpoints.category.SORT_SERVICE,
|
|
76
|
+
query: data
|
|
77
|
+
});
|
|
78
|
+
return response;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
static updateCheckInService(data) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const response = yield this.client.post({
|
|
84
|
+
path: posEndpoints.category.GET_LIST_SERVICE,
|
|
85
|
+
data: data
|
|
86
|
+
});
|
|
87
|
+
return response;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
static deleteCheckInService(data) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const response = yield this.client.post({
|
|
93
|
+
path: posEndpoints.category.DELETE_SERVICE,
|
|
94
|
+
data: data
|
|
95
|
+
});
|
|
96
|
+
return response;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
static createCheckInService(data) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const response = yield this.client.post({
|
|
102
|
+
path: posEndpoints.category.CREATE_SERVICE,
|
|
103
|
+
data: data
|
|
104
|
+
});
|
|
105
|
+
return response;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
4
108
|
}
|
|
5
109
|
Category.API_VERSION = GapApiVersion.V1;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
SORT_CATEGORY: string;
|
|
3
|
+
GET_LIST_CATEGORY: string;
|
|
4
|
+
UPDATE_CATEGORY: string;
|
|
5
|
+
DELETE_CATEGORY: string;
|
|
6
|
+
CREATE_CATEGORY: string;
|
|
7
|
+
SORT_SERVICE: string;
|
|
8
|
+
GET_LIST_SERVICE: string;
|
|
9
|
+
UPDATE_SERVICE: string;
|
|
10
|
+
DELETE_SERVICE: string;
|
|
11
|
+
CREATE_SERVICE: string;
|
|
3
12
|
};
|
|
4
13
|
export default _default;
|
|
5
14
|
//# sourceMappingURL=category.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/endpoints/category.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/endpoints/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wBAWC"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
2
|
+
SORT_CATEGORY: '/v1/gocheckin/category/form/sort-category',
|
|
3
|
+
GET_LIST_CATEGORY: '/v1/gocheckin/category/site/list',
|
|
4
|
+
UPDATE_CATEGORY: '/v1/gocheckin/category/form/update',
|
|
5
|
+
DELETE_CATEGORY: '/v1/gocheckin/category/form/delete',
|
|
6
|
+
CREATE_CATEGORY: '/v1/gocheckin/category/form/create',
|
|
7
|
+
SORT_SERVICE: '/v1/gocheckin/service/form/sort',
|
|
8
|
+
GET_LIST_SERVICE: '/v1/gocheckin/service/site/list',
|
|
9
|
+
UPDATE_SERVICE: '/v1/gocheckin/service/form/update',
|
|
10
|
+
DELETE_SERVICE: '/v1/gocheckin/service/form/delete',
|
|
11
|
+
CREATE_SERVICE: '/v1/gocheckin/service/form/create',
|
|
3
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/models/category.ts"],"names":[],"mappings":"AAEA,wBAAgB,
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/go_check_in_api/1.0.0/models/category.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAwBnD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAoBpD"}
|
|
@@ -1,6 +1,48 @@
|
|
|
1
|
-
export function
|
|
2
|
-
var _a;
|
|
1
|
+
export function CheckInCategoryModel(data) {
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
3
3
|
return {
|
|
4
|
-
|
|
4
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
5
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
priority: (_c = data === null || data === void 0 ? void 0 : data.priority) !== null && _c !== void 0 ? _c : null,
|
|
7
|
+
created_at: (_d = data === null || data === void 0 ? void 0 : data.created_at) !== null && _d !== void 0 ? _d : null,
|
|
8
|
+
group_id: (_e = data === null || data === void 0 ? void 0 : data.group_id) !== null && _e !== void 0 ? _e : null,
|
|
9
|
+
status: (_f = data === null || data === void 0 ? void 0 : data.status) !== null && _f !== void 0 ? _f : null,
|
|
10
|
+
type: (_g = data === null || data === void 0 ? void 0 : data.type) !== null && _g !== void 0 ? _g : null,
|
|
11
|
+
color_detail: {
|
|
12
|
+
type: (_j = (_h = data === null || data === void 0 ? void 0 : data.color_detail) === null || _h === void 0 ? void 0 : _h.type) !== null && _j !== void 0 ? _j : null,
|
|
13
|
+
id: (_l = (_k = data === null || data === void 0 ? void 0 : data.color_detail) === null || _k === void 0 ? void 0 : _k.id) !== null && _l !== void 0 ? _l : null,
|
|
14
|
+
item_id: (_o = (_m = data === null || data === void 0 ? void 0 : data.color_detail) === null || _m === void 0 ? void 0 : _m.item_id) !== null && _o !== void 0 ? _o : null,
|
|
15
|
+
color_code: (_q = (_p = data === null || data === void 0 ? void 0 : data.color_detail) === null || _p === void 0 ? void 0 : _p.color_code) !== null && _q !== void 0 ? _q : null,
|
|
16
|
+
priority: (_s = (_r = data === null || data === void 0 ? void 0 : data.color_detail) === null || _r === void 0 ? void 0 : _r.priority) !== null && _s !== void 0 ? _s : null,
|
|
17
|
+
created_at: (_u = (_t = data === null || data === void 0 ? void 0 : data.color_detail) === null || _t === void 0 ? void 0 : _t.created_at) !== null && _u !== void 0 ? _u : null,
|
|
18
|
+
updated_at: (_w = (_v = data === null || data === void 0 ? void 0 : data.color_detail) === null || _v === void 0 ? void 0 : _v.updated_at) !== null && _w !== void 0 ? _w : null,
|
|
19
|
+
status: (_y = (_x = data === null || data === void 0 ? void 0 : data.color_detail) === null || _x === void 0 ? void 0 : _x.status) !== null && _y !== void 0 ? _y : null,
|
|
20
|
+
},
|
|
21
|
+
description: (_z = data === null || data === void 0 ? void 0 : data.description) !== null && _z !== void 0 ? _z : null,
|
|
22
|
+
parent_id: (_0 = data === null || data === void 0 ? void 0 : data.parent_id) !== null && _0 !== void 0 ? _0 : null,
|
|
23
|
+
owner_id: (_1 = data === null || data === void 0 ? void 0 : data.owner_id) !== null && _1 !== void 0 ? _1 : null,
|
|
24
|
+
created_by: (_2 = data === null || data === void 0 ? void 0 : data.created_by) !== null && _2 !== void 0 ? _2 : null,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function CheckInCategory2Model(data) {
|
|
28
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
29
|
+
return {
|
|
30
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
31
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
32
|
+
priority: (_c = data === null || data === void 0 ? void 0 : data.priority) !== null && _c !== void 0 ? _c : null,
|
|
33
|
+
created_at: (_d = data === null || data === void 0 ? void 0 : data.created_at) !== null && _d !== void 0 ? _d : null,
|
|
34
|
+
group_id: (_e = data === null || data === void 0 ? void 0 : data.group_id) !== null && _e !== void 0 ? _e : null,
|
|
35
|
+
status: (_f = data === null || data === void 0 ? void 0 : data.status) !== null && _f !== void 0 ? _f : null,
|
|
36
|
+
type: (_g = data === null || data === void 0 ? void 0 : data.type) !== null && _g !== void 0 ? _g : null,
|
|
37
|
+
color_detail: {
|
|
38
|
+
type: (_j = (_h = data === null || data === void 0 ? void 0 : data.color_detail) === null || _h === void 0 ? void 0 : _h.type) !== null && _j !== void 0 ? _j : null,
|
|
39
|
+
id: (_l = (_k = data === null || data === void 0 ? void 0 : data.color_detail) === null || _k === void 0 ? void 0 : _k.id) !== null && _l !== void 0 ? _l : null,
|
|
40
|
+
item_id: (_o = (_m = data === null || data === void 0 ? void 0 : data.color_detail) === null || _m === void 0 ? void 0 : _m.item_id) !== null && _o !== void 0 ? _o : null,
|
|
41
|
+
color_code: (_q = (_p = data === null || data === void 0 ? void 0 : data.color_detail) === null || _p === void 0 ? void 0 : _p.color_code) !== null && _q !== void 0 ? _q : null,
|
|
42
|
+
priority: (_s = (_r = data === null || data === void 0 ? void 0 : data.color_detail) === null || _r === void 0 ? void 0 : _r.priority) !== null && _s !== void 0 ? _s : null,
|
|
43
|
+
created_at: (_u = (_t = data === null || data === void 0 ? void 0 : data.color_detail) === null || _t === void 0 ? void 0 : _t.created_at) !== null && _u !== void 0 ? _u : null,
|
|
44
|
+
updated_at: (_w = (_v = data === null || data === void 0 ? void 0 : data.color_detail) === null || _v === void 0 ? void 0 : _v.updated_at) !== null && _w !== void 0 ? _w : null,
|
|
45
|
+
status: (_y = (_x = data === null || data === void 0 ? void 0 : data.color_detail) === null || _x === void 0 ? void 0 : _x.status) !== null && _y !== void 0 ? _y : null
|
|
46
|
+
}
|
|
5
47
|
};
|
|
6
48
|
}
|
|
@@ -1,4 +1,49 @@
|
|
|
1
|
-
export declare type
|
|
1
|
+
export declare type ShortCheckInCategoryRequest = {
|
|
2
|
+
categories: string;
|
|
3
|
+
statusFilter: number;
|
|
4
|
+
};
|
|
5
|
+
export declare type GetCheckInListCategoryRequest = {
|
|
6
|
+
status?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare type UpdateCheckInCategoryRequest = {
|
|
9
|
+
id: number;
|
|
10
|
+
data: {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
color_code: string;
|
|
14
|
+
page: number;
|
|
15
|
+
'per-page': number;
|
|
16
|
+
status: number;
|
|
17
|
+
type: string;
|
|
18
|
+
statusFilter: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare type DeleteCheckInCategoryRequest = {
|
|
22
|
+
id: number;
|
|
23
|
+
page?: number;
|
|
24
|
+
'per-page'?: number;
|
|
25
|
+
type: string;
|
|
26
|
+
statusFilter: number;
|
|
27
|
+
};
|
|
28
|
+
export declare type CreateCheckInCategoryRequest = {
|
|
29
|
+
name: string;
|
|
30
|
+
color_code: string;
|
|
31
|
+
type: string;
|
|
32
|
+
statusFilter: number;
|
|
33
|
+
};
|
|
34
|
+
export declare type ShortCheckInServiceRequest = {
|
|
35
|
+
items: string;
|
|
36
|
+
};
|
|
37
|
+
export declare type GetCheckInListServiceRequest = {
|
|
38
|
+
type?: string;
|
|
39
|
+
};
|
|
40
|
+
export declare type UpdateCheckInServiceRequest = {
|
|
41
|
+
type?: string;
|
|
42
|
+
};
|
|
43
|
+
export declare type DeleteCheckInServiceRequest = {
|
|
44
|
+
type?: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type CreateCheckInServiceRequest = {
|
|
2
47
|
type?: string;
|
|
3
48
|
};
|
|
4
49
|
//# sourceMappingURL=category.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/go_check_in_api/1.0.0/types/request/category.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI,GAAG;
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/go_check_in_api/1.0.0/types/request/category.ts"],"names":[],"mappings":"AAAA,oBAAY,2BAA2B,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,oBAAY,6BAA6B,GAAG;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,oBAAY,4BAA4B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE;QACF,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;KACxB,CAAA;CACJ,CAAA;AAED,oBAAY,4BAA4B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,oBAAY,4BAA4B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,oBAAY,0BAA0B,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;CACjB,CAAA;AAED,oBAAY,4BAA4B,GAAG;IACvC,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,2BAA2B,GAAG;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,2BAA2B,GAAG;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,2BAA2B,GAAG;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
|
@@ -1,3 +1,52 @@
|
|
|
1
1
|
import { Nullable } from "../../../../base_type";
|
|
2
|
-
export declare type
|
|
2
|
+
export declare type ShortCheckInCategoryResponse = null;
|
|
3
|
+
export declare type GetCheckInListCategoryResponse = Nullable<{
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
priority: number;
|
|
7
|
+
created_at: string;
|
|
8
|
+
group_id: any;
|
|
9
|
+
status: string;
|
|
10
|
+
type: string;
|
|
11
|
+
color_detail: {
|
|
12
|
+
type: number;
|
|
13
|
+
id: number;
|
|
14
|
+
item_id: number;
|
|
15
|
+
color_code: string;
|
|
16
|
+
priority: number;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
status: number;
|
|
20
|
+
};
|
|
21
|
+
description: any;
|
|
22
|
+
parent_id: any;
|
|
23
|
+
owner_id: any;
|
|
24
|
+
created_by: any;
|
|
25
|
+
}[]>;
|
|
26
|
+
export declare type UpdateCheckInCategoryResponse = Nullable<{
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
priority: number;
|
|
30
|
+
created_at: string;
|
|
31
|
+
group_id: any;
|
|
32
|
+
status: string;
|
|
33
|
+
type: string;
|
|
34
|
+
color_detail: {
|
|
35
|
+
type: number;
|
|
36
|
+
id: number;
|
|
37
|
+
item_id: number;
|
|
38
|
+
color_code: string;
|
|
39
|
+
priority: number;
|
|
40
|
+
created_at: string;
|
|
41
|
+
updated_at: string;
|
|
42
|
+
status: number;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
export declare type DeleteCheckInCategoryResponse = null;
|
|
46
|
+
export declare type CreateCheckInCategoryResponse = UpdateCheckInCategoryResponse;
|
|
47
|
+
export declare type ShortCheckInServiceResponse = null;
|
|
48
|
+
export declare type GetCheckInListServiceResponse = Nullable<{}>;
|
|
49
|
+
export declare type UpdateCheckInServiceResponse = Nullable<{}>;
|
|
50
|
+
export declare type DeleteCheckInServiceResponse = Nullable<{}>;
|
|
51
|
+
export declare type CreateCheckInServiceResponse = Nullable<{}>;
|
|
3
52
|
//# sourceMappingURL=category.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/go_check_in_api/1.0.0/types/response/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,IAAI,GAAG,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/go_check_in_api/1.0.0/types/response/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC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AC,CAAA;AAEF,oBAAY,6BAA6B,GAAG,IAAI,CAAC;AAEjD,oBAAY,6BAA6B,GAAG,6BAA6B,CAAA;AAEzE,oBAAY,2BAA2B,GAAG,IAAI,CAAC;AAE/C,oBAAY,6BAA6B,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;AAExD,oBAAY,4BAA4B,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;AAEvD,oBAAY,4BAA4B,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA;AAEvD,oBAAY,4BAA4B,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -19,4 +19,5 @@ export { default as TimeKeeping } from "./time_keeping";
|
|
|
19
19
|
export { default as UnsubscribeContact } from "./unsubscribe_contact";
|
|
20
20
|
export { default as User } from "./user";
|
|
21
21
|
export { default as Setting } from "./setting";
|
|
22
|
+
export { default as Product } from "./product";
|
|
22
23
|
//# 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,IAA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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;AAC3C,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC;AACzC,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC"}
|
|
@@ -19,3 +19,4 @@ export { default as TimeKeeping } from "./time_keeping";
|
|
|
19
19
|
export { default as UnsubscribeContact } from "./unsubscribe_contact";
|
|
20
20
|
export { default as User } from "./user";
|
|
21
21
|
export { default as Setting } from "./setting";
|
|
22
|
+
export { default as Product } from "./product";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import ProductAbstractClass from "../interfaces/product";
|
|
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 Product extends Base implements ProductAbstractClass {
|
|
7
|
+
static API_VERSION: GapApiVersion;
|
|
8
|
+
static sortPostListProduct(data: Request.SortPostListProductRequest): Promise<Response.SortPostListProductResponse>;
|
|
9
|
+
static getPosListProduct(data: Request.GetPosListProductRequest): Promise<Response.GetPosListProductResponse>;
|
|
10
|
+
static createPosProduct(data: Request.CreatePosProductRequest): Promise<Response.CreatePosProductResponse>;
|
|
11
|
+
static updatePosProduct(data: Request.UpdatePosProductRequest): Promise<Response.UpdatePosProductResponse>;
|
|
12
|
+
static deletePosProduct(data: Request.DeletePosProductRequest): Promise<Response.DeletePosProductResponse>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/api/product.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;AAI9C,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,IAAK,YAAW,oBAAoB;IACrE,OAAc,WAAW,gBAAoB;WAEzB,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAW5G,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,GAAG,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;WAUtG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAWnG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;WAWnG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAS1H"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import * as posEndpoints from "../endpoints";
|
|
3
|
+
import Base from "../../../base/Base";
|
|
4
|
+
import { GapApiVersion } from "../../../base_type";
|
|
5
|
+
import * as Model from "../models";
|
|
6
|
+
import { objectToFormData } from "../../../utils/form-data";
|
|
7
|
+
export default class Product extends Base {
|
|
8
|
+
static sortPostListProduct(data) {
|
|
9
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const formData = objectToFormData(data);
|
|
11
|
+
yield this.client.post({
|
|
12
|
+
path: posEndpoints.product.SORT_POS_LIST_PRODUCT,
|
|
13
|
+
data: formData
|
|
14
|
+
});
|
|
15
|
+
return null;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
static getPosListProduct(data) {
|
|
19
|
+
var _a;
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const response = yield this.client.get({
|
|
22
|
+
path: posEndpoints.product.GET_POS_LIST_PRODUCT,
|
|
23
|
+
query: data
|
|
24
|
+
});
|
|
25
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map(item => Model.PosProductModel(item));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
static createPosProduct(data) {
|
|
29
|
+
var _a;
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const formData = objectToFormData(data);
|
|
32
|
+
const response = yield this.client.get({
|
|
33
|
+
path: posEndpoints.product.CREATE_POS_PRODUCT,
|
|
34
|
+
query: formData
|
|
35
|
+
});
|
|
36
|
+
return Model.PosProductModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
static updatePosProduct(data) {
|
|
40
|
+
var _a;
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
const formData = objectToFormData(data);
|
|
43
|
+
const response = yield this.client.post({
|
|
44
|
+
path: posEndpoints.product.UPDATE_POS_PRODUCT,
|
|
45
|
+
data: formData
|
|
46
|
+
});
|
|
47
|
+
return Model.PosProductModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
static deletePosProduct(data) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
yield this.client.get({
|
|
53
|
+
path: posEndpoints.product.DELETE_POS_PRODUCT,
|
|
54
|
+
query: data
|
|
55
|
+
});
|
|
56
|
+
return null;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
Product.API_VERSION = GapApiVersion.V1;
|
|
@@ -19,4 +19,5 @@ export { default as time_keeping } from "./time_keeping";
|
|
|
19
19
|
export { default as unsubscribe_contact } from "./unsubscribe_contact";
|
|
20
20
|
export { default as user } from "./user";
|
|
21
21
|
export { default as setting } from "./setting";
|
|
22
|
+
export { default as product } from "./product";
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC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AI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC"}
|
|
@@ -19,3 +19,4 @@ export { default as time_keeping } from "./time_keeping";
|
|
|
19
19
|
export { default as unsubscribe_contact } from "./unsubscribe_contact";
|
|
20
20
|
export { default as user } from "./user";
|
|
21
21
|
export { default as setting } from "./setting";
|
|
22
|
+
export { default as product } from "./product";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/endpoints/product.ts"],"names":[],"mappings":";;;;;;;AAAA,wBAMC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
SORT_POS_LIST_PRODUCT: '/v1/pos/product/form/sort',
|
|
3
|
+
GET_POS_LIST_PRODUCT: '/v1/pos/product/site/list',
|
|
4
|
+
CREATE_POS_PRODUCT: '/v1/pos/product/form/create',
|
|
5
|
+
UPDATE_POS_PRODUCT: '/v1/pos/product/form/update',
|
|
6
|
+
DELETE_POS_PRODUCT: '/v1/pos/product/form/delete',
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/interfaces/product.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,OAAO;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/pos_client_api/1.0.0/models/product.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAc9C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function PosProductModel(data) {
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3
|
+
return {
|
|
4
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
5
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
type: (_c = data === null || data === void 0 ? void 0 : data.type) !== null && _c !== void 0 ? _c : null,
|
|
7
|
+
category_name: (_d = data === null || data === void 0 ? void 0 : data.category_name) !== null && _d !== void 0 ? _d : null,
|
|
8
|
+
color_code: (_e = data === null || data === void 0 ? void 0 : data.color_code) !== null && _e !== void 0 ? _e : null,
|
|
9
|
+
description: (_f = data === null || data === void 0 ? void 0 : data.description) !== null && _f !== void 0 ? _f : null,
|
|
10
|
+
image: (_g = data === null || data === void 0 ? void 0 : data.image) !== null && _g !== void 0 ? _g : null,
|
|
11
|
+
price: (_h = data === null || data === void 0 ? void 0 : data.price) !== null && _h !== void 0 ? _h : null,
|
|
12
|
+
created_at: (_j = data === null || data === void 0 ? void 0 : data.created_at) !== null && _j !== void 0 ? _j : null,
|
|
13
|
+
updated_at: (_k = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _k !== void 0 ? _k : null,
|
|
14
|
+
status: (_l = data === null || data === void 0 ? void 0 : data.status) !== null && _l !== void 0 ? _l : null,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pos_client_api/1.0.0/types/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare type SortPostListProductRequest = {
|
|
2
|
+
items: string;
|
|
3
|
+
};
|
|
4
|
+
export declare type GetPosListProductRequest = {
|
|
5
|
+
category_id: number;
|
|
6
|
+
status: number;
|
|
7
|
+
};
|
|
8
|
+
export declare type CreatePosProductRequest = {
|
|
9
|
+
name: string;
|
|
10
|
+
category_id: number;
|
|
11
|
+
cate_name: string;
|
|
12
|
+
id: number;
|
|
13
|
+
web_booking_visible: number;
|
|
14
|
+
price: number | string;
|
|
15
|
+
description: string;
|
|
16
|
+
group_id: string;
|
|
17
|
+
status: number;
|
|
18
|
+
statusFilter: number;
|
|
19
|
+
};
|
|
20
|
+
export declare type UpdatePosProductRequest = {
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
category_id: number;
|
|
24
|
+
price: number | string;
|
|
25
|
+
web_booking_visible: number;
|
|
26
|
+
description: string;
|
|
27
|
+
group_id: string;
|
|
28
|
+
status: number;
|
|
29
|
+
statusFilter: number;
|
|
30
|
+
};
|
|
31
|
+
export declare type DeletePosProductRequest = {
|
|
32
|
+
id: number;
|
|
33
|
+
category_id: number;
|
|
34
|
+
statusFilter: number;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=product.d.ts.map
|