@ibiliaze/global-vars 1.139.0 → 1.141.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/inputsDefault.d.ts +32 -0
- package/dist/ticketops/roles/account.d.ts +0 -3
- package/dist/ticketops/roles/admin.d.ts +0 -2
- package/dist/ticketops/roles/blog.d.ts +0 -3
- package/dist/ticketops/roles/campaign.d.ts +2 -5
- package/dist/ticketops/roles/category.d.ts +0 -3
- 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 +6 -5
- package/dist/ticketops/roles/event.js +2 -1
- 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 +0 -3
- package/dist/ticketops/roles/flow.d.ts +0 -4
- package/dist/ticketops/roles/google.d.ts +4 -0
- package/dist/ticketops/roles/google.js +2 -0
- package/dist/ticketops/roles/group.d.ts +0 -4
- package/dist/ticketops/roles/info.d.ts +17 -0
- package/dist/ticketops/roles/info.js +3 -0
- package/dist/ticketops/roles/job.d.ts +0 -5
- package/dist/ticketops/roles/log.d.ts +0 -1
- package/dist/ticketops/roles/notification.d.ts +0 -3
- package/dist/ticketops/roles/page.d.ts +0 -4
- package/dist/ticketops/roles/product.d.ts +0 -3
- package/dist/ticketops/roles/prospect.d.ts +0 -4
- package/dist/ticketops/roles/quota.d.ts +13 -0
- package/dist/ticketops/roles/quota.js +3 -0
- 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 +63 -1
- package/dist/ticketops/roles/sale.js +64 -14
- package/dist/ticketops/roles/schema.d.ts +7 -0
- package/dist/ticketops/roles/schema.js +3 -0
- 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 +2075 -211
- package/dist/ticketops/roles.js +20 -20
- package/package.json +2 -2
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.infoRoleDefs = void 0;
|
|
4
4
|
exports.infoRoleDefs = [
|
|
5
|
+
// GET /util/info/general – general util info
|
|
5
6
|
{
|
|
6
7
|
method: 'get',
|
|
7
8
|
path: '/util/info/general',
|
|
8
9
|
role: 'getUtilInfoGeneral',
|
|
9
10
|
name: 'Get general util info',
|
|
11
|
+
response_200: {},
|
|
12
|
+
response_400: {},
|
|
10
13
|
},
|
|
11
14
|
];
|
|
@@ -65,7 +65,6 @@ export declare const jobRoleDefs: <TId, TDate>() => readonly [{
|
|
|
65
65
|
};
|
|
66
66
|
readonly response_404: {
|
|
67
67
|
message: string;
|
|
68
|
-
error: string;
|
|
69
68
|
};
|
|
70
69
|
}, {
|
|
71
70
|
readonly method: "get";
|
|
@@ -84,9 +83,7 @@ export declare const jobRoleDefs: <TId, TDate>() => readonly [{
|
|
|
84
83
|
message: string;
|
|
85
84
|
};
|
|
86
85
|
readonly response_404: {
|
|
87
|
-
job?: JobBase<TId, TDate> | null;
|
|
88
86
|
message: string;
|
|
89
|
-
error: string;
|
|
90
87
|
};
|
|
91
88
|
}, {
|
|
92
89
|
readonly method: "put";
|
|
@@ -98,7 +95,6 @@ export declare const jobRoleDefs: <TId, TDate>() => readonly [{
|
|
|
98
95
|
message: string;
|
|
99
96
|
};
|
|
100
97
|
readonly response_404: {
|
|
101
|
-
job?: JobBase<TId, TDate> | null;
|
|
102
98
|
message: string;
|
|
103
99
|
};
|
|
104
100
|
readonly response_500: {
|
|
@@ -115,7 +111,6 @@ export declare const jobRoleDefs: <TId, TDate>() => readonly [{
|
|
|
115
111
|
message: string;
|
|
116
112
|
};
|
|
117
113
|
readonly response_404: {
|
|
118
|
-
job?: JobBase<TId, TDate> | null;
|
|
119
114
|
message: string;
|
|
120
115
|
};
|
|
121
116
|
readonly response_500: {
|
|
@@ -50,7 +50,6 @@ export declare const notificationRoleDefs: <TId, TDate>() => readonly [{
|
|
|
50
50
|
};
|
|
51
51
|
readonly response_404: {
|
|
52
52
|
message: string;
|
|
53
|
-
error: string;
|
|
54
53
|
};
|
|
55
54
|
}, {
|
|
56
55
|
readonly method: "put";
|
|
@@ -62,7 +61,6 @@ export declare const notificationRoleDefs: <TId, TDate>() => readonly [{
|
|
|
62
61
|
message: string;
|
|
63
62
|
};
|
|
64
63
|
readonly response_404: {
|
|
65
|
-
notification: NotificationBase<TId, TDate> | null;
|
|
66
64
|
message: string;
|
|
67
65
|
};
|
|
68
66
|
readonly response_500: {
|
|
@@ -79,7 +77,6 @@ export declare const notificationRoleDefs: <TId, TDate>() => readonly [{
|
|
|
79
77
|
message: string;
|
|
80
78
|
};
|
|
81
79
|
readonly response_404: {
|
|
82
|
-
notification: NotificationBase<TId, TDate> | null;
|
|
83
80
|
message: string;
|
|
84
81
|
};
|
|
85
82
|
readonly response_500: {
|
|
@@ -19,7 +19,6 @@ export declare const pageRoleDefs: <TId, TDate>() => readonly [{
|
|
|
19
19
|
readonly name: "Trigger page by ID";
|
|
20
20
|
readonly response_200: Record<string, never>;
|
|
21
21
|
readonly response_404: {
|
|
22
|
-
page: PageBase<TId, TDate> | null;
|
|
23
22
|
message: string;
|
|
24
23
|
};
|
|
25
24
|
readonly response_500: {
|
|
@@ -50,7 +49,6 @@ export declare const pageRoleDefs: <TId, TDate>() => readonly [{
|
|
|
50
49
|
};
|
|
51
50
|
readonly response_404: {
|
|
52
51
|
message: string;
|
|
53
|
-
error: string;
|
|
54
52
|
};
|
|
55
53
|
}, {
|
|
56
54
|
readonly method: "put";
|
|
@@ -62,7 +60,6 @@ export declare const pageRoleDefs: <TId, TDate>() => readonly [{
|
|
|
62
60
|
message: string;
|
|
63
61
|
};
|
|
64
62
|
readonly response_404: {
|
|
65
|
-
page: PageBase<TId, TDate> | null;
|
|
66
63
|
message: string;
|
|
67
64
|
};
|
|
68
65
|
readonly response_500: {
|
|
@@ -79,7 +76,6 @@ export declare const pageRoleDefs: <TId, TDate>() => readonly [{
|
|
|
79
76
|
message: string;
|
|
80
77
|
};
|
|
81
78
|
readonly response_404: {
|
|
82
|
-
page: PageBase<TId, TDate> | null;
|
|
83
79
|
message: string;
|
|
84
80
|
};
|
|
85
81
|
readonly response_500: {
|
|
@@ -36,7 +36,6 @@ export declare const productRoleDefs: <TId, TDate>() => readonly [{
|
|
|
36
36
|
};
|
|
37
37
|
readonly response_404: {
|
|
38
38
|
message: string;
|
|
39
|
-
error: string;
|
|
40
39
|
};
|
|
41
40
|
}, {
|
|
42
41
|
readonly method: "put";
|
|
@@ -48,7 +47,6 @@ export declare const productRoleDefs: <TId, TDate>() => readonly [{
|
|
|
48
47
|
message: string;
|
|
49
48
|
};
|
|
50
49
|
readonly response_404: {
|
|
51
|
-
product: ProductBase<TId, TDate> | null;
|
|
52
50
|
message: string;
|
|
53
51
|
};
|
|
54
52
|
readonly response_500: {
|
|
@@ -65,7 +63,6 @@ export declare const productRoleDefs: <TId, TDate>() => readonly [{
|
|
|
65
63
|
message: string;
|
|
66
64
|
};
|
|
67
65
|
readonly response_404: {
|
|
68
|
-
product: ProductBase<TId, TDate> | null;
|
|
69
66
|
message: string;
|
|
70
67
|
};
|
|
71
68
|
readonly response_500: {
|
|
@@ -62,7 +62,6 @@ export declare const prospectRoleDefs: <TId, TDate>() => readonly [{
|
|
|
62
62
|
};
|
|
63
63
|
readonly response_404: {
|
|
64
64
|
message: string;
|
|
65
|
-
error: string;
|
|
66
65
|
};
|
|
67
66
|
}, {
|
|
68
67
|
readonly method: "get";
|
|
@@ -91,7 +90,6 @@ export declare const prospectRoleDefs: <TId, TDate>() => readonly [{
|
|
|
91
90
|
message: string;
|
|
92
91
|
};
|
|
93
92
|
readonly response_404: {
|
|
94
|
-
prospect: ProspectBase<TId, TDate> | null;
|
|
95
93
|
message: string;
|
|
96
94
|
};
|
|
97
95
|
readonly response_500: {
|
|
@@ -108,7 +106,6 @@ export declare const prospectRoleDefs: <TId, TDate>() => readonly [{
|
|
|
108
106
|
message: string;
|
|
109
107
|
};
|
|
110
108
|
readonly response_404: {
|
|
111
|
-
prospect: ProspectBase<TId, TDate> | null;
|
|
112
109
|
message: string;
|
|
113
110
|
};
|
|
114
111
|
readonly response_500: {
|
|
@@ -125,7 +122,6 @@ export declare const prospectRoleDefs: <TId, TDate>() => readonly [{
|
|
|
125
122
|
message: string;
|
|
126
123
|
};
|
|
127
124
|
readonly response_404: {
|
|
128
|
-
prospect: ProspectBase<TId, TDate> | null;
|
|
129
125
|
message: string;
|
|
130
126
|
};
|
|
131
127
|
readonly response_500: {
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
type QuotaLimitRow = {
|
|
2
|
+
schema: string;
|
|
3
|
+
count: number;
|
|
4
|
+
limit: number;
|
|
5
|
+
};
|
|
1
6
|
export declare const quotaRoleDefs: readonly [{
|
|
2
7
|
readonly method: "get";
|
|
3
8
|
readonly path: "/util/quota/limit";
|
|
4
9
|
readonly role: "getUtilQuotaLimit";
|
|
5
10
|
readonly name: "Get quota limits";
|
|
11
|
+
readonly response_200: {
|
|
12
|
+
limits: QuotaLimitRow[];
|
|
13
|
+
message: string;
|
|
14
|
+
};
|
|
15
|
+
readonly response_400: {
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
6
18
|
}];
|
|
19
|
+
export {};
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.quotaRoleDefs = void 0;
|
|
4
4
|
exports.quotaRoleDefs = [
|
|
5
|
+
// GET /util/quota/limit – quota limits
|
|
5
6
|
{
|
|
6
7
|
method: 'get',
|
|
7
8
|
path: '/util/quota/limit',
|
|
8
9
|
role: 'getUtilQuotaLimit',
|
|
9
10
|
name: 'Get quota limits',
|
|
11
|
+
response_200: {},
|
|
12
|
+
response_400: {},
|
|
10
13
|
},
|
|
11
14
|
];
|
|
@@ -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
|
}];
|
|
@@ -1,10 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.roleRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const roleRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/role',
|
|
9
|
+
role: 'postRole',
|
|
10
|
+
name: 'Create role',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/role',
|
|
17
|
+
role: 'getRoles',
|
|
18
|
+
name: 'Get roles',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/role/:id',
|
|
25
|
+
role: 'getRoleById',
|
|
26
|
+
name: 'Get role',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_404: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'put',
|
|
32
|
+
path: '/role/:id',
|
|
33
|
+
role: 'putRoleById',
|
|
34
|
+
name: 'Update role',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
method: 'delete',
|
|
40
|
+
path: '/role/:id',
|
|
41
|
+
role: 'deleteRoleById',
|
|
42
|
+
name: 'Delete role',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_404: {},
|
|
45
|
+
response_500: {},
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
};
|
|
49
|
+
exports.roleRoleDefs = roleRoleDefs;
|