windmill-client 1.693.4 → 1.695.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.
- package/dist/core/OpenAPI.mjs +1 -1
- package/dist/index.js +94 -55
- package/dist/sqlUtils.mjs +93 -54
- package/dist/types.gen.d.ts +112 -0
- package/package.json +1 -1
package/dist/core/OpenAPI.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -126,7 +126,7 @@ const OpenAPI = {
|
|
|
126
126
|
PASSWORD: void 0,
|
|
127
127
|
TOKEN: getEnv$1("WM_TOKEN"),
|
|
128
128
|
USERNAME: void 0,
|
|
129
|
-
VERSION: "1.
|
|
129
|
+
VERSION: "1.695.0",
|
|
130
130
|
WITH_CREDENTIALS: true,
|
|
131
131
|
interceptors: {
|
|
132
132
|
request: new Interceptors(),
|
|
@@ -14418,6 +14418,67 @@ function ducklakeProvider(name) {
|
|
|
14418
14418
|
preamble: () => `ATTACH 'ducklake://${name}' AS dl;USE dl;\n`
|
|
14419
14419
|
};
|
|
14420
14420
|
}
|
|
14421
|
+
function buildSqlStatement(provider, content, contentBody, args) {
|
|
14422
|
+
async function fetch$1({ resultCollection } = {}) {
|
|
14423
|
+
let finalContent = content;
|
|
14424
|
+
if (resultCollection) finalContent = `-- result_collection=${resultCollection}\n${finalContent}`;
|
|
14425
|
+
try {
|
|
14426
|
+
let result;
|
|
14427
|
+
if (workerHasInternalServer()) result = await JobService.runScriptPreviewInline({
|
|
14428
|
+
workspace: getWorkspace(),
|
|
14429
|
+
requestBody: {
|
|
14430
|
+
args,
|
|
14431
|
+
content: finalContent,
|
|
14432
|
+
language: provider.language
|
|
14433
|
+
}
|
|
14434
|
+
});
|
|
14435
|
+
else result = await JobService.runScriptPreviewAndWaitResult({
|
|
14436
|
+
workspace: getWorkspace(),
|
|
14437
|
+
requestBody: {
|
|
14438
|
+
args,
|
|
14439
|
+
content: finalContent,
|
|
14440
|
+
language: provider.language
|
|
14441
|
+
}
|
|
14442
|
+
});
|
|
14443
|
+
return result;
|
|
14444
|
+
} catch (e) {
|
|
14445
|
+
let err = e;
|
|
14446
|
+
if (e && typeof e.body == "string" && e.statusText == "Internal Server Error") {
|
|
14447
|
+
let body = e.body;
|
|
14448
|
+
if (body.startsWith("Internal:")) body = body.slice(9).trim();
|
|
14449
|
+
if (body.startsWith("Error:")) body = body.slice(6).trim();
|
|
14450
|
+
if (body.startsWith("datatable")) body = body.slice(9).trim();
|
|
14451
|
+
err = Error(`${provider.providerName} ${body}`);
|
|
14452
|
+
err.query = contentBody;
|
|
14453
|
+
err.request = e.request;
|
|
14454
|
+
}
|
|
14455
|
+
throw err;
|
|
14456
|
+
}
|
|
14457
|
+
}
|
|
14458
|
+
return {
|
|
14459
|
+
content,
|
|
14460
|
+
args,
|
|
14461
|
+
fetch: fetch$1,
|
|
14462
|
+
fetchOne: (params) => fetch$1({
|
|
14463
|
+
...params,
|
|
14464
|
+
resultCollection: "last_statement_first_row"
|
|
14465
|
+
}),
|
|
14466
|
+
fetchOneScalar: (params) => fetch$1({
|
|
14467
|
+
...params,
|
|
14468
|
+
resultCollection: "last_statement_first_row_scalar"
|
|
14469
|
+
}),
|
|
14470
|
+
execute: (params) => fetch$1(params)
|
|
14471
|
+
};
|
|
14472
|
+
}
|
|
14473
|
+
function serializeArgValue(v) {
|
|
14474
|
+
if (typeof v === "bigint") return v.toString();
|
|
14475
|
+
if (v instanceof Date) return v.toISOString();
|
|
14476
|
+
if (typeof v === "number" && !Number.isFinite(v)) {
|
|
14477
|
+
if (Number.isNaN(v)) return "NaN";
|
|
14478
|
+
return v > 0 ? "Infinity" : "-Infinity";
|
|
14479
|
+
}
|
|
14480
|
+
return v;
|
|
14481
|
+
}
|
|
14421
14482
|
function buildSqlTemplateFunction(provider) {
|
|
14422
14483
|
let sqlFn = (strings, ...values) => {
|
|
14423
14484
|
let argIndex = 0;
|
|
@@ -14456,58 +14517,10 @@ function buildSqlTemplateFunction(provider) {
|
|
|
14456
14517
|
}
|
|
14457
14518
|
content += contentBody;
|
|
14458
14519
|
const args = {
|
|
14459
|
-
...Object.fromEntries(valueInfos.filter((info) => !info.raw).map((info) => [`arg${info.argNum}`, info.value])),
|
|
14520
|
+
...Object.fromEntries(valueInfos.filter((info) => !info.raw).map((info) => [`arg${info.argNum}`, serializeArgValue(info.value)])),
|
|
14460
14521
|
...provider.extraArgs
|
|
14461
14522
|
};
|
|
14462
|
-
|
|
14463
|
-
if (resultCollection) content = `-- result_collection=${resultCollection}\n${content}`;
|
|
14464
|
-
try {
|
|
14465
|
-
let result;
|
|
14466
|
-
if (workerHasInternalServer()) result = await JobService.runScriptPreviewInline({
|
|
14467
|
-
workspace: getWorkspace(),
|
|
14468
|
-
requestBody: {
|
|
14469
|
-
args,
|
|
14470
|
-
content,
|
|
14471
|
-
language: provider.language
|
|
14472
|
-
}
|
|
14473
|
-
});
|
|
14474
|
-
else result = await JobService.runScriptPreviewAndWaitResult({
|
|
14475
|
-
workspace: getWorkspace(),
|
|
14476
|
-
requestBody: {
|
|
14477
|
-
args,
|
|
14478
|
-
content,
|
|
14479
|
-
language: provider.language
|
|
14480
|
-
}
|
|
14481
|
-
});
|
|
14482
|
-
return result;
|
|
14483
|
-
} catch (e) {
|
|
14484
|
-
let err = e;
|
|
14485
|
-
if (e && typeof e.body == "string" && e.statusText == "Internal Server Error") {
|
|
14486
|
-
let body = e.body;
|
|
14487
|
-
if (body.startsWith("Internal:")) body = body.slice(9).trim();
|
|
14488
|
-
if (body.startsWith("Error:")) body = body.slice(6).trim();
|
|
14489
|
-
if (body.startsWith("datatable")) body = body.slice(9).trim();
|
|
14490
|
-
err = Error(`${provider.providerName} ${body}`);
|
|
14491
|
-
err.query = contentBody;
|
|
14492
|
-
err.request = e.request;
|
|
14493
|
-
}
|
|
14494
|
-
throw err;
|
|
14495
|
-
}
|
|
14496
|
-
}
|
|
14497
|
-
return {
|
|
14498
|
-
content,
|
|
14499
|
-
args,
|
|
14500
|
-
fetch: fetch$1,
|
|
14501
|
-
fetchOne: (params) => fetch$1({
|
|
14502
|
-
...params,
|
|
14503
|
-
resultCollection: "last_statement_first_row"
|
|
14504
|
-
}),
|
|
14505
|
-
fetchOneScalar: (params) => fetch$1({
|
|
14506
|
-
...params,
|
|
14507
|
-
resultCollection: "last_statement_first_row_scalar"
|
|
14508
|
-
}),
|
|
14509
|
-
execute: (params) => fetch$1(params)
|
|
14510
|
-
};
|
|
14523
|
+
return buildSqlStatement(provider, content, contentBody, args);
|
|
14511
14524
|
};
|
|
14512
14525
|
sqlFn.raw = (value) => new RawSql(value);
|
|
14513
14526
|
return sqlFn;
|
|
@@ -14527,10 +14540,17 @@ function buildSqlTemplateFunction(provider) {
|
|
|
14527
14540
|
*/
|
|
14528
14541
|
function datatable(name = "main") {
|
|
14529
14542
|
let { name: n, schema } = parseName(name);
|
|
14530
|
-
let
|
|
14543
|
+
let provider = datatableProvider(n, schema);
|
|
14544
|
+
let sqlFn = buildSqlTemplateFunction(provider);
|
|
14531
14545
|
sqlFn.query = (sqlString, ...params) => {
|
|
14532
|
-
let
|
|
14533
|
-
|
|
14546
|
+
let argDecls = params.map((v, i) => `-- $${i + 1} arg${i + 1} (${inferSqlType(v)})`).join("\n");
|
|
14547
|
+
let contentBody = sqlString;
|
|
14548
|
+
let content = (argDecls ? argDecls + "\n" : "") + provider.preamble() + sqlString;
|
|
14549
|
+
let args = {
|
|
14550
|
+
...Object.fromEntries(params.map((v, i) => [`arg${i + 1}`, serializeArgValue(v)])),
|
|
14551
|
+
...provider.extraArgs
|
|
14552
|
+
};
|
|
14553
|
+
return buildSqlStatement(provider, content, contentBody, args);
|
|
14534
14554
|
};
|
|
14535
14555
|
return sqlFn;
|
|
14536
14556
|
}
|
|
@@ -14551,15 +14571,34 @@ function ducklake(name = "main") {
|
|
|
14551
14571
|
return buildSqlTemplateFunction(ducklakeProvider(name));
|
|
14552
14572
|
}
|
|
14553
14573
|
function inferSqlType(value) {
|
|
14554
|
-
if (typeof value === "
|
|
14574
|
+
if (typeof value === "bigint") return "BIGINT";
|
|
14575
|
+
if (typeof value === "number") {
|
|
14555
14576
|
if (Number.isInteger(value)) return "BIGINT";
|
|
14556
14577
|
return "DOUBLE PRECISION";
|
|
14557
14578
|
} else if (value === null || value === void 0) return "TEXT";
|
|
14558
14579
|
else if (typeof value === "string") return "TEXT";
|
|
14580
|
+
else if (Array.isArray(value)) return inferSqlArrayType(value);
|
|
14581
|
+
else if (value instanceof Date) return "TIMESTAMPTZ";
|
|
14559
14582
|
else if (typeof value === "object") return "JSON";
|
|
14560
14583
|
else if (typeof value === "boolean") return "BOOLEAN";
|
|
14561
14584
|
else return "TEXT";
|
|
14562
14585
|
}
|
|
14586
|
+
function inferSqlArrayType(value) {
|
|
14587
|
+
if (value.length === 0) return "JSON";
|
|
14588
|
+
let scalarType = void 0;
|
|
14589
|
+
for (const elem of value) {
|
|
14590
|
+
let elemType;
|
|
14591
|
+
if (typeof elem === "bigint") elemType = "BIGINT";
|
|
14592
|
+
else if (typeof elem === "number") elemType = Number.isInteger(elem) ? "BIGINT" : "DOUBLE PRECISION";
|
|
14593
|
+
else if (typeof elem === "string") elemType = "TEXT";
|
|
14594
|
+
else if (typeof elem === "boolean") elemType = "BOOLEAN";
|
|
14595
|
+
else return "JSON";
|
|
14596
|
+
if (scalarType === void 0) scalarType = elemType;
|
|
14597
|
+
else if (scalarType === "BIGINT" && elemType === "DOUBLE PRECISION") scalarType = "DOUBLE PRECISION";
|
|
14598
|
+
else if (scalarType === "DOUBLE PRECISION" && elemType === "BIGINT") {} else if (scalarType !== elemType) return "JSON";
|
|
14599
|
+
}
|
|
14600
|
+
return `${scalarType}[]`;
|
|
14601
|
+
}
|
|
14563
14602
|
function parseTypeAnnotation(prevTemplateString, nextTemplateString) {
|
|
14564
14603
|
if (!nextTemplateString) return;
|
|
14565
14604
|
nextTemplateString = nextTemplateString.trimStart();
|
package/dist/sqlUtils.mjs
CHANGED
|
@@ -32,6 +32,67 @@ function ducklakeProvider(name) {
|
|
|
32
32
|
preamble: () => `ATTACH 'ducklake://${name}' AS dl;USE dl;\n`
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
+
function buildSqlStatement(provider, content, contentBody, args) {
|
|
36
|
+
async function fetch({ resultCollection } = {}) {
|
|
37
|
+
let finalContent = content;
|
|
38
|
+
if (resultCollection) finalContent = `-- result_collection=${resultCollection}\n${finalContent}`;
|
|
39
|
+
try {
|
|
40
|
+
let result;
|
|
41
|
+
if (workerHasInternalServer()) result = await JobService.runScriptPreviewInline({
|
|
42
|
+
workspace: getWorkspace(),
|
|
43
|
+
requestBody: {
|
|
44
|
+
args,
|
|
45
|
+
content: finalContent,
|
|
46
|
+
language: provider.language
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
else result = await JobService.runScriptPreviewAndWaitResult({
|
|
50
|
+
workspace: getWorkspace(),
|
|
51
|
+
requestBody: {
|
|
52
|
+
args,
|
|
53
|
+
content: finalContent,
|
|
54
|
+
language: provider.language
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return result;
|
|
58
|
+
} catch (e) {
|
|
59
|
+
let err = e;
|
|
60
|
+
if (e && typeof e.body == "string" && e.statusText == "Internal Server Error") {
|
|
61
|
+
let body = e.body;
|
|
62
|
+
if (body.startsWith("Internal:")) body = body.slice(9).trim();
|
|
63
|
+
if (body.startsWith("Error:")) body = body.slice(6).trim();
|
|
64
|
+
if (body.startsWith("datatable")) body = body.slice(9).trim();
|
|
65
|
+
err = Error(`${provider.providerName} ${body}`);
|
|
66
|
+
err.query = contentBody;
|
|
67
|
+
err.request = e.request;
|
|
68
|
+
}
|
|
69
|
+
throw err;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
content,
|
|
74
|
+
args,
|
|
75
|
+
fetch,
|
|
76
|
+
fetchOne: (params) => fetch({
|
|
77
|
+
...params,
|
|
78
|
+
resultCollection: "last_statement_first_row"
|
|
79
|
+
}),
|
|
80
|
+
fetchOneScalar: (params) => fetch({
|
|
81
|
+
...params,
|
|
82
|
+
resultCollection: "last_statement_first_row_scalar"
|
|
83
|
+
}),
|
|
84
|
+
execute: (params) => fetch(params)
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function serializeArgValue(v) {
|
|
88
|
+
if (typeof v === "bigint") return v.toString();
|
|
89
|
+
if (v instanceof Date) return v.toISOString();
|
|
90
|
+
if (typeof v === "number" && !Number.isFinite(v)) {
|
|
91
|
+
if (Number.isNaN(v)) return "NaN";
|
|
92
|
+
return v > 0 ? "Infinity" : "-Infinity";
|
|
93
|
+
}
|
|
94
|
+
return v;
|
|
95
|
+
}
|
|
35
96
|
function buildSqlTemplateFunction(provider) {
|
|
36
97
|
let sqlFn = (strings, ...values) => {
|
|
37
98
|
let argIndex = 0;
|
|
@@ -70,58 +131,10 @@ function buildSqlTemplateFunction(provider) {
|
|
|
70
131
|
}
|
|
71
132
|
content += contentBody;
|
|
72
133
|
const args = {
|
|
73
|
-
...Object.fromEntries(valueInfos.filter((info) => !info.raw).map((info) => [`arg${info.argNum}`, info.value])),
|
|
134
|
+
...Object.fromEntries(valueInfos.filter((info) => !info.raw).map((info) => [`arg${info.argNum}`, serializeArgValue(info.value)])),
|
|
74
135
|
...provider.extraArgs
|
|
75
136
|
};
|
|
76
|
-
|
|
77
|
-
if (resultCollection) content = `-- result_collection=${resultCollection}\n${content}`;
|
|
78
|
-
try {
|
|
79
|
-
let result;
|
|
80
|
-
if (workerHasInternalServer()) result = await JobService.runScriptPreviewInline({
|
|
81
|
-
workspace: getWorkspace(),
|
|
82
|
-
requestBody: {
|
|
83
|
-
args,
|
|
84
|
-
content,
|
|
85
|
-
language: provider.language
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
else result = await JobService.runScriptPreviewAndWaitResult({
|
|
89
|
-
workspace: getWorkspace(),
|
|
90
|
-
requestBody: {
|
|
91
|
-
args,
|
|
92
|
-
content,
|
|
93
|
-
language: provider.language
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
return result;
|
|
97
|
-
} catch (e) {
|
|
98
|
-
let err = e;
|
|
99
|
-
if (e && typeof e.body == "string" && e.statusText == "Internal Server Error") {
|
|
100
|
-
let body = e.body;
|
|
101
|
-
if (body.startsWith("Internal:")) body = body.slice(9).trim();
|
|
102
|
-
if (body.startsWith("Error:")) body = body.slice(6).trim();
|
|
103
|
-
if (body.startsWith("datatable")) body = body.slice(9).trim();
|
|
104
|
-
err = Error(`${provider.providerName} ${body}`);
|
|
105
|
-
err.query = contentBody;
|
|
106
|
-
err.request = e.request;
|
|
107
|
-
}
|
|
108
|
-
throw err;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return {
|
|
112
|
-
content,
|
|
113
|
-
args,
|
|
114
|
-
fetch,
|
|
115
|
-
fetchOne: (params) => fetch({
|
|
116
|
-
...params,
|
|
117
|
-
resultCollection: "last_statement_first_row"
|
|
118
|
-
}),
|
|
119
|
-
fetchOneScalar: (params) => fetch({
|
|
120
|
-
...params,
|
|
121
|
-
resultCollection: "last_statement_first_row_scalar"
|
|
122
|
-
}),
|
|
123
|
-
execute: (params) => fetch(params)
|
|
124
|
-
};
|
|
137
|
+
return buildSqlStatement(provider, content, contentBody, args);
|
|
125
138
|
};
|
|
126
139
|
sqlFn.raw = (value) => new RawSql(value);
|
|
127
140
|
return sqlFn;
|
|
@@ -141,10 +154,17 @@ function buildSqlTemplateFunction(provider) {
|
|
|
141
154
|
*/
|
|
142
155
|
function datatable(name = "main") {
|
|
143
156
|
let { name: n, schema } = parseName(name);
|
|
144
|
-
let
|
|
157
|
+
let provider = datatableProvider(n, schema);
|
|
158
|
+
let sqlFn = buildSqlTemplateFunction(provider);
|
|
145
159
|
sqlFn.query = (sqlString, ...params) => {
|
|
146
|
-
let
|
|
147
|
-
|
|
160
|
+
let argDecls = params.map((v, i) => `-- $${i + 1} arg${i + 1} (${inferSqlType(v)})`).join("\n");
|
|
161
|
+
let contentBody = sqlString;
|
|
162
|
+
let content = (argDecls ? argDecls + "\n" : "") + provider.preamble() + sqlString;
|
|
163
|
+
let args = {
|
|
164
|
+
...Object.fromEntries(params.map((v, i) => [`arg${i + 1}`, serializeArgValue(v)])),
|
|
165
|
+
...provider.extraArgs
|
|
166
|
+
};
|
|
167
|
+
return buildSqlStatement(provider, content, contentBody, args);
|
|
148
168
|
};
|
|
149
169
|
return sqlFn;
|
|
150
170
|
}
|
|
@@ -165,15 +185,34 @@ function ducklake(name = "main") {
|
|
|
165
185
|
return buildSqlTemplateFunction(ducklakeProvider(name));
|
|
166
186
|
}
|
|
167
187
|
function inferSqlType(value) {
|
|
168
|
-
if (typeof value === "
|
|
188
|
+
if (typeof value === "bigint") return "BIGINT";
|
|
189
|
+
if (typeof value === "number") {
|
|
169
190
|
if (Number.isInteger(value)) return "BIGINT";
|
|
170
191
|
return "DOUBLE PRECISION";
|
|
171
192
|
} else if (value === null || value === void 0) return "TEXT";
|
|
172
193
|
else if (typeof value === "string") return "TEXT";
|
|
194
|
+
else if (Array.isArray(value)) return inferSqlArrayType(value);
|
|
195
|
+
else if (value instanceof Date) return "TIMESTAMPTZ";
|
|
173
196
|
else if (typeof value === "object") return "JSON";
|
|
174
197
|
else if (typeof value === "boolean") return "BOOLEAN";
|
|
175
198
|
else return "TEXT";
|
|
176
199
|
}
|
|
200
|
+
function inferSqlArrayType(value) {
|
|
201
|
+
if (value.length === 0) return "JSON";
|
|
202
|
+
let scalarType = void 0;
|
|
203
|
+
for (const elem of value) {
|
|
204
|
+
let elemType;
|
|
205
|
+
if (typeof elem === "bigint") elemType = "BIGINT";
|
|
206
|
+
else if (typeof elem === "number") elemType = Number.isInteger(elem) ? "BIGINT" : "DOUBLE PRECISION";
|
|
207
|
+
else if (typeof elem === "string") elemType = "TEXT";
|
|
208
|
+
else if (typeof elem === "boolean") elemType = "BOOLEAN";
|
|
209
|
+
else return "JSON";
|
|
210
|
+
if (scalarType === void 0) scalarType = elemType;
|
|
211
|
+
else if (scalarType === "BIGINT" && elemType === "DOUBLE PRECISION") scalarType = "DOUBLE PRECISION";
|
|
212
|
+
else if (scalarType === "DOUBLE PRECISION" && elemType === "BIGINT") {} else if (scalarType !== elemType) return "JSON";
|
|
213
|
+
}
|
|
214
|
+
return `${scalarType}[]`;
|
|
215
|
+
}
|
|
177
216
|
function parseTypeAnnotation(prevTemplateString, nextTemplateString) {
|
|
178
217
|
if (!nextTemplateString) return;
|
|
179
218
|
nextTemplateString = nextTemplateString.trimStart();
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -8463,6 +8463,7 @@ export type ExecuteComponentData = {
|
|
|
8463
8463
|
path?: string;
|
|
8464
8464
|
lock?: string;
|
|
8465
8465
|
cache_ttl?: number;
|
|
8466
|
+
tag?: string;
|
|
8466
8467
|
};
|
|
8467
8468
|
id?: number;
|
|
8468
8469
|
force_viewer_static_fields?: {
|
|
@@ -11289,6 +11290,11 @@ export type SetScheduleEnabledData = {
|
|
|
11289
11290
|
*/
|
|
11290
11291
|
requestBody: {
|
|
11291
11292
|
enabled: boolean;
|
|
11293
|
+
/**
|
|
11294
|
+
* Bypass the parent-state conflict warning when enabling a schedule in a fork whose parent has the same path enabled.
|
|
11295
|
+
*
|
|
11296
|
+
*/
|
|
11297
|
+
force?: boolean;
|
|
11292
11298
|
};
|
|
11293
11299
|
workspace: string;
|
|
11294
11300
|
};
|
|
@@ -11481,6 +11487,11 @@ export type SetHttpTriggerModeData = {
|
|
|
11481
11487
|
path: string;
|
|
11482
11488
|
requestBody: {
|
|
11483
11489
|
mode: TriggerMode;
|
|
11490
|
+
/**
|
|
11491
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11492
|
+
*
|
|
11493
|
+
*/
|
|
11494
|
+
force?: boolean;
|
|
11484
11495
|
};
|
|
11485
11496
|
workspace: string;
|
|
11486
11497
|
};
|
|
@@ -11546,6 +11557,11 @@ export type SetWebsocketTriggerModeData = {
|
|
|
11546
11557
|
*/
|
|
11547
11558
|
requestBody: {
|
|
11548
11559
|
mode: TriggerMode;
|
|
11560
|
+
/**
|
|
11561
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11562
|
+
*
|
|
11563
|
+
*/
|
|
11564
|
+
force?: boolean;
|
|
11549
11565
|
};
|
|
11550
11566
|
workspace: string;
|
|
11551
11567
|
};
|
|
@@ -11623,6 +11639,11 @@ export type SetKafkaTriggerModeData = {
|
|
|
11623
11639
|
*/
|
|
11624
11640
|
requestBody: {
|
|
11625
11641
|
mode: TriggerMode;
|
|
11642
|
+
/**
|
|
11643
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11644
|
+
*
|
|
11645
|
+
*/
|
|
11646
|
+
force?: boolean;
|
|
11626
11647
|
};
|
|
11627
11648
|
workspace: string;
|
|
11628
11649
|
};
|
|
@@ -11718,6 +11739,11 @@ export type SetNatsTriggerModeData = {
|
|
|
11718
11739
|
*/
|
|
11719
11740
|
requestBody: {
|
|
11720
11741
|
mode: TriggerMode;
|
|
11742
|
+
/**
|
|
11743
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11744
|
+
*
|
|
11745
|
+
*/
|
|
11746
|
+
force?: boolean;
|
|
11721
11747
|
};
|
|
11722
11748
|
workspace: string;
|
|
11723
11749
|
};
|
|
@@ -11795,6 +11821,11 @@ export type SetSqsTriggerModeData = {
|
|
|
11795
11821
|
*/
|
|
11796
11822
|
requestBody: {
|
|
11797
11823
|
mode: TriggerMode;
|
|
11824
|
+
/**
|
|
11825
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
11826
|
+
*
|
|
11827
|
+
*/
|
|
11828
|
+
force?: boolean;
|
|
11798
11829
|
};
|
|
11799
11830
|
workspace: string;
|
|
11800
11831
|
};
|
|
@@ -12062,6 +12093,11 @@ export type SetMqttTriggerModeData = {
|
|
|
12062
12093
|
*/
|
|
12063
12094
|
requestBody: {
|
|
12064
12095
|
mode: TriggerMode;
|
|
12096
|
+
/**
|
|
12097
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12098
|
+
*
|
|
12099
|
+
*/
|
|
12100
|
+
force?: boolean;
|
|
12065
12101
|
};
|
|
12066
12102
|
workspace: string;
|
|
12067
12103
|
};
|
|
@@ -12139,6 +12175,11 @@ export type SetGcpTriggerModeData = {
|
|
|
12139
12175
|
*/
|
|
12140
12176
|
requestBody: {
|
|
12141
12177
|
mode: TriggerMode;
|
|
12178
|
+
/**
|
|
12179
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12180
|
+
*
|
|
12181
|
+
*/
|
|
12182
|
+
force?: boolean;
|
|
12142
12183
|
};
|
|
12143
12184
|
workspace: string;
|
|
12144
12185
|
};
|
|
@@ -12226,6 +12267,11 @@ export type SetAzureTriggerModeData = {
|
|
|
12226
12267
|
path: string;
|
|
12227
12268
|
requestBody: {
|
|
12228
12269
|
mode: TriggerMode;
|
|
12270
|
+
/**
|
|
12271
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12272
|
+
*
|
|
12273
|
+
*/
|
|
12274
|
+
force?: boolean;
|
|
12229
12275
|
};
|
|
12230
12276
|
workspace: string;
|
|
12231
12277
|
};
|
|
@@ -12423,6 +12469,11 @@ export type SetPostgresTriggerModeData = {
|
|
|
12423
12469
|
*/
|
|
12424
12470
|
requestBody: {
|
|
12425
12471
|
mode: TriggerMode;
|
|
12472
|
+
/**
|
|
12473
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12474
|
+
*
|
|
12475
|
+
*/
|
|
12476
|
+
force?: boolean;
|
|
12426
12477
|
};
|
|
12427
12478
|
workspace: string;
|
|
12428
12479
|
};
|
|
@@ -12507,6 +12558,11 @@ export type SetEmailTriggerModeData = {
|
|
|
12507
12558
|
path: string;
|
|
12508
12559
|
requestBody: {
|
|
12509
12560
|
mode: TriggerMode;
|
|
12561
|
+
/**
|
|
12562
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
12563
|
+
*
|
|
12564
|
+
*/
|
|
12565
|
+
force?: boolean;
|
|
12510
12566
|
};
|
|
12511
12567
|
workspace: string;
|
|
12512
12568
|
};
|
|
@@ -19479,6 +19535,7 @@ export type $OpenApiTs = {
|
|
|
19479
19535
|
path?: string;
|
|
19480
19536
|
lock?: string;
|
|
19481
19537
|
cache_ttl?: number;
|
|
19538
|
+
tag?: string;
|
|
19482
19539
|
};
|
|
19483
19540
|
id?: number;
|
|
19484
19541
|
force_viewer_static_fields?: {
|
|
@@ -23628,6 +23685,11 @@ export type $OpenApiTs = {
|
|
|
23628
23685
|
*/
|
|
23629
23686
|
requestBody: {
|
|
23630
23687
|
enabled: boolean;
|
|
23688
|
+
/**
|
|
23689
|
+
* Bypass the parent-state conflict warning when enabling a schedule in a fork whose parent has the same path enabled.
|
|
23690
|
+
*
|
|
23691
|
+
*/
|
|
23692
|
+
force?: boolean;
|
|
23631
23693
|
};
|
|
23632
23694
|
workspace: string;
|
|
23633
23695
|
};
|
|
@@ -23973,6 +24035,11 @@ export type $OpenApiTs = {
|
|
|
23973
24035
|
path: string;
|
|
23974
24036
|
requestBody: {
|
|
23975
24037
|
mode: TriggerMode;
|
|
24038
|
+
/**
|
|
24039
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24040
|
+
*
|
|
24041
|
+
*/
|
|
24042
|
+
force?: boolean;
|
|
23976
24043
|
};
|
|
23977
24044
|
workspace: string;
|
|
23978
24045
|
};
|
|
@@ -24101,6 +24168,11 @@ export type $OpenApiTs = {
|
|
|
24101
24168
|
*/
|
|
24102
24169
|
requestBody: {
|
|
24103
24170
|
mode: TriggerMode;
|
|
24171
|
+
/**
|
|
24172
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24173
|
+
*
|
|
24174
|
+
*/
|
|
24175
|
+
force?: boolean;
|
|
24104
24176
|
};
|
|
24105
24177
|
workspace: string;
|
|
24106
24178
|
};
|
|
@@ -24250,6 +24322,11 @@ export type $OpenApiTs = {
|
|
|
24250
24322
|
*/
|
|
24251
24323
|
requestBody: {
|
|
24252
24324
|
mode: TriggerMode;
|
|
24325
|
+
/**
|
|
24326
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24327
|
+
*
|
|
24328
|
+
*/
|
|
24329
|
+
force?: boolean;
|
|
24253
24330
|
};
|
|
24254
24331
|
workspace: string;
|
|
24255
24332
|
};
|
|
@@ -24435,6 +24512,11 @@ export type $OpenApiTs = {
|
|
|
24435
24512
|
*/
|
|
24436
24513
|
requestBody: {
|
|
24437
24514
|
mode: TriggerMode;
|
|
24515
|
+
/**
|
|
24516
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24517
|
+
*
|
|
24518
|
+
*/
|
|
24519
|
+
force?: boolean;
|
|
24438
24520
|
};
|
|
24439
24521
|
workspace: string;
|
|
24440
24522
|
};
|
|
@@ -24584,6 +24666,11 @@ export type $OpenApiTs = {
|
|
|
24584
24666
|
*/
|
|
24585
24667
|
requestBody: {
|
|
24586
24668
|
mode: TriggerMode;
|
|
24669
|
+
/**
|
|
24670
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
24671
|
+
*
|
|
24672
|
+
*/
|
|
24673
|
+
force?: boolean;
|
|
24587
24674
|
};
|
|
24588
24675
|
workspace: string;
|
|
24589
24676
|
};
|
|
@@ -25112,6 +25199,11 @@ export type $OpenApiTs = {
|
|
|
25112
25199
|
*/
|
|
25113
25200
|
requestBody: {
|
|
25114
25201
|
mode: TriggerMode;
|
|
25202
|
+
/**
|
|
25203
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
25204
|
+
*
|
|
25205
|
+
*/
|
|
25206
|
+
force?: boolean;
|
|
25115
25207
|
};
|
|
25116
25208
|
workspace: string;
|
|
25117
25209
|
};
|
|
@@ -25261,6 +25353,11 @@ export type $OpenApiTs = {
|
|
|
25261
25353
|
*/
|
|
25262
25354
|
requestBody: {
|
|
25263
25355
|
mode: TriggerMode;
|
|
25356
|
+
/**
|
|
25357
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
25358
|
+
*
|
|
25359
|
+
*/
|
|
25360
|
+
force?: boolean;
|
|
25264
25361
|
};
|
|
25265
25362
|
workspace: string;
|
|
25266
25363
|
};
|
|
@@ -25447,6 +25544,11 @@ export type $OpenApiTs = {
|
|
|
25447
25544
|
path: string;
|
|
25448
25545
|
requestBody: {
|
|
25449
25546
|
mode: TriggerMode;
|
|
25547
|
+
/**
|
|
25548
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
25549
|
+
*
|
|
25550
|
+
*/
|
|
25551
|
+
force?: boolean;
|
|
25450
25552
|
};
|
|
25451
25553
|
workspace: string;
|
|
25452
25554
|
};
|
|
@@ -25869,6 +25971,11 @@ export type $OpenApiTs = {
|
|
|
25869
25971
|
*/
|
|
25870
25972
|
requestBody: {
|
|
25871
25973
|
mode: TriggerMode;
|
|
25974
|
+
/**
|
|
25975
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
25976
|
+
*
|
|
25977
|
+
*/
|
|
25978
|
+
force?: boolean;
|
|
25872
25979
|
};
|
|
25873
25980
|
workspace: string;
|
|
25874
25981
|
};
|
|
@@ -26034,6 +26141,11 @@ export type $OpenApiTs = {
|
|
|
26034
26141
|
path: string;
|
|
26035
26142
|
requestBody: {
|
|
26036
26143
|
mode: TriggerMode;
|
|
26144
|
+
/**
|
|
26145
|
+
* Bypass the parent-state conflict warning when enabling a trigger in a fork whose parent has the same path enabled.
|
|
26146
|
+
*
|
|
26147
|
+
*/
|
|
26148
|
+
force?: boolean;
|
|
26037
26149
|
};
|
|
26038
26150
|
workspace: string;
|
|
26039
26151
|
};
|