@ibiliaze/global-vars 1.132.0 → 1.134.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/flows.js +0 -3
- package/dist/index.d.ts +1 -0
- package/dist/test.js +2 -2
- package/dist/ticketops/roles/account.d.ts +99 -0
- package/dist/ticketops/roles/account.js +87 -0
- package/dist/ticketops/roles/admin.d.ts +66 -0
- package/dist/ticketops/roles/admin.js +28 -0
- package/dist/ticketops/roles/ai.d.ts +6 -0
- package/dist/ticketops/roles/ai.js +11 -0
- package/dist/ticketops/roles/blog.d.ts +26 -0
- package/dist/ticketops/roles/blog.js +10 -0
- package/dist/ticketops/roles/campaign.d.ts +41 -0
- package/dist/ticketops/roles/campaign.js +13 -0
- package/dist/ticketops/roles/category.d.ts +26 -0
- package/dist/ticketops/roles/category.js +10 -0
- package/dist/ticketops/roles/checkout.d.ts +11 -0
- package/dist/ticketops/roles/checkout.js +17 -0
- package/dist/ticketops/roles/email.d.ts +16 -0
- package/dist/ticketops/roles/email.js +8 -0
- package/dist/ticketops/roles/event.d.ts +46 -0
- package/dist/ticketops/roles/event.js +14 -0
- package/dist/ticketops/roles/fail.d.ts +21 -0
- package/dist/ticketops/roles/fail.js +9 -0
- package/dist/ticketops/roles/file.d.ts +16 -0
- package/dist/ticketops/roles/file.js +23 -0
- package/dist/ticketops/roles/fixture.d.ts +26 -0
- package/dist/ticketops/roles/fixture.js +10 -0
- package/dist/ticketops/roles/flow.d.ts +31 -0
- package/dist/ticketops/roles/flow.js +11 -0
- package/dist/ticketops/roles/google.d.ts +6 -0
- package/dist/ticketops/roles/google.js +11 -0
- package/dist/ticketops/roles/group.d.ts +26 -0
- package/dist/ticketops/roles/group.js +10 -0
- package/dist/ticketops/roles/info.d.ts +6 -0
- package/dist/ticketops/roles/info.js +11 -0
- package/dist/ticketops/roles/job.d.ts +41 -0
- package/dist/ticketops/roles/job.js +13 -0
- package/dist/ticketops/roles/log.d.ts +16 -0
- package/dist/ticketops/roles/log.js +8 -0
- package/dist/ticketops/roles/notification.d.ts +31 -0
- package/dist/ticketops/roles/notification.js +11 -0
- package/dist/ticketops/roles/page.d.ts +31 -0
- package/dist/ticketops/roles/page.js +11 -0
- package/dist/ticketops/roles/product.d.ts +26 -0
- package/dist/ticketops/roles/product.js +10 -0
- package/dist/ticketops/roles/prospect.d.ts +46 -0
- package/dist/ticketops/roles/prospect.js +14 -0
- package/dist/ticketops/roles/quota.d.ts +6 -0
- package/dist/ticketops/roles/quota.js +11 -0
- package/dist/ticketops/roles/report.d.ts +26 -0
- package/dist/ticketops/roles/report.js +10 -0
- package/dist/ticketops/roles/review.d.ts +36 -0
- package/dist/ticketops/roles/review.js +12 -0
- package/dist/ticketops/roles/role.d.ts +26 -0
- package/dist/ticketops/roles/role.js +10 -0
- package/dist/ticketops/roles/sale.d.ts +36 -0
- package/dist/ticketops/roles/sale.js +17 -0
- package/dist/ticketops/roles/schema.d.ts +6 -0
- package/dist/ticketops/roles/schema.js +11 -0
- package/dist/ticketops/roles/season.d.ts +26 -0
- package/dist/ticketops/roles/season.js +10 -0
- package/dist/ticketops/roles/seat.d.ts +66 -0
- package/dist/ticketops/roles/seat.js +43 -0
- package/dist/ticketops/roles/section.d.ts +26 -0
- package/dist/ticketops/roles/section.js +10 -0
- package/dist/ticketops/roles/staff.d.ts +61 -0
- package/dist/ticketops/roles/staff.js +17 -0
- package/dist/ticketops/roles/user.d.ts +66 -0
- package/dist/ticketops/roles/user.js +23 -0
- package/dist/ticketops/roles.d.ts +2067 -3
- package/dist/ticketops/roles.js +159 -111
- package/package.json +2 -2
package/dist/flows.js
CHANGED
|
@@ -101,7 +101,6 @@ function makeSaleLogic() {
|
|
|
101
101
|
name: sectionCat?.name ?? '',
|
|
102
102
|
color: sectionCat?.color || 'blue.4',
|
|
103
103
|
disabled: sectionCat?.disabled ?? false,
|
|
104
|
-
seasonal: sectionCat?.seasonal ?? false,
|
|
105
104
|
price: sectionCat?.price ?? 0,
|
|
106
105
|
flows: sectionCat?.flows ?? [],
|
|
107
106
|
sections: sectionCat?.sections ?? [],
|
|
@@ -119,7 +118,6 @@ function makeSaleLogic() {
|
|
|
119
118
|
name: occupanceCat?.name ?? '',
|
|
120
119
|
color: occupanceCat?.color || 'blue.4',
|
|
121
120
|
disabled: occupanceCat?.disabled ?? false,
|
|
122
|
-
seasonal: occupanceCat?.seasonal ?? false,
|
|
123
121
|
price: occupanceCat?.price ?? 0,
|
|
124
122
|
flows: occupanceCat?.flows ?? [],
|
|
125
123
|
sections: occupanceCat?.sections ?? [],
|
|
@@ -138,7 +136,6 @@ function makeSaleLogic() {
|
|
|
138
136
|
name: category?.name ?? '',
|
|
139
137
|
color: category?.color || 'blue',
|
|
140
138
|
disabled: category?.disabled ?? false,
|
|
141
|
-
seasonal: category?.seasonal ?? false,
|
|
142
139
|
price: category?.price ?? 0,
|
|
143
140
|
flows: category?.flows ?? [],
|
|
144
141
|
sections: category?.sections ?? [],
|
package/dist/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export type { Cart, User, Globals, GlobalVars } from './globals';
|
|
|
5
5
|
export type { Checkout, Epoint, EpointLang, Local, LocalItem } from './checkout';
|
|
6
6
|
export type * from './ticketops/inputsDefault';
|
|
7
7
|
export type * from './ticketops/pages';
|
|
8
|
+
export type * from './ticketops/roles';
|
package/dist/test.js
CHANGED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { AccountBase } from '../inputsDefault';
|
|
2
|
+
export declare const accountRoleDefs: <TId, TDate>() => readonly [{
|
|
3
|
+
readonly method: "post";
|
|
4
|
+
readonly path: "/admin";
|
|
5
|
+
readonly role: "postAccount";
|
|
6
|
+
readonly name: "Create account";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
account: AccountBase<TId, TDate>;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
readonly response_500: {
|
|
12
|
+
message: string;
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
readonly method: "get";
|
|
17
|
+
readonly path: "/admin";
|
|
18
|
+
readonly role: "getAccounts";
|
|
19
|
+
readonly name: "Get accounts";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
accounts: AccountBase<TId, TDate>[];
|
|
22
|
+
count: number;
|
|
23
|
+
};
|
|
24
|
+
readonly response_500: {
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
readonly method: "get";
|
|
30
|
+
readonly path: "/admin/:id";
|
|
31
|
+
readonly role: "getAccountById";
|
|
32
|
+
readonly name: "Get account";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
account: AccountBase<TId, TDate> | null;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
37
|
+
readonly response_404: {
|
|
38
|
+
message: string;
|
|
39
|
+
error: string;
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
readonly method: "get";
|
|
43
|
+
readonly path: "/admin/google";
|
|
44
|
+
readonly role: "getAccountGoogle";
|
|
45
|
+
readonly name: "Get google account";
|
|
46
|
+
readonly response_302: Record<string, never>;
|
|
47
|
+
}, {
|
|
48
|
+
readonly method: "get";
|
|
49
|
+
readonly path: "/admin/google/callback";
|
|
50
|
+
readonly role: "getAccountGoogleCallback";
|
|
51
|
+
readonly name: "Get Google callback";
|
|
52
|
+
readonly response_302: Record<string, never>;
|
|
53
|
+
}, {
|
|
54
|
+
readonly method: "get";
|
|
55
|
+
readonly path: "/admin/linkedin";
|
|
56
|
+
readonly role: "getAccountLinkedin";
|
|
57
|
+
readonly name: "Get linkedin account";
|
|
58
|
+
readonly response_302: Record<string, never>;
|
|
59
|
+
}, {
|
|
60
|
+
readonly method: "get";
|
|
61
|
+
readonly path: "/admin/linkedin/callback";
|
|
62
|
+
readonly role: "getAccountLinkedInCallback";
|
|
63
|
+
readonly name: "Get LinkedIn callback";
|
|
64
|
+
readonly response_302: Record<string, never>;
|
|
65
|
+
}, {
|
|
66
|
+
readonly method: "put";
|
|
67
|
+
readonly path: "/admin/:id";
|
|
68
|
+
readonly role: "putAccountById";
|
|
69
|
+
readonly name: "Update account";
|
|
70
|
+
readonly response_404: {
|
|
71
|
+
account: AccountBase<TId, TDate> | null;
|
|
72
|
+
message: string;
|
|
73
|
+
};
|
|
74
|
+
readonly response_200: {
|
|
75
|
+
account: AccountBase<TId, TDate>;
|
|
76
|
+
message: string;
|
|
77
|
+
};
|
|
78
|
+
readonly response_500: {
|
|
79
|
+
message: string;
|
|
80
|
+
error: string;
|
|
81
|
+
};
|
|
82
|
+
}, {
|
|
83
|
+
readonly method: "delete";
|
|
84
|
+
readonly path: "/admin/:id";
|
|
85
|
+
readonly role: "deleteAccountById";
|
|
86
|
+
readonly name: "Delete account";
|
|
87
|
+
readonly response_404: {
|
|
88
|
+
account: AccountBase<TId, TDate> | null;
|
|
89
|
+
message: string;
|
|
90
|
+
};
|
|
91
|
+
readonly response_200: {
|
|
92
|
+
account: AccountBase<TId, TDate>;
|
|
93
|
+
message: string;
|
|
94
|
+
};
|
|
95
|
+
readonly response_500: {
|
|
96
|
+
message: string;
|
|
97
|
+
error: string;
|
|
98
|
+
};
|
|
99
|
+
}];
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accountRoleDefs = void 0;
|
|
4
|
+
const accountRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
// POST /admin (create)
|
|
7
|
+
{
|
|
8
|
+
method: 'post',
|
|
9
|
+
path: '/admin',
|
|
10
|
+
role: 'postAccount',
|
|
11
|
+
name: 'Create account',
|
|
12
|
+
response_201: {},
|
|
13
|
+
response_500: {},
|
|
14
|
+
},
|
|
15
|
+
// GET /admin (list)
|
|
16
|
+
{
|
|
17
|
+
method: 'get',
|
|
18
|
+
path: '/admin',
|
|
19
|
+
role: 'getAccounts',
|
|
20
|
+
name: 'Get accounts',
|
|
21
|
+
response_200: {},
|
|
22
|
+
response_500: {},
|
|
23
|
+
},
|
|
24
|
+
// GET /admin/:id (get by id)
|
|
25
|
+
{
|
|
26
|
+
method: 'get',
|
|
27
|
+
path: '/admin/:id',
|
|
28
|
+
role: 'getAccountById',
|
|
29
|
+
name: 'Get account',
|
|
30
|
+
response_200: {},
|
|
31
|
+
response_404: {},
|
|
32
|
+
},
|
|
33
|
+
// GET /admin/google (OAuth redirect – no JSON body)
|
|
34
|
+
{
|
|
35
|
+
method: 'get',
|
|
36
|
+
path: '/admin/google',
|
|
37
|
+
role: 'getAccountGoogle',
|
|
38
|
+
name: 'Get google account',
|
|
39
|
+
response_302: {},
|
|
40
|
+
},
|
|
41
|
+
// GET /admin/google/callback (redirects to frontend)
|
|
42
|
+
{
|
|
43
|
+
method: 'get',
|
|
44
|
+
path: '/admin/google/callback',
|
|
45
|
+
role: 'getAccountGoogleCallback',
|
|
46
|
+
name: 'Get Google callback',
|
|
47
|
+
response_302: {},
|
|
48
|
+
},
|
|
49
|
+
// GET /admin/linkedin (OAuth redirect – no JSON body)
|
|
50
|
+
{
|
|
51
|
+
method: 'get',
|
|
52
|
+
path: '/admin/linkedin',
|
|
53
|
+
role: 'getAccountLinkedin',
|
|
54
|
+
name: 'Get linkedin account',
|
|
55
|
+
response_302: {},
|
|
56
|
+
},
|
|
57
|
+
// GET /admin/linkedin/callback (redirects to frontend)
|
|
58
|
+
{
|
|
59
|
+
method: 'get',
|
|
60
|
+
path: '/admin/linkedin/callback',
|
|
61
|
+
role: 'getAccountLinkedInCallback',
|
|
62
|
+
name: 'Get LinkedIn callback',
|
|
63
|
+
response_302: {},
|
|
64
|
+
},
|
|
65
|
+
// PUT /admin/:id (update)
|
|
66
|
+
{
|
|
67
|
+
method: 'put',
|
|
68
|
+
path: '/admin/:id',
|
|
69
|
+
role: 'putAccountById',
|
|
70
|
+
name: 'Update account',
|
|
71
|
+
response_404: {},
|
|
72
|
+
response_200: {},
|
|
73
|
+
response_500: {},
|
|
74
|
+
},
|
|
75
|
+
// DELETE /admin/:id (delete)
|
|
76
|
+
{
|
|
77
|
+
method: 'delete',
|
|
78
|
+
path: '/admin/:id',
|
|
79
|
+
role: 'deleteAccountById',
|
|
80
|
+
name: 'Delete account',
|
|
81
|
+
response_404: {},
|
|
82
|
+
response_200: {},
|
|
83
|
+
response_500: {},
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
};
|
|
87
|
+
exports.accountRoleDefs = accountRoleDefs;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const adminRoleDefs: readonly [{
|
|
2
|
+
readonly method: "post";
|
|
3
|
+
readonly path: "/admin";
|
|
4
|
+
readonly role: "postAdminRegister";
|
|
5
|
+
readonly name: "Register admin";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "post";
|
|
8
|
+
readonly path: "/admin/token";
|
|
9
|
+
readonly role: "postAdminToken";
|
|
10
|
+
readonly name: "Login admin";
|
|
11
|
+
}, {
|
|
12
|
+
readonly method: "post";
|
|
13
|
+
readonly path: "/admin/google/backup";
|
|
14
|
+
readonly role: "postAdminGoogleBackup";
|
|
15
|
+
readonly name: "Google backup";
|
|
16
|
+
}, {
|
|
17
|
+
readonly method: "post";
|
|
18
|
+
readonly path: "/admin/google/backup/restore";
|
|
19
|
+
readonly role: "postAdminGoogleBackupRestore";
|
|
20
|
+
readonly name: "Restore Google backup";
|
|
21
|
+
}, {
|
|
22
|
+
readonly method: "post";
|
|
23
|
+
readonly path: "/admin/logout";
|
|
24
|
+
readonly role: "postAdminLogout";
|
|
25
|
+
readonly name: "Logout admin";
|
|
26
|
+
}, {
|
|
27
|
+
readonly method: "post";
|
|
28
|
+
readonly path: "/admin/logout/all";
|
|
29
|
+
readonly role: "postAdminLogoutAll";
|
|
30
|
+
readonly name: "Logout all sessions";
|
|
31
|
+
}, {
|
|
32
|
+
readonly method: "post";
|
|
33
|
+
readonly path: "/admin/logout/:id";
|
|
34
|
+
readonly role: "postAdminLogoutBySessionId";
|
|
35
|
+
readonly name: "Logout session by ID";
|
|
36
|
+
}, {
|
|
37
|
+
readonly method: "get";
|
|
38
|
+
readonly path: "/admin";
|
|
39
|
+
readonly role: "getAdmin";
|
|
40
|
+
readonly name: "Get admin";
|
|
41
|
+
}, {
|
|
42
|
+
readonly method: "get";
|
|
43
|
+
readonly path: "/admin/exists/:email";
|
|
44
|
+
readonly role: "getAdminExistsByEmail";
|
|
45
|
+
readonly name: "Check admin exists by email";
|
|
46
|
+
}, {
|
|
47
|
+
readonly method: "get";
|
|
48
|
+
readonly path: "/admin/public";
|
|
49
|
+
readonly role: "getAdminPublic";
|
|
50
|
+
readonly name: "Get public admin";
|
|
51
|
+
}, {
|
|
52
|
+
readonly method: "put";
|
|
53
|
+
readonly path: "/admin";
|
|
54
|
+
readonly role: "putAdmin";
|
|
55
|
+
readonly name: "Update admin";
|
|
56
|
+
}, {
|
|
57
|
+
readonly method: "put";
|
|
58
|
+
readonly path: "/admin/password";
|
|
59
|
+
readonly role: "putAdminPassword";
|
|
60
|
+
readonly name: "Update admin password";
|
|
61
|
+
}, {
|
|
62
|
+
readonly method: "delete";
|
|
63
|
+
readonly path: "/admin";
|
|
64
|
+
readonly role: "deleteAdmin";
|
|
65
|
+
readonly name: "Delete admin";
|
|
66
|
+
}];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.adminRoleDefs = void 0;
|
|
4
|
+
exports.adminRoleDefs = [
|
|
5
|
+
{ method: 'post', path: '/admin', role: 'postAdminRegister', name: 'Register admin' },
|
|
6
|
+
{ method: 'post', path: '/admin/token', role: 'postAdminToken', name: 'Login admin' },
|
|
7
|
+
{ method: 'post', path: '/admin/google/backup', role: 'postAdminGoogleBackup', name: 'Google backup' },
|
|
8
|
+
{
|
|
9
|
+
method: 'post',
|
|
10
|
+
path: '/admin/google/backup/restore',
|
|
11
|
+
role: 'postAdminGoogleBackupRestore',
|
|
12
|
+
name: 'Restore Google backup',
|
|
13
|
+
},
|
|
14
|
+
{ method: 'post', path: '/admin/logout', role: 'postAdminLogout', name: 'Logout admin' },
|
|
15
|
+
{ method: 'post', path: '/admin/logout/all', role: 'postAdminLogoutAll', name: 'Logout all sessions' },
|
|
16
|
+
{ method: 'post', path: '/admin/logout/:id', role: 'postAdminLogoutBySessionId', name: 'Logout session by ID' },
|
|
17
|
+
{ method: 'get', path: '/admin', role: 'getAdmin', name: 'Get admin' },
|
|
18
|
+
{
|
|
19
|
+
method: 'get',
|
|
20
|
+
path: '/admin/exists/:email',
|
|
21
|
+
role: 'getAdminExistsByEmail',
|
|
22
|
+
name: 'Check admin exists by email',
|
|
23
|
+
},
|
|
24
|
+
{ method: 'get', path: '/admin/public', role: 'getAdminPublic', name: 'Get public admin' },
|
|
25
|
+
{ method: 'put', path: '/admin', role: 'putAdmin', name: 'Update admin' },
|
|
26
|
+
{ method: 'put', path: '/admin/password', role: 'putAdminPassword', name: 'Update admin password' },
|
|
27
|
+
{ method: 'delete', path: '/admin', role: 'deleteAdmin', name: 'Delete admin' },
|
|
28
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const blogRoleDefs: readonly [{
|
|
2
|
+
readonly method: "post";
|
|
3
|
+
readonly path: "/blog";
|
|
4
|
+
readonly role: "postBlog";
|
|
5
|
+
readonly name: "Create blog";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "get";
|
|
8
|
+
readonly path: "/blog";
|
|
9
|
+
readonly role: "getBlogs";
|
|
10
|
+
readonly name: "Get blogs";
|
|
11
|
+
}, {
|
|
12
|
+
readonly method: "get";
|
|
13
|
+
readonly path: "/blog/:id";
|
|
14
|
+
readonly role: "getBlogById";
|
|
15
|
+
readonly name: "Get blog";
|
|
16
|
+
}, {
|
|
17
|
+
readonly method: "put";
|
|
18
|
+
readonly path: "/blog/:id";
|
|
19
|
+
readonly role: "putBlogById";
|
|
20
|
+
readonly name: "Update blog";
|
|
21
|
+
}, {
|
|
22
|
+
readonly method: "delete";
|
|
23
|
+
readonly path: "/blog/:id";
|
|
24
|
+
readonly role: "deleteBlogById";
|
|
25
|
+
readonly name: "Delete blog";
|
|
26
|
+
}];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.blogRoleDefs = void 0;
|
|
4
|
+
exports.blogRoleDefs = [
|
|
5
|
+
{ method: 'post', path: '/blog', role: 'postBlog', name: 'Create blog' },
|
|
6
|
+
{ method: 'get', path: '/blog', role: 'getBlogs', name: 'Get blogs' },
|
|
7
|
+
{ method: 'get', path: '/blog/:id', role: 'getBlogById', name: 'Get blog' },
|
|
8
|
+
{ method: 'put', path: '/blog/:id', role: 'putBlogById', name: 'Update blog' },
|
|
9
|
+
{ method: 'delete', path: '/blog/:id', role: 'deleteBlogById', name: 'Delete blog' },
|
|
10
|
+
];
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const campaignRoleDefs: readonly [{
|
|
2
|
+
readonly method: "post";
|
|
3
|
+
readonly path: "/campaign";
|
|
4
|
+
readonly role: "postCampaign";
|
|
5
|
+
readonly name: "Create campaign";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "post";
|
|
8
|
+
readonly path: "/campaign/start/:id";
|
|
9
|
+
readonly role: "postCampaignStartById";
|
|
10
|
+
readonly name: "Start campaign by ID";
|
|
11
|
+
}, {
|
|
12
|
+
readonly method: "post";
|
|
13
|
+
readonly path: "/campaign/stop/:id";
|
|
14
|
+
readonly role: "postCampaignStopById";
|
|
15
|
+
readonly name: "Stop campaign by ID";
|
|
16
|
+
}, {
|
|
17
|
+
readonly method: "get";
|
|
18
|
+
readonly path: "/campaign";
|
|
19
|
+
readonly role: "getCampaigns";
|
|
20
|
+
readonly name: "Get campaigns";
|
|
21
|
+
}, {
|
|
22
|
+
readonly method: "get";
|
|
23
|
+
readonly path: "/campaign/insight/:id";
|
|
24
|
+
readonly role: "getCampaignInsightById";
|
|
25
|
+
readonly name: "Get campaign insight";
|
|
26
|
+
}, {
|
|
27
|
+
readonly method: "get";
|
|
28
|
+
readonly path: "/campaign/:id";
|
|
29
|
+
readonly role: "getCampaignById";
|
|
30
|
+
readonly name: "Get campaign";
|
|
31
|
+
}, {
|
|
32
|
+
readonly method: "put";
|
|
33
|
+
readonly path: "/campaign/:id";
|
|
34
|
+
readonly role: "putCampaignById";
|
|
35
|
+
readonly name: "Update campaign";
|
|
36
|
+
}, {
|
|
37
|
+
readonly method: "delete";
|
|
38
|
+
readonly path: "/campaign/:id";
|
|
39
|
+
readonly role: "deleteCampaignById";
|
|
40
|
+
readonly name: "Delete campaign";
|
|
41
|
+
}];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.campaignRoleDefs = void 0;
|
|
4
|
+
exports.campaignRoleDefs = [
|
|
5
|
+
{ method: 'post', path: '/campaign', role: 'postCampaign', name: 'Create campaign' },
|
|
6
|
+
{ method: 'post', path: '/campaign/start/:id', role: 'postCampaignStartById', name: 'Start campaign by ID' },
|
|
7
|
+
{ method: 'post', path: '/campaign/stop/:id', role: 'postCampaignStopById', name: 'Stop campaign by ID' },
|
|
8
|
+
{ method: 'get', path: '/campaign', role: 'getCampaigns', name: 'Get campaigns' },
|
|
9
|
+
{ method: 'get', path: '/campaign/insight/:id', role: 'getCampaignInsightById', name: 'Get campaign insight' },
|
|
10
|
+
{ method: 'get', path: '/campaign/:id', role: 'getCampaignById', name: 'Get campaign' },
|
|
11
|
+
{ method: 'put', path: '/campaign/:id', role: 'putCampaignById', name: 'Update campaign' },
|
|
12
|
+
{ method: 'delete', path: '/campaign/:id', role: 'deleteCampaignById', name: 'Delete campaign' },
|
|
13
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const categoryRoleDefs: readonly [{
|
|
2
|
+
readonly method: "post";
|
|
3
|
+
readonly path: "/category";
|
|
4
|
+
readonly role: "postCategory";
|
|
5
|
+
readonly name: "Create category";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "get";
|
|
8
|
+
readonly path: "/category";
|
|
9
|
+
readonly role: "getCategories";
|
|
10
|
+
readonly name: "Get categories";
|
|
11
|
+
}, {
|
|
12
|
+
readonly method: "get";
|
|
13
|
+
readonly path: "/category/:id";
|
|
14
|
+
readonly role: "getCategoryById";
|
|
15
|
+
readonly name: "Get category";
|
|
16
|
+
}, {
|
|
17
|
+
readonly method: "put";
|
|
18
|
+
readonly path: "/category/:id";
|
|
19
|
+
readonly role: "putCategoryById";
|
|
20
|
+
readonly name: "Update category";
|
|
21
|
+
}, {
|
|
22
|
+
readonly method: "delete";
|
|
23
|
+
readonly path: "/category/:id";
|
|
24
|
+
readonly role: "deleteCategoryById";
|
|
25
|
+
readonly name: "Delete category";
|
|
26
|
+
}];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.categoryRoleDefs = void 0;
|
|
4
|
+
exports.categoryRoleDefs = [
|
|
5
|
+
{ method: 'post', path: '/category', role: 'postCategory', name: 'Create category' },
|
|
6
|
+
{ method: 'get', path: '/category', role: 'getCategories', name: 'Get categories' },
|
|
7
|
+
{ method: 'get', path: '/category/:id', role: 'getCategoryById', name: 'Get category' },
|
|
8
|
+
{ method: 'put', path: '/category/:id', role: 'putCategoryById', name: 'Update category' },
|
|
9
|
+
{ method: 'delete', path: '/category/:id', role: 'deleteCategoryById', name: 'Delete category' },
|
|
10
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const checkoutRoleDefs: readonly [{
|
|
2
|
+
readonly method: "post";
|
|
3
|
+
readonly path: "/checkout/create-session";
|
|
4
|
+
readonly role: "postUtilCreateCheckoutSession";
|
|
5
|
+
readonly name: "Create checkout session";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "post";
|
|
8
|
+
readonly path: "/checkout/result";
|
|
9
|
+
readonly role: "postCheckoutResult";
|
|
10
|
+
readonly name: "Handle checkout";
|
|
11
|
+
}];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkoutRoleDefs = void 0;
|
|
4
|
+
exports.checkoutRoleDefs = [
|
|
5
|
+
{
|
|
6
|
+
method: 'post',
|
|
7
|
+
path: '/checkout/create-session',
|
|
8
|
+
role: 'postUtilCreateCheckoutSession',
|
|
9
|
+
name: 'Create checkout session',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
method: 'post',
|
|
13
|
+
path: '/checkout/result',
|
|
14
|
+
role: 'postCheckoutResult',
|
|
15
|
+
name: 'Handle checkout',
|
|
16
|
+
},
|
|
17
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const emailRoleDefs: readonly [{
|
|
2
|
+
readonly method: "post";
|
|
3
|
+
readonly path: "/email";
|
|
4
|
+
readonly role: "postEmail";
|
|
5
|
+
readonly name: "Send email confirmation";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "post";
|
|
8
|
+
readonly path: "/email/push";
|
|
9
|
+
readonly role: "postEmailPush";
|
|
10
|
+
readonly name: "Send templated email";
|
|
11
|
+
}, {
|
|
12
|
+
readonly method: "post";
|
|
13
|
+
readonly path: "/verify-recaptcha";
|
|
14
|
+
readonly role: "postVerifyRecaptcha";
|
|
15
|
+
readonly name: "Verify reCAPTCHA";
|
|
16
|
+
}];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emailRoleDefs = void 0;
|
|
4
|
+
exports.emailRoleDefs = [
|
|
5
|
+
{ method: 'post', path: '/email', role: 'postEmail', name: 'Send email confirmation' },
|
|
6
|
+
{ method: 'post', path: '/email/push', role: 'postEmailPush', name: 'Send templated email' },
|
|
7
|
+
{ method: 'post', path: '/verify-recaptcha', role: 'postVerifyRecaptcha', name: 'Verify reCAPTCHA' },
|
|
8
|
+
];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const eventRoleDefs: readonly [{
|
|
2
|
+
readonly method: "post";
|
|
3
|
+
readonly path: "/event/book";
|
|
4
|
+
readonly role: "postEventBook";
|
|
5
|
+
readonly name: "Book event";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "post";
|
|
8
|
+
readonly path: "/event";
|
|
9
|
+
readonly role: "postEvent";
|
|
10
|
+
readonly name: "Create event";
|
|
11
|
+
}, {
|
|
12
|
+
readonly method: "post";
|
|
13
|
+
readonly path: "/events";
|
|
14
|
+
readonly role: "postEvents";
|
|
15
|
+
readonly name: "Create many events";
|
|
16
|
+
}, {
|
|
17
|
+
readonly method: "post";
|
|
18
|
+
readonly path: "/event/book/cancel";
|
|
19
|
+
readonly role: "postEventBookCancel";
|
|
20
|
+
readonly name: "Request booking cancel";
|
|
21
|
+
}, {
|
|
22
|
+
readonly method: "get";
|
|
23
|
+
readonly path: "/event";
|
|
24
|
+
readonly role: "getEvents";
|
|
25
|
+
readonly name: "Get events";
|
|
26
|
+
}, {
|
|
27
|
+
readonly method: "get";
|
|
28
|
+
readonly path: "/event/:id";
|
|
29
|
+
readonly role: "getEventById";
|
|
30
|
+
readonly name: "Get event";
|
|
31
|
+
}, {
|
|
32
|
+
readonly method: "put";
|
|
33
|
+
readonly path: "/event/:id";
|
|
34
|
+
readonly role: "putEventById";
|
|
35
|
+
readonly name: "Update event";
|
|
36
|
+
}, {
|
|
37
|
+
readonly method: "delete";
|
|
38
|
+
readonly path: "/events";
|
|
39
|
+
readonly role: "deleteEvents";
|
|
40
|
+
readonly name: "Delete many events";
|
|
41
|
+
}, {
|
|
42
|
+
readonly method: "delete";
|
|
43
|
+
readonly path: "/event/:id";
|
|
44
|
+
readonly role: "deleteEventById";
|
|
45
|
+
readonly name: "Delete event";
|
|
46
|
+
}];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eventRoleDefs = void 0;
|
|
4
|
+
exports.eventRoleDefs = [
|
|
5
|
+
{ method: 'post', path: '/event/book', role: 'postEventBook', name: 'Book event' },
|
|
6
|
+
{ method: 'post', path: '/event', role: 'postEvent', name: 'Create event' },
|
|
7
|
+
{ method: 'post', path: '/events', role: 'postEvents', name: 'Create many events' },
|
|
8
|
+
{ method: 'post', path: '/event/book/cancel', role: 'postEventBookCancel', name: 'Request booking cancel' },
|
|
9
|
+
{ method: 'get', path: '/event', role: 'getEvents', name: 'Get events' },
|
|
10
|
+
{ method: 'get', path: '/event/:id', role: 'getEventById', name: 'Get event' },
|
|
11
|
+
{ method: 'put', path: '/event/:id', role: 'putEventById', name: 'Update event' },
|
|
12
|
+
{ method: 'delete', path: '/events', role: 'deleteEvents', name: 'Delete many events' },
|
|
13
|
+
{ method: 'delete', path: '/event/:id', role: 'deleteEventById', name: 'Delete event' },
|
|
14
|
+
];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const failRoleDefs: readonly [{
|
|
2
|
+
readonly method: "get";
|
|
3
|
+
readonly path: "/fail";
|
|
4
|
+
readonly role: "getFails";
|
|
5
|
+
readonly name: "Get fails";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "get";
|
|
8
|
+
readonly path: "/fail/run/:id";
|
|
9
|
+
readonly role: "getFailRunById";
|
|
10
|
+
readonly name: "Run fail job by ID";
|
|
11
|
+
}, {
|
|
12
|
+
readonly method: "delete";
|
|
13
|
+
readonly path: "/fail/all";
|
|
14
|
+
readonly role: "deleteFailsAll";
|
|
15
|
+
readonly name: "Delete all fails";
|
|
16
|
+
}, {
|
|
17
|
+
readonly method: "delete";
|
|
18
|
+
readonly path: "/fail/:id";
|
|
19
|
+
readonly role: "deleteFailById";
|
|
20
|
+
readonly name: "Delete fail by ID";
|
|
21
|
+
}];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.failRoleDefs = void 0;
|
|
4
|
+
exports.failRoleDefs = [
|
|
5
|
+
{ method: 'get', path: '/fail', role: 'getFails', name: 'Get fails' },
|
|
6
|
+
{ method: 'get', path: '/fail/run/:id', role: 'getFailRunById', name: 'Run fail job by ID' },
|
|
7
|
+
{ method: 'delete', path: '/fail/all', role: 'deleteFailsAll', name: 'Delete all fails' },
|
|
8
|
+
{ method: 'delete', path: '/fail/:id', role: 'deleteFailById', name: 'Delete fail by ID' },
|
|
9
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const fileRoleDefs: readonly [{
|
|
2
|
+
readonly method: "post";
|
|
3
|
+
readonly path: "/util/file/upload/:id";
|
|
4
|
+
readonly role: "postUtilFileUploadById";
|
|
5
|
+
readonly name: "Upload file by ID";
|
|
6
|
+
}, {
|
|
7
|
+
readonly method: "post";
|
|
8
|
+
readonly path: "/util/file/delete";
|
|
9
|
+
readonly role: "postUtilFileDelete";
|
|
10
|
+
readonly name: "Delete files";
|
|
11
|
+
}, {
|
|
12
|
+
readonly method: "post";
|
|
13
|
+
readonly path: "/util/pdf/create";
|
|
14
|
+
readonly role: "postUtilPdfCreate";
|
|
15
|
+
readonly name: "Create PDF";
|
|
16
|
+
}];
|