@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,21 +1,61 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FailBase } from '../inputsDefault';
|
|
2
|
+
export declare const failRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "get";
|
|
3
4
|
readonly path: "/fail";
|
|
4
5
|
readonly role: "getFails";
|
|
5
6
|
readonly name: "Get fails";
|
|
7
|
+
readonly response_200: {
|
|
8
|
+
fails: FailBase<TId, TDate>[];
|
|
9
|
+
count: number;
|
|
10
|
+
};
|
|
11
|
+
readonly response_500: {
|
|
12
|
+
message: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
6
15
|
}, {
|
|
7
16
|
readonly method: "get";
|
|
8
17
|
readonly path: "/fail/run/:id";
|
|
9
18
|
readonly role: "getFailRunById";
|
|
10
19
|
readonly name: "Run fail job by ID";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
readonly response_400: {
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
readonly response_404: {
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
readonly response_500: {
|
|
30
|
+
message: string;
|
|
31
|
+
error: string;
|
|
32
|
+
};
|
|
11
33
|
}, {
|
|
12
34
|
readonly method: "delete";
|
|
13
35
|
readonly path: "/fail/all";
|
|
14
36
|
readonly role: "deleteFailsAll";
|
|
15
37
|
readonly name: "Delete all fails";
|
|
38
|
+
readonly response_200: {
|
|
39
|
+
message: string;
|
|
40
|
+
};
|
|
41
|
+
readonly response_500: {
|
|
42
|
+
message: string;
|
|
43
|
+
error: string;
|
|
44
|
+
};
|
|
16
45
|
}, {
|
|
17
46
|
readonly method: "delete";
|
|
18
47
|
readonly path: "/fail/:id";
|
|
19
48
|
readonly role: "deleteFailById";
|
|
20
49
|
readonly name: "Delete fail by ID";
|
|
50
|
+
readonly response_200: {
|
|
51
|
+
fail: FailBase<TId, TDate>;
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
54
|
+
readonly response_404: {
|
|
55
|
+
message: string;
|
|
56
|
+
};
|
|
57
|
+
readonly response_500: {
|
|
58
|
+
message: string;
|
|
59
|
+
error: string;
|
|
60
|
+
};
|
|
21
61
|
}];
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.failRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
const failRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'get',
|
|
8
|
+
path: '/fail',
|
|
9
|
+
role: 'getFails',
|
|
10
|
+
name: 'Get fails',
|
|
11
|
+
response_200: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/fail/run/:id',
|
|
17
|
+
role: 'getFailRunById',
|
|
18
|
+
name: 'Run fail job by ID',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_400: {},
|
|
21
|
+
response_404: {},
|
|
22
|
+
response_500: {},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
method: 'delete',
|
|
26
|
+
path: '/fail/all',
|
|
27
|
+
role: 'deleteFailsAll',
|
|
28
|
+
name: 'Delete all fails',
|
|
29
|
+
response_200: {},
|
|
30
|
+
response_500: {},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
method: 'delete',
|
|
34
|
+
path: '/fail/:id',
|
|
35
|
+
role: 'deleteFailById',
|
|
36
|
+
name: 'Delete fail by ID',
|
|
37
|
+
response_200: {},
|
|
38
|
+
response_404: {},
|
|
39
|
+
response_500: {},
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
};
|
|
43
|
+
exports.failRoleDefs = failRoleDefs;
|
|
@@ -3,14 +3,46 @@ export declare const fileRoleDefs: readonly [{
|
|
|
3
3
|
readonly path: "/util/file/upload/:id";
|
|
4
4
|
readonly role: "postUtilFileUploadById";
|
|
5
5
|
readonly name: "Upload file by ID";
|
|
6
|
+
readonly response_200: {
|
|
7
|
+
message: string;
|
|
8
|
+
secure_url: string;
|
|
9
|
+
};
|
|
10
|
+
readonly response_400: {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
readonly response_500: {
|
|
14
|
+
message: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
};
|
|
6
17
|
}, {
|
|
7
18
|
readonly method: "post";
|
|
8
19
|
readonly path: "/util/file/delete";
|
|
9
20
|
readonly role: "postUtilFileDelete";
|
|
10
21
|
readonly name: "Delete files";
|
|
22
|
+
readonly response_200: {
|
|
23
|
+
message?: string;
|
|
24
|
+
};
|
|
25
|
+
readonly response_400: {
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
readonly response_500: {
|
|
29
|
+
message: string;
|
|
30
|
+
error?: string;
|
|
31
|
+
};
|
|
11
32
|
}, {
|
|
12
33
|
readonly method: "post";
|
|
13
34
|
readonly path: "/util/pdf/create";
|
|
14
35
|
readonly role: "postUtilPdfCreate";
|
|
15
36
|
readonly name: "Create PDF";
|
|
37
|
+
readonly response_201: {
|
|
38
|
+
message: string;
|
|
39
|
+
fileUrl: string;
|
|
40
|
+
};
|
|
41
|
+
readonly response_400: {
|
|
42
|
+
message: string;
|
|
43
|
+
};
|
|
44
|
+
readonly response_500: {
|
|
45
|
+
message: string;
|
|
46
|
+
error?: string;
|
|
47
|
+
};
|
|
16
48
|
}];
|
|
@@ -7,17 +7,26 @@ exports.fileRoleDefs = [
|
|
|
7
7
|
path: '/util/file/upload/:id',
|
|
8
8
|
role: 'postUtilFileUploadById',
|
|
9
9
|
name: 'Upload file by ID',
|
|
10
|
+
response_200: {},
|
|
11
|
+
response_400: {},
|
|
12
|
+
response_500: {},
|
|
10
13
|
},
|
|
11
14
|
{
|
|
12
15
|
method: 'post',
|
|
13
16
|
path: '/util/file/delete',
|
|
14
17
|
role: 'postUtilFileDelete',
|
|
15
18
|
name: 'Delete files',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_400: {},
|
|
21
|
+
response_500: {},
|
|
16
22
|
},
|
|
17
23
|
{
|
|
18
24
|
method: 'post',
|
|
19
25
|
path: '/util/pdf/create',
|
|
20
26
|
role: 'postUtilPdfCreate',
|
|
21
27
|
name: 'Create PDF',
|
|
28
|
+
response_201: {},
|
|
29
|
+
response_400: {},
|
|
30
|
+
response_500: {},
|
|
22
31
|
},
|
|
23
32
|
];
|
|
@@ -1,26 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FixtureBase } from '../inputsDefault';
|
|
2
|
+
export declare const fixtureRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/fixture";
|
|
4
5
|
readonly role: "postFixture";
|
|
5
6
|
readonly name: "Create fixture";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
fixture: FixtureBase<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: "/fixture";
|
|
9
18
|
readonly role: "getFixtures";
|
|
10
19
|
readonly name: "Get fixtures";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
fixtures: FixtureBase<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: "/fixture/:id";
|
|
14
31
|
readonly role: "getFixtureById";
|
|
15
32
|
readonly name: "Get fixture";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
fixture: FixtureBase<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: "/fixture/:id";
|
|
19
43
|
readonly role: "putFixtureById";
|
|
20
44
|
readonly name: "Update fixture";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
fixture: FixtureBase<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: "/fixture/:id";
|
|
24
59
|
readonly role: "deleteFixtureById";
|
|
25
60
|
readonly name: "Delete fixture";
|
|
61
|
+
readonly response_200: {
|
|
62
|
+
fixture: FixtureBase<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.fixtureRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const fixtureRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/fixture',
|
|
9
|
+
role: 'postFixture',
|
|
10
|
+
name: 'Create fixture',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/fixture',
|
|
17
|
+
role: 'getFixtures',
|
|
18
|
+
name: 'Get fixtures',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/fixture/:id',
|
|
25
|
+
role: 'getFixtureById',
|
|
26
|
+
name: 'Get fixture',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_404: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'put',
|
|
32
|
+
path: '/fixture/:id',
|
|
33
|
+
role: 'putFixtureById',
|
|
34
|
+
name: 'Update fixture',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
response_500: {},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
method: 'delete',
|
|
41
|
+
path: '/fixture/:id',
|
|
42
|
+
role: 'deleteFixtureById',
|
|
43
|
+
name: 'Delete fixture',
|
|
44
|
+
response_200: {},
|
|
45
|
+
response_404: {},
|
|
46
|
+
response_500: {},
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
};
|
|
50
|
+
exports.fixtureRoleDefs = fixtureRoleDefs;
|
|
@@ -1,31 +1,84 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FlowBase } from '../inputsDefault';
|
|
2
|
+
export declare const flowFlowDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/flow";
|
|
4
5
|
readonly role: "postFlow";
|
|
5
6
|
readonly name: "Create flow";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
flow: FlowBase<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: "/flow";
|
|
9
18
|
readonly role: "getFlows";
|
|
10
19
|
readonly name: "Get flows";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
flows: FlowBase<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: "/flow/api";
|
|
14
31
|
readonly role: "getFlowApis";
|
|
15
32
|
readonly name: "Get APIs";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
apis: unknown;
|
|
35
|
+
};
|
|
36
|
+
readonly response_500: {
|
|
37
|
+
message: string;
|
|
38
|
+
error: string;
|
|
39
|
+
};
|
|
16
40
|
}, {
|
|
17
41
|
readonly method: "get";
|
|
18
42
|
readonly path: "/flow/:id";
|
|
19
43
|
readonly role: "getFlowById";
|
|
20
44
|
readonly name: "Get flow";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
flow: FlowBase<TId, TDate> | null;
|
|
47
|
+
message: string;
|
|
48
|
+
};
|
|
49
|
+
readonly response_404: {
|
|
50
|
+
message: string;
|
|
51
|
+
};
|
|
21
52
|
}, {
|
|
22
53
|
readonly method: "put";
|
|
23
54
|
readonly path: "/flow/:id";
|
|
24
55
|
readonly role: "putFlowById";
|
|
25
56
|
readonly name: "Update flow";
|
|
57
|
+
readonly response_200: {
|
|
58
|
+
flow: FlowBase<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
|
}, {
|
|
27
69
|
readonly method: "delete";
|
|
28
70
|
readonly path: "/flow/:id";
|
|
29
71
|
readonly role: "deleteFlowById";
|
|
30
72
|
readonly name: "Delete flow";
|
|
73
|
+
readonly response_200: {
|
|
74
|
+
flow: FlowBase<TId, TDate>;
|
|
75
|
+
message: string;
|
|
76
|
+
};
|
|
77
|
+
readonly response_404: {
|
|
78
|
+
message: string;
|
|
79
|
+
};
|
|
80
|
+
readonly response_500: {
|
|
81
|
+
message: string;
|
|
82
|
+
error: string;
|
|
83
|
+
};
|
|
31
84
|
}];
|
|
@@ -1,11 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.flowFlowDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
const flowFlowDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/flow',
|
|
9
|
+
role: 'postFlow',
|
|
10
|
+
name: 'Create flow',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/flow',
|
|
17
|
+
role: 'getFlows',
|
|
18
|
+
name: 'Get flows',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/flow/api',
|
|
25
|
+
role: 'getFlowApis',
|
|
26
|
+
name: 'Get APIs',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_500: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'get',
|
|
32
|
+
path: '/flow/:id',
|
|
33
|
+
role: 'getFlowById',
|
|
34
|
+
name: 'Get flow',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
method: 'put',
|
|
40
|
+
path: '/flow/:id',
|
|
41
|
+
role: 'putFlowById',
|
|
42
|
+
name: 'Update flow',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_404: {},
|
|
45
|
+
response_500: {},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
method: 'delete',
|
|
49
|
+
path: '/flow/:id',
|
|
50
|
+
role: 'deleteFlowById',
|
|
51
|
+
name: 'Delete flow',
|
|
52
|
+
response_200: {},
|
|
53
|
+
response_404: {},
|
|
54
|
+
response_500: {},
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
};
|
|
58
|
+
exports.flowFlowDefs = flowFlowDefs;
|
|
@@ -1,26 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
import type { GroupBase } from '../inputsDefault';
|
|
2
|
+
export declare const groupRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/group";
|
|
4
5
|
readonly role: "postGroup";
|
|
5
6
|
readonly name: "Create group";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
group: GroupBase<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: "/group";
|
|
9
18
|
readonly role: "getGroups";
|
|
10
19
|
readonly name: "Get groups";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
groups: GroupBase<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: "/group/:id";
|
|
14
31
|
readonly role: "getGroupById";
|
|
15
32
|
readonly name: "Get group";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
group: GroupBase<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: "/group/:id";
|
|
19
43
|
readonly role: "putGroupById";
|
|
20
44
|
readonly name: "Update group";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
group: GroupBase<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: "/group/:id";
|
|
24
59
|
readonly role: "deleteGroupById";
|
|
25
60
|
readonly name: "Delete group";
|
|
61
|
+
readonly response_200: {
|
|
62
|
+
group: GroupBase<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.groupRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const groupRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/group',
|
|
9
|
+
role: 'postGroup',
|
|
10
|
+
name: 'Create group',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/group',
|
|
17
|
+
role: 'getGroups',
|
|
18
|
+
name: 'Get groups',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/group/:id',
|
|
25
|
+
role: 'getGroupById',
|
|
26
|
+
name: 'Get group',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_404: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'put',
|
|
32
|
+
path: '/group/:id',
|
|
33
|
+
role: 'putGroupById',
|
|
34
|
+
name: 'Update group',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
response_500: {},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
method: 'delete',
|
|
41
|
+
path: '/group/:id',
|
|
42
|
+
role: 'deleteGroupById',
|
|
43
|
+
name: 'Delete group',
|
|
44
|
+
response_200: {},
|
|
45
|
+
response_404: {},
|
|
46
|
+
response_500: {},
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
};
|
|
50
|
+
exports.groupRoleDefs = groupRoleDefs;
|