@ibiliaze/global-vars 1.139.0 → 1.141.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/inputsDefault.d.ts +32 -0
- package/dist/ticketops/roles/account.d.ts +0 -3
- package/dist/ticketops/roles/admin.d.ts +0 -2
- package/dist/ticketops/roles/blog.d.ts +0 -3
- package/dist/ticketops/roles/campaign.d.ts +2 -5
- package/dist/ticketops/roles/category.d.ts +0 -3
- 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 +6 -5
- package/dist/ticketops/roles/event.js +2 -1
- 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 +0 -3
- package/dist/ticketops/roles/flow.d.ts +0 -4
- package/dist/ticketops/roles/google.d.ts +4 -0
- package/dist/ticketops/roles/google.js +2 -0
- package/dist/ticketops/roles/group.d.ts +0 -4
- package/dist/ticketops/roles/info.d.ts +17 -0
- package/dist/ticketops/roles/info.js +3 -0
- package/dist/ticketops/roles/job.d.ts +0 -5
- package/dist/ticketops/roles/log.d.ts +0 -1
- package/dist/ticketops/roles/notification.d.ts +0 -3
- package/dist/ticketops/roles/page.d.ts +0 -4
- package/dist/ticketops/roles/product.d.ts +0 -3
- package/dist/ticketops/roles/prospect.d.ts +0 -4
- package/dist/ticketops/roles/quota.d.ts +13 -0
- package/dist/ticketops/roles/quota.js +3 -0
- 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 +63 -1
- package/dist/ticketops/roles/sale.js +64 -14
- package/dist/ticketops/roles/schema.d.ts +7 -0
- package/dist/ticketops/roles/schema.js +3 -0
- 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 +2075 -211
- package/dist/ticketops/roles.js +20 -20
- package/package.json +2 -2
|
@@ -290,6 +290,16 @@ export interface CampaignBase<Id, TDate> {
|
|
|
290
290
|
createdAt?: TDate;
|
|
291
291
|
updatedAt?: TDate;
|
|
292
292
|
}
|
|
293
|
+
export interface CampaignJobStage {
|
|
294
|
+
sent: number;
|
|
295
|
+
replies: number;
|
|
296
|
+
clicks: number;
|
|
297
|
+
opens: number;
|
|
298
|
+
totalProspects: number;
|
|
299
|
+
}
|
|
300
|
+
export interface CampaignJobStages {
|
|
301
|
+
[jobId: string]: CampaignJobStage;
|
|
302
|
+
}
|
|
293
303
|
export interface CategoryBase<Id, TDate> {
|
|
294
304
|
_id?: Id;
|
|
295
305
|
name: string;
|
|
@@ -725,6 +735,28 @@ export interface SaleBase<Id, TDate> {
|
|
|
725
735
|
createdAt?: TDate;
|
|
726
736
|
updatedAt?: TDate;
|
|
727
737
|
}
|
|
738
|
+
export interface SaleInsightData {
|
|
739
|
+
period: string;
|
|
740
|
+
salesData: {
|
|
741
|
+
[key: string]: number;
|
|
742
|
+
} | null;
|
|
743
|
+
expensesData: {
|
|
744
|
+
[key: string]: number;
|
|
745
|
+
} | null;
|
|
746
|
+
totalSales: number | null;
|
|
747
|
+
totalExpenses: number | null;
|
|
748
|
+
numberOfSalesData: {
|
|
749
|
+
[key: string]: number;
|
|
750
|
+
} | null;
|
|
751
|
+
numberOfExpensesData: {
|
|
752
|
+
[key: string]: number;
|
|
753
|
+
} | null;
|
|
754
|
+
growthData: {
|
|
755
|
+
[key: string]: number;
|
|
756
|
+
} | null;
|
|
757
|
+
numberOfSales: number | null;
|
|
758
|
+
numberOfExpenses: number | null;
|
|
759
|
+
}
|
|
728
760
|
export interface SectionBase<Id, TDate> {
|
|
729
761
|
_id?: Id;
|
|
730
762
|
name: string;
|
|
@@ -36,7 +36,6 @@ export declare const accountRoleDefs: <TId, TDate>() => readonly [{
|
|
|
36
36
|
};
|
|
37
37
|
readonly response_404: {
|
|
38
38
|
message: string;
|
|
39
|
-
error: string;
|
|
40
39
|
};
|
|
41
40
|
}, {
|
|
42
41
|
readonly method: "get";
|
|
@@ -68,7 +67,6 @@ export declare const accountRoleDefs: <TId, TDate>() => readonly [{
|
|
|
68
67
|
readonly role: "putAccountById";
|
|
69
68
|
readonly name: "Update account";
|
|
70
69
|
readonly response_404: {
|
|
71
|
-
account: AccountBase<TId, TDate> | null;
|
|
72
70
|
message: string;
|
|
73
71
|
};
|
|
74
72
|
readonly response_200: {
|
|
@@ -85,7 +83,6 @@ export declare const accountRoleDefs: <TId, TDate>() => readonly [{
|
|
|
85
83
|
readonly role: "deleteAccountById";
|
|
86
84
|
readonly name: "Delete account";
|
|
87
85
|
readonly response_404: {
|
|
88
|
-
account: AccountBase<TId, TDate> | null;
|
|
89
86
|
message: string;
|
|
90
87
|
};
|
|
91
88
|
readonly response_200: {
|
|
@@ -149,7 +149,6 @@ export declare const adminRoleDefs: <TId, TDate>() => readonly [{
|
|
|
149
149
|
message: string;
|
|
150
150
|
};
|
|
151
151
|
readonly response_404: {
|
|
152
|
-
admin: AdminBase<TId, TDate> | null;
|
|
153
152
|
message: string;
|
|
154
153
|
};
|
|
155
154
|
readonly response_500: {
|
|
@@ -166,7 +165,6 @@ export declare const adminRoleDefs: <TId, TDate>() => readonly [{
|
|
|
166
165
|
message: string;
|
|
167
166
|
};
|
|
168
167
|
readonly response_404: {
|
|
169
|
-
admin: AdminBase<TId, TDate> | null;
|
|
170
168
|
message: string;
|
|
171
169
|
};
|
|
172
170
|
readonly response_500: {
|
|
@@ -36,7 +36,6 @@ export declare const blogRoleDefs: <TId, TDate>() => readonly [{
|
|
|
36
36
|
};
|
|
37
37
|
readonly response_404: {
|
|
38
38
|
message: string;
|
|
39
|
-
error: string;
|
|
40
39
|
};
|
|
41
40
|
}, {
|
|
42
41
|
readonly method: "put";
|
|
@@ -48,7 +47,6 @@ export declare const blogRoleDefs: <TId, TDate>() => readonly [{
|
|
|
48
47
|
message: string;
|
|
49
48
|
};
|
|
50
49
|
readonly response_404: {
|
|
51
|
-
blog: BlogBase<TId, TDate> | null;
|
|
52
50
|
message: string;
|
|
53
51
|
};
|
|
54
52
|
readonly response_500: {
|
|
@@ -65,7 +63,6 @@ export declare const blogRoleDefs: <TId, TDate>() => readonly [{
|
|
|
65
63
|
message: string;
|
|
66
64
|
};
|
|
67
65
|
readonly response_404: {
|
|
68
|
-
blog: BlogBase<TId, TDate> | null;
|
|
69
66
|
message: string;
|
|
70
67
|
};
|
|
71
68
|
readonly response_500: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CampaignBase,
|
|
1
|
+
import type { CampaignBase, CampaignJobStage } from '../inputsDefault';
|
|
2
2
|
export declare const campaignRoleDefs: <TId, TDate>() => readonly [{
|
|
3
3
|
readonly method: "post";
|
|
4
4
|
readonly path: "/campaign";
|
|
@@ -69,7 +69,7 @@ export declare const campaignRoleDefs: <TId, TDate>() => readonly [{
|
|
|
69
69
|
readonly role: "getCampaignInsightById";
|
|
70
70
|
readonly name: "Get campaign insight";
|
|
71
71
|
readonly response_200: {
|
|
72
|
-
stages: (
|
|
72
|
+
stages: (CampaignJobStage & {
|
|
73
73
|
stageId: string;
|
|
74
74
|
}[]) | null;
|
|
75
75
|
};
|
|
@@ -91,7 +91,6 @@ export declare const campaignRoleDefs: <TId, TDate>() => readonly [{
|
|
|
91
91
|
};
|
|
92
92
|
readonly response_404: {
|
|
93
93
|
message: string;
|
|
94
|
-
error: string;
|
|
95
94
|
};
|
|
96
95
|
}, {
|
|
97
96
|
readonly method: "put";
|
|
@@ -103,7 +102,6 @@ export declare const campaignRoleDefs: <TId, TDate>() => readonly [{
|
|
|
103
102
|
message: string;
|
|
104
103
|
};
|
|
105
104
|
readonly response_404: {
|
|
106
|
-
campaign: CampaignBase<TId, TDate> | null;
|
|
107
105
|
message: string;
|
|
108
106
|
};
|
|
109
107
|
readonly response_500: {
|
|
@@ -120,7 +118,6 @@ export declare const campaignRoleDefs: <TId, TDate>() => readonly [{
|
|
|
120
118
|
message: string;
|
|
121
119
|
};
|
|
122
120
|
readonly response_404: {
|
|
123
|
-
campaign: CampaignBase<TId, TDate> | null;
|
|
124
121
|
message: string;
|
|
125
122
|
};
|
|
126
123
|
readonly response_500: {
|
|
@@ -36,7 +36,6 @@ export declare const categoryRoleDefs: <TId, TDate>() => readonly [{
|
|
|
36
36
|
};
|
|
37
37
|
readonly response_404: {
|
|
38
38
|
message: string;
|
|
39
|
-
error: string;
|
|
40
39
|
};
|
|
41
40
|
}, {
|
|
42
41
|
readonly method: "put";
|
|
@@ -48,7 +47,6 @@ export declare const categoryRoleDefs: <TId, TDate>() => readonly [{
|
|
|
48
47
|
message: string;
|
|
49
48
|
};
|
|
50
49
|
readonly response_404: {
|
|
51
|
-
category: CategoryBase<TId, TDate> | null;
|
|
52
50
|
message: string;
|
|
53
51
|
};
|
|
54
52
|
readonly response_500: {
|
|
@@ -65,7 +63,6 @@ export declare const categoryRoleDefs: <TId, TDate>() => readonly [{
|
|
|
65
63
|
message: string;
|
|
66
64
|
};
|
|
67
65
|
readonly response_404: {
|
|
68
|
-
category: CategoryBase<TId, TDate> | null;
|
|
69
66
|
message: string;
|
|
70
67
|
};
|
|
71
68
|
readonly response_500: {
|
|
@@ -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
|
];
|
|
@@ -5,7 +5,7 @@ export declare const eventRoleDefs: <TId, TDate>() => readonly [{
|
|
|
5
5
|
readonly role: "postEventBook";
|
|
6
6
|
readonly name: "Book event";
|
|
7
7
|
readonly response_201: {
|
|
8
|
-
|
|
8
|
+
url: string;
|
|
9
9
|
message: string;
|
|
10
10
|
};
|
|
11
11
|
readonly response_400: {
|
|
@@ -48,8 +48,9 @@ export declare const eventRoleDefs: <TId, TDate>() => readonly [{
|
|
|
48
48
|
readonly name: "Request booking cancel";
|
|
49
49
|
readonly response_200: {
|
|
50
50
|
message: string;
|
|
51
|
+
event: EventBase<TId, TDate>;
|
|
51
52
|
};
|
|
52
|
-
readonly
|
|
53
|
+
readonly response_404: {
|
|
53
54
|
message: string;
|
|
54
55
|
};
|
|
55
56
|
readonly response_500: {
|
|
@@ -65,6 +66,9 @@ export declare const eventRoleDefs: <TId, TDate>() => readonly [{
|
|
|
65
66
|
events: EventBase<TId, TDate>[];
|
|
66
67
|
count: number;
|
|
67
68
|
};
|
|
69
|
+
readonly response_404: {
|
|
70
|
+
message: string;
|
|
71
|
+
};
|
|
68
72
|
readonly response_500: {
|
|
69
73
|
message: string;
|
|
70
74
|
error: string;
|
|
@@ -80,7 +84,6 @@ export declare const eventRoleDefs: <TId, TDate>() => readonly [{
|
|
|
80
84
|
};
|
|
81
85
|
readonly response_404: {
|
|
82
86
|
message: string;
|
|
83
|
-
error: string;
|
|
84
87
|
};
|
|
85
88
|
}, {
|
|
86
89
|
readonly method: "put";
|
|
@@ -92,7 +95,6 @@ export declare const eventRoleDefs: <TId, TDate>() => readonly [{
|
|
|
92
95
|
message: string;
|
|
93
96
|
};
|
|
94
97
|
readonly response_404: {
|
|
95
|
-
event: EventBase<TId, TDate> | null;
|
|
96
98
|
message: string;
|
|
97
99
|
};
|
|
98
100
|
readonly response_500: {
|
|
@@ -122,7 +124,6 @@ export declare const eventRoleDefs: <TId, TDate>() => readonly [{
|
|
|
122
124
|
message: string;
|
|
123
125
|
};
|
|
124
126
|
readonly response_404: {
|
|
125
|
-
event: EventBase<TId, TDate> | null;
|
|
126
127
|
message: string;
|
|
127
128
|
};
|
|
128
129
|
readonly response_500: {
|
|
@@ -34,7 +34,7 @@ const eventRoleDefs = () => {
|
|
|
34
34
|
role: 'postEventBookCancel',
|
|
35
35
|
name: 'Request booking cancel',
|
|
36
36
|
response_200: {},
|
|
37
|
-
|
|
37
|
+
response_404: {},
|
|
38
38
|
response_500: {},
|
|
39
39
|
},
|
|
40
40
|
{
|
|
@@ -43,6 +43,7 @@ const eventRoleDefs = () => {
|
|
|
43
43
|
role: 'getEvents',
|
|
44
44
|
name: 'Get events',
|
|
45
45
|
response_200: {},
|
|
46
|
+
response_404: {},
|
|
46
47
|
response_500: {},
|
|
47
48
|
},
|
|
48
49
|
{
|
|
@@ -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
|
];
|
|
@@ -36,7 +36,6 @@ export declare const fixtureRoleDefs: <TId, TDate>() => readonly [{
|
|
|
36
36
|
};
|
|
37
37
|
readonly response_404: {
|
|
38
38
|
message: string;
|
|
39
|
-
error: string;
|
|
40
39
|
};
|
|
41
40
|
}, {
|
|
42
41
|
readonly method: "put";
|
|
@@ -48,7 +47,6 @@ export declare const fixtureRoleDefs: <TId, TDate>() => readonly [{
|
|
|
48
47
|
message: string;
|
|
49
48
|
};
|
|
50
49
|
readonly response_404: {
|
|
51
|
-
fixture: FixtureBase<TId, TDate> | null;
|
|
52
50
|
message: string;
|
|
53
51
|
};
|
|
54
52
|
readonly response_500: {
|
|
@@ -65,7 +63,6 @@ export declare const fixtureRoleDefs: <TId, TDate>() => readonly [{
|
|
|
65
63
|
message: string;
|
|
66
64
|
};
|
|
67
65
|
readonly response_404: {
|
|
68
|
-
fixture: FixtureBase<TId, TDate> | null;
|
|
69
66
|
message: string;
|
|
70
67
|
};
|
|
71
68
|
readonly response_500: {
|
|
@@ -48,7 +48,6 @@ export declare const flowFlowDefs: <TId, TDate>() => readonly [{
|
|
|
48
48
|
};
|
|
49
49
|
readonly response_404: {
|
|
50
50
|
message: string;
|
|
51
|
-
error: string;
|
|
52
51
|
};
|
|
53
52
|
}, {
|
|
54
53
|
readonly method: "put";
|
|
@@ -60,9 +59,7 @@ export declare const flowFlowDefs: <TId, TDate>() => readonly [{
|
|
|
60
59
|
message: string;
|
|
61
60
|
};
|
|
62
61
|
readonly response_404: {
|
|
63
|
-
flow: FlowBase<TId, TDate> | null;
|
|
64
62
|
message: string;
|
|
65
|
-
error?: string;
|
|
66
63
|
};
|
|
67
64
|
readonly response_500: {
|
|
68
65
|
message: string;
|
|
@@ -78,7 +75,6 @@ export declare const flowFlowDefs: <TId, TDate>() => readonly [{
|
|
|
78
75
|
message: string;
|
|
79
76
|
};
|
|
80
77
|
readonly response_404: {
|
|
81
|
-
flow: FlowBase<TId, TDate> | null;
|
|
82
78
|
message: string;
|
|
83
79
|
};
|
|
84
80
|
readonly response_500: {
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.googleRoleDefs = void 0;
|
|
4
4
|
exports.googleRoleDefs = [
|
|
5
|
+
// POST /util/google/webhook – handle webhook
|
|
5
6
|
{
|
|
6
7
|
method: 'post',
|
|
7
8
|
path: '/util/google/webhook',
|
|
8
9
|
role: 'postUtilGoogleWebhook',
|
|
9
10
|
name: 'Handle Google webhook',
|
|
11
|
+
response_200: {},
|
|
10
12
|
},
|
|
11
13
|
];
|
|
@@ -36,7 +36,6 @@ export declare const groupRoleDefs: <TId, TDate>() => readonly [{
|
|
|
36
36
|
};
|
|
37
37
|
readonly response_404: {
|
|
38
38
|
message: string;
|
|
39
|
-
error: string;
|
|
40
39
|
};
|
|
41
40
|
}, {
|
|
42
41
|
readonly method: "put";
|
|
@@ -48,9 +47,7 @@ export declare const groupRoleDefs: <TId, TDate>() => readonly [{
|
|
|
48
47
|
message: string;
|
|
49
48
|
};
|
|
50
49
|
readonly response_404: {
|
|
51
|
-
group?: GroupBase<TId, TDate> | null;
|
|
52
50
|
message: string;
|
|
53
|
-
error?: string;
|
|
54
51
|
};
|
|
55
52
|
readonly response_500: {
|
|
56
53
|
message: string;
|
|
@@ -66,7 +63,6 @@ export declare const groupRoleDefs: <TId, TDate>() => readonly [{
|
|
|
66
63
|
message: string;
|
|
67
64
|
};
|
|
68
65
|
readonly response_404: {
|
|
69
|
-
group?: GroupBase<TId, TDate> | null;
|
|
70
66
|
message: string;
|
|
71
67
|
};
|
|
72
68
|
readonly response_500: {
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
+
type InfoGeneral = {
|
|
2
|
+
quotesThisMonth: number;
|
|
3
|
+
salesThisMonth: number;
|
|
4
|
+
prospectsThisMonth: number;
|
|
5
|
+
projectsCompletedThisMonth: number;
|
|
6
|
+
};
|
|
7
|
+
type InfoProjects = {
|
|
8
|
+
activeProjectsThisMonth: unknown[];
|
|
9
|
+
};
|
|
10
|
+
type InfoPayload = InfoGeneral | InfoProjects | undefined;
|
|
1
11
|
export declare const infoRoleDefs: readonly [{
|
|
2
12
|
readonly method: "get";
|
|
3
13
|
readonly path: "/util/info/general";
|
|
4
14
|
readonly role: "getUtilInfoGeneral";
|
|
5
15
|
readonly name: "Get general util info";
|
|
16
|
+
readonly response_200: {
|
|
17
|
+
info: InfoPayload;
|
|
18
|
+
};
|
|
19
|
+
readonly response_400: {
|
|
20
|
+
message: string;
|
|
21
|
+
};
|
|
6
22
|
}];
|
|
23
|
+
export {};
|