@djangocfg/api 1.2.23 → 1.2.24
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 +4025 -3009
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3089 -1662
- package/dist/index.d.ts +3089 -1662
- package/dist/index.mjs +4009 -3002
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +3 -2
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +5 -5
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_api_keys.ts +78 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_proto_files.ts +91 -0
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_jobs.ts +10 -8
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_registries.ts +24 -22
- package/src/cfg/generated/_utils/fetchers/cfg__rq__rq_schedules.ts +5 -4
- package/src/cfg/generated/_utils/fetchers/index.ts +2 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +3 -2
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +5 -5
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_api_keys.ts +66 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_proto_files.ts +83 -0
- package/src/cfg/generated/_utils/hooks/cfg__rq__rq_jobs.ts +8 -6
- package/src/cfg/generated/_utils/hooks/cfg__rq__rq_registries.ts +16 -14
- package/src/cfg/generated/_utils/hooks/cfg__rq__rq_schedules.ts +3 -2
- package/src/cfg/generated/_utils/hooks/index.ts +2 -0
- package/src/cfg/generated/_utils/schemas/ApiKey.schema.ts +32 -0
- package/src/cfg/generated/_utils/schemas/ApiKeyStats.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/Command.schema.ts +13 -0
- package/src/cfg/generated/_utils/schemas/DashboardCharts.schema.ts +10 -10
- package/src/cfg/generated/_utils/schemas/GRPCCallRequestRequest.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/GRPCConfig.schema.ts +6 -6
- package/src/cfg/generated/_utils/schemas/{GRPCExampleSerializer.schema.ts → GRPCExample.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/GRPCExamplesList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/{GRPCFeaturesSerializer.schema.ts → GRPCFeatures.schema.ts} +4 -4
- package/src/cfg/generated/_utils/schemas/{GRPCFrameworkConfigSerializer.schema.ts → GRPCFrameworkConfig.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/{GRPCInterceptorInfoSerializer.schema.ts → GRPCInterceptorInfo.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/{GRPCServerConfigSerializer.schema.ts → GRPCServerConfig.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/GRPCServerInfo.schema.ts +6 -6
- package/src/cfg/generated/_utils/schemas/{GRPCServiceInfoSerializer.schema.ts → GRPCServiceInfo.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/{GRPCStatsSerializer.schema.ts → GRPCStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/JobListRequest.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/{MethodInfoSerializer.schema.ts → MethodInfo.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/MethodList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/{MethodStatsSerializer.schema.ts → MethodStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/{MethodSummarySerializer.schema.ts → MethodSummary.schema.ts} +5 -5
- package/src/cfg/generated/_utils/schemas/{MonitoringServiceStatsSerializer.schema.ts → MonitoringServiceStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/PaginatedApiKeyList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedJobListList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedPublishList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/PaginatedScheduledJobList.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ProtoFileDetail.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/ProtoFileList.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/ProtoGenerateError.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ProtoGenerateRequestRequest.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ProtoGenerateResponse.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/Publish.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/{RecentErrorSerializer.schema.ts → RecentError.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/RecentRequest.schema.ts +5 -0
- package/src/cfg/generated/_utils/schemas/ServiceDetail.schema.ts +6 -6
- package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/ServiceMethods.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/{ServiceStatsSerializer.schema.ts → ServiceStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/index.ts +26 -19
- package/src/cfg/generated/cfg__centrifugo/client.ts +1 -1
- package/src/cfg/generated/cfg__centrifugo/models.ts +19 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +6 -5
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +37 -11
- package/src/cfg/generated/cfg__dashboard__dashboard_commands/models.ts +10 -1
- package/src/cfg/generated/cfg__grpc__grpc_api_keys/client.ts +56 -0
- package/src/cfg/generated/cfg__grpc__grpc_api_keys/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_api_keys/models.ts +79 -0
- package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +0 -96
- package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +10 -10
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +15 -5
- package/src/cfg/generated/cfg__grpc__grpc_proto_files/client.ts +54 -0
- package/src/cfg/generated/cfg__grpc__grpc_proto_files/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_proto_files/models.ts +35 -0
- package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +8 -8
- package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +2 -2
- package/src/cfg/generated/cfg__rq__rq_jobs/client.ts +8 -8
- package/src/cfg/generated/cfg__rq__rq_jobs/models.ts +65 -0
- package/src/cfg/generated/cfg__rq__rq_registries/client.ts +37 -34
- package/src/cfg/generated/cfg__rq__rq_registries/models.ts +65 -0
- package/src/cfg/generated/cfg__rq__rq_schedules/client.ts +4 -4
- package/src/cfg/generated/cfg__rq__rq_schedules/models.ts +25 -0
- package/src/cfg/generated/client.ts +6 -0
- package/src/cfg/generated/index.ts +10 -0
- package/src/cfg/generated/schema.ts +1613 -935
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChartSerializer.schema.ts +0 -24
- package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +0 -23
- package/src/cfg/generated/_utils/schemas/RequestVolumeChartSerializer.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/ResponseTimeChartSerializer.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/ServerUptimeChartSerializer.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/ServiceActivityChartSerializer.schema.ts +0 -24
|
@@ -11,50 +11,50 @@ export class CfgRqRegistries {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
async rqJobsRegistriesDeferredList(queue?: string): Promise<
|
|
15
|
-
async rqJobsRegistriesDeferredList(params?: { queue?: string }): Promise<
|
|
14
|
+
async rqJobsRegistriesDeferredList(page?: number, page_size?: number, queue?: string): Promise<Models.PaginatedJobListList>;
|
|
15
|
+
async rqJobsRegistriesDeferredList(params?: { page?: number; page_size?: number; queue?: string }): Promise<Models.PaginatedJobListList>;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* List deferred jobs
|
|
19
19
|
*
|
|
20
20
|
* Returns list of all deferred jobs from deferred job registry.
|
|
21
21
|
*/
|
|
22
|
-
async rqJobsRegistriesDeferredList(...args: any[]): Promise<
|
|
22
|
+
async rqJobsRegistriesDeferredList(...args: any[]): Promise<Models.PaginatedJobListList> {
|
|
23
23
|
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
24
24
|
|
|
25
25
|
let params;
|
|
26
26
|
if (isParamsObject) {
|
|
27
27
|
params = args[0];
|
|
28
28
|
} else {
|
|
29
|
-
params = {
|
|
29
|
+
params = { page: args[0], page_size: args[1], queue: args[2] };
|
|
30
30
|
}
|
|
31
31
|
const response = await this.client.request('GET', "/cfg/rq/jobs/registries/deferred/", { params });
|
|
32
32
|
return response;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
async rqJobsRegistriesFailedList(queue?: string): Promise<
|
|
36
|
-
async rqJobsRegistriesFailedList(params?: { queue?: string }): Promise<
|
|
35
|
+
async rqJobsRegistriesFailedList(page?: number, page_size?: number, queue?: string): Promise<Models.PaginatedJobListList>;
|
|
36
|
+
async rqJobsRegistriesFailedList(params?: { page?: number; page_size?: number; queue?: string }): Promise<Models.PaginatedJobListList>;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* List failed jobs
|
|
40
40
|
*
|
|
41
41
|
* Returns list of all failed jobs from failed job registry.
|
|
42
42
|
*/
|
|
43
|
-
async rqJobsRegistriesFailedList(...args: any[]): Promise<
|
|
43
|
+
async rqJobsRegistriesFailedList(...args: any[]): Promise<Models.PaginatedJobListList> {
|
|
44
44
|
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
45
45
|
|
|
46
46
|
let params;
|
|
47
47
|
if (isParamsObject) {
|
|
48
48
|
params = args[0];
|
|
49
49
|
} else {
|
|
50
|
-
params = {
|
|
50
|
+
params = { page: args[0], page_size: args[1], queue: args[2] };
|
|
51
51
|
}
|
|
52
52
|
const response = await this.client.request('GET', "/cfg/rq/jobs/registries/failed/", { params });
|
|
53
53
|
return response;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
async rqJobsRegistriesFailedClearCreate(queue: string): Promise<Models.JobActionResponse>;
|
|
57
|
-
async rqJobsRegistriesFailedClearCreate(params: { queue: string }): Promise<Models.JobActionResponse>;
|
|
56
|
+
async rqJobsRegistriesFailedClearCreate(data: Models.JobListRequest, queue: string): Promise<Models.JobActionResponse>;
|
|
57
|
+
async rqJobsRegistriesFailedClearCreate(data: Models.JobListRequest, params: { queue: string }): Promise<Models.JobActionResponse>;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Clear failed jobs registry
|
|
@@ -62,20 +62,21 @@ export class CfgRqRegistries {
|
|
|
62
62
|
* Removes all jobs from the failed job registry.
|
|
63
63
|
*/
|
|
64
64
|
async rqJobsRegistriesFailedClearCreate(...args: any[]): Promise<Models.JobActionResponse> {
|
|
65
|
-
const
|
|
65
|
+
const data = args[0];
|
|
66
|
+
const isParamsObject = args.length === 2 && typeof args[1] === 'object' && args[1] !== null && !Array.isArray(args[1]);
|
|
66
67
|
|
|
67
68
|
let params;
|
|
68
69
|
if (isParamsObject) {
|
|
69
|
-
params = args[
|
|
70
|
+
params = args[1];
|
|
70
71
|
} else {
|
|
71
|
-
params = { queue: args[
|
|
72
|
+
params = { queue: args[1] };
|
|
72
73
|
}
|
|
73
|
-
const response = await this.client.request('POST', "/cfg/rq/jobs/registries/failed/clear/", { params });
|
|
74
|
+
const response = await this.client.request('POST', "/cfg/rq/jobs/registries/failed/clear/", { params, body: data });
|
|
74
75
|
return response;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
async rqJobsRegistriesFailedRequeueAllCreate(queue: string): Promise<Models.JobActionResponse>;
|
|
78
|
-
async rqJobsRegistriesFailedRequeueAllCreate(params: { queue: string }): Promise<Models.JobActionResponse>;
|
|
78
|
+
async rqJobsRegistriesFailedRequeueAllCreate(data: Models.JobListRequest, queue: string): Promise<Models.JobActionResponse>;
|
|
79
|
+
async rqJobsRegistriesFailedRequeueAllCreate(data: Models.JobListRequest, params: { queue: string }): Promise<Models.JobActionResponse>;
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* Requeue all failed jobs
|
|
@@ -83,41 +84,42 @@ export class CfgRqRegistries {
|
|
|
83
84
|
* Requeues all failed jobs in the failed job registry.
|
|
84
85
|
*/
|
|
85
86
|
async rqJobsRegistriesFailedRequeueAllCreate(...args: any[]): Promise<Models.JobActionResponse> {
|
|
86
|
-
const
|
|
87
|
+
const data = args[0];
|
|
88
|
+
const isParamsObject = args.length === 2 && typeof args[1] === 'object' && args[1] !== null && !Array.isArray(args[1]);
|
|
87
89
|
|
|
88
90
|
let params;
|
|
89
91
|
if (isParamsObject) {
|
|
90
|
-
params = args[
|
|
92
|
+
params = args[1];
|
|
91
93
|
} else {
|
|
92
|
-
params = { queue: args[
|
|
94
|
+
params = { queue: args[1] };
|
|
93
95
|
}
|
|
94
|
-
const response = await this.client.request('POST', "/cfg/rq/jobs/registries/failed/requeue-all/", { params });
|
|
96
|
+
const response = await this.client.request('POST', "/cfg/rq/jobs/registries/failed/requeue-all/", { params, body: data });
|
|
95
97
|
return response;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
|
-
async rqJobsRegistriesFinishedList(queue?: string): Promise<
|
|
99
|
-
async rqJobsRegistriesFinishedList(params?: { queue?: string }): Promise<
|
|
100
|
+
async rqJobsRegistriesFinishedList(page?: number, page_size?: number, queue?: string): Promise<Models.PaginatedJobListList>;
|
|
101
|
+
async rqJobsRegistriesFinishedList(params?: { page?: number; page_size?: number; queue?: string }): Promise<Models.PaginatedJobListList>;
|
|
100
102
|
|
|
101
103
|
/**
|
|
102
104
|
* List finished jobs
|
|
103
105
|
*
|
|
104
106
|
* Returns list of all finished jobs from finished job registry.
|
|
105
107
|
*/
|
|
106
|
-
async rqJobsRegistriesFinishedList(...args: any[]): Promise<
|
|
108
|
+
async rqJobsRegistriesFinishedList(...args: any[]): Promise<Models.PaginatedJobListList> {
|
|
107
109
|
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
108
110
|
|
|
109
111
|
let params;
|
|
110
112
|
if (isParamsObject) {
|
|
111
113
|
params = args[0];
|
|
112
114
|
} else {
|
|
113
|
-
params = {
|
|
115
|
+
params = { page: args[0], page_size: args[1], queue: args[2] };
|
|
114
116
|
}
|
|
115
117
|
const response = await this.client.request('GET', "/cfg/rq/jobs/registries/finished/", { params });
|
|
116
118
|
return response;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
async rqJobsRegistriesFinishedClearCreate(queue: string): Promise<Models.JobActionResponse>;
|
|
120
|
-
async rqJobsRegistriesFinishedClearCreate(params: { queue: string }): Promise<Models.JobActionResponse>;
|
|
121
|
+
async rqJobsRegistriesFinishedClearCreate(data: Models.JobListRequest, queue: string): Promise<Models.JobActionResponse>;
|
|
122
|
+
async rqJobsRegistriesFinishedClearCreate(data: Models.JobListRequest, params: { queue: string }): Promise<Models.JobActionResponse>;
|
|
121
123
|
|
|
122
124
|
/**
|
|
123
125
|
* Clear finished jobs registry
|
|
@@ -125,34 +127,35 @@ export class CfgRqRegistries {
|
|
|
125
127
|
* Removes all jobs from the finished job registry.
|
|
126
128
|
*/
|
|
127
129
|
async rqJobsRegistriesFinishedClearCreate(...args: any[]): Promise<Models.JobActionResponse> {
|
|
128
|
-
const
|
|
130
|
+
const data = args[0];
|
|
131
|
+
const isParamsObject = args.length === 2 && typeof args[1] === 'object' && args[1] !== null && !Array.isArray(args[1]);
|
|
129
132
|
|
|
130
133
|
let params;
|
|
131
134
|
if (isParamsObject) {
|
|
132
|
-
params = args[
|
|
135
|
+
params = args[1];
|
|
133
136
|
} else {
|
|
134
|
-
params = { queue: args[
|
|
137
|
+
params = { queue: args[1] };
|
|
135
138
|
}
|
|
136
|
-
const response = await this.client.request('POST', "/cfg/rq/jobs/registries/finished/clear/", { params });
|
|
139
|
+
const response = await this.client.request('POST', "/cfg/rq/jobs/registries/finished/clear/", { params, body: data });
|
|
137
140
|
return response;
|
|
138
141
|
}
|
|
139
142
|
|
|
140
|
-
async rqJobsRegistriesStartedList(queue?: string): Promise<
|
|
141
|
-
async rqJobsRegistriesStartedList(params?: { queue?: string }): Promise<
|
|
143
|
+
async rqJobsRegistriesStartedList(page?: number, page_size?: number, queue?: string): Promise<Models.PaginatedJobListList>;
|
|
144
|
+
async rqJobsRegistriesStartedList(params?: { page?: number; page_size?: number; queue?: string }): Promise<Models.PaginatedJobListList>;
|
|
142
145
|
|
|
143
146
|
/**
|
|
144
147
|
* List started jobs
|
|
145
148
|
*
|
|
146
149
|
* Returns list of all currently running jobs from started job registry.
|
|
147
150
|
*/
|
|
148
|
-
async rqJobsRegistriesStartedList(...args: any[]): Promise<
|
|
151
|
+
async rqJobsRegistriesStartedList(...args: any[]): Promise<Models.PaginatedJobListList> {
|
|
149
152
|
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
150
153
|
|
|
151
154
|
let params;
|
|
152
155
|
if (isParamsObject) {
|
|
153
156
|
params = args[0];
|
|
154
157
|
} else {
|
|
155
|
-
params = {
|
|
158
|
+
params = { page: args[0], page_size: args[1], queue: args[2] };
|
|
156
159
|
}
|
|
157
160
|
const response = await this.client.request('GET', "/cfg/rq/jobs/registries/started/", { params });
|
|
158
161
|
return response;
|
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Response model (includes read-only fields).
|
|
4
|
+
*/
|
|
5
|
+
export interface PaginatedJobListList {
|
|
6
|
+
/** Total number of items across all pages */
|
|
7
|
+
count: number;
|
|
8
|
+
/** Current page number (1-based) */
|
|
9
|
+
page: number;
|
|
10
|
+
/** Total number of pages */
|
|
11
|
+
pages: number;
|
|
12
|
+
/** Number of items per page */
|
|
13
|
+
page_size: number;
|
|
14
|
+
/** Whether there is a next page */
|
|
15
|
+
has_next: boolean;
|
|
16
|
+
/** Whether there is a previous page */
|
|
17
|
+
has_previous: boolean;
|
|
18
|
+
/** Next page number (null if no next page) */
|
|
19
|
+
next_page?: number | null;
|
|
20
|
+
/** Previous page number (null if no previous page) */
|
|
21
|
+
previous_page?: number | null;
|
|
22
|
+
/** Array of items for current page */
|
|
23
|
+
results: Array<JobList>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Job list item serializer. Provides basic job information for list views.
|
|
28
|
+
*
|
|
29
|
+
* Request model (no read-only fields).
|
|
30
|
+
*/
|
|
31
|
+
export interface JobListRequest {
|
|
32
|
+
/** Job ID */
|
|
33
|
+
id: string;
|
|
34
|
+
/** Function name */
|
|
35
|
+
func_name: string;
|
|
36
|
+
/** Job creation time */
|
|
37
|
+
created_at: string;
|
|
38
|
+
/** Job status (queued/started/finished/failed) */
|
|
39
|
+
status: string;
|
|
40
|
+
/** Queue name */
|
|
41
|
+
queue: string;
|
|
42
|
+
/** Job timeout in seconds */
|
|
43
|
+
timeout?: number | null;
|
|
44
|
+
}
|
|
45
|
+
|
|
1
46
|
/**
|
|
2
47
|
* Job action response serializer. Used for job management actions (requeue,
|
|
3
48
|
* delete, etc.).
|
|
@@ -15,3 +60,23 @@ export interface JobActionResponse {
|
|
|
15
60
|
action: string;
|
|
16
61
|
}
|
|
17
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Job list item serializer. Provides basic job information for list views.
|
|
65
|
+
*
|
|
66
|
+
* Response model (includes read-only fields).
|
|
67
|
+
*/
|
|
68
|
+
export interface JobList {
|
|
69
|
+
/** Job ID */
|
|
70
|
+
id: string;
|
|
71
|
+
/** Function name */
|
|
72
|
+
func_name: string;
|
|
73
|
+
/** Job creation time */
|
|
74
|
+
created_at: string;
|
|
75
|
+
/** Job status (queued/started/finished/failed) */
|
|
76
|
+
status: string;
|
|
77
|
+
/** Queue name */
|
|
78
|
+
queue: string;
|
|
79
|
+
/** Job timeout in seconds */
|
|
80
|
+
timeout?: number | null;
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -11,22 +11,22 @@ export class CfgRqSchedules {
|
|
|
11
11
|
this.client = client;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
async list(queue?: string): Promise<
|
|
15
|
-
async list(params?: { queue?: string }): Promise<
|
|
14
|
+
async list(page?: number, page_size?: number, queue?: string): Promise<Models.PaginatedScheduledJobList>;
|
|
15
|
+
async list(params?: { page?: number; page_size?: number; queue?: string }): Promise<Models.PaginatedScheduledJobList>;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* List scheduled jobs
|
|
19
19
|
*
|
|
20
20
|
* Returns list of all scheduled jobs across all queues.
|
|
21
21
|
*/
|
|
22
|
-
async list(...args: any[]): Promise<
|
|
22
|
+
async list(...args: any[]): Promise<Models.PaginatedScheduledJobList> {
|
|
23
23
|
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
24
24
|
|
|
25
25
|
let params;
|
|
26
26
|
if (isParamsObject) {
|
|
27
27
|
params = args[0];
|
|
28
28
|
} else {
|
|
29
|
-
params = {
|
|
29
|
+
params = { page: args[0], page_size: args[1], queue: args[2] };
|
|
30
30
|
}
|
|
31
31
|
const response = await this.client.request('GET', "/cfg/rq/schedules/", { params });
|
|
32
32
|
return response;
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Response model (includes read-only fields).
|
|
4
|
+
*/
|
|
5
|
+
export interface PaginatedScheduledJobList {
|
|
6
|
+
/** Total number of items across all pages */
|
|
7
|
+
count: number;
|
|
8
|
+
/** Current page number (1-based) */
|
|
9
|
+
page: number;
|
|
10
|
+
/** Total number of pages */
|
|
11
|
+
pages: number;
|
|
12
|
+
/** Number of items per page */
|
|
13
|
+
page_size: number;
|
|
14
|
+
/** Whether there is a next page */
|
|
15
|
+
has_next: boolean;
|
|
16
|
+
/** Whether there is a previous page */
|
|
17
|
+
has_previous: boolean;
|
|
18
|
+
/** Next page number (null if no next page) */
|
|
19
|
+
next_page?: number | null;
|
|
20
|
+
/** Previous page number (null if no previous page) */
|
|
21
|
+
previous_page?: number | null;
|
|
22
|
+
/** Array of items for current page */
|
|
23
|
+
results: Array<ScheduledJob>;
|
|
24
|
+
}
|
|
25
|
+
|
|
1
26
|
/**
|
|
2
27
|
* Serializer for creating a scheduled job. Supports three scheduling methods:
|
|
3
28
|
* 1. scheduled_time: Schedule job at specific time 2. interval: Schedule job
|
|
@@ -28,9 +28,11 @@ 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 { CfgGrpcApiKeys } from "./cfg__grpc__grpc_api_keys";
|
|
31
32
|
import { CfgGrpcCharts } from "./cfg__grpc__grpc_charts";
|
|
32
33
|
import { CfgGrpcConfiguration } from "./cfg__grpc__grpc_configuration";
|
|
33
34
|
import { CfgGrpcMonitoring } from "./cfg__grpc__grpc_monitoring";
|
|
35
|
+
import { CfgGrpcProtoFiles } from "./cfg__grpc__grpc_proto_files";
|
|
34
36
|
import { CfgGrpcServices } from "./cfg__grpc__grpc_services";
|
|
35
37
|
import { CfgGrpcTesting } from "./cfg__grpc__grpc_testing";
|
|
36
38
|
import { CfgHealth } from "./cfg__health";
|
|
@@ -97,9 +99,11 @@ export class APIClient {
|
|
|
97
99
|
public cfg_accounts: CfgAccounts;
|
|
98
100
|
public cfg_centrifugo: CfgCentrifugo;
|
|
99
101
|
public cfg_endpoints: CfgEndpoints;
|
|
102
|
+
public cfg_grpc_api_keys: CfgGrpcApiKeys;
|
|
100
103
|
public cfg_grpc_charts: CfgGrpcCharts;
|
|
101
104
|
public cfg_grpc_configuration: CfgGrpcConfiguration;
|
|
102
105
|
public cfg_grpc_monitoring: CfgGrpcMonitoring;
|
|
106
|
+
public cfg_grpc_proto_files: CfgGrpcProtoFiles;
|
|
103
107
|
public cfg_grpc_services: CfgGrpcServices;
|
|
104
108
|
public cfg_grpc_testing: CfgGrpcTesting;
|
|
105
109
|
public cfg_health: CfgHealth;
|
|
@@ -161,9 +165,11 @@ export class APIClient {
|
|
|
161
165
|
this.cfg_accounts = new CfgAccounts(this);
|
|
162
166
|
this.cfg_centrifugo = new CfgCentrifugo(this);
|
|
163
167
|
this.cfg_endpoints = new CfgEndpoints(this);
|
|
168
|
+
this.cfg_grpc_api_keys = new CfgGrpcApiKeys(this);
|
|
164
169
|
this.cfg_grpc_charts = new CfgGrpcCharts(this);
|
|
165
170
|
this.cfg_grpc_configuration = new CfgGrpcConfiguration(this);
|
|
166
171
|
this.cfg_grpc_monitoring = new CfgGrpcMonitoring(this);
|
|
172
|
+
this.cfg_grpc_proto_files = new CfgGrpcProtoFiles(this);
|
|
167
173
|
this.cfg_grpc_services = new CfgGrpcServices(this);
|
|
168
174
|
this.cfg_grpc_testing = new CfgGrpcTesting(this);
|
|
169
175
|
this.cfg_health = new CfgHealth(this);
|
|
@@ -73,9 +73,11 @@ 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 { CfgGrpcApiKeys } from "./cfg__grpc__grpc_api_keys/client";
|
|
76
77
|
import { CfgGrpcCharts } from "./cfg__grpc__grpc_charts/client";
|
|
77
78
|
import { CfgGrpcConfiguration } from "./cfg__grpc__grpc_configuration/client";
|
|
78
79
|
import { CfgGrpcMonitoring } from "./cfg__grpc__grpc_monitoring/client";
|
|
80
|
+
import { CfgGrpcProtoFiles } from "./cfg__grpc__grpc_proto_files/client";
|
|
79
81
|
import { CfgGrpcServices } from "./cfg__grpc__grpc_services/client";
|
|
80
82
|
import { CfgGrpcTesting } from "./cfg__grpc__grpc_testing/client";
|
|
81
83
|
import { CfgHealth } from "./cfg__health/client";
|
|
@@ -114,9 +116,11 @@ export * as CfgUserProfileTypes from "./cfg__accounts__user_profile/models";
|
|
|
114
116
|
export * as CfgAccountsTypes from "./cfg__accounts/models";
|
|
115
117
|
export * as CfgCentrifugoTypes from "./cfg__centrifugo/models";
|
|
116
118
|
export * as CfgEndpointsTypes from "./cfg__endpoints/models";
|
|
119
|
+
export * as CfgGrpcApiKeysTypes from "./cfg__grpc__grpc_api_keys/models";
|
|
117
120
|
export * as CfgGrpcChartsTypes from "./cfg__grpc__grpc_charts/models";
|
|
118
121
|
export * as CfgGrpcConfigurationTypes from "./cfg__grpc__grpc_configuration/models";
|
|
119
122
|
export * as CfgGrpcMonitoringTypes from "./cfg__grpc__grpc_monitoring/models";
|
|
123
|
+
export * as CfgGrpcProtoFilesTypes from "./cfg__grpc__grpc_proto_files/models";
|
|
120
124
|
export * as CfgGrpcServicesTypes from "./cfg__grpc__grpc_services/models";
|
|
121
125
|
export * as CfgGrpcTestingTypes from "./cfg__grpc__grpc_testing/models";
|
|
122
126
|
export * as CfgHealthTypes from "./cfg__health/models";
|
|
@@ -223,9 +227,11 @@ export class API {
|
|
|
223
227
|
public cfg_accounts!: CfgAccounts;
|
|
224
228
|
public cfg_centrifugo!: CfgCentrifugo;
|
|
225
229
|
public cfg_endpoints!: CfgEndpoints;
|
|
230
|
+
public cfg_grpc_api_keys!: CfgGrpcApiKeys;
|
|
226
231
|
public cfg_grpc_charts!: CfgGrpcCharts;
|
|
227
232
|
public cfg_grpc_configuration!: CfgGrpcConfiguration;
|
|
228
233
|
public cfg_grpc_monitoring!: CfgGrpcMonitoring;
|
|
234
|
+
public cfg_grpc_proto_files!: CfgGrpcProtoFiles;
|
|
229
235
|
public cfg_grpc_services!: CfgGrpcServices;
|
|
230
236
|
public cfg_grpc_testing!: CfgGrpcTesting;
|
|
231
237
|
public cfg_health!: CfgHealth;
|
|
@@ -287,9 +293,11 @@ export class API {
|
|
|
287
293
|
this.cfg_accounts = this._client.cfg_accounts;
|
|
288
294
|
this.cfg_centrifugo = this._client.cfg_centrifugo;
|
|
289
295
|
this.cfg_endpoints = this._client.cfg_endpoints;
|
|
296
|
+
this.cfg_grpc_api_keys = this._client.cfg_grpc_api_keys;
|
|
290
297
|
this.cfg_grpc_charts = this._client.cfg_grpc_charts;
|
|
291
298
|
this.cfg_grpc_configuration = this._client.cfg_grpc_configuration;
|
|
292
299
|
this.cfg_grpc_monitoring = this._client.cfg_grpc_monitoring;
|
|
300
|
+
this.cfg_grpc_proto_files = this._client.cfg_grpc_proto_files;
|
|
293
301
|
this.cfg_grpc_services = this._client.cfg_grpc_services;
|
|
294
302
|
this.cfg_grpc_testing = this._client.cfg_grpc_testing;
|
|
295
303
|
this.cfg_health = this._client.cfg_health;
|
|
@@ -345,9 +353,11 @@ export class API {
|
|
|
345
353
|
this.cfg_accounts = this._client.cfg_accounts;
|
|
346
354
|
this.cfg_centrifugo = this._client.cfg_centrifugo;
|
|
347
355
|
this.cfg_endpoints = this._client.cfg_endpoints;
|
|
356
|
+
this.cfg_grpc_api_keys = this._client.cfg_grpc_api_keys;
|
|
348
357
|
this.cfg_grpc_charts = this._client.cfg_grpc_charts;
|
|
349
358
|
this.cfg_grpc_configuration = this._client.cfg_grpc_configuration;
|
|
350
359
|
this.cfg_grpc_monitoring = this._client.cfg_grpc_monitoring;
|
|
360
|
+
this.cfg_grpc_proto_files = this._client.cfg_grpc_proto_files;
|
|
351
361
|
this.cfg_grpc_services = this._client.cfg_grpc_services;
|
|
352
362
|
this.cfg_grpc_testing = this._client.cfg_grpc_testing;
|
|
353
363
|
this.cfg_health = this._client.cfg_health;
|