@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
|
@@ -83,6 +83,28 @@ export async function getDashboardApiZonesSummaryRetrieve( client?: any
|
|
|
83
83
|
|
|
84
84
|
consola.error('Response data:', response);
|
|
85
85
|
|
|
86
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
87
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
88
|
+
try {
|
|
89
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
90
|
+
detail: {
|
|
91
|
+
operation: 'getDashboardApiZonesSummaryRetrieve',
|
|
92
|
+
path: '/cfg/dashboard/api/zones/summary/',
|
|
93
|
+
method: 'GET',
|
|
94
|
+
error: error,
|
|
95
|
+
response: response,
|
|
96
|
+
timestamp: new Date(),
|
|
97
|
+
},
|
|
98
|
+
bubbles: true,
|
|
99
|
+
cancelable: false,
|
|
100
|
+
});
|
|
101
|
+
window.dispatchEvent(event);
|
|
102
|
+
} catch (eventError) {
|
|
103
|
+
// Silently fail - event dispatch should never crash the app
|
|
104
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
86
108
|
// Re-throw the error
|
|
87
109
|
throw error;
|
|
88
110
|
}
|
|
@@ -69,6 +69,28 @@ export async function getDashboardApiChartsActivityRetrieve( params?: { days?:
|
|
|
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: 'getDashboardApiChartsActivityRetrieve',
|
|
78
|
+
path: '/cfg/dashboard/api/charts/activity/',
|
|
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
|
}
|
|
@@ -125,6 +147,28 @@ export async function getDashboardApiChartsRegistrationsRetrieve( params?: { da
|
|
|
125
147
|
|
|
126
148
|
consola.error('Response data:', response);
|
|
127
149
|
|
|
150
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
151
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
152
|
+
try {
|
|
153
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
154
|
+
detail: {
|
|
155
|
+
operation: 'getDashboardApiChartsRegistrationsRetrieve',
|
|
156
|
+
path: '/cfg/dashboard/api/charts/registrations/',
|
|
157
|
+
method: 'GET',
|
|
158
|
+
error: error,
|
|
159
|
+
response: response,
|
|
160
|
+
timestamp: new Date(),
|
|
161
|
+
},
|
|
162
|
+
bubbles: true,
|
|
163
|
+
cancelable: false,
|
|
164
|
+
});
|
|
165
|
+
window.dispatchEvent(event);
|
|
166
|
+
} catch (eventError) {
|
|
167
|
+
// Silently fail - event dispatch should never crash the app
|
|
168
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
128
172
|
// Re-throw the error
|
|
129
173
|
throw error;
|
|
130
174
|
}
|
|
@@ -85,6 +85,28 @@ export async function getDashboardApiCommandsHelpRetrieve( id: string, client?
|
|
|
85
85
|
|
|
86
86
|
consola.error('Response data:', response);
|
|
87
87
|
|
|
88
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
89
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
90
|
+
try {
|
|
91
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
92
|
+
detail: {
|
|
93
|
+
operation: 'getDashboardApiCommandsHelpRetrieve',
|
|
94
|
+
path: '/cfg/dashboard/api/commands/{id}/help/',
|
|
95
|
+
method: 'GET',
|
|
96
|
+
error: error,
|
|
97
|
+
response: response,
|
|
98
|
+
timestamp: new Date(),
|
|
99
|
+
},
|
|
100
|
+
bubbles: true,
|
|
101
|
+
cancelable: false,
|
|
102
|
+
});
|
|
103
|
+
window.dispatchEvent(event);
|
|
104
|
+
} catch (eventError) {
|
|
105
|
+
// Silently fail - event dispatch should never crash the app
|
|
106
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
88
110
|
// Re-throw the error
|
|
89
111
|
throw error;
|
|
90
112
|
}
|
|
@@ -141,6 +163,28 @@ export async function getDashboardApiCommandsSummaryRetrieve( client?: any
|
|
|
141
163
|
|
|
142
164
|
consola.error('Response data:', response);
|
|
143
165
|
|
|
166
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
167
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
168
|
+
try {
|
|
169
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
170
|
+
detail: {
|
|
171
|
+
operation: 'getDashboardApiCommandsSummaryRetrieve',
|
|
172
|
+
path: '/cfg/dashboard/api/commands/summary/',
|
|
173
|
+
method: 'GET',
|
|
174
|
+
error: error,
|
|
175
|
+
response: response,
|
|
176
|
+
timestamp: new Date(),
|
|
177
|
+
},
|
|
178
|
+
bubbles: true,
|
|
179
|
+
cancelable: false,
|
|
180
|
+
});
|
|
181
|
+
window.dispatchEvent(event);
|
|
182
|
+
} catch (eventError) {
|
|
183
|
+
// Silently fail - event dispatch should never crash the app
|
|
184
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
144
188
|
// Re-throw the error
|
|
145
189
|
throw error;
|
|
146
190
|
}
|
|
@@ -69,6 +69,28 @@ export async function getDashboardApiConfigConfigRetrieve( 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: 'getDashboardApiConfigConfigRetrieve',
|
|
78
|
+
path: '/cfg/dashboard/api/config/config/',
|
|
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
|
}
|
|
@@ -69,6 +69,28 @@ export async function getDashboardApiOverviewOverviewRetrieve( 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: 'getDashboardApiOverviewOverviewRetrieve',
|
|
78
|
+
path: '/cfg/dashboard/api/overview/overview/',
|
|
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
|
}
|
|
@@ -97,6 +97,28 @@ export async function getDashboardApiStatisticsUsersRetrieve( client?: any
|
|
|
97
97
|
|
|
98
98
|
consola.error('Response data:', response);
|
|
99
99
|
|
|
100
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
101
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
102
|
+
try {
|
|
103
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
104
|
+
detail: {
|
|
105
|
+
operation: 'getDashboardApiStatisticsUsersRetrieve',
|
|
106
|
+
path: '/cfg/dashboard/api/statistics/users/',
|
|
107
|
+
method: 'GET',
|
|
108
|
+
error: error,
|
|
109
|
+
response: response,
|
|
110
|
+
timestamp: new Date(),
|
|
111
|
+
},
|
|
112
|
+
bubbles: true,
|
|
113
|
+
cancelable: false,
|
|
114
|
+
});
|
|
115
|
+
window.dispatchEvent(event);
|
|
116
|
+
} catch (eventError) {
|
|
117
|
+
// Silently fail - event dispatch should never crash the app
|
|
118
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
100
122
|
// Re-throw the error
|
|
101
123
|
throw error;
|
|
102
124
|
}
|
|
@@ -70,6 +70,28 @@ export async function getDashboardApiSystemHealthRetrieve( client?: any
|
|
|
70
70
|
|
|
71
71
|
consola.error('Response data:', response);
|
|
72
72
|
|
|
73
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
74
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
75
|
+
try {
|
|
76
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
77
|
+
detail: {
|
|
78
|
+
operation: 'getDashboardApiSystemHealthRetrieve',
|
|
79
|
+
path: '/cfg/dashboard/api/system/health/',
|
|
80
|
+
method: 'GET',
|
|
81
|
+
error: error,
|
|
82
|
+
response: response,
|
|
83
|
+
timestamp: new Date(),
|
|
84
|
+
},
|
|
85
|
+
bubbles: true,
|
|
86
|
+
cancelable: false,
|
|
87
|
+
});
|
|
88
|
+
window.dispatchEvent(event);
|
|
89
|
+
} catch (eventError) {
|
|
90
|
+
// Silently fail - event dispatch should never crash the app
|
|
91
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
// Re-throw the error
|
|
74
96
|
throw error;
|
|
75
97
|
}
|
|
@@ -112,6 +134,28 @@ export async function getDashboardApiSystemMetricsRetrieve( client?: any
|
|
|
112
134
|
|
|
113
135
|
consola.error('Response data:', response);
|
|
114
136
|
|
|
137
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
138
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
139
|
+
try {
|
|
140
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
141
|
+
detail: {
|
|
142
|
+
operation: 'getDashboardApiSystemMetricsRetrieve',
|
|
143
|
+
path: '/cfg/dashboard/api/system/metrics/',
|
|
144
|
+
method: 'GET',
|
|
145
|
+
error: error,
|
|
146
|
+
response: response,
|
|
147
|
+
timestamp: new Date(),
|
|
148
|
+
},
|
|
149
|
+
bubbles: true,
|
|
150
|
+
cancelable: false,
|
|
151
|
+
});
|
|
152
|
+
window.dispatchEvent(event);
|
|
153
|
+
} catch (eventError) {
|
|
154
|
+
// Silently fail - event dispatch should never crash the app
|
|
155
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
115
159
|
// Re-throw the error
|
|
116
160
|
throw error;
|
|
117
161
|
}
|
|
@@ -70,6 +70,28 @@ export async function getEndpointsDrfRetrieve( client?: any
|
|
|
70
70
|
|
|
71
71
|
consola.error('Response data:', response);
|
|
72
72
|
|
|
73
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
74
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
75
|
+
try {
|
|
76
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
77
|
+
detail: {
|
|
78
|
+
operation: 'getEndpointsDrfRetrieve',
|
|
79
|
+
path: '/cfg/endpoints/drf/',
|
|
80
|
+
method: 'GET',
|
|
81
|
+
error: error,
|
|
82
|
+
response: response,
|
|
83
|
+
timestamp: new Date(),
|
|
84
|
+
},
|
|
85
|
+
bubbles: true,
|
|
86
|
+
cancelable: false,
|
|
87
|
+
});
|
|
88
|
+
window.dispatchEvent(event);
|
|
89
|
+
} catch (eventError) {
|
|
90
|
+
// Silently fail - event dispatch should never crash the app
|
|
91
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
73
95
|
// Re-throw the error
|
|
74
96
|
throw error;
|
|
75
97
|
}
|
|
@@ -112,6 +134,28 @@ export async function getEndpointsUrlsRetrieve( client?: any
|
|
|
112
134
|
|
|
113
135
|
consola.error('Response data:', response);
|
|
114
136
|
|
|
137
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
138
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
139
|
+
try {
|
|
140
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
141
|
+
detail: {
|
|
142
|
+
operation: 'getEndpointsUrlsRetrieve',
|
|
143
|
+
path: '/cfg/endpoints/urls/',
|
|
144
|
+
method: 'GET',
|
|
145
|
+
error: error,
|
|
146
|
+
response: response,
|
|
147
|
+
timestamp: new Date(),
|
|
148
|
+
},
|
|
149
|
+
bubbles: true,
|
|
150
|
+
cancelable: false,
|
|
151
|
+
});
|
|
152
|
+
window.dispatchEvent(event);
|
|
153
|
+
} catch (eventError) {
|
|
154
|
+
// Silently fail - event dispatch should never crash the app
|
|
155
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
115
159
|
// Re-throw the error
|
|
116
160
|
throw error;
|
|
117
161
|
}
|
|
@@ -71,6 +71,28 @@ export async function getGrpcApiKeysList( params?: { is_active?: boolean; key_t
|
|
|
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: 'getGrpcApiKeysList',
|
|
80
|
+
path: '/cfg/grpc/api-keys/',
|
|
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 getGrpcApiKeysRetrieve( id: number, client?: any
|
|
|
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: 'getGrpcApiKeysRetrieve',
|
|
144
|
+
path: '/cfg/grpc/api-keys/{id}/',
|
|
145
|
+
method: 'GET',
|
|
146
|
+
error: error,
|
|
147
|
+
response: response,
|
|
148
|
+
timestamp: new Date(),
|
|
149
|
+
},
|
|
150
|
+
bubbles: true,
|
|
151
|
+
cancelable: false,
|
|
152
|
+
});
|
|
153
|
+
window.dispatchEvent(event);
|
|
154
|
+
} catch (eventError) {
|
|
155
|
+
// Silently fail - event dispatch should never crash the app
|
|
156
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
116
160
|
// Re-throw the error
|
|
117
161
|
throw error;
|
|
118
162
|
}
|
|
@@ -155,6 +199,28 @@ export async function getGrpcApiKeysStatsRetrieve( client?: any
|
|
|
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: 'getGrpcApiKeysStatsRetrieve',
|
|
208
|
+
path: '/cfg/grpc/api-keys/stats/',
|
|
209
|
+
method: 'GET',
|
|
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
|
}
|
|
@@ -75,6 +75,28 @@ export async function getGrpcChartsDashboardRetrieve( params?: { hours?: number
|
|
|
75
75
|
|
|
76
76
|
consola.error('Response data:', response);
|
|
77
77
|
|
|
78
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
79
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
80
|
+
try {
|
|
81
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
82
|
+
detail: {
|
|
83
|
+
operation: 'getGrpcChartsDashboardRetrieve',
|
|
84
|
+
path: '/cfg/grpc/charts/dashboard/',
|
|
85
|
+
method: 'GET',
|
|
86
|
+
error: error,
|
|
87
|
+
response: response,
|
|
88
|
+
timestamp: new Date(),
|
|
89
|
+
},
|
|
90
|
+
bubbles: true,
|
|
91
|
+
cancelable: false,
|
|
92
|
+
});
|
|
93
|
+
window.dispatchEvent(event);
|
|
94
|
+
} catch (eventError) {
|
|
95
|
+
// Silently fail - event dispatch should never crash the app
|
|
96
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
78
100
|
// Re-throw the error
|
|
79
101
|
throw error;
|
|
80
102
|
}
|
|
@@ -117,6 +139,28 @@ export async function getGrpcChartsErrorDistributionRetrieve( params?: { hours?
|
|
|
117
139
|
|
|
118
140
|
consola.error('Response data:', response);
|
|
119
141
|
|
|
142
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
143
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
144
|
+
try {
|
|
145
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
146
|
+
detail: {
|
|
147
|
+
operation: 'getGrpcChartsErrorDistributionRetrieve',
|
|
148
|
+
path: '/cfg/grpc/charts/error-distribution/',
|
|
149
|
+
method: 'GET',
|
|
150
|
+
error: error,
|
|
151
|
+
response: response,
|
|
152
|
+
timestamp: new Date(),
|
|
153
|
+
},
|
|
154
|
+
bubbles: true,
|
|
155
|
+
cancelable: false,
|
|
156
|
+
});
|
|
157
|
+
window.dispatchEvent(event);
|
|
158
|
+
} catch (eventError) {
|
|
159
|
+
// Silently fail - event dispatch should never crash the app
|
|
160
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
120
164
|
// Re-throw the error
|
|
121
165
|
throw error;
|
|
122
166
|
}
|
|
@@ -159,6 +203,28 @@ export async function getGrpcChartsRequestVolumeRetrieve( params?: { hours?: nu
|
|
|
159
203
|
|
|
160
204
|
consola.error('Response data:', response);
|
|
161
205
|
|
|
206
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
207
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
208
|
+
try {
|
|
209
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
210
|
+
detail: {
|
|
211
|
+
operation: 'getGrpcChartsRequestVolumeRetrieve',
|
|
212
|
+
path: '/cfg/grpc/charts/request-volume/',
|
|
213
|
+
method: 'GET',
|
|
214
|
+
error: error,
|
|
215
|
+
response: response,
|
|
216
|
+
timestamp: new Date(),
|
|
217
|
+
},
|
|
218
|
+
bubbles: true,
|
|
219
|
+
cancelable: false,
|
|
220
|
+
});
|
|
221
|
+
window.dispatchEvent(event);
|
|
222
|
+
} catch (eventError) {
|
|
223
|
+
// Silently fail - event dispatch should never crash the app
|
|
224
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
162
228
|
// Re-throw the error
|
|
163
229
|
throw error;
|
|
164
230
|
}
|
|
@@ -201,6 +267,28 @@ export async function getGrpcChartsResponseTimeRetrieve( params?: { hours?: num
|
|
|
201
267
|
|
|
202
268
|
consola.error('Response data:', response);
|
|
203
269
|
|
|
270
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
271
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
272
|
+
try {
|
|
273
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
274
|
+
detail: {
|
|
275
|
+
operation: 'getGrpcChartsResponseTimeRetrieve',
|
|
276
|
+
path: '/cfg/grpc/charts/response-time/',
|
|
277
|
+
method: 'GET',
|
|
278
|
+
error: error,
|
|
279
|
+
response: response,
|
|
280
|
+
timestamp: new Date(),
|
|
281
|
+
},
|
|
282
|
+
bubbles: true,
|
|
283
|
+
cancelable: false,
|
|
284
|
+
});
|
|
285
|
+
window.dispatchEvent(event);
|
|
286
|
+
} catch (eventError) {
|
|
287
|
+
// Silently fail - event dispatch should never crash the app
|
|
288
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
204
292
|
// Re-throw the error
|
|
205
293
|
throw error;
|
|
206
294
|
}
|
|
@@ -243,6 +331,28 @@ export async function getGrpcChartsServerLifecycleRetrieve( params?: { hours?:
|
|
|
243
331
|
|
|
244
332
|
consola.error('Response data:', response);
|
|
245
333
|
|
|
334
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
335
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
336
|
+
try {
|
|
337
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
338
|
+
detail: {
|
|
339
|
+
operation: 'getGrpcChartsServerLifecycleRetrieve',
|
|
340
|
+
path: '/cfg/grpc/charts/server-lifecycle/',
|
|
341
|
+
method: 'GET',
|
|
342
|
+
error: error,
|
|
343
|
+
response: response,
|
|
344
|
+
timestamp: new Date(),
|
|
345
|
+
},
|
|
346
|
+
bubbles: true,
|
|
347
|
+
cancelable: false,
|
|
348
|
+
});
|
|
349
|
+
window.dispatchEvent(event);
|
|
350
|
+
} catch (eventError) {
|
|
351
|
+
// Silently fail - event dispatch should never crash the app
|
|
352
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
246
356
|
// Re-throw the error
|
|
247
357
|
throw error;
|
|
248
358
|
}
|
|
@@ -285,6 +395,28 @@ export async function getGrpcChartsServerUptimeRetrieve( params?: { hours?: num
|
|
|
285
395
|
|
|
286
396
|
consola.error('Response data:', response);
|
|
287
397
|
|
|
398
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
399
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
400
|
+
try {
|
|
401
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
402
|
+
detail: {
|
|
403
|
+
operation: 'getGrpcChartsServerUptimeRetrieve',
|
|
404
|
+
path: '/cfg/grpc/charts/server-uptime/',
|
|
405
|
+
method: 'GET',
|
|
406
|
+
error: error,
|
|
407
|
+
response: response,
|
|
408
|
+
timestamp: new Date(),
|
|
409
|
+
},
|
|
410
|
+
bubbles: true,
|
|
411
|
+
cancelable: false,
|
|
412
|
+
});
|
|
413
|
+
window.dispatchEvent(event);
|
|
414
|
+
} catch (eventError) {
|
|
415
|
+
// Silently fail - event dispatch should never crash the app
|
|
416
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
288
420
|
// Re-throw the error
|
|
289
421
|
throw error;
|
|
290
422
|
}
|
|
@@ -327,6 +459,28 @@ export async function getGrpcChartsServiceActivityRetrieve( params?: { hours?:
|
|
|
327
459
|
|
|
328
460
|
consola.error('Response data:', response);
|
|
329
461
|
|
|
462
|
+
// Dispatch browser CustomEvent (only if window is defined)
|
|
463
|
+
if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {
|
|
464
|
+
try {
|
|
465
|
+
const event = new CustomEvent('zod-validation-error', {
|
|
466
|
+
detail: {
|
|
467
|
+
operation: 'getGrpcChartsServiceActivityRetrieve',
|
|
468
|
+
path: '/cfg/grpc/charts/service-activity/',
|
|
469
|
+
method: 'GET',
|
|
470
|
+
error: error,
|
|
471
|
+
response: response,
|
|
472
|
+
timestamp: new Date(),
|
|
473
|
+
},
|
|
474
|
+
bubbles: true,
|
|
475
|
+
cancelable: false,
|
|
476
|
+
});
|
|
477
|
+
window.dispatchEvent(event);
|
|
478
|
+
} catch (eventError) {
|
|
479
|
+
// Silently fail - event dispatch should never crash the app
|
|
480
|
+
consola.warn('Failed to dispatch validation error event:', eventError);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
330
484
|
// Re-throw the error
|
|
331
485
|
throw error;
|
|
332
486
|
}
|