@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
|
@@ -112,6 +112,28 @@ export async function getKnowbaseAdminChatList( params?: { page?: number; page_
|
|
|
112
112
|
|
|
113
113
|
consola.error('Response data:', response);
|
|
114
114
|
|
|
115
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
116
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
117
|
+
try {
|
|
118
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
119
|
+
detail: {
|
|
120
|
+
operation: 'getKnowbaseAdminChatList',
|
|
121
|
+
path: '/cfg/knowbase/admin/chat/',
|
|
122
|
+
method: 'GET',
|
|
123
|
+
error: error,
|
|
124
|
+
response: response,
|
|
125
|
+
timestamp: new Date(),
|
|
126
|
+
},
|
|
127
|
+
bubbles: true,
|
|
128
|
+
cancelable: false,
|
|
129
|
+
});
|
|
130
|
+
window.dispatchEvent(event);
|
|
131
|
+
} catch (eventError) {
|
|
132
|
+
// Silently fail - event dispatch should never crash the app
|
|
133
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
115
137
|
// Re-throw the error
|
|
116
138
|
throw error;
|
|
117
139
|
}
|
|
@@ -154,6 +176,28 @@ export async function createKnowbaseAdminChatCreate( data: ChatResponseRequest,
|
|
|
154
176
|
|
|
155
177
|
consola.error('Response data:', response);
|
|
156
178
|
|
|
179
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
180
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
181
|
+
try {
|
|
182
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
183
|
+
detail: {
|
|
184
|
+
operation: 'createKnowbaseAdminChatCreate',
|
|
185
|
+
path: '/cfg/knowbase/admin/chat/',
|
|
186
|
+
method: 'POST',
|
|
187
|
+
error: error,
|
|
188
|
+
response: response,
|
|
189
|
+
timestamp: new Date(),
|
|
190
|
+
},
|
|
191
|
+
bubbles: true,
|
|
192
|
+
cancelable: false,
|
|
193
|
+
});
|
|
194
|
+
window.dispatchEvent(event);
|
|
195
|
+
} catch (eventError) {
|
|
196
|
+
// Silently fail - event dispatch should never crash the app
|
|
197
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
157
201
|
// Re-throw the error
|
|
158
202
|
throw error;
|
|
159
203
|
}
|
|
@@ -196,6 +240,28 @@ export async function getKnowbaseAdminChatRetrieve( id: string, client?: any
|
|
|
196
240
|
|
|
197
241
|
consola.error('Response data:', response);
|
|
198
242
|
|
|
243
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
244
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
245
|
+
try {
|
|
246
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
247
|
+
detail: {
|
|
248
|
+
operation: 'getKnowbaseAdminChatRetrieve',
|
|
249
|
+
path: '/cfg/knowbase/admin/chat/{id}/',
|
|
250
|
+
method: 'GET',
|
|
251
|
+
error: error,
|
|
252
|
+
response: response,
|
|
253
|
+
timestamp: new Date(),
|
|
254
|
+
},
|
|
255
|
+
bubbles: true,
|
|
256
|
+
cancelable: false,
|
|
257
|
+
});
|
|
258
|
+
window.dispatchEvent(event);
|
|
259
|
+
} catch (eventError) {
|
|
260
|
+
// Silently fail - event dispatch should never crash the app
|
|
261
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
199
265
|
// Re-throw the error
|
|
200
266
|
throw error;
|
|
201
267
|
}
|
|
@@ -238,6 +304,28 @@ export async function updateKnowbaseAdminChatUpdate( id: string, data: ChatResp
|
|
|
238
304
|
|
|
239
305
|
consola.error('Response data:', response);
|
|
240
306
|
|
|
307
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
308
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
309
|
+
try {
|
|
310
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
311
|
+
detail: {
|
|
312
|
+
operation: 'updateKnowbaseAdminChatUpdate',
|
|
313
|
+
path: '/cfg/knowbase/admin/chat/{id}/',
|
|
314
|
+
method: 'PUT',
|
|
315
|
+
error: error,
|
|
316
|
+
response: response,
|
|
317
|
+
timestamp: new Date(),
|
|
318
|
+
},
|
|
319
|
+
bubbles: true,
|
|
320
|
+
cancelable: false,
|
|
321
|
+
});
|
|
322
|
+
window.dispatchEvent(event);
|
|
323
|
+
} catch (eventError) {
|
|
324
|
+
// Silently fail - event dispatch should never crash the app
|
|
325
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
241
329
|
// Re-throw the error
|
|
242
330
|
throw error;
|
|
243
331
|
}
|
|
@@ -280,6 +368,28 @@ export async function partialUpdateKnowbaseAdminChatPartialUpdate( id: string,
|
|
|
280
368
|
|
|
281
369
|
consola.error('Response data:', response);
|
|
282
370
|
|
|
371
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
372
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
373
|
+
try {
|
|
374
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
375
|
+
detail: {
|
|
376
|
+
operation: 'partialUpdateKnowbaseAdminChatPartialUpdate',
|
|
377
|
+
path: '/cfg/knowbase/admin/chat/{id}/',
|
|
378
|
+
method: 'PATCH',
|
|
379
|
+
error: error,
|
|
380
|
+
response: response,
|
|
381
|
+
timestamp: new Date(),
|
|
382
|
+
},
|
|
383
|
+
bubbles: true,
|
|
384
|
+
cancelable: false,
|
|
385
|
+
});
|
|
386
|
+
window.dispatchEvent(event);
|
|
387
|
+
} catch (eventError) {
|
|
388
|
+
// Silently fail - event dispatch should never crash the app
|
|
389
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
283
393
|
// Re-throw the error
|
|
284
394
|
throw error;
|
|
285
395
|
}
|
|
@@ -336,6 +446,28 @@ export async function getKnowbaseAdminChatHistoryRetrieve( id: string, client?
|
|
|
336
446
|
|
|
337
447
|
consola.error('Response data:', response);
|
|
338
448
|
|
|
449
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
450
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
451
|
+
try {
|
|
452
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
453
|
+
detail: {
|
|
454
|
+
operation: 'getKnowbaseAdminChatHistoryRetrieve',
|
|
455
|
+
path: '/cfg/knowbase/admin/chat/{id}/history/',
|
|
456
|
+
method: 'GET',
|
|
457
|
+
error: error,
|
|
458
|
+
response: response,
|
|
459
|
+
timestamp: new Date(),
|
|
460
|
+
},
|
|
461
|
+
bubbles: true,
|
|
462
|
+
cancelable: false,
|
|
463
|
+
});
|
|
464
|
+
window.dispatchEvent(event);
|
|
465
|
+
} catch (eventError) {
|
|
466
|
+
// Silently fail - event dispatch should never crash the app
|
|
467
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
339
471
|
// Re-throw the error
|
|
340
472
|
throw error;
|
|
341
473
|
}
|
|
@@ -378,6 +510,28 @@ export async function createKnowbaseAdminChatQueryCreate( data: ChatQueryReques
|
|
|
378
510
|
|
|
379
511
|
consola.error('Response data:', response);
|
|
380
512
|
|
|
513
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
514
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
515
|
+
try {
|
|
516
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
517
|
+
detail: {
|
|
518
|
+
operation: 'createKnowbaseAdminChatQueryCreate',
|
|
519
|
+
path: '/cfg/knowbase/admin/chat/query/',
|
|
520
|
+
method: 'POST',
|
|
521
|
+
error: error,
|
|
522
|
+
response: response,
|
|
523
|
+
timestamp: new Date(),
|
|
524
|
+
},
|
|
525
|
+
bubbles: true,
|
|
526
|
+
cancelable: false,
|
|
527
|
+
});
|
|
528
|
+
window.dispatchEvent(event);
|
|
529
|
+
} catch (eventError) {
|
|
530
|
+
// Silently fail - event dispatch should never crash the app
|
|
531
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
381
535
|
// Re-throw the error
|
|
382
536
|
throw error;
|
|
383
537
|
}
|
|
@@ -420,6 +574,28 @@ export async function getKnowbaseAdminDocumentsList( params?: { page?: number;
|
|
|
420
574
|
|
|
421
575
|
consola.error('Response data:', response);
|
|
422
576
|
|
|
577
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
578
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
579
|
+
try {
|
|
580
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
581
|
+
detail: {
|
|
582
|
+
operation: 'getKnowbaseAdminDocumentsList',
|
|
583
|
+
path: '/cfg/knowbase/admin/documents/',
|
|
584
|
+
method: 'GET',
|
|
585
|
+
error: error,
|
|
586
|
+
response: response,
|
|
587
|
+
timestamp: new Date(),
|
|
588
|
+
},
|
|
589
|
+
bubbles: true,
|
|
590
|
+
cancelable: false,
|
|
591
|
+
});
|
|
592
|
+
window.dispatchEvent(event);
|
|
593
|
+
} catch (eventError) {
|
|
594
|
+
// Silently fail - event dispatch should never crash the app
|
|
595
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
423
599
|
// Re-throw the error
|
|
424
600
|
throw error;
|
|
425
601
|
}
|
|
@@ -462,6 +638,28 @@ export async function createKnowbaseAdminDocumentsCreate( data: DocumentCreateR
|
|
|
462
638
|
|
|
463
639
|
consola.error('Response data:', response);
|
|
464
640
|
|
|
641
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
642
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
643
|
+
try {
|
|
644
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
645
|
+
detail: {
|
|
646
|
+
operation: 'createKnowbaseAdminDocumentsCreate',
|
|
647
|
+
path: '/cfg/knowbase/admin/documents/',
|
|
648
|
+
method: 'POST',
|
|
649
|
+
error: error,
|
|
650
|
+
response: response,
|
|
651
|
+
timestamp: new Date(),
|
|
652
|
+
},
|
|
653
|
+
bubbles: true,
|
|
654
|
+
cancelable: false,
|
|
655
|
+
});
|
|
656
|
+
window.dispatchEvent(event);
|
|
657
|
+
} catch (eventError) {
|
|
658
|
+
// Silently fail - event dispatch should never crash the app
|
|
659
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
465
663
|
// Re-throw the error
|
|
466
664
|
throw error;
|
|
467
665
|
}
|
|
@@ -504,6 +702,28 @@ export async function getKnowbaseAdminDocumentsRetrieve( id: string, client?:
|
|
|
504
702
|
|
|
505
703
|
consola.error('Response data:', response);
|
|
506
704
|
|
|
705
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
706
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
707
|
+
try {
|
|
708
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
709
|
+
detail: {
|
|
710
|
+
operation: 'getKnowbaseAdminDocumentsRetrieve',
|
|
711
|
+
path: '/cfg/knowbase/admin/documents/{id}/',
|
|
712
|
+
method: 'GET',
|
|
713
|
+
error: error,
|
|
714
|
+
response: response,
|
|
715
|
+
timestamp: new Date(),
|
|
716
|
+
},
|
|
717
|
+
bubbles: true,
|
|
718
|
+
cancelable: false,
|
|
719
|
+
});
|
|
720
|
+
window.dispatchEvent(event);
|
|
721
|
+
} catch (eventError) {
|
|
722
|
+
// Silently fail - event dispatch should never crash the app
|
|
723
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
507
727
|
// Re-throw the error
|
|
508
728
|
throw error;
|
|
509
729
|
}
|
|
@@ -546,6 +766,28 @@ export async function updateKnowbaseAdminDocumentsUpdate( id: string, data: Doc
|
|
|
546
766
|
|
|
547
767
|
consola.error('Response data:', response);
|
|
548
768
|
|
|
769
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
770
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
771
|
+
try {
|
|
772
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
773
|
+
detail: {
|
|
774
|
+
operation: 'updateKnowbaseAdminDocumentsUpdate',
|
|
775
|
+
path: '/cfg/knowbase/admin/documents/{id}/',
|
|
776
|
+
method: 'PUT',
|
|
777
|
+
error: error,
|
|
778
|
+
response: response,
|
|
779
|
+
timestamp: new Date(),
|
|
780
|
+
},
|
|
781
|
+
bubbles: true,
|
|
782
|
+
cancelable: false,
|
|
783
|
+
});
|
|
784
|
+
window.dispatchEvent(event);
|
|
785
|
+
} catch (eventError) {
|
|
786
|
+
// Silently fail - event dispatch should never crash the app
|
|
787
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
549
791
|
// Re-throw the error
|
|
550
792
|
throw error;
|
|
551
793
|
}
|
|
@@ -588,6 +830,28 @@ export async function partialUpdateKnowbaseAdminDocumentsPartialUpdate( id: str
|
|
|
588
830
|
|
|
589
831
|
consola.error('Response data:', response);
|
|
590
832
|
|
|
833
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
834
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
835
|
+
try {
|
|
836
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
837
|
+
detail: {
|
|
838
|
+
operation: 'partialUpdateKnowbaseAdminDocumentsPartialUpdate',
|
|
839
|
+
path: '/cfg/knowbase/admin/documents/{id}/',
|
|
840
|
+
method: 'PATCH',
|
|
841
|
+
error: error,
|
|
842
|
+
response: response,
|
|
843
|
+
timestamp: new Date(),
|
|
844
|
+
},
|
|
845
|
+
bubbles: true,
|
|
846
|
+
cancelable: false,
|
|
847
|
+
});
|
|
848
|
+
window.dispatchEvent(event);
|
|
849
|
+
} catch (eventError) {
|
|
850
|
+
// Silently fail - event dispatch should never crash the app
|
|
851
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
591
855
|
// Re-throw the error
|
|
592
856
|
throw error;
|
|
593
857
|
}
|
|
@@ -644,6 +908,28 @@ export async function createKnowbaseAdminDocumentsReprocessCreate( id: string,
|
|
|
644
908
|
|
|
645
909
|
consola.error('Response data:', response);
|
|
646
910
|
|
|
911
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
912
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
913
|
+
try {
|
|
914
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
915
|
+
detail: {
|
|
916
|
+
operation: 'createKnowbaseAdminDocumentsReprocessCreate',
|
|
917
|
+
path: '/cfg/knowbase/admin/documents/{id}/reprocess/',
|
|
918
|
+
method: 'POST',
|
|
919
|
+
error: error,
|
|
920
|
+
response: response,
|
|
921
|
+
timestamp: new Date(),
|
|
922
|
+
},
|
|
923
|
+
bubbles: true,
|
|
924
|
+
cancelable: false,
|
|
925
|
+
});
|
|
926
|
+
window.dispatchEvent(event);
|
|
927
|
+
} catch (eventError) {
|
|
928
|
+
// Silently fail - event dispatch should never crash the app
|
|
929
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
647
933
|
// Re-throw the error
|
|
648
934
|
throw error;
|
|
649
935
|
}
|
|
@@ -686,6 +972,28 @@ export async function getKnowbaseAdminDocumentsStatusRetrieve( id: string, cli
|
|
|
686
972
|
|
|
687
973
|
consola.error('Response data:', response);
|
|
688
974
|
|
|
975
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
976
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
977
|
+
try {
|
|
978
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
979
|
+
detail: {
|
|
980
|
+
operation: 'getKnowbaseAdminDocumentsStatusRetrieve',
|
|
981
|
+
path: '/cfg/knowbase/admin/documents/{id}/status/',
|
|
982
|
+
method: 'GET',
|
|
983
|
+
error: error,
|
|
984
|
+
response: response,
|
|
985
|
+
timestamp: new Date(),
|
|
986
|
+
},
|
|
987
|
+
bubbles: true,
|
|
988
|
+
cancelable: false,
|
|
989
|
+
});
|
|
990
|
+
window.dispatchEvent(event);
|
|
991
|
+
} catch (eventError) {
|
|
992
|
+
// Silently fail - event dispatch should never crash the app
|
|
993
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
689
997
|
// Re-throw the error
|
|
690
998
|
throw error;
|
|
691
999
|
}
|
|
@@ -728,6 +1036,28 @@ export async function getKnowbaseAdminDocumentsStatsRetrieve( client?: any
|
|
|
728
1036
|
|
|
729
1037
|
consola.error('Response data:', response);
|
|
730
1038
|
|
|
1039
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1040
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1041
|
+
try {
|
|
1042
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1043
|
+
detail: {
|
|
1044
|
+
operation: 'getKnowbaseAdminDocumentsStatsRetrieve',
|
|
1045
|
+
path: '/cfg/knowbase/admin/documents/stats/',
|
|
1046
|
+
method: 'GET',
|
|
1047
|
+
error: error,
|
|
1048
|
+
response: response,
|
|
1049
|
+
timestamp: new Date(),
|
|
1050
|
+
},
|
|
1051
|
+
bubbles: true,
|
|
1052
|
+
cancelable: false,
|
|
1053
|
+
});
|
|
1054
|
+
window.dispatchEvent(event);
|
|
1055
|
+
} catch (eventError) {
|
|
1056
|
+
// Silently fail - event dispatch should never crash the app
|
|
1057
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
|
|
731
1061
|
// Re-throw the error
|
|
732
1062
|
throw error;
|
|
733
1063
|
}
|
|
@@ -770,6 +1100,28 @@ export async function getKnowbaseAdminSessionsList( params?: { page?: number; p
|
|
|
770
1100
|
|
|
771
1101
|
consola.error('Response data:', response);
|
|
772
1102
|
|
|
1103
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1104
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1105
|
+
try {
|
|
1106
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1107
|
+
detail: {
|
|
1108
|
+
operation: 'getKnowbaseAdminSessionsList',
|
|
1109
|
+
path: '/cfg/knowbase/admin/sessions/',
|
|
1110
|
+
method: 'GET',
|
|
1111
|
+
error: error,
|
|
1112
|
+
response: response,
|
|
1113
|
+
timestamp: new Date(),
|
|
1114
|
+
},
|
|
1115
|
+
bubbles: true,
|
|
1116
|
+
cancelable: false,
|
|
1117
|
+
});
|
|
1118
|
+
window.dispatchEvent(event);
|
|
1119
|
+
} catch (eventError) {
|
|
1120
|
+
// Silently fail - event dispatch should never crash the app
|
|
1121
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
|
|
773
1125
|
// Re-throw the error
|
|
774
1126
|
throw error;
|
|
775
1127
|
}
|
|
@@ -812,6 +1164,28 @@ export async function createKnowbaseAdminSessionsCreate( data: ChatSessionCreat
|
|
|
812
1164
|
|
|
813
1165
|
consola.error('Response data:', response);
|
|
814
1166
|
|
|
1167
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1168
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1169
|
+
try {
|
|
1170
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1171
|
+
detail: {
|
|
1172
|
+
operation: 'createKnowbaseAdminSessionsCreate',
|
|
1173
|
+
path: '/cfg/knowbase/admin/sessions/',
|
|
1174
|
+
method: 'POST',
|
|
1175
|
+
error: error,
|
|
1176
|
+
response: response,
|
|
1177
|
+
timestamp: new Date(),
|
|
1178
|
+
},
|
|
1179
|
+
bubbles: true,
|
|
1180
|
+
cancelable: false,
|
|
1181
|
+
});
|
|
1182
|
+
window.dispatchEvent(event);
|
|
1183
|
+
} catch (eventError) {
|
|
1184
|
+
// Silently fail - event dispatch should never crash the app
|
|
1185
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
|
|
815
1189
|
// Re-throw the error
|
|
816
1190
|
throw error;
|
|
817
1191
|
}
|
|
@@ -854,6 +1228,28 @@ export async function getKnowbaseAdminSessionsRetrieve( id: string, client?: a
|
|
|
854
1228
|
|
|
855
1229
|
consola.error('Response data:', response);
|
|
856
1230
|
|
|
1231
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1232
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1233
|
+
try {
|
|
1234
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1235
|
+
detail: {
|
|
1236
|
+
operation: 'getKnowbaseAdminSessionsRetrieve',
|
|
1237
|
+
path: '/cfg/knowbase/admin/sessions/{id}/',
|
|
1238
|
+
method: 'GET',
|
|
1239
|
+
error: error,
|
|
1240
|
+
response: response,
|
|
1241
|
+
timestamp: new Date(),
|
|
1242
|
+
},
|
|
1243
|
+
bubbles: true,
|
|
1244
|
+
cancelable: false,
|
|
1245
|
+
});
|
|
1246
|
+
window.dispatchEvent(event);
|
|
1247
|
+
} catch (eventError) {
|
|
1248
|
+
// Silently fail - event dispatch should never crash the app
|
|
1249
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
|
|
857
1253
|
// Re-throw the error
|
|
858
1254
|
throw error;
|
|
859
1255
|
}
|
|
@@ -896,6 +1292,28 @@ export async function updateKnowbaseAdminSessionsUpdate( id: string, data: Chat
|
|
|
896
1292
|
|
|
897
1293
|
consola.error('Response data:', response);
|
|
898
1294
|
|
|
1295
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1296
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1297
|
+
try {
|
|
1298
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1299
|
+
detail: {
|
|
1300
|
+
operation: 'updateKnowbaseAdminSessionsUpdate',
|
|
1301
|
+
path: '/cfg/knowbase/admin/sessions/{id}/',
|
|
1302
|
+
method: 'PUT',
|
|
1303
|
+
error: error,
|
|
1304
|
+
response: response,
|
|
1305
|
+
timestamp: new Date(),
|
|
1306
|
+
},
|
|
1307
|
+
bubbles: true,
|
|
1308
|
+
cancelable: false,
|
|
1309
|
+
});
|
|
1310
|
+
window.dispatchEvent(event);
|
|
1311
|
+
} catch (eventError) {
|
|
1312
|
+
// Silently fail - event dispatch should never crash the app
|
|
1313
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
|
|
899
1317
|
// Re-throw the error
|
|
900
1318
|
throw error;
|
|
901
1319
|
}
|
|
@@ -938,6 +1356,28 @@ export async function partialUpdateKnowbaseAdminSessionsPartialUpdate( id: stri
|
|
|
938
1356
|
|
|
939
1357
|
consola.error('Response data:', response);
|
|
940
1358
|
|
|
1359
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1360
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1361
|
+
try {
|
|
1362
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1363
|
+
detail: {
|
|
1364
|
+
operation: 'partialUpdateKnowbaseAdminSessionsPartialUpdate',
|
|
1365
|
+
path: '/cfg/knowbase/admin/sessions/{id}/',
|
|
1366
|
+
method: 'PATCH',
|
|
1367
|
+
error: error,
|
|
1368
|
+
response: response,
|
|
1369
|
+
timestamp: new Date(),
|
|
1370
|
+
},
|
|
1371
|
+
bubbles: true,
|
|
1372
|
+
cancelable: false,
|
|
1373
|
+
});
|
|
1374
|
+
window.dispatchEvent(event);
|
|
1375
|
+
} catch (eventError) {
|
|
1376
|
+
// Silently fail - event dispatch should never crash the app
|
|
1377
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
|
|
941
1381
|
// Re-throw the error
|
|
942
1382
|
throw error;
|
|
943
1383
|
}
|
|
@@ -994,6 +1434,28 @@ export async function createKnowbaseAdminSessionsActivateCreate( id: string, da
|
|
|
994
1434
|
|
|
995
1435
|
consola.error('Response data:', response);
|
|
996
1436
|
|
|
1437
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1438
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1439
|
+
try {
|
|
1440
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1441
|
+
detail: {
|
|
1442
|
+
operation: 'createKnowbaseAdminSessionsActivateCreate',
|
|
1443
|
+
path: '/cfg/knowbase/admin/sessions/{id}/activate/',
|
|
1444
|
+
method: 'POST',
|
|
1445
|
+
error: error,
|
|
1446
|
+
response: response,
|
|
1447
|
+
timestamp: new Date(),
|
|
1448
|
+
},
|
|
1449
|
+
bubbles: true,
|
|
1450
|
+
cancelable: false,
|
|
1451
|
+
});
|
|
1452
|
+
window.dispatchEvent(event);
|
|
1453
|
+
} catch (eventError) {
|
|
1454
|
+
// Silently fail - event dispatch should never crash the app
|
|
1455
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
|
|
997
1459
|
// Re-throw the error
|
|
998
1460
|
throw error;
|
|
999
1461
|
}
|
|
@@ -1036,6 +1498,28 @@ export async function createKnowbaseAdminSessionsArchiveCreate( id: string, dat
|
|
|
1036
1498
|
|
|
1037
1499
|
consola.error('Response data:', response);
|
|
1038
1500
|
|
|
1501
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1502
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1503
|
+
try {
|
|
1504
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1505
|
+
detail: {
|
|
1506
|
+
operation: 'createKnowbaseAdminSessionsArchiveCreate',
|
|
1507
|
+
path: '/cfg/knowbase/admin/sessions/{id}/archive/',
|
|
1508
|
+
method: 'POST',
|
|
1509
|
+
error: error,
|
|
1510
|
+
response: response,
|
|
1511
|
+
timestamp: new Date(),
|
|
1512
|
+
},
|
|
1513
|
+
bubbles: true,
|
|
1514
|
+
cancelable: false,
|
|
1515
|
+
});
|
|
1516
|
+
window.dispatchEvent(event);
|
|
1517
|
+
} catch (eventError) {
|
|
1518
|
+
// Silently fail - event dispatch should never crash the app
|
|
1519
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1039
1523
|
// Re-throw the error
|
|
1040
1524
|
throw error;
|
|
1041
1525
|
}
|
|
@@ -1078,6 +1562,28 @@ export async function getKnowbaseCategoriesList( params?: { page?: number; page
|
|
|
1078
1562
|
|
|
1079
1563
|
consola.error('Response data:', response);
|
|
1080
1564
|
|
|
1565
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1566
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1567
|
+
try {
|
|
1568
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1569
|
+
detail: {
|
|
1570
|
+
operation: 'getKnowbaseCategoriesList',
|
|
1571
|
+
path: '/cfg/knowbase/categories/',
|
|
1572
|
+
method: 'GET',
|
|
1573
|
+
error: error,
|
|
1574
|
+
response: response,
|
|
1575
|
+
timestamp: new Date(),
|
|
1576
|
+
},
|
|
1577
|
+
bubbles: true,
|
|
1578
|
+
cancelable: false,
|
|
1579
|
+
});
|
|
1580
|
+
window.dispatchEvent(event);
|
|
1581
|
+
} catch (eventError) {
|
|
1582
|
+
// Silently fail - event dispatch should never crash the app
|
|
1583
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1081
1587
|
// Re-throw the error
|
|
1082
1588
|
throw error;
|
|
1083
1589
|
}
|
|
@@ -1120,6 +1626,28 @@ export async function getKnowbaseCategoriesRetrieve( id: string, client?: any
|
|
|
1120
1626
|
|
|
1121
1627
|
consola.error('Response data:', response);
|
|
1122
1628
|
|
|
1629
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1630
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1631
|
+
try {
|
|
1632
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1633
|
+
detail: {
|
|
1634
|
+
operation: 'getKnowbaseCategoriesRetrieve',
|
|
1635
|
+
path: '/cfg/knowbase/categories/{id}/',
|
|
1636
|
+
method: 'GET',
|
|
1637
|
+
error: error,
|
|
1638
|
+
response: response,
|
|
1639
|
+
timestamp: new Date(),
|
|
1640
|
+
},
|
|
1641
|
+
bubbles: true,
|
|
1642
|
+
cancelable: false,
|
|
1643
|
+
});
|
|
1644
|
+
window.dispatchEvent(event);
|
|
1645
|
+
} catch (eventError) {
|
|
1646
|
+
// Silently fail - event dispatch should never crash the app
|
|
1647
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1123
1651
|
// Re-throw the error
|
|
1124
1652
|
throw error;
|
|
1125
1653
|
}
|
|
@@ -1162,6 +1690,28 @@ export async function getKnowbaseDocumentsList( params?: { category?: string; p
|
|
|
1162
1690
|
|
|
1163
1691
|
consola.error('Response data:', response);
|
|
1164
1692
|
|
|
1693
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1694
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1695
|
+
try {
|
|
1696
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1697
|
+
detail: {
|
|
1698
|
+
operation: 'getKnowbaseDocumentsList',
|
|
1699
|
+
path: '/cfg/knowbase/documents/',
|
|
1700
|
+
method: 'GET',
|
|
1701
|
+
error: error,
|
|
1702
|
+
response: response,
|
|
1703
|
+
timestamp: new Date(),
|
|
1704
|
+
},
|
|
1705
|
+
bubbles: true,
|
|
1706
|
+
cancelable: false,
|
|
1707
|
+
});
|
|
1708
|
+
window.dispatchEvent(event);
|
|
1709
|
+
} catch (eventError) {
|
|
1710
|
+
// Silently fail - event dispatch should never crash the app
|
|
1711
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1165
1715
|
// Re-throw the error
|
|
1166
1716
|
throw error;
|
|
1167
1717
|
}
|
|
@@ -1204,6 +1754,28 @@ export async function getKnowbaseDocumentsRetrieve( id: string, client?: any
|
|
|
1204
1754
|
|
|
1205
1755
|
consola.error('Response data:', response);
|
|
1206
1756
|
|
|
1757
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1758
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1759
|
+
try {
|
|
1760
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1761
|
+
detail: {
|
|
1762
|
+
operation: 'getKnowbaseDocumentsRetrieve',
|
|
1763
|
+
path: '/cfg/knowbase/documents/{id}/',
|
|
1764
|
+
method: 'GET',
|
|
1765
|
+
error: error,
|
|
1766
|
+
response: response,
|
|
1767
|
+
timestamp: new Date(),
|
|
1768
|
+
},
|
|
1769
|
+
bubbles: true,
|
|
1770
|
+
cancelable: false,
|
|
1771
|
+
});
|
|
1772
|
+
window.dispatchEvent(event);
|
|
1773
|
+
} catch (eventError) {
|
|
1774
|
+
// Silently fail - event dispatch should never crash the app
|
|
1775
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1207
1779
|
// Re-throw the error
|
|
1208
1780
|
throw error;
|
|
1209
1781
|
}
|
|
@@ -1246,6 +1818,28 @@ export async function getKnowbaseSystemArchivesList( params?: { page?: number;
|
|
|
1246
1818
|
|
|
1247
1819
|
consola.error('Response data:', response);
|
|
1248
1820
|
|
|
1821
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1822
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1823
|
+
try {
|
|
1824
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1825
|
+
detail: {
|
|
1826
|
+
operation: 'getKnowbaseSystemArchivesList',
|
|
1827
|
+
path: '/cfg/knowbase/system/archives/',
|
|
1828
|
+
method: 'GET',
|
|
1829
|
+
error: error,
|
|
1830
|
+
response: response,
|
|
1831
|
+
timestamp: new Date(),
|
|
1832
|
+
},
|
|
1833
|
+
bubbles: true,
|
|
1834
|
+
cancelable: false,
|
|
1835
|
+
});
|
|
1836
|
+
window.dispatchEvent(event);
|
|
1837
|
+
} catch (eventError) {
|
|
1838
|
+
// Silently fail - event dispatch should never crash the app
|
|
1839
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1249
1843
|
// Re-throw the error
|
|
1250
1844
|
throw error;
|
|
1251
1845
|
}
|
|
@@ -1288,6 +1882,28 @@ export async function createKnowbaseSystemArchivesCreate( data: any, client?:
|
|
|
1288
1882
|
|
|
1289
1883
|
consola.error('Response data:', response);
|
|
1290
1884
|
|
|
1885
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1886
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1887
|
+
try {
|
|
1888
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1889
|
+
detail: {
|
|
1890
|
+
operation: 'createKnowbaseSystemArchivesCreate',
|
|
1891
|
+
path: '/cfg/knowbase/system/archives/',
|
|
1892
|
+
method: 'POST',
|
|
1893
|
+
error: error,
|
|
1894
|
+
response: response,
|
|
1895
|
+
timestamp: new Date(),
|
|
1896
|
+
},
|
|
1897
|
+
bubbles: true,
|
|
1898
|
+
cancelable: false,
|
|
1899
|
+
});
|
|
1900
|
+
window.dispatchEvent(event);
|
|
1901
|
+
} catch (eventError) {
|
|
1902
|
+
// Silently fail - event dispatch should never crash the app
|
|
1903
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1291
1907
|
// Re-throw the error
|
|
1292
1908
|
throw error;
|
|
1293
1909
|
}
|
|
@@ -1330,6 +1946,28 @@ export async function getKnowbaseSystemArchivesRetrieve( id: string, client?:
|
|
|
1330
1946
|
|
|
1331
1947
|
consola.error('Response data:', response);
|
|
1332
1948
|
|
|
1949
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
1950
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
1951
|
+
try {
|
|
1952
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
1953
|
+
detail: {
|
|
1954
|
+
operation: 'getKnowbaseSystemArchivesRetrieve',
|
|
1955
|
+
path: '/cfg/knowbase/system/archives/{id}/',
|
|
1956
|
+
method: 'GET',
|
|
1957
|
+
error: error,
|
|
1958
|
+
response: response,
|
|
1959
|
+
timestamp: new Date(),
|
|
1960
|
+
},
|
|
1961
|
+
bubbles: true,
|
|
1962
|
+
cancelable: false,
|
|
1963
|
+
});
|
|
1964
|
+
window.dispatchEvent(event);
|
|
1965
|
+
} catch (eventError) {
|
|
1966
|
+
// Silently fail - event dispatch should never crash the app
|
|
1967
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1333
1971
|
// Re-throw the error
|
|
1334
1972
|
throw error;
|
|
1335
1973
|
}
|
|
@@ -1372,6 +2010,28 @@ export async function updateKnowbaseSystemArchivesUpdate( id: string, data: Doc
|
|
|
1372
2010
|
|
|
1373
2011
|
consola.error('Response data:', response);
|
|
1374
2012
|
|
|
2013
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2014
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2015
|
+
try {
|
|
2016
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2017
|
+
detail: {
|
|
2018
|
+
operation: 'updateKnowbaseSystemArchivesUpdate',
|
|
2019
|
+
path: '/cfg/knowbase/system/archives/{id}/',
|
|
2020
|
+
method: 'PUT',
|
|
2021
|
+
error: error,
|
|
2022
|
+
response: response,
|
|
2023
|
+
timestamp: new Date(),
|
|
2024
|
+
},
|
|
2025
|
+
bubbles: true,
|
|
2026
|
+
cancelable: false,
|
|
2027
|
+
});
|
|
2028
|
+
window.dispatchEvent(event);
|
|
2029
|
+
} catch (eventError) {
|
|
2030
|
+
// Silently fail - event dispatch should never crash the app
|
|
2031
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
|
|
1375
2035
|
// Re-throw the error
|
|
1376
2036
|
throw error;
|
|
1377
2037
|
}
|
|
@@ -1414,6 +2074,28 @@ export async function partialUpdateKnowbaseSystemArchivesPartialUpdate( id: str
|
|
|
1414
2074
|
|
|
1415
2075
|
consola.error('Response data:', response);
|
|
1416
2076
|
|
|
2077
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2078
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2079
|
+
try {
|
|
2080
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2081
|
+
detail: {
|
|
2082
|
+
operation: 'partialUpdateKnowbaseSystemArchivesPartialUpdate',
|
|
2083
|
+
path: '/cfg/knowbase/system/archives/{id}/',
|
|
2084
|
+
method: 'PATCH',
|
|
2085
|
+
error: error,
|
|
2086
|
+
response: response,
|
|
2087
|
+
timestamp: new Date(),
|
|
2088
|
+
},
|
|
2089
|
+
bubbles: true,
|
|
2090
|
+
cancelable: false,
|
|
2091
|
+
});
|
|
2092
|
+
window.dispatchEvent(event);
|
|
2093
|
+
} catch (eventError) {
|
|
2094
|
+
// Silently fail - event dispatch should never crash the app
|
|
2095
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
|
|
1417
2099
|
// Re-throw the error
|
|
1418
2100
|
throw error;
|
|
1419
2101
|
}
|
|
@@ -1484,6 +2166,28 @@ export async function getKnowbaseSystemArchivesItemsList( id: string, params?:
|
|
|
1484
2166
|
|
|
1485
2167
|
consola.error('Response data:', response);
|
|
1486
2168
|
|
|
2169
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2170
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2171
|
+
try {
|
|
2172
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2173
|
+
detail: {
|
|
2174
|
+
operation: 'getKnowbaseSystemArchivesItemsList',
|
|
2175
|
+
path: '/cfg/knowbase/system/archives/{id}/items/',
|
|
2176
|
+
method: 'GET',
|
|
2177
|
+
error: error,
|
|
2178
|
+
response: response,
|
|
2179
|
+
timestamp: new Date(),
|
|
2180
|
+
},
|
|
2181
|
+
bubbles: true,
|
|
2182
|
+
cancelable: false,
|
|
2183
|
+
});
|
|
2184
|
+
window.dispatchEvent(event);
|
|
2185
|
+
} catch (eventError) {
|
|
2186
|
+
// Silently fail - event dispatch should never crash the app
|
|
2187
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
|
|
1487
2191
|
// Re-throw the error
|
|
1488
2192
|
throw error;
|
|
1489
2193
|
}
|
|
@@ -1526,6 +2230,28 @@ export async function createKnowbaseSystemArchivesSearchCreate( id: string, dat
|
|
|
1526
2230
|
|
|
1527
2231
|
consola.error('Response data:', response);
|
|
1528
2232
|
|
|
2233
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2234
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2235
|
+
try {
|
|
2236
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2237
|
+
detail: {
|
|
2238
|
+
operation: 'createKnowbaseSystemArchivesSearchCreate',
|
|
2239
|
+
path: '/cfg/knowbase/system/archives/{id}/search/',
|
|
2240
|
+
method: 'POST',
|
|
2241
|
+
error: error,
|
|
2242
|
+
response: response,
|
|
2243
|
+
timestamp: new Date(),
|
|
2244
|
+
},
|
|
2245
|
+
bubbles: true,
|
|
2246
|
+
cancelable: false,
|
|
2247
|
+
});
|
|
2248
|
+
window.dispatchEvent(event);
|
|
2249
|
+
} catch (eventError) {
|
|
2250
|
+
// Silently fail - event dispatch should never crash the app
|
|
2251
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
|
|
1529
2255
|
// Re-throw the error
|
|
1530
2256
|
throw error;
|
|
1531
2257
|
}
|
|
@@ -1568,6 +2294,28 @@ export async function createKnowbaseSystemArchivesRevectorizeCreate( data: Chun
|
|
|
1568
2294
|
|
|
1569
2295
|
consola.error('Response data:', response);
|
|
1570
2296
|
|
|
2297
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2298
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2299
|
+
try {
|
|
2300
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2301
|
+
detail: {
|
|
2302
|
+
operation: 'createKnowbaseSystemArchivesRevectorizeCreate',
|
|
2303
|
+
path: '/cfg/knowbase/system/archives/revectorize/',
|
|
2304
|
+
method: 'POST',
|
|
2305
|
+
error: error,
|
|
2306
|
+
response: response,
|
|
2307
|
+
timestamp: new Date(),
|
|
2308
|
+
},
|
|
2309
|
+
bubbles: true,
|
|
2310
|
+
cancelable: false,
|
|
2311
|
+
});
|
|
2312
|
+
window.dispatchEvent(event);
|
|
2313
|
+
} catch (eventError) {
|
|
2314
|
+
// Silently fail - event dispatch should never crash the app
|
|
2315
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
|
|
1571
2319
|
// Re-throw the error
|
|
1572
2320
|
throw error;
|
|
1573
2321
|
}
|
|
@@ -1610,6 +2358,28 @@ export async function getKnowbaseSystemArchivesStatisticsRetrieve( client?: any
|
|
|
1610
2358
|
|
|
1611
2359
|
consola.error('Response data:', response);
|
|
1612
2360
|
|
|
2361
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2362
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2363
|
+
try {
|
|
2364
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2365
|
+
detail: {
|
|
2366
|
+
operation: 'getKnowbaseSystemArchivesStatisticsRetrieve',
|
|
2367
|
+
path: '/cfg/knowbase/system/archives/statistics/',
|
|
2368
|
+
method: 'GET',
|
|
2369
|
+
error: error,
|
|
2370
|
+
response: response,
|
|
2371
|
+
timestamp: new Date(),
|
|
2372
|
+
},
|
|
2373
|
+
bubbles: true,
|
|
2374
|
+
cancelable: false,
|
|
2375
|
+
});
|
|
2376
|
+
window.dispatchEvent(event);
|
|
2377
|
+
} catch (eventError) {
|
|
2378
|
+
// Silently fail - event dispatch should never crash the app
|
|
2379
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
|
|
1613
2383
|
// Re-throw the error
|
|
1614
2384
|
throw error;
|
|
1615
2385
|
}
|
|
@@ -1652,6 +2422,28 @@ export async function getKnowbaseSystemArchivesVectorizationStatsRetrieve( clie
|
|
|
1652
2422
|
|
|
1653
2423
|
consola.error('Response data:', response);
|
|
1654
2424
|
|
|
2425
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2426
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2427
|
+
try {
|
|
2428
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2429
|
+
detail: {
|
|
2430
|
+
operation: 'getKnowbaseSystemArchivesVectorizationStatsRetrieve',
|
|
2431
|
+
path: '/cfg/knowbase/system/archives/vectorization_stats/',
|
|
2432
|
+
method: 'GET',
|
|
2433
|
+
error: error,
|
|
2434
|
+
response: response,
|
|
2435
|
+
timestamp: new Date(),
|
|
2436
|
+
},
|
|
2437
|
+
bubbles: true,
|
|
2438
|
+
cancelable: false,
|
|
2439
|
+
});
|
|
2440
|
+
window.dispatchEvent(event);
|
|
2441
|
+
} catch (eventError) {
|
|
2442
|
+
// Silently fail - event dispatch should never crash the app
|
|
2443
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
|
|
1655
2447
|
// Re-throw the error
|
|
1656
2448
|
throw error;
|
|
1657
2449
|
}
|
|
@@ -1694,6 +2486,28 @@ export async function getKnowbaseSystemChunksList( params?: { page?: number; pa
|
|
|
1694
2486
|
|
|
1695
2487
|
consola.error('Response data:', response);
|
|
1696
2488
|
|
|
2489
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2490
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2491
|
+
try {
|
|
2492
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2493
|
+
detail: {
|
|
2494
|
+
operation: 'getKnowbaseSystemChunksList',
|
|
2495
|
+
path: '/cfg/knowbase/system/chunks/',
|
|
2496
|
+
method: 'GET',
|
|
2497
|
+
error: error,
|
|
2498
|
+
response: response,
|
|
2499
|
+
timestamp: new Date(),
|
|
2500
|
+
},
|
|
2501
|
+
bubbles: true,
|
|
2502
|
+
cancelable: false,
|
|
2503
|
+
});
|
|
2504
|
+
window.dispatchEvent(event);
|
|
2505
|
+
} catch (eventError) {
|
|
2506
|
+
// Silently fail - event dispatch should never crash the app
|
|
2507
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
|
|
1697
2511
|
// Re-throw the error
|
|
1698
2512
|
throw error;
|
|
1699
2513
|
}
|
|
@@ -1736,6 +2550,28 @@ export async function createKnowbaseSystemChunksCreate( data: ArchiveItemChunkR
|
|
|
1736
2550
|
|
|
1737
2551
|
consola.error('Response data:', response);
|
|
1738
2552
|
|
|
2553
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2554
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2555
|
+
try {
|
|
2556
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2557
|
+
detail: {
|
|
2558
|
+
operation: 'createKnowbaseSystemChunksCreate',
|
|
2559
|
+
path: '/cfg/knowbase/system/chunks/',
|
|
2560
|
+
method: 'POST',
|
|
2561
|
+
error: error,
|
|
2562
|
+
response: response,
|
|
2563
|
+
timestamp: new Date(),
|
|
2564
|
+
},
|
|
2565
|
+
bubbles: true,
|
|
2566
|
+
cancelable: false,
|
|
2567
|
+
});
|
|
2568
|
+
window.dispatchEvent(event);
|
|
2569
|
+
} catch (eventError) {
|
|
2570
|
+
// Silently fail - event dispatch should never crash the app
|
|
2571
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
|
|
1739
2575
|
// Re-throw the error
|
|
1740
2576
|
throw error;
|
|
1741
2577
|
}
|
|
@@ -1778,6 +2614,28 @@ export async function getKnowbaseSystemChunksRetrieve( id: string, client?: an
|
|
|
1778
2614
|
|
|
1779
2615
|
consola.error('Response data:', response);
|
|
1780
2616
|
|
|
2617
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2618
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2619
|
+
try {
|
|
2620
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2621
|
+
detail: {
|
|
2622
|
+
operation: 'getKnowbaseSystemChunksRetrieve',
|
|
2623
|
+
path: '/cfg/knowbase/system/chunks/{id}/',
|
|
2624
|
+
method: 'GET',
|
|
2625
|
+
error: error,
|
|
2626
|
+
response: response,
|
|
2627
|
+
timestamp: new Date(),
|
|
2628
|
+
},
|
|
2629
|
+
bubbles: true,
|
|
2630
|
+
cancelable: false,
|
|
2631
|
+
});
|
|
2632
|
+
window.dispatchEvent(event);
|
|
2633
|
+
} catch (eventError) {
|
|
2634
|
+
// Silently fail - event dispatch should never crash the app
|
|
2635
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
|
|
1781
2639
|
// Re-throw the error
|
|
1782
2640
|
throw error;
|
|
1783
2641
|
}
|
|
@@ -1820,6 +2678,28 @@ export async function updateKnowbaseSystemChunksUpdate( id: string, data: Archi
|
|
|
1820
2678
|
|
|
1821
2679
|
consola.error('Response data:', response);
|
|
1822
2680
|
|
|
2681
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2682
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2683
|
+
try {
|
|
2684
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2685
|
+
detail: {
|
|
2686
|
+
operation: 'updateKnowbaseSystemChunksUpdate',
|
|
2687
|
+
path: '/cfg/knowbase/system/chunks/{id}/',
|
|
2688
|
+
method: 'PUT',
|
|
2689
|
+
error: error,
|
|
2690
|
+
response: response,
|
|
2691
|
+
timestamp: new Date(),
|
|
2692
|
+
},
|
|
2693
|
+
bubbles: true,
|
|
2694
|
+
cancelable: false,
|
|
2695
|
+
});
|
|
2696
|
+
window.dispatchEvent(event);
|
|
2697
|
+
} catch (eventError) {
|
|
2698
|
+
// Silently fail - event dispatch should never crash the app
|
|
2699
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
|
|
1823
2703
|
// Re-throw the error
|
|
1824
2704
|
throw error;
|
|
1825
2705
|
}
|
|
@@ -1862,6 +2742,28 @@ export async function partialUpdateKnowbaseSystemChunksPartialUpdate( id: strin
|
|
|
1862
2742
|
|
|
1863
2743
|
consola.error('Response data:', response);
|
|
1864
2744
|
|
|
2745
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2746
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2747
|
+
try {
|
|
2748
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2749
|
+
detail: {
|
|
2750
|
+
operation: 'partialUpdateKnowbaseSystemChunksPartialUpdate',
|
|
2751
|
+
path: '/cfg/knowbase/system/chunks/{id}/',
|
|
2752
|
+
method: 'PATCH',
|
|
2753
|
+
error: error,
|
|
2754
|
+
response: response,
|
|
2755
|
+
timestamp: new Date(),
|
|
2756
|
+
},
|
|
2757
|
+
bubbles: true,
|
|
2758
|
+
cancelable: false,
|
|
2759
|
+
});
|
|
2760
|
+
window.dispatchEvent(event);
|
|
2761
|
+
} catch (eventError) {
|
|
2762
|
+
// Silently fail - event dispatch should never crash the app
|
|
2763
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
|
|
1865
2767
|
// Re-throw the error
|
|
1866
2768
|
throw error;
|
|
1867
2769
|
}
|
|
@@ -1918,6 +2820,28 @@ export async function getKnowbaseSystemChunksContextRetrieve( id: string, clie
|
|
|
1918
2820
|
|
|
1919
2821
|
consola.error('Response data:', response);
|
|
1920
2822
|
|
|
2823
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2824
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2825
|
+
try {
|
|
2826
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2827
|
+
detail: {
|
|
2828
|
+
operation: 'getKnowbaseSystemChunksContextRetrieve',
|
|
2829
|
+
path: '/cfg/knowbase/system/chunks/{id}/context/',
|
|
2830
|
+
method: 'GET',
|
|
2831
|
+
error: error,
|
|
2832
|
+
response: response,
|
|
2833
|
+
timestamp: new Date(),
|
|
2834
|
+
},
|
|
2835
|
+
bubbles: true,
|
|
2836
|
+
cancelable: false,
|
|
2837
|
+
});
|
|
2838
|
+
window.dispatchEvent(event);
|
|
2839
|
+
} catch (eventError) {
|
|
2840
|
+
// Silently fail - event dispatch should never crash the app
|
|
2841
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
|
|
1921
2845
|
// Re-throw the error
|
|
1922
2846
|
throw error;
|
|
1923
2847
|
}
|
|
@@ -1974,6 +2898,28 @@ export async function getKnowbaseSystemItemsList( params?: { page?: number; pag
|
|
|
1974
2898
|
|
|
1975
2899
|
consola.error('Response data:', response);
|
|
1976
2900
|
|
|
2901
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2902
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2903
|
+
try {
|
|
2904
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2905
|
+
detail: {
|
|
2906
|
+
operation: 'getKnowbaseSystemItemsList',
|
|
2907
|
+
path: '/cfg/knowbase/system/items/',
|
|
2908
|
+
method: 'GET',
|
|
2909
|
+
error: error,
|
|
2910
|
+
response: response,
|
|
2911
|
+
timestamp: new Date(),
|
|
2912
|
+
},
|
|
2913
|
+
bubbles: true,
|
|
2914
|
+
cancelable: false,
|
|
2915
|
+
});
|
|
2916
|
+
window.dispatchEvent(event);
|
|
2917
|
+
} catch (eventError) {
|
|
2918
|
+
// Silently fail - event dispatch should never crash the app
|
|
2919
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
|
|
1977
2923
|
// Re-throw the error
|
|
1978
2924
|
throw error;
|
|
1979
2925
|
}
|
|
@@ -2016,6 +2962,28 @@ export async function createKnowbaseSystemItemsCreate( data: ArchiveItemRequest
|
|
|
2016
2962
|
|
|
2017
2963
|
consola.error('Response data:', response);
|
|
2018
2964
|
|
|
2965
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
2966
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
2967
|
+
try {
|
|
2968
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
2969
|
+
detail: {
|
|
2970
|
+
operation: 'createKnowbaseSystemItemsCreate',
|
|
2971
|
+
path: '/cfg/knowbase/system/items/',
|
|
2972
|
+
method: 'POST',
|
|
2973
|
+
error: error,
|
|
2974
|
+
response: response,
|
|
2975
|
+
timestamp: new Date(),
|
|
2976
|
+
},
|
|
2977
|
+
bubbles: true,
|
|
2978
|
+
cancelable: false,
|
|
2979
|
+
});
|
|
2980
|
+
window.dispatchEvent(event);
|
|
2981
|
+
} catch (eventError) {
|
|
2982
|
+
// Silently fail - event dispatch should never crash the app
|
|
2983
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2019
2987
|
// Re-throw the error
|
|
2020
2988
|
throw error;
|
|
2021
2989
|
}
|
|
@@ -2058,6 +3026,28 @@ export async function getKnowbaseSystemItemsRetrieve( id: string, client?: any
|
|
|
2058
3026
|
|
|
2059
3027
|
consola.error('Response data:', response);
|
|
2060
3028
|
|
|
3029
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
3030
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
3031
|
+
try {
|
|
3032
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
3033
|
+
detail: {
|
|
3034
|
+
operation: 'getKnowbaseSystemItemsRetrieve',
|
|
3035
|
+
path: '/cfg/knowbase/system/items/{id}/',
|
|
3036
|
+
method: 'GET',
|
|
3037
|
+
error: error,
|
|
3038
|
+
response: response,
|
|
3039
|
+
timestamp: new Date(),
|
|
3040
|
+
},
|
|
3041
|
+
bubbles: true,
|
|
3042
|
+
cancelable: false,
|
|
3043
|
+
});
|
|
3044
|
+
window.dispatchEvent(event);
|
|
3045
|
+
} catch (eventError) {
|
|
3046
|
+
// Silently fail - event dispatch should never crash the app
|
|
3047
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
|
|
2061
3051
|
// Re-throw the error
|
|
2062
3052
|
throw error;
|
|
2063
3053
|
}
|
|
@@ -2100,6 +3090,28 @@ export async function updateKnowbaseSystemItemsUpdate( id: string, data: Archiv
|
|
|
2100
3090
|
|
|
2101
3091
|
consola.error('Response data:', response);
|
|
2102
3092
|
|
|
3093
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
3094
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
3095
|
+
try {
|
|
3096
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
3097
|
+
detail: {
|
|
3098
|
+
operation: 'updateKnowbaseSystemItemsUpdate',
|
|
3099
|
+
path: '/cfg/knowbase/system/items/{id}/',
|
|
3100
|
+
method: 'PUT',
|
|
3101
|
+
error: error,
|
|
3102
|
+
response: response,
|
|
3103
|
+
timestamp: new Date(),
|
|
3104
|
+
},
|
|
3105
|
+
bubbles: true,
|
|
3106
|
+
cancelable: false,
|
|
3107
|
+
});
|
|
3108
|
+
window.dispatchEvent(event);
|
|
3109
|
+
} catch (eventError) {
|
|
3110
|
+
// Silently fail - event dispatch should never crash the app
|
|
3111
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
|
|
2103
3115
|
// Re-throw the error
|
|
2104
3116
|
throw error;
|
|
2105
3117
|
}
|
|
@@ -2142,6 +3154,28 @@ export async function partialUpdateKnowbaseSystemItemsPartialUpdate( id: string
|
|
|
2142
3154
|
|
|
2143
3155
|
consola.error('Response data:', response);
|
|
2144
3156
|
|
|
3157
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
3158
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
3159
|
+
try {
|
|
3160
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
3161
|
+
detail: {
|
|
3162
|
+
operation: 'partialUpdateKnowbaseSystemItemsPartialUpdate',
|
|
3163
|
+
path: '/cfg/knowbase/system/items/{id}/',
|
|
3164
|
+
method: 'PATCH',
|
|
3165
|
+
error: error,
|
|
3166
|
+
response: response,
|
|
3167
|
+
timestamp: new Date(),
|
|
3168
|
+
},
|
|
3169
|
+
bubbles: true,
|
|
3170
|
+
cancelable: false,
|
|
3171
|
+
});
|
|
3172
|
+
window.dispatchEvent(event);
|
|
3173
|
+
} catch (eventError) {
|
|
3174
|
+
// Silently fail - event dispatch should never crash the app
|
|
3175
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
|
|
2145
3179
|
// Re-throw the error
|
|
2146
3180
|
throw error;
|
|
2147
3181
|
}
|
|
@@ -2198,6 +3232,28 @@ export async function getKnowbaseSystemItemsChunksList( id: string, params?: {
|
|
|
2198
3232
|
|
|
2199
3233
|
consola.error('Response data:', response);
|
|
2200
3234
|
|
|
3235
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
3236
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
3237
|
+
try {
|
|
3238
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
3239
|
+
detail: {
|
|
3240
|
+
operation: 'getKnowbaseSystemItemsChunksList',
|
|
3241
|
+
path: '/cfg/knowbase/system/items/{id}/chunks/',
|
|
3242
|
+
method: 'GET',
|
|
3243
|
+
error: error,
|
|
3244
|
+
response: response,
|
|
3245
|
+
timestamp: new Date(),
|
|
3246
|
+
},
|
|
3247
|
+
bubbles: true,
|
|
3248
|
+
cancelable: false,
|
|
3249
|
+
});
|
|
3250
|
+
window.dispatchEvent(event);
|
|
3251
|
+
} catch (eventError) {
|
|
3252
|
+
// Silently fail - event dispatch should never crash the app
|
|
3253
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
|
|
2201
3257
|
// Re-throw the error
|
|
2202
3258
|
throw error;
|
|
2203
3259
|
}
|
|
@@ -2240,6 +3296,28 @@ export async function getKnowbaseSystemItemsContentRetrieve( id: string, clien
|
|
|
2240
3296
|
|
|
2241
3297
|
consola.error('Response data:', response);
|
|
2242
3298
|
|
|
3299
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
3300
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
3301
|
+
try {
|
|
3302
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
3303
|
+
detail: {
|
|
3304
|
+
operation: 'getKnowbaseSystemItemsContentRetrieve',
|
|
3305
|
+
path: '/cfg/knowbase/system/items/{id}/content/',
|
|
3306
|
+
method: 'GET',
|
|
3307
|
+
error: error,
|
|
3308
|
+
response: response,
|
|
3309
|
+
timestamp: new Date(),
|
|
3310
|
+
},
|
|
3311
|
+
bubbles: true,
|
|
3312
|
+
cancelable: false,
|
|
3313
|
+
});
|
|
3314
|
+
window.dispatchEvent(event);
|
|
3315
|
+
} catch (eventError) {
|
|
3316
|
+
// Silently fail - event dispatch should never crash the app
|
|
3317
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
|
|
2243
3321
|
// Re-throw the error
|
|
2244
3322
|
throw error;
|
|
2245
3323
|
}
|