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.
@@ -49,11 +49,15 @@ export declare namespace events {
49
49
  }
50
50
 
51
51
  export declare namespace http {
52
- export function default_retry(exception: unknown): void
53
- export function default_retry_non_idempotent(exception: unknown): void
54
- export function default_retry_predicate(exception: unknown): boolean
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
- exception: unknown,
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: string
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
- policy: (exception: unknown) => void
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: number
720
- max_delay: number
721
- multiplier: number
721
+ initial_delay?: number | string | null
722
+ max_delay?: number | string | null
723
+ multiplier?: number | string | null
722
724
  }
723
725
  },
724
726
  ): void