@dataform/core 3.0.57 → 3.0.59

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/bundle.d.ts CHANGED
@@ -4853,6 +4853,9 @@ namespace dataform {
4853
4853
  /** Assertion parentAction */
4854
4854
  parentAction?: (dataform.ITarget|null);
4855
4855
 
4856
+ /** Assertion jitCode */
4857
+ jitCode?: (string|null);
4858
+
4856
4859
  /** Assertion fileName */
4857
4860
  fileName?: (string|null);
4858
4861
  }
@@ -4893,6 +4896,9 @@ namespace dataform {
4893
4896
  /** Assertion parentAction. */
4894
4897
  public parentAction?: (dataform.ITarget|null);
4895
4898
 
4899
+ /** Assertion jitCode. */
4900
+ public jitCode: string;
4901
+
4896
4902
  /** Assertion fileName. */
4897
4903
  public fileName: string;
4898
4904
 
@@ -9973,7 +9979,8 @@ namespace dataform {
9973
9979
  JIT_COMPILATION_TARGET_TYPE_UNSPECIFIED = 0,
9974
9980
  JIT_COMPILATION_TARGET_TYPE_TABLE = 1,
9975
9981
  JIT_COMPILATION_TARGET_TYPE_OPERATION = 2,
9976
- JIT_COMPILATION_TARGET_TYPE_INCREMENTAL_TABLE = 3
9982
+ JIT_COMPILATION_TARGET_TYPE_INCREMENTAL_TABLE = 3,
9983
+ JIT_COMPILATION_TARGET_TYPE_ASSERTION = 4
9977
9984
  }
9978
9985
 
9979
9986
  /** Properties of a JitCompilationRequest. */
@@ -10120,6 +10127,9 @@ namespace dataform {
10120
10127
 
10121
10128
  /** JitCompilationResponse incrementalTable */
10122
10129
  incrementalTable?: (dataform.IJitIncrementalTableResult|null);
10130
+
10131
+ /** JitCompilationResponse assertion */
10132
+ assertion?: (dataform.IJitAssertionResult|null);
10123
10133
  }
10124
10134
 
10125
10135
  /** Represents a JitCompilationResponse. */
@@ -10140,8 +10150,11 @@ namespace dataform {
10140
10150
  /** JitCompilationResponse incrementalTable. */
10141
10151
  public incrementalTable?: (dataform.IJitIncrementalTableResult|null);
10142
10152
 
10153
+ /** JitCompilationResponse assertion. */
10154
+ public assertion?: (dataform.IJitAssertionResult|null);
10155
+
10143
10156
  /** JitCompilationResponse response. */
10144
- public response?: ("table"|"operation"|"incrementalTable");
10157
+ public response?: ("table"|"operation"|"incrementalTable"|"assertion");
10145
10158
 
10146
10159
  /**
10147
10160
  * Creates a new JitCompilationResponse instance using the specified properties.
@@ -10530,6 +10543,103 @@ namespace dataform {
10530
10543
  public static getTypeUrl(typeUrlPrefix?: string): string;
10531
10544
  }
10532
10545
 
10546
+ /** Properties of a JitAssertionResult. */
10547
+ interface IJitAssertionResult {
10548
+
10549
+ /** JitAssertionResult query */
10550
+ query?: (string|null);
10551
+ }
10552
+
10553
+ /** Represents a JitAssertionResult. */
10554
+ class JitAssertionResult implements IJitAssertionResult {
10555
+
10556
+ /**
10557
+ * Constructs a new JitAssertionResult.
10558
+ * @param [properties] Properties to set
10559
+ */
10560
+ constructor(properties?: dataform.IJitAssertionResult);
10561
+
10562
+ /** JitAssertionResult query. */
10563
+ public query: string;
10564
+
10565
+ /**
10566
+ * Creates a new JitAssertionResult instance using the specified properties.
10567
+ * @param [properties] Properties to set
10568
+ * @returns JitAssertionResult instance
10569
+ */
10570
+ public static create(properties?: dataform.IJitAssertionResult): dataform.JitAssertionResult;
10571
+
10572
+ /**
10573
+ * Encodes the specified JitAssertionResult message. Does not implicitly {@link dataform.JitAssertionResult.verify|verify} messages.
10574
+ * @param message JitAssertionResult message or plain object to encode
10575
+ * @param [writer] Writer to encode to
10576
+ * @returns Writer
10577
+ */
10578
+ public static encode(message: dataform.IJitAssertionResult, writer?: $protobuf.Writer): $protobuf.Writer;
10579
+
10580
+ /**
10581
+ * Encodes the specified JitAssertionResult message, length delimited. Does not implicitly {@link dataform.JitAssertionResult.verify|verify} messages.
10582
+ * @param message JitAssertionResult message or plain object to encode
10583
+ * @param [writer] Writer to encode to
10584
+ * @returns Writer
10585
+ */
10586
+ public static encodeDelimited(message: dataform.IJitAssertionResult, writer?: $protobuf.Writer): $protobuf.Writer;
10587
+
10588
+ /**
10589
+ * Decodes a JitAssertionResult message from the specified reader or buffer.
10590
+ * @param reader Reader or buffer to decode from
10591
+ * @param [length] Message length if known beforehand
10592
+ * @returns JitAssertionResult
10593
+ * @throws {Error} If the payload is not a reader or valid buffer
10594
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10595
+ */
10596
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): dataform.JitAssertionResult;
10597
+
10598
+ /**
10599
+ * Decodes a JitAssertionResult message from the specified reader or buffer, length delimited.
10600
+ * @param reader Reader or buffer to decode from
10601
+ * @returns JitAssertionResult
10602
+ * @throws {Error} If the payload is not a reader or valid buffer
10603
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10604
+ */
10605
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): dataform.JitAssertionResult;
10606
+
10607
+ /**
10608
+ * Verifies a JitAssertionResult message.
10609
+ * @param message Plain object to verify
10610
+ * @returns `null` if valid, otherwise the reason why it is not
10611
+ */
10612
+ public static verify(message: { [k: string]: any }): (string|null);
10613
+
10614
+ /**
10615
+ * Creates a JitAssertionResult message from a plain object. Also converts values to their respective internal types.
10616
+ * @param object Plain object
10617
+ * @returns JitAssertionResult
10618
+ */
10619
+ public static fromObject(object: { [k: string]: any }): dataform.JitAssertionResult;
10620
+
10621
+ /**
10622
+ * Creates a plain object from a JitAssertionResult message. Also converts values to other types if specified.
10623
+ * @param message JitAssertionResult
10624
+ * @param [options] Conversion options
10625
+ * @returns Plain object
10626
+ */
10627
+ public static toObject(message: dataform.JitAssertionResult, options?: $protobuf.IConversionOptions): { [k: string]: any };
10628
+
10629
+ /**
10630
+ * Converts this JitAssertionResult to JSON.
10631
+ * @returns JSON object
10632
+ */
10633
+ public toJSON(): { [k: string]: any };
10634
+
10635
+ /**
10636
+ * Gets the default type url for JitAssertionResult
10637
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10638
+ * @returns The default type url
10639
+ */
10640
+ public static getTypeUrl(typeUrlPrefix?: string): string;
10641
+ }
10642
+
10533
10643
  /** Properties of a BigQuery. */
