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,55 @@
|
|
|
1
|
+
export type GetListItemRequest = {
|
|
2
|
+
"page"?: number;
|
|
3
|
+
"per-page"?: number;
|
|
4
|
+
name?: string;
|
|
5
|
+
category_id?: string;
|
|
6
|
+
};
|
|
7
|
+
export type CreateItemRequest = {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
category_id: number;
|
|
11
|
+
note: string;
|
|
12
|
+
visibility: number;
|
|
13
|
+
prepare_duration: string;
|
|
14
|
+
item_variants: ItemVariant[];
|
|
15
|
+
modifier: Modifier[];
|
|
16
|
+
};
|
|
17
|
+
export type UpdateStatusItemRequest = {
|
|
18
|
+
id: number;
|
|
19
|
+
status: number;
|
|
20
|
+
};
|
|
21
|
+
export type DeleteItemRequest = {
|
|
22
|
+
id: number;
|
|
23
|
+
};
|
|
24
|
+
export type UpdateItemRequest = {
|
|
25
|
+
id: number;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
category_id: number;
|
|
29
|
+
note: string;
|
|
30
|
+
visibility: number;
|
|
31
|
+
prepare_duration: string;
|
|
32
|
+
item_variants: ItemVariant[];
|
|
33
|
+
modifier: Modifier[];
|
|
34
|
+
};
|
|
35
|
+
export type ItemVariant = {
|
|
36
|
+
name: string;
|
|
37
|
+
image: any;
|
|
38
|
+
description: string;
|
|
39
|
+
price: string;
|
|
40
|
+
index: number;
|
|
41
|
+
};
|
|
42
|
+
export type Modifier = {
|
|
43
|
+
modifier_name: string;
|
|
44
|
+
type: string;
|
|
45
|
+
required: boolean;
|
|
46
|
+
group_modifier: string;
|
|
47
|
+
details: Detail[];
|
|
48
|
+
is_selected: boolean;
|
|
49
|
+
};
|
|
50
|
+
export type Detail = {
|
|
51
|
+
image_url: string;
|
|
52
|
+
name: string;
|
|
53
|
+
price: number;
|
|
54
|
+
};
|
|
55
|
+
//# 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/types/request/item.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBA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,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type DetailModifier = {
|
|
2
|
+
name: string;
|
|
3
|
+
price: number;
|
|
4
|
+
image_url: string | null;
|
|
5
|
+
};
|
|
6
|
+
export type CreateModifierRequest = {
|
|
7
|
+
title: string;
|
|
8
|
+
modifier: {
|
|
9
|
+
modifier_name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
group_modifier: string;
|
|
13
|
+
details: DetailModifier[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type UpdateModifierRequest = {
|
|
17
|
+
id: number;
|
|
18
|
+
title: string;
|
|
19
|
+
modifier: {
|
|
20
|
+
modifier_name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
required: boolean;
|
|
23
|
+
group_modifier: string;
|
|
24
|
+
details: DetailModifier[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type DeleteModifierRequest = {
|
|
28
|
+
id: number;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
31
|
+
//# 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/types/request/modifier.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAA;AACD,MAAM,MAAM,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE;QACN,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,OAAO,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,EAAE,cAAc,EAAE,CAAA;KAC5B,CAAA;CACJ,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE;QACN,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,OAAO,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,EAAE,cAAc,EAAE,CAAA;KAC5B,CAAA;CACJ,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;CACd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
type ColorDetail = {
|
|
2
|
+
type: number;
|
|
3
|
+
id: number;
|
|
4
|
+
item_id: number;
|
|
5
|
+
color_code: string;
|
|
6
|
+
priority: number;
|
|
7
|
+
created_at: string;
|
|
8
|
+
updated_at: string;
|
|
9
|
+
status: number;
|
|
10
|
+
};
|
|
11
|
+
type Modifier = {
|
|
12
|
+
is_selected: boolean;
|
|
13
|
+
details: any;
|
|
14
|
+
id: number;
|
|
15
|
+
modifier_name: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
type: string;
|
|
18
|
+
group_modifier: string;
|
|
19
|
+
};
|
|
20
|
+
type ItemVariant = {
|
|
21
|
+
id: number;
|
|
22
|
+
item_id: number;
|
|
23
|
+
image: string | null;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
price: number;
|
|
27
|
+
status: number;
|
|
28
|
+
created_at: string;
|
|
29
|
+
updated_at: string | null;
|
|
30
|
+
};
|
|
31
|
+
type Item = {
|
|
32
|
+
nutritional_information: any[];
|
|
33
|
+
modifier: Modifier[];
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
image: string;
|
|
38
|
+
category_id: number;
|
|
39
|
+
note: string;
|
|
40
|
+
type: string | null;
|
|
41
|
+
visibility: number;
|
|
42
|
+
prepare_duration: number;
|
|
43
|
+
slug: string | null;
|
|
44
|
+
created_at: string;
|
|
45
|
+
updated_at: string;
|
|
46
|
+
status: number;
|
|
47
|
+
sku: string | null;
|
|
48
|
+
price: number | null;
|
|
49
|
+
duration: number;
|
|
50
|
+
priority: number | null;
|
|
51
|
+
item_variants: ItemVariant[];
|
|
52
|
+
};
|
|
53
|
+
export type GetListCategoryResponse = {
|
|
54
|
+
color_detail: ColorDetail;
|
|
55
|
+
created_at: string;
|
|
56
|
+
id: number;
|
|
57
|
+
items: any;
|
|
58
|
+
name: string;
|
|
59
|
+
priority: number;
|
|
60
|
+
status: string;
|
|
61
|
+
};
|
|
62
|
+
export type UpdateCategoryResponse = {
|
|
63
|
+
id: number;
|
|
64
|
+
name: string;
|
|
65
|
+
priority: number;
|
|
66
|
+
created_at: string;
|
|
67
|
+
status: string;
|
|
68
|
+
color_detail: ColorDetail;
|
|
69
|
+
items: Item[];
|
|
70
|
+
};
|
|
71
|
+
export type DeleteCategoryRequest = null;
|
|
72
|
+
export {};
|
|
73
|
+
//# 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/types/response/category.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,C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EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,aAAa,EAAE,WAAW,EAAE,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,YAAY,EAAE,WAAW,CAAA;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,GAAG,CAAA;IACV,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,CAAC;IAC1B,KAAK,EAAE,IAAI,EAAE,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,IAAI,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/response/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export type GetListItemRespone = {
|
|
2
|
+
nutritional_information: any[];
|
|
3
|
+
modifier: Modifier[];
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
image: string;
|
|
8
|
+
category_id: number;
|
|
9
|
+
note: string;
|
|
10
|
+
type: any;
|
|
11
|
+
visibility: number;
|
|
12
|
+
prepare_duration: any;
|
|
13
|
+
slug: any;
|
|
14
|
+
created_at: string;
|
|
15
|
+
updated_at: any;
|
|
16
|
+
status: number;
|
|
17
|
+
sku: any;
|
|
18
|
+
price: any;
|
|
19
|
+
duration: number;
|
|
20
|
+
priority: any;
|
|
21
|
+
item_variants: ItemVariant[];
|
|
22
|
+
};
|
|
23
|
+
export type CreateItemResponse = {
|
|
24
|
+
created_at: string;
|
|
25
|
+
nutritional_information: any[];
|
|
26
|
+
modifier: Modifier[];
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
category_id: number;
|
|
30
|
+
note: string;
|
|
31
|
+
visibility: number;
|
|
32
|
+
prepare_duration: string;
|
|
33
|
+
status: number;
|
|
34
|
+
id: number;
|
|
35
|
+
item_variants: ItemVariant[];
|
|
36
|
+
};
|
|
37
|
+
export type UpdateItemResponse = {
|
|
38
|
+
nutritional_information: any[];
|
|
39
|
+
modifier: Modifier[];
|
|
40
|
+
id: number;
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
image: any;
|
|
44
|
+
category_id: number;
|
|
45
|
+
note: string;
|
|
46
|
+
type: any;
|
|
47
|
+
visibility: number;
|
|
48
|
+
prepare_duration: string;
|
|
49
|
+
slug: any;
|
|
50
|
+
created_at: string;
|
|
51
|
+
updated_at: string;
|
|
52
|
+
status: number;
|
|
53
|
+
sku: any;
|
|
54
|
+
price: any;
|
|
55
|
+
duration: number;
|
|
56
|
+
priority: any;
|
|
57
|
+
item_variants: ItemVariant[];
|
|
58
|
+
};
|
|
59
|
+
export type DeleteItemResponse = null;
|
|
60
|
+
export type Modifier = {
|
|
61
|
+
modifier_name: string;
|
|
62
|
+
type: string;
|
|
63
|
+
required: boolean;
|
|
64
|
+
details: DetailModifier[];
|
|
65
|
+
is_selected: boolean;
|
|
66
|
+
id: string;
|
|
67
|
+
group_modifier: string;
|
|
68
|
+
};
|
|
69
|
+
export type DetailModifier = {
|
|
70
|
+
name: string;
|
|
71
|
+
price: string;
|
|
72
|
+
id: string;
|
|
73
|
+
image_url: any;
|
|
74
|
+
};
|
|
75
|
+
export type ItemVariant = {
|
|
76
|
+
id: number;
|
|
77
|
+
item_id: number;
|
|
78
|
+
image?: string;
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
price: number;
|
|
82
|
+
status: number;
|
|
83
|
+
created_at: string;
|
|
84
|
+
updated_at: any;
|
|
85
|
+
};
|
|
86
|
+
//# 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/types/response/item.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,uBAAuB,EAAE,GAAG,EAAE,CAAA;IAC9B,QAAQ,EAAE,QAAQ,EAAE,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,GAAG,CAAA;IACT,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,GAAG,CAAA;IACrB,IAAI,EAAE,GAAG,CAAA;IACT,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,GAAG,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,GAAG,CAAA;IACR,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,GAAG,CAAA;IACb,aAAa,EAAE,WAAW,EAAE,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,uBAAuB,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W,EAAE,OAAO,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,cAAc,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,GAAG,CAAA;CAClB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type ModifierDetail = {
|
|
2
|
+
name: string;
|
|
3
|
+
price: number;
|
|
4
|
+
};
|
|
5
|
+
export type GetListModifierResponse = {
|
|
6
|
+
modifier: {
|
|
7
|
+
details: ModifierDetail[];
|
|
8
|
+
modifier_name: string;
|
|
9
|
+
required: boolean;
|
|
10
|
+
type: string;
|
|
11
|
+
group_modifier: string;
|
|
12
|
+
};
|
|
13
|
+
id: number;
|
|
14
|
+
title: string;
|
|
15
|
+
status: number;
|
|
16
|
+
created_at: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
};
|
|
19
|
+
export type CreateModifierResponse = {
|
|
20
|
+
modifier: {
|
|
21
|
+
details: ModifierDetail[];
|
|
22
|
+
modifier_name: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
type: string;
|
|
25
|
+
group_modifier: string;
|
|
26
|
+
};
|
|
27
|
+
id: number;
|
|
28
|
+
title: string;
|
|
29
|
+
status: number;
|
|
30
|
+
created_at: string;
|
|
31
|
+
};
|
|
32
|
+
export type UpdateModifierResponse = GetListModifierResponse;
|
|
33
|
+
export type DeleteModifierResponse = null;
|
|
34
|
+
export {};
|
|
35
|
+
//# 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/types/response/modifier.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,EAAE;QACN,OAAO,EAAE,cAAc,EAAE,CAAC;QAC1B,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,OAAO,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,MAAM,CAAA;KACzB,CAAC;IACF,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE;QACN,OAAO,EAAE,cAAc,EAAE,CAAA;QACzB,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,OAAO,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,MAAM,CAAA;KACzB,CAAC;IACF,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAA;AAE5D,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/api/go_order_api/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAMlC,QAAA,MAAM,MAAM,YAAa,aAAa,cAKrC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GapApiVersion } from "../../base_type";
|
|
2
|
+
import * as V1 from "./1.0.0/api";
|
|
3
|
+
const apiList = {
|
|
4
|
+
[GapApiVersion.V1]: V1,
|
|
5
|
+
};
|
|
6
|
+
const getApi = (version) => {
|
|
7
|
+
if (!apiList[version]) {
|
|
8
|
+
throw new Error(`Can't not find API of this version!`);
|
|
9
|
+
}
|
|
10
|
+
return apiList[version];
|
|
11
|
+
};
|
|
12
|
+
export default getApi;
|
|
@@ -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/enums/index.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/go_order_api/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,UAAU;IAC3B,QAAQ,MAAC;IACT,IAAI,MAAC;IACL,QAAQ,MAAC;gBAEG,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa;CAOvF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Base from "../../base/Base";
|
|
2
|
+
import getApi from "./api";
|
|
3
|
+
export default class GoOrderApi {
|
|
4
|
+
constructor(domain, gClientId, token, version) {
|
|
5
|
+
Base.setClient(domain, gClientId, token, version);
|
|
6
|
+
const API = getApi(version);
|
|
7
|
+
this.category = API.Category;
|
|
8
|
+
this.item = API.Item;
|
|
9
|
+
this.modifier = API.Modifier;
|
|
10
|
+
}
|
|
11
|
+
}
|