@dataform/core 3.0.50 → 3.0.53

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
@@ -2273,6 +2273,9 @@ namespace dataform {
2273
2273
 
2274
2274
  /** DeclarationConfig filename */
2275
2275
  filename?: (string|null);
2276
+
2277
+ /** DeclarationConfig tags */
2278
+ tags?: (string[]|null);
2276
2279
  }
2277
2280
 
2278
2281
  /** Represents a DeclarationConfig. */
@@ -2302,6 +2305,9 @@ namespace dataform {
2302
2305
  /** DeclarationConfig filename. */
2303
2306
  public filename: string;
2304
2307
 
2308
+ /** DeclarationConfig tags. */
2309
+ public tags: string[];
2310
+
2305
2311
  /**
2306
2312
  * Creates a new DeclarationConfig instance using the specified properties.
2307
2313
  * @param [properties] Properties to set
@@ -4861,6 +4867,9 @@ namespace dataform {
4861
4867
 
4862
4868
  /** Declaration fileName */
4863
4869
  fileName?: (string|null);
4870
+
4871
+ /** Declaration tags */
4872
+ tags?: (string[]|null);
4864
4873
  }
4865
4874
 
4866
4875
  /** Represents a Declaration. */
@@ -4884,6 +4893,9 @@ namespace dataform {
4884
4893
  /** Declaration fileName. */
4885
4894
  public fileName: string;
4886
4895
 
4896
+ /** Declaration tags. */
4897
+ public tags: string[];
4898
+
4887
4899
  /**
4888
4900
  * Creates a new Declaration instance using the specified properties.
4889
4901
  * @param [properties] Properties to set
@@ -6748,7 +6760,10 @@ namespace dataform {
6748
6760
  TIME = 9,
6749
6761
  BYTES = 10,
6750
6762
  ANY = 11,
6751
- GEOGRAPHY = 12
6763
+ GEOGRAPHY = 12,
6764
+ BIGNUMERIC = 13,
6765
+ JSON = 14,
6766
+ INTERVAL = 15
6752
6767
  }
6753
6768
 
6754
6769
  /** Flag enum. */
@@ -9704,6 +9719,115 @@ namespace dataform {
9704
9719
  public static getTypeUrl(typeUrlPrefix?: string): string;
9705
9720
  }
9706
9721
 
9722
+ /** Properties of a RunningExecutionData. */
9723
+ interface IRunningExecutionData {
9724
+
9725
+ /** RunningExecutionData runTargets */
9726
+ runTargets?: (dataform.ITarget[]|null);
9727
+
9728
+ /** RunningExecutionData executionId */
9729
+ executionId?: (string|null);
9730
+
9731
+ /** RunningExecutionData executionStartTime */
9732
+ executionStartTime?: (google.protobuf.ITimestamp|null);
9733
+ }
9734
+
9735
+ /** Represents a RunningExecutionData. */
9736
+ class RunningExecutionData implements IRunningExecutionData {
9737
+
9738
+ /**
9739
+ * Constructs a new RunningExecutionData.
9740
+ * @param [properties] Properties to set
9741
+ */
9742
+ constructor(properties?: dataform.IRunningExecutionData);
9743
+
9744
+ /** RunningExecutionData runTargets. */
9745
+ public runTargets: dataform.ITarget[];
9746
+
9747
+ /** RunningExecutionData executionId. */
9748
+ public executionId: string;
9749
+
9750
+ /** RunningExecutionData executionStartTime. */
9751
+ public executionStartTime?: (google.protobuf.ITimestamp|null);
9752
+
9753
+ /**
9754
+ * Creates a new RunningExecutionData instance using the specified properties.
9755
+ * @param [properties] Properties to set
9756
+ * @returns RunningExecutionData instance
9757
+ */
9758
+ public static create(properties?: dataform.IRunningExecutionData): dataform.RunningExecutionData;
9759
+
9760
+ /**
9761
+ * Encodes the specified RunningExecutionData message. Does not implicitly {@link dataform.RunningExecutionData.verify|verify} messages.
9762
+ * @param message RunningExecutionData message or plain object to encode
9763
+ * @param [writer] Writer to encode to
9764
+ * @returns Writer
9765
+ */
9766
+ public static encode(message: dataform.IRunningExecutionData, writer?: $protobuf.Writer): $protobuf.Writer;
9767
+
9768
+ /**
9769
+ * Encodes the specified RunningExecutionData message, length delimited. Does not implicitly {@link dataform.RunningExecutionData.verify|verify} messages.
9770
+ * @param message RunningExecutionData message or plain object to encode
9771
+ * @param [writer] Writer to encode to
9772
+ * @returns Writer
9773
+ */
9774
+ public static encodeDelimited(message: dataform.IRunningExecutionData, writer?: $protobuf.Writer): $protobuf.Writer;
9775
+
9776
+ /**
9777
+ * Decodes a RunningExecutionData message from the specified reader or buffer.
9778
+ * @param reader Reader or buffer to decode from
9779
+ * @param [length] Message length if known beforehand
9780
+ * @returns RunningExecutionData
9781
+ * @throws {Error} If the payload is not a reader or valid buffer
9782
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9783
+ */
9784
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): dataform.RunningExecutionData;
9785
+
9786
+ /**
9787
+ * Decodes a RunningExecutionData message from the specified reader or buffer, length delimited.
9788
+ * @param reader Reader or buffer to decode from
9789
+ * @returns RunningExecutionData
9790
+ * @throws {Error} If the payload is not a reader or valid buffer
9791
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9792
+ */
9793
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): dataform.RunningExecutionData;
9794
+
9795
+ /**
9796
+ * Verifies a RunningExecutionData message.
9797
+ * @param message Plain object to verify
9798
+ * @returns `null` if valid, otherwise the reason why it is not
9799
+ */
9800
+ public static verify(message: { [k: string]: any }): (string|null);
9801
+
9802
+ /**
9803
+ * Creates a RunningExecutionData message from a plain object. Also converts values to their respective internal types.
9804
+ * @param object Plain object
9805
+ * @returns RunningExecutionData
9806
+ */
9807
+ public static fromObject(object: { [k: string]: any }): dataform.RunningExecutionData;
9808
+
9809
+ /**
9810
+ * Creates a plain object from a RunningExecutionData message. Also converts values to other types if specified.
9811
+ * @param message RunningExecutionData
9812
+ * @param [options] Conversion options
9813
+ * @returns Plain object
9814
+ */
9815
+ public static toObject(message: dataform.RunningExecutionData, options?: $protobuf.IConversionOptions): { [k: string]: any };
9816
+
9817
+ /**
9818
+ * Converts this RunningExecutionData to JSON.
9819
+ * @returns JSON object
9820
+ */
9821
+ public toJSON(): { [k: string]: any };
9822
+
9823
+ /**
9824
+ * Gets the default type url for RunningExecutionData
9825
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9826
+ * @returns The default type url
9827
+ */
9828
+ public static getTypeUrl(typeUrlPrefix?: string): string;
9829
+ }
9830
+
9707
9831
  /** JitCompilationTargetType enum. */
