@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.
Files changed (95) hide show
  1. package/README.md +87 -0
  2. package/app.js +124 -0
  3. package/cli.js +141 -0
  4. package/clients/compliance/compliance-types.d.ts +887 -0
  5. package/clients/compliance/compliance.mjs +1049 -0
  6. package/clients/compliance/compliance.openapi.json +6127 -0
  7. package/clients/control-plane/control-plane-types.d.ts +2696 -0
  8. package/clients/control-plane/control-plane.mjs +3051 -0
  9. package/clients/control-plane/control-plane.openapi.json +13693 -0
  10. package/clients/cron/cron-types.d.ts +1479 -0
  11. package/clients/cron/cron.mjs +872 -0
  12. package/clients/cron/cron.openapi.json +9330 -0
  13. package/compliance/index.js +21 -0
  14. package/compliance/rules/dependencies.js +76 -0
  15. package/compliance/rules/utils.js +12 -0
  16. package/eslint.config.js +11 -0
  17. package/help/start.txt +12 -0
  18. package/help/watt-extra.txt +12 -0
  19. package/index.js +45 -0
  20. package/lib/banner.js +22 -0
  21. package/lib/errors.js +34 -0
  22. package/lib/utils.js +34 -0
  23. package/lib/wattpro.js +580 -0
  24. package/package.json +50 -0
  25. package/plugins/alerts.js +115 -0
  26. package/plugins/auth.js +89 -0
  27. package/plugins/compliancy.js +70 -0
  28. package/plugins/env.js +58 -0
  29. package/plugins/flamegraphs.js +100 -0
  30. package/plugins/init.js +70 -0
  31. package/plugins/metadata.js +84 -0
  32. package/plugins/scheduler.js +48 -0
  33. package/plugins/update.js +128 -0
  34. package/renovate.json +6 -0
  35. package/test/alerts.test.js +607 -0
  36. package/test/auth.test.js +128 -0
  37. package/test/auto-cache.test.js +401 -0
  38. package/test/cli.test.js +75 -0
  39. package/test/compliancy.test.js +87 -0
  40. package/test/fixtures/runtime-domains/alpha/package.json +5 -0
  41. package/test/fixtures/runtime-domains/alpha/platformatic.json +6 -0
  42. package/test/fixtures/runtime-domains/alpha/plugin.js +16 -0
  43. package/test/fixtures/runtime-domains/beta/package.json +5 -0
  44. package/test/fixtures/runtime-domains/beta/platformatic.json +6 -0
  45. package/test/fixtures/runtime-domains/beta/plugin.js +7 -0
  46. package/test/fixtures/runtime-domains/composer/package.json +5 -0
  47. package/test/fixtures/runtime-domains/composer/platformatic.json +19 -0
  48. package/test/fixtures/runtime-domains/package.json +1 -0
  49. package/test/fixtures/runtime-domains/platformatic.json +27 -0
  50. package/test/fixtures/runtime-health/package.json +20 -0
  51. package/test/fixtures/runtime-health/platformatic.json +16 -0
  52. package/test/fixtures/runtime-health/services/service-1/package.json +17 -0
  53. package/test/fixtures/runtime-health/services/service-1/platformatic.json +16 -0
  54. package/test/fixtures/runtime-health/services/service-1/plugins/example.js +6 -0
  55. package/test/fixtures/runtime-health/services/service-1/routes/root.cjs +8 -0
  56. package/test/fixtures/runtime-health/services/service-2/package.json +17 -0
  57. package/test/fixtures/runtime-health/services/service-2/platformatic.json +16 -0
  58. package/test/fixtures/runtime-health/services/service-2/plugins/example.js +6 -0
  59. package/test/fixtures/runtime-health/services/service-2/routes/root.cjs +8 -0
  60. package/test/fixtures/runtime-next/package.json +5 -0
  61. package/test/fixtures/runtime-next/platformatic.json +9 -0
  62. package/test/fixtures/runtime-next/web/next/next.config.js +2 -0
  63. package/test/fixtures/runtime-next/web/next/package.json +7 -0
  64. package/test/fixtures/runtime-next/web/next/platformatic.json +9 -0
  65. package/test/fixtures/runtime-next/web/next/src/app/direct/route.js +3 -0
  66. package/test/fixtures/runtime-next/web/next/src/app/layout.jsx +7 -0
  67. package/test/fixtures/runtime-next/web/next/src/app/page.jsx +3 -0
  68. package/test/fixtures/runtime-scheduler/main/package.json +5 -0
  69. package/test/fixtures/runtime-scheduler/main/platformatic.json +9 -0
  70. package/test/fixtures/runtime-scheduler/main/routes/root.cjs +11 -0
  71. package/test/fixtures/runtime-scheduler/package.json +1 -0
  72. package/test/fixtures/runtime-scheduler/platformatic.json +27 -0
  73. package/test/fixtures/runtime-service/main/package.json +5 -0
  74. package/test/fixtures/runtime-service/main/platformatic.json +12 -0
  75. package/test/fixtures/runtime-service/main/routes/root.cjs +11 -0
  76. package/test/fixtures/runtime-service/package.json +1 -0
  77. package/test/fixtures/runtime-service/platformatic.json +19 -0
  78. package/test/fixtures/service-1/package.json +7 -0
  79. package/test/fixtures/service-1/platformatic.json +18 -0
  80. package/test/fixtures/service-1/routes/root.cjs +48 -0
  81. package/test/fixtures/service-2/platformatic.json +21 -0
  82. package/test/fixtures/service-2/routes/root.cjs +5 -0
  83. package/test/fixtures/service-3/package.json +5 -0
  84. package/test/fixtures/service-3/platformatic.json +21 -0
  85. package/test/fixtures/service-3/routes/root.cjs +8 -0
  86. package/test/health.test.js +44 -0
  87. package/test/helper.js +274 -0
  88. package/test/init.test.js +243 -0
  89. package/test/patch-config.test.js +434 -0
  90. package/test/scheduler.test.js +71 -0
  91. package/test/send-to-icc-retry.test.js +138 -0
  92. package/test/shared-context.test.js +82 -0
  93. package/test/spawn.test.js +110 -0
  94. package/test/trigger-flamegraphs.test.js +226 -0
  95. package/test/update.test.js +519 -0
