@evergis/api 5.0.5 → 5.0.7

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.js CHANGED
@@ -2794,7 +2794,7 @@ class Api extends EventEmitter {
2794
2794
  prefixUrl: url,
2795
2795
  timeout: false,
2796
2796
  retry: {
2797
- methods: ["get", "post", "delete"],
2797
+ methods: ["get", "post", "patch", "delete"],
2798
2798
  limit: 5,
2799
2799
  statusCodes: [401],
2800
2800
  },
@@ -4225,47 +4225,33 @@ class RemoteTaskManagerService extends Service {
4225
4225
  getTaskResource({ id, ...query }) {
4226
4226
  return this.http.get(`/scheduler/taskresource/${id}`, query).json();
4227
4227
  }
4228
- /**
4229
- * No description
4230
- *
4231
- * @tags RemoteTaskManager
4232
- * @name CreateTaskResource
4233
- * @operationId RemoteTaskManagerController_CreateTaskResource
4234
- * @summary Create task resource.
4235
- * @request POST:/scheduler/taskresource
4236
- * @secure
4237
- * @response `200` OK
4238
- */
4239
- createTaskResource(data) {
4240
- return this.http.post(`/scheduler/taskresource`, data).text();
4241
- }
4242
4228
  /**
4243
4229
  * No description
4244
4230
  *
4245
4231
  * @tags RemoteTaskManager
4246
4232
  * @name UpdatePythonTaskResource
4247
4233
  * @operationId RemoteTaskManagerController_UpdatePythonTaskResource
4248
- * @summary Update python task resource.
4249
- * @request PATCH:/scheduler/taskresource/{id}#type=PythonTask
4234
+ * @summary Update task resource.
4235
+ * @request PATCH:/scheduler/taskresource/{id}
4250
4236
  * @secure
4251
4237
  * @response `200` OK
4252
4238
  */
4253
4239
  updatePythonTaskResource(id, data) {
4254
- return this.http.patch(`/scheduler/taskresource/${id}`, data, { type: "PythonTask" }).then(() => { });
4240
+ return this.http.patch(`/scheduler/taskresource/${id}`, data).then(() => { });
4255
4241
  }
4256
4242
  /**
4257
4243
  * No description
4258
4244
  *
4259
4245
  * @tags RemoteTaskManager
4260
- * @name UpdateSpTaskResource
4261
- * @operationId RemoteTaskManagerController_UpdateSpTaskResource
4262
- * @summary Update sp task resource.
4263
- * @request PATCH:/scheduler/taskresource/{id}#type=SpTask
4246
+ * @name CreateTaskResource
4247
+ * @operationId RemoteTaskManagerController_CreateTaskResource
4248
+ * @summary Create task resource.
4249
+ * @request POST:/scheduler/taskresource
4264
4250
  * @secure
4265
4251
  * @response `200` OK
4266
4252
  */
4267
- updateSpTaskResource(id, data) {
4268
- return this.http.patch(`/scheduler/taskresource/${id}`, data, { type: "SpTask" }).then(() => { });
4253
+ createTaskResource(data) {
4254
+ return this.http.post(`/scheduler/taskresource`, data).text();
4269
4255
  }
4270
4256
  /**
4271
4257
  * No description
@@ -5803,6 +5789,18 @@ exports.TaskResourceSubType = void 0;
5803
5789
  TaskResourceSubType["PythonTask"] = "PythonTask";
5804
5790
  })(exports.TaskResourceSubType || (exports.TaskResourceSubType = {}));
5805
5791
  /**
5792
+ * Specifies the types of task resources that can be updated within the system.
5793
+
5794
+ SpTask
5795
+
5796
+ PythonTask
5797
+ */
5798
+ exports.TaskResourceUpdateType = void 0;
5799
+ (function (TaskResourceUpdateType) {
5800
+ TaskResourceUpdateType["SpTask"] = "SpTask";
5801
+ TaskResourceUpdateType["PythonTask"] = "PythonTask";
5802
+ })(exports.TaskResourceUpdateType || (exports.TaskResourceUpdateType = {}));
5803
+ /**
5806
5804
  *
5807
5805
 
5808
5806
  Task