9708
9832
  enum JitCompilationTargetType {
9709
9833
  JIT_COMPILATION_TARGET_TYPE_UNSPECIFIED = 0,
@@ -9732,6 +9856,9 @@ namespace dataform {
9732
9856
 
9733
9857
  /** JitCompilationRequest filePaths */
9734
9858
  filePaths?: (string[]|null);
9859
+
9860
+ /** JitCompilationRequest executionData */
9861
+ executionData?: (dataform.IRunningExecutionData|null);
9735
9862
  }
9736
9863
 
9737
9864
  /** Represents a JitCompilationRequest. */
@@ -9761,6 +9888,9 @@ namespace dataform {
9761
9888
  /** JitCompilationRequest filePaths. */
9762
9889
  public filePaths: string[];
9763
9890
 
9891
+ /** JitCompilationRequest executionData. */
9892
+ public executionData?: (dataform.IRunningExecutionData|null);
9893
+
9764
9894
  /**
9765
9895
  * Creates a new JitCompilationRequest instance using the specified properties.
9766
9896
  * @param [properties] Properties to set
@@ -10384,6 +10514,9 @@ namespace dataform {
10384
10514
 
10385
10515
  /** Extension compilationMode */
10386
10516
  compilationMode?: (dataform.ExtensionCompilationMode|null);
10517
+
10518
+ /** Extension options */
10519
+ options?: ({ [k: string]: string }|null);
10387
10520
  }
10388
10521
 
10389
10522
  /** Represents an Extension. */
@@ -10401,6 +10534,9 @@ namespace dataform {
10401
10534
  /** Extension compilationMode. */
10402
10535
  public compilationMode: dataform.ExtensionCompilationMode;
10403
10536
 
10537
+ /** Extension options. */
10538
+ public options: { [k: string]: string };
10539
+
10404
10540
  /**
10405
10541
  * Creates a new Extension instance using the specified properties.
10406
10542
  * @param [properties] Properties to set
@@ -10905,6 +11041,109 @@ namespace google {
10905
11041
  */
10906
11042
  public static getTypeUrl(typeUrlPrefix?: string): string;
10907
11043
  }
11044
+
11045
+ /** Properties of a Timestamp. */
11046
+ interface ITimestamp {
11047
+
11048
+ /** Timestamp seconds */
11049
+ seconds?: (Long|null);
11050
+
11051
+ /** Timestamp nanos */
11052
+ nanos?: (number|null);
11053
+ }
11054
+
11055
+ /** Represents a Timestamp. */
11056
+ class Timestamp implements ITimestamp {
11057
+
11058
+ /**
11059
+ * Constructs a new Timestamp.
11060
+ * @param [properties] Properties to set
11061
+ */
11062
+ constructor(properties?: google.protobuf.ITimestamp);
11063
+
11064
+ /** Timestamp seconds. */
11065
+ public seconds: Long;
11066
+
11067
+ /** Timestamp nanos. */
11068
+ public nanos: number;
11069
+
11070
+ /**
11071
+ * Creates a new Timestamp instance using the specified properties.
11072
+ * @param [properties] Properties to set
11073
+ * @returns Timestamp instance
11074
+ */
11075
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
11076
+
11077
+ /**
11078
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
11079
+ * @param message Timestamp message or plain object to encode
11080
+ * @param [writer] Writer to encode to
11081
+ * @returns Writer
11082
+ */
11083
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
11084
+
11085
+ /**
11086
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
11087
+ * @param message Timestamp message or plain object to encode
11088
+ * @param [writer] Writer to encode to
11089
+ * @returns Writer
11090
+ */
11091
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
11092
+
11093
+ /**
11094
+ * Decodes a Timestamp message from the specified reader or buffer.
11095
+ * @param reader Reader or buffer to decode from
11096
+ * @param [length] Message length if known beforehand
11097
+ * @returns Timestamp
11098
+ * @throws {Error} If the payload is not a reader or valid buffer
11099
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11100
+ */
11101
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
11102
+
11103
+ /**
11104
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
11105
+ * @param reader Reader or buffer to decode from
11106
+ * @returns Timestamp
11107
+ * @throws {Error} If the payload is not a reader or valid buffer
11108
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11109
+ */
11110
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
11111
+
11112
+ /**
11113
+ * Verifies a Timestamp message.
11114
+ * @param message Plain object to verify
11115
+ * @returns `null` if valid, otherwise the reason why it is not
11116
+ */
11117
+ public static verify(message: { [k: string]: any }): (string|null);
11118
+
11119
+ /**
11120
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
11121
+ * @param object Plain object
11122
+ * @returns Timestamp
11123
+ */
11124
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
11125
+
11126
+ /**
11127
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
11128
+ * @param message Timestamp
11129
+ * @param [options] Conversion options
11130
+ * @returns Plain object
11131
+ */
11132
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
11133
+
11134
+ /**
11135
+ * Converts this Timestamp to JSON.
11136
+ * @returns JSON object
11137
+ */
11138
+ public toJSON(): { [k: string]: any };
11139
+
11140
+ /**
11141
+ * Gets the default type url for Timestamp
11142
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11143
+ * @returns The default type url
11144
+ */
11145
+ public static getTypeUrl(typeUrlPrefix?: string): string;
11146
+ }
10908
11147
  }
