@djangocfg/api 1.2.32 → 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.
Files changed (52) hide show
  1. package/dist/index.cjs +3306 -5
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +75 -2
  4. package/dist/index.d.ts +75 -2
  5. package/dist/index.mjs +3303 -5
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +44 -0
  9. package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +22 -0
  10. package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +132 -0
  11. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +22 -0
  12. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +110 -0
  13. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_auth.ts +22 -0
  14. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +88 -0
  15. package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +66 -0
  16. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_api_zones.ts +22 -0
  17. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_charts.ts +44 -0
  18. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_commands.ts +44 -0
  19. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_config.ts +22 -0
  20. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_overview.ts +22 -0
  21. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_statistics.ts +22 -0
  22. package/src/cfg/generated/_utils/fetchers/cfg__dashboard__dashboard_system.ts +44 -0
  23. package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +44 -0
  24. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +66 -0
  25. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +154 -0
  26. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_configuration.ts +44 -0
  27. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +88 -0
  28. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +22 -0
  29. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_services.ts +66 -0
  30. package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +66 -0
  31. package/src/cfg/generated/_utils/fetchers/cfg__health.ts +44 -0
  32. package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +1078 -0
  33. package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +110 -0
  34. package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +22 -0
  35. package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +66 -0
  36. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +22 -0
  37. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +110 -0
  38. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +22 -0
  39. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +44 -0
  40. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +66 -0
  41. package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +22 -0
  42. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +132 -0
  43. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_jobs.ts +110 -0
  44. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_monitoring.ts +44 -0
  45. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_queues.ts +22 -0
  46. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_registries.ts +154 -0
  47. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_schedules.ts +88 -0
  48. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_testing.ts +88 -0
  49. package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_workers.ts +22 -0
  50. package/src/cfg/generated/_utils/fetchers/cfg__support.ts +220 -0
  51. package/src/cfg/generated/index.ts +4 -0
  52. package/src/cfg/generated/validation-events.ts +133 -0
@@ -70,6 +70,28 @@ export async function getGrpcConfigConfigRetrieve( 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: 'getGrpcConfigConfigRetrieve',
79
+ path: '/cfg/grpc/config/config/',
80
+ method: 'GET',
81
+ error: error,
82
+ response: response,
83
+ timestamp: new Date(),
84
+ },
85
+ bubbles: true,
86
+ cancelable: false,
87
+ });
88
+ window.dispatchEvent(event);
89
+ } catch (eventError) {
90
+ // Silently fail - event dispatch should never crash the app
91
+ consola.warn('Failed to dispatch validation error event:', eventError);
92
+ }
93
+ }
94
+
73
95
  // Re-throw the error
74
96
  throw error;
75
97
  }
@@ -112,6 +134,28 @@ export async function getGrpcConfigServerInfoRetrieve( 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: 'getGrpcConfigServerInfoRetrieve',
143
+ path: '/cfg/grpc/config/server-info/',
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
  }
@@ -72,6 +72,28 @@ export async function getGrpcMonitorHealthRetrieve( 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: 'getGrpcMonitorHealthRetrieve',
81
+ path: '/cfg/grpc/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 getGrpcMonitorMethodsRetrieve( params?: { hours?: number;
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: 'getGrpcMonitorMethodsRetrieve',
145
+ path: '/cfg/grpc/monitor/methods/',
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 getGrpcMonitorOverviewRetrieve( params?: { hours?: number
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: 'getGrpcMonitorOverviewRetrieve',
209
+ path: '/cfg/grpc/monitor/overview/',
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 getGrpcMonitorRequestsList( params?: { method?: string; p
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: 'getGrpcMonitorRequestsList',
273
+ path: '/cfg/grpc/monitor/requests/',
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
  }
@@ -112,6 +112,28 @@ export async function createGrpcProtoFilesGenerateCreate( data: ProtoGenerateRe
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: 'createGrpcProtoFilesGenerateCreate',
121
+ path: '/cfg/grpc/proto-files/generate/',
122
+ method: 'POST',
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
  }
@@ -71,6 +71,28 @@ export async function getGrpcServicesList( params?: { hours?: number; page?: nu
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: 'getGrpcServicesList',
80
+ path: '/cfg/grpc/services/',
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 getGrpcServicesRetrieve( id: string, pk: string, client?
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: 'getGrpcServicesRetrieve',
144
+ path: '/cfg/grpc/services/{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 getGrpcServicesMethodsRetrieve( id: string, pk: string,
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: 'getGrpcServicesMethodsRetrieve',
208
+ path: '/cfg/grpc/services/{id}/methods/',
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
  }
@@ -72,6 +72,28 @@ export async function createGrpcTestCallCreate( data: GRPCCallRequestRequest,
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: 'createGrpcTestCallCreate',
81
+ path: '/cfg/grpc/test/call/',
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 getGrpcTestExamplesRetrieve( params?: { method?: string;
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: 'getGrpcTestExamplesRetrieve',
145
+ path: '/cfg/grpc/test/examples/',
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 getGrpcTestLogsRetrieve( params?: { method?: string; serv
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: 'getGrpcTestLogsRetrieve',
209
+ path: '/cfg/grpc/test/logs/',
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
  }
@@ -70,6 +70,28 @@ export async function getHealthDrfRetrieve( 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: 'getHealthDrfRetrieve',
79
+ path: '/cfg/health/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 getHealthDrfQuickRetrieve( 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: 'getHealthDrfQuickRetrieve',
143
+ path: '/cfg/health/drf/quick/',
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
  }