@ibiliaze/global-vars 1.138.0 → 1.139.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/admin.d.ts +13 -12
- package/dist/ticketops/roles/admin.js +130 -127
- package/dist/ticketops/roles/blog.d.ts +9 -8
- package/dist/ticketops/roles/blog.js +52 -49
- package/dist/ticketops/roles/campaign.d.ts +14 -11
- package/dist/ticketops/roles/campaign.js +84 -81
- package/dist/ticketops/roles/category.d.ts +50 -1
- package/dist/ticketops/roles/category.js +52 -7
- package/dist/ticketops/roles/event.d.ts +87 -1
- package/dist/ticketops/roles/event.js +81 -11
- package/dist/ticketops/roles/fixture.d.ts +50 -1
- package/dist/ticketops/roles/fixture.js +47 -7
- package/dist/ticketops/roles/flow.d.ts +58 -1
- package/dist/ticketops/roles/flow.js +55 -8
- package/dist/ticketops/roles/group.d.ts +51 -1
- package/dist/ticketops/roles/group.js +47 -7
- package/dist/ticketops/roles/job.d.ts +85 -1
- package/dist/ticketops/roles/job.js +73 -10
- package/dist/ticketops/roles/log.d.ts +29 -1
- package/dist/ticketops/roles/log.js +30 -5
- package/dist/ticketops/roles/notification.d.ts +59 -1
- package/dist/ticketops/roles/notification.js +55 -8
- package/dist/ticketops/roles/page.d.ts +59 -1
- package/dist/ticketops/roles/page.js +56 -8
- package/dist/ticketops/roles/product.d.ts +50 -1
- package/dist/ticketops/roles/product.js +47 -7
- package/dist/ticketops/roles/prospect.d.ts +90 -1
- package/dist/ticketops/roles/prospect.js +82 -11
- package/dist/ticketops/roles.d.ts +1367 -71
- package/dist/ticketops/roles.js +28 -28
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { AdminBase } from '../inputsDefault';
|
|
2
|
+
export declare const adminRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/admin";
|
|
4
5
|
readonly role: "postAdminRegister";
|
|
@@ -19,7 +20,7 @@ export declare const adminRoleDefs: readonly [{
|
|
|
19
20
|
readonly role: "postAdminToken";
|
|
20
21
|
readonly name: "Login admin";
|
|
21
22
|
readonly response_200: {
|
|
22
|
-
admin:
|
|
23
|
+
admin: AdminBase<TId, TDate>;
|
|
23
24
|
message: string;
|
|
24
25
|
};
|
|
25
26
|
readonly response_401: {
|
|
@@ -62,7 +63,7 @@ export declare const adminRoleDefs: readonly [{
|
|
|
62
63
|
readonly role: "postAdminLogout";
|
|
63
64
|
readonly name: "Logout admin";
|
|
64
65
|
readonly response_200: {
|
|
65
|
-
admin:
|
|
66
|
+
admin: AdminBase<TId, TDate>;
|
|
66
67
|
message: string;
|
|
67
68
|
};
|
|
68
69
|
readonly response_500: {
|
|
@@ -75,7 +76,7 @@ export declare const adminRoleDefs: readonly [{
|
|
|
75
76
|
readonly role: "postAdminLogoutAll";
|
|
76
77
|
readonly name: "Logout all sessions";
|
|
77
78
|
readonly response_200: {
|
|
78
|
-
admin:
|
|
79
|
+
admin: AdminBase<TId, TDate>;
|
|
79
80
|
message: string;
|
|
80
81
|
};
|
|
81
82
|
readonly response_500: {
|
|
@@ -88,7 +89,7 @@ export declare const adminRoleDefs: readonly [{
|
|
|
88
89
|
readonly role: "postAdminLogoutBySessionId";
|
|
89
90
|
readonly name: "Logout session by ID";
|
|
90
91
|
readonly response_200: {
|
|
91
|
-
admin:
|
|
92
|
+
admin: AdminBase<TId, TDate>;
|
|
92
93
|
message: string;
|
|
93
94
|
};
|
|
94
95
|
readonly response_500: {
|
|
@@ -101,7 +102,7 @@ export declare const adminRoleDefs: readonly [{
|
|
|
101
102
|
readonly role: "getAdmin";
|
|
102
103
|
readonly name: "Get admin";
|
|
103
104
|
readonly response_200: {
|
|
104
|
-
admin:
|
|
105
|
+
admin: AdminBase<TId, TDate>;
|
|
105
106
|
};
|
|
106
107
|
readonly response_500: {
|
|
107
108
|
message: string;
|
|
@@ -126,7 +127,7 @@ export declare const adminRoleDefs: readonly [{
|
|
|
126
127
|
readonly role: "getAdminPublic";
|
|
127
128
|
readonly name: "Get public admin";
|
|
128
129
|
readonly response_200: {
|
|
129
|
-
admin: Partial<
|
|
130
|
+
admin: Partial<AdminBase<TId, TDate>>;
|
|
130
131
|
};
|
|
131
132
|
readonly response_400: {
|
|
132
133
|
message: string;
|
|
@@ -144,11 +145,11 @@ export declare const adminRoleDefs: readonly [{
|
|
|
144
145
|
readonly role: "putAdmin";
|
|
145
146
|
readonly name: "Update admin";
|
|
146
147
|
readonly response_200: {
|
|
147
|
-
admin:
|
|
148
|
+
admin: AdminBase<TId, TDate>;
|
|
148
149
|
message: string;
|
|
149
150
|
};
|
|
150
151
|
readonly response_404: {
|
|
151
|
-
admin:
|
|
152
|
+
admin: AdminBase<TId, TDate> | null;
|
|
152
153
|
message: string;
|
|
153
154
|
};
|
|
154
155
|
readonly response_500: {
|
|
@@ -161,11 +162,11 @@ export declare const adminRoleDefs: readonly [{
|
|
|
161
162
|
readonly role: "putAdminPassword";
|
|
162
163
|
readonly name: "Update admin password";
|
|
163
164
|
readonly response_200: {
|
|
164
|
-
admin:
|
|
165
|
+
admin: AdminBase<TId, TDate>;
|
|
165
166
|
message: string;
|
|
166
167
|
};
|
|
167
168
|
readonly response_404: {
|
|
168
|
-
admin:
|
|
169
|
+
admin: AdminBase<TId, TDate> | null;
|
|
169
170
|
message: string;
|
|
170
171
|
};
|
|
171
172
|
readonly response_500: {
|
|
@@ -178,7 +179,7 @@ export declare const adminRoleDefs: readonly [{
|
|
|
178
179
|
readonly role: "deleteAdmin";
|
|
179
180
|
readonly name: "Delete admin";
|
|
180
181
|
readonly response_200: {
|
|
181
|
-
admin:
|
|
182
|
+
admin: AdminBase<TId, TDate>;
|
|
182
183
|
message: string;
|
|
183
184
|
};
|
|
184
185
|
readonly response_500: {
|
|
@@ -1,130 +1,133 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.adminRoleDefs = 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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
4
|
+
const adminRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
// POST /admin – register
|
|
7
|
+
{
|
|
8
|
+
method: 'post',
|
|
9
|
+
path: '/admin',
|
|
10
|
+
role: 'postAdminRegister',
|
|
11
|
+
name: 'Register admin',
|
|
12
|
+
response_201: {},
|
|
13
|
+
response_400: {}, // "Account is already registered"
|
|
14
|
+
response_500: {},
|
|
15
|
+
},
|
|
16
|
+
// POST /admin/token – login
|
|
17
|
+
{
|
|
18
|
+
method: 'post',
|
|
19
|
+
path: '/admin/token',
|
|
20
|
+
role: 'postAdminToken',
|
|
21
|
+
name: 'Login admin',
|
|
22
|
+
response_200: {},
|
|
23
|
+
response_401: {},
|
|
24
|
+
},
|
|
25
|
+
// POST /admin/google/backup
|
|
26
|
+
{
|
|
27
|
+
method: 'post',
|
|
28
|
+
path: '/admin/google/backup',
|
|
29
|
+
role: 'postAdminGoogleBackup',
|
|
30
|
+
name: 'Google backup',
|
|
31
|
+
response_200: {},
|
|
32
|
+
response_400: {}, // error from backup()
|
|
33
|
+
response_500: {},
|
|
34
|
+
},
|
|
35
|
+
// POST /admin/google/backup/restore
|
|
36
|
+
{
|
|
37
|
+
method: 'post',
|
|
38
|
+
path: '/admin/google/backup/restore',
|
|
39
|
+
role: 'postAdminGoogleBackupRestore',
|
|
40
|
+
name: 'Restore Google backup',
|
|
41
|
+
response_200: {},
|
|
42
|
+
response_400: {},
|
|
43
|
+
response_500: {},
|
|
44
|
+
},
|
|
45
|
+
// POST /admin/logout
|
|
46
|
+
{
|
|
47
|
+
method: 'post',
|
|
48
|
+
path: '/admin/logout',
|
|
49
|
+
role: 'postAdminLogout',
|
|
50
|
+
name: 'Logout admin',
|
|
51
|
+
response_200: {},
|
|
52
|
+
response_500: {},
|
|
53
|
+
},
|
|
54
|
+
// POST /admin/logout/all
|
|
55
|
+
{
|
|
56
|
+
method: 'post',
|
|
57
|
+
path: '/admin/logout/all',
|
|
58
|
+
role: 'postAdminLogoutAll',
|
|
59
|
+
name: 'Logout all sessions',
|
|
60
|
+
response_200: {},
|
|
61
|
+
response_500: {},
|
|
62
|
+
},
|
|
63
|
+
// POST /admin/logout/:id
|
|
64
|
+
{
|
|
65
|
+
method: 'post',
|
|
66
|
+
path: '/admin/logout/:id',
|
|
67
|
+
role: 'postAdminLogoutBySessionId',
|
|
68
|
+
name: 'Logout session by ID',
|
|
69
|
+
response_200: {},
|
|
70
|
+
response_500: {},
|
|
71
|
+
},
|
|
72
|
+
// GET /admin – get current admin
|
|
73
|
+
{
|
|
74
|
+
method: 'get',
|
|
75
|
+
path: '/admin',
|
|
76
|
+
role: 'getAdmin',
|
|
77
|
+
name: 'Get admin',
|
|
78
|
+
response_200: {},
|
|
79
|
+
response_500: {},
|
|
80
|
+
},
|
|
81
|
+
// GET /admin/exists/:email
|
|
82
|
+
{
|
|
83
|
+
method: 'get',
|
|
84
|
+
path: '/admin/exists/:email',
|
|
85
|
+
role: 'getAdminExistsByEmail',
|
|
86
|
+
name: 'Check admin exists by email',
|
|
87
|
+
response_200: {}, // empty body on 200
|
|
88
|
+
response_409: {},
|
|
89
|
+
response_500: {},
|
|
90
|
+
},
|
|
91
|
+
// GET /admin/public
|
|
92
|
+
{
|
|
93
|
+
method: 'get',
|
|
94
|
+
path: '/admin/public',
|
|
95
|
+
role: 'getAdminPublic',
|
|
96
|
+
name: 'Get public admin',
|
|
97
|
+
response_200: {},
|
|
98
|
+
response_400: {}, // "Invalid select"
|
|
99
|
+
response_404: {}, // "No account found"
|
|
100
|
+
response_500: {},
|
|
101
|
+
},
|
|
102
|
+
// PUT /admin – update admin
|
|
103
|
+
{
|
|
104
|
+
method: 'put',
|
|
105
|
+
path: '/admin',
|
|
106
|
+
role: 'putAdmin',
|
|
107
|
+
name: 'Update admin',
|
|
108
|
+
response_200: {},
|
|
109
|
+
response_404: {},
|
|
110
|
+
response_500: {},
|
|
111
|
+
},
|
|
112
|
+
// PUT /admin/password – update password
|
|
113
|
+
{
|
|
114
|
+
method: 'put',
|
|
115
|
+
path: '/admin/password',
|
|
116
|
+
role: 'putAdminPassword',
|
|
117
|
+
name: 'Update admin password',
|
|
118
|
+
response_200: {},
|
|
119
|
+
response_404: {},
|
|
120
|
+
response_500: {},
|
|
121
|
+
},
|
|
122
|
+
// DELETE /admin – delete account
|
|
123
|
+
{
|
|
124
|
+
method: 'delete',
|
|
125
|
+
path: '/admin',
|
|
126
|
+
role: 'deleteAdmin',
|
|
127
|
+
name: 'Delete admin',
|
|
128
|
+
response_200: {},
|
|
129
|
+
response_500: {},
|
|
130
|
+
},
|
|
131
|
+
];
|
|
132
|
+
};
|
|
133
|
+
exports.adminRoleDefs = adminRoleDefs;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BlogBase } from '../inputsDefault';
|
|
2
|
+
export declare const blogRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/blog";
|
|
4
5
|
readonly role: "postBlog";
|
|
5
6
|
readonly name: "Create blog";
|
|
6
7
|
readonly response_201: {
|
|
7
|
-
blog:
|
|
8
|
+
blog: BlogBase<TId, TDate>;
|
|
8
9
|
message: string;
|
|
9
10
|
};
|
|
10
11
|
readonly response_500: {
|
|
@@ -17,7 +18,7 @@ export declare const blogRoleDefs: readonly [{
|
|
|
17
18
|
readonly role: "getBlogs";
|
|
18
19
|
readonly name: "Get blogs";
|
|
19
20
|
readonly response_200: {
|
|
20
|
-
blogs:
|
|
21
|
+
blogs: BlogBase<TId, TDate>[];
|
|
21
22
|
count: number;
|
|
22
23
|
};
|
|
23
24
|
readonly response_500: {
|
|
@@ -30,7 +31,7 @@ export declare const blogRoleDefs: readonly [{
|
|
|
30
31
|
readonly role: "getBlogById";
|
|
31
32
|
readonly name: "Get blog";
|
|
32
33
|
readonly response_200: {
|
|
33
|
-
blog:
|
|
34
|
+
blog: BlogBase<TId, TDate> | null;
|
|
34
35
|
message: string;
|
|
35
36
|
};
|
|
36
37
|
readonly response_404: {
|
|
@@ -43,11 +44,11 @@ export declare const blogRoleDefs: readonly [{
|
|
|
43
44
|
readonly role: "putBlogById";
|
|
44
45
|
readonly name: "Update blog";
|
|
45
46
|
readonly response_200: {
|
|
46
|
-
blog:
|
|
47
|
+
blog: BlogBase<TId, TDate>;
|
|
47
48
|
message: string;
|
|
48
49
|
};
|
|
49
50
|
readonly response_404: {
|
|
50
|
-
blog:
|
|
51
|
+
blog: BlogBase<TId, TDate> | null;
|
|
51
52
|
message: string;
|
|
52
53
|
};
|
|
53
54
|
readonly response_500: {
|
|
@@ -60,11 +61,11 @@ export declare const blogRoleDefs: readonly [{
|
|
|
60
61
|
readonly role: "deleteBlogById";
|
|
61
62
|
readonly name: "Delete blog";
|
|
62
63
|
readonly response_200: {
|
|
63
|
-
blog:
|
|
64
|
+
blog: BlogBase<TId, TDate>;
|
|
64
65
|
message: string;
|
|
65
66
|
};
|
|
66
67
|
readonly response_404: {
|
|
67
|
-
blog:
|
|
68
|
+
blog: BlogBase<TId, TDate> | null;
|
|
68
69
|
message: string;
|
|
69
70
|
};
|
|
70
71
|
readonly response_500: {
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.blogRoleDefs = 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
|
-
|
|
4
|
+
const blogRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
// POST /blog – create
|
|
7
|
+
{
|
|
8
|
+
method: 'post',
|
|
9
|
+
path: '/blog',
|
|
10
|
+
role: 'postBlog',
|
|
11
|
+
name: 'Create blog',
|
|
12
|
+
response_201: {},
|
|
13
|
+
response_500: {},
|
|
14
|
+
},
|
|
15
|
+
// GET /blog – list
|
|
16
|
+
{
|
|
17
|
+
method: 'get',
|
|
18
|
+
path: '/blog',
|
|
19
|
+
role: 'getBlogs',
|
|
20
|
+
name: 'Get blogs',
|
|
21
|
+
response_200: {},
|
|
22
|
+
response_500: {},
|
|
23
|
+
},
|
|
24
|
+
// GET /blog/:id – get one
|
|
25
|
+
{
|
|
26
|
+
method: 'get',
|
|
27
|
+
path: '/blog/:id',
|
|
28
|
+
role: 'getBlogById',
|
|
29
|
+
name: 'Get blog',
|
|
30
|
+
response_200: {},
|
|
31
|
+
response_404: {},
|
|
32
|
+
},
|
|
33
|
+
// PUT /blog/:id – update
|
|
34
|
+
{
|
|
35
|
+
method: 'put',
|
|
36
|
+
path: '/blog/:id',
|
|
37
|
+
role: 'putBlogById',
|
|
38
|
+
name: 'Update blog',
|
|
39
|
+
response_200: {},
|
|
40
|
+
response_404: {},
|
|
41
|
+
response_500: {},
|
|
42
|
+
},
|
|
43
|
+
// DELETE /blog/:id – delete
|
|
44
|
+
{
|
|
45
|
+
method: 'delete',
|
|
46
|
+
path: '/blog/:id',
|
|
47
|
+
role: 'deleteBlogById',
|
|
48
|
+
name: 'Delete blog',
|
|
49
|
+
response_200: {},
|
|
50
|
+
response_404: {},
|
|
51
|
+
response_500: {},
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
};
|
|
55
|
+
exports.blogRoleDefs = blogRoleDefs;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CampaignBase, CampaignStageBase } from '../inputsDefault';
|
|
2
|
+
export declare const campaignRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/campaign";
|
|
4
5
|
readonly role: "postCampaign";
|
|
5
6
|
readonly name: "Create campaign";
|
|
6
7
|
readonly response_201: {
|
|
7
|
-
campaign:
|
|
8
|
+
campaign: CampaignBase<TId, TDate>;
|
|
8
9
|
message: string;
|
|
9
10
|
};
|
|
10
11
|
readonly response_500: {
|
|
@@ -17,7 +18,7 @@ export declare const campaignRoleDefs: readonly [{
|
|
|
17
18
|
readonly role: "postCampaignStartById";
|
|
18
19
|
readonly name: "Start campaign by ID";
|
|
19
20
|
readonly response_200: {
|
|
20
|
-
campaign:
|
|
21
|
+
campaign: CampaignBase<TId, TDate>;
|
|
21
22
|
message: string;
|
|
22
23
|
};
|
|
23
24
|
readonly response_400: {
|
|
@@ -39,7 +40,7 @@ export declare const campaignRoleDefs: readonly [{
|
|
|
39
40
|
readonly role: "postCampaignStopById";
|
|
40
41
|
readonly name: "Stop campaign by ID";
|
|
41
42
|
readonly response_200: {
|
|
42
|
-
campaign:
|
|
43
|
+
campaign: CampaignBase<TId, TDate>;
|
|
43
44
|
message: string;
|
|
44
45
|
};
|
|
45
46
|
readonly response_404: {
|
|
@@ -55,7 +56,7 @@ export declare const campaignRoleDefs: readonly [{
|
|
|
55
56
|
readonly role: "getCampaigns";
|
|
56
57
|
readonly name: "Get campaigns";
|
|
57
58
|
readonly response_200: {
|
|
58
|
-
campaigns:
|
|
59
|
+
campaigns: CampaignBase<TId, TDate>[];
|
|
59
60
|
count: number;
|
|
60
61
|
};
|
|
61
62
|
readonly response_500: {
|
|
@@ -68,7 +69,9 @@ export declare const campaignRoleDefs: readonly [{
|
|
|
68
69
|
readonly role: "getCampaignInsightById";
|
|
69
70
|
readonly name: "Get campaign insight";
|
|
70
71
|
readonly response_200: {
|
|
71
|
-
stages:
|
|
72
|
+
stages: (CampaignStageBase<TId> & {
|
|
73
|
+
stageId: string;
|
|
74
|
+
}[]) | null;
|
|
72
75
|
};
|
|
73
76
|
readonly response_400: {
|
|
74
77
|
message: string;
|
|
@@ -83,7 +86,7 @@ export declare const campaignRoleDefs: readonly [{
|
|
|
83
86
|
readonly role: "getCampaignById";
|
|
84
87
|
readonly name: "Get campaign";
|
|
85
88
|
readonly response_200: {
|
|
86
|
-
campaign:
|
|
89
|
+
campaign: CampaignBase<TId, TDate> | null;
|
|
87
90
|
message: string;
|
|
88
91
|
};
|
|
89
92
|
readonly response_404: {
|
|
@@ -96,11 +99,11 @@ export declare const campaignRoleDefs: readonly [{
|
|
|
96
99
|
readonly role: "putCampaignById";
|
|
97
100
|
readonly name: "Update campaign";
|
|
98
101
|
readonly response_200: {
|
|
99
|
-
campaign:
|
|
102
|
+
campaign: CampaignBase<TId, TDate>;
|
|
100
103
|
message: string;
|
|
101
104
|
};
|
|
102
105
|
readonly response_404: {
|
|
103
|
-
campaign:
|
|
106
|
+
campaign: CampaignBase<TId, TDate> | null;
|
|
104
107
|
message: string;
|
|
105
108
|
};
|
|
106
109
|
readonly response_500: {
|
|
@@ -113,11 +116,11 @@ export declare const campaignRoleDefs: readonly [{
|
|
|
113
116
|
readonly role: "deleteCampaignById";
|
|
114
117
|
readonly name: "Delete campaign";
|
|
115
118
|
readonly response_200: {
|
|
116
|
-
campaign:
|
|
119
|
+
campaign: CampaignBase<TId, TDate>;
|
|
117
120
|
message: string;
|
|
118
121
|
};
|
|
119
122
|
readonly response_404: {
|
|
120
|
-
campaign:
|
|
123
|
+
campaign: CampaignBase<TId, TDate> | null;
|
|
121
124
|
message: string;
|
|
122
125
|
};
|
|
123
126
|
readonly response_500: {
|