@dataform/core 3.0.35 → 3.0.36

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
@@ -2,8 +2,6 @@ import * as $protobuf from 'protobufjs';
2
2
 
3
3
  declare function compile(code: string, path: string): string;
4
4
 
5
- declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
6
-
7
5
  /** Namespace dataform. */
8
6
  namespace dataform {
9
7
 
@@ -45,6 +43,9 @@ namespace dataform {
45
43
 
46
44
  /** WorkflowSettings defaultIcebergConfig */
47
45
  defaultIcebergConfig?: (dataform.IDefaultIcebergConfig|null);
46
+
47
+ /** WorkflowSettings disableAssertions */
48
+ disableAssertions?: (boolean|null);
48
49
  }
49
50
 
50
51
  /** Represents a WorkflowSettings. */
@@ -92,6 +93,9 @@ namespace dataform {
92
93
  /** WorkflowSettings defaultIcebergConfig. */
93
94
  public defaultIcebergConfig?: (dataform.IDefaultIcebergConfig|null);
94
95
 
96
+ /** WorkflowSettings disableAssertions. */
97
+ public disableAssertions: boolean;
98
+
95
99
  /**
96
100
  * Creates a new WorkflowSettings instance using the specified properties.
97
101
  * @param [properties] Properties to set
@@ -2884,6 +2888,9 @@ namespace dataform {
2884
2888
 
2885
2889
  /** ProjectConfig defaultIcebergConfig */
2886
2890
  defaultIcebergConfig?: (dataform.IDefaultIcebergConfig|null);
2891
+
2892
+ /** ProjectConfig disableAssertions */
2893
+ disableAssertions?: (boolean|null);
2887
2894
  }
2888
2895
 
2889
2896
  /** Represents a ProjectConfig. */
@@ -2931,6 +2938,9 @@ namespace dataform {
2931
2938
  /** ProjectConfig defaultIcebergConfig. */
2932
2939
  public defaultIcebergConfig?: (dataform.IDefaultIcebergConfig|null);
2933
2940
 
2941
+ /** ProjectConfig disableAssertions. */
2942
+ public disableAssertions: boolean;
2943
+
2934
2944
  /**
2935
2945
  * Creates a new ProjectConfig instance using the specified properties.
2936
2946
  * @param [properties] Properties to set
@@ -3023,6 +3033,9 @@ namespace dataform {
3023
3033
 
3024
3034
  /** CompileConfig timeoutMillis */
3025
3035
  timeoutMillis?: (number|null);
3036
+
3037
+ /** CompileConfig extension */
3038
+ extension?: (dataform.IExtension|null);
3026
3039
  }
3027
3040
 
3028
3041
  /** Represents a CompileConfig. */
@@ -3046,6 +3059,9 @@ namespace dataform {
3046
3059
  /** CompileConfig timeoutMillis. */
3047
3060
  public timeoutMillis: number;
3048
3061
 
3062
+ /** CompileConfig extension. */
3063
+ public extension?: (dataform.IExtension|null);
3064
+
3049
3065
  /**
3050
3066
  * Creates a new CompileConfig instance using the specified properties.
3051
3067
  * @param [properties] Properties to set
@@ -6017,6 +6033,116 @@ namespace dataform {
6017
6033
  ARRAY_BUFFER_IPC = 1
6018
6034
  }
6019
6035
 
6036
+ /** ExtensionCompilationMode enum. */
6037
+ enum ExtensionCompilationMode {
6038
+ COMPILATION_MODE_UNSPECIFIED = 0,
6039
+ PROLOGUE = 1,
6040
+ APPLICATION_CODE = 2
6041
+ }
6042
+
6043
+ /** Properties of an Extension. */
6044
+ interface IExtension {
6045
+
6046
+ /** Extension name */
6047
+ name?: (string|null);
6048
+
6049
+ /** Extension compilationMode */
6050
+ compilationMode?: (dataform.ExtensionCompilationMode|null);
6051
+ }
6052
+
6053
+ /** Represents an Extension. */
6054
+ class Extension implements IExtension {
6055
+
6056
+ /**
6057
+ * Constructs a new Extension.
6058
+ * @param [properties] Properties to set
6059
+ */
6060
+ constructor(properties?: dataform.IExtension);
6061
+
6062
+ /** Extension name. */
6063
+ public name: string;
6064
+
6065
+ /** Extension compilationMode. */
6066
+ public compilationMode: dataform.ExtensionCompilationMode;
6067
+
6068
+ /**
6069
+ * Creates a new Extension instance using the specified properties.
6070
+ * @param [properties] Properties to set
6071
+ * @returns Extension instance
6072
+ */
6073
+ public static create(properties?: dataform.IExtension): dataform.Extension;
6074
+
6075
+ /**
6076
+ * Encodes the specified Extension message. Does not implicitly {@link dataform.Extension.verify|verify} messages.
6077
+ * @param message Extension message or plain object to encode
6078
+ * @param [writer] Writer to encode to
6079
+ * @returns Writer
6080
+ */
6081
+ public static encode(message: dataform.IExtension, writer?: $protobuf.Writer): $protobuf.Writer;
6082
+
6083
+ /**
6084
+ * Encodes the specified Extension message, length delimited. Does not implicitly {@link dataform.Extension.verify|verify} messages.
6085
+ * @param message Extension message or plain object to encode
6086
+ * @param [writer] Writer to encode to
6087
+ * @returns Writer
6088
+ */
6089
+ public static encodeDelimited(message: dataform.IExtension, writer?: $protobuf.Writer): $protobuf.Writer;
6090
+
6091
+ /**
6092
+ * Decodes an Extension message from the specified reader or buffer.
6093
+ * @param reader Reader or buffer to decode from
6094
+ * @param [length] Message length if known beforehand
6095
+ * @returns Extension
6096
+ * @throws {Error} If the payload is not a reader or valid buffer
6097
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6098
+ */
6099
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): dataform.Extension;
6100
+
6101
+ /**
6102
+ * Decodes an Extension message from the specified reader or buffer, length delimited.
6103
+ * @param reader Reader or buffer to decode from
6104
+ * @returns Extension
6105
+ * @throws {Error} If the payload is not a reader or valid buffer
6106
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6107
+ */
6108
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): dataform.Extension;
6109
+
6110
+ /**
6111
+ * Verifies an Extension message.
6112
+ * @param message Plain object to verify
6113
+ * @returns `null` if valid, otherwise the reason why it is not
6114
+ */
6115
+ public static verify(message: { [k: string]: any }): (string|null);
6116
+
6117
+ /**
6118
+ * Creates an Extension message from a plain object. Also converts values to their respective internal types.
6119
+ * @param object Plain object
6120
+ * @returns Extension
6121
+ */
6122
+ public static fromObject(object: { [k: string]: any }): dataform.Extension;
6123
+
6124
+ /**
6125
+ * Creates a plain object from an Extension message. Also converts values to other types if specified.
6126
+ * @param message Extension
6127
+ * @param [options] Conversion options
6128
+ * @returns Plain object
6129
+ */
6130
+ public static toObject(message: dataform.Extension, options?: $protobuf.IConversionOptions): { [k: string]: any };
6131
+
6132
+ /**
6133
+ * Converts this Extension to JSON.
6134
+ * @returns JSON object
6135
+ */
6136
+ public toJSON(): { [k: string]: any };
6137
+
6138
+ /**
6139
+ * Gets the default type url for Extension
6140
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6141
+ * @returns The default type url
6142
+ */
6143
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6144
+ }
6145
+
6020
6146
  /** Properties of a QueryEvaluationError. */
6021
6147
  interface IQueryEvaluationError {
6022
6148
 
@@ -8819,10 +8945,16 @@ declare class ActionMap {
8819
8945
  private setBySchemaLevel;
8820
8946
  }
8821
8947
 
8822
- declare const version = "3.0.35";
8948
+ interface IDataformExtension {
8949
+ compile(request: dataform.ICompileExecutionRequest, session: Session): void;
8950
+ }
8951
+
8952
+ declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
8953
+
8954
+ declare const version = "3.0.36";
8823
8955
 
8824
8956
  declare const session: Session;
8825
8957
  declare const supportedFeatures: dataform.SupportedFeatures[];
8826
8958
  declare function indexFileGenerator(): void;
8827
8959
 
8828
- export { compile as compiler, indexFileGenerator, main, session, supportedFeatures, version };
8960
+ export { IDataformExtension, compile as compiler, indexFileGenerator, main, session, supportedFeatures, version };