@djangocfg/api 1.2.22 → 1.2.23
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 +4228 -2450
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3122 -738
- package/dist/index.d.ts +3122 -738
- package/dist/index.mjs +4140 -2370
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +138 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +11 -11
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/index.ts +1 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +3 -3
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_charts.ts +126 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_monitoring.ts +9 -9
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_testing.ts +4 -4
- package/src/cfg/generated/_utils/hooks/index.ts +1 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/{OverviewStats.schema.ts → CentrifugoOverviewStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/DashboardCharts.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/DjangoRQConfig.schema.ts +8 -1
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChart.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChartSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ErrorDistributionDataPoint.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/GRPCHealthCheck.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/GRPCServerConfigSerializer.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/GRPCServerInfo.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/{GRPCTestLogSerializer.schema.ts → GRPCTestLog.schema.ts} +4 -4
- package/src/cfg/generated/_utils/schemas/MonitoringServiceStatsSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/RecentRequest.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeDataPoint.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeDataPoint.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerLifecycleChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerLifecycleEvent.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeDataPoint.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityChart.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityChartSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityDataPoint.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/ServiceStatsSerializer.schema.ts +8 -8
- package/src/cfg/generated/_utils/schemas/index.ts +24 -4
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +5 -5
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +4 -4
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +1 -1
- package/src/cfg/generated/cfg__dashboard__dashboard_config/models.ts +26 -1
- package/src/cfg/generated/cfg__endpoints/client.ts +1 -1
- package/src/cfg/generated/cfg__grpc__grpc_charts/client.ts +162 -0
- package/src/cfg/generated/cfg__grpc__grpc_charts/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +335 -0
- package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +2 -2
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/client.ts +12 -11
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +45 -31
- package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +11 -11
- package/src/cfg/generated/cfg__grpc__grpc_testing/client.ts +9 -10
- package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +22 -38
- package/src/cfg/generated/cfg__payments/client.ts +1 -1
- package/src/cfg/generated/client.ts +3 -0
- package/src/cfg/generated/index.ts +5 -0
- package/src/cfg/generated/schema.ts +1621 -342
- package/src/cfg/generated/_utils/schemas/GRPCTestLogs.schema.ts +0 -23
- package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +0 -23
|
@@ -36,9 +36,9 @@ export interface GRPCCallResponse {
|
|
|
36
36
|
grpc_status_code: string;
|
|
37
37
|
/** Call duration in milliseconds */
|
|
38
38
|
duration_ms: number;
|
|
39
|
-
/** Response data if successful */
|
|
39
|
+
/** Response data if successful (JSON string) */
|
|
40
40
|
response?: string | null;
|
|
41
|
-
/** Error
|
|
41
|
+
/** Error message if failed */
|
|
42
42
|
error?: string | null;
|
|
43
43
|
/** Response metadata */
|
|
44
44
|
metadata?: Record<string, any>;
|
|
@@ -59,19 +59,29 @@ export interface GRPCExamplesList {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Single test log entry.
|
|
63
63
|
*
|
|
64
64
|
* Response model (includes read-only fields).
|
|
65
65
|
*/
|
|
66
|
-
export interface
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
|
|
66
|
+
export interface GRPCTestLog {
|
|
67
|
+
/** Request ID */
|
|
68
|
+
request_id: string;
|
|
69
|
+
/** Service name */
|
|
70
|
+
service: string;
|
|
71
|
+
/** Method name */
|
|
72
|
+
method: string;
|
|
73
|
+
/** Request status (success, error, etc.) */
|
|
74
|
+
status: string;
|
|
75
|
+
/** gRPC status code if available */
|
|
76
|
+
grpc_status_code?: string | null;
|
|
77
|
+
/** Error message if failed */
|
|
78
|
+
error_message?: string | null;
|
|
79
|
+
/** Duration in milliseconds */
|
|
80
|
+
duration_ms?: number | null;
|
|
81
|
+
/** Request timestamp (ISO format) */
|
|
82
|
+
created_at: string;
|
|
83
|
+
/** User who made the request */
|
|
84
|
+
user?: string | null;
|
|
75
85
|
}
|
|
76
86
|
|
|
77
87
|
/**
|
|
@@ -94,29 +104,3 @@ export interface GRPCExampleSerializer {
|
|
|
94
104
|
metadata_example?: Record<string, any>;
|
|
95
105
|
}
|
|
96
106
|
|
|
97
|
-
/**
|
|
98
|
-
* Single test log entry.
|
|
99
|
-
*
|
|
100
|
-
* Response model (includes read-only fields).
|
|
101
|
-
*/
|
|
102
|
-
export interface GRPCTestLogSerializer {
|
|
103
|
-
/** Request ID */
|
|
104
|
-
request_id: string;
|
|
105
|
-
/** Service name */
|
|
106
|
-
service: string;
|
|
107
|
-
/** Method name */
|
|
108
|
-
method: string;
|
|
109
|
-
/** Request status (success, error, etc.) */
|
|
110
|
-
status: string;
|
|
111
|
-
/** gRPC status code if available */
|
|
112
|
-
grpc_status_code?: string | null;
|
|
113
|
-
/** Error message if failed */
|
|
114
|
-
error_message?: string | null;
|
|
115
|
-
/** Duration in milliseconds */
|
|
116
|
-
duration_ms?: string | null;
|
|
117
|
-
/** Request timestamp (ISO format) */
|
|
118
|
-
created_at: string;
|
|
119
|
-
/** User who made the request */
|
|
120
|
-
user?: string | null;
|
|
121
|
-
}
|
|
122
|
-
|
|
@@ -81,7 +81,7 @@ export class CfgPayments {
|
|
|
81
81
|
*/
|
|
82
82
|
async paymentsStatusRetrieve(id: string): Promise<Models.PaymentList[]> {
|
|
83
83
|
const response = await this.client.request('GET', `/cfg/payments/payments/${id}/status/`);
|
|
84
|
-
return (response as any).results ||
|
|
84
|
+
return (response as any).results || response;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -28,6 +28,7 @@ import { CfgUserProfile } from "./cfg__accounts__user_profile";
|
|
|
28
28
|
import { CfgAccounts } from "./cfg__accounts";
|
|
29
29
|
import { CfgCentrifugo } from "./cfg__centrifugo";
|
|
30
30
|
import { CfgEndpoints } from "./cfg__endpoints";
|
|
31
|
+
import { CfgGrpcCharts } from "./cfg__grpc__grpc_charts";
|
|
31
32
|
import { CfgGrpcConfiguration } from "./cfg__grpc__grpc_configuration";
|
|
32
33
|
import { CfgGrpcMonitoring } from "./cfg__grpc__grpc_monitoring";
|
|
33
34
|
import { CfgGrpcServices } from "./cfg__grpc__grpc_services";
|
|
@@ -96,6 +97,7 @@ export class APIClient {
|
|
|
96
97
|
public cfg_accounts: CfgAccounts;
|
|
97
98
|
public cfg_centrifugo: CfgCentrifugo;
|
|
98
99
|
public cfg_endpoints: CfgEndpoints;
|
|
100
|
+
public cfg_grpc_charts: CfgGrpcCharts;
|
|
99
101
|
public cfg_grpc_configuration: CfgGrpcConfiguration;
|
|
100
102
|
public cfg_grpc_monitoring: CfgGrpcMonitoring;
|
|
101
103
|
public cfg_grpc_services: CfgGrpcServices;
|
|
@@ -159,6 +161,7 @@ export class APIClient {
|
|
|
159
161
|
this.cfg_accounts = new CfgAccounts(this);
|
|
160
162
|
this.cfg_centrifugo = new CfgCentrifugo(this);
|
|
161
163
|
this.cfg_endpoints = new CfgEndpoints(this);
|
|
164
|
+
this.cfg_grpc_charts = new CfgGrpcCharts(this);
|
|
162
165
|
this.cfg_grpc_configuration = new CfgGrpcConfiguration(this);
|
|
163
166
|
this.cfg_grpc_monitoring = new CfgGrpcMonitoring(this);
|
|
164
167
|
this.cfg_grpc_services = new CfgGrpcServices(this);
|
|
@@ -73,6 +73,7 @@ import { CfgUserProfile } from "./cfg__accounts__user_profile/client";
|
|
|
73
73
|
import { CfgAccounts } from "./cfg__accounts/client";
|
|
74
74
|
import { CfgCentrifugo } from "./cfg__centrifugo/client";
|
|
75
75
|
import { CfgEndpoints } from "./cfg__endpoints/client";
|
|
76
|
+
import { CfgGrpcCharts } from "./cfg__grpc__grpc_charts/client";
|
|
76
77
|
import { CfgGrpcConfiguration } from "./cfg__grpc__grpc_configuration/client";
|
|
77
78
|
import { CfgGrpcMonitoring } from "./cfg__grpc__grpc_monitoring/client";
|
|
78
79
|
import { CfgGrpcServices } from "./cfg__grpc__grpc_services/client";
|
|
@@ -113,6 +114,7 @@ export * as CfgUserProfileTypes from "./cfg__accounts__user_profile/models";
|
|
|
113
114
|
export * as CfgAccountsTypes from "./cfg__accounts/models";
|
|
114
115
|
export * as CfgCentrifugoTypes from "./cfg__centrifugo/models";
|
|
115
116
|
export * as CfgEndpointsTypes from "./cfg__endpoints/models";
|
|
117
|
+
export * as CfgGrpcChartsTypes from "./cfg__grpc__grpc_charts/models";
|
|
116
118
|
export * as CfgGrpcConfigurationTypes from "./cfg__grpc__grpc_configuration/models";
|
|
117
119
|
export * as CfgGrpcMonitoringTypes from "./cfg__grpc__grpc_monitoring/models";
|
|
118
120
|
export * as CfgGrpcServicesTypes from "./cfg__grpc__grpc_services/models";
|
|
@@ -221,6 +223,7 @@ export class API {
|
|
|
221
223
|
public cfg_accounts!: CfgAccounts;
|
|
222
224
|
public cfg_centrifugo!: CfgCentrifugo;
|
|
223
225
|
public cfg_endpoints!: CfgEndpoints;
|
|
226
|
+
public cfg_grpc_charts!: CfgGrpcCharts;
|
|
224
227
|
public cfg_grpc_configuration!: CfgGrpcConfiguration;
|
|
225
228
|
public cfg_grpc_monitoring!: CfgGrpcMonitoring;
|
|
226
229
|
public cfg_grpc_services!: CfgGrpcServices;
|
|
@@ -284,6 +287,7 @@ export class API {
|
|
|
284
287
|
this.cfg_accounts = this._client.cfg_accounts;
|
|
285
288
|
this.cfg_centrifugo = this._client.cfg_centrifugo;
|
|
286
289
|
this.cfg_endpoints = this._client.cfg_endpoints;
|
|
290
|
+
this.cfg_grpc_charts = this._client.cfg_grpc_charts;
|
|
287
291
|
this.cfg_grpc_configuration = this._client.cfg_grpc_configuration;
|
|
288
292
|
this.cfg_grpc_monitoring = this._client.cfg_grpc_monitoring;
|
|
289
293
|
this.cfg_grpc_services = this._client.cfg_grpc_services;
|
|
@@ -341,6 +345,7 @@ export class API {
|
|
|
341
345
|
this.cfg_accounts = this._client.cfg_accounts;
|
|
342
346
|
this.cfg_centrifugo = this._client.cfg_centrifugo;
|
|
343
347
|
this.cfg_endpoints = this._client.cfg_endpoints;
|
|
348
|
+
this.cfg_grpc_charts = this._client.cfg_grpc_charts;
|
|
344
349
|
this.cfg_grpc_configuration = this._client.cfg_grpc_configuration;
|
|
345
350
|
this.cfg_grpc_monitoring = this._client.cfg_grpc_monitoring;
|
|
346
351
|
this.cfg_grpc_services = this._client.cfg_grpc_services;
|