windmill-client 1.201.0 → 1.202.1
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/core/OpenAPI.js
CHANGED
|
@@ -122,4 +122,24 @@ export declare class ScheduleService {
|
|
|
122
122
|
*/
|
|
123
123
|
perPage?: number;
|
|
124
124
|
}): CancelablePromise<Array<ScheduleWJobs>>;
|
|
125
|
+
/**
|
|
126
|
+
* Set default error or recoevery handler
|
|
127
|
+
* @returns any default error handler set
|
|
128
|
+
* @throws ApiError
|
|
129
|
+
*/
|
|
130
|
+
static setDefaultErrorOrRecoveryHandler({ workspace, requestBody, }: {
|
|
131
|
+
workspace: string;
|
|
132
|
+
/**
|
|
133
|
+
* Handler description
|
|
134
|
+
*/
|
|
135
|
+
requestBody: {
|
|
136
|
+
handler_type: 'error' | 'recovery';
|
|
137
|
+
override_existing: boolean;
|
|
138
|
+
path: string;
|
|
139
|
+
extra_args?: Record<string, any>;
|
|
140
|
+
number_of_occurence?: number;
|
|
141
|
+
number_of_occurence_exact?: boolean;
|
|
142
|
+
workspace_handler_muted?: boolean;
|
|
143
|
+
};
|
|
144
|
+
}): CancelablePromise<any>;
|
|
125
145
|
}
|
|
@@ -150,5 +150,21 @@ class ScheduleService {
|
|
|
150
150
|
},
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Set default error or recoevery handler
|
|
155
|
+
* @returns any default error handler set
|
|
156
|
+
* @throws ApiError
|
|
157
|
+
*/
|
|
158
|
+
static setDefaultErrorOrRecoveryHandler({ workspace, requestBody, }) {
|
|
159
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
160
|
+
method: 'POST',
|
|
161
|
+
url: '/w/{workspace}/schedules/setdefaulthandler',
|
|
162
|
+
path: {
|
|
163
|
+
'workspace': workspace,
|
|
164
|
+
},
|
|
165
|
+
body: requestBody,
|
|
166
|
+
mediaType: 'application/json',
|
|
167
|
+
});
|
|
168
|
+
}
|
|
153
169
|
}
|
|
154
170
|
exports.ScheduleService = ScheduleService;
|