@ibiliaze/global-vars 1.138.0 → 1.140.0
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/ticketops/roles/account.d.ts +0 -3
- package/dist/ticketops/roles/admin.d.ts +11 -12
- package/dist/ticketops/roles/admin.js +130 -127
- package/dist/ticketops/roles/blog.d.ts +7 -9
- package/dist/ticketops/roles/blog.js +52 -49
- package/dist/ticketops/roles/campaign.d.ts +18 -12
- package/dist/ticketops/roles/campaign.js +84 -81
- package/dist/ticketops/roles/category.d.ts +47 -1
- package/dist/ticketops/roles/category.js +52 -7
- package/dist/ticketops/roles/checkout.d.ts +16 -0
- package/dist/ticketops/roles/checkout.js +4 -0
- package/dist/ticketops/roles/email.d.ts +26 -0
- package/dist/ticketops/roles/email.js +26 -3
- package/dist/ticketops/roles/event.d.ts +85 -1
- package/dist/ticketops/roles/event.js +81 -11
- package/dist/ticketops/roles/fail.d.ts +41 -1
- package/dist/ticketops/roles/fail.js +40 -6
- package/dist/ticketops/roles/file.d.ts +32 -0
- package/dist/ticketops/roles/file.js +9 -0
- package/dist/ticketops/roles/fixture.d.ts +47 -1
- package/dist/ticketops/roles/fixture.js +47 -7
- package/dist/ticketops/roles/flow.d.ts +54 -1
- package/dist/ticketops/roles/flow.js +55 -8
- package/dist/ticketops/roles/group.d.ts +47 -1
- package/dist/ticketops/roles/group.js +47 -7
- package/dist/ticketops/roles/job.d.ts +80 -1
- package/dist/ticketops/roles/job.js +73 -10
- package/dist/ticketops/roles/log.d.ts +28 -1
- package/dist/ticketops/roles/log.js +30 -5
- package/dist/ticketops/roles/notification.d.ts +56 -1
- package/dist/ticketops/roles/notification.js +55 -8
- package/dist/ticketops/roles/page.d.ts +55 -1
- package/dist/ticketops/roles/page.js +56 -8
- package/dist/ticketops/roles/product.d.ts +47 -1
- package/dist/ticketops/roles/product.js +47 -7
- package/dist/ticketops/roles/prospect.d.ts +86 -1
- package/dist/ticketops/roles/prospect.js +82 -11
- package/dist/ticketops/roles/report.d.ts +47 -1
- package/dist/ticketops/roles/report.js +47 -7
- package/dist/ticketops/roles/review.d.ts +62 -1
- package/dist/ticketops/roles/review.js +63 -9
- package/dist/ticketops/roles/role.d.ts +43 -1
- package/dist/ticketops/roles/role.js +46 -7
- package/dist/ticketops/roles/sale.d.ts +74 -1
- package/dist/ticketops/roles/sale.js +64 -14
- package/dist/ticketops/roles/season.d.ts +43 -1
- package/dist/ticketops/roles/season.js +46 -7
- package/dist/ticketops/roles/seat.d.ts +299 -1
- package/dist/ticketops/roles/seat.js +126 -40
- package/dist/ticketops/roles/section.d.ts +47 -1
- package/dist/ticketops/roles/section.js +47 -7
- package/dist/ticketops/roles/staff.d.ts +121 -1
- package/dist/ticketops/roles/staff.js +110 -14
- package/dist/ticketops/roles/user.d.ts +120 -1
- package/dist/ticketops/roles/user.js +114 -20
- package/dist/ticketops/roles.d.ts +3192 -74
- package/dist/ticketops/roles.js +48 -48
- package/package.json +2 -2
|
@@ -1,10 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.productRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const productRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/product',
|
|
9
|
+
role: 'postProduct',
|
|
10
|
+
name: 'Create product',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/product',
|
|
17
|
+
role: 'getProducts',
|
|
18
|
+
name: 'Get products',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/product/:id',
|
|
25
|
+
role: 'getProductById',
|
|
26
|
+
name: 'Get product',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_404: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'put',
|
|
32
|
+
path: '/product/:id',
|
|
33
|
+
role: 'putProductById',
|
|
34
|
+
name: 'Update product',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
response_500: {},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
method: 'delete',
|
|
41
|
+
path: '/product/:id',
|
|
42
|
+
role: 'deleteProductById',
|
|
43
|
+
name: 'Delete product',
|
|
44
|
+
response_200: {},
|
|
45
|
+
response_404: {},
|
|
46
|
+
response_500: {},
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
};
|
|
50
|
+
exports.productRoleDefs = productRoleDefs;
|
|
@@ -1,46 +1,131 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ProspectBase } from '../inputsDefault';
|
|
2
|
+
export declare const prospectRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/prospect";
|
|
4
5
|
readonly role: "postProspect";
|
|
5
6
|
readonly name: "Create prospect";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
prospect: ProspectBase<TId, TDate>;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_500: {
|
|
12
|
+
message: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
6
15
|
}, {
|
|
7
16
|
readonly method: "post";
|
|
8
17
|
readonly path: "/prospect/subscribe";
|
|
9
18
|
readonly role: "postProspectSubscribe";
|
|
10
19
|
readonly name: "Subscribe prospect";
|
|
20
|
+
readonly response_201: {
|
|
21
|
+
prospect: ProspectBase<TId, TDate>;
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
readonly response_500: {
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
11
28
|
}, {
|
|
12
29
|
readonly method: "get";
|
|
13
30
|
readonly path: "/prospect";
|
|
14
31
|
readonly role: "getProspects";
|
|
15
32
|
readonly name: "Get prospects";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
prospects: ProspectBase<TId, TDate>[];
|
|
35
|
+
count: number;
|
|
36
|
+
new: number;
|
|
37
|
+
};
|
|
38
|
+
readonly response_500: {
|
|
39
|
+
message: string;
|
|
40
|
+
error: string;
|
|
41
|
+
};
|
|
16
42
|
}, {
|
|
17
43
|
readonly method: "get";
|
|
18
44
|
readonly path: "/prospect/count/new";
|
|
19
45
|
readonly role: "getProspectCountNew";
|
|
20
46
|
readonly name: "Get new prospect count";
|
|
47
|
+
readonly response_200: {
|
|
48
|
+
new: number;
|
|
49
|
+
};
|
|
50
|
+
readonly response_500: {
|
|
51
|
+
message: string;
|
|
52
|
+
error: string;
|
|
53
|
+
};
|
|
21
54
|
}, {
|
|
22
55
|
readonly method: "get";
|
|
23
56
|
readonly path: "/prospect/:id";
|
|
24
57
|
readonly role: "getProspectById";
|
|
25
58
|
readonly name: "Get prospect by ID";
|
|
59
|
+
readonly response_200: {
|
|
60
|
+
prospect: ProspectBase<TId, TDate> | null;
|
|
61
|
+
message: string;
|
|
62
|
+
};
|
|
63
|
+
readonly response_404: {
|
|
64
|
+
message: string;
|
|
65
|
+
};
|
|
26
66
|
}, {
|
|
27
67
|
readonly method: "get";
|
|
28
68
|
readonly path: "/prospect/email/track";
|
|
29
69
|
readonly role: "getProspectEmailTrack";
|
|
30
70
|
readonly name: "Track prospect email";
|
|
71
|
+
readonly response_200: {
|
|
72
|
+
message: string;
|
|
73
|
+
};
|
|
74
|
+
readonly response_302: Record<string, never>;
|
|
75
|
+
readonly response_400: {
|
|
76
|
+
message: string;
|
|
77
|
+
event?: string;
|
|
78
|
+
};
|
|
79
|
+
readonly response_500: {
|
|
80
|
+
message: string;
|
|
81
|
+
error: string;
|
|
82
|
+
};
|
|
31
83
|
}, {
|
|
32
84
|
readonly method: "put";
|
|
33
85
|
readonly path: "/prospect/:id";
|
|
34
86
|
readonly role: "putProspectById";
|
|
35
87
|
readonly name: "Update prospect";
|
|
88
|
+
readonly response_200: {
|
|
89
|
+
prospect: ProspectBase<TId, TDate>;
|
|
90
|
+
message: string;
|
|
91
|
+
};
|
|
92
|
+
readonly response_404: {
|
|
93
|
+
message: string;
|
|
94
|
+
};
|
|
95
|
+
readonly response_500: {
|
|
96
|
+
message: string;
|
|
97
|
+
error: string;
|
|
98
|
+
};
|
|
36
99
|
}, {
|
|
37
100
|
readonly method: "put";
|
|
38
101
|
readonly path: "/prospect/opened/:id";
|
|
39
102
|
readonly role: "putProspectOpenedById";
|
|
40
103
|
readonly name: "Mark prospect opened";
|
|
104
|
+
readonly response_200: {
|
|
105
|
+
prospect: ProspectBase<TId, TDate>;
|
|
106
|
+
message: string;
|
|
107
|
+
};
|
|
108
|
+
readonly response_404: {
|
|
109
|
+
message: string;
|
|
110
|
+
};
|
|
111
|
+
readonly response_500: {
|
|
112
|
+
message: string;
|
|
113
|
+
error: string;
|
|
114
|
+
};
|
|
41
115
|
}, {
|
|
42
116
|
readonly method: "delete";
|
|
43
117
|
readonly path: "/prospect/:id";
|
|
44
118
|
readonly role: "deleteProspectById";
|
|
45
119
|
readonly name: "Delete prospect";
|
|
120
|
+
readonly response_200: {
|
|
121
|
+
prospect: ProspectBase<TId, TDate>;
|
|
122
|
+
message: string;
|
|
123
|
+
};
|
|
124
|
+
readonly response_404: {
|
|
125
|
+
message: string;
|
|
126
|
+
};
|
|
127
|
+
readonly response_500: {
|
|
128
|
+
message: string;
|
|
129
|
+
error: string;
|
|
130
|
+
};
|
|
46
131
|
}];
|
|
@@ -1,14 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prospectRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
const prospectRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/prospect',
|
|
9
|
+
role: 'postProspect',
|
|
10
|
+
name: 'Create prospect',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'post',
|
|
16
|
+
path: '/prospect/subscribe',
|
|
17
|
+
role: 'postProspectSubscribe',
|
|
18
|
+
name: 'Subscribe prospect',
|
|
19
|
+
response_201: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/prospect',
|
|
25
|
+
role: 'getProspects',
|
|
26
|
+
name: 'Get prospects',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_500: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'get',
|
|
32
|
+
path: '/prospect/count/new',
|
|
33
|
+
role: 'getProspectCountNew',
|
|
34
|
+
name: 'Get new prospect count',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_500: {},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
method: 'get',
|
|
40
|
+
path: '/prospect/:id',
|
|
41
|
+
role: 'getProspectById',
|
|
42
|
+
name: 'Get prospect by ID',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_404: {},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
method: 'get',
|
|
48
|
+
path: '/prospect/email/track',
|
|
49
|
+
role: 'getProspectEmailTrack',
|
|
50
|
+
name: 'Track prospect email',
|
|
51
|
+
response_200: {},
|
|
52
|
+
response_302: {},
|
|
53
|
+
response_400: {},
|
|
54
|
+
response_500: {},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
method: 'put',
|
|
58
|
+
path: '/prospect/:id',
|
|
59
|
+
role: 'putProspectById',
|
|
60
|
+
name: 'Update prospect',
|
|
61
|
+
response_200: {},
|
|
62
|
+
response_404: {},
|
|
63
|
+
response_500: {},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
method: 'put',
|
|
67
|
+
path: '/prospect/opened/:id',
|
|
68
|
+
role: 'putProspectOpenedById',
|
|
69
|
+
name: 'Mark prospect opened',
|
|
70
|
+
response_200: {},
|
|
71
|
+
response_404: {},
|
|
72
|
+
response_500: {},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
method: 'delete',
|
|
76
|
+
path: '/prospect/:id',
|
|
77
|
+
role: 'deleteProspectById',
|
|
78
|
+
name: 'Delete prospect',
|
|
79
|
+
response_200: {},
|
|
80
|
+
response_404: {},
|
|
81
|
+
response_500: {},
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
};
|
|
85
|
+
exports.prospectRoleDefs = prospectRoleDefs;
|
|
@@ -1,26 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ReportBase } from '../inputsDefault';
|
|
2
|
+
export declare const reportRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/report";
|
|
4
5
|
readonly role: "postReport";
|
|
5
6
|
readonly name: "Create report";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
report: ReportBase<TId, TDate>;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_500: {
|
|
12
|
+
message: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
6
15
|
}, {
|
|
7
16
|
readonly method: "get";
|
|
8
17
|
readonly path: "/report";
|
|
9
18
|
readonly role: "getReports";
|
|
10
19
|
readonly name: "Get reports";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
reports: ReportBase<TId, TDate>[];
|
|
22
|
+
count: number;
|
|
23
|
+
};
|
|
24
|
+
readonly response_500: {
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
11
28
|
}, {
|
|
12
29
|
readonly method: "get";
|
|
13
30
|
readonly path: "/report/:id";
|
|
14
31
|
readonly role: "getReportById";
|
|
15
32
|
readonly name: "Get report by ID";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
report: ReportBase<TId, TDate> | null;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
37
|
+
readonly response_404: {
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
16
40
|
}, {
|
|
17
41
|
readonly method: "put";
|
|
18
42
|
readonly path: "/report/:id";
|
|
19
43
|
readonly role: "putReportById";
|
|
20
44
|
readonly name: "Update report";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
report: ReportBase<TId, TDate>;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
readonly response_404: {
|
|
50
|
+
message: string;
|
|
51
|
+
};
|
|
52
|
+
readonly response_500: {
|
|
53
|
+
message: string;
|
|
54
|
+
error: string;
|
|
55
|
+
};
|
|
21
56
|
}, {
|
|
22
57
|
readonly method: "delete";
|
|
23
58
|
readonly path: "/report/:id";
|
|
24
59
|
readonly role: "deleteReportById";
|
|
25
60
|
readonly name: "Delete report";
|
|
61
|
+
readonly response_200: {
|
|
62
|
+
report: ReportBase<TId, TDate>;
|
|
63
|
+
message: string;
|
|
64
|
+
};
|
|
65
|
+
readonly response_404: {
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
readonly response_500: {
|
|
69
|
+
message: string;
|
|
70
|
+
error: string;
|
|
71
|
+
};
|
|
26
72
|
}];
|
|
@@ -1,10 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reportRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const reportRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/report',
|
|
9
|
+
role: 'postReport',
|
|
10
|
+
name: 'Create report',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/report',
|
|
17
|
+
role: 'getReports',
|
|
18
|
+
name: 'Get reports',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/report/:id',
|
|
25
|
+
role: 'getReportById',
|
|
26
|
+
name: 'Get report by ID',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_404: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'put',
|
|
32
|
+
path: '/report/:id',
|
|
33
|
+
role: 'putReportById',
|
|
34
|
+
name: 'Update report',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
response_500: {},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
method: 'delete',
|
|
41
|
+
path: '/report/:id',
|
|
42
|
+
role: 'deleteReportById',
|
|
43
|
+
name: 'Delete report',
|
|
44
|
+
response_200: {},
|
|
45
|
+
response_404: {},
|
|
46
|
+
response_500: {},
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
};
|
|
50
|
+
exports.reportRoleDefs = reportRoleDefs;
|
|
@@ -1,36 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ReviewBase } from '../inputsDefault';
|
|
2
|
+
export declare const reviewRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/review";
|
|
4
5
|
readonly role: "postReview";
|
|
5
6
|
readonly name: "Create review";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
review: ReviewBase<TId, TDate>;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_500: {
|
|
12
|
+
message: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
6
15
|
}, {
|
|
7
16
|
readonly method: "post";
|
|
8
17
|
readonly path: "/reviews";
|
|
9
18
|
readonly role: "postReviews";
|
|
10
19
|
readonly name: "Bulk import reviews";
|
|
20
|
+
readonly response_201: {
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
readonly response_500: {
|
|
24
|
+
message: string;
|
|
25
|
+
error: string;
|
|
26
|
+
};
|
|
11
27
|
}, {
|
|
12
28
|
readonly method: "get";
|
|
13
29
|
readonly path: "/review";
|
|
14
30
|
readonly role: "getReviews";
|
|
15
31
|
readonly name: "Get reviews";
|
|
32
|
+
readonly response_200: {
|
|
33
|
+
reviews: ReviewBase<TId, TDate>[];
|
|
34
|
+
count: number;
|
|
35
|
+
};
|
|
36
|
+
readonly response_500: {
|
|
37
|
+
message: string;
|
|
38
|
+
error: string;
|
|
39
|
+
};
|
|
16
40
|
}, {
|
|
17
41
|
readonly method: "get";
|
|
18
42
|
readonly path: "/review/:id";
|
|
19
43
|
readonly role: "getReviewById";
|
|
20
44
|
readonly name: "Get review by ID";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
review: ReviewBase<TId, TDate> | null;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
readonly response_404: {
|
|
50
|
+
message: string;
|
|
51
|
+
};
|
|
21
52
|
}, {
|
|
22
53
|
readonly method: "get";
|
|
23
54
|
readonly path: "/review/count/:id";
|
|
24
55
|
readonly role: "getReviewCountById";
|
|
25
56
|
readonly name: "Get review count & rating";
|
|
57
|
+
readonly response_200: {
|
|
58
|
+
count: number;
|
|
59
|
+
rating: number;
|
|
60
|
+
};
|
|
61
|
+
readonly response_500: {
|
|
62
|
+
message: string;
|
|
63
|
+
error: string;
|
|
64
|
+
};
|
|
26
65
|
}, {
|
|
27
66
|
readonly method: "put";
|
|
28
67
|
readonly path: "/review/:id";
|
|
29
68
|
readonly role: "putReviewById";
|
|
30
69
|
readonly name: "Update review";
|
|
70
|
+
readonly response_200: {
|
|
71
|
+
review: ReviewBase<TId, TDate>;
|
|
72
|
+
message: string;
|
|
73
|
+
};
|
|
74
|
+
readonly response_404: {
|
|
75
|
+
message: string;
|
|
76
|
+
};
|
|
77
|
+
readonly response_500: {
|
|
78
|
+
message: string;
|
|
79
|
+
error: string;
|
|
80
|
+
};
|
|
31
81
|
}, {
|
|
32
82
|
readonly method: "delete";
|
|
33
83
|
readonly path: "/review/:id";
|
|
34
84
|
readonly role: "deleteReviewById";
|
|
35
85
|
readonly name: "Delete review";
|
|
86
|
+
readonly response_200: {
|
|
87
|
+
review: ReviewBase<TId, TDate>;
|
|
88
|
+
message: string;
|
|
89
|
+
};
|
|
90
|
+
readonly response_404: {
|
|
91
|
+
message: string;
|
|
92
|
+
};
|
|
93
|
+
readonly response_500: {
|
|
94
|
+
message: string;
|
|
95
|
+
error: string;
|
|
96
|
+
};
|
|
36
97
|
}];
|
|
@@ -1,12 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reviewRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
const reviewRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/review',
|
|
9
|
+
role: 'postReview',
|
|
10
|
+
name: 'Create review',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'post',
|
|
16
|
+
path: '/reviews',
|
|
17
|
+
role: 'postReviews',
|
|
18
|
+
name: 'Bulk import reviews',
|
|
19
|
+
response_201: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/review',
|
|
25
|
+
role: 'getReviews',
|
|
26
|
+
name: 'Get reviews',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_500: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'get',
|
|
32
|
+
path: '/review/:id',
|
|
33
|
+
role: 'getReviewById',
|
|
34
|
+
name: 'Get review by ID',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
method: 'get',
|
|
40
|
+
path: '/review/count/:id',
|
|
41
|
+
role: 'getReviewCountById',
|
|
42
|
+
name: 'Get review count & rating',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_500: {},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
method: 'put',
|
|
48
|
+
path: '/review/:id',
|
|
49
|
+
role: 'putReviewById',
|
|
50
|
+
name: 'Update review',
|
|
51
|
+
response_200: {},
|
|
52
|
+
response_404: {},
|
|
53
|
+
response_500: {},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
method: 'delete',
|
|
57
|
+
path: '/review/:id',
|
|
58
|
+
role: 'deleteReviewById',
|
|
59
|
+
name: 'Delete review',
|
|
60
|
+
response_200: {},
|
|
61
|
+
response_404: {},
|
|
62
|
+
response_500: {},
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
};
|
|
66
|
+
exports.reviewRoleDefs = reviewRoleDefs;
|
|
@@ -1,26 +1,68 @@
|
|
|
1
|
-
|
|
1
|
+
import type { RoleBase } from '../inputsDefault';
|
|
2
|
+
export declare const roleRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/role";
|
|
4
5
|
readonly role: "postRole";
|
|
5
6
|
readonly name: "Create role";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
role: RoleBase<TId, TDate>;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_500: {
|
|
12
|
+
message: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
6
15
|
}, {
|
|
7
16
|
readonly method: "get";
|
|
8
17
|
readonly path: "/role";
|
|
9
18
|
readonly role: "getRoles";
|
|
10
19
|
readonly name: "Get roles";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
roles: RoleBase<TId, TDate>[];
|
|
22
|
+
count: number;
|
|
23
|
+
};
|
|
24
|
+
readonly response_500: {
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
11
28
|
}, {
|
|
12
29
|
readonly method: "get";
|
|
13
30
|
readonly path: "/role/:id";
|
|
14
31
|
readonly role: "getRoleById";
|
|
15
32
|
readonly name: "Get role";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
role: RoleBase<TId, TDate> | null;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
37
|
+
readonly response_404: {
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
16
40
|
}, {
|
|
17
41
|
readonly method: "put";
|
|
18
42
|
readonly path: "/role/:id";
|
|
19
43
|
readonly role: "putRoleById";
|
|
20
44
|
readonly name: "Update role";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
role: RoleBase<TId, TDate>;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
readonly response_404: {
|
|
50
|
+
message: string;
|
|
51
|
+
};
|
|
21
52
|
}, {
|
|
22
53
|
readonly method: "delete";
|
|
23
54
|
readonly path: "/role/:id";
|
|
24
55
|
readonly role: "deleteRoleById";
|
|
25
56
|
readonly name: "Delete role";
|
|
57
|
+
readonly response_200: {
|
|
58
|
+
role: RoleBase<TId, TDate>;
|
|
59
|
+
message: string;
|
|
60
|
+
};
|
|
61
|
+
readonly response_404: {
|
|
62
|
+
message: string;
|
|
63
|
+
};
|
|
64
|
+
readonly response_500: {
|
|
65
|
+
message: string;
|
|
66
|
+
error: string;
|
|
67
|
+
};
|
|
26
68
|
}];
|