ts2workflows 0.4.0 → 0.6.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/README.md +6 -2
- package/dist/ast/expressions.d.ts.map +1 -1
- package/dist/ast/expressions.js +7 -10
- package/dist/ast/stepnames.js +4 -2
- package/dist/ast/steps.d.ts +9 -9
- package/dist/ast/steps.d.ts.map +1 -1
- package/dist/ast/steps.js +33 -20
- package/dist/ast/workflows.js +1 -1
- package/dist/transpiler/expressions.d.ts +2 -0
- package/dist/transpiler/expressions.d.ts.map +1 -1
- package/dist/transpiler/expressions.js +9 -5
- package/dist/transpiler/statements.d.ts +1 -0
- package/dist/transpiler/statements.d.ts.map +1 -1
- package/dist/transpiler/statements.js +237 -45
- package/dist/transpiler/transformations.d.ts.map +1 -1
- package/dist/transpiler/transformations.js +194 -181
- package/dist/utils.d.ts +11 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +23 -0
- package/language_reference.md +47 -10
- package/package.json +2 -2
- package/types/global.d.ts +9 -1
- package/types/workflowslib.d.ts +18 -16
package/types/workflowslib.d.ts
CHANGED
|
@@ -49,11 +49,15 @@ export declare namespace events {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export declare namespace http {
|
|
52
|
-
export function default_retry(
|
|
53
|
-
export function default_retry_non_idempotent(
|
|
54
|
-
|
|
52
|
+
export function default_retry(errormap: Record<string, any>): void
|
|
53
|
+
export function default_retry_non_idempotent(
|
|
54
|
+
errormap: Record<string, any>,
|
|
55
|
+
): void
|
|
56
|
+
export function default_retry_predicate(
|
|
57
|
+
errormap: Record<string, any>,
|
|
58
|
+
): boolean
|
|
55
59
|
export function default_retry_predicate_non_idempotent(
|
|
56
|
-
|
|
60
|
+
errormap: Record<string, any>,
|
|
57
61
|
): boolean
|
|
58
62
|
function _delete(
|
|
59
63
|
url: string,
|
|
@@ -342,7 +346,7 @@ export declare namespace googleapis {
|
|
|
342
346
|
interface Document {
|
|
343
347
|
createTime: string
|
|
344
348
|
fields: Record<string, Value>
|
|
345
|
-
name
|
|
349
|
+
name?: string
|
|
346
350
|
updateTime: string
|
|
347
351
|
}
|
|
348
352
|
interface DocumentMask {
|
|
@@ -553,7 +557,7 @@ export declare namespace googleapis {
|
|
|
553
557
|
currentDocument?: Precondition
|
|
554
558
|
delete?: string
|
|
555
559
|
transform?: DocumentTransform
|
|
556
|
-
update?: Document
|
|
560
|
+
update?: Pick<Document, 'fields' | 'name'>
|
|
557
561
|
updateMask?: DocumentMask
|
|
558
562
|
updateTransforms?: FieldTransform[]
|
|
559
563
|
}
|
|
@@ -622,7 +626,7 @@ export declare namespace googleapis {
|
|
|
622
626
|
export function createDocument(
|
|
623
627
|
collectionId: string,
|
|
624
628
|
parent: string,
|
|
625
|
-
body: Document,
|
|
629
|
+
body: Pick<Document, 'fields' | 'name'>,
|
|
626
630
|
documentId?: string,
|
|
627
631
|
mask?: DocumentMask,
|
|
628
632
|
): Document
|
|
@@ -657,7 +661,7 @@ export declare namespace googleapis {
|
|
|
657
661
|
currentDocument: Precondition,
|
|
658
662
|
mask: DocumentMask,
|
|
659
663
|
updateMask: DocumentMask,
|
|
660
|
-
body: Document,
|
|
664
|
+
body: Pick<Document, 'fields' | 'name'>,
|
|
661
665
|
): Document
|
|
662
666
|
export function rollback(
|
|
663
667
|
database: string,
|
|
@@ -709,16 +713,14 @@ export declare function parallel(
|
|
|
709
713
|
|
|
710
714
|
export declare function retry_policy(
|
|
711
715
|
params:
|
|
716
|
+
| ((errormap: Record<string, any>) => void)
|
|
712
717
|
| {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
| {
|
|
716
|
-
predicate: (exception: unknown) => boolean
|
|
717
|
-
max_retries: number
|
|
718
|
+
predicate?: (errormap: Record<string, any>) => boolean
|
|
719
|
+
max_retries: number | string | null
|
|
718
720
|
backoff: {
|
|
719
|
-
initial_delay
|
|
720
|
-
max_delay
|
|
721
|
-
multiplier
|
|
721
|
+
initial_delay?: number | string | null
|
|
722
|
+
max_delay?: number | string | null
|
|
723
|
+
multiplier?: number | string | null
|
|
722
724
|
}
|
|
723
725
|
},
|
|
724
726
|
): void
|