windmill-client 1.310.0 → 1.312.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.
@@ -8,10 +8,7 @@ class Interceptors {
8
8
  eject(fn) {
9
9
  const index = this._fns.indexOf(fn);
10
10
  if (index !== -1) {
11
- this._fns = [
12
- ...this._fns.slice(0, index),
13
- ...this._fns.slice(index + 1),
14
- ];
11
+ this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)];
15
12
  }
16
13
  }
17
14
  use(fn) {
@@ -27,8 +24,10 @@ exports.OpenAPI = {
27
24
  PASSWORD: undefined,
28
25
  TOKEN: undefined,
29
26
  USERNAME: undefined,
30
- VERSION: '1.310.0',
27
+ VERSION: '1.312.0',
31
28
  WITH_CREDENTIALS: false,
32
- interceptors: { request: new Interceptors(), response: new Interceptors(),
29
+ interceptors: {
30
+ request: new Interceptors(),
31
+ response: new Interceptors(),
33
32
  },
34
33
  };
@@ -47,7 +47,10 @@ const getQueryString = (params) => {
47
47
  if (value === undefined || value === null) {
48
48
  return;
49
49
  }
50
- if (Array.isArray(value)) {
50
+ if (value instanceof Date) {
51
+ append(key, value.toISOString());
52
+ }
53
+ else if (Array.isArray(value)) {
51
54
  value.forEach(v => encodePair(key, v));
52
55
  }
53
56
  else if (typeof value === 'object') {
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- // This file is auto-generated by @hey-api/openapi-ts
3
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
3
  if (k2 === undefined) k2 = k;
5
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -16,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
15
  };
17
16
  Object.defineProperty(exports, "__esModule", { value: true });
18
17
  exports.getFlowUserState = exports.setFlowUserState = exports.getRootJobId = exports.waitJob = exports.runScriptAsync = exports.runScript = exports.task = exports.writeS3File = exports.loadS3File = exports.loadS3FileStream = exports.denoS3LightClientSettings = exports.getIdToken = exports.getState = exports.setState = exports.getResumeUrls = exports.setResource = exports.getResource = exports.setVariable = exports.getVariable = exports.setClient = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
18
+ // This file is auto-generated by @hey-api/openapi-ts
19
19
  var ApiError_1 = require("./core/ApiError");
20
20
  Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } });
21
21
  var CancelablePromise_1 = require("./core/CancelablePromise");
@@ -113,8 +113,11 @@ export declare const $Script: {
113
113
  readonly visible_to_runner_only: {
114
114
  readonly type: "boolean";
115
115
  };
116
+ readonly no_main_func: {
117
+ readonly type: "boolean";
118
+ };
116
119
  };
117
- readonly required: readonly ["hash", "path", "summary", "description", "content", "created_by", "created_at", "archived", "deleted", "is_template", "extra_perms", "language", "kind", "starred"];
120
+ readonly required: readonly ["hash", "path", "summary", "description", "content", "created_by", "created_at", "archived", "deleted", "is_template", "extra_perms", "language", "kind", "starred", "no_main_func"];
118
121
  };
119
122
  export declare const $NewScript: {
120
123
  readonly type: "object";
@@ -199,6 +202,9 @@ export declare const $NewScript: {
199
202
  readonly visible_to_runner_only: {
200
203
  readonly type: "boolean";
201
204
  };
205
+ readonly no_main_func: {
206
+ readonly type: "boolean";
207
+ };
202
208
  };
203
209
  readonly required: readonly ["path", "summary", "description", "content", "language"];
204
210
  };
@@ -118,9 +118,12 @@ exports.$Script = {
118
118
  },
119
119
  visible_to_runner_only: {
120
120
  type: 'boolean'
121
+ },
122
+ no_main_func: {
123
+ type: 'boolean'
121
124
  }
122
125
  },
123
- required: ['hash', 'path', 'summary', 'description', 'content', 'created_by', 'created_at', 'archived', 'deleted', 'is_template', 'extra_perms', 'language', 'kind', 'starred']
126
+ required: ['hash', 'path', 'summary', 'description', 'content', 'created_by', 'created_at', 'archived', 'deleted', 'is_template', 'extra_perms', 'language', 'kind', 'starred', 'no_main_func']
124
127
  };
125
128
  exports.$NewScript = {
126
129
  type: 'object',
@@ -204,6 +207,9 @@ exports.$NewScript = {
204
207
  },
205
208
  visible_to_runner_only: {
206
209
  type: 'boolean'
210
+ },
211
+ no_main_func: {
212
+ type: 'boolean'
207
213
  }
208
214
  },
209
215
  required: ['path', 'summary', 'description', 'content', 'language']