@@ -0,0 +1,1479 @@
1
+ export interface FullResponse<T, U extends number> {
2
+ 'statusCode': U;
3
+ 'headers': object;
4
+ 'body': T;
5
+ }
6
+
7
+ export type GetJobsRequest = {
8
+ /**
9
+ * Limit will be applied by default if not passed. If the provided value exceeds the maximum allowed value a validation error will be thrown
10
+ */
11
+ 'limit'?: number;
12
+ 'offset'?: number;
13
+ 'totalCount'?: boolean;
14
+ 'fields'?: Array<'applicationId' | 'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'headers' | 'id' | 'jobType' | 'lastRunAt' | 'maxRetries' | 'method' | 'name' | 'nextRunAt' | 'paused' | 'protected' | 'schedule' | 'status' | 'updatedAt'>;
15
+ 'where.applicationId.eq'?: string;
16
+ 'where.applicationId.neq'?: string;
17
+ 'where.applicationId.gt'?: string;
18
+ 'where.applicationId.gte'?: string;
19
+ 'where.applicationId.lt'?: string;
20
+ 'where.applicationId.lte'?: string;
21
+ 'where.applicationId.like'?: string;
22
+ 'where.applicationId.ilike'?: string;
23
+ 'where.applicationId.in'?: string;
24
+ 'where.applicationId.nin'?: string;
25
+ 'where.applicationId.contains'?: string;
26
+ 'where.applicationId.contained'?: string;
27
+ 'where.applicationId.overlaps'?: string;
28
+ 'where.body.eq'?: string;
29
+ 'where.body.neq'?: string;
30
+ 'where.body.gt'?: string;
31
+ 'where.body.gte'?: string;
32
+ 'where.body.lt'?: string;
33
+ 'where.body.lte'?: string;
34
+ 'where.body.like'?: string;
35
+ 'where.body.ilike'?: string;
36
+ 'where.body.in'?: string;
37
+ 'where.body.nin'?: string;
38
+ 'where.body.contains'?: string;
39
+ 'where.body.contained'?: string;
40
+ 'where.body.overlaps'?: string;
41
+ 'where.callbackUrl.eq'?: string;
42
+ 'where.callbackUrl.neq'?: string;
43
+ 'where.callbackUrl.gt'?: string;
44
+ 'where.callbackUrl.gte'?: string;
45
+ 'where.callbackUrl.lt'?: string;
46
+ 'where.callbackUrl.lte'?: string;
47
+ 'where.callbackUrl.like'?: string;
48
+ 'where.callbackUrl.ilike'?: string;
49
+ 'where.callbackUrl.in'?: string;
50
+ 'where.callbackUrl.nin'?: string;
51
+ 'where.callbackUrl.contains'?: string;
52
+ 'where.callbackUrl.contained'?: string;
53
+ 'where.callbackUrl.overlaps'?: string;
54
+ 'where.createdAt.eq'?: string;
55
+ 'where.createdAt.neq'?: string;
56
+ 'where.createdAt.gt'?: string;
57
+ 'where.createdAt.gte'?: string;
58
+ 'where.createdAt.lt'?: string;
59
+ 'where.createdAt.lte'?: string;
60
+ 'where.createdAt.like'?: string;
61
+ 'where.createdAt.ilike'?: string;
62
+ 'where.createdAt.in'?: string;
63
+ 'where.createdAt.nin'?: string;
64
+ 'where.createdAt.contains'?: string;
65
+ 'where.createdAt.contained'?: string;
66
+ 'where.createdAt.overlaps'?: string;
67
+ 'where.deletedAt.eq'?: string;
68
+ 'where.deletedAt.neq'?: string;
69
+ 'where.deletedAt.gt'?: string;
70
+ 'where.deletedAt.gte'?: string;
71
+ 'where.deletedAt.lt'?: string;
72
+ 'where.deletedAt.lte'?: string;
73
+ 'where.deletedAt.like'?: string;
74
+ 'where.deletedAt.ilike'?: string;
75
+ 'where.deletedAt.in'?: string;
76
+ 'where.deletedAt.nin'?: string;
77
+ 'where.deletedAt.contains'?: string;
78
+ 'where.deletedAt.contained'?: string;
79
+ 'where.deletedAt.overlaps'?: string;
80
+ 'where.headers.eq'?: string;
81
+ 'where.headers.neq'?: string;
82
+ 'where.headers.gt'?: string;
83
+ 'where.headers.gte'?: string;
84
+ 'where.headers.lt'?: string;
85
+ 'where.headers.lte'?: string;
86
+ 'where.headers.like'?: string;
87
+ 'where.headers.ilike'?: string;
88
+ 'where.headers.in'?: string;
89
+ 'where.headers.nin'?: string;
90
+ 'where.headers.contains'?: string;
91
+ 'where.headers.contained'?: string;
92
+ 'where.headers.overlaps'?: string;
93
+ 'where.id.eq'?: number;
94
+ 'where.id.neq'?: number;
95
+ 'where.id.gt'?: number;
96
+ 'where.id.gte'?: number;
97
+ 'where.id.lt'?: number;
98
+ 'where.id.lte'?: number;
99
+ 'where.id.like'?: number;
100
+ 'where.id.ilike'?: number;
101
+ 'where.id.in'?: string;
102
+ 'where.id.nin'?: string;
103
+ 'where.id.contains'?: string;
104
+ 'where.id.contained'?: string;
105
+ 'where.id.overlaps'?: string;
106
+ 'where.jobType.eq'?: 'ICC' | 'WATT' | 'USER';
107
+ 'where.jobType.neq'?: 'ICC' | 'WATT' | 'USER';
108
+ 'where.jobType.gt'?: 'ICC' | 'WATT' | 'USER';
109
+ 'where.jobType.gte'?: 'ICC' | 'WATT' | 'USER';
110
+ 'where.jobType.lt'?: 'ICC' | 'WATT' | 'USER';
111
+ 'where.jobType.lte'?: 'ICC' | 'WATT' | 'USER';
112
+ 'where.jobType.like'?: 'ICC' | 'WATT' | 'USER';
113
+ 'where.jobType.ilike'?: 'ICC' | 'WATT' | 'USER';
114
+ 'where.jobType.in'?: string;
115
+ 'where.jobType.nin'?: string;
116
+ 'where.jobType.contains'?: string;
117
+ 'where.jobType.contained'?: string;
118
+ 'where.jobType.overlaps'?: string;
119
+ 'where.lastRunAt.eq'?: string;
120
+ 'where.lastRunAt.neq'?: string;
121
+ 'where.lastRunAt.gt'?: string;
122
+ 'where.lastRunAt.gte'?: string;
123
+ 'where.lastRunAt.lt'?: string;
124
+ 'where.lastRunAt.lte'?: string;
125
+ 'where.lastRunAt.like'?: string;
126
+ 'where.lastRunAt.ilike'?: string;
127
+ 'where.lastRunAt.in'?: string;
128
+ 'where.lastRunAt.nin'?: string;
129
+ 'where.lastRunAt.contains'?: string;
130
+ 'where.lastRunAt.contained'?: string;
131
+ 'where.lastRunAt.overlaps'?: string;
132
+ 'where.maxRetries.eq'?: number;
133
+ 'where.maxRetries.neq'?: number;
134
+ 'where.maxRetries.gt'?: number;
135
+ 'where.maxRetries.gte'?: number;
136
+ 'where.maxRetries.lt'?: number;
137
+ 'where.maxRetries.lte'?: number;
138
+ 'where.maxRetries.like'?: number;
139
+ 'where.maxRetries.ilike'?: number;
140
+ 'where.maxRetries.in'?: string;
141
+ 'where.maxRetries.nin'?: string;
142
+ 'where.maxRetries.contains'?: string;
143
+ 'where.maxRetries.contained'?: string;
144
+ 'where.maxRetries.overlaps'?: string;
145
+ 'where.method.eq'?: string;
146
+ 'where.method.neq'?: string;
147
+ 'where.method.gt'?: string;
148
+ 'where.method.gte'?: string;
149
+ 'where.method.lt'?: string;
150
+ 'where.method.lte'?: string;
151
+ 'where.method.like'?: string;
152
+ 'where.method.ilike'?: string;
153
+ 'where.method.in'?: string;
154
+ 'where.method.nin'?: string;
155
+ 'where.method.contains'?: string;
156
+ 'where.method.contained'?: string;
157
+ 'where.method.overlaps'?: string;
158
+ 'where.name.eq'?: string;
159
+ 'where.name.neq'?: string;
160
+ 'where.name.gt'?: string;
161
+ 'where.name.gte'?: string;
162
+ 'where.name.lt'?: string;
163
+ 'where.name.lte'?: string;
164
+ 'where.name.like'?: string;
165
+ 'where.name.ilike'?: string;
166
+ 'where.name.in'?: string;
167
+ 'where.name.nin'?: string;
168
+ 'where.name.contains'?: string;
169
+ 'where.name.contained'?: string;
170
+ 'where.name.overlaps'?: string;
171
+ 'where.nextRunAt.eq'?: string;
172
+ 'where.nextRunAt.neq'?: string;
173
+ 'where.nextRunAt.gt'?: string;
174
+ 'where.nextRunAt.gte'?: string;
175
+ 'where.nextRunAt.lt'?: string;
176
+ 'where.nextRunAt.lte'?: string;
177
+ 'where.nextRunAt.like'?: string;
178
+ 'where.nextRunAt.ilike'?: string;
179
+ 'where.nextRunAt.in'?: string;
180
+ 'where.nextRunAt.nin'?: string;
181
+ 'where.nextRunAt.contains'?: string;
182
+ 'where.nextRunAt.contained'?: string;
183
+ 'where.nextRunAt.overlaps'?: string;
184
+ 'where.paused.eq'?: boolean;
185
+ 'where.paused.neq'?: boolean;
186
+ 'where.paused.gt'?: boolean;
187
+ 'where.paused.gte'?: boolean;
188
+ 'where.paused.lt'?: boolean;
189
+ 'where.paused.lte'?: boolean;
190
+ 'where.paused.like'?: boolean;
191
+ 'where.paused.ilike'?: boolean;
192
+ 'where.paused.in'?: string;
193
+ 'where.paused.nin'?: string;
194
+ 'where.paused.contains'?: string;
195
+ 'where.paused.contained'?: string;
196
+ 'where.paused.overlaps'?: string;
197
+ 'where.protected.eq'?: boolean;
198
+ 'where.protected.neq'?: boolean;
199
+ 'where.protected.gt'?: boolean;
200
+ 'where.protected.gte'?: boolean;
201
+ 'where.protected.lt'?: boolean;
202
+ 'where.protected.lte'?: boolean;
203
+ 'where.protected.like'?: boolean;
204
+ 'where.protected.ilike'?: boolean;
205
+ 'where.protected.in'?: string;
206
+ 'where.protected.nin'?: string;
207
+ 'where.protected.contains'?: string;
208
+ 'where.protected.contained'?: string;
209
+ 'where.protected.overlaps'?: string;
210
+ 'where.schedule.eq'?: string;
211
+ 'where.schedule.neq'?: string;
212
+ 'where.schedule.gt'?: string;
213
+ 'where.schedule.gte'?: string;
214
+ 'where.schedule.lt'?: string;
215
+ 'where.schedule.lte'?: string;
216
+ 'where.schedule.like'?: string;
217
+ 'where.schedule.ilike'?: string;
218
+ 'where.schedule.in'?: string;
219
+ 'where.schedule.nin'?: string;
220
+ 'where.schedule.contains'?: string;
221
+ 'where.schedule.contained'?: string;
222
+ 'where.schedule.overlaps'?: string;
223
+ 'where.status.eq'?: string;
224
+ 'where.status.neq'?: string;
225
+ 'where.status.gt'?: string;
226
+ 'where.status.gte'?: string;
227
+ 'where.status.lt'?: string;
228
+ 'where.status.lte'?: string;
229
+ 'where.status.like'?: string;
230
+ 'where.status.ilike'?: string;
231
+ 'where.status.in'?: string;
232
+ 'where.status.nin'?: string;
233
+ 'where.status.contains'?: string;
234
+ 'where.status.contained'?: string;
235
+ 'where.status.overlaps'?: string;
236
+ 'where.updatedAt.eq'?: string;
237
+ 'where.updatedAt.neq'?: string;
238
+ 'where.updatedAt.gt'?: string;
239
+ 'where.updatedAt.gte'?: string;
240
+ 'where.updatedAt.lt'?: string;
241
+ 'where.updatedAt.lte'?: string;
242
+ 'where.updatedAt.like'?: string;
243
+ 'where.updatedAt.ilike'?: string;
244
+ 'where.updatedAt.in'?: string;
245
+ 'where.updatedAt.nin'?: string;
246
+ 'where.updatedAt.contains'?: string;
247
+ 'where.updatedAt.contained'?: string;
248
+ 'where.updatedAt.overlaps'?: string;
249
+ 'where.or'?: Array<string>;
250
+ 'orderby.applicationId'?: 'asc' | 'desc';
251
+ 'orderby.body'?: 'asc' | 'desc';
252
+ 'orderby.callbackUrl'?: 'asc' | 'desc';
253
+ 'orderby.createdAt'?: 'asc' | 'desc';
254
+ 'orderby.deletedAt'?: 'asc' | 'desc';
255
+ 'orderby.headers'?: 'asc' | 'desc';
256
+ 'orderby.id'?: 'asc' | 'desc';
257
+ 'orderby.jobType'?: 'asc' | 'desc';
258
+ 'orderby.lastRunAt'?: 'asc' | 'desc';
259
+ 'orderby.maxRetries'?: 'asc' | 'desc';
260
+ 'orderby.method'?: 'asc' | 'desc';
261
+ 'orderby.name'?: 'asc' | 'desc';
262
+ 'orderby.nextRunAt'?: 'asc' | 'desc';
263
+ 'orderby.paused'?: 'asc' | 'desc';
264
+ 'orderby.protected'?: 'asc' | 'desc';
265
+ 'orderby.schedule'?: 'asc' | 'desc';
266
+ 'orderby.status'?: 'asc' | 'desc';
267
+ 'orderby.updatedAt'?: 'asc' | 'desc';
268
+ }
269
+
270
+ /**
271
+ * Default Response
272
+ */
273
+ export type GetJobsResponseOK = Array<{ 'id'?: number | null; 'name'?: string | null; 'schedule'?: string | null; 'callbackUrl'?: string | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'maxRetries'?: number | null; 'paused'?: boolean | null; 'protected'?: boolean | null; 'applicationId'?: string | null; 'status'?: string | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'lastRunAt'?: string | null; 'nextRunAt'?: string | null; 'jobType'?: 'ICC' | 'WATT' | 'USER' | null }>
274
+ export type GetJobsResponses =
275
+ GetJobsResponseOK
276
+
277
+ export type CreateJobRequest = {
278
+ 'id'?: number;
279
+ 'name': string;
280
+ 'schedule'?: string | null;
281
+ 'callbackUrl'?: string | null;
282
+ 'method': string;
283
+ 'body'?: string | null;
284
+ 'headers'?: object | null;
285
+ 'maxRetries': number;
286
+ 'paused': boolean;
287
+ 'protected': boolean;
288
+ 'applicationId'?: string | null;
289
+ 'status'?: string | null;
290
+ 'createdAt'?: string | null;
291
+ 'updatedAt'?: string | null;
292
+ 'deletedAt'?: string | null;
293
+ 'lastRunAt'?: string | null;
294
+ 'nextRunAt'?: string | null;
295
+ 'jobType': 'ICC' | 'WATT' | 'USER';
296
+ }
297
+
298
+ /**
299
+ * A Job
300
+ */
301
+ export type CreateJobResponseOK = { 'id'?: number | null; 'name'?: string | null; 'schedule'?: string | null; 'callbackUrl'?: string | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'maxRetries'?: number | null; 'paused'?: boolean | null; 'protected'?: boolean | null; 'applicationId'?: string | null; 'status'?: string | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'lastRunAt'?: string | null; 'nextRunAt'?: string | null; 'jobType'?: 'ICC' | 'WATT' | 'USER' | null }
302
+ export type CreateJobResponses =
303
+ CreateJobResponseOK
304
+
305
+ export type UpdateJobsRequest = {
306
+ 'fields'?: Array<'applicationId' | 'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'headers' | 'id' | 'jobType' | 'lastRunAt' | 'maxRetries' | 'method' | 'name' | 'nextRunAt' | 'paused' | 'protected' | 'schedule' | 'status' | 'updatedAt'>;
307
+ 'where.applicationId.eq'?: string;
308
+ 'where.applicationId.neq'?: string;
309
+ 'where.applicationId.gt'?: string;
310
+ 'where.applicationId.gte'?: string;
311
+ 'where.applicationId.lt'?: string;
312
+ 'where.applicationId.lte'?: string;
313
+ 'where.applicationId.like'?: string;
314
+ 'where.applicationId.ilike'?: string;
315
+ 'where.applicationId.in'?: string;
316
+ 'where.applicationId.nin'?: string;
317
+ 'where.applicationId.contains'?: string;
318
+ 'where.applicationId.contained'?: string;
319
+ 'where.applicationId.overlaps'?: string;
320
+ 'where.body.eq'?: string;
321
+ 'where.body.neq'?: string;
322
+ 'where.body.gt'?: string;
323
+ 'where.body.gte'?: string;
324
+ 'where.body.lt'?: string;
325
+ 'where.body.lte'?: string;
326
+ 'where.body.like'?: string;
327
+ 'where.body.ilike'?: string;
328
+ 'where.body.in'?: string;
329
+ 'where.body.nin'?: string;
330
+ 'where.body.contains'?: string;
331
+ 'where.body.contained'?: string;
332
+ 'where.body.overlaps'?: string;
333
+ 'where.callbackUrl.eq'?: string;
334
+ 'where.callbackUrl.neq'?: string;
335
+ 'where.callbackUrl.gt'?: string;
336
+ 'where.callbackUrl.gte'?: string;
337
+ 'where.callbackUrl.lt'?: string;
338
+ 'where.callbackUrl.lte'?: string;
339
+ 'where.callbackUrl.like'?: string;
340
+ 'where.callbackUrl.ilike'?: string;
341
+ 'where.callbackUrl.in'?: string;
342
+ 'where.callbackUrl.nin'?: string;
343
+ 'where.callbackUrl.contains'?: string;
344
+ 'where.callbackUrl.contained'?: string;
345
+ 'where.callbackUrl.overlaps'?: string;
346
+ 'where.createdAt.eq'?: string;
347
+ 'where.createdAt.neq'?: string;
348
+ 'where.createdAt.gt'?: string;
349
+ 'where.createdAt.gte'?: string;
350
+ 'where.createdAt.lt'?: string;
351
+ 'where.createdAt.lte'?: string;
352
+ 'where.createdAt.like'?: string;
353
+ 'where.createdAt.ilike'?: string;
354
+ 'where.createdAt.in'?: string;
355
+ 'where.createdAt.nin'?: string;
356
+ 'where.createdAt.contains'?: string;
357
+ 'where.createdAt.contained'?: string;
358
+ 'where.createdAt.overlaps'?: string;
359
+ 'where.deletedAt.eq'?: string;
360
+ 'where.deletedAt.neq'?: string;
361
+ 'where.deletedAt.gt'?: string;
362
+ 'where.deletedAt.gte'?: string;
363
+ 'where.deletedAt.lt'?: string;
364
+ 'where.deletedAt.lte'?: string;
365
+ 'where.deletedAt.like'?: string;
366
+ 'where.deletedAt.ilike'?: string;
367
+ 'where.deletedAt.in'?: string;
368
+ 'where.deletedAt.nin'?: string;
369
+ 'where.deletedAt.contains'?: string;
370
+ 'where.deletedAt.contained'?: string;
371
+ 'where.deletedAt.overlaps'?: string;
372
+ 'where.headers.eq'?: string;
373
+ 'where.headers.neq'?: string;
374
+ 'where.headers.gt'?: string;
375
+ 'where.headers.gte'?: string;
376
+ 'where.headers.lt'?: string;
377
+ 'where.headers.lte'?: string;
378
+ 'where.headers.like'?: string;
379
+ 'where.headers.ilike'?: string;
380
+ 'where.headers.in'?: string;
381
+ 'where.headers.nin'?: string;
382
+ 'where.headers.contains'?: string;
383
+ 'where.headers.contained'?: string;
384
+ 'where.headers.overlaps'?: string;
385
+ 'where.id.eq'?: number;
386
+ 'where.id.neq'?: number;
387
+ 'where.id.gt'?: number;
388
+ 'where.id.gte'?: number;
389
+ 'where.id.lt'?: number;
390
+ 'where.id.lte'?: number;
391
+ 'where.id.like'?: number;
392
+ 'where.id.ilike'?: number;
393
+ 'where.id.in'?: string;
394
+ 'where.id.nin'?: string;
395
+ 'where.id.contains'?: string;
396
+ 'where.id.contained'?: string;
397
+ 'where.id.overlaps'?: string;
398
+ 'where.jobType.eq'?: 'ICC' | 'WATT' | 'USER';
399
+ 'where.jobType.neq'?: 'ICC' | 'WATT' | 'USER';
400
+ 'where.jobType.gt'?: 'ICC' | 'WATT' | 'USER';
401
+ 'where.jobType.gte'?: 'ICC' | 'WATT' | 'USER';
402
+ 'where.jobType.lt'?: 'ICC' | 'WATT' | 'USER';
403
+ 'where.jobType.lte'?: 'ICC' | 'WATT' | 'USER';
404
+ 'where.jobType.like'?: 'ICC' | 'WATT' | 'USER';
405
+ 'where.jobType.ilike'?: 'ICC' | 'WATT' | 'USER';
406
+ 'where.jobType.in'?: string;
407
+ 'where.jobType.nin'?: string;
408
+ 'where.jobType.contains'?: string;
409
+ 'where.jobType.contained'?: string;
410
+ 'where.jobType.overlaps'?: string;
411
+ 'where.lastRunAt.eq'?: string;
412
+ 'where.lastRunAt.neq'?: string;
413
+ 'where.lastRunAt.gt'?: string;
414
+ 'where.lastRunAt.gte'?: string;
415
+ 'where.lastRunAt.lt'?: string;
416
+ 'where.lastRunAt.lte'?: string;
417
+ 'where.lastRunAt.like'?: string;
418
+ 'where.lastRunAt.ilike'?: string;
419
+ 'where.lastRunAt.in'?: string;
420
+ 'where.lastRunAt.nin'?: string;
421
+ 'where.lastRunAt.contains'?: string;
422
+ 'where.lastRunAt.contained'?: string;
423
+ 'where.lastRunAt.overlaps'?: string;
424
+ 'where.maxRetries.eq'?: number;
425
+ 'where.maxRetries.neq'?: number;
426
+ 'where.maxRetries.gt'?: number;
427
+ 'where.maxRetries.gte'?: number;
428
+ 'where.maxRetries.lt'?: number;
429
+ 'where.maxRetries.lte'?: number;
430
+ 'where.maxRetries.like'?: number;
431
+ 'where.maxRetries.ilike'?: number;
432
+ 'where.maxRetries.in'?: string;
433
+ 'where.maxRetries.nin'?: string;
434
+ 'where.maxRetries.contains'?: string;
435
+ 'where.maxRetries.contained'?: string;
436
+ 'where.maxRetries.overlaps'?: string;
437
+ 'where.method.eq'?: string;
438
+ 'where.method.neq'?: string;
439
+ 'where.method.gt'?: string;
440
+ 'where.method.gte'?: string;
441
+ 'where.method.lt'?: string;
442
+ 'where.method.lte'?: string;
443
+ 'where.method.like'?: string;
444
+ 'where.method.ilike'?: string;
445
+ 'where.method.in'?: string;
446
+ 'where.method.nin'?: string;
447
+ 'where.method.contains'?: string;
448
+ 'where.method.contained'?: string;
449
+ 'where.method.overlaps'?: string;
450
+ 'where.name.eq'?: string;
451
+ 'where.name.neq'?: string;
452
+ 'where.name.gt'?: string;
453
+ 'where.name.gte'?: string;
454
+ 'where.name.lt'?: string;
455
+ 'where.name.lte'?: string;
456
+ 'where.name.like'?: string;
457
+ 'where.name.ilike'?: string;
458
+ 'where.name.in'?: string;
459
+ 'where.name.nin'?: string;
460
+ 'where.name.contains'?: string;
461
+ 'where.name.contained'?: string;
462
+ 'where.name.overlaps'?: string;
463
+ 'where.nextRunAt.eq'?: string;
464
+ 'where.nextRunAt.neq'?: string;
465
+ 'where.nextRunAt.gt'?: string;
466
+ 'where.nextRunAt.gte'?: string;
467
+ 'where.nextRunAt.lt'?: string;
468
+ 'where.nextRunAt.lte'?: string;
469
+ 'where.nextRunAt.like'?: string;
470
+ 'where.nextRunAt.ilike'?: string;
471
+ 'where.nextRunAt.in'?: string;
472
+ 'where.nextRunAt.nin'?: string;
473
+ 'where.nextRunAt.contains'?: string;
474
+ 'where.nextRunAt.contained'?: string;
475
+ 'where.nextRunAt.overlaps'?: string;
476
+ 'where.paused.eq'?: boolean;
477
+ 'where.paused.neq'?: boolean;
478
+ 'where.paused.gt'?: boolean;
479
+ 'where.paused.gte'?: boolean;
480
+ 'where.paused.lt'?: boolean;
481
+ 'where.paused.lte'?: boolean;
482
+ 'where.paused.like'?: boolean;
483
+ 'where.paused.ilike'?: boolean;
484
+ 'where.paused.in'?: string;
485
+ 'where.paused.nin'?: string;
486
+ 'where.paused.contains'?: string;
487
+ 'where.paused.contained'?: string;
488
+ 'where.paused.overlaps'?: string;
489
+ 'where.protected.eq'?: boolean;
490
+ 'where.protected.neq'?: boolean;
491
+ 'where.protected.gt'?: boolean;
492
+ 'where.protected.gte'?: boolean;
493
+ 'where.protected.lt'?: boolean;
494
+ 'where.protected.lte'?: boolean;
495
+ 'where.protected.like'?: boolean;
496
+ 'where.protected.ilike'?: boolean;
497
+ 'where.protected.in'?: string;
498
+ 'where.protected.nin'?: string;
499
+ 'where.protected.contains'?: string;
500
+ 'where.protected.contained'?: string;
501
+ 'where.protected.overlaps'?: string;
502
+ 'where.schedule.eq'?: string;
503
+ 'where.schedule.neq'?: string;
504
+ 'where.schedule.gt'?: string;
505
+ 'where.schedule.gte'?: string;
506
+ 'where.schedule.lt'?: string;
507
+ 'where.schedule.lte'?: string;
508
+ 'where.schedule.like'?: string;
509
+ 'where.schedule.ilike'?: string;
510
+ 'where.schedule.in'?: string;
511
+ 'where.schedule.nin'?: string;
512
+ 'where.schedule.contains'?: string;
513
+ 'where.schedule.contained'?: string;
514
+ 'where.schedule.overlaps'?: string;
515
+ 'where.status.eq'?: string;
516
+ 'where.status.neq'?: string;
517
+ 'where.status.gt'?: string;
518
+ 'where.status.gte'?: string;
519
+ 'where.status.lt'?: string;
520
+ 'where.status.lte'?: string;
521
+ 'where.status.like'?: string;
522
+ 'where.status.ilike'?: string;
523
+ 'where.status.in'?: string;
524
+ 'where.status.nin'?: string;
525
+ 'where.status.contains'?: string;
526
+ 'where.status.contained'?: string;
527
+ 'where.status.overlaps'?: string;
528
+ 'where.updatedAt.eq'?: string;
529
+ 'where.updatedAt.neq'?: string;
530
+ 'where.updatedAt.gt'?: string;
531
+ 'where.updatedAt.gte'?: string;
532
+ 'where.updatedAt.lt'?: string;
533
+ 'where.updatedAt.lte'?: string;
534
+ 'where.updatedAt.like'?: string;
535
+ 'where.updatedAt.ilike'?: string;
536
+ 'where.updatedAt.in'?: string;
537
+ 'where.updatedAt.nin'?: string;
538
+ 'where.updatedAt.contains'?: string;
539
+ 'where.updatedAt.contained'?: string;
540
+ 'where.updatedAt.overlaps'?: string;
541
+ 'where.or'?: Array<string>;
542
+ 'id'?: number;
543
+ 'name': string;
544
+ 'schedule'?: string | null;
545
+ 'callbackUrl'?: string | null;
546
+ 'method': string;
547
+ 'body'?: string | null;
548
+ 'headers'?: object | null;
549
+ 'maxRetries': number;
550
+ 'paused': boolean;
551
+ 'protected': boolean;
552
+ 'applicationId'?: string | null;
553
+ 'status'?: string | null;
554
+ 'createdAt'?: string | null;
555
+ 'updatedAt'?: string | null;
556
+ 'deletedAt'?: string | null;
557
+ 'lastRunAt'?: string | null;
558
+ 'nextRunAt'?: string | null;
559
+ 'jobType': 'ICC' | 'WATT' | 'USER';
560
+ }
561
+
562
+ /**
563
+ * Default Response
564
+ */
565
+ export type UpdateJobsResponseOK = Array<{ 'id'?: number | null; 'name'?: string | null; 'schedule'?: string | null; 'callbackUrl'?: string | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'maxRetries'?: number | null; 'paused'?: boolean | null; 'protected'?: boolean | null; 'applicationId'?: string | null; 'status'?: string | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'lastRunAt'?: string | null; 'nextRunAt'?: string | null; 'jobType'?: 'ICC' | 'WATT' | 'USER' | null }>
566
+ export type UpdateJobsResponses =
567
+ UpdateJobsResponseOK
568
+
569
+ export type GetJobByIdRequest = {
570
+ 'fields'?: Array<'applicationId' | 'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'headers' | 'id' | 'jobType' | 'lastRunAt' | 'maxRetries' | 'method' | 'name' | 'nextRunAt' | 'paused' | 'protected' | 'schedule' | 'status' | 'updatedAt'>;
571
+ 'id': number;
572
+ }
573
+
574
+ /**
575
+ * A Job
576
+ */
577
+ export type GetJobByIdResponseOK = { 'id'?: number | null; 'name'?: string | null; 'schedule'?: string | null; 'callbackUrl'?: string | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'maxRetries'?: number | null; 'paused'?: boolean | null; 'protected'?: boolean | null; 'applicationId'?: string | null; 'status'?: string | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'lastRunAt'?: string | null; 'nextRunAt'?: string | null; 'jobType'?: 'ICC' | 'WATT' | 'USER' | null }
578
+ export type GetJobByIdResponses =
579
+ GetJobByIdResponseOK
580
+
581
+ export type UpdateJobRequest = {
582
+ 'fields'?: Array<'applicationId' | 'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'headers' | 'id' | 'jobType' | 'lastRunAt' | 'maxRetries' | 'method' | 'name' | 'nextRunAt' | 'paused' | 'protected' | 'schedule' | 'status' | 'updatedAt'>;
583
+ 'id': number;
584
+ 'name': string;
585
+ 'schedule'?: string | null;
586
+ 'callbackUrl'?: string | null;
587
+ 'method': string;
588
+ 'body'?: string | null;
589
+ 'headers'?: object | null;
590
+ 'maxRetries': number;
591
+ 'paused': boolean;
592
+ 'protected': boolean;
593
+ 'applicationId'?: string | null;
594
+ 'status'?: string | null;
595
+ 'createdAt'?: string | null;
596
+ 'updatedAt'?: string | null;
597
+ 'deletedAt'?: string | null;
598
+ 'lastRunAt'?: string | null;
599
+ 'nextRunAt'?: string | null;
600
+ 'jobType': 'ICC' | 'WATT' | 'USER';
601
+ }
602
+
603
+ /**
604
+ * A Job
605
+ */
606
+ export type UpdateJobResponseOK = { 'id'?: number | null; 'name'?: string | null; 'schedule'?: string | null; 'callbackUrl'?: string | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'maxRetries'?: number | null; 'paused'?: boolean | null; 'protected'?: boolean | null; 'applicationId'?: string | null; 'status'?: string | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'lastRunAt'?: string | null; 'nextRunAt'?: string | null; 'jobType'?: 'ICC' | 'WATT' | 'USER' | null }
607
+ export type UpdateJobResponses =
608
+ UpdateJobResponseOK
609
+
610
+ export type DeleteJobsRequest = {
611
+ 'fields'?: Array<'applicationId' | 'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'headers' | 'id' | 'jobType' | 'lastRunAt' | 'maxRetries' | 'method' | 'name' | 'nextRunAt' | 'paused' | 'protected' | 'schedule' | 'status' | 'updatedAt'>;
612
+ 'id': number;
613
+ }
614
+
615
+ /**
616
+ * A Job
617
+ */
618
+ export type DeleteJobsResponseOK = { 'id'?: number | null; 'name'?: string | null; 'schedule'?: string | null; 'callbackUrl'?: string | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'maxRetries'?: number | null; 'paused'?: boolean | null; 'protected'?: boolean | null; 'applicationId'?: string | null; 'status'?: string | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'lastRunAt'?: string | null; 'nextRunAt'?: string | null; 'jobType'?: 'ICC' | 'WATT' | 'USER' | null }
619
+ export type DeleteJobsResponses =
620
+ DeleteJobsResponseOK
621
+
622
+ export type GetMessagesForJobRequest = {
623
+ 'fields'?: Array<'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'failed' | 'headers' | 'id' | 'jobId' | 'method' | 'noReschedule' | 'responseBody' | 'responseHeaders' | 'responseStatusCode' | 'retries' | 'sentAt' | 'updatedAt' | 'when'>;
624
+ 'id': number;
625
+ }
626
+
627
+ /**
628
+ * Default Response
629
+ */
630
+ export type GetMessagesForJobResponseOK = Array<{ 'id'?: number | null; 'jobId'?: number | null; 'when'?: string | null; 'failed'?: boolean | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'sentAt'?: string | null; 'retries'?: number | null; 'responseBody'?: string | null; 'responseStatusCode'?: string | null; 'noReschedule'?: boolean | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'responseHeaders'?: string | null; 'callbackUrl'?: string | null }>
631
+ export type GetMessagesForJobResponses =
632
+ GetMessagesForJobResponseOK
633
+
634
+ export type GetMessagesRequest = {
635
+ /**
636
+ * Limit will be applied by default if not passed. If the provided value exceeds the maximum allowed value a validation error will be thrown
637
+ */
638
+ 'limit'?: number;
639
+ 'offset'?: number;
640
+ 'totalCount'?: boolean;
641
+ 'fields'?: Array<'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'failed' | 'headers' | 'id' | 'jobId' | 'method' | 'noReschedule' | 'responseBody' | 'responseHeaders' | 'responseStatusCode' | 'retries' | 'sentAt' | 'updatedAt' | 'when'>;
642
+ 'where.body.eq'?: string;
643
+ 'where.body.neq'?: string;
644
+ 'where.body.gt'?: string;
645
+ 'where.body.gte'?: string;
646
+ 'where.body.lt'?: string;
647
+ 'where.body.lte'?: string;
648
+ 'where.body.like'?: string;
649
+ 'where.body.ilike'?: string;
650
+ 'where.body.in'?: string;
651
+ 'where.body.nin'?: string;
652
+ 'where.body.contains'?: string;
653
+ 'where.body.contained'?: string;
654
+ 'where.body.overlaps'?: string;
655
+ 'where.callbackUrl.eq'?: string;
656
+ 'where.callbackUrl.neq'?: string;
657
+ 'where.callbackUrl.gt'?: string;
658
+ 'where.callbackUrl.gte'?: string;
659
+ 'where.callbackUrl.lt'?: string;
660
+ 'where.callbackUrl.lte'?: string;
661
+ 'where.callbackUrl.like'?: string;
662
+ 'where.callbackUrl.ilike'?: string;
663
+ 'where.callbackUrl.in'?: string;
664
+ 'where.callbackUrl.nin'?: string;
665
+ 'where.callbackUrl.contains'?: string;
666
+ 'where.callbackUrl.contained'?: string;
667
+ 'where.callbackUrl.overlaps'?: string;
668
+ 'where.createdAt.eq'?: string;
669
+ 'where.createdAt.neq'?: string;
670
+ 'where.createdAt.gt'?: string;
671
+ 'where.createdAt.gte'?: string;
672
+ 'where.createdAt.lt'?: string;
673
+ 'where.createdAt.lte'?: string;
674
+ 'where.createdAt.like'?: string;
675
+ 'where.createdAt.ilike'?: string;
676
+ 'where.createdAt.in'?: string;
677
+ 'where.createdAt.nin'?: string;
678
+ 'where.createdAt.contains'?: string;
679
+ 'where.createdAt.contained'?: string;
680
+ 'where.createdAt.overlaps'?: string;
681
+ 'where.deletedAt.eq'?: string;
682
+ 'where.deletedAt.neq'?: string;
683
+ 'where.deletedAt.gt'?: string;
684
+ 'where.deletedAt.gte'?: string;
685
+ 'where.deletedAt.lt'?: string;
686
+ 'where.deletedAt.lte'?: string;
687
+ 'where.deletedAt.like'?: string;
688
+ 'where.deletedAt.ilike'?: string;
689
+ 'where.deletedAt.in'?: string;
690
+ 'where.deletedAt.nin'?: string;
691
+ 'where.deletedAt.contains'?: string;
692
+ 'where.deletedAt.contained'?: string;
693
+ 'where.deletedAt.overlaps'?: string;
694
+ 'where.failed.eq'?: boolean;
695
+ 'where.failed.neq'?: boolean;
696
+ 'where.failed.gt'?: boolean;
697
+ 'where.failed.gte'?: boolean;
698
+ 'where.failed.lt'?: boolean;
699
+ 'where.failed.lte'?: boolean;
700
+ 'where.failed.like'?: boolean;
701
+ 'where.failed.ilike'?: boolean;
702
+ 'where.failed.in'?: string;
703
+ 'where.failed.nin'?: string;
704
+ 'where.failed.contains'?: string;
705
+ 'where.failed.contained'?: string;
706
+ 'where.failed.overlaps'?: string;
707
+ 'where.headers.eq'?: string;
708
+ 'where.headers.neq'?: string;
709
+ 'where.headers.gt'?: string;
710
+ 'where.headers.gte'?: string;
711
+ 'where.headers.lt'?: string;
712
+ 'where.headers.lte'?: string;
713
+ 'where.headers.like'?: string;
714
+ 'where.headers.ilike'?: string;
715
+ 'where.headers.in'?: string;
716
+ 'where.headers.nin'?: string;
717
+ 'where.headers.contains'?: string;
718
+ 'where.headers.contained'?: string;
719
+ 'where.headers.overlaps'?: string;
720
+ 'where.id.eq'?: number;
721
+ 'where.id.neq'?: number;
722
+ 'where.id.gt'?: number;
723
+ 'where.id.gte'?: number;
724
+ 'where.id.lt'?: number;
725
+ 'where.id.lte'?: number;
726
+ 'where.id.like'?: number;
727
+ 'where.id.ilike'?: number;
728
+ 'where.id.in'?: string;
729
+ 'where.id.nin'?: string;
730
+ 'where.id.contains'?: string;
731
+ 'where.id.contained'?: string;
732
+ 'where.id.overlaps'?: string;
733
+ 'where.jobId.eq'?: number;
734
+ 'where.jobId.neq'?: number;
735
+ 'where.jobId.gt'?: number;
736
+ 'where.jobId.gte'?: number;
737
+ 'where.jobId.lt'?: number;
738
+ 'where.jobId.lte'?: number;
739
+ 'where.jobId.like'?: number;
740
+ 'where.jobId.ilike'?: number;
741
+ 'where.jobId.in'?: string;
742
+ 'where.jobId.nin'?: string;
743
+ 'where.jobId.contains'?: string;
744
+ 'where.jobId.contained'?: string;
745
+ 'where.jobId.overlaps'?: string;
746
+ 'where.method.eq'?: string;
747
+ 'where.method.neq'?: string;
748
+ 'where.method.gt'?: string;
749
+ 'where.method.gte'?: string;
750
+ 'where.method.lt'?: string;
751
+ 'where.method.lte'?: string;
752
+ 'where.method.like'?: string;
753
+ 'where.method.ilike'?: string;
754
+ 'where.method.in'?: string;
755
+ 'where.method.nin'?: string;
756
+ 'where.method.contains'?: string;
757
+ 'where.method.contained'?: string;
758
+ 'where.method.overlaps'?: string;
759
+ 'where.noReschedule.eq'?: boolean;
760
+ 'where.noReschedule.neq'?: boolean;
761
+ 'where.noReschedule.gt'?: boolean;
762
+ 'where.noReschedule.gte'?: boolean;
763
+ 'where.noReschedule.lt'?: boolean;
764
+ 'where.noReschedule.lte'?: boolean;
765
+ 'where.noReschedule.like'?: boolean;
766
+ 'where.noReschedule.ilike'?: boolean;
767
+ 'where.noReschedule.in'?: string;
768
+ 'where.noReschedule.nin'?: string;
769
+ 'where.noReschedule.contains'?: string;
770
+ 'where.noReschedule.contained'?: string;
771
+ 'where.noReschedule.overlaps'?: string;
772
+ 'where.responseBody.eq'?: string;
773
+ 'where.responseBody.neq'?: string;
774
+ 'where.responseBody.gt'?: string;
775
+ 'where.responseBody.gte'?: string;
776
+ 'where.responseBody.lt'?: string;
777
+ 'where.responseBody.lte'?: string;
778
+ 'where.responseBody.like'?: string;
779
+ 'where.responseBody.ilike'?: string;
780
+ 'where.responseBody.in'?: string;
781
+ 'where.responseBody.nin'?: string;
782
+ 'where.responseBody.contains'?: string;
783
+ 'where.responseBody.contained'?: string;
784
+ 'where.responseBody.overlaps'?: string;
785
+ 'where.responseHeaders.eq'?: string;
786
+ 'where.responseHeaders.neq'?: string;
787
+ 'where.responseHeaders.gt'?: string;
788
+ 'where.responseHeaders.gte'?: string;
789
+ 'where.responseHeaders.lt'?: string;
790
+ 'where.responseHeaders.lte'?: string;
791
+ 'where.responseHeaders.like'?: string;
792
+ 'where.responseHeaders.ilike'?: string;
793
+ 'where.responseHeaders.in'?: string;
794
+ 'where.responseHeaders.nin'?: string;
795
+ 'where.responseHeaders.contains'?: string;
796
+ 'where.responseHeaders.contained'?: string;
797
+ 'where.responseHeaders.overlaps'?: string;
798
+ 'where.responseStatusCode.eq'?: string;
799
+ 'where.responseStatusCode.neq'?: string;
800
+ 'where.responseStatusCode.gt'?: string;
801
+ 'where.responseStatusCode.gte'?: string;
802
+ 'where.responseStatusCode.lt'?: string;
803
+ 'where.responseStatusCode.lte'?: string;
804
+ 'where.responseStatusCode.like'?: string;
805
+ 'where.responseStatusCode.ilike'?: string;
806
+ 'where.responseStatusCode.in'?: string;
807
+ 'where.responseStatusCode.nin'?: string;
808
+ 'where.responseStatusCode.contains'?: string;
809
+ 'where.responseStatusCode.contained'?: string;
810
+ 'where.responseStatusCode.overlaps'?: string;
811
+ 'where.retries.eq'?: number;
812
+ 'where.retries.neq'?: number;
813
+ 'where.retries.gt'?: number;
814
+ 'where.retries.gte'?: number;
815
+ 'where.retries.lt'?: number;
816
+ 'where.retries.lte'?: number;
817
+ 'where.retries.like'?: number;
818
+ 'where.retries.ilike'?: number;
819
+ 'where.retries.in'?: string;
820
+ 'where.retries.nin'?: string;
821
+ 'where.retries.contains'?: string;
822
+ 'where.retries.contained'?: string;
823
+ 'where.retries.overlaps'?: string;
824
+ 'where.sentAt.eq'?: string;
825
+ 'where.sentAt.neq'?: string;
826
+ 'where.sentAt.gt'?: string;
827
+ 'where.sentAt.gte'?: string;
828
+ 'where.sentAt.lt'?: string;
829
+ 'where.sentAt.lte'?: string;
830
+ 'where.sentAt.like'?: string;
831
+ 'where.sentAt.ilike'?: string;
832
+ 'where.sentAt.in'?: string;
833
+ 'where.sentAt.nin'?: string;
834
+ 'where.sentAt.contains'?: string;
835
+ 'where.sentAt.contained'?: string;
836
+ 'where.sentAt.overlaps'?: string;
837
+ 'where.updatedAt.eq'?: string;
838
+ 'where.updatedAt.neq'?: string;
839
+ 'where.updatedAt.gt'?: string;
840
+ 'where.updatedAt.gte'?: string;
841
+ 'where.updatedAt.lt'?: string;
842
+ 'where.updatedAt.lte'?: string;
843
+ 'where.updatedAt.like'?: string;
844
+ 'where.updatedAt.ilike'?: string;
845
+ 'where.updatedAt.in'?: string;
846
+ 'where.updatedAt.nin'?: string;
847
+ 'where.updatedAt.contains'?: string;
848
+ 'where.updatedAt.contained'?: string;
849
+ 'where.updatedAt.overlaps'?: string;
850
+ 'where.when.eq'?: string;
851
+ 'where.when.neq'?: string;
852
+ 'where.when.gt'?: string;
853
+ 'where.when.gte'?: string;
854
+ 'where.when.lt'?: string;
855
+ 'where.when.lte'?: string;
856
+ 'where.when.like'?: string;
857
+ 'where.when.ilike'?: string;
858
+ 'where.when.in'?: string;
859
+ 'where.when.nin'?: string;
860
+ 'where.when.contains'?: string;
861
+ 'where.when.contained'?: string;
862
+ 'where.when.overlaps'?: string;
863
+ 'where.or'?: Array<string>;
864
+ 'orderby.body'?: 'asc' | 'desc';
865
+ 'orderby.callbackUrl'?: 'asc' | 'desc';
866
+ 'orderby.createdAt'?: 'asc' | 'desc';
867
+ 'orderby.deletedAt'?: 'asc' | 'desc';
868
+ 'orderby.failed'?: 'asc' | 'desc';
869
+ 'orderby.headers'?: 'asc' | 'desc';
870
+ 'orderby.id'?: 'asc' | 'desc';
871
+ 'orderby.jobId'?: 'asc' | 'desc';
872
+ 'orderby.method'?: 'asc' | 'desc';
873
+ 'orderby.noReschedule'?: 'asc' | 'desc';
874
+ 'orderby.responseBody'?: 'asc' | 'desc';
875
+ 'orderby.responseHeaders'?: 'asc' | 'desc';
876
+ 'orderby.responseStatusCode'?: 'asc' | 'desc';
877
+ 'orderby.retries'?: 'asc' | 'desc';
878
+ 'orderby.sentAt'?: 'asc' | 'desc';
879
+ 'orderby.updatedAt'?: 'asc' | 'desc';
880
+ 'orderby.when'?: 'asc' | 'desc';
881
+ }
882
+
883
+ /**
884
+ * Default Response
885
+ */
886
+ export type GetMessagesResponseOK = Array<{ 'id'?: number | null; 'jobId'?: number | null; 'when'?: string | null; 'failed'?: boolean | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'sentAt'?: string | null; 'retries'?: number | null; 'responseBody'?: string | null; 'responseStatusCode'?: string | null; 'noReschedule'?: boolean | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'responseHeaders'?: string | null; 'callbackUrl'?: string | null }>
887
+ export type GetMessagesResponses =
888
+ GetMessagesResponseOK
889
+
890
+ export type CreateMessageRequest = {
891
+ 'id'?: number;
892
+ 'jobId': number;
893
+ 'when'?: string | null;
894
+ 'failed'?: boolean | null;
895
+ 'method': string;
896
+ 'body'?: string | null;
897
+ 'headers'?: object | null;
898
+ 'sentAt'?: string | null;
899
+ 'retries'?: number | null;
900
+ 'responseBody'?: string | null;
901
+ 'responseStatusCode'?: string | null;
902
+ 'noReschedule'?: boolean | null;
903
+ 'createdAt'?: string | null;
904
+ 'updatedAt'?: string | null;
905
+ 'deletedAt'?: string | null;
906
+ 'responseHeaders'?: string | null;
907
+ 'callbackUrl'?: string | null;
908
+ }
909
+
910
+ /**
911
+ * A Message
912
+ */
913
+ export type CreateMessageResponseOK = { 'id'?: number | null; 'jobId'?: number | null; 'when'?: string | null; 'failed'?: boolean | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'sentAt'?: string | null; 'retries'?: number | null; 'responseBody'?: string | null; 'responseStatusCode'?: string | null; 'noReschedule'?: boolean | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'responseHeaders'?: string | null; 'callbackUrl'?: string | null }
914
+ export type CreateMessageResponses =
915
+ CreateMessageResponseOK
916
+
917
+ export type UpdateMessagesRequest = {
918
+ 'fields'?: Array<'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'failed' | 'headers' | 'id' | 'jobId' | 'method' | 'noReschedule' | 'responseBody' | 'responseHeaders' | 'responseStatusCode' | 'retries' | 'sentAt' | 'updatedAt' | 'when'>;
919
+ 'where.body.eq'?: string;
920
+ 'where.body.neq'?: string;
921
+ 'where.body.gt'?: string;
922
+ 'where.body.gte'?: string;
923
+ 'where.body.lt'?: string;
924
+ 'where.body.lte'?: string;
925
+ 'where.body.like'?: string;
926
+ 'where.body.ilike'?: string;
927
+ 'where.body.in'?: string;
928
+ 'where.body.nin'?: string;
929
+ 'where.body.contains'?: string;
930
+ 'where.body.contained'?: string;
931
+ 'where.body.overlaps'?: string;
932
+ 'where.callbackUrl.eq'?: string;
933
+ 'where.callbackUrl.neq'?: string;
934
+ 'where.callbackUrl.gt'?: string;
935
+ 'where.callbackUrl.gte'?: string;
936
+ 'where.callbackUrl.lt'?: string;
937
+ 'where.callbackUrl.lte'?: string;
938
+ 'where.callbackUrl.like'?: string;
939
+ 'where.callbackUrl.ilike'?: string;
940
+ 'where.callbackUrl.in'?: string;
941
+ 'where.callbackUrl.nin'?: string;
942
+ 'where.callbackUrl.contains'?: string;
943
+ 'where.callbackUrl.contained'?: string;
944
+ 'where.callbackUrl.overlaps'?: string;
945
+ 'where.createdAt.eq'?: string;
946
+ 'where.createdAt.neq'?: string;
947
+ 'where.createdAt.gt'?: string;
948
+ 'where.createdAt.gte'?: string;
949
+ 'where.createdAt.lt'?: string;
950
+ 'where.createdAt.lte'?: string;
951
+ 'where.createdAt.like'?: string;
952
+ 'where.createdAt.ilike'?: string;
953
+ 'where.createdAt.in'?: string;
954
+ 'where.createdAt.nin'?: string;
955
+ 'where.createdAt.contains'?: string;
956
+ 'where.createdAt.contained'?: string;
957
+ 'where.createdAt.overlaps'?: string;
958
+ 'where.deletedAt.eq'?: string;
959
+ 'where.deletedAt.neq'?: string;
960
+ 'where.deletedAt.gt'?: string;
961
+ 'where.deletedAt.gte'?: string;
962
+ 'where.deletedAt.lt'?: string;
963
+ 'where.deletedAt.lte'?: string;
964
+ 'where.deletedAt.like'?: string;
965
+ 'where.deletedAt.ilike'?: string;
966
+ 'where.deletedAt.in'?: string;
967
+ 'where.deletedAt.nin'?: string;
968
+ 'where.deletedAt.contains'?: string;
969
+ 'where.deletedAt.contained'?: string;
970
+ 'where.deletedAt.overlaps'?: string;
971
+ 'where.failed.eq'?: boolean;
972
+ 'where.failed.neq'?: boolean;
973
+ 'where.failed.gt'?: boolean;
974
+ 'where.failed.gte'?: boolean;
975
+ 'where.failed.lt'?: boolean;
976
+ 'where.failed.lte'?: boolean;
977
+ 'where.failed.like'?: boolean;
978
+ 'where.failed.ilike'?: boolean;
979
+ 'where.failed.in'?: string;
980
+ 'where.failed.nin'?: string;
981
+ 'where.failed.contains'?: string;
982
+ 'where.failed.contained'?: string;
983
+ 'where.failed.overlaps'?: string;
984
+ 'where.headers.eq'?: string;
985
+ 'where.headers.neq'?: string;
986
+ 'where.headers.gt'?: string;
987
+ 'where.headers.gte'?: string;
988
+ 'where.headers.lt'?: string;
989
+ 'where.headers.lte'?: string;
990
+ 'where.headers.like'?: string;
991
+ 'where.headers.ilike'?: string;
992
+ 'where.headers.in'?: string;
993
+ 'where.headers.nin'?: string;
994
+ 'where.headers.contains'?: string;
995
+ 'where.headers.contained'?: string;
996
+ 'where.headers.overlaps'?: string;
997
+ 'where.id.eq'?: number;
998
+ 'where.id.neq'?: number;
999
+ 'where.id.gt'?: number;
1000
+ 'where.id.gte'?: number;
1001
+ 'where.id.lt'?: number;
1002
+ 'where.id.lte'?: number;
1003
+ 'where.id.like'?: number;
1004
+ 'where.id.ilike'?: number;
1005
+ 'where.id.in'?: string;
1006
+ 'where.id.nin'?: string;
1007
+ 'where.id.contains'?: string;
1008
+ 'where.id.contained'?: string;
1009
+ 'where.id.overlaps'?: string;
1010
+ 'where.jobId.eq'?: number;
1011
+ 'where.jobId.neq'?: number;
1012
+ 'where.jobId.gt'?: number;
1013
+ 'where.jobId.gte'?: number;
1014
+ 'where.jobId.lt'?: number;
1015
+ 'where.jobId.lte'?: number;
1016
+ 'where.jobId.like'?: number;
1017
+ 'where.jobId.ilike'?: number;
1018
+ 'where.jobId.in'?: string;
1019
+ 'where.jobId.nin'?: string;
1020
+ 'where.jobId.contains'?: string;
1021
+ 'where.jobId.contained'?: string;
1022
+ 'where.jobId.overlaps'?: string;
1023
+ 'where.method.eq'?: string;
1024
+ 'where.method.neq'?: string;
1025
+ 'where.method.gt'?: string;
1026
+ 'where.method.gte'?: string;
1027
+ 'where.method.lt'?: string;
1028
+ 'where.method.lte'?: string;
1029
+ 'where.method.like'?: string;
1030
+ 'where.method.ilike'?: string;
1031
+ 'where.method.in'?: string;
1032
+ 'where.method.nin'?: string;
1033
+ 'where.method.contains'?: string;
1034
+ 'where.method.contained'?: string;
1035
+ 'where.method.overlaps'?: string;
1036
+ 'where.noReschedule.eq'?: boolean;
1037
+ 'where.noReschedule.neq'?: boolean;
1038
+ 'where.noReschedule.gt'?: boolean;
1039
+ 'where.noReschedule.gte'?: boolean;
1040
+ 'where.noReschedule.lt'?: boolean;
1041
+ 'where.noReschedule.lte'?: boolean;
1042
+ 'where.noReschedule.like'?: boolean;
1043
+ 'where.noReschedule.ilike'?: boolean;
1044
+ 'where.noReschedule.in'?: string;
1045
+ 'where.noReschedule.nin'?: string;
1046
+ 'where.noReschedule.contains'?: string;
1047
+ 'where.noReschedule.contained'?: string;
1048
+ 'where.noReschedule.overlaps'?: string;
1049
+ 'where.responseBody.eq'?: string;
1050
+ 'where.responseBody.neq'?: string;
1051
+ 'where.responseBody.gt'?: string;
1052
+ 'where.responseBody.gte'?: string;
1053
+ 'where.responseBody.lt'?: string;
1054
+ 'where.responseBody.lte'?: string;
1055
+ 'where.responseBody.like'?: string;
1056
+ 'where.responseBody.ilike'?: string;
1057
+ 'where.responseBody.in'?: string;
1058
+ 'where.responseBody.nin'?: string;
1059
+ 'where.responseBody.contains'?: string;
1060
+ 'where.responseBody.contained'?: string;
1061
+ 'where.responseBody.overlaps'?: string;
1062
+ 'where.responseHeaders.eq'?: string;
1063
+ 'where.responseHeaders.neq'?: string;
1064
+ 'where.responseHeaders.gt'?: string;
1065
+ 'where.responseHeaders.gte'?: string;
1066
+ 'where.responseHeaders.lt'?: string;
1067
+ 'where.responseHeaders.lte'?: string;
1068
+ 'where.responseHeaders.like'?: string;
1069
+ 'where.responseHeaders.ilike'?: string;
1070
+ 'where.responseHeaders.in'?: string;
1071
+ 'where.responseHeaders.nin'?: string;
1072
+ 'where.responseHeaders.contains'?: string;
1073
+ 'where.responseHeaders.contained'?: string;
1074
+ 'where.responseHeaders.overlaps'?: string;
1075
+ 'where.responseStatusCode.eq'?: string;
1076
+ 'where.responseStatusCode.neq'?: string;
1077
+ 'where.responseStatusCode.gt'?: string;
1078
+ 'where.responseStatusCode.gte'?: string;
1079
+ 'where.responseStatusCode.lt'?: string;
1080
+ 'where.responseStatusCode.lte'?: string;
1081
+ 'where.responseStatusCode.like'?: string;
1082
+ 'where.responseStatusCode.ilike'?: string;
1083
+ 'where.responseStatusCode.in'?: string;
1084
+ 'where.responseStatusCode.nin'?: string;
1085
+ 'where.responseStatusCode.contains'?: string;
1086
+ 'where.responseStatusCode.contained'?: string;
1087
+ 'where.responseStatusCode.overlaps'?: string;
1088
+ 'where.retries.eq'?: number;
1089
+ 'where.retries.neq'?: number;
1090
+ 'where.retries.gt'?: number;
1091
+ 'where.retries.gte'?: number;
1092
+ 'where.retries.lt'?: number;
1093
+ 'where.retries.lte'?: number;
1094
+ 'where.retries.like'?: number;
1095
+ 'where.retries.ilike'?: number;
1096
+ 'where.retries.in'?: string;
1097
+ 'where.retries.nin'?: string;
1098
+ 'where.retries.contains'?: string;
1099
+ 'where.retries.contained'?: string;
1100
+ 'where.retries.overlaps'?: string;
1101
+ 'where.sentAt.eq'?: string;
1102
+ 'where.sentAt.neq'?: string;
1103
+ 'where.sentAt.gt'?: string;
1104
+ 'where.sentAt.gte'?: string;
1105
+ 'where.sentAt.lt'?: string;
1106
+ 'where.sentAt.lte'?: string;
1107
+ 'where.sentAt.like'?: string;
1108
+ 'where.sentAt.ilike'?: string;
1109
+ 'where.sentAt.in'?: string;
1110
+ 'where.sentAt.nin'?: string;
1111
+ 'where.sentAt.contains'?: string;
1112
+ 'where.sentAt.contained'?: string;
1113
+ 'where.sentAt.overlaps'?: string;
1114
+ 'where.updatedAt.eq'?: string;
1115
+ 'where.updatedAt.neq'?: string;
1116
+ 'where.updatedAt.gt'?: string;
1117
+ 'where.updatedAt.gte'?: string;
1118
+ 'where.updatedAt.lt'?: string;
1119
+ 'where.updatedAt.lte'?: string;
1120
+ 'where.updatedAt.like'?: string;
1121
+ 'where.updatedAt.ilike'?: string;
1122
+ 'where.updatedAt.in'?: string;
1123
+ 'where.updatedAt.nin'?: string;
1124
+ 'where.updatedAt.contains'?: string;
1125
+ 'where.updatedAt.contained'?: string;
1126
+ 'where.updatedAt.overlaps'?: string;
1127
+ 'where.when.eq'?: string;
1128
+ 'where.when.neq'?: string;
1129
+ 'where.when.gt'?: string;
1130
+ 'where.when.gte'?: string;
1131
+ 'where.when.lt'?: string;
1132
+ 'where.when.lte'?: string;
1133
+ 'where.when.like'?: string;
1134
+ 'where.when.ilike'?: string;
1135
+ 'where.when.in'?: string;
1136
+ 'where.when.nin'?: string;
1137
+ 'where.when.contains'?: string;
1138
+ 'where.when.contained'?: string;
1139
+ 'where.when.overlaps'?: string;
1140
+ 'where.or'?: Array<string>;
1141
+ 'id'?: number;
1142
+ 'jobId': number;
1143
+ 'when'?: string | null;
1144
+ 'failed'?: boolean | null;
1145
+ 'method': string;
1146
+ 'body'?: string | null;
1147
+ 'headers'?: object | null;
1148
+ 'sentAt'?: string | null;
1149
+ 'retries'?: number | null;
1150
+ 'responseBody'?: string | null;
1151
+ 'responseStatusCode'?: string | null;
1152
+ 'noReschedule'?: boolean | null;
1153
+ 'createdAt'?: string | null;
1154
+ 'updatedAt'?: string | null;
1155
+ 'deletedAt'?: string | null;
1156
+ 'responseHeaders'?: string | null;
1157
+ 'callbackUrl'?: string | null;
1158
+ }
1159
+
1160
+ /**
1161
+ * Default Response
1162
+ */
1163
+ export type UpdateMessagesResponseOK = Array<{ 'id'?: number | null; 'jobId'?: number | null; 'when'?: string | null; 'failed'?: boolean | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'sentAt'?: string | null; 'retries'?: number | null; 'responseBody'?: string | null; 'responseStatusCode'?: string | null; 'noReschedule'?: boolean | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'responseHeaders'?: string | null; 'callbackUrl'?: string | null }>
1164
+ export type UpdateMessagesResponses =
1165
+ UpdateMessagesResponseOK
1166
+
1167
+ export type GetMessageByIdRequest = {
1168
+ 'fields'?: Array<'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'failed' | 'headers' | 'id' | 'jobId' | 'method' | 'noReschedule' | 'responseBody' | 'responseHeaders' | 'responseStatusCode' | 'retries' | 'sentAt' | 'updatedAt' | 'when'>;
1169
+ 'id': number;
1170
+ }
1171
+
1172
+ /**
1173
+ * A Message
1174
+ */
1175
+ export type GetMessageByIdResponseOK = { 'id'?: number | null; 'jobId'?: number | null; 'when'?: string | null; 'failed'?: boolean | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'sentAt'?: string | null; 'retries'?: number | null; 'responseBody'?: string | null; 'responseStatusCode'?: string | null; 'noReschedule'?: boolean | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'responseHeaders'?: string | null; 'callbackUrl'?: string | null }
1176
+ export type GetMessageByIdResponses =
1177
+ GetMessageByIdResponseOK
1178
+
1179
+ export type UpdateMessageRequest = {
1180
+ 'fields'?: Array<'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'failed' | 'headers' | 'id' | 'jobId' | 'method' | 'noReschedule' | 'responseBody' | 'responseHeaders' | 'responseStatusCode' | 'retries' | 'sentAt' | 'updatedAt' | 'when'>;
1181
+ 'id': number;
1182
+ 'jobId': number;
1183
+ 'when'?: string | null;
1184
+ 'failed'?: boolean | null;
1185
+ 'method': string;
1186
+ 'body'?: string | null;
1187
+ 'headers'?: object | null;
1188
+ 'sentAt'?: string | null;
1189
+ 'retries'?: number | null;
1190
+ 'responseBody'?: string | null;
1191
+ 'responseStatusCode'?: string | null;
1192
+ 'noReschedule'?: boolean | null;
1193
+ 'createdAt'?: string | null;
1194
+ 'updatedAt'?: string | null;
1195
+ 'deletedAt'?: string | null;
1196
+ 'responseHeaders'?: string | null;
1197
+ 'callbackUrl'?: string | null;
1198
+ }
1199
+
1200
+ /**
1201
+ * A Message
1202
+ */
1203
+ export type UpdateMessageResponseOK = { 'id'?: number | null; 'jobId'?: number | null; 'when'?: string | null; 'failed'?: boolean | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'sentAt'?: string | null; 'retries'?: number | null; 'responseBody'?: string | null; 'responseStatusCode'?: string | null; 'noReschedule'?: boolean | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'responseHeaders'?: string | null; 'callbackUrl'?: string | null }
1204
+ export type UpdateMessageResponses =
1205
+ UpdateMessageResponseOK
1206
+
1207
+ export type DeleteMessagesRequest = {
1208
+ 'fields'?: Array<'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'failed' | 'headers' | 'id' | 'jobId' | 'method' | 'noReschedule' | 'responseBody' | 'responseHeaders' | 'responseStatusCode' | 'retries' | 'sentAt' | 'updatedAt' | 'when'>;
1209
+ 'id': number;
1210
+ }
1211
+
1212
+ /**
1213
+ * A Message
1214
+ */
1215
+ export type DeleteMessagesResponseOK = { 'id'?: number | null; 'jobId'?: number | null; 'when'?: string | null; 'failed'?: boolean | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'sentAt'?: string | null; 'retries'?: number | null; 'responseBody'?: string | null; 'responseStatusCode'?: string | null; 'noReschedule'?: boolean | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'responseHeaders'?: string | null; 'callbackUrl'?: string | null }
1216
+ export type DeleteMessagesResponses =
1217
+ DeleteMessagesResponseOK
1218
+
1219
+ export type GetJobForMessageRequest = {
1220
+ 'fields'?: Array<'applicationId' | 'body' | 'callbackUrl' | 'createdAt' | 'deletedAt' | 'headers' | 'id' | 'jobType' | 'lastRunAt' | 'maxRetries' | 'method' | 'name' | 'nextRunAt' | 'paused' | 'protected' | 'schedule' | 'status' | 'updatedAt'>;
1221
+ 'id': number;
1222
+ }
1223
+
1224
+ /**
1225
+ * A Job
1226
+ */
1227
+ export type GetJobForMessageResponseOK = { 'id'?: number | null; 'name'?: string | null; 'schedule'?: string | null; 'callbackUrl'?: string | null; 'method'?: string | null; 'body'?: string | null; 'headers'?: object | null; 'maxRetries'?: number | null; 'paused'?: boolean | null; 'protected'?: boolean | null; 'applicationId'?: string | null; 'status'?: string | null; 'createdAt'?: string | null; 'updatedAt'?: string | null; 'deletedAt'?: string | null; 'lastRunAt'?: string | null; 'nextRunAt'?: string | null; 'jobType'?: 'ICC' | 'WATT' | 'USER' | null }
1228
+ export type GetJobForMessageResponses =
1229
+ GetJobForMessageResponseOK
1230
+
1231
+ export type GetIccJobsNameRequest = {
1232
+ 'name': string;
1233
+ }
1234
+
1235
+ export type GetIccJobsNameResponseOK = unknown
1236
+ export type GetIccJobsNameResponses =
1237
+ FullResponse<GetIccJobsNameResponseOK, 200>
1238
+
1239
+ export type PutIccJobsNameRequest = {
1240
+ 'name': string;
1241
+ 'schedule': string | null;
1242
+ }
1243
+
1244
+ export type PutIccJobsNameResponseOK = unknown
1245
+ export type PutIccJobsNameResponses =
1246
+ FullResponse<PutIccJobsNameResponseOK, 200>
1247
+
1248
+ export type GetIccJobsRequest = {
1249
+
1250
+ }
1251
+
1252
+ export type GetIccJobsResponseOK = unknown
1253
+ export type GetIccJobsResponses =
1254
+ FullResponse<GetIccJobsResponseOK, 200>
1255
+
1256
+ export type PutIccJobsRequest = {
1257
+ 'type': unknown;
1258
+ }
1259
+
1260
+ export type PutIccJobsResponseOK = unknown
1261
+ export type PutIccJobsResponses =
1262
+ FullResponse<PutIccJobsResponseOK, 200>
1263
+
1264
+ export type GetJobsIdRunRequest = {
1265
+ 'id': string;
1266
+ }
1267
+
1268
+ export type GetJobsIdRunResponseOK = unknown
1269
+ export type GetJobsIdRunResponses =
1270
+ FullResponse<GetJobsIdRunResponseOK, 200>
1271
+
1272
+ export type GetJobsIdPauseRequest = {
1273
+ 'id': string;
1274
+ }
1275
+
1276
+ export type GetJobsIdPauseResponseOK = unknown
1277
+ export type GetJobsIdPauseResponses =
1278
+ FullResponse<GetJobsIdPauseResponseOK, 200>
1279
+
1280
+ export type GetJobsIdResumeRequest = {
1281
+ 'id': string;
1282
+ }
1283
+
1284
+ export type GetJobsIdResumeResponseOK = unknown
1285
+ export type GetJobsIdResumeResponses =
1286
+ FullResponse<GetJobsIdResumeResponseOK, 200>
1287
+
1288
+ export type GetMessagesIdCancelRequest = {
1289
+ 'id': string;
1290
+ }
1291
+
1292
+ export type GetMessagesIdCancelResponseOK = unknown
1293
+ export type GetMessagesIdCancelResponses =
1294
+ FullResponse<GetMessagesIdCancelResponseOK, 200>
1295
+
1296
+ export type PutWattJobsRequest = {
1297
+ 'name'?: string;
1298
+ 'callbackUrl'?: string;
1299
+ 'schedule': string;
1300
+ 'method'?: string | null;
1301
+ 'maxRetries'?: number | null;
1302
+ 'body'?: object | null;
1303
+ 'headers'?: object | null;
1304
+ 'applicationId'?: string | null;
1305
+ }
1306
+
1307
+ export type PutWattJobsResponseOK = unknown
1308
+ export type PutWattJobsResponses =
1309
+ FullResponse<PutWattJobsResponseOK, 200>
1310
+
1311
+
1312
+
1313
+ export interface Cron {
1314
+ setBaseUrl(newUrl: string): void;
1315
+ setDefaultHeaders(headers: object): void;
1316
+ setDefaultFetchParams(fetchParams: RequestInit): void;
1317
+ /**
1318
+ * Get jobs.
1319
+ *
1320
+ * Fetch jobs from the database.
1321
+ * @param req - request parameters object
1322
+ * @returns the API response body
1323
+ */
1324
+ getJobs(req: GetJobsRequest): Promise<GetJobsResponses>;
1325
+ /**
1326
+ * Create job.
1327
+ *
1328
+ * Add new job to the database.
1329
+ * @param req - request parameters object
1330
+ * @returns the API response body
1331
+ */
1332
+ createJob(req: CreateJobRequest): Promise<CreateJobResponses>;
1333
+ /**
1334
+ * Update jobs.
1335
+ *
1336
+ * Update one or more jobs in the database.
1337
+ * @param req - request parameters object
1338
+ * @returns the API response body
1339
+ */
1340
+ updateJobs(req: UpdateJobsRequest): Promise<UpdateJobsResponses>;
1341
+ /**
1342
+ * Get Job by id.
1343
+ *
1344
+ * Fetch Job using its id from the database.
1345
+ * @param req - request parameters object
1346
+ * @returns the API response body
1347
+ */
1348
+ getJobById(req: GetJobByIdRequest): Promise<GetJobByIdResponses>;
1349
+ /**
1350
+ * Update job.
1351
+ *
1352
+ * Update job in the database.
1353
+ * @param req - request parameters object
1354
+ * @returns the API response body
1355
+ */
1356
+ updateJob(req: UpdateJobRequest): Promise<UpdateJobResponses>;
1357
+ /**
1358
+ * Delete jobs.
1359
+ *
1360
+ * Delete one or more jobs from the Database.
1361
+ * @param req - request parameters object
1362
+ * @returns the API response body
1363
+ */
1364
+ deleteJobs(req: DeleteJobsRequest): Promise<DeleteJobsResponses>;
1365
+ /**
1366
+ * Get messages for job.
1367
+ *
1368
+ * Fetch all the messages for job from the database.
1369
+ * @param req - request parameters object
1370
+ * @returns the API response body
1371
+ */
1372
+ getMessagesForJob(req: GetMessagesForJobRequest): Promise<GetMessagesForJobResponses>;
1373
+ /**
1374
+ * Get messages.
1375
+ *
1376
+ * Fetch messages from the database.
1377
+ * @param req - request parameters object
1378
+ * @returns the API response body
1379
+ */
1380
+ getMessages(req: GetMessagesRequest): Promise<GetMessagesResponses>;
1381
+ /**
1382
+ * Create message.
1383
+ *
1384
+ * Add new message to the database.
1385
+ * @param req - request parameters object
1386
+ * @returns the API response body
1387
+ */
1388
+ createMessage(req: CreateMessageRequest): Promise<CreateMessageResponses>;
1389
+ /**
1390
+ * Update messages.
1391
+ *
1392
+ * Update one or more messages in the database.
1393
+ * @param req - request parameters object
1394
+ * @returns the API response body
1395
+ */
1396
+ updateMessages(req: UpdateMessagesRequest): Promise<UpdateMessagesResponses>;
1397
+ /**
1398
+ * Get Message by id.
1399
+ *
1400
+ * Fetch Message using its id from the database.
1401
+ * @param req - request parameters object
1402
+ * @returns the API response body
1403
+ */
1404
+ getMessageById(req: GetMessageByIdRequest): Promise<GetMessageByIdResponses>;
1405
+ /**
1406
+ * Update message.
1407
+ *
1408
+ * Update message in the database.
1409
+ * @param req - request parameters object
1410
+ * @returns the API response body
1411
+ */
1412
+ updateMessage(req: UpdateMessageRequest): Promise<UpdateMessageResponses>;
1413
+ /**
1414
+ * Delete messages.
1415
+ *
1416
+ * Delete one or more messages from the Database.
1417
+ * @param req - request parameters object
1418
+ * @returns the API response body
1419
+ */
1420
+ deleteMessages(req: DeleteMessagesRequest): Promise<DeleteMessagesResponses>;
1421
+ /**
1422
+ * Get job for message.
1423
+ *
1424
+ * Fetch the job for message from the database.
1425
+ * @param req - request parameters object
1426
+ * @returns the API response body
1427
+ */
1428
+ getJobForMessage(req: GetJobForMessageRequest): Promise<GetJobForMessageResponses>;
1429
+ /**
1430
+ * @param req - request parameters object
1431
+ * @returns the API response body
1432
+ */
1433
+ getIccJobsName(req: GetIccJobsNameRequest): Promise<GetIccJobsNameResponses>;
1434
+ /**
1435
+ * @param req - request parameters object
1436
+ * @returns the API response body
1437
+ */
1438
+ putIccJobsName(req: PutIccJobsNameRequest): Promise<PutIccJobsNameResponses>;
1439
+ /**
1440
+ * @param req - request parameters object
1441
+ * @returns the API response body
1442
+ */
1443
+ getIccJobs(req: GetIccJobsRequest): Promise<GetIccJobsResponses>;
1444
+ /**
1445
+ * @param req - request parameters object
1446
+ * @returns the API response body
1447
+ */
1448
+ putIccJobs(req: PutIccJobsRequest): Promise<PutIccJobsResponses>;
1449
+ /**
1450
+ * @param req - request parameters object
1451
+ * @returns the API response body
1452
+ */
1453
+ getJobsIdRun(req: GetJobsIdRunRequest): Promise<GetJobsIdRunResponses>;
1454
+ /**
1455
+ * @param req - request parameters object
1456
+ * @returns the API response body
1457
+ */
1458
+ getJobsIdPause(req: GetJobsIdPauseRequest): Promise<GetJobsIdPauseResponses>;
1459
+ /**
1460
+ * @param req - request parameters object
1461
+ * @returns the API response body
1462
+ */
1463
+ getJobsIdResume(req: GetJobsIdResumeRequest): Promise<GetJobsIdResumeResponses>;
1464
+ /**
1465
+ * @param req - request parameters object
1466
+ * @returns the API response body
1467
+ */
1468
+ getMessagesIdCancel(req: GetMessagesIdCancelRequest): Promise<GetMessagesIdCancelResponses>;
1469
+ /**
1470
+ * @param req - request parameters object
1471
+ * @returns the API response body
1472
+ */
1473
+ putWattJobs(req: PutWattJobsRequest): Promise<PutWattJobsResponses>;
1474
+ }
1475
+ type PlatformaticFrontendClient = Omit<Cron, 'setBaseUrl'>
1476
+ type BuildOptions = {
1477
+ headers?: object
1478
+ }
1479
+ export default function build(url: string, options?: BuildOptions): PlatformaticFrontendClient