@djangocfg/api 1.2.31 → 1.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3306 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +75 -2
- package/dist/index.d.ts +75 -2
- package/dist/index.mjs +3303 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +132 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +110 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_auth.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +88 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +66 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_api_zones.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_charts.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_config.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_overview.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_statistics.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_system.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +66 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +154 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_configuration.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +88 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_services.ts +66 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +66 -0
- package/src/cfg/generated/_utils/fetchers/cfg__health.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +1078 -0
- package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +110 -0
- package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +66 -0
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +110 -0
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +66 -0
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +132 -0
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_jobs.ts +110 -0
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_monitoring.ts +44 -0
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_queues.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_registries.ts +154 -0
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_schedules.ts +88 -0
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_testing.ts +88 -0
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_workers.ts +22 -0
- package/src/cfg/generated/_utils/fetchers/cfg__support.ts +220 -0
- package/src/cfg/generated/index.ts +4 -0
- package/src/cfg/generated/validation-events.ts +133 -0
|
@@ -72,6 +72,28 @@ export async function getPaymentsBalanceRetrieve( client?: any
|
|
|
72
72
|
|
|
73
73
|
consola.error('Response data:', response);
|
|
74
74
|
|
|
75
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
76
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
77
|
+
try {
|
|
78
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
79
|
+
detail: {
|
|
80
|
+
operation: 'getPaymentsBalanceRetrieve',
|
|
81
|
+
path: '/cfg/payments/balance/',
|
|
82
|
+
method: 'GET',
|
|
83
|
+
error: error,
|
|
84
|
+
response: response,
|
|
85
|
+
timestamp: new Date(),
|
|
86
|
+
},
|
|
87
|
+
bubbles: true,
|
|
88
|
+
cancelable: false,
|
|
89
|
+
});
|
|
90
|
+
window.dispatchEvent(event);
|
|
91
|
+
} catch (eventError) {
|
|
92
|
+
// Silently fail - event dispatch should never crash the app
|
|
93
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
75
97
|
// Re-throw the error
|
|
76
98
|
throw error;
|
|
77
99
|
}
|
|
@@ -128,6 +150,28 @@ export async function getPaymentsPaymentsList( params?: { page?: number; page_s
|
|
|
128
150
|
|
|
129
151
|
consola.error('Response data:', response);
|
|
130
152
|
|
|
153
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
154
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
155
|
+
try {
|
|
156
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
157
|
+
detail: {
|
|
158
|
+
operation: 'getPaymentsPaymentsList',
|
|
159
|
+
path: '/cfg/payments/payments/',
|
|
160
|
+
method: 'GET',
|
|
161
|
+
error: error,
|
|
162
|
+
response: response,
|
|
163
|
+
timestamp: new Date(),
|
|
164
|
+
},
|
|
165
|
+
bubbles: true,
|
|
166
|
+
cancelable: false,
|
|
167
|
+
});
|
|
168
|
+
window.dispatchEvent(event);
|
|
169
|
+
} catch (eventError) {
|
|
170
|
+
// Silently fail - event dispatch should never crash the app
|
|
171
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
131
175
|
// Re-throw the error
|
|
132
176
|
throw error;
|
|
133
177
|
}
|
|
@@ -170,6 +214,28 @@ export async function getPaymentsPaymentsRetrieve( id: string, client?: any
|
|
|
170
214
|
|
|
171
215
|
consola.error('Response data:', response);
|
|
172
216
|
|
|
217
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
218
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
219
|
+
try {
|
|
220
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
221
|
+
detail: {
|
|
222
|
+
operation: 'getPaymentsPaymentsRetrieve',
|
|
223
|
+
path: '/cfg/payments/payments/{id}/',
|
|
224
|
+
method: 'GET',
|
|
225
|
+
error: error,
|
|
226
|
+
response: response,
|
|
227
|
+
timestamp: new Date(),
|
|
228
|
+
},
|
|
229
|
+
bubbles: true,
|
|
230
|
+
cancelable: false,
|
|
231
|
+
});
|
|
232
|
+
window.dispatchEvent(event);
|
|
233
|
+
} catch (eventError) {
|
|
234
|
+
// Silently fail - event dispatch should never crash the app
|
|
235
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
173
239
|
// Re-throw the error
|
|
174
240
|
throw error;
|
|
175
241
|
}
|
|
@@ -212,6 +278,28 @@ export async function createPaymentsPaymentsConfirmCreate( id: string, client?
|
|
|
212
278
|
|
|
213
279
|
consola.error('Response data:', response);
|
|
214
280
|
|
|
281
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
282
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
283
|
+
try {
|
|
284
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
285
|
+
detail: {
|
|
286
|
+
operation: 'createPaymentsPaymentsConfirmCreate',
|
|
287
|
+
path: '/cfg/payments/payments/{id}/confirm/',
|
|
288
|
+
method: 'POST',
|
|
289
|
+
error: error,
|
|
290
|
+
response: response,
|
|
291
|
+
timestamp: new Date(),
|
|
292
|
+
},
|
|
293
|
+
bubbles: true,
|
|
294
|
+
cancelable: false,
|
|
295
|
+
});
|
|
296
|
+
window.dispatchEvent(event);
|
|
297
|
+
} catch (eventError) {
|
|
298
|
+
// Silently fail - event dispatch should never crash the app
|
|
299
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
215
303
|
// Re-throw the error
|
|
216
304
|
throw error;
|
|
217
305
|
}
|
|
@@ -254,6 +342,28 @@ export async function getPaymentsPaymentsStatusRetrieve( id: string, client?:
|
|
|
254
342
|
|
|
255
343
|
consola.error('Response data:', response);
|
|
256
344
|
|
|
345
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
346
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
347
|
+
try {
|
|
348
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
349
|
+
detail: {
|
|
350
|
+
operation: 'getPaymentsPaymentsStatusRetrieve',
|
|
351
|
+
path: '/cfg/payments/payments/{id}/status/',
|
|
352
|
+
method: 'GET',
|
|
353
|
+
error: error,
|
|
354
|
+
response: response,
|
|
355
|
+
timestamp: new Date(),
|
|
356
|
+
},
|
|
357
|
+
bubbles: true,
|
|
358
|
+
cancelable: false,
|
|
359
|
+
});
|
|
360
|
+
window.dispatchEvent(event);
|
|
361
|
+
} catch (eventError) {
|
|
362
|
+
// Silently fail - event dispatch should never crash the app
|
|
363
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
257
367
|
// Re-throw the error
|
|
258
368
|
throw error;
|
|
259
369
|
}
|
|
@@ -296,6 +406,28 @@ export async function createPaymentsPaymentsCreateCreate( client?: any
|
|
|
296
406
|
|
|
297
407
|
consola.error('Response data:', response);
|
|
298
408
|
|
|
409
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
410
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
411
|
+
try {
|
|
412
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
413
|
+
detail: {
|
|
414
|
+
operation: 'createPaymentsPaymentsCreateCreate',
|
|
415
|
+
path: '/cfg/payments/payments/create/',
|
|
416
|
+
method: 'POST',
|
|
417
|
+
error: error,
|
|
418
|
+
response: response,
|
|
419
|
+
timestamp: new Date(),
|
|
420
|
+
},
|
|
421
|
+
bubbles: true,
|
|
422
|
+
cancelable: false,
|
|
423
|
+
});
|
|
424
|
+
window.dispatchEvent(event);
|
|
425
|
+
} catch (eventError) {
|
|
426
|
+
// Silently fail - event dispatch should never crash the app
|
|
427
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
299
431
|
// Re-throw the error
|
|
300
432
|
throw error;
|
|
301
433
|
}
|
|
@@ -72,6 +72,28 @@ export async function getRqJobsList( params?: { page?: number; page_size?: numb
|
|
|
72
72
|
|
|
73
73
|
consola.error('Response data:', response);
|
|
74
74
|
|
|
75
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
76
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
77
|
+
try {
|
|
78
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
79
|
+
detail: {
|
|
80
|
+
operation: 'getRqJobsList',
|
|
81
|
+
path: '/cfg/rq/jobs/',
|
|
82
|
+
method: 'GET',
|
|
83
|
+
error: error,
|
|
84
|
+
response: response,
|
|
85
|
+
timestamp: new Date(),
|
|
86
|
+
},
|
|
87
|
+
bubbles: true,
|
|
88
|
+
cancelable: false,
|
|
89
|
+
});
|
|
90
|
+
window.dispatchEvent(event);
|
|
91
|
+
} catch (eventError) {
|
|
92
|
+
// Silently fail - event dispatch should never crash the app
|
|
93
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
75
97
|
// Re-throw the error
|
|
76
98
|
throw error;
|
|
77
99
|
}
|
|
@@ -114,6 +136,28 @@ export async function getRqJobsRetrieve( id: string, client?: any
|
|
|
114
136
|
|
|
115
137
|
consola.error('Response data:', response);
|
|
116
138
|
|
|
139
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
140
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
141
|
+
try {
|
|
142
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
143
|
+
detail: {
|
|
144
|
+
operation: 'getRqJobsRetrieve',
|
|
145
|
+
path: '/cfg/rq/jobs/{id}/',
|
|
146
|
+
method: 'GET',
|
|
147
|
+
error: error,
|
|
148
|
+
response: response,
|
|
149
|
+
timestamp: new Date(),
|
|
150
|
+
},
|
|
151
|
+
bubbles: true,
|
|
152
|
+
cancelable: false,
|
|
153
|
+
});
|
|
154
|
+
window.dispatchEvent(event);
|
|
155
|
+
} catch (eventError) {
|
|
156
|
+
// Silently fail - event dispatch should never crash the app
|
|
157
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
117
161
|
// Re-throw the error
|
|
118
162
|
throw error;
|
|
119
163
|
}
|
|
@@ -156,6 +200,28 @@ export async function deleteRqJobsDestroy( id: string, client?: any
|
|
|
156
200
|
|
|
157
201
|
consola.error('Response data:', response);
|
|
158
202
|
|
|
203
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
204
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
205
|
+
try {
|
|
206
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
207
|
+
detail: {
|
|
208
|
+
operation: 'deleteRqJobsDestroy',
|
|
209
|
+
path: '/cfg/rq/jobs/{id}/',
|
|
210
|
+
method: 'DELETE',
|
|
211
|
+
error: error,
|
|
212
|
+
response: response,
|
|
213
|
+
timestamp: new Date(),
|
|
214
|
+
},
|
|
215
|
+
bubbles: true,
|
|
216
|
+
cancelable: false,
|
|
217
|
+
});
|
|
218
|
+
window.dispatchEvent(event);
|
|
219
|
+
} catch (eventError) {
|
|
220
|
+
// Silently fail - event dispatch should never crash the app
|
|
221
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
159
225
|
// Re-throw the error
|
|
160
226
|
throw error;
|
|
161
227
|
}
|
|
@@ -198,6 +264,28 @@ export async function createRqJobsCancelCreate( id: string, data: JobListReques
|
|
|
198
264
|
|
|
199
265
|
consola.error('Response data:', response);
|
|
200
266
|
|
|
267
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
268
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
269
|
+
try {
|
|
270
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
271
|
+
detail: {
|
|
272
|
+
operation: 'createRqJobsCancelCreate',
|
|
273
|
+
path: '/cfg/rq/jobs/{id}/cancel/',
|
|
274
|
+
method: 'POST',
|
|
275
|
+
error: error,
|
|
276
|
+
response: response,
|
|
277
|
+
timestamp: new Date(),
|
|
278
|
+
},
|
|
279
|
+
bubbles: true,
|
|
280
|
+
cancelable: false,
|
|
281
|
+
});
|
|
282
|
+
window.dispatchEvent(event);
|
|
283
|
+
} catch (eventError) {
|
|
284
|
+
// Silently fail - event dispatch should never crash the app
|
|
285
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
201
289
|
// Re-throw the error
|
|
202
290
|
throw error;
|
|
203
291
|
}
|
|
@@ -240,6 +328,28 @@ export async function createRqJobsRequeueCreate( id: string, data: JobListReque
|
|
|
240
328
|
|
|
241
329
|
consola.error('Response data:', response);
|
|
242
330
|
|
|
331
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
332
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
333
|
+
try {
|
|
334
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
335
|
+
detail: {
|
|
336
|
+
operation: 'createRqJobsRequeueCreate',
|
|
337
|
+
path: '/cfg/rq/jobs/{id}/requeue/',
|
|
338
|
+
method: 'POST',
|
|
339
|
+
error: error,
|
|
340
|
+
response: response,
|
|
341
|
+
timestamp: new Date(),
|
|
342
|
+
},
|
|
343
|
+
bubbles: true,
|
|
344
|
+
cancelable: false,
|
|
345
|
+
});
|
|
346
|
+
window.dispatchEvent(event);
|
|
347
|
+
} catch (eventError) {
|
|
348
|
+
// Silently fail - event dispatch should never crash the app
|
|
349
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
243
353
|
// Re-throw the error
|
|
244
354
|
throw error;
|
|
245
355
|
}
|
|
@@ -70,6 +70,28 @@ export async function getRqMonitorConfigRetrieve( client?: any
|
|
|
70
70
|
|
|
71
71
|
consola.error('Response data:', response);
|
|
72
72
|
|
|
73
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
74
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
75
|
+
try {
|
|
76
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
77
|
+
detail: {
|
|
78
|
+
operation: 'getRqMonitorConfigRetrieve',
|
|
79
|
+
path: '/cfg/rq/monitor/config/',
|
|
80
|
+
method: 'GET',
|
|
81
|
+
error: error,
|
|
82
|
+
response: response,
|
|
83
|
+
timestamp: new Date(),
|
|
84
|
+
},
|
|
85
|
+
bubbles: true,
|
|
86
|
+
cancelable: false,
|
|
87
|
+
});
|
|
88
|
+
window.dispatchEvent(event);
|
|
89
|
+
} catch (eventError) {
|
|
90
|
+
// Silently fail - event dispatch should never crash the app
|
|
91
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
// Re-throw the error
|
|
74
96
|
throw error;
|
|
75
97
|
}
|
|
@@ -112,6 +134,28 @@ export async function getRqMonitorHealthRetrieve( client?: any
|
|
|
112
134
|
|
|
113
135
|
consola.error('Response data:', response);
|
|
114
136
|
|
|
137
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
138
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
139
|
+
try {
|
|
140
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
141
|
+
detail: {
|
|
142
|
+
operation: 'getRqMonitorHealthRetrieve',
|
|
143
|
+
path: '/cfg/rq/monitor/health/',
|
|
144
|
+
method: 'GET',
|
|
145
|
+
error: error,
|
|
146
|
+
response: response,
|
|
147
|
+
timestamp: new Date(),
|
|
148
|
+
},
|
|
149
|
+
bubbles: true,
|
|
150
|
+
cancelable: false,
|
|
151
|
+
});
|
|
152
|
+
window.dispatchEvent(event);
|
|
153
|
+
} catch (eventError) {
|
|
154
|
+
// Silently fail - event dispatch should never crash the app
|
|
155
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
115
159
|
// Re-throw the error
|
|
116
160
|
throw error;
|
|
117
161
|
}
|
|
@@ -83,6 +83,28 @@ export async function getRqQueuesRetrieve( id: string, client?: any
|
|
|
83
83
|
|
|
84
84
|
consola.error('Response data:', response);
|
|
85
85
|
|
|
86
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
87
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
88
|
+
try {
|
|
89
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
90
|
+
detail: {
|
|
91
|
+
operation: 'getRqQueuesRetrieve',
|
|
92
|
+
path: '/cfg/rq/queues/{id}/',
|
|
93
|
+
method: 'GET',
|
|
94
|
+
error: error,
|
|
95
|
+
response: response,
|
|
96
|
+
timestamp: new Date(),
|
|
97
|
+
},
|
|
98
|
+
bubbles: true,
|
|
99
|
+
cancelable: false,
|
|
100
|
+
});
|
|
101
|
+
window.dispatchEvent(event);
|
|
102
|
+
} catch (eventError) {
|
|
103
|
+
// Silently fail - event dispatch should never crash the app
|
|
104
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
86
108
|
// Re-throw the error
|
|
87
109
|
throw error;
|
|
88
110
|
}
|
|
@@ -71,6 +71,28 @@ export async function getRqJobsRegistriesDeferredList( params?: { page?: number
|
|
|
71
71
|
|
|
72
72
|
consola.error('Response data:', response);
|
|
73
73
|
|
|
74
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
75
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
76
|
+
try {
|
|
77
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
78
|
+
detail: {
|
|
79
|
+
operation: 'getRqJobsRegistriesDeferredList',
|
|
80
|
+
path: '/cfg/rq/jobs/registries/deferred/',
|
|
81
|
+
method: 'GET',
|
|
82
|
+
error: error,
|
|
83
|
+
response: response,
|
|
84
|
+
timestamp: new Date(),
|
|
85
|
+
},
|
|
86
|
+
bubbles: true,
|
|
87
|
+
cancelable: false,
|
|
88
|
+
});
|
|
89
|
+
window.dispatchEvent(event);
|
|
90
|
+
} catch (eventError) {
|
|
91
|
+
// Silently fail - event dispatch should never crash the app
|
|
92
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
74
96
|
// Re-throw the error
|
|
75
97
|
throw error;
|
|
76
98
|
}
|
|
@@ -113,6 +135,28 @@ export async function getRqJobsRegistriesFailedList( params?: { page?: number;
|
|
|
113
135
|
|
|
114
136
|
consola.error('Response data:', response);
|
|
115
137
|
|
|
138
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
139
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
140
|
+
try {
|
|
141
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
142
|
+
detail: {
|
|
143
|
+
operation: 'getRqJobsRegistriesFailedList',
|
|
144
|
+
path: '/cfg/rq/jobs/registries/failed/',
|
|
145
|
+
method: 'GET',
|
|
146
|
+
error: error,
|
|
147
|
+
response: response,
|
|
148
|
+
timestamp: new Date(),
|
|
149
|
+
},
|
|
150
|
+
bubbles: true,
|
|
151
|
+
cancelable: false,
|
|
152
|
+
});
|
|
153
|
+
window.dispatchEvent(event);
|
|
154
|
+
} catch (eventError) {
|
|
155
|
+
// Silently fail - event dispatch should never crash the app
|
|
156
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
116
160
|
// Re-throw the error
|
|
117
161
|
throw error;
|
|
118
162
|
}
|
|
@@ -155,6 +199,28 @@ export async function createRqJobsRegistriesFailedClearCreate( data: JobListReq
|
|
|
155
199
|
|
|
156
200
|
consola.error('Response data:', response);
|
|
157
201
|
|
|
202
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
203
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
204
|
+
try {
|
|
205
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
206
|
+
detail: {
|
|
207
|
+
operation: 'createRqJobsRegistriesFailedClearCreate',
|
|
208
|
+
path: '/cfg/rq/jobs/registries/failed/clear/',
|
|
209
|
+
method: 'POST',
|
|
210
|
+
error: error,
|
|
211
|
+
response: response,
|
|
212
|
+
timestamp: new Date(),
|
|
213
|
+
},
|
|
214
|
+
bubbles: true,
|
|
215
|
+
cancelable: false,
|
|
216
|
+
});
|
|
217
|
+
window.dispatchEvent(event);
|
|
218
|
+
} catch (eventError) {
|
|
219
|
+
// Silently fail - event dispatch should never crash the app
|
|
220
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
158
224
|
// Re-throw the error
|
|
159
225
|
throw error;
|
|
160
226
|
}
|
|
@@ -197,6 +263,28 @@ export async function createRqJobsRegistriesFailedRequeueAllCreate( data: JobLi
|
|
|
197
263
|
|
|
198
264
|
consola.error('Response data:', response);
|
|
199
265
|
|
|
266
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
267
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
268
|
+
try {
|
|
269
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
270
|
+
detail: {
|
|
271
|
+
operation: 'createRqJobsRegistriesFailedRequeueAllCreate',
|
|
272
|
+
path: '/cfg/rq/jobs/registries/failed/requeue-all/',
|
|
273
|
+
method: 'POST',
|
|
274
|
+
error: error,
|
|
275
|
+
response: response,
|
|
276
|
+
timestamp: new Date(),
|
|
277
|
+
},
|
|
278
|
+
bubbles: true,
|
|
279
|
+
cancelable: false,
|
|
280
|
+
});
|
|
281
|
+
window.dispatchEvent(event);
|
|
282
|
+
} catch (eventError) {
|
|
283
|
+
// Silently fail - event dispatch should never crash the app
|
|
284
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
200
288
|
// Re-throw the error
|
|
201
289
|
throw error;
|
|
202
290
|
}
|
|
@@ -239,6 +327,28 @@ export async function getRqJobsRegistriesFinishedList( params?: { page?: number
|
|
|
239
327
|
|
|
240
328
|
consola.error('Response data:', response);
|
|
241
329
|
|
|
330
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
331
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
332
|
+
try {
|
|
333
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
334
|
+
detail: {
|
|
335
|
+
operation: 'getRqJobsRegistriesFinishedList',
|
|
336
|
+
path: '/cfg/rq/jobs/registries/finished/',
|
|
337
|
+
method: 'GET',
|
|
338
|
+
error: error,
|
|
339
|
+
response: response,
|
|
340
|
+
timestamp: new Date(),
|
|
341
|
+
},
|
|
342
|
+
bubbles: true,
|
|
343
|
+
cancelable: false,
|
|
344
|
+
});
|
|
345
|
+
window.dispatchEvent(event);
|
|
346
|
+
} catch (eventError) {
|
|
347
|
+
// Silently fail - event dispatch should never crash the app
|
|
348
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
242
352
|
// Re-throw the error
|
|
243
353
|
throw error;
|
|
244
354
|
}
|
|
@@ -281,6 +391,28 @@ export async function createRqJobsRegistriesFinishedClearCreate( data: JobListR
|
|
|
281
391
|
|
|
282
392
|
consola.error('Response data:', response);
|
|
283
393
|
|
|
394
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
395
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
396
|
+
try {
|
|
397
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
398
|
+
detail: {
|
|
399
|
+
operation: 'createRqJobsRegistriesFinishedClearCreate',
|
|
400
|
+
path: '/cfg/rq/jobs/registries/finished/clear/',
|
|
401
|
+
method: 'POST',
|
|
402
|
+
error: error,
|
|
403
|
+
response: response,
|
|
404
|
+
timestamp: new Date(),
|
|
405
|
+
},
|
|
406
|
+
bubbles: true,
|
|
407
|
+
cancelable: false,
|
|
408
|
+
});
|
|
409
|
+
window.dispatchEvent(event);
|
|
410
|
+
} catch (eventError) {
|
|
411
|
+
// Silently fail - event dispatch should never crash the app
|
|
412
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
284
416
|
// Re-throw the error
|
|
285
417
|
throw error;
|
|
286
418
|
}
|
|
@@ -323,6 +455,28 @@ export async function getRqJobsRegistriesStartedList( params?: { page?: number;
|
|
|
323
455
|
|
|
324
456
|
consola.error('Response data:', response);
|
|
325
457
|
|
|
458
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
459
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
460
|
+
try {
|
|
461
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
462
|
+
detail: {
|
|
463
|
+
operation: 'getRqJobsRegistriesStartedList',
|
|
464
|
+
path: '/cfg/rq/jobs/registries/started/',
|
|
465
|
+
method: 'GET',
|
|
466
|
+
error: error,
|
|
467
|
+
response: response,
|
|
468
|
+
timestamp: new Date(),
|
|
469
|
+
},
|
|
470
|
+
bubbles: true,
|
|
471
|
+
cancelable: false,
|
|
472
|
+
});
|
|
473
|
+
window.dispatchEvent(event);
|
|
474
|
+
} catch (eventError) {
|
|
475
|
+
// Silently fail - event dispatch should never crash the app
|
|
476
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
326
480
|
// Re-throw the error
|
|
327
481
|
throw error;
|
|
328
482
|
}
|