10909
11148
  }
10910
11149
 
@@ -10928,6 +11167,7 @@ declare type JitContext<T> = T & {
10928
11167
  [k: string]: any;
10929
11168
  };
10930
11169
  request: dataform.IJitCompilationRequest;
11170
+ executionData: dataform.IRunningExecutionData;
10931
11171
  };
10932
11172
  declare type JitContextable<Context, T> = string | ((jctx: JitContext<Context>) => Promise<T>);
10933
11173
 
@@ -11377,6 +11617,7 @@ declare class Session {
11377
11617
  constructor(rootDir?: string, projectConfig?: dataform.ProjectConfig, originalProjectConfig?: dataform.ProjectConfig);
11378
11618
  init(rootDir: string, projectConfig?: dataform.ProjectConfig, originalProjectConfig?: dataform.ProjectConfig): void;
11379
11619
  compilationSql(): CompilationSql;
11620
+ getContents(filePath: string): string;
11380
11621
  sqlxAction(actionOptions: {
11381
11622
  sqlxConfig: any;
11382
11623
  sqlStatementCount: number;
@@ -11426,7 +11667,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
11426
11667
 
11427
11668
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
11428
11669
 
11429
- declare const version = "3.0.50";
11670
+ declare const version = "3.0.53";
11430
11671
 
11431
11672
  declare const session: Session;
11432
11673
  declare const supportedFeatures: dataform.SupportedFeatures[];