windmill-client 1.606.1 → 1.607.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/client.d.ts +3 -1
- package/dist/client.js +4 -1
- package/dist/core/OpenAPI.js +1 -1
- package/dist/services.gen.d.ts +1 -0
- package/dist/services.gen.js +3 -1
- package/dist/sqlUtils.js +4 -2
- package/dist/types.gen.d.ts +8 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -278,9 +278,11 @@ export declare function getPresignedS3PublicUrl(s3Objects: S3Object, { baseUrl }
|
|
|
278
278
|
/**
|
|
279
279
|
* Get URLs needed for resuming a flow after this step
|
|
280
280
|
* @param approver approver name
|
|
281
|
+
* @param flowLevel if true, generate resume URLs for the parent flow instead of the specific step.
|
|
282
|
+
* This allows pre-approvals that can be consumed by any later suspend step in the same flow.
|
|
281
283
|
* @returns approval page UI URL, resume and cancel API URLs for resuming the flow
|
|
282
284
|
*/
|
|
283
|
-
export declare function getResumeUrls(approver?: string): Promise<{
|
|
285
|
+
export declare function getResumeUrls(approver?: string, flowLevel?: boolean): Promise<{
|
|
284
286
|
approvalPage: string;
|
|
285
287
|
resume: string;
|
|
286
288
|
cancel: string;
|
package/dist/client.js
CHANGED
|
@@ -990,9 +990,11 @@ function getPresignedS3PublicUrl(s3Objects_1) {
|
|
|
990
990
|
/**
|
|
991
991
|
* Get URLs needed for resuming a flow after this step
|
|
992
992
|
* @param approver approver name
|
|
993
|
+
* @param flowLevel if true, generate resume URLs for the parent flow instead of the specific step.
|
|
994
|
+
* This allows pre-approvals that can be consumed by any later suspend step in the same flow.
|
|
993
995
|
* @returns approval page UI URL, resume and cancel API URLs for resuming the flow
|
|
994
996
|
*/
|
|
995
|
-
function getResumeUrls(approver) {
|
|
997
|
+
function getResumeUrls(approver, flowLevel) {
|
|
996
998
|
return __awaiter(this, void 0, void 0, function* () {
|
|
997
999
|
var _a;
|
|
998
1000
|
const nonce = Math.floor(Math.random() * 4294967295);
|
|
@@ -1001,6 +1003,7 @@ function getResumeUrls(approver) {
|
|
|
1001
1003
|
workspace,
|
|
1002
1004
|
resumeId: nonce,
|
|
1003
1005
|
approver,
|
|
1006
|
+
flowLevel,
|
|
1004
1007
|
id: (_a = getEnv("WM_JOB_ID")) !== null && _a !== void 0 ? _a : "NO_JOB_ID",
|
|
1005
1008
|
});
|
|
1006
1009
|
});
|
package/dist/core/OpenAPI.js
CHANGED
package/dist/services.gen.d.ts
CHANGED
|
@@ -3708,6 +3708,7 @@ export declare class JobService {
|
|
|
3708
3708
|
* @param data.id
|
|
3709
3709
|
* @param data.resumeId
|
|
3710
3710
|
* @param data.approver
|
|
3711
|
+
* @param data.flowLevel If true, generate resume URLs for the parent flow instead of the specific step. This allows pre-approvals that can be consumed by any later suspend step in the same flow.
|
|
3711
3712
|
* @returns unknown url endpoints
|
|
3712
3713
|
* @throws ApiError
|
|
3713
3714
|
*/
|
package/dist/services.gen.js
CHANGED
|
@@ -7469,6 +7469,7 @@ class JobService {
|
|
|
7469
7469
|
* @param data.id
|
|
7470
7470
|
* @param data.resumeId
|
|
7471
7471
|
* @param data.approver
|
|
7472
|
+
* @param data.flowLevel If true, generate resume URLs for the parent flow instead of the specific step. This allows pre-approvals that can be consumed by any later suspend step in the same flow.
|
|
7472
7473
|
* @returns unknown url endpoints
|
|
7473
7474
|
* @throws ApiError
|
|
7474
7475
|
*/
|
|
@@ -7482,7 +7483,8 @@ class JobService {
|
|
|
7482
7483
|
resume_id: data.resumeId
|
|
7483
7484
|
},
|
|
7484
7485
|
query: {
|
|
7485
|
-
approver: data.approver
|
|
7486
|
+
approver: data.approver,
|
|
7487
|
+
flow_level: data.flowLevel
|
|
7486
7488
|
}
|
|
7487
7489
|
});
|
|
7488
7490
|
}
|
package/dist/sqlUtils.js
CHANGED
|
@@ -56,8 +56,10 @@ function sqlProviderImpl(provider, { name, schema }) {
|
|
|
56
56
|
}[provider];
|
|
57
57
|
let formatArgUsage = {
|
|
58
58
|
datatable: (i) => {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
const parsedType = parseTypeAnnotation(strings[i], strings[i + 1]);
|
|
60
|
+
if (parsedType !== undefined)
|
|
61
|
+
return `$${i + 1}`;
|
|
62
|
+
let argType = inferSqlType(values[i]);
|
|
61
63
|
return `$${i + 1}::${argType}`;
|
|
62
64
|
},
|
|
63
65
|
ducklake: (i) => `$arg${i + 1}`,
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -7632,6 +7632,10 @@ export type CreateJobSignatureData = {
|
|
|
7632
7632
|
export type CreateJobSignatureResponse = string;
|
|
7633
7633
|
export type GetResumeUrlsData = {
|
|
7634
7634
|
approver?: string;
|
|
7635
|
+
/**
|
|
7636
|
+
* If true, generate resume URLs for the parent flow instead of the specific step. This allows pre-approvals that can be consumed by any later suspend step in the same flow.
|
|
7637
|
+
*/
|
|
7638
|
+
flowLevel?: boolean;
|
|
7635
7639
|
id: string;
|
|
7636
7640
|
resumeId: number;
|
|
7637
7641
|
workspace: string;
|
|
@@ -17547,6 +17551,10 @@ export type $OpenApiTs = {
|
|
|
17547
17551
|
get: {
|
|
17548
17552
|
req: {
|
|
17549
17553
|
approver?: string;
|
|
17554
|
+
/**
|
|
17555
|
+
* If true, generate resume URLs for the parent flow instead of the specific step. This allows pre-approvals that can be consumed by any later suspend step in the same flow.
|
|
17556
|
+
*/
|
|
17557
|
+
flowLevel?: boolean;
|
|
17550
17558
|
id: string;
|
|
17551
17559
|
resumeId: number;
|
|
17552
17560
|
workspace: string;
|