windmill-client 1.201.0 → 1.202.0

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.201.0',
6
+ VERSION: '1.202.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.201.0",
4
+ "version": "1.202.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {