@platformatic/watt-extra 0.1.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/README.md +87 -0
- package/app.js +124 -0
- package/cli.js +141 -0
- package/clients/compliance/compliance-types.d.ts +887 -0
- package/clients/compliance/compliance.mjs +1049 -0
- package/clients/compliance/compliance.openapi.json +6127 -0
- package/clients/control-plane/control-plane-types.d.ts +2696 -0
- package/clients/control-plane/control-plane.mjs +3051 -0
- package/clients/control-plane/control-plane.openapi.json +13693 -0
- package/clients/cron/cron-types.d.ts +1479 -0
- package/clients/cron/cron.mjs +872 -0
- package/clients/cron/cron.openapi.json +9330 -0
- package/compliance/index.js +21 -0
- package/compliance/rules/dependencies.js +76 -0
- package/compliance/rules/utils.js +12 -0
- package/eslint.config.js +11 -0
- package/help/start.txt +12 -0
- package/help/watt-extra.txt +12 -0
- package/index.js +45 -0
- package/lib/banner.js +22 -0
- package/lib/errors.js +34 -0
- package/lib/utils.js +34 -0
- package/lib/wattpro.js +580 -0
- package/package.json +50 -0
- package/plugins/alerts.js +115 -0
- package/plugins/auth.js +89 -0
- package/plugins/compliancy.js +70 -0
- package/plugins/env.js +58 -0
- package/plugins/flamegraphs.js +100 -0
- package/plugins/init.js +70 -0
- package/plugins/metadata.js +84 -0
- package/plugins/scheduler.js +48 -0
- package/plugins/update.js +128 -0
- package/renovate.json +6 -0
- package/test/alerts.test.js +607 -0
- package/test/auth.test.js +128 -0
- package/test/auto-cache.test.js +401 -0
- package/test/cli.test.js +75 -0
- package/test/compliancy.test.js +87 -0
- package/test/fixtures/runtime-domains/alpha/package.json +5 -0
- package/test/fixtures/runtime-domains/alpha/platformatic.json +6 -0
- package/test/fixtures/runtime-domains/alpha/plugin.js +16 -0
- package/test/fixtures/runtime-domains/beta/package.json +5 -0
- package/test/fixtures/runtime-domains/beta/platformatic.json +6 -0
- package/test/fixtures/runtime-domains/beta/plugin.js +7 -0
- package/test/fixtures/runtime-domains/composer/package.json +5 -0
- package/test/fixtures/runtime-domains/composer/platformatic.json +19 -0
- package/test/fixtures/runtime-domains/package.json +1 -0
- package/test/fixtures/runtime-domains/platformatic.json +27 -0
- package/test/fixtures/runtime-health/package.json +20 -0
- package/test/fixtures/runtime-health/platformatic.json +16 -0
- package/test/fixtures/runtime-health/services/service-1/package.json +17 -0
- package/test/fixtures/runtime-health/services/service-1/platformatic.json +16 -0
- package/test/fixtures/runtime-health/services/service-1/plugins/example.js +6 -0
- package/test/fixtures/runtime-health/services/service-1/routes/root.cjs +8 -0
- package/test/fixtures/runtime-health/services/service-2/package.json +17 -0
- package/test/fixtures/runtime-health/services/service-2/platformatic.json +16 -0
- package/test/fixtures/runtime-health/services/service-2/plugins/example.js +6 -0
- package/test/fixtures/runtime-health/services/service-2/routes/root.cjs +8 -0
- package/test/fixtures/runtime-next/package.json +5 -0
- package/test/fixtures/runtime-next/platformatic.json +9 -0
- package/test/fixtures/runtime-next/web/next/next.config.js +2 -0
- package/test/fixtures/runtime-next/web/next/package.json +7 -0
- package/test/fixtures/runtime-next/web/next/platformatic.json +9 -0
- package/test/fixtures/runtime-next/web/next/src/app/direct/route.js +3 -0
- package/test/fixtures/runtime-next/web/next/src/app/layout.jsx +7 -0
- package/test/fixtures/runtime-next/web/next/src/app/page.jsx +3 -0
- package/test/fixtures/runtime-scheduler/main/package.json +5 -0
- package/test/fixtures/runtime-scheduler/main/platformatic.json +9 -0
- package/test/fixtures/runtime-scheduler/main/routes/root.cjs +11 -0
- package/test/fixtures/runtime-scheduler/package.json +1 -0
- package/test/fixtures/runtime-scheduler/platformatic.json +27 -0
- package/test/fixtures/runtime-service/main/package.json +5 -0
- package/test/fixtures/runtime-service/main/platformatic.json +12 -0
- package/test/fixtures/runtime-service/main/routes/root.cjs +11 -0
- package/test/fixtures/runtime-service/package.json +1 -0
- package/test/fixtures/runtime-service/platformatic.json +19 -0
- package/test/fixtures/service-1/package.json +7 -0
- package/test/fixtures/service-1/platformatic.json +18 -0
- package/test/fixtures/service-1/routes/root.cjs +48 -0
- package/test/fixtures/service-2/platformatic.json +21 -0
- package/test/fixtures/service-2/routes/root.cjs +5 -0
- package/test/fixtures/service-3/package.json +5 -0
- package/test/fixtures/service-3/platformatic.json +21 -0
- package/test/fixtures/service-3/routes/root.cjs +8 -0
- package/test/health.test.js +44 -0
- package/test/helper.js +274 -0
- package/test/init.test.js +243 -0
- package/test/patch-config.test.js +434 -0
- package/test/scheduler.test.js +71 -0
- package/test/send-to-icc-retry.test.js +138 -0
- package/test/shared-context.test.js +82 -0
- package/test/spawn.test.js +110 -0
- package/test/trigger-flamegraphs.test.js +226 -0
- package/test/update.test.js +519 -0
|
@@ -0,0 +1,887 @@
|
|
|
1
|
+
export interface FullResponse<T, U extends number> {
|
|
2
|
+
'statusCode': U;
|
|
3
|
+
'headers': object;
|
|
4
|
+
'body': T;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type GetReportsRequest = {
|
|
8
|
+
'limit'?: number;
|
|
9
|
+
'offset'?: number;
|
|
10
|
+
'totalCount'?: boolean;
|
|
11
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'id' | 'result' | 'ruleSet'>;
|
|
12
|
+
'where.applicationId.eq'?: string;
|
|
13
|
+
'where.applicationId.neq'?: string;
|
|
14
|
+
'where.applicationId.gt'?: string;
|
|
15
|
+
'where.applicationId.gte'?: string;
|
|
16
|
+
'where.applicationId.lt'?: string;
|
|
17
|
+
'where.applicationId.lte'?: string;
|
|
18
|
+
'where.applicationId.like'?: string;
|
|
19
|
+
'where.applicationId.in'?: string;
|
|
20
|
+
'where.applicationId.nin'?: string;
|
|
21
|
+
'where.applicationId.contains'?: string;
|
|
22
|
+
'where.applicationId.contained'?: string;
|
|
23
|
+
'where.applicationId.overlaps'?: string;
|
|
24
|
+
'where.bundleId.eq'?: string;
|
|
25
|
+
'where.bundleId.neq'?: string;
|
|
26
|
+
'where.bundleId.gt'?: string;
|
|
27
|
+
'where.bundleId.gte'?: string;
|
|
28
|
+
'where.bundleId.lt'?: string;
|
|
29
|
+
'where.bundleId.lte'?: string;
|
|
30
|
+
'where.bundleId.like'?: string;
|
|
31
|
+
'where.bundleId.in'?: string;
|
|
32
|
+
'where.bundleId.nin'?: string;
|
|
33
|
+
'where.bundleId.contains'?: string;
|
|
34
|
+
'where.bundleId.contained'?: string;
|
|
35
|
+
'where.bundleId.overlaps'?: string;
|
|
36
|
+
'where.createdAt.eq'?: string;
|
|
37
|
+
'where.createdAt.neq'?: string;
|
|
38
|
+
'where.createdAt.gt'?: string;
|
|
39
|
+
'where.createdAt.gte'?: string;
|
|
40
|
+
'where.createdAt.lt'?: string;
|
|
41
|
+
'where.createdAt.lte'?: string;
|
|
42
|
+
'where.createdAt.like'?: string;
|
|
43
|
+
'where.createdAt.in'?: string;
|
|
44
|
+
'where.createdAt.nin'?: string;
|
|
45
|
+
'where.createdAt.contains'?: string;
|
|
46
|
+
'where.createdAt.contained'?: string;
|
|
47
|
+
'where.createdAt.overlaps'?: string;
|
|
48
|
+
'where.id.eq'?: string;
|
|
49
|
+
'where.id.neq'?: string;
|
|
50
|
+
'where.id.gt'?: string;
|
|
51
|
+
'where.id.gte'?: string;
|
|
52
|
+
'where.id.lt'?: string;
|
|
53
|
+
'where.id.lte'?: string;
|
|
54
|
+
'where.id.like'?: string;
|
|
55
|
+
'where.id.in'?: string;
|
|
56
|
+
'where.id.nin'?: string;
|
|
57
|
+
'where.id.contains'?: string;
|
|
58
|
+
'where.id.contained'?: string;
|
|
59
|
+
'where.id.overlaps'?: string;
|
|
60
|
+
'where.result.eq'?: boolean;
|
|
61
|
+
'where.result.neq'?: boolean;
|
|
62
|
+
'where.result.gt'?: boolean;
|
|
63
|
+
'where.result.gte'?: boolean;
|
|
64
|
+
'where.result.lt'?: boolean;
|
|
65
|
+
'where.result.lte'?: boolean;
|
|
66
|
+
'where.result.like'?: boolean;
|
|
67
|
+
'where.result.in'?: string;
|
|
68
|
+
'where.result.nin'?: string;
|
|
69
|
+
'where.result.contains'?: string;
|
|
70
|
+
'where.result.contained'?: string;
|
|
71
|
+
'where.result.overlaps'?: string;
|
|
72
|
+
'where.ruleSet.eq'?: string;
|
|
73
|
+
'where.ruleSet.neq'?: string;
|
|
74
|
+
'where.ruleSet.gt'?: string;
|
|
75
|
+
'where.ruleSet.gte'?: string;
|
|
76
|
+
'where.ruleSet.lt'?: string;
|
|
77
|
+
'where.ruleSet.lte'?: string;
|
|
78
|
+
'where.ruleSet.like'?: string;
|
|
79
|
+
'where.ruleSet.in'?: string;
|
|
80
|
+
'where.ruleSet.nin'?: string;
|
|
81
|
+
'where.ruleSet.contains'?: string;
|
|
82
|
+
'where.ruleSet.contained'?: string;
|
|
83
|
+
'where.ruleSet.overlaps'?: string;
|
|
84
|
+
'where.or'?: Array<string>;
|
|
85
|
+
'orderby.applicationId'?: 'asc' | 'desc';
|
|
86
|
+
'orderby.bundleId'?: 'asc' | 'desc';
|
|
87
|
+
'orderby.createdAt'?: 'asc' | 'desc';
|
|
88
|
+
'orderby.id'?: 'asc' | 'desc';
|
|
89
|
+
'orderby.result'?: 'asc' | 'desc';
|
|
90
|
+
'orderby.ruleSet'?: 'asc' | 'desc';
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type GetReportsResponseOK = Array<{ 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'result'?: boolean | null; 'ruleSet'?: object; 'createdAt'?: string | null }>
|
|
94
|
+
export type GetReportsResponses =
|
|
95
|
+
GetReportsResponseOK
|
|
96
|
+
|
|
97
|
+
export type CreateReportRequest = {
|
|
98
|
+
'id'?: string;
|
|
99
|
+
'applicationId'?: string | null;
|
|
100
|
+
'bundleId'?: string | null;
|
|
101
|
+
'result': boolean;
|
|
102
|
+
'ruleSet': object;
|
|
103
|
+
'createdAt'?: string | null;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type CreateReportResponseOK = { 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'result'?: boolean | null; 'ruleSet'?: object; 'createdAt'?: string | null }
|
|
107
|
+
export type CreateReportResponses =
|
|
108
|
+
CreateReportResponseOK
|
|
109
|
+
|
|
110
|
+
export type UpdateReportsRequest = {
|
|
111
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'id' | 'result' | 'ruleSet'>;
|
|
112
|
+
'where.applicationId.eq'?: string;
|
|
113
|
+
'where.applicationId.neq'?: string;
|
|
114
|
+
'where.applicationId.gt'?: string;
|
|
115
|
+
'where.applicationId.gte'?: string;
|
|
116
|
+
'where.applicationId.lt'?: string;
|
|
117
|
+
'where.applicationId.lte'?: string;
|
|
118
|
+
'where.applicationId.like'?: string;
|
|
119
|
+
'where.applicationId.in'?: string;
|
|
120
|
+
'where.applicationId.nin'?: string;
|
|
121
|
+
'where.applicationId.contains'?: string;
|
|
122
|
+
'where.applicationId.contained'?: string;
|
|
123
|
+
'where.applicationId.overlaps'?: string;
|
|
124
|
+
'where.bundleId.eq'?: string;
|
|
125
|
+
'where.bundleId.neq'?: string;
|
|
126
|
+
'where.bundleId.gt'?: string;
|
|
127
|
+
'where.bundleId.gte'?: string;
|
|
128
|
+
'where.bundleId.lt'?: string;
|
|
129
|
+
'where.bundleId.lte'?: string;
|
|
130
|
+
'where.bundleId.like'?: string;
|
|
131
|
+
'where.bundleId.in'?: string;
|
|
132
|
+
'where.bundleId.nin'?: string;
|
|
133
|
+
'where.bundleId.contains'?: string;
|
|
134
|
+
'where.bundleId.contained'?: string;
|
|
135
|
+
'where.bundleId.overlaps'?: string;
|
|
136
|
+
'where.createdAt.eq'?: string;
|
|
137
|
+
'where.createdAt.neq'?: string;
|
|
138
|
+
'where.createdAt.gt'?: string;
|
|
139
|
+
'where.createdAt.gte'?: string;
|
|
140
|
+
'where.createdAt.lt'?: string;
|
|
141
|
+
'where.createdAt.lte'?: string;
|
|
142
|
+
'where.createdAt.like'?: string;
|
|
143
|
+
'where.createdAt.in'?: string;
|
|
144
|
+
'where.createdAt.nin'?: string;
|
|
145
|
+
'where.createdAt.contains'?: string;
|
|
146
|
+
'where.createdAt.contained'?: string;
|
|
147
|
+
'where.createdAt.overlaps'?: string;
|
|
148
|
+
'where.id.eq'?: string;
|
|
149
|
+
'where.id.neq'?: string;
|
|
150
|
+
'where.id.gt'?: string;
|
|
151
|
+
'where.id.gte'?: string;
|
|
152
|
+
'where.id.lt'?: string;
|
|
153
|
+
'where.id.lte'?: string;
|
|
154
|
+
'where.id.like'?: string;
|
|
155
|
+
'where.id.in'?: string;
|
|
156
|
+
'where.id.nin'?: string;
|
|
157
|
+
'where.id.contains'?: string;
|
|
158
|
+
'where.id.contained'?: string;
|
|
159
|
+
'where.id.overlaps'?: string;
|
|
160
|
+
'where.result.eq'?: boolean;
|
|
161
|
+
'where.result.neq'?: boolean;
|
|
162
|
+
'where.result.gt'?: boolean;
|
|
163
|
+
'where.result.gte'?: boolean;
|
|
164
|
+
'where.result.lt'?: boolean;
|
|
165
|
+
'where.result.lte'?: boolean;
|
|
166
|
+
'where.result.like'?: boolean;
|
|
167
|
+
'where.result.in'?: string;
|
|
168
|
+
'where.result.nin'?: string;
|
|
169
|
+
'where.result.contains'?: string;
|
|
170
|
+
'where.result.contained'?: string;
|
|
171
|
+
'where.result.overlaps'?: string;
|
|
172
|
+
'where.ruleSet.eq'?: string;
|
|
173
|
+
'where.ruleSet.neq'?: string;
|
|
174
|
+
'where.ruleSet.gt'?: string;
|
|
175
|
+
'where.ruleSet.gte'?: string;
|
|
176
|
+
'where.ruleSet.lt'?: string;
|
|
177
|
+
'where.ruleSet.lte'?: string;
|
|
178
|
+
'where.ruleSet.like'?: string;
|
|
179
|
+
'where.ruleSet.in'?: string;
|
|
180
|
+
'where.ruleSet.nin'?: string;
|
|
181
|
+
'where.ruleSet.contains'?: string;
|
|
182
|
+
'where.ruleSet.contained'?: string;
|
|
183
|
+
'where.ruleSet.overlaps'?: string;
|
|
184
|
+
'where.or'?: Array<string>;
|
|
185
|
+
'id'?: string;
|
|
186
|
+
'applicationId'?: string | null;
|
|
187
|
+
'bundleId'?: string | null;
|
|
188
|
+
'result': boolean;
|
|
189
|
+
'ruleSet': object;
|
|
190
|
+
'createdAt'?: string | null;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type UpdateReportsResponseOK = Array<{ 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'result'?: boolean | null; 'ruleSet'?: object; 'createdAt'?: string | null }>
|
|
194
|
+
export type UpdateReportsResponses =
|
|
195
|
+
UpdateReportsResponseOK
|
|
196
|
+
|
|
197
|
+
export type GetReportByIdRequest = {
|
|
198
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'id' | 'result' | 'ruleSet'>;
|
|
199
|
+
'id': string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type GetReportByIdResponseOK = { 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'result'?: boolean | null; 'ruleSet'?: object; 'createdAt'?: string | null }
|
|
203
|
+
export type GetReportByIdResponses =
|
|
204
|
+
GetReportByIdResponseOK
|
|
205
|
+
|
|
206
|
+
export type UpdateReportRequest = {
|
|
207
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'id' | 'result' | 'ruleSet'>;
|
|
208
|
+
'id': string;
|
|
209
|
+
'applicationId'?: string | null;
|
|
210
|
+
'bundleId'?: string | null;
|
|
211
|
+
'result': boolean;
|
|
212
|
+
'ruleSet': object;
|
|
213
|
+
'createdAt'?: string | null;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type UpdateReportResponseOK = { 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'result'?: boolean | null; 'ruleSet'?: object; 'createdAt'?: string | null }
|
|
217
|
+
export type UpdateReportResponses =
|
|
218
|
+
UpdateReportResponseOK
|
|
219
|
+
|
|
220
|
+
export type DeleteReportsRequest = {
|
|
221
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'id' | 'result' | 'ruleSet'>;
|
|
222
|
+
'id': string;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export type DeleteReportsResponseOK = { 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'result'?: boolean | null; 'ruleSet'?: object; 'createdAt'?: string | null }
|
|
226
|
+
export type DeleteReportsResponses =
|
|
227
|
+
DeleteReportsResponseOK
|
|
228
|
+
|
|
229
|
+
export type CreateRuleRequest = {
|
|
230
|
+
'id'?: string;
|
|
231
|
+
'name'?: string | null;
|
|
232
|
+
'description'?: string | null;
|
|
233
|
+
'label'?: string | null;
|
|
234
|
+
'config': object;
|
|
235
|
+
'createdAt'?: string | null;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type CreateRuleResponseOK = { 'id'?: string | null; 'name'?: string | null; 'description'?: string | null; 'label'?: string | null; 'config'?: object; 'createdAt'?: string | null }
|
|
239
|
+
export type CreateRuleResponses =
|
|
240
|
+
CreateRuleResponseOK
|
|
241
|
+
|
|
242
|
+
export type UpdateRulesRequest = {
|
|
243
|
+
'fields'?: Array<'config' | 'createdAt' | 'description' | 'id' | 'label' | 'name'>;
|
|
244
|
+
'where.config.eq'?: string;
|
|
245
|
+
'where.config.neq'?: string;
|
|
246
|
+
'where.config.gt'?: string;
|
|
247
|
+
'where.config.gte'?: string;
|
|
248
|
+
'where.config.lt'?: string;
|
|
249
|
+
'where.config.lte'?: string;
|
|
250
|
+
'where.config.like'?: string;
|
|
251
|
+
'where.config.in'?: string;
|
|
252
|
+
'where.config.nin'?: string;
|
|
253
|
+
'where.config.contains'?: string;
|
|
254
|
+
'where.config.contained'?: string;
|
|
255
|
+
'where.config.overlaps'?: string;
|
|
256
|
+
'where.createdAt.eq'?: string;
|
|
257
|
+
'where.createdAt.neq'?: string;
|
|
258
|
+
'where.createdAt.gt'?: string;
|
|
259
|
+
'where.createdAt.gte'?: string;
|
|
260
|
+
'where.createdAt.lt'?: string;
|
|
261
|
+
'where.createdAt.lte'?: string;
|
|
262
|
+
'where.createdAt.like'?: string;
|
|
263
|
+
'where.createdAt.in'?: string;
|
|
264
|
+
'where.createdAt.nin'?: string;
|
|
265
|
+
'where.createdAt.contains'?: string;
|
|
266
|
+
'where.createdAt.contained'?: string;
|
|
267
|
+
'where.createdAt.overlaps'?: string;
|
|
268
|
+
'where.description.eq'?: string;
|
|
269
|
+
'where.description.neq'?: string;
|
|
270
|
+
'where.description.gt'?: string;
|
|
271
|
+
'where.description.gte'?: string;
|
|
272
|
+
'where.description.lt'?: string;
|
|
273
|
+
'where.description.lte'?: string;
|
|
274
|
+
'where.description.like'?: string;
|
|
275
|
+
'where.description.in'?: string;
|
|
276
|
+
'where.description.nin'?: string;
|
|
277
|
+
'where.description.contains'?: string;
|
|
278
|
+
'where.description.contained'?: string;
|
|
279
|
+
'where.description.overlaps'?: string;
|
|
280
|
+
'where.id.eq'?: string;
|
|
281
|
+
'where.id.neq'?: string;
|
|
282
|
+
'where.id.gt'?: string;
|
|
283
|
+
'where.id.gte'?: string;
|
|
284
|
+
'where.id.lt'?: string;
|
|
285
|
+
'where.id.lte'?: string;
|
|
286
|
+
'where.id.like'?: string;
|
|
287
|
+
'where.id.in'?: string;
|
|
288
|
+
'where.id.nin'?: string;
|
|
289
|
+
'where.id.contains'?: string;
|
|
290
|
+
'where.id.contained'?: string;
|
|
291
|
+
'where.id.overlaps'?: string;
|
|
292
|
+
'where.label.eq'?: string;
|
|
293
|
+
'where.label.neq'?: string;
|
|
294
|
+
'where.label.gt'?: string;
|
|
295
|
+
'where.label.gte'?: string;
|
|
296
|
+
'where.label.lt'?: string;
|
|
297
|
+
'where.label.lte'?: string;
|
|
298
|
+
'where.label.like'?: string;
|
|
299
|
+
'where.label.in'?: string;
|
|
300
|
+
'where.label.nin'?: string;
|
|
301
|
+
'where.label.contains'?: string;
|
|
302
|
+
'where.label.contained'?: string;
|
|
303
|
+
'where.label.overlaps'?: string;
|
|
304
|
+
'where.name.eq'?: string;
|
|
305
|
+
'where.name.neq'?: string;
|
|
306
|
+
'where.name.gt'?: string;
|
|
307
|
+
'where.name.gte'?: string;
|
|
308
|
+
'where.name.lt'?: string;
|
|
309
|
+
'where.name.lte'?: string;
|
|
310
|
+
'where.name.like'?: string;
|
|
311
|
+
'where.name.in'?: string;
|
|
312
|
+
'where.name.nin'?: string;
|
|
313
|
+
'where.name.contains'?: string;
|
|
314
|
+
'where.name.contained'?: string;
|
|
315
|
+
'where.name.overlaps'?: string;
|
|
316
|
+
'where.or'?: Array<string>;
|
|
317
|
+
'id'?: string;
|
|
318
|
+
'name'?: string | null;
|
|
319
|
+
'description'?: string | null;
|
|
320
|
+
'label'?: string | null;
|
|
321
|
+
'config': object;
|
|
322
|
+
'createdAt'?: string | null;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export type UpdateRulesResponseOK = Array<{ 'id'?: string | null; 'name'?: string | null; 'description'?: string | null; 'label'?: string | null; 'config'?: object; 'createdAt'?: string | null }>
|
|
326
|
+
export type UpdateRulesResponses =
|
|
327
|
+
UpdateRulesResponseOK
|
|
328
|
+
|
|
329
|
+
export type GetRuleByIdRequest = {
|
|
330
|
+
'fields'?: Array<'config' | 'createdAt' | 'description' | 'id' | 'label' | 'name'>;
|
|
331
|
+
'id': string;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export type GetRuleByIdResponseOK = { 'id'?: string | null; 'name'?: string | null; 'description'?: string | null; 'label'?: string | null; 'config'?: object; 'createdAt'?: string | null }
|
|
335
|
+
export type GetRuleByIdResponses =
|
|
336
|
+
GetRuleByIdResponseOK
|
|
337
|
+
|
|
338
|
+
export type UpdateRuleRequest = {
|
|
339
|
+
'fields'?: Array<'config' | 'createdAt' | 'description' | 'id' | 'label' | 'name'>;
|
|
340
|
+
'id': string;
|
|
341
|
+
'name'?: string | null;
|
|
342
|
+
'description'?: string | null;
|
|
343
|
+
'label'?: string | null;
|
|
344
|
+
'config': object;
|
|
345
|
+
'createdAt'?: string | null;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type UpdateRuleResponseOK = { 'id'?: string | null; 'name'?: string | null; 'description'?: string | null; 'label'?: string | null; 'config'?: object; 'createdAt'?: string | null }
|
|
349
|
+
export type UpdateRuleResponses =
|
|
350
|
+
UpdateRuleResponseOK
|
|
351
|
+
|
|
352
|
+
export type DeleteRulesRequest = {
|
|
353
|
+
'fields'?: Array<'config' | 'createdAt' | 'description' | 'id' | 'label' | 'name'>;
|
|
354
|
+
'id': string;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export type DeleteRulesResponseOK = { 'id'?: string | null; 'name'?: string | null; 'description'?: string | null; 'label'?: string | null; 'config'?: object; 'createdAt'?: string | null }
|
|
358
|
+
export type DeleteRulesResponses =
|
|
359
|
+
DeleteRulesResponseOK
|
|
360
|
+
|
|
361
|
+
export type GetRuleConfigsForRuleRequest = {
|
|
362
|
+
'fields'?: Array<'applicationId' | 'createdAt' | 'enabled' | 'id' | 'options' | 'ruleId' | 'type'>;
|
|
363
|
+
'id': string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export type GetRuleConfigsForRuleResponseOK = Array<{ 'id'?: string | null; 'type'?: 'global' | 'local'; 'applicationId'?: string | null; 'enabled'?: boolean | null; 'ruleId'?: string | null; 'options'?: object; 'createdAt'?: string | null }>
|
|
367
|
+
export type GetRuleConfigsForRuleResponses =
|
|
368
|
+
GetRuleConfigsForRuleResponseOK
|
|
369
|
+
|
|
370
|
+
export type GetRuleConfigsRequest = {
|
|
371
|
+
'limit'?: number;
|
|
372
|
+
'offset'?: number;
|
|
373
|
+
'totalCount'?: boolean;
|
|
374
|
+
'fields'?: Array<'applicationId' | 'createdAt' | 'enabled' | 'id' | 'options' | 'ruleId' | 'type'>;
|
|
375
|
+
'where.applicationId.eq'?: string;
|
|
376
|
+
'where.applicationId.neq'?: string;
|
|
377
|
+
'where.applicationId.gt'?: string;
|
|
378
|
+
'where.applicationId.gte'?: string;
|
|
379
|
+
'where.applicationId.lt'?: string;
|
|
380
|
+
'where.applicationId.lte'?: string;
|
|
381
|
+
'where.applicationId.like'?: string;
|
|
382
|
+
'where.applicationId.in'?: string;
|
|
383
|
+
'where.applicationId.nin'?: string;
|
|
384
|
+
'where.applicationId.contains'?: string;
|
|
385
|
+
'where.applicationId.contained'?: string;
|
|
386
|
+
'where.applicationId.overlaps'?: string;
|
|
387
|
+
'where.createdAt.eq'?: string;
|
|
388
|
+
'where.createdAt.neq'?: string;
|
|
389
|
+
'where.createdAt.gt'?: string;
|
|
390
|
+
'where.createdAt.gte'?: string;
|
|
391
|
+
'where.createdAt.lt'?: string;
|
|
392
|
+
'where.createdAt.lte'?: string;
|
|
393
|
+
'where.createdAt.like'?: string;
|
|
394
|
+
'where.createdAt.in'?: string;
|
|
395
|
+
'where.createdAt.nin'?: string;
|
|
396
|
+
'where.createdAt.contains'?: string;
|
|
397
|
+
'where.createdAt.contained'?: string;
|
|
398
|
+
'where.createdAt.overlaps'?: string;
|
|
399
|
+
'where.enabled.eq'?: boolean;
|
|
400
|
+
'where.enabled.neq'?: boolean;
|
|
401
|
+
'where.enabled.gt'?: boolean;
|
|
402
|
+
'where.enabled.gte'?: boolean;
|
|
403
|
+
'where.enabled.lt'?: boolean;
|
|
404
|
+
'where.enabled.lte'?: boolean;
|
|
405
|
+
'where.enabled.like'?: boolean;
|
|
406
|
+
'where.enabled.in'?: string;
|
|
407
|
+
'where.enabled.nin'?: string;
|
|
408
|
+
'where.enabled.contains'?: string;
|
|
409
|
+
'where.enabled.contained'?: string;
|
|
410
|
+
'where.enabled.overlaps'?: string;
|
|
411
|
+
'where.id.eq'?: string;
|
|
412
|
+
'where.id.neq'?: string;
|
|
413
|
+
'where.id.gt'?: string;
|
|
414
|
+
'where.id.gte'?: string;
|
|
415
|
+
'where.id.lt'?: string;
|
|
416
|
+
'where.id.lte'?: string;
|
|
417
|
+
'where.id.like'?: string;
|
|
418
|
+
'where.id.in'?: string;
|
|
419
|
+
'where.id.nin'?: string;
|
|
420
|
+
'where.id.contains'?: string;
|
|
421
|
+
'where.id.contained'?: string;
|
|
422
|
+
'where.id.overlaps'?: string;
|
|
423
|
+
'where.options.eq'?: string;
|
|
424
|
+
'where.options.neq'?: string;
|
|
425
|
+
'where.options.gt'?: string;
|
|
426
|
+
'where.options.gte'?: string;
|
|
427
|
+
'where.options.lt'?: string;
|
|
428
|
+
'where.options.lte'?: string;
|
|
429
|
+
'where.options.like'?: string;
|
|
430
|
+
'where.options.in'?: string;
|
|
431
|
+
'where.options.nin'?: string;
|
|
432
|
+
'where.options.contains'?: string;
|
|
433
|
+
'where.options.contained'?: string;
|
|
434
|
+
'where.options.overlaps'?: string;
|
|
435
|
+
'where.ruleId.eq'?: string;
|
|
436
|
+
'where.ruleId.neq'?: string;
|
|
437
|
+
'where.ruleId.gt'?: string;
|
|
438
|
+
'where.ruleId.gte'?: string;
|
|
439
|
+
'where.ruleId.lt'?: string;
|
|
440
|
+
'where.ruleId.lte'?: string;
|
|
441
|
+
'where.ruleId.like'?: string;
|
|
442
|
+
'where.ruleId.in'?: string;
|
|
443
|
+
'where.ruleId.nin'?: string;
|
|
444
|
+
'where.ruleId.contains'?: string;
|
|
445
|
+
'where.ruleId.contained'?: string;
|
|
446
|
+
'where.ruleId.overlaps'?: string;
|
|
447
|
+
'where.type.eq'?: 'global' | 'local';
|
|
448
|
+
'where.type.neq'?: 'global' | 'local';
|
|
449
|
+
'where.type.gt'?: 'global' | 'local';
|
|
450
|
+
'where.type.gte'?: 'global' | 'local';
|
|
451
|
+
'where.type.lt'?: 'global' | 'local';
|
|
452
|
+
'where.type.lte'?: 'global' | 'local';
|
|
453
|
+
'where.type.like'?: 'global' | 'local';
|
|
454
|
+
'where.type.in'?: string;
|
|
455
|
+
'where.type.nin'?: string;
|
|
456
|
+
'where.type.contains'?: string;
|
|
457
|
+
'where.type.contained'?: string;
|
|
458
|
+
'where.type.overlaps'?: string;
|
|
459
|
+
'where.or'?: Array<string>;
|
|
460
|
+
'orderby.applicationId'?: 'asc' | 'desc';
|
|
461
|
+
'orderby.createdAt'?: 'asc' | 'desc';
|
|
462
|
+
'orderby.enabled'?: 'asc' | 'desc';
|
|
463
|
+
'orderby.id'?: 'asc' | 'desc';
|
|
464
|
+
'orderby.options'?: 'asc' | 'desc';
|
|
465
|
+
'orderby.ruleId'?: 'asc' | 'desc';
|
|
466
|
+
'orderby.type'?: 'asc' | 'desc';
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export type GetRuleConfigsResponseOK = Array<{ 'id'?: string | null; 'type'?: 'global' | 'local'; 'applicationId'?: string | null; 'enabled'?: boolean | null; 'ruleId'?: string | null; 'options'?: object; 'createdAt'?: string | null }>
|
|
470
|
+
export type GetRuleConfigsResponses =
|
|
471
|
+
GetRuleConfigsResponseOK
|
|
472
|
+
|
|
473
|
+
export type CreateRuleConfigRequest = {
|
|
474
|
+
'id'?: string;
|
|
475
|
+
'type': 'global' | 'local';
|
|
476
|
+
'applicationId'?: string | null;
|
|
477
|
+
'enabled'?: boolean | null;
|
|
478
|
+
'ruleId': string;
|
|
479
|
+
'options': object;
|
|
480
|
+
'createdAt'?: string | null;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export type CreateRuleConfigResponseOK = { 'id'?: string | null; 'type'?: 'global' | 'local'; 'applicationId'?: string | null; 'enabled'?: boolean | null; 'ruleId'?: string | null; 'options'?: object; 'createdAt'?: string | null }
|
|
484
|
+
export type CreateRuleConfigResponses =
|
|
485
|
+
CreateRuleConfigResponseOK
|
|
486
|
+
|
|
487
|
+
export type UpdateRuleConfigsRequest = {
|
|
488
|
+
'fields'?: Array<'applicationId' | 'createdAt' | 'enabled' | 'id' | 'options' | 'ruleId' | 'type'>;
|
|
489
|
+
'where.applicationId.eq'?: string;
|
|
490
|
+
'where.applicationId.neq'?: string;
|
|
491
|
+
'where.applicationId.gt'?: string;
|
|
492
|
+
'where.applicationId.gte'?: string;
|
|
493
|
+
'where.applicationId.lt'?: string;
|
|
494
|
+
'where.applicationId.lte'?: string;
|
|
495
|
+
'where.applicationId.like'?: string;
|
|
496
|
+
'where.applicationId.in'?: string;
|
|
497
|
+
'where.applicationId.nin'?: string;
|
|
498
|
+
'where.applicationId.contains'?: string;
|
|
499
|
+
'where.applicationId.contained'?: string;
|
|
500
|
+
'where.applicationId.overlaps'?: string;
|
|
501
|
+
'where.createdAt.eq'?: string;
|
|
502
|
+
'where.createdAt.neq'?: string;
|
|
503
|
+
'where.createdAt.gt'?: string;
|
|
504
|
+
'where.createdAt.gte'?: string;
|
|
505
|
+
'where.createdAt.lt'?: string;
|
|
506
|
+
'where.createdAt.lte'?: string;
|
|
507
|
+
'where.createdAt.like'?: string;
|
|
508
|
+
'where.createdAt.in'?: string;
|
|
509
|
+
'where.createdAt.nin'?: string;
|
|
510
|
+
'where.createdAt.contains'?: string;
|
|
511
|
+
'where.createdAt.contained'?: string;
|
|
512
|
+
'where.createdAt.overlaps'?: string;
|
|
513
|
+
'where.enabled.eq'?: boolean;
|
|
514
|
+
'where.enabled.neq'?: boolean;
|
|
515
|
+
'where.enabled.gt'?: boolean;
|
|
516
|
+
'where.enabled.gte'?: boolean;
|
|
517
|
+
'where.enabled.lt'?: boolean;
|
|
518
|
+
'where.enabled.lte'?: boolean;
|
|
519
|
+
'where.enabled.like'?: boolean;
|
|
520
|
+
'where.enabled.in'?: string;
|
|
521
|
+
'where.enabled.nin'?: string;
|
|
522
|
+
'where.enabled.contains'?: string;
|
|
523
|
+
'where.enabled.contained'?: string;
|
|
524
|
+
'where.enabled.overlaps'?: string;
|
|
525
|
+
'where.id.eq'?: string;
|
|
526
|
+
'where.id.neq'?: string;
|
|
527
|
+
'where.id.gt'?: string;
|
|
528
|
+
'where.id.gte'?: string;
|
|
529
|
+
'where.id.lt'?: string;
|
|
530
|
+
'where.id.lte'?: string;
|
|
531
|
+
'where.id.like'?: string;
|
|
532
|
+
'where.id.in'?: string;
|
|
533
|
+
'where.id.nin'?: string;
|
|
534
|
+
'where.id.contains'?: string;
|
|
535
|
+
'where.id.contained'?: string;
|
|
536
|
+
'where.id.overlaps'?: string;
|
|
537
|
+
'where.options.eq'?: string;
|
|
538
|
+
'where.options.neq'?: string;
|
|
539
|
+
'where.options.gt'?: string;
|
|
540
|
+
'where.options.gte'?: string;
|
|
541
|
+
'where.options.lt'?: string;
|
|
542
|
+
'where.options.lte'?: string;
|
|
543
|
+
'where.options.like'?: string;
|
|
544
|
+
'where.options.in'?: string;
|
|
545
|
+
'where.options.nin'?: string;
|
|
546
|
+
'where.options.contains'?: string;
|
|
547
|
+
'where.options.contained'?: string;
|
|
548
|
+
'where.options.overlaps'?: string;
|
|
549
|
+
'where.ruleId.eq'?: string;
|
|
550
|
+
'where.ruleId.neq'?: string;
|
|
551
|
+
'where.ruleId.gt'?: string;
|
|
552
|
+
'where.ruleId.gte'?: string;
|
|
553
|
+
'where.ruleId.lt'?: string;
|
|
554
|
+
'where.ruleId.lte'?: string;
|
|
555
|
+
'where.ruleId.like'?: string;
|
|
556
|
+
'where.ruleId.in'?: string;
|
|
557
|
+
'where.ruleId.nin'?: string;
|
|
558
|
+
'where.ruleId.contains'?: string;
|
|
559
|
+
'where.ruleId.contained'?: string;
|
|
560
|
+
'where.ruleId.overlaps'?: string;
|
|
561
|
+
'where.type.eq'?: 'global' | 'local';
|
|
562
|
+
'where.type.neq'?: 'global' | 'local';
|
|
563
|
+
'where.type.gt'?: 'global' | 'local';
|
|
564
|
+
'where.type.gte'?: 'global' | 'local';
|
|
565
|
+
'where.type.lt'?: 'global' | 'local';
|
|
566
|
+
'where.type.lte'?: 'global' | 'local';
|
|
567
|
+
'where.type.like'?: 'global' | 'local';
|
|
568
|
+
'where.type.in'?: string;
|
|
569
|
+
'where.type.nin'?: string;
|
|
570
|
+
'where.type.contains'?: string;
|
|
571
|
+
'where.type.contained'?: string;
|
|
572
|
+
'where.type.overlaps'?: string;
|
|
573
|
+
'where.or'?: Array<string>;
|
|
574
|
+
'id'?: string;
|
|
575
|
+
'type': 'global' | 'local';
|
|
576
|
+
'applicationId'?: string | null;
|
|
577
|
+
'enabled'?: boolean | null;
|
|
578
|
+
'ruleId': string;
|
|
579
|
+
'options': object;
|
|
580
|
+
'createdAt'?: string | null;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
export type UpdateRuleConfigsResponseOK = Array<{ 'id'?: string | null; 'type'?: 'global' | 'local'; 'applicationId'?: string | null; 'enabled'?: boolean | null; 'ruleId'?: string | null; 'options'?: object; 'createdAt'?: string | null }>
|
|
584
|
+
export type UpdateRuleConfigsResponses =
|
|
585
|
+
UpdateRuleConfigsResponseOK
|
|
586
|
+
|
|
587
|
+
export type GetRuleConfigByIdRequest = {
|
|
588
|
+
'fields'?: Array<'applicationId' | 'createdAt' | 'enabled' | 'id' | 'options' | 'ruleId' | 'type'>;
|
|
589
|
+
'id': string;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export type GetRuleConfigByIdResponseOK = { 'id'?: string | null; 'type'?: 'global' | 'local'; 'applicationId'?: string | null; 'enabled'?: boolean | null; 'ruleId'?: string | null; 'options'?: object; 'createdAt'?: string | null }
|
|
593
|
+
export type GetRuleConfigByIdResponses =
|
|
594
|
+
GetRuleConfigByIdResponseOK
|
|
595
|
+
|
|
596
|
+
export type UpdateRuleConfigRequest = {
|
|
597
|
+
'fields'?: Array<'applicationId' | 'createdAt' | 'enabled' | 'id' | 'options' | 'ruleId' | 'type'>;
|
|
598
|
+
'id': string;
|
|
599
|
+
'type': 'global' | 'local';
|
|
600
|
+
'applicationId'?: string | null;
|
|
601
|
+
'enabled'?: boolean | null;
|
|
602
|
+
'ruleId': string;
|
|
603
|
+
'options': object;
|
|
604
|
+
'createdAt'?: string | null;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export type UpdateRuleConfigResponseOK = { 'id'?: string | null; 'type'?: 'global' | 'local'; 'applicationId'?: string | null; 'enabled'?: boolean | null; 'ruleId'?: string | null; 'options'?: object; 'createdAt'?: string | null }
|
|
608
|
+
export type UpdateRuleConfigResponses =
|
|
609
|
+
UpdateRuleConfigResponseOK
|
|
610
|
+
|
|
611
|
+
export type DeleteRuleConfigsRequest = {
|
|
612
|
+
'fields'?: Array<'applicationId' | 'createdAt' | 'enabled' | 'id' | 'options' | 'ruleId' | 'type'>;
|
|
613
|
+
'id': string;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export type DeleteRuleConfigsResponseOK = { 'id'?: string | null; 'type'?: 'global' | 'local'; 'applicationId'?: string | null; 'enabled'?: boolean | null; 'ruleId'?: string | null; 'options'?: object; 'createdAt'?: string | null }
|
|
617
|
+
export type DeleteRuleConfigsResponses =
|
|
618
|
+
DeleteRuleConfigsResponseOK
|
|
619
|
+
|
|
620
|
+
export type GetRuleForRuleConfigRequest = {
|
|
621
|
+
'fields'?: Array<'config' | 'createdAt' | 'description' | 'id' | 'label' | 'name'>;
|
|
622
|
+
'id': string;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export type GetRuleForRuleConfigResponseOK = { 'id'?: string | null; 'name'?: string | null; 'description'?: string | null; 'label'?: string | null; 'config'?: object; 'createdAt'?: string | null }
|
|
626
|
+
export type GetRuleForRuleConfigResponses =
|
|
627
|
+
GetRuleForRuleConfigResponseOK
|
|
628
|
+
|
|
629
|
+
export type GetMetadataRequest = {
|
|
630
|
+
'limit'?: number;
|
|
631
|
+
'offset'?: number;
|
|
632
|
+
'totalCount'?: boolean;
|
|
633
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'data' | 'id'>;
|
|
634
|
+
'where.applicationId.eq'?: string;
|
|
635
|
+
'where.applicationId.neq'?: string;
|
|
636
|
+
'where.applicationId.gt'?: string;
|
|
637
|
+
'where.applicationId.gte'?: string;
|
|
638
|
+
'where.applicationId.lt'?: string;
|
|
639
|
+
'where.applicationId.lte'?: string;
|
|
640
|
+
'where.applicationId.like'?: string;
|
|
641
|
+
'where.applicationId.in'?: string;
|
|
642
|
+
'where.applicationId.nin'?: string;
|
|
643
|
+
'where.applicationId.contains'?: string;
|
|
644
|
+
'where.applicationId.contained'?: string;
|
|
645
|
+
'where.applicationId.overlaps'?: string;
|
|
646
|
+
'where.bundleId.eq'?: string;
|
|
647
|
+
'where.bundleId.neq'?: string;
|
|
648
|
+
'where.bundleId.gt'?: string;
|
|
649
|
+
'where.bundleId.gte'?: string;
|
|
650
|
+
'where.bundleId.lt'?: string;
|
|
651
|
+
'where.bundleId.lte'?: string;
|
|
652
|
+
'where.bundleId.like'?: string;
|
|
653
|
+
'where.bundleId.in'?: string;
|
|
654
|
+
'where.bundleId.nin'?: string;
|
|
655
|
+
'where.bundleId.contains'?: string;
|
|
656
|
+
'where.bundleId.contained'?: string;
|
|
657
|
+
'where.bundleId.overlaps'?: string;
|
|
658
|
+
'where.createdAt.eq'?: string;
|
|
659
|
+
'where.createdAt.neq'?: string;
|
|
660
|
+
'where.createdAt.gt'?: string;
|
|
661
|
+
'where.createdAt.gte'?: string;
|
|
662
|
+
'where.createdAt.lt'?: string;
|
|
663
|
+
'where.createdAt.lte'?: string;
|
|
664
|
+
'where.createdAt.like'?: string;
|
|
665
|
+
'where.createdAt.in'?: string;
|
|
666
|
+
'where.createdAt.nin'?: string;
|
|
667
|
+
'where.createdAt.contains'?: string;
|
|
668
|
+
'where.createdAt.contained'?: string;
|
|
669
|
+
'where.createdAt.overlaps'?: string;
|
|
670
|
+
'where.data.eq'?: string;
|
|
671
|
+
'where.data.neq'?: string;
|
|
672
|
+
'where.data.gt'?: string;
|
|
673
|
+
'where.data.gte'?: string;
|
|
674
|
+
'where.data.lt'?: string;
|
|
675
|
+
'where.data.lte'?: string;
|
|
676
|
+
'where.data.like'?: string;
|
|
677
|
+
'where.data.in'?: string;
|
|
678
|
+
'where.data.nin'?: string;
|
|
679
|
+
'where.data.contains'?: string;
|
|
680
|
+
'where.data.contained'?: string;
|
|
681
|
+
'where.data.overlaps'?: string;
|
|
682
|
+
'where.id.eq'?: string;
|
|
683
|
+
'where.id.neq'?: string;
|
|
684
|
+
'where.id.gt'?: string;
|
|
685
|
+
'where.id.gte'?: string;
|
|
686
|
+
'where.id.lt'?: string;
|
|
687
|
+
'where.id.lte'?: string;
|
|
688
|
+
'where.id.like'?: string;
|
|
689
|
+
'where.id.in'?: string;
|
|
690
|
+
'where.id.nin'?: string;
|
|
691
|
+
'where.id.contains'?: string;
|
|
692
|
+
'where.id.contained'?: string;
|
|
693
|
+
'where.id.overlaps'?: string;
|
|
694
|
+
'where.or'?: Array<string>;
|
|
695
|
+
'orderby.applicationId'?: 'asc' | 'desc';
|
|
696
|
+
'orderby.bundleId'?: 'asc' | 'desc';
|
|
697
|
+
'orderby.createdAt'?: 'asc' | 'desc';
|
|
698
|
+
'orderby.data'?: 'asc' | 'desc';
|
|
699
|
+
'orderby.id'?: 'asc' | 'desc';
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export type GetMetadataResponseOK = Array<{ 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'data'?: object; 'createdAt'?: string | null }>
|
|
703
|
+
export type GetMetadataResponses =
|
|
704
|
+
GetMetadataResponseOK
|
|
705
|
+
|
|
706
|
+
export type UpdateMetadataRequest = {
|
|
707
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'data' | 'id'>;
|
|
708
|
+
'where.applicationId.eq'?: string;
|
|
709
|
+
'where.applicationId.neq'?: string;
|
|
710
|
+
'where.applicationId.gt'?: string;
|
|
711
|
+
'where.applicationId.gte'?: string;
|
|
712
|
+
'where.applicationId.lt'?: string;
|
|
713
|
+
'where.applicationId.lte'?: string;
|
|
714
|
+
'where.applicationId.like'?: string;
|
|
715
|
+
'where.applicationId.in'?: string;
|
|
716
|
+
'where.applicationId.nin'?: string;
|
|
717
|
+
'where.applicationId.contains'?: string;
|
|
718
|
+
'where.applicationId.contained'?: string;
|
|
719
|
+
'where.applicationId.overlaps'?: string;
|
|
720
|
+
'where.bundleId.eq'?: string;
|
|
721
|
+
'where.bundleId.neq'?: string;
|
|
722
|
+
'where.bundleId.gt'?: string;
|
|
723
|
+
'where.bundleId.gte'?: string;
|
|
724
|
+
'where.bundleId.lt'?: string;
|
|
725
|
+
'where.bundleId.lte'?: string;
|
|
726
|
+
'where.bundleId.like'?: string;
|
|
727
|
+
'where.bundleId.in'?: string;
|
|
728
|
+
'where.bundleId.nin'?: string;
|
|
729
|
+
'where.bundleId.contains'?: string;
|
|
730
|
+
'where.bundleId.contained'?: string;
|
|
731
|
+
'where.bundleId.overlaps'?: string;
|
|
732
|
+
'where.createdAt.eq'?: string;
|
|
733
|
+
'where.createdAt.neq'?: string;
|
|
734
|
+
'where.createdAt.gt'?: string;
|
|
735
|
+
'where.createdAt.gte'?: string;
|
|
736
|
+
'where.createdAt.lt'?: string;
|
|
737
|
+
'where.createdAt.lte'?: string;
|
|
738
|
+
'where.createdAt.like'?: string;
|
|
739
|
+
'where.createdAt.in'?: string;
|
|
740
|
+
'where.createdAt.nin'?: string;
|
|
741
|
+
'where.createdAt.contains'?: string;
|
|
742
|
+
'where.createdAt.contained'?: string;
|
|
743
|
+
'where.createdAt.overlaps'?: string;
|
|
744
|
+
'where.data.eq'?: string;
|
|
745
|
+
'where.data.neq'?: string;
|
|
746
|
+
'where.data.gt'?: string;
|
|
747
|
+
'where.data.gte'?: string;
|
|
748
|
+
'where.data.lt'?: string;
|
|
749
|
+
'where.data.lte'?: string;
|
|
750
|
+
'where.data.like'?: string;
|
|
751
|
+
'where.data.in'?: string;
|
|
752
|
+
'where.data.nin'?: string;
|
|
753
|
+
'where.data.contains'?: string;
|
|
754
|
+
'where.data.contained'?: string;
|
|
755
|
+
'where.data.overlaps'?: string;
|
|
756
|
+
'where.id.eq'?: string;
|
|
757
|
+
'where.id.neq'?: string;
|
|
758
|
+
'where.id.gt'?: string;
|
|
759
|
+
'where.id.gte'?: string;
|
|
760
|
+
'where.id.lt'?: string;
|
|
761
|
+
'where.id.lte'?: string;
|
|
762
|
+
'where.id.like'?: string;
|
|
763
|
+
'where.id.in'?: string;
|
|
764
|
+
'where.id.nin'?: string;
|
|
765
|
+
'where.id.contains'?: string;
|
|
766
|
+
'where.id.contained'?: string;
|
|
767
|
+
'where.id.overlaps'?: string;
|
|
768
|
+
'where.or'?: Array<string>;
|
|
769
|
+
'id'?: string;
|
|
770
|
+
'applicationId'?: string | null;
|
|
771
|
+
'bundleId'?: string | null;
|
|
772
|
+
'data': object;
|
|
773
|
+
'createdAt'?: string | null;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export type UpdateMetadataResponseOK = Array<{ 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'data'?: object; 'createdAt'?: string | null }>
|
|
777
|
+
export type UpdateMetadataResponses =
|
|
778
|
+
UpdateMetadataResponseOK
|
|
779
|
+
|
|
780
|
+
export type GetMetadatumByIdRequest = {
|
|
781
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'data' | 'id'>;
|
|
782
|
+
'id': string;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export type GetMetadatumByIdResponseOK = { 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'data'?: object; 'createdAt'?: string | null }
|
|
786
|
+
export type GetMetadatumByIdResponses =
|
|
787
|
+
GetMetadatumByIdResponseOK
|
|
788
|
+
|
|
789
|
+
export type UpdateMetadatumRequest = {
|
|
790
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'data' | 'id'>;
|
|
791
|
+
'id': string;
|
|
792
|
+
'applicationId'?: string | null;
|
|
793
|
+
'bundleId'?: string | null;
|
|
794
|
+
'data': object;
|
|
795
|
+
'createdAt'?: string | null;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export type UpdateMetadatumResponseOK = { 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'data'?: object; 'createdAt'?: string | null }
|
|
799
|
+
export type UpdateMetadatumResponses =
|
|
800
|
+
UpdateMetadatumResponseOK
|
|
801
|
+
|
|
802
|
+
export type DeleteMetadataRequest = {
|
|
803
|
+
'fields'?: Array<'applicationId' | 'bundleId' | 'createdAt' | 'data' | 'id'>;
|
|
804
|
+
'id': string;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export type DeleteMetadataResponseOK = { 'id'?: string | null; 'applicationId'?: string | null; 'bundleId'?: string | null; 'data'?: object; 'createdAt'?: string | null }
|
|
808
|
+
export type DeleteMetadataResponses =
|
|
809
|
+
DeleteMetadataResponseOK
|
|
810
|
+
|
|
811
|
+
export type PostComplianceRequest = {
|
|
812
|
+
'applicationId': string;
|
|
813
|
+
'bundleId': string;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export type PostComplianceResponseOK = unknown
|
|
817
|
+
export type PostComplianceResponses =
|
|
818
|
+
FullResponse<PostComplianceResponseOK, 200>
|
|
819
|
+
|
|
820
|
+
export type PostMetadataRequest = {
|
|
821
|
+
'applicationId': string;
|
|
822
|
+
'bundleId': string;
|
|
823
|
+
'data': object;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export type PostMetadataResponseOK = unknown
|
|
827
|
+
export type PostMetadataResponses =
|
|
828
|
+
FullResponse<PostMetadataResponseOK, 200>
|
|
829
|
+
|
|
830
|
+
export type PostRulesNameRequest = {
|
|
831
|
+
'name': string;
|
|
832
|
+
'applicationId': string;
|
|
833
|
+
'enabled': boolean;
|
|
834
|
+
'options': object;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export type PostRulesNameResponseOK = unknown
|
|
838
|
+
export type PostRulesNameResponses =
|
|
839
|
+
FullResponse<PostRulesNameResponseOK, 200>
|
|
840
|
+
|
|
841
|
+
export type GetRulesRequest = {
|
|
842
|
+
unknown
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export type GetRulesResponseOK = unknown
|
|
846
|
+
export type GetRulesResponses =
|
|
847
|
+
FullResponse<GetRulesResponseOK, 200>
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
export interface Compliance {
|
|
852
|
+
setBaseUrl(newUrl: string) : void;
|
|
853
|
+
setDefaultHeaders(headers: Object) : void;
|
|
854
|
+
getReports(req?: GetReportsRequest): Promise<GetReportsResponses>;
|
|
855
|
+
createReport(req?: CreateReportRequest): Promise<CreateReportResponses>;
|
|
856
|
+
updateReports(req?: UpdateReportsRequest): Promise<UpdateReportsResponses>;
|
|
857
|
+
getReportById(req?: GetReportByIdRequest): Promise<GetReportByIdResponses>;
|
|
858
|
+
updateReport(req?: UpdateReportRequest): Promise<UpdateReportResponses>;
|
|
859
|
+
deleteReports(req?: DeleteReportsRequest): Promise<DeleteReportsResponses>;
|
|
860
|
+
createRule(req?: CreateRuleRequest): Promise<CreateRuleResponses>;
|
|
861
|
+
updateRules(req?: UpdateRulesRequest): Promise<UpdateRulesResponses>;
|
|
862
|
+
getRuleById(req?: GetRuleByIdRequest): Promise<GetRuleByIdResponses>;
|
|
863
|
+
updateRule(req?: UpdateRuleRequest): Promise<UpdateRuleResponses>;
|
|
864
|
+
deleteRules(req?: DeleteRulesRequest): Promise<DeleteRulesResponses>;
|
|
865
|
+
getRuleConfigsForRule(req?: GetRuleConfigsForRuleRequest): Promise<GetRuleConfigsForRuleResponses>;
|
|
866
|
+
getRuleConfigs(req?: GetRuleConfigsRequest): Promise<GetRuleConfigsResponses>;
|
|
867
|
+
createRuleConfig(req?: CreateRuleConfigRequest): Promise<CreateRuleConfigResponses>;
|
|
868
|
+
updateRuleConfigs(req?: UpdateRuleConfigsRequest): Promise<UpdateRuleConfigsResponses>;
|
|
869
|
+
getRuleConfigById(req?: GetRuleConfigByIdRequest): Promise<GetRuleConfigByIdResponses>;
|
|
870
|
+
updateRuleConfig(req?: UpdateRuleConfigRequest): Promise<UpdateRuleConfigResponses>;
|
|
871
|
+
deleteRuleConfigs(req?: DeleteRuleConfigsRequest): Promise<DeleteRuleConfigsResponses>;
|
|
872
|
+
getRuleForRuleConfig(req?: GetRuleForRuleConfigRequest): Promise<GetRuleForRuleConfigResponses>;
|
|
873
|
+
getMetadata(req?: GetMetadataRequest): Promise<GetMetadataResponses>;
|
|
874
|
+
updateMetadata(req?: UpdateMetadataRequest): Promise<UpdateMetadataResponses>;
|
|
875
|
+
getMetadatumById(req?: GetMetadatumByIdRequest): Promise<GetMetadatumByIdResponses>;
|
|
876
|
+
updateMetadatum(req?: UpdateMetadatumRequest): Promise<UpdateMetadatumResponses>;
|
|
877
|
+
deleteMetadata(req?: DeleteMetadataRequest): Promise<DeleteMetadataResponses>;
|
|
878
|
+
postCompliance(req?: PostComplianceRequest): Promise<PostComplianceResponses>;
|
|
879
|
+
postMetadata(req?: PostMetadataRequest): Promise<PostMetadataResponses>;
|
|
880
|
+
postRulesName(req?: PostRulesNameRequest): Promise<PostRulesNameResponses>;
|
|
881
|
+
getRules(req?: GetRulesRequest): Promise<GetRulesResponses>;
|
|
882
|
+
}
|
|
883
|
+
type PlatformaticFrontendClient = Omit<Compliance, 'setBaseUrl'>
|
|
884
|
+
type BuildOptions = {
|
|
885
|
+
headers?: Object
|
|
886
|
+
}
|
|
887
|
+
export default function build(url: string, options?: BuildOptions): PlatformaticFrontendClient
|