10534
10644
  interface IBigQuery {
10535
10645
 
@@ -11196,12 +11306,15 @@ declare type JitContext<T> = T & {
11196
11306
  declare type JitContextable<Context, T> = string | ((jctx: JitContext<Context>) => Promise<T>);
11197
11307
 
11198
11308
  declare type AContextable<T> = T | ((ctx: AssertionContext) => T);
11309
+ declare type JitAssertionResult = string;
11199
11310
  declare class Assertion extends ActionBuilder<dataform.Assertion> {
11200
11311
  session: Session;
11201
11312
  private proto;
11202
11313
  private contextableQuery;
11314
+ private contextableJitCode;
11203
11315
  constructor(session?: Session, unverifiedConfig?: any, configPath?: string);
11204
11316
  query(query: AContextable<string>): this;
11317
+ jitCode(jitCode: JitContextable<AssertionContext, JitAssertionResult>): this;
11205
11318
  dependencies(value: Resolvable | Resolvable[]): this;
11206
11319
  hermetic(hermetic: boolean): void;
11207
11320
  disabled(disabled?: boolean): this;
@@ -11691,7 +11804,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
11691
11804
 
11692
11805
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
11693
11806
 
11694
- declare const version = "3.0.57";
11807
+ declare const version = "3.0.59";
11695
11808
 
11696
11809
  declare const session: Session;
11697
11810
  declare const supportedFeatures: dataform.SupportedFeatures[];