@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,84 +1,87 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.campaignRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
4
|
+
const campaignRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
// POST /campaign – create
|
|
7
|
+
{
|
|
8
|
+
method: 'post',
|
|
9
|
+
path: '/campaign',
|
|
10
|
+
role: 'postCampaign',
|
|
11
|
+
name: 'Create campaign',
|
|
12
|
+
response_201: {},
|
|
13
|
+
response_500: {},
|
|
14
|
+
},
|
|
15
|
+
// POST /campaign/start/:id – start & schedule
|
|
16
|
+
{
|
|
17
|
+
method: 'post',
|
|
18
|
+
path: '/campaign/start/:id',
|
|
19
|
+
role: 'postCampaignStartById',
|
|
20
|
+
name: 'Start campaign by ID',
|
|
21
|
+
response_200: {},
|
|
22
|
+
response_400: {}, // invalid stage/time/type/schedule error
|
|
23
|
+
response_401: {}, // active limit exceeded
|
|
24
|
+
response_404: {}, // not found
|
|
25
|
+
response_500: {},
|
|
26
|
+
},
|
|
27
|
+
// POST /campaign/stop/:id – stop
|
|
28
|
+
{
|
|
29
|
+
method: 'post',
|
|
30
|
+
path: '/campaign/stop/:id',
|
|
31
|
+
role: 'postCampaignStopById',
|
|
32
|
+
name: 'Stop campaign by ID',
|
|
33
|
+
response_200: {},
|
|
34
|
+
response_404: {}, // not found
|
|
35
|
+
response_500: {},
|
|
36
|
+
},
|
|
37
|
+
// GET /campaign – list
|
|
38
|
+
{
|
|
39
|
+
method: 'get',
|
|
40
|
+
path: '/campaign',
|
|
41
|
+
role: 'getCampaigns',
|
|
42
|
+
name: 'Get campaigns',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_500: {},
|
|
45
|
+
},
|
|
46
|
+
// GET /campaign/insight/:id – insights
|
|
47
|
+
{
|
|
48
|
+
method: 'get',
|
|
49
|
+
path: '/campaign/insight/:id',
|
|
50
|
+
role: 'getCampaignInsightById',
|
|
51
|
+
name: 'Get campaign insight',
|
|
52
|
+
response_200: {},
|
|
53
|
+
response_400: {}, // "Campaign not found"
|
|
54
|
+
response_500: {}, // from insights or catch
|
|
55
|
+
},
|
|
56
|
+
// GET /campaign/:id – one
|
|
57
|
+
{
|
|
58
|
+
method: 'get',
|
|
59
|
+
path: '/campaign/:id',
|
|
60
|
+
role: 'getCampaignById',
|
|
61
|
+
name: 'Get campaign',
|
|
62
|
+
response_200: {},
|
|
63
|
+
response_404: {},
|
|
64
|
+
},
|
|
65
|
+
// PUT /campaign/:id – update
|
|
66
|
+
{
|
|
67
|
+
method: 'put',
|
|
68
|
+
path: '/campaign/:id',
|
|
69
|
+
role: 'putCampaignById',
|
|
70
|
+
name: 'Update campaign',
|
|
71
|
+
response_200: {},
|
|
72
|
+
response_404: {},
|
|
73
|
+
response_500: {},
|
|
74
|
+
},
|
|
75
|
+
// DELETE /campaign/:id – delete
|
|
76
|
+
{
|
|
77
|
+
method: 'delete',
|
|
78
|
+
path: '/campaign/:id',
|
|
79
|
+
role: 'deleteCampaignById',
|
|
80
|
+
name: 'Delete campaign',
|
|
81
|
+
response_200: {},
|
|
82
|
+
response_404: {},
|
|
83
|
+
response_500: {},
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
};
|
|
87
|
+
exports.campaignRoleDefs = campaignRoleDefs;
|
|
@@ -1,26 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CategoryBase } from '../inputsDefault';
|
|
2
|
+
export declare const categoryRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/category";
|
|
4
5
|
readonly role: "postCategory";
|
|
5
6
|
readonly name: "Create category";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
category: CategoryBase<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: "/category";
|
|
9
18
|
readonly role: "getCategories";
|
|
10
19
|
readonly name: "Get categories";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
categories: CategoryBase<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: "/category/:id";
|
|
14
31
|
readonly role: "getCategoryById";
|
|
15
32
|
readonly name: "Get category";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
category: CategoryBase<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: "/category/:id";
|
|
19
43
|
readonly role: "putCategoryById";
|
|
20
44
|
readonly name: "Update category";
|
|
45
|
+
readonly response_200: {
|
|
46
|
+
category: CategoryBase<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: "/category/:id";
|
|
24
59
|
readonly role: "deleteCategoryById";
|
|
25
60
|
readonly name: "Delete category";
|
|
61
|
+
readonly response_200: {
|
|
62
|
+
category: CategoryBase<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,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.categoryRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const categoryRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
// POST /category – create
|
|
7
|
+
{
|
|
8
|
+
method: 'post',
|
|
9
|
+
path: '/category',
|
|
10
|
+
role: 'postCategory',
|
|
11
|
+
name: 'Create category',
|
|
12
|
+
response_201: {},
|
|
13
|
+
response_500: {},
|
|
14
|
+
},
|
|
15
|
+
// GET /category – list
|
|
16
|
+
{
|
|
17
|
+
method: 'get',
|
|
18
|
+
path: '/category',
|
|
19
|
+
role: 'getCategories',
|
|
20
|
+
name: 'Get categories',
|
|
21
|
+
response_200: {},
|
|
22
|
+
response_500: {},
|
|
23
|
+
},
|
|
24
|
+
// GET /category/:id – get one
|
|
25
|
+
{
|
|
26
|
+
method: 'get',
|
|
27
|
+
path: '/category/:id',
|
|
28
|
+
role: 'getCategoryById',
|
|
29
|
+
name: 'Get category',
|
|
30
|
+
response_200: {},
|
|
31
|
+
response_404: {},
|
|
32
|
+
},
|
|
33
|
+
// PUT /category/:id – update
|
|
34
|
+
{
|
|
35
|
+
method: 'put',
|
|
36
|
+
path: '/category/:id',
|
|
37
|
+
role: 'putCategoryById',
|
|
38
|
+
name: 'Update category',
|
|
39
|
+
response_200: {},
|
|
40
|
+
response_404: {},
|
|
41
|
+
response_500: {},
|
|
42
|
+
},
|
|
43
|
+
// DELETE /category/:id – delete
|
|
44
|
+
{
|
|
45
|
+
method: 'delete',
|
|
46
|
+
path: '/category/:id',
|
|
47
|
+
role: 'deleteCategoryById',
|
|
48
|
+
name: 'Delete category',
|
|
49
|
+
response_200: {},
|
|
50
|
+
response_404: {},
|
|
51
|
+
response_500: {},
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
};
|
|
55
|
+
exports.categoryRoleDefs = categoryRoleDefs;
|
|
@@ -3,9 +3,25 @@ export declare const checkoutRoleDefs: readonly [{
|
|
|
3
3
|
readonly path: "/checkout/create-session";
|
|
4
4
|
readonly role: "postUtilCreateCheckoutSession";
|
|
5
5
|
readonly name: "Create checkout session";
|
|
6
|
+
readonly response_200: {
|
|
7
|
+
checkoutUrl: string;
|
|
8
|
+
data: string;
|
|
9
|
+
signature: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_201: {
|
|
12
|
+
message: string;
|
|
13
|
+
redirectUri: string;
|
|
14
|
+
};
|
|
15
|
+
readonly response_400: {
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
6
18
|
}, {
|
|
7
19
|
readonly method: "post";
|
|
8
20
|
readonly path: "/checkout/result";
|
|
9
21
|
readonly role: "postCheckoutResult";
|
|
10
22
|
readonly name: "Handle checkout";
|
|
23
|
+
readonly response_200: {
|
|
24
|
+
message: string;
|
|
25
|
+
redirectPath?: string;
|
|
26
|
+
};
|
|
11
27
|
}];
|
|
@@ -7,11 +7,15 @@ exports.checkoutRoleDefs = [
|
|
|
7
7
|
path: '/checkout/create-session',
|
|
8
8
|
role: 'postUtilCreateCheckoutSession',
|
|
9
9
|
name: 'Create checkout session',
|
|
10
|
+
response_200: {},
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_400: {},
|
|
10
13
|
},
|
|
11
14
|
{
|
|
12
15
|
method: 'post',
|
|
13
16
|
path: '/checkout/result',
|
|
14
17
|
role: 'postCheckoutResult',
|
|
15
18
|
name: 'Handle checkout',
|
|
19
|
+
response_200: {},
|
|
16
20
|
},
|
|
17
21
|
];
|
|
@@ -3,14 +3,40 @@ export declare const emailRoleDefs: readonly [{
|
|
|
3
3
|
readonly path: "/email";
|
|
4
4
|
readonly role: "postEmail";
|
|
5
5
|
readonly name: "Send email confirmation";
|
|
6
|
+
readonly response_200: {
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
readonly response_400: {
|
|
10
|
+
message: string;
|
|
11
|
+
};
|
|
12
|
+
readonly response_500: {
|
|
13
|
+
message: string;
|
|
14
|
+
error: string;
|
|
15
|
+
};
|
|
6
16
|
}, {
|
|
7
17
|
readonly method: "post";
|
|
8
18
|
readonly path: "/email/push";
|
|
9
19
|
readonly role: "postEmailPush";
|
|
10
20
|
readonly name: "Send templated email";
|
|
21
|
+
readonly response_200: {
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
readonly response_404: {
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
readonly response_500: {
|
|
28
|
+
message: string;
|
|
29
|
+
error: string;
|
|
30
|
+
};
|
|
11
31
|
}, {
|
|
12
32
|
readonly method: "post";
|
|
13
33
|
readonly path: "/verify-recaptcha";
|
|
14
34
|
readonly role: "postVerifyRecaptcha";
|
|
15
35
|
readonly name: "Verify reCAPTCHA";
|
|
36
|
+
readonly response_200: {
|
|
37
|
+
message: string;
|
|
38
|
+
};
|
|
39
|
+
readonly response_400: {
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
16
42
|
}];
|
|
@@ -2,7 +2,30 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.emailRoleDefs = void 0;
|
|
4
4
|
exports.emailRoleDefs = [
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
{
|
|
6
|
+
method: 'post',
|
|
7
|
+
path: '/email',
|
|
8
|
+
role: 'postEmail',
|
|
9
|
+
name: 'Send email confirmation',
|
|
10
|
+
response_200: {},
|
|
11
|
+
response_400: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'post',
|
|
16
|
+
path: '/email/push',
|
|
17
|
+
role: 'postEmailPush',
|
|
18
|
+
name: 'Send templated email',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_404: {},
|
|
21
|
+
response_500: {},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
method: 'post',
|
|
25
|
+
path: '/verify-recaptcha',
|
|
26
|
+
role: 'postVerifyRecaptcha',
|
|
27
|
+
name: 'Verify reCAPTCHA',
|
|
28
|
+
response_200: {},
|
|
29
|
+
response_400: {},
|
|
30
|
+
},
|
|
8
31
|
];
|
|
@@ -1,46 +1,130 @@
|
|
|
1
|
-
|
|
1
|
+
import type { EventBase } from '../inputsDefault';
|
|
2
|
+
export declare const eventRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/event/book";
|
|
4
5
|
readonly role: "postEventBook";
|
|
5
6
|
readonly name: "Book event";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
url: string;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_400: {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
readonly response_500: {
|
|
15
|
+
message: string;
|
|
16
|
+
error: string;
|
|
17
|
+
};
|
|
6
18
|
}, {
|
|
7
19
|
readonly method: "post";
|
|
8
20
|
readonly path: "/event";
|
|
9
21
|
readonly role: "postEvent";
|
|
10
22
|
readonly name: "Create event";
|
|
23
|
+
readonly response_201: {
|
|
24
|
+
event: EventBase<TId, TDate>;
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
readonly response_500: {
|
|
28
|
+
message: string;
|
|
29
|
+
error: string;
|
|
30
|
+
};
|
|
11
31
|
}, {
|
|
12
32
|
readonly method: "post";
|
|
13
33
|
readonly path: "/events";
|
|
14
34
|
readonly role: "postEvents";
|
|
15
35
|
readonly name: "Create many events";
|
|
36
|
+
readonly response_201: {
|
|
37
|
+
events: EventBase<TId, TDate>[];
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
40
|
+
readonly response_500: {
|
|
41
|
+
message: string;
|
|
42
|
+
error: string;
|
|
43
|
+
};
|
|
16
44
|
}, {
|
|
17
45
|
readonly method: "post";
|
|
18
46
|
readonly path: "/event/book/cancel";
|
|
19
47
|
readonly role: "postEventBookCancel";
|
|
20
48
|
readonly name: "Request booking cancel";
|
|
49
|
+
readonly response_200: {
|
|
50
|
+
message: string;
|
|
51
|
+
event: EventBase<TId, TDate>;
|
|
52
|
+
};
|
|
53
|
+
readonly response_400: {
|
|
54
|
+
message: string;
|
|
55
|
+
};
|
|
56
|
+
readonly response_500: {
|
|
57
|
+
message: string;
|
|
58
|
+
error: string;
|
|
59
|
+
};
|
|
21
60
|
}, {
|
|
22
61
|
readonly method: "get";
|
|
23
62
|
readonly path: "/event";
|
|
24
63
|
readonly role: "getEvents";
|
|
25
64
|
readonly name: "Get events";
|
|
65
|
+
readonly response_200: {
|
|
66
|
+
events: EventBase<TId, TDate>[];
|
|
67
|
+
count: number;
|
|
68
|
+
};
|
|
69
|
+
readonly response_500: {
|
|
70
|
+
message: string;
|
|
71
|
+
error: string;
|
|
72
|
+
};
|
|
26
73
|
}, {
|
|
27
74
|
readonly method: "get";
|
|
28
75
|
readonly path: "/event/:id";
|
|
29
76
|
readonly role: "getEventById";
|
|
30
77
|
readonly name: "Get event";
|
|
78
|
+
readonly response_200: {
|
|
79
|
+
event: EventBase<TId, TDate> | null;
|
|
80
|
+
message: string;
|
|
81
|
+
};
|
|
82
|
+
readonly response_404: {
|
|
83
|
+
message: string;
|
|
84
|
+
};
|
|
31
85
|
}, {
|
|
32
86
|
readonly method: "put";
|
|
33
87
|
readonly path: "/event/:id";
|
|
34
88
|
readonly role: "putEventById";
|
|
35
89
|
readonly name: "Update event";
|
|
90
|
+
readonly response_200: {
|
|
91
|
+
event: EventBase<TId, TDate>;
|
|
92
|
+
message: string;
|
|
93
|
+
};
|
|
94
|
+
readonly response_404: {
|
|
95
|
+
message: string;
|
|
96
|
+
};
|
|
97
|
+
readonly response_500: {
|
|
98
|
+
message: string;
|
|
99
|
+
error: string;
|
|
100
|
+
};
|
|
36
101
|
}, {
|
|
37
102
|
readonly method: "delete";
|
|
38
103
|
readonly path: "/events";
|
|
39
104
|
readonly role: "deleteEvents";
|
|
40
105
|
readonly name: "Delete many events";
|
|
106
|
+
readonly response_200: {
|
|
107
|
+
deletedCount: number;
|
|
108
|
+
message: string;
|
|
109
|
+
};
|
|
110
|
+
readonly response_500: {
|
|
111
|
+
message: string;
|
|
112
|
+
error: string;
|
|
113
|
+
};
|
|
41
114
|
}, {
|
|
42
115
|
readonly method: "delete";
|
|
43
116
|
readonly path: "/event/:id";
|
|
44
117
|
readonly role: "deleteEventById";
|
|
45
118
|
readonly name: "Delete event";
|
|
119
|
+
readonly response_200: {
|
|
120
|
+
event: EventBase<TId, TDate>;
|
|
121
|
+
message: string;
|
|
122
|
+
};
|
|
123
|
+
readonly response_404: {
|
|
124
|
+
message: string;
|
|
125
|
+
};
|
|
126
|
+
readonly response_500: {
|
|
127
|
+
message: string;
|
|
128
|
+
error: string;
|
|
129
|
+
};
|
|
46
130
|
}];
|
|
@@ -1,14 +1,84 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.eventRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
const eventRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/event/book',
|
|
9
|
+
role: 'postEventBook',
|
|
10
|
+
name: 'Book event',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_400: {},
|
|
13
|
+
response_500: {},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
method: 'post',
|
|
17
|
+
path: '/event',
|
|
18
|
+
role: 'postEvent',
|
|
19
|
+
name: 'Create event',
|
|
20
|
+
response_201: {},
|
|
21
|
+
response_500: {},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
method: 'post',
|
|
25
|
+
path: '/events',
|
|
26
|
+
role: 'postEvents',
|
|
27
|
+
name: 'Create many events',
|
|
28
|
+
response_201: {},
|
|
29
|
+
response_500: {},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
method: 'post',
|
|
33
|
+
path: '/event/book/cancel',
|
|
34
|
+
role: 'postEventBookCancel',
|
|
35
|
+
name: 'Request booking cancel',
|
|
36
|
+
response_200: {},
|
|
37
|
+
response_400: {},
|
|
38
|
+
response_500: {},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
method: 'get',
|
|
42
|
+
path: '/event',
|
|
43
|
+
role: 'getEvents',
|
|
44
|
+
name: 'Get events',
|
|
45
|
+
response_200: {},
|
|
46
|
+
response_500: {},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
method: 'get',
|
|
50
|
+
path: '/event/:id',
|
|
51
|
+
role: 'getEventById',
|
|
52
|
+
name: 'Get event',
|
|
53
|
+
response_200: {},
|
|
54
|
+
response_404: {},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
method: 'put',
|
|
58
|
+
path: '/event/:id',
|
|
59
|
+
role: 'putEventById',
|
|
60
|
+
name: 'Update event',
|
|
61
|
+
response_200: {},
|
|
62
|
+
response_404: {},
|
|
63
|
+
response_500: {},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
method: 'delete',
|
|
67
|
+
path: '/events',
|
|
68
|
+
role: 'deleteEvents',
|
|
69
|
+
name: 'Delete many events',
|
|
70
|
+
response_200: {},
|
|
71
|
+
response_500: {},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
method: 'delete',
|
|
75
|
+
path: '/event/:id',
|
|
76
|
+
role: 'deleteEventById',
|
|
77
|
+
name: 'Delete event',
|
|
78
|
+
response_200: {},
|
|
79
|
+
response_404: {},
|
|
80
|
+
response_500: {},
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
};
|
|
84
|
+
exports.eventRoleDefs = eventRoleDefs;
|