@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,11 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.notificationRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
const notificationRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/notification',
|
|
9
|
+
role: 'postNotification',
|
|
10
|
+
name: 'Create notification',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'post',
|
|
16
|
+
path: '/notification/read',
|
|
17
|
+
role: 'postNotificationRead',
|
|
18
|
+
name: 'Mark notifications read',
|
|
19
|
+
response_201: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/notification',
|
|
25
|
+
role: 'getNotifications',
|
|
26
|
+
name: 'Get notifications',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_500: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'get',
|
|
32
|
+
path: '/notification/:id',
|
|
33
|
+
role: 'getNotificationById',
|
|
34
|
+
name: 'Get notification by ID',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
method: 'put',
|
|
40
|
+
path: '/notification/:id',
|
|
41
|
+
role: 'putNotificationById',
|
|
42
|
+
name: 'Update notification',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_404: {},
|
|
45
|
+
response_500: {},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
method: 'delete',
|
|
49
|
+
path: '/notification/:id',
|
|
50
|
+
role: 'deleteNotificationById',
|
|
51
|
+
name: 'Delete notification',
|
|
52
|
+
response_200: {},
|
|
53
|
+
response_404: {},
|
|
54
|
+
response_500: {},
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
};
|
|
58
|
+
exports.notificationRoleDefs = notificationRoleDefs;
|
|
@@ -1,31 +1,89 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PageBase } from '../inputsDefault';
|
|
2
|
+
export declare const pageRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/page";
|
|
4
5
|
readonly role: "postPage";
|
|
5
6
|
readonly name: "Create page";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
page: PageBase<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: "/page/trigger/:id";
|
|
9
18
|
readonly role: "postPageTriggerById";
|
|
10
19
|
readonly name: "Trigger page by ID";
|
|
20
|
+
readonly response_200: Record<string, never>;
|
|
21
|
+
readonly response_404: {
|
|
22
|
+
page: PageBase<TId, TDate> | null;
|
|
23
|
+
message: string;
|
|
24
|
+
};
|
|
25
|
+
readonly response_500: {
|
|
26
|
+
message: string;
|
|
27
|
+
error: string;
|
|
28
|
+
};
|
|
11
29
|
}, {
|
|
12
30
|
readonly method: "get";
|
|
13
31
|
readonly path: "/page";
|
|
14
32
|
readonly role: "getPages";
|
|
15
33
|
readonly name: "Get pages";
|
|
34
|
+
readonly response_200: {
|
|
35
|
+
pages: PageBase<TId, TDate>[];
|
|
36
|
+
count: number;
|
|
37
|
+
};
|
|
38
|
+
readonly response_500: {
|
|
39
|
+
message: string;
|
|
40
|
+
error: string;
|
|
41
|
+
};
|
|
16
42
|
}, {
|
|
17
43
|
readonly method: "get";
|
|
18
44
|
readonly path: "/page/:id";
|
|
19
45
|
readonly role: "getPageById";
|
|
20
46
|
readonly name: "Get page by ID";
|
|
47
|
+
readonly response_200: {
|
|
48
|
+
page: PageBase<TId, TDate> | null;
|
|
49
|
+
message: string;
|
|
50
|
+
};
|
|
51
|
+
readonly response_404: {
|
|
52
|
+
message: string;
|
|
53
|
+
error: string;
|
|
54
|
+
};
|
|
21
55
|
}, {
|
|
22
56
|
readonly method: "put";
|
|
23
57
|
readonly path: "/page/:id";
|
|
24
58
|
readonly role: "putPageById";
|
|
25
59
|
readonly name: "Update page";
|
|
60
|
+
readonly response_200: {
|
|
61
|
+
page: PageBase<TId, TDate>;
|
|
62
|
+
message: string;
|
|
63
|
+
};
|
|
64
|
+
readonly response_404: {
|
|
65
|
+
page: PageBase<TId, TDate> | null;
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
readonly response_500: {
|
|
69
|
+
message: string;
|
|
70
|
+
error: string;
|
|
71
|
+
};
|
|
26
72
|
}, {
|
|
27
73
|
readonly method: "delete";
|
|
28
74
|
readonly path: "/page/:id";
|
|
29
75
|
readonly role: "deletePageById";
|
|
30
76
|
readonly name: "Delete page";
|
|
77
|
+
readonly response_200: {
|
|
78
|
+
page: PageBase<TId, TDate>;
|
|
79
|
+
message: string;
|
|
80
|
+
};
|
|
81
|
+
readonly response_404: {
|
|
82
|
+
page: PageBase<TId, TDate> | null;
|
|
83
|
+
message: string;
|
|
84
|
+
};
|
|
85
|
+
readonly response_500: {
|
|
86
|
+
message: string;
|
|
87
|
+
error: string;
|
|
88
|
+
};
|
|
31
89
|
}];
|
|
@@ -1,11 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pageRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
const pageRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/page',
|
|
9
|
+
role: 'postPage',
|
|
10
|
+
name: 'Create page',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'post',
|
|
16
|
+
path: '/page/trigger/:id',
|
|
17
|
+
role: 'postPageTriggerById',
|
|
18
|
+
name: 'Trigger page by ID',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_404: {},
|
|
21
|
+
response_500: {},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
method: 'get',
|
|
25
|
+
path: '/page',
|
|
26
|
+
role: 'getPages',
|
|
27
|
+
name: 'Get pages',
|
|
28
|
+
response_200: {},
|
|
29
|
+
response_500: {},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
method: 'get',
|
|
33
|
+
path: '/page/:id',
|
|
34
|
+
role: 'getPageById',
|
|
35
|
+
name: 'Get page by ID',
|
|
36
|
+
response_200: {},
|
|
37
|
+
response_404: {},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
method: 'put',
|
|
41
|
+
path: '/page/:id',
|
|
42
|
+
role: 'putPageById',
|
|
43
|
+
name: 'Update page',
|
|
44
|
+
response_200: {},
|
|
45
|
+
response_404: {},
|
|
46
|
+
response_500: {},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
method: 'delete',
|
|
50
|
+
path: '/page/:id',
|
|
51
|
+
role: 'deletePageById',
|
|
52
|
+
name: 'Delete page',
|
|
53
|
+
response_200: {},
|
|
54
|
+
response_404: {},
|
|
55
|
+
response_500: {},
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
};
|
|
59
|
+
exports.pageRoleDefs = pageRoleDefs;
|
|
@@ -1,26 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ProductBase } from '../inputsDefault';
|
|
2
|
+
export declare const productRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/product";
|
|
4
5
|
readonly role: "postProduct";
|
|
5
6
|
readonly name: "Create product";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
product: ProductBase<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: "/product";
|
|
9
18
|
readonly role: "getProducts";
|
|
10
19
|
readonly name: "Get products";
|
|
20
|
+
readonly response_200: {
|
|
21
|
+
products: ProductBase<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: "/product/:id";
|
|
14
31
|
readonly role: "getProductById";
|
|
15
32
|
readonly name: "Get product";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
product: ProductBase<TId, TDate> | null;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
37
|
+
readonly response_404: {
|
|
38
|
+
message: string;
|
|
39
|
+
error: string;
|
|
40
|
+
};
|
|
16
41
|
}, {
|
|
17
42
|
readonly method: "put";
|
|
18
43
|
readonly path: "/product/:id";
|
|
19
44
|
readonly role: "putProductById";
|
|
20
45
|
readonly name: "Update product";
|
|
46
|
+
readonly response_200: {
|
|
47
|
+
product: ProductBase<TId, TDate>;
|
|
48
|
+
message: string;
|
|
49
|
+
};
|
|
50
|
+
readonly response_404: {
|
|
51
|
+
product: ProductBase<TId, TDate> | null;
|
|
52
|
+
message: string;
|
|
53
|
+
};
|
|
54
|
+
readonly response_500: {
|
|
55
|
+
message: string;
|
|
56
|
+
error: string;
|
|
57
|
+
};
|
|
21
58
|
}, {
|
|
22
59
|
readonly method: "delete";
|
|
23
60
|
readonly path: "/product/:id";
|
|
24
61
|
readonly role: "deleteProductById";
|
|
25
62
|
readonly name: "Delete product";
|
|
63
|
+
readonly response_200: {
|
|
64
|
+
product: ProductBase<TId, TDate>;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
readonly response_404: {
|
|
68
|
+
product: ProductBase<TId, TDate> | null;
|
|
69
|
+
message: string;
|
|
70
|
+
};
|
|
71
|
+
readonly response_500: {
|
|
72
|
+
message: string;
|
|
73
|
+
error: string;
|
|
74
|
+
};
|
|
26
75
|
}];
|
|
@@ -1,10 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.productRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
const productRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/product',
|
|
9
|
+
role: 'postProduct',
|
|
10
|
+
name: 'Create product',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'get',
|
|
16
|
+
path: '/product',
|
|
17
|
+
role: 'getProducts',
|
|
18
|
+
name: 'Get products',
|
|
19
|
+
response_200: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/product/:id',
|
|
25
|
+
role: 'getProductById',
|
|
26
|
+
name: 'Get product',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_404: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'put',
|
|
32
|
+
path: '/product/:id',
|
|
33
|
+
role: 'putProductById',
|
|
34
|
+
name: 'Update product',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_404: {},
|
|
37
|
+
response_500: {},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
method: 'delete',
|
|
41
|
+
path: '/product/:id',
|
|
42
|
+
role: 'deleteProductById',
|
|
43
|
+
name: 'Delete product',
|
|
44
|
+
response_200: {},
|
|
45
|
+
response_404: {},
|
|
46
|
+
response_500: {},
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
};
|
|
50
|
+
exports.productRoleDefs = productRoleDefs;
|
|
@@ -1,46 +1,135 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ProspectBase } from '../inputsDefault';
|
|
2
|
+
export declare const prospectRoleDefs: <TId, TDate>() => readonly [{
|
|
2
3
|
readonly method: "post";
|
|
3
4
|
readonly path: "/prospect";
|
|
4
5
|
readonly role: "postProspect";
|
|
5
6
|
readonly name: "Create prospect";
|
|
7
|
+
readonly response_201: {
|
|
8
|
+
prospect: ProspectBase<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: "/prospect/subscribe";
|
|
9
18
|
readonly role: "postProspectSubscribe";
|
|
10
19
|
readonly name: "Subscribe prospect";
|
|
20
|
+
readonly response_201: {
|
|
21
|
+
prospect: ProspectBase<TId, TDate>;
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
readonly response_500: {
|
|
25
|
+
message: string;
|
|
26
|
+
error: string;
|
|
27
|
+
};
|
|
11
28
|
}, {
|
|
12
29
|
readonly method: "get";
|
|
13
30
|
readonly path: "/prospect";
|
|
14
31
|
readonly role: "getProspects";
|
|
15
32
|
readonly name: "Get prospects";
|
|
33
|
+
readonly response_200: {
|
|
34
|
+
prospects: ProspectBase<TId, TDate>[];
|
|
35
|
+
count: number;
|
|
36
|
+
new: number;
|
|
37
|
+
};
|
|
38
|
+
readonly response_500: {
|
|
39
|
+
message: string;
|
|
40
|
+
error: string;
|
|
41
|
+
};
|
|
16
42
|
}, {
|
|
17
43
|
readonly method: "get";
|
|
18
44
|
readonly path: "/prospect/count/new";
|
|
19
45
|
readonly role: "getProspectCountNew";
|
|
20
46
|
readonly name: "Get new prospect count";
|
|
47
|
+
readonly response_200: {
|
|
48
|
+
new: number;
|
|
49
|
+
};
|
|
50
|
+
readonly response_500: {
|
|
51
|
+
message: string;
|
|
52
|
+
error: string;
|
|
53
|
+
};
|
|
21
54
|
}, {
|
|
22
55
|
readonly method: "get";
|
|
23
56
|
readonly path: "/prospect/:id";
|
|
24
57
|
readonly role: "getProspectById";
|
|
25
58
|
readonly name: "Get prospect by ID";
|
|
59
|
+
readonly response_200: {
|
|
60
|
+
prospect: ProspectBase<TId, TDate> | null;
|
|
61
|
+
message: string;
|
|
62
|
+
};
|
|
63
|
+
readonly response_404: {
|
|
64
|
+
message: string;
|
|
65
|
+
error: string;
|
|
66
|
+
};
|
|
26
67
|
}, {
|
|
27
68
|
readonly method: "get";
|
|
28
69
|
readonly path: "/prospect/email/track";
|
|
29
70
|
readonly role: "getProspectEmailTrack";
|
|
30
71
|
readonly name: "Track prospect email";
|
|
72
|
+
readonly response_200: {
|
|
73
|
+
message: string;
|
|
74
|
+
};
|
|
75
|
+
readonly response_302: Record<string, never>;
|
|
76
|
+
readonly response_400: {
|
|
77
|
+
message: string;
|
|
78
|
+
event?: string;
|
|
79
|
+
};
|
|
80
|
+
readonly response_500: {
|
|
81
|
+
message: string;
|
|
82
|
+
error: string;
|
|
83
|
+
};
|
|
31
84
|
}, {
|
|
32
85
|
readonly method: "put";
|
|
33
86
|
readonly path: "/prospect/:id";
|
|
34
87
|
readonly role: "putProspectById";
|
|
35
88
|
readonly name: "Update prospect";
|
|
89
|
+
readonly response_200: {
|
|
90
|
+
prospect: ProspectBase<TId, TDate>;
|
|
91
|
+
message: string;
|
|
92
|
+
};
|
|
93
|
+
readonly response_404: {
|
|
94
|
+
prospect: ProspectBase<TId, TDate> | null;
|
|
95
|
+
message: string;
|
|
96
|
+
};
|
|
97
|
+
readonly response_500: {
|
|
98
|
+
message: string;
|
|
99
|
+
error: string;
|
|
100
|
+
};
|
|
36
101
|
}, {
|
|
37
102
|
readonly method: "put";
|
|
38
103
|
readonly path: "/prospect/opened/:id";
|
|
39
104
|
readonly role: "putProspectOpenedById";
|
|
40
105
|
readonly name: "Mark prospect opened";
|
|
106
|
+
readonly response_200: {
|
|
107
|
+
prospect: ProspectBase<TId, TDate>;
|
|
108
|
+
message: string;
|
|
109
|
+
};
|
|
110
|
+
readonly response_404: {
|
|
111
|
+
prospect: ProspectBase<TId, TDate> | null;
|
|
112
|
+
message: string;
|
|
113
|
+
};
|
|
114
|
+
readonly response_500: {
|
|
115
|
+
message: string;
|
|
116
|
+
error: string;
|
|
117
|
+
};
|
|
41
118
|
}, {
|
|
42
119
|
readonly method: "delete";
|
|
43
120
|
readonly path: "/prospect/:id";
|
|
44
121
|
readonly role: "deleteProspectById";
|
|
45
122
|
readonly name: "Delete prospect";
|
|
123
|
+
readonly response_200: {
|
|
124
|
+
prospect: ProspectBase<TId, TDate>;
|
|
125
|
+
message: string;
|
|
126
|
+
};
|
|
127
|
+
readonly response_404: {
|
|
128
|
+
prospect: ProspectBase<TId, TDate> | null;
|
|
129
|
+
message: string;
|
|
130
|
+
};
|
|
131
|
+
readonly response_500: {
|
|
132
|
+
message: string;
|
|
133
|
+
error: string;
|
|
134
|
+
};
|
|
46
135
|
}];
|
|
@@ -1,14 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prospectRoleDefs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
const prospectRoleDefs = () => {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
method: 'post',
|
|
8
|
+
path: '/prospect',
|
|
9
|
+
role: 'postProspect',
|
|
10
|
+
name: 'Create prospect',
|
|
11
|
+
response_201: {},
|
|
12
|
+
response_500: {},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: 'post',
|
|
16
|
+
path: '/prospect/subscribe',
|
|
17
|
+
role: 'postProspectSubscribe',
|
|
18
|
+
name: 'Subscribe prospect',
|
|
19
|
+
response_201: {},
|
|
20
|
+
response_500: {},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
method: 'get',
|
|
24
|
+
path: '/prospect',
|
|
25
|
+
role: 'getProspects',
|
|
26
|
+
name: 'Get prospects',
|
|
27
|
+
response_200: {},
|
|
28
|
+
response_500: {},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
method: 'get',
|
|
32
|
+
path: '/prospect/count/new',
|
|
33
|
+
role: 'getProspectCountNew',
|
|
34
|
+
name: 'Get new prospect count',
|
|
35
|
+
response_200: {},
|
|
36
|
+
response_500: {},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
method: 'get',
|
|
40
|
+
path: '/prospect/:id',
|
|
41
|
+
role: 'getProspectById',
|
|
42
|
+
name: 'Get prospect by ID',
|
|
43
|
+
response_200: {},
|
|
44
|
+
response_404: {},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
method: 'get',
|
|
48
|
+
path: '/prospect/email/track',
|
|
49
|
+
role: 'getProspectEmailTrack',
|
|
50
|
+
name: 'Track prospect email',
|
|
51
|
+
response_200: {},
|
|
52
|
+
response_302: {},
|
|
53
|
+
response_400: {},
|
|
54
|
+
response_500: {},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
method: 'put',
|
|
58
|
+
path: '/prospect/:id',
|
|
59
|
+
role: 'putProspectById',
|
|
60
|
+
name: 'Update prospect',
|
|
61
|
+
response_200: {},
|
|
62
|
+
response_404: {},
|
|
63
|
+
response_500: {},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
method: 'put',
|
|
67
|
+
path: '/prospect/opened/:id',
|
|
68
|
+
role: 'putProspectOpenedById',
|
|
69
|
+
name: 'Mark prospect opened',
|
|
70
|
+
response_200: {},
|
|
71
|
+
response_404: {},
|
|
72
|
+
response_500: {},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
method: 'delete',
|
|
76
|
+
path: '/prospect/:id',
|
|
77
|
+
role: 'deleteProspectById',
|
|
78
|
+
name: 'Delete prospect',
|
|
79
|
+
response_200: {},
|
|
80
|
+
response_404: {},
|
|
81
|
+
response_500: {},
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
};
|
|
85
|
+
exports.prospectRoleDefs = prospectRoleDefs;
|