@djangocfg/api 1.2.32 → 1.2.34
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.34",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "DjangoCFG",
|
|
6
6
|
"url": "https://djangocfg.com"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@types/node": "^22.15.3",
|
|
69
69
|
"@types/react": "19.2.2",
|
|
70
70
|
"@types/react-dom": "19.2.1",
|
|
71
|
-
"@djangocfg/typescript-config": "^1.2.
|
|
71
|
+
"@djangocfg/typescript-config": "^1.2.34",
|
|
72
72
|
"react": "^19.1.0",
|
|
73
73
|
"react-dom": "^19.1.0",
|
|
74
74
|
"tsup": "^8.5.0",
|
|
@@ -72,6 +72,28 @@ export async function createAccountsOtpRequestCreate( data: OTPRequestRequest,
|
|
|
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: 'createAccountsOtpRequestCreate',
|
|
81
|
+
path: '/cfg/accounts/otp/request/',
|
|
82
|
+
method: 'POST',
|
|
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 createAccountsOtpVerifyCreate( data: OTPVerifyRequest, c
|
|
|
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: 'createAccountsOtpVerifyCreate',
|
|
145
|
+
path: '/cfg/accounts/otp/verify/',
|
|
146
|
+
method: 'POST',
|
|
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
|
}
|
|
@@ -70,6 +70,28 @@ export async function createAccountsTokenRefreshCreate( data: TokenRefreshReque
|
|
|
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: 'createAccountsTokenRefreshCreate',
|
|
79
|
+
path: '/cfg/accounts/token/refresh/',
|
|
80
|
+
method: 'POST',
|
|
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
|
}
|
|
@@ -71,6 +71,28 @@ export async function getAccountsProfileRetrieve( client?: any
|
|
|
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: 'getAccountsProfileRetrieve',
|
|
80
|
+
path: '/cfg/accounts/profile/',
|
|
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 createAccountsProfileAvatarCreate( data: any, client?: a
|
|
|
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: 'createAccountsProfileAvatarCreate',
|
|
144
|
+
path: '/cfg/accounts/profile/avatar/',
|
|
145
|
+
method: 'POST',
|
|
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 partialUpdateAccountsProfilePartialUpdate( data: UserProf
|
|
|
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: 'partialUpdateAccountsProfilePartialUpdate',
|
|
208
|
+
path: '/cfg/accounts/profile/partial/',
|
|
209
|
+
method: 'PUT',
|
|
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 partialUpdateAccountsProfilePartialPartialUpdate( data?:
|
|
|
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: 'partialUpdateAccountsProfilePartialPartialUpdate',
|
|
272
|
+
path: '/cfg/accounts/profile/partial/',
|
|
273
|
+
method: 'PATCH',
|
|
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 updateAccountsProfileUpdateUpdate( data: UserProfileUpdat
|
|
|
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: 'updateAccountsProfileUpdateUpdate',
|
|
336
|
+
path: '/cfg/accounts/profile/update/',
|
|
337
|
+
method: 'PUT',
|
|
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 partialUpdateAccountsProfileUpdatePartialUpdate( data?: P
|
|
|
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: 'partialUpdateAccountsProfileUpdatePartialUpdate',
|
|
400
|
+
path: '/cfg/accounts/profile/update/',
|
|
401
|
+
method: 'PATCH',
|
|
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
|
}
|
|
@@ -69,6 +69,28 @@ export async function getCentrifugoMonitorChannelsRetrieve( client?: any
|
|
|
69
69
|
|
|
70
70
|
consola.error('Response data:', response);
|
|
71
71
|
|
|
72
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
73
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
74
|
+
try {
|
|
75
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
76
|
+
detail: {
|
|
77
|
+
operation: 'getCentrifugoMonitorChannelsRetrieve',
|
|
78
|
+
path: '/cfg/centrifugo/monitor/channels/',
|
|
79
|
+
method: 'GET',
|
|
80
|
+
error: error,
|
|
81
|
+
response: response,
|
|
82
|
+
timestamp: new Date(),
|
|
83
|
+
},
|
|
84
|
+
bubbles: true,
|
|
85
|
+
cancelable: false,
|
|
86
|
+
});
|
|
87
|
+
window.dispatchEvent(event);
|
|
88
|
+
} catch (eventError) {
|
|
89
|
+
// Silently fail - event dispatch should never crash the app
|
|
90
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
72
94
|
// Re-throw the error
|
|
73
95
|
throw error;
|
|
74
96
|
}
|
|
@@ -91,6 +91,28 @@ export async function createCentrifugoServerChannelsCreate( data: CentrifugoCha
|
|
|
91
91
|
|
|
92
92
|
consola.error('Response data:', response);
|
|
93
93
|
|
|
94
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
95
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
96
|
+
try {
|
|
97
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
98
|
+
detail: {
|
|
99
|
+
operation: 'createCentrifugoServerChannelsCreate',
|
|
100
|
+
path: '/cfg/centrifugo/server/channels/',
|
|
101
|
+
method: 'POST',
|
|
102
|
+
error: error,
|
|
103
|
+
response: response,
|
|
104
|
+
timestamp: new Date(),
|
|
105
|
+
},
|
|
106
|
+
bubbles: true,
|
|
107
|
+
cancelable: false,
|
|
108
|
+
});
|
|
109
|
+
window.dispatchEvent(event);
|
|
110
|
+
} catch (eventError) {
|
|
111
|
+
// Silently fail - event dispatch should never crash the app
|
|
112
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
94
116
|
// Re-throw the error
|
|
95
117
|
throw error;
|
|
96
118
|
}
|
|
@@ -133,6 +155,28 @@ export async function createCentrifugoServerHistoryCreate( data: CentrifugoHist
|
|
|
133
155
|
|
|
134
156
|
consola.error('Response data:', response);
|
|
135
157
|
|
|
158
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
159
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
160
|
+
try {
|
|
161
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
162
|
+
detail: {
|
|
163
|
+
operation: 'createCentrifugoServerHistoryCreate',
|
|
164
|
+
path: '/cfg/centrifugo/server/history/',
|
|
165
|
+
method: 'POST',
|
|
166
|
+
error: error,
|
|
167
|
+
response: response,
|
|
168
|
+
timestamp: new Date(),
|
|
169
|
+
},
|
|
170
|
+
bubbles: true,
|
|
171
|
+
cancelable: false,
|
|
172
|
+
});
|
|
173
|
+
window.dispatchEvent(event);
|
|
174
|
+
} catch (eventError) {
|
|
175
|
+
// Silently fail - event dispatch should never crash the app
|
|
176
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
136
180
|
// Re-throw the error
|
|
137
181
|
throw error;
|
|
138
182
|
}
|
|
@@ -175,6 +219,28 @@ export async function createCentrifugoServerInfoCreate( client?: any
|
|
|
175
219
|
|
|
176
220
|
consola.error('Response data:', response);
|
|
177
221
|
|
|
222
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
223
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
224
|
+
try {
|
|
225
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
226
|
+
detail: {
|
|
227
|
+
operation: 'createCentrifugoServerInfoCreate',
|
|
228
|
+
path: '/cfg/centrifugo/server/info/',
|
|
229
|
+
method: 'POST',
|
|
230
|
+
error: error,
|
|
231
|
+
response: response,
|
|
232
|
+
timestamp: new Date(),
|
|
233
|
+
},
|
|
234
|
+
bubbles: true,
|
|
235
|
+
cancelable: false,
|
|
236
|
+
});
|
|
237
|
+
window.dispatchEvent(event);
|
|
238
|
+
} catch (eventError) {
|
|
239
|
+
// Silently fail - event dispatch should never crash the app
|
|
240
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
178
244
|
// Re-throw the error
|
|
179
245
|
throw error;
|
|
180
246
|
}
|
|
@@ -217,6 +283,28 @@ export async function createCentrifugoServerPresenceCreate( data: CentrifugoPre
|
|
|
217
283
|
|
|
218
284
|
consola.error('Response data:', response);
|
|
219
285
|
|
|
286
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
287
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
288
|
+
try {
|
|
289
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
290
|
+
detail: {
|
|
291
|
+
operation: 'createCentrifugoServerPresenceCreate',
|
|
292
|
+
path: '/cfg/centrifugo/server/presence/',
|
|
293
|
+
method: 'POST',
|
|
294
|
+
error: error,
|
|
295
|
+
response: response,
|
|
296
|
+
timestamp: new Date(),
|
|
297
|
+
},
|
|
298
|
+
bubbles: true,
|
|
299
|
+
cancelable: false,
|
|
300
|
+
});
|
|
301
|
+
window.dispatchEvent(event);
|
|
302
|
+
} catch (eventError) {
|
|
303
|
+
// Silently fail - event dispatch should never crash the app
|
|
304
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
220
308
|
// Re-throw the error
|
|
221
309
|
throw error;
|
|
222
310
|
}
|
|
@@ -259,6 +347,28 @@ export async function createCentrifugoServerPresenceStatsCreate( data: Centrifu
|
|
|
259
347
|
|
|
260
348
|
consola.error('Response data:', response);
|
|
261
349
|
|
|
350
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
351
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
352
|
+
try {
|
|
353
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
354
|
+
detail: {
|
|
355
|
+
operation: 'createCentrifugoServerPresenceStatsCreate',
|
|
356
|
+
path: '/cfg/centrifugo/server/presence-stats/',
|
|
357
|
+
method: 'POST',
|
|
358
|
+
error: error,
|
|
359
|
+
response: response,
|
|
360
|
+
timestamp: new Date(),
|
|
361
|
+
},
|
|
362
|
+
bubbles: true,
|
|
363
|
+
cancelable: false,
|
|
364
|
+
});
|
|
365
|
+
window.dispatchEvent(event);
|
|
366
|
+
} catch (eventError) {
|
|
367
|
+
// Silently fail - event dispatch should never crash the app
|
|
368
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
262
372
|
// Re-throw the error
|
|
263
373
|
throw error;
|
|
264
374
|
}
|
|
@@ -69,6 +69,28 @@ export async function getCentrifugoAuthTokenRetrieve( client?: any
|
|
|
69
69
|
|
|
70
70
|
consola.error('Response data:', response);
|
|
71
71
|
|
|
72
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
73
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
74
|
+
try {
|
|
75
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
76
|
+
detail: {
|
|
77
|
+
operation: 'getCentrifugoAuthTokenRetrieve',
|
|
78
|
+
path: '/cfg/centrifugo/auth/token/',
|
|
79
|
+
method: 'GET',
|
|
80
|
+
error: error,
|
|
81
|
+
response: response,
|
|
82
|
+
timestamp: new Date(),
|
|
83
|
+
},
|
|
84
|
+
bubbles: true,
|
|
85
|
+
cancelable: false,
|
|
86
|
+
});
|
|
87
|
+
window.dispatchEvent(event);
|
|
88
|
+
} catch (eventError) {
|
|
89
|
+
// Silently fail - event dispatch should never crash the app
|
|
90
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
72
94
|
// Re-throw the error
|
|
73
95
|
throw error;
|
|
74
96
|
}
|
|
@@ -72,6 +72,28 @@ export async function getCentrifugoMonitorHealthRetrieve( 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: 'getCentrifugoMonitorHealthRetrieve',
|
|
81
|
+
path: '/cfg/centrifugo/monitor/health/',
|
|
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 getCentrifugoMonitorOverviewRetrieve( params?: { hours?:
|
|
|
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: 'getCentrifugoMonitorOverviewRetrieve',
|
|
145
|
+
path: '/cfg/centrifugo/monitor/overview/',
|
|
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 getCentrifugoMonitorPublishesList( params?: { channel?: s
|
|
|
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: 'getCentrifugoMonitorPublishesList',
|
|
209
|
+
path: '/cfg/centrifugo/monitor/publishes/',
|
|
210
|
+
method: 'GET',
|
|
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 getCentrifugoMonitorTimelineRetrieve( params?: { hours?:
|
|
|
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: 'getCentrifugoMonitorTimelineRetrieve',
|
|
273
|
+
path: '/cfg/centrifugo/monitor/timeline/',
|
|
274
|
+
method: 'GET',
|
|
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
|
}
|
|
@@ -72,6 +72,28 @@ export async function createCentrifugoTestingPublishTestCreate( data: PublishTe
|
|
|
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: 'createCentrifugoTestingPublishTestCreate',
|
|
81
|
+
path: '/cfg/centrifugo/testing/publish-test/',
|
|
82
|
+
method: 'POST',
|
|
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 createCentrifugoTestingPublishWithLoggingCreate( data: Pu
|
|
|
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: 'createCentrifugoTestingPublishWithLoggingCreate',
|
|
145
|
+
path: '/cfg/centrifugo/testing/publish-with-logging/',
|
|
146
|
+
method: 'POST',
|
|
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 createCentrifugoTestingSendAckCreate( data: ManualAckRequ
|
|
|
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: 'createCentrifugoTestingSendAckCreate',
|
|
209
|
+
path: '/cfg/centrifugo/testing/send-ack/',
|
|
210
|
+
method: 'POST',
|
|
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
|
}
|