gap-nodejs-sdk 1.0.391 → 1.0.392
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_order_api/1.0.0/api/category.d.ts +13 -0
- package/dist/api/go_order_api/1.0.0/api/category.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/api/category.js +46 -0
- package/dist/api/go_order_api/1.0.0/api/index.d.ts +4 -0
- package/dist/api/go_order_api/1.0.0/api/index.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/api/index.js +3 -0
- package/dist/api/go_order_api/1.0.0/api/item.d.ts +14 -0
- package/dist/api/go_order_api/1.0.0/api/item.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/api/item.js +57 -0
- package/dist/api/go_order_api/1.0.0/api/modifier.d.ts +13 -0
- package/dist/api/go_order_api/1.0.0/api/modifier.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/api/modifier.js +46 -0
- package/dist/api/go_order_api/1.0.0/endpoints/category.d.ts +9 -0
- package/dist/api/go_order_api/1.0.0/endpoints/category.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/endpoints/category.js +7 -0
- package/dist/api/go_order_api/1.0.0/endpoints/index.d.ts +4 -0
- package/dist/api/go_order_api/1.0.0/endpoints/index.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/endpoints/index.js +3 -0
- package/dist/api/go_order_api/1.0.0/endpoints/item.d.ts +10 -0
- package/dist/api/go_order_api/1.0.0/endpoints/item.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/endpoints/item.js +8 -0
- package/dist/api/go_order_api/1.0.0/endpoints/modifier.d.ts +8 -0
- package/dist/api/go_order_api/1.0.0/endpoints/modifier.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/endpoints/modifier.js +6 -0
- package/dist/api/go_order_api/1.0.0/interfaces/category.d.ts +3 -0
- package/dist/api/go_order_api/1.0.0/interfaces/category.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/interfaces/category.js +2 -0
- package/dist/api/go_order_api/1.0.0/interfaces/index.d.ts +1 -0
- package/dist/api/go_order_api/1.0.0/interfaces/index.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/interfaces/index.js +0 -0
- package/dist/api/go_order_api/1.0.0/interfaces/item.d.ts +3 -0
- package/dist/api/go_order_api/1.0.0/interfaces/item.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/interfaces/item.js +2 -0
- package/dist/api/go_order_api/1.0.0/interfaces/modifier.d.ts +3 -0
- package/dist/api/go_order_api/1.0.0/interfaces/modifier.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/interfaces/modifier.js +2 -0
- package/dist/api/go_order_api/1.0.0/models/category.d.ts +19 -0
- package/dist/api/go_order_api/1.0.0/models/category.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/models/category.js +21 -0
- package/dist/api/go_order_api/1.0.0/models/index.d.ts +4 -0
- package/dist/api/go_order_api/1.0.0/models/index.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/models/index.js +3 -0
- package/dist/api/go_order_api/1.0.0/models/item.d.ts +23 -0
- package/dist/api/go_order_api/1.0.0/models/item.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/models/item.js +59 -0
- package/dist/api/go_order_api/1.0.0/models/modifier.d.ts +15 -0
- package/dist/api/go_order_api/1.0.0/models/modifier.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/models/modifier.js +25 -0
- package/dist/api/go_order_api/1.0.0/types/request/category.d.ts +12 -0
- package/dist/api/go_order_api/1.0.0/types/request/category.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/types/request/category.js +1 -0
- package/dist/api/go_order_api/1.0.0/types/request/index.d.ts +4 -0
- package/dist/api/go_order_api/1.0.0/types/request/index.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/types/request/index.js +3 -0
- package/dist/api/go_order_api/1.0.0/types/request/item.d.ts +55 -0
- package/dist/api/go_order_api/1.0.0/types/request/item.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/types/request/item.js +1 -0
- package/dist/api/go_order_api/1.0.0/types/request/modifier.d.ts +31 -0
- package/dist/api/go_order_api/1.0.0/types/request/modifier.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/types/request/modifier.js +1 -0
- package/dist/api/go_order_api/1.0.0/types/response/category.d.ts +73 -0
- package/dist/api/go_order_api/1.0.0/types/response/category.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/types/response/category.js +1 -0
- package/dist/api/go_order_api/1.0.0/types/response/index.d.ts +4 -0
- package/dist/api/go_order_api/1.0.0/types/response/index.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/types/response/index.js +3 -0
- package/dist/api/go_order_api/1.0.0/types/response/item.d.ts +86 -0
- package/dist/api/go_order_api/1.0.0/types/response/item.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/types/response/item.js +1 -0
- package/dist/api/go_order_api/1.0.0/types/response/modifier.d.ts +35 -0
- package/dist/api/go_order_api/1.0.0/types/response/modifier.d.ts.map +1 -0
- package/dist/api/go_order_api/1.0.0/types/response/modifier.js +1 -0
- package/dist/api/go_order_api/api.d.ts +5 -0
- package/dist/api/go_order_api/api.d.ts.map +1 -0
- package/dist/api/go_order_api/api.js +12 -0
- package/dist/api/go_order_api/enums/index.d.ts +1 -0
- package/dist/api/go_order_api/enums/index.d.ts.map +1 -0
- package/dist/api/go_order_api/enums/index.js +0 -0
- package/dist/api/go_order_api/index.d.ts +8 -0
- package/dist/api/go_order_api/index.d.ts.map +1 -0
- package/dist/api/go_order_api/index.js +11 -0
- package/dist/gap-sdk.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import CategoryAbstractClass from "../interfaces/category";
|
|
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 Category extends Base implements CategoryAbstractClass {
|
|
7
|
+
static API_VERSION: GapApiVersion;
|
|
8
|
+
static getListCategory(): Promise<Response.GetListCategoryResponse>;
|
|
9
|
+
static createCategory(data: Request.CreateCategoryRequest): Promise<Response.GetListCategoryResponse>;
|
|
10
|
+
static updateCategory(data: Request.UpdateCategoryRequest): Promise<Response.UpdateCategoryResponse>;
|
|
11
|
+
static deleteCategory(id: Request.DeleteCategoryRequest): Promise<Response.DeleteCategoryRequest>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/api/category.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,eAAe,IAAI,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAS5D,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAU9F,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAS7F,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CASjH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { category } from "../endpoints";
|
|
3
|
+
import Base from "../../../../base/Base";
|
|
4
|
+
import { GapApiVersion } from "../../../../base_type";
|
|
5
|
+
import * as Model from "../models";
|
|
6
|
+
export default class Category extends Base {
|
|
7
|
+
static getListCategory() {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const response = yield this.client.get({
|
|
11
|
+
path: category.GET_LIST_CATEGORY,
|
|
12
|
+
});
|
|
13
|
+
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.CategoryModel(item));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
static createCategory(data) {
|
|
17
|
+
var _a;
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const response = yield this.client.post({
|
|
20
|
+
path: category.CREATE_CATEGORY,
|
|
21
|
+
data: data
|
|
22
|
+
});
|
|
23
|
+
return Model.CategoryModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static updateCategory(data) {
|
|
27
|
+
var _a;
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const response = yield this.client.post({
|
|
30
|
+
path: category.UPDATE_CATEGORY,
|
|
31
|
+
data: data
|
|
32
|
+
});
|
|
33
|
+
return Model.CategoryModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
static deleteCategory(id) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const response = yield this.client.post({
|
|
39
|
+
path: category.DELETE_CATEGORY,
|
|
40
|
+
data: id
|
|
41
|
+
});
|
|
42
|
+
return null;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Category.API_VERSION = GapApiVersion.V1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_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,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import ItemAbstractClass from "../interfaces/item";
|
|
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 Item extends Base implements ItemAbstractClass {
|
|
7
|
+
static API_VERSION: GapApiVersion;
|
|
8
|
+
static getListItem(data: Request.GetListItemRequest): Promise<Response.GetListItemRespone>;
|
|
9
|
+
static createItem(data: Request.CreateItemRequest): Promise<Response.CreateItemResponse>;
|
|
10
|
+
static updateItem(data: Request.UpdateItemRequest): Promise<Response.UpdateItemResponse>;
|
|
11
|
+
static updateStatusItem(data: Request.UpdateStatusItemRequest): Promise<Response.UpdateItemResponse>;
|
|
12
|
+
static deleteItem(id: Request.DeleteItemRequest): Promise<Response.DeleteItemResponse>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/api/item.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,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,IAAK,SAAQ,IAAK,YAAW,iBAAiB;IAC/D,OAAc,WAAW,gBAAoB;WAEzB,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;WASnF,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;WASjF,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;WASjF,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;WAS7F,UAAU,CAAC,EAAE,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CAStG"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { item } from "../endpoints";
|
|
3
|
+
import Base from "../../../../base/Base";
|
|
4
|
+
import { GapApiVersion } from "../../../../base_type";
|
|
5
|
+
import * as Model from "../models";
|
|
6
|
+
export default class Item extends Base {
|
|
7
|
+
static getListItem(data) {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const response = yield this.client.get({
|
|
11
|
+
path: item.GET_LIST_ITEM,
|
|
12
|
+
query: data
|
|
13
|
+
});
|
|
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.ItemModel(item));
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
static createItem(data) {
|
|
18
|
+
var _a;
|
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
const response = yield this.client.post({
|
|
21
|
+
path: item.CRETAE_ITEM,
|
|
22
|
+
data: data
|
|
23
|
+
});
|
|
24
|
+
return Model.ItemModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
static updateItem(data) {
|
|
28
|
+
var _a;
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const response = yield this.client.post({
|
|
31
|
+
path: item.UPDATE_ITEM,
|
|
32
|
+
data: data
|
|
33
|
+
});
|
|
34
|
+
return Model.ItemModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
static updateStatusItem(data) {
|
|
38
|
+
var _a;
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const response = yield this.client.post({
|
|
41
|
+
path: item.UPDATE_STATUS_ITEM,
|
|
42
|
+
data: data
|
|
43
|
+
});
|
|
44
|
+
return Model.ItemModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
static deleteItem(id) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
const response = yield this.client.post({
|
|
50
|
+
path: item.DELETE_ITEM,
|
|
51
|
+
data: id
|
|
52
|
+
});
|
|
53
|
+
return null;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
Item.API_VERSION = GapApiVersion.V1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ModifierAbstractClass from "../interfaces/item";
|
|
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 Modifier extends Base implements ModifierAbstractClass {
|
|
7
|
+
static API_VERSION: GapApiVersion;
|
|
8
|
+
static getListModifier(): Promise<Response.GetListModifierResponse>;
|
|
9
|
+
static createModifier(data: Request.CreateModifierRequest): Promise<Response.CreateModifierResponse>;
|
|
10
|
+
static updateModifier(data: Request.UpdateModifierRequest): Promise<Response.UpdateModifierResponse>;
|
|
11
|
+
static deleteModifier(id: Request.DeleteModifierRequest): Promise<Response.DeleteModifierResponse>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=modifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/api/modifier.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,oBAAoB,CAAC;AACvD,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,eAAe,IAAI,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC;WAQ5D,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAS7F,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAS7F,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CASlH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { modifier } from "../endpoints";
|
|
3
|
+
import Base from "../../../../base/Base";
|
|
4
|
+
import { GapApiVersion } from "../../../../base_type";
|
|
5
|
+
import * as Model from "../models";
|
|
6
|
+
export default class Modifier extends Base {
|
|
7
|
+
static getListModifier() {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const response = yield this.client.get({
|
|
11
|
+
path: modifier.GET_LIST_MODIFIER,
|
|
12
|
+
});
|
|
13
|
+
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.ModifierModel(item));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
static createModifier(data) {
|
|
17
|
+
var _a;
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const response = yield this.client.post({
|
|
20
|
+
path: modifier.CRETAE_MODIFIER,
|
|
21
|
+
data: data
|
|
22
|
+
});
|
|
23
|
+
return Model.ModifierModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
static updateModifier(data) {
|
|
27
|
+
var _a;
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const response = yield this.client.post({
|
|
30
|
+
path: modifier.UPDATE_MODIFIER,
|
|
31
|
+
data: data
|
|
32
|
+
});
|
|
33
|
+
return Model.ModifierModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
static deleteModifier(id) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
yield this.client.post({
|
|
39
|
+
path: modifier.DELETE_MODIFIER,
|
|
40
|
+
data: id
|
|
41
|
+
});
|
|
42
|
+
return null;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Modifier.API_VERSION = GapApiVersion.V1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/endpoints/category.ts"],"names":[],"mappings":";;;;;;;AAAA,wBAMC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
GET_LIST_CATEGORY: '/v1/orderonline/category/site/list',
|
|
3
|
+
GET_CATEGORY: '/v1/orderonline/category/site/get',
|
|
4
|
+
CREATE_CATEGORY: '/v1/orderonline/category/form/create',
|
|
5
|
+
UPDATE_CATEGORY: '/v1/orderonline/category/form/update',
|
|
6
|
+
DELETE_CATEGORY: '/v1/orderonline/category/form/delete',
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_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,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/endpoints/item.ts"],"names":[],"mappings":";;;;;;;;AAAA,wBAOC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
GET_LIST_ITEM: '/v1/orderonline/item/site/list',
|
|
3
|
+
GET_ITEM: '/v1/orderonline/item/site/get',
|
|
4
|
+
CRETAE_ITEM: '/v1/orderonline/item/form/create',
|
|
5
|
+
UPDATE_ITEM: '/v1/orderonline/item/form/update',
|
|
6
|
+
UPDATE_STATUS_ITEM: '/v1/orderonline/item/form/update-status',
|
|
7
|
+
DELETE_ITEM: '/v1/orderonline/item/form/delete',
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/endpoints/modifier.ts"],"names":[],"mappings":";;;;;;AAAA,wBAKC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
GET_LIST_MODIFIER: '/v1/orderonline/item/item-modifier/list',
|
|
3
|
+
CRETAE_MODIFIER: '/v1/orderonline/item/item-modifier/create',
|
|
4
|
+
UPDATE_MODIFIER: '/v1/orderonline/item/item-modifier/update',
|
|
5
|
+
DELETE_MODIFIER: '/v1/orderonline/item/item-modifier/delete',
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/interfaces/category.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,QAAQ;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/interfaces/index.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/interfaces/item.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,IAAI;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/interfaces/modifier.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,QAAQ;CACrC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const CategoryModel: (data: any) => {
|
|
2
|
+
color_detail: {
|
|
3
|
+
type: any;
|
|
4
|
+
id: any;
|
|
5
|
+
item_id: any;
|
|
6
|
+
color_code: any;
|
|
7
|
+
priority: any;
|
|
8
|
+
created_at: any;
|
|
9
|
+
updated_at: any;
|
|
10
|
+
status: any;
|
|
11
|
+
};
|
|
12
|
+
created_at: any;
|
|
13
|
+
id: any;
|
|
14
|
+
items: any;
|
|
15
|
+
name: any;
|
|
16
|
+
priority: any;
|
|
17
|
+
status: any;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/models/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,SAAU,GAAG;;;;;;;;;;;;;;;;;CAmBtC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const CategoryModel = (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;
|
|
3
|
+
return {
|
|
4
|
+
color_detail: {
|
|
5
|
+
type: (_b = (_a = data === null || data === void 0 ? void 0 : data.color_detail) === null || _a === void 0 ? void 0 : _a.type) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
id: (_d = (_c = data === null || data === void 0 ? void 0 : data.color_detail) === null || _c === void 0 ? void 0 : _c.id) !== null && _d !== void 0 ? _d : null,
|
|
7
|
+
item_id: (_f = (_e = data === null || data === void 0 ? void 0 : data.color_detail) === null || _e === void 0 ? void 0 : _e.item_id) !== null && _f !== void 0 ? _f : null,
|
|
8
|
+
color_code: (_h = (_g = data === null || data === void 0 ? void 0 : data.color_detail) === null || _g === void 0 ? void 0 : _g.color_code) !== null && _h !== void 0 ? _h : null,
|
|
9
|
+
priority: (_k = (_j = data === null || data === void 0 ? void 0 : data.color_detail) === null || _j === void 0 ? void 0 : _j.priority) !== null && _k !== void 0 ? _k : null,
|
|
10
|
+
created_at: (_m = (_l = data === null || data === void 0 ? void 0 : data.color_detail) === null || _l === void 0 ? void 0 : _l.created_at) !== null && _m !== void 0 ? _m : null,
|
|
11
|
+
updated_at: (_p = (_o = data === null || data === void 0 ? void 0 : data.color_detail) === null || _o === void 0 ? void 0 : _o.updated_at) !== null && _p !== void 0 ? _p : null,
|
|
12
|
+
status: (_r = (_q = data === null || data === void 0 ? void 0 : data.color_detail) === null || _q === void 0 ? void 0 : _q.status) !== null && _r !== void 0 ? _r : null
|
|
13
|
+
},
|
|
14
|
+
created_at: (_s = data === null || data === void 0 ? void 0 : data.created_at) !== null && _s !== void 0 ? _s : null,
|
|
15
|
+
id: (_t = data === null || data === void 0 ? void 0 : data.id) !== null && _t !== void 0 ? _t : null,
|
|
16
|
+
items: (_u = data === null || data === void 0 ? void 0 : data.item) !== null && _u !== void 0 ? _u : null,
|
|
17
|
+
name: (_v = data === null || data === void 0 ? void 0 : data.name) !== null && _v !== void 0 ? _v : null,
|
|
18
|
+
priority: (_w = data === null || data === void 0 ? void 0 : data.priority) !== null && _w !== void 0 ? _w : null,
|
|
19
|
+
status: (_x = data === null || data === void 0 ? void 0 : data.status) !== null && _x !== void 0 ? _x : null,
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const ItemModel: (data: any) => {
|
|
2
|
+
nutritional_information: any;
|
|
3
|
+
modifier: any;
|
|
4
|
+
id: any;
|
|
5
|
+
name: any;
|
|
6
|
+
description: any;
|
|
7
|
+
image: any;
|
|
8
|
+
category_id: any;
|
|
9
|
+
note: any;
|
|
10
|
+
type: any;
|
|
11
|
+
visibility: any;
|
|
12
|
+
prepare_duration: any;
|
|
13
|
+
slug: any;
|
|
14
|
+
created_at: any;
|
|
15
|
+
updated_at: any;
|
|
16
|
+
status: any;
|
|
17
|
+
sku: any;
|
|
18
|
+
price: any;
|
|
19
|
+
duration: any;
|
|
20
|
+
priority: any;
|
|
21
|
+
item_variants: any;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/models/item.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;CAuBjC,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export const ItemModel = (data) => {
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
3
|
+
return {
|
|
4
|
+
nutritional_information: (_a = data.nutritional_information) !== null && _a !== void 0 ? _a : null,
|
|
5
|
+
modifier: ((data === null || data === void 0 ? void 0 : data.modifier) || []).map((item) => Modifier(item)),
|
|
6
|
+
id: (_b = data === null || data === void 0 ? void 0 : data.id) !== null && _b !== void 0 ? _b : null,
|
|
7
|
+
name: data === null || data === void 0 ? void 0 : data.name,
|
|
8
|
+
description: (_c = data === null || data === void 0 ? void 0 : data.description) !== null && _c !== void 0 ? _c : null,
|
|
9
|
+
image: (_d = data === null || data === void 0 ? void 0 : data.image) !== null && _d !== void 0 ? _d : null,
|
|
10
|
+
category_id: (_e = data === null || data === void 0 ? void 0 : data.category_id) !== null && _e !== void 0 ? _e : null,
|
|
11
|
+
note: (_f = data === null || data === void 0 ? void 0 : data.note) !== null && _f !== void 0 ? _f : null,
|
|
12
|
+
type: (_g = data === null || data === void 0 ? void 0 : data.type) !== null && _g !== void 0 ? _g : null,
|
|
13
|
+
visibility: (_h = data === null || data === void 0 ? void 0 : data.visibility) !== null && _h !== void 0 ? _h : null,
|
|
14
|
+
prepare_duration: (_j = data === null || data === void 0 ? void 0 : data.prepare_duration) !== null && _j !== void 0 ? _j : null,
|
|
15
|
+
slug: (_k = data === null || data === void 0 ? void 0 : data.slug) !== null && _k !== void 0 ? _k : null,
|
|
16
|
+
created_at: (_l = data === null || data === void 0 ? void 0 : data.created_at) !== null && _l !== void 0 ? _l : null,
|
|
17
|
+
updated_at: (_m = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _m !== void 0 ? _m : null,
|
|
18
|
+
status: (_o = data === null || data === void 0 ? void 0 : data.status) !== null && _o !== void 0 ? _o : null,
|
|
19
|
+
sku: (_p = data === null || data === void 0 ? void 0 : data.sku) !== null && _p !== void 0 ? _p : null,
|
|
20
|
+
price: (_q = data === null || data === void 0 ? void 0 : data.price) !== null && _q !== void 0 ? _q : null,
|
|
21
|
+
duration: (_r = data === null || data === void 0 ? void 0 : data.duration) !== null && _r !== void 0 ? _r : null,
|
|
22
|
+
priority: (_s = data === null || data === void 0 ? void 0 : data.priority) !== null && _s !== void 0 ? _s : null,
|
|
23
|
+
item_variants: ((data === null || data === void 0 ? void 0 : data.item_variants) || []).map((item) => ItemVariant(item))
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
const ModifierDetail = (data) => {
|
|
27
|
+
var _a, _b, _c, _d;
|
|
28
|
+
return {
|
|
29
|
+
image_url: (_a = data === null || data === void 0 ? void 0 : data.name) !== null && _a !== void 0 ? _a : null,
|
|
30
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
31
|
+
price: (_c = data === null || data === void 0 ? void 0 : data.price) !== null && _c !== void 0 ? _c : null,
|
|
32
|
+
id: (_d = data === null || data === void 0 ? void 0 : data.id) !== null && _d !== void 0 ? _d : null
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
const Modifier = (data) => {
|
|
36
|
+
return {
|
|
37
|
+
id: data === null || data === void 0 ? void 0 : data.id,
|
|
38
|
+
is_selected: data === null || data === void 0 ? void 0 : data.is_selected,
|
|
39
|
+
modifier_name: data === null || data === void 0 ? void 0 : data.modifier_name,
|
|
40
|
+
group_modifier: data === null || data === void 0 ? void 0 : data.group_modifier,
|
|
41
|
+
type: data === null || data === void 0 ? void 0 : data.type,
|
|
42
|
+
required: data === null || data === void 0 ? void 0 : data.required,
|
|
43
|
+
details: ((data === null || data === void 0 ? void 0 : data.details) || []).map((item) => ModifierDetail(item))
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
const ItemVariant = (data) => {
|
|
47
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
48
|
+
return {
|
|
49
|
+
id: (_a = data.id) !== null && _a !== void 0 ? _a : null,
|
|
50
|
+
item_id: (_b = data.item_id) !== null && _b !== void 0 ? _b : null,
|
|
51
|
+
image: (_c = data.image) !== null && _c !== void 0 ? _c : null,
|
|
52
|
+
name: (_d = data.name) !== null && _d !== void 0 ? _d : null,
|
|
53
|
+
description: (_e = data.description) !== null && _e !== void 0 ? _e : null,
|
|
54
|
+
price: (_f = data.price) !== null && _f !== void 0 ? _f : null,
|
|
55
|
+
status: (_g = data.status) !== null && _g !== void 0 ? _g : null,
|
|
56
|
+
created_at: (_h = data.created_at) !== null && _h !== void 0 ? _h : null,
|
|
57
|
+
updated_at: (_j = data.updated_at) !== null && _j !== void 0 ? _j : null
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const ModifierModel: (data: any) => {
|
|
2
|
+
modifier: {
|
|
3
|
+
modifier_name: any;
|
|
4
|
+
type: any;
|
|
5
|
+
required: any;
|
|
6
|
+
group_modifier: any;
|
|
7
|
+
details: any;
|
|
8
|
+
};
|
|
9
|
+
id: any;
|
|
10
|
+
title: any;
|
|
11
|
+
status: any;
|
|
12
|
+
created_at: any;
|
|
13
|
+
updated_at: any;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=modifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_order_api/1.0.0/models/modifier.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,SAAS,GAAG;;;;;;;;;;;;;CAerC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const ModifierModel = (data) => {
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
3
|
+
return {
|
|
4
|
+
modifier: {
|
|
5
|
+
modifier_name: (_b = (_a = data === null || data === void 0 ? void 0 : data.modifier) === null || _a === void 0 ? void 0 : _a.modifier_name) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
type: (_d = (_c = data === null || data === void 0 ? void 0 : data.modifier) === null || _c === void 0 ? void 0 : _c.type) !== null && _d !== void 0 ? _d : null,
|
|
7
|
+
required: (_f = (_e = data === null || data === void 0 ? void 0 : data.modifier) === null || _e === void 0 ? void 0 : _e.required) !== null && _f !== void 0 ? _f : null,
|
|
8
|
+
group_modifier: (_g = data === null || data === void 0 ? void 0 : data.modifier.group_modifier) !== null && _g !== void 0 ? _g : null,
|
|
9
|
+
details: (((_h = data === null || data === void 0 ? void 0 : data.modifier) === null || _h === void 0 ? void 0 : _h.details) || []).map((item) => ModifierDetail(item))
|
|
10
|
+
},
|
|
11
|
+
id: (_j = data === null || data === void 0 ? void 0 : data.id) !== null && _j !== void 0 ? _j : null,
|
|
12
|
+
title: (_k = data === null || data === void 0 ? void 0 : data.title) !== null && _k !== void 0 ? _k : null,
|
|
13
|
+
status: (_l = data === null || data === void 0 ? void 0 : data.status) !== null && _l !== void 0 ? _l : null,
|
|
14
|
+
created_at: (_m = data === null || data === void 0 ? void 0 : data.created_at) !== null && _m !== void 0 ? _m : null,
|
|
15
|
+
updated_at: (_o = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _o !== void 0 ? _o : null
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
const ModifierDetail = (data) => {
|
|
19
|
+
var _a, _b, _c;
|
|
20
|
+
return {
|
|
21
|
+
image_url: (_a = data === null || data === void 0 ? void 0 : data.name) !== null && _a !== void 0 ? _a : null,
|
|
22
|
+
name: (_b = data === null || data === void 0 ? void 0 : data.name) !== null && _b !== void 0 ? _b : null,
|
|
23
|
+
price: (_c = data === null || data === void 0 ? void 0 : data.price) !== null && _c !== void 0 ? _c : null
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_order_api/1.0.0/types/request/category.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/api/go_order_api/1.0.0/types/request/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|