@djangocfg/api 1.2.3 → 1.2.4

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 (34) hide show
  1. package/dist/index.cjs +2658 -1264
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +2332 -496
  4. package/dist/index.d.ts +2332 -496
  5. package/dist/index.mjs +2633 -1259
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/generated/_utils/fetchers/cfg__ipc__ipcrpc_monitoring.ts +179 -0
  9. package/src/cfg/generated/_utils/fetchers/cfg__ipc__ipcrpc_testing.ts +151 -0
  10. package/src/cfg/generated/_utils/fetchers/index.ts +2 -0
  11. package/src/cfg/generated/_utils/hooks/cfg__ipc__ipcrpc_monitoring.ts +166 -0
  12. package/src/cfg/generated/_utils/hooks/cfg__ipc__ipcrpc_testing.ts +162 -0
  13. package/src/cfg/generated/_utils/hooks/index.ts +2 -0
  14. package/src/cfg/generated/_utils/schemas/LoadTestRequestRequest.schema.ts +22 -0
  15. package/src/cfg/generated/_utils/schemas/LoadTestResponse.schema.ts +21 -0
  16. package/src/cfg/generated/_utils/schemas/LoadTestStatus.schema.ts +27 -0
  17. package/src/cfg/generated/_utils/schemas/MethodStat.schema.ts +25 -0
  18. package/src/cfg/generated/_utils/schemas/MethodStats.schema.ts +22 -0
  19. package/src/cfg/generated/_utils/schemas/NotificationStats.schema.ts +25 -0
  20. package/src/cfg/generated/_utils/schemas/OverviewStats.schema.ts +29 -0
  21. package/src/cfg/generated/_utils/schemas/RPCRequest.schema.ts +25 -0
  22. package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +22 -0
  23. package/src/cfg/generated/_utils/schemas/TestRPCRequestRequest.schema.ts +21 -0
  24. package/src/cfg/generated/_utils/schemas/TestRPCResponse.schema.ts +23 -0
  25. package/src/cfg/generated/_utils/schemas/index.ts +11 -0
  26. package/src/cfg/generated/cfg__ipc__ipcrpc_monitoring/client.ts +136 -0
  27. package/src/cfg/generated/cfg__ipc__ipcrpc_monitoring/index.ts +2 -0
  28. package/src/cfg/generated/cfg__ipc__ipcrpc_monitoring/models.ts +144 -0
  29. package/src/cfg/generated/cfg__ipc__ipcrpc_testing/client.ts +96 -0
  30. package/src/cfg/generated/cfg__ipc__ipcrpc_testing/index.ts +2 -0
  31. package/src/cfg/generated/cfg__ipc__ipcrpc_testing/models.ts +88 -0
  32. package/src/cfg/generated/client.ts +6 -0
  33. package/src/cfg/generated/index.ts +10 -0
  34. package/src/cfg/generated/schema.ts +1352 -587
@@ -0,0 +1,96 @@
1
+ import * as Models from "./models";
2
+
3
+
4
+ /**
5
+ * API endpoints for IPC/RPC Testing.
6
+ */
7
+ export class CfgIpcrpcTesting {
8
+ private client: any;
9
+
10
+ constructor(client: any) {
11
+ this.client = client;
12
+ }
13
+
14
+ /**
15
+ * Start load test
16
+ *
17
+ * Start a load test by sending multiple concurrent RPC requests.
18
+ */
19
+ async ipcAdminApiTestLoadStartCreate(data: Models.LoadTestRequestRequest): Promise<Models.LoadTestResponse> {
20
+ const response = await this.client.request('POST', "/cfg/ipc/admin/api/test/load/start/", { body: data });
21
+ return response;
22
+ }
23
+
24
+ /**
25
+ * Get load test status
26
+ *
27
+ * Get current status of running or completed load test.
28
+ */
29
+ async ipcAdminApiTestLoadStatusRetrieve(): Promise<Models.LoadTestStatus> {
30
+ const response = await this.client.request('GET', "/cfg/ipc/admin/api/test/load/status/");
31
+ return response;
32
+ }
33
+
34
+ /**
35
+ * Stop load test
36
+ *
37
+ * Stop currently running load test.
38
+ */
39
+ async ipcAdminApiTestLoadStopCreate(data: Models.TestRPCRequestRequest): Promise<any> {
40
+ const response = await this.client.request('POST', "/cfg/ipc/admin/api/test/load/stop/", { body: data });
41
+ return response;
42
+ }
43
+
44
+ /**
45
+ * Send test RPC request
46
+ *
47
+ * Send a single RPC request for testing purposes and measure response
48
+ * time.
49
+ */
50
+ async ipcAdminApiTestSendCreate(data: Models.TestRPCRequestRequest): Promise<Models.TestRPCResponse> {
51
+ const response = await this.client.request('POST', "/cfg/ipc/admin/api/test/send/", { body: data });
52
+ return response;
53
+ }
54
+
55
+ /**
56
+ * Start load test
57
+ *
58
+ * Start a load test by sending multiple concurrent RPC requests.
59
+ */
60
+ async ipcTestLoadStartCreate(data: Models.LoadTestRequestRequest): Promise<Models.LoadTestResponse> {
61
+ const response = await this.client.request('POST', "/cfg/ipc/test/load/start/", { body: data });
62
+ return response;
63
+ }
64
+
65
+ /**
66
+ * Get load test status
67
+ *
68
+ * Get current status of running or completed load test.
69
+ */
70
+ async ipcTestLoadStatusRetrieve(): Promise<Models.LoadTestStatus> {
71
+ const response = await this.client.request('GET', "/cfg/ipc/test/load/status/");
72
+ return response;
73
+ }
74
+
75
+ /**
76
+ * Stop load test
77
+ *
78
+ * Stop currently running load test.
79
+ */
80
+ async ipcTestLoadStopCreate(data: Models.TestRPCRequestRequest): Promise<any> {
81
+ const response = await this.client.request('POST', "/cfg/ipc/test/load/stop/", { body: data });
82
+ return response;
83
+ }
84
+
85
+ /**
86
+ * Send test RPC request
87
+ *
88
+ * Send a single RPC request for testing purposes and measure response
89
+ * time.
90
+ */
91
+ async ipcTestSendCreate(data: Models.TestRPCRequestRequest): Promise<Models.TestRPCResponse> {
92
+ const response = await this.client.request('POST', "/cfg/ipc/test/send/", { body: data });
93
+ return response;
94
+ }
95
+
96
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * as Models from "./models";
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Serializer for load test request input.
3
+ *
4
+ * Request model (no read-only fields).
5
+ */
6
+ export interface LoadTestRequestRequest {
7
+ /** RPC method to test */
8
+ method: string;
9
+ /** Total number of requests to send */
10
+ total_requests: number;
11
+ /** Number of concurrent requests */
12
+ concurrency: number;
13
+ /** Parameters template for RPC calls */
14
+ params?: string;
15
+ }
16
+
17
+ /**
18
+ * Serializer for load test response.
19
+ *
20
+ * Response model (includes read-only fields).
21
+ */
22
+ export interface LoadTestResponse {
23
+ /** Unique test ID */
24
+ test_id: string;
25
+ /** Whether test was started successfully */
26
+ started: boolean;
27
+ /** Status message */
28
+ message: string;
29
+ }
30
+
31
+ /**
32
+ * Serializer for load test status.
33
+ *
34
+ * Response model (includes read-only fields).
35
+ */
36
+ export interface LoadTestStatus {
37
+ /** Unique test ID */
38
+ test_id: string | null;
39
+ /** Whether test is currently running */
40
+ running: boolean;
41
+ /** Number of completed requests */
42
+ progress: number;
43
+ /** Total number of requests */
44
+ total: number;
45
+ /** Number of successful requests */
46
+ success_count: number;
47
+ /** Number of failed requests */
48
+ failed_count: number;
49
+ /** Average duration in milliseconds */
50
+ avg_duration_ms: number;
51
+ /** Total elapsed time in seconds */
52
+ elapsed_time: number;
53
+ /** Requests per second */
54
+ rps: number;
55
+ }
56
+
57
+ /**
58
+ * Serializer for test RPC request input.
59
+ *
60
+ * Request model (no read-only fields).
61
+ */
62
+ export interface TestRPCRequestRequest {
63
+ /** RPC method to call */
64
+ method: string;
65
+ /** Parameters for the RPC call */
66
+ params: string;
67
+ /** Timeout in seconds */
68
+ timeout?: number;
69
+ }
70
+
71
+ /**
72
+ * Serializer for test RPC response.
73
+ *
74
+ * Response model (includes read-only fields).
75
+ */
76
+ export interface TestRPCResponse {
77
+ /** Whether the call was successful */
78
+ success: boolean;
79
+ /** Call duration in milliseconds */
80
+ duration_ms: number;
81
+ /** Response data from RPC call */
82
+ response?: string | null;
83
+ /** Error message if failed */
84
+ error?: string | null;
85
+ /** Correlation ID for tracking */
86
+ correlation_id: string;
87
+ }
88
+
@@ -1,6 +1,8 @@
1
1
  import { CfgAuth } from "./cfg__accounts__auth";
2
2
  import { CfgBulkEmail } from "./cfg__newsletter__bulk_email";
3
3
  import { CfgCampaigns } from "./cfg__newsletter__campaigns";
4
+ import { CfgIpcrpcMonitoring } from "./cfg__ipc__ipcrpc_monitoring";
5
+ import { CfgIpcrpcTesting } from "./cfg__ipc__ipcrpc_testing";
4
6
  import { CfgLeadSubmission } from "./cfg__leads__lead_submission";
5
7
  import { CfgLogs } from "./cfg__newsletter__logs";
6
8
  import { CfgNewsletters } from "./cfg__newsletter__newsletters";
@@ -47,6 +49,8 @@ export class APIClient {
47
49
  public cfg_auth: CfgAuth;
48
50
  public cfg_bulk_email: CfgBulkEmail;
49
51
  public cfg_campaigns: CfgCampaigns;
52
+ public cfg_ipcrpc_monitoring: CfgIpcrpcMonitoring;
53
+ public cfg_ipcrpc_testing: CfgIpcrpcTesting;
50
54
  public cfg_lead_submission: CfgLeadSubmission;
51
55
  public cfg_logs: CfgLogs;
52
56
  public cfg_newsletters: CfgNewsletters;
@@ -88,6 +92,8 @@ export class APIClient {
88
92
  this.cfg_auth = new CfgAuth(this);
89
93
  this.cfg_bulk_email = new CfgBulkEmail(this);
90
94
  this.cfg_campaigns = new CfgCampaigns(this);
95
+ this.cfg_ipcrpc_monitoring = new CfgIpcrpcMonitoring(this);
96
+ this.cfg_ipcrpc_testing = new CfgIpcrpcTesting(this);
91
97
  this.cfg_lead_submission = new CfgLeadSubmission(this);
92
98
  this.cfg_logs = new CfgLogs(this);
93
99
  this.cfg_newsletters = new CfgNewsletters(this);
@@ -46,6 +46,8 @@ import { APILogger } from "./logger";
46
46
  import { CfgAuth } from "./cfg__accounts__auth/client";
47
47
  import { CfgBulkEmail } from "./cfg__newsletter__bulk_email/client";
48
48
  import { CfgCampaigns } from "./cfg__newsletter__campaigns/client";
49
+ import { CfgIpcrpcMonitoring } from "./cfg__ipc__ipcrpc_monitoring/client";
50
+ import { CfgIpcrpcTesting } from "./cfg__ipc__ipcrpc_testing/client";
49
51
  import { CfgLeadSubmission } from "./cfg__leads__lead_submission/client";
50
52
  import { CfgLogs } from "./cfg__newsletter__logs/client";
51
53
  import { CfgNewsletters } from "./cfg__newsletter__newsletters/client";
@@ -64,6 +66,8 @@ import { CfgTasks } from "./cfg__tasks/client";
64
66
  export * as CfgAuthTypes from "./cfg__accounts__auth/models";
65
67
  export * as CfgBulkEmailTypes from "./cfg__newsletter__bulk_email/models";
66
68
  export * as CfgCampaignsTypes from "./cfg__newsletter__campaigns/models";
69
+ export * as CfgIpcrpcMonitoringTypes from "./cfg__ipc__ipcrpc_monitoring/models";
70
+ export * as CfgIpcrpcTestingTypes from "./cfg__ipc__ipcrpc_testing/models";
67
71
  export * as CfgLeadSubmissionTypes from "./cfg__leads__lead_submission/models";
68
72
  export * as CfgLogsTypes from "./cfg__newsletter__logs/models";
69
73
  export * as CfgNewslettersTypes from "./cfg__newsletter__newsletters/models";
@@ -150,6 +154,8 @@ export class API {
150
154
  public cfg_auth!: CfgAuth;
151
155
  public cfg_bulk_email!: CfgBulkEmail;
152
156
  public cfg_campaigns!: CfgCampaigns;
157
+ public cfg_ipcrpc_monitoring!: CfgIpcrpcMonitoring;
158
+ public cfg_ipcrpc_testing!: CfgIpcrpcTesting;
153
159
  public cfg_lead_submission!: CfgLeadSubmission;
154
160
  public cfg_logs!: CfgLogs;
155
161
  public cfg_newsletters!: CfgNewsletters;
@@ -193,6 +199,8 @@ export class API {
193
199
  this.cfg_auth = this._client.cfg_auth;
194
200
  this.cfg_bulk_email = this._client.cfg_bulk_email;
195
201
  this.cfg_campaigns = this._client.cfg_campaigns;
202
+ this.cfg_ipcrpc_monitoring = this._client.cfg_ipcrpc_monitoring;
203
+ this.cfg_ipcrpc_testing = this._client.cfg_ipcrpc_testing;
196
204
  this.cfg_lead_submission = this._client.cfg_lead_submission;
197
205
  this.cfg_logs = this._client.cfg_logs;
198
206
  this.cfg_newsletters = this._client.cfg_newsletters;
@@ -230,6 +238,8 @@ export class API {
230
238
  this.cfg_auth = this._client.cfg_auth;
231
239
  this.cfg_bulk_email = this._client.cfg_bulk_email;
232
240
  this.cfg_campaigns = this._client.cfg_campaigns;
241
+ this.cfg_ipcrpc_monitoring = this._client.cfg_ipcrpc_monitoring;
242
+ this.cfg_ipcrpc_testing = this._client.cfg_ipcrpc_testing;
233
243
  this.cfg_lead_submission = this._client.cfg_lead_submission;
234
244
  this.cfg_logs = this._client.cfg_logs;
235
245
  this.cfg_newsletters = this._client.cfg_newsletters;