@dataform/core 3.1.0 → 3.1.1

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
@@ -65,6 +65,9 @@ declare namespace dataform {
65
65
 
66
66
  /** WorkflowSettings defaultJobLabels */
67
67
  defaultJobLabels?: ({ [k: string]: string }|null);
68
+
69
+ /** WorkflowSettings defaultLakehouseConfig */
70
+ defaultLakehouseConfig?: (dataform.IDefaultLakehouseConfig|null);
68
71
  }
69
72
 
70
73
  /** Represents a WorkflowSettings. */
@@ -133,6 +136,9 @@ declare namespace dataform {
133
136
  /** WorkflowSettings defaultJobLabels. */
134
137
  public defaultJobLabels: { [k: string]: string };
135
138
 
139
+ /** WorkflowSettings defaultLakehouseConfig. */
140
+ public defaultLakehouseConfig?: (dataform.IDefaultLakehouseConfig|null);
141
+
136
142
  /**
137
143
  * Creates a new WorkflowSettings instance using the specified properties.
138
144
  * @param [properties] Properties to set
@@ -569,6 +575,9 @@ declare namespace dataform {
569
575
 
570
576
  /** Target includeDependentAssertions */
571
577
  includeDependentAssertions?: (boolean|null);
578
+
579
+ /** Target lakehouse */
580
+ lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
572
581
  }
573
582
 
574
583
  /** Represents a Target. */
@@ -592,6 +601,9 @@ declare namespace dataform {
592
601
  /** Target includeDependentAssertions. */
593
602
  public includeDependentAssertions: boolean;
594
603
 
604
+ /** Target lakehouse. */
605
+ public lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
606
+
595
607
  /**
596
608
  * Creates a new Target instance using the specified properties.
597
609
  * @param [properties] Properties to set
@@ -1130,6 +1142,109 @@ declare namespace dataform {
1130
1142
  }
1131
1143
  }
1132
1144
 
1145
+ /** Properties of a LakehouseConfig. */
1146
+ interface ILakehouseConfig {
1147
+
1148
+ /** LakehouseConfig catalog */
1149
+ catalog?: (string|null);
1150
+
1151
+ /** LakehouseConfig namespace */
1152
+ namespace?: (string|null);
1153
+ }
1154
+
1155
+ /** Represents a LakehouseConfig. */
1156
+ class LakehouseConfig implements ILakehouseConfig {
1157
+
1158
+ /**
1159
+ * Constructs a new LakehouseConfig.
1160
+ * @param [properties] Properties to set
1161
+ */
1162
+ constructor(properties?: dataform.ActionConfig.ILakehouseConfig);
1163
+
1164
+ /** LakehouseConfig catalog. */
1165
+ public catalog: string;
1166
+
1167
+ /** LakehouseConfig namespace. */
1168
+ public namespace: string;
1169
+
1170
+ /**
1171
+ * Creates a new LakehouseConfig instance using the specified properties.
1172
+ * @param [properties] Properties to set
1173
+ * @returns LakehouseConfig instance
1174
+ */
1175
+ public static create(properties?: dataform.ActionConfig.ILakehouseConfig): dataform.ActionConfig.LakehouseConfig;
1176
+
1177
+ /**
1178
+ * Encodes the specified LakehouseConfig message. Does not implicitly {@link dataform.ActionConfig.LakehouseConfig.verify|verify} messages.
1179
+ * @param message LakehouseConfig message or plain object to encode
1180
+ * @param [writer] Writer to encode to
1181
+ * @returns Writer
1182
+ */
1183
+ public static encode(message: dataform.ActionConfig.ILakehouseConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1184
+
1185
+ /**
1186
+ * Encodes the specified LakehouseConfig message, length delimited. Does not implicitly {@link dataform.ActionConfig.LakehouseConfig.verify|verify} messages.
1187
+ * @param message LakehouseConfig message or plain object to encode
1188
+ * @param [writer] Writer to encode to
1189
+ * @returns Writer
1190
+ */
1191
+ public static encodeDelimited(message: dataform.ActionConfig.ILakehouseConfig, writer?: $protobuf.Writer): $protobuf.Writer;
1192
+
1193
+ /**
1194
+ * Decodes a LakehouseConfig message from the specified reader or buffer.
1195
+ * @param reader Reader or buffer to decode from
1196
+ * @param [length] Message length if known beforehand
1197
+ * @returns LakehouseConfig
1198
+ * @throws {Error} If the payload is not a reader or valid buffer
1199
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1200
+ */
1201
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): dataform.ActionConfig.LakehouseConfig;
1202
+
1203
+ /**
1204
+ * Decodes a LakehouseConfig message from the specified reader or buffer, length delimited.
1205
+ * @param reader Reader or buffer to decode from
1206
+ * @returns LakehouseConfig
1207
+ * @throws {Error} If the payload is not a reader or valid buffer
1208
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1209
+ */
1210
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): dataform.ActionConfig.LakehouseConfig;
1211
+
1212
+ /**
1213
+ * Verifies a LakehouseConfig message.
1214
+ * @param message Plain object to verify
1215
+ * @returns `null` if valid, otherwise the reason why it is not
1216
+ */
1217
+ public static verify(message: { [k: string]: any }): (string|null);
1218
+
1219
+ /**
1220
+ * Creates a LakehouseConfig message from a plain object. Also converts values to their respective internal types.
1221
+ * @param object Plain object
1222
+ * @returns LakehouseConfig
1223
+ */
1224
+ public static fromObject(object: { [k: string]: any }): dataform.ActionConfig.LakehouseConfig;
1225
+
1226
+ /**
1227
+ * Creates a plain object from a LakehouseConfig message. Also converts values to other types if specified.
1228
+ * @param message LakehouseConfig
1229
+ * @param [options] Conversion options
1230
+ * @returns Plain object
1231
+ */
1232
+ public static toObject(message: dataform.ActionConfig.LakehouseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
1233
+
1234
+ /**
1235
+ * Converts this LakehouseConfig to JSON.
1236
+ * @returns JSON object
1237
+ */
1238
+ public toJSON(): { [k: string]: any };
1239
+
1240
+ /**
1241
+ * Gets the default type url for LakehouseConfig
1242
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1243
+ * @returns The default type url
1244
+ */
1245
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1246
+ }
1247
+
1133
1248
  /** Properties of a TableConfig. */
1134
1249
  interface ITableConfig {
1135
1250
 
@@ -1207,6 +1322,9 @@ declare namespace dataform {
1207
1322
 
1208
1323
  /** TableConfig jobLabels */
1209
1324
  jobLabels?: ({ [k: string]: string }|null);
1325
+
1326
+ /** TableConfig lakehouse */
1327
+ lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
1210
1328
  }
1211
1329
 
1212
1330
  /** Represents a TableConfig. */
@@ -1293,6 +1411,9 @@ declare namespace dataform {
1293
1411
  /** TableConfig jobLabels. */
1294
1412
  public jobLabels: { [k: string]: string };
1295
1413
 
1414
+ /** TableConfig lakehouse. */
1415
+ public lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
1416
+
1296
1417
  /**
1297
1418
  * Creates a new TableConfig instance using the specified properties.
1298
1419
  * @param [properties] Properties to set
@@ -1807,6 +1928,9 @@ declare namespace dataform {
1807
1928
 
1808
1929
  /** IncrementalTableConfig jobLabels */
1809
1930
  jobLabels?: ({ [k: string]: string }|null);
1931
+
1932
+ /** IncrementalTableConfig lakehouse */
1933
+ lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
1810
1934
  }
1811
1935
 
1812
1936
  /** Represents an IncrementalTableConfig. */
@@ -1911,6 +2035,9 @@ declare namespace dataform {
1911
2035
  /** IncrementalTableConfig jobLabels. */
1912
2036
  public jobLabels: { [k: string]: string };
1913
2037
 
2038
+ /** IncrementalTableConfig lakehouse. */
2039
+ public lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
2040
+
1914
2041
  /**
1915
2042
  * Creates a new IncrementalTableConfig instance using the specified properties.
1916
2043
  * @param [properties] Properties to set
@@ -2202,6 +2329,9 @@ declare namespace dataform {
2202
2329
 
2203
2330
  /** OperationConfig jobLabels */
2204
2331
  jobLabels?: ({ [k: string]: string }|null);
2332
+
2333
+ /** OperationConfig lakehouse */
2334
+ lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
2205
2335
  }
2206
2336
 
2207
2337
  /** Represents an OperationConfig. */
@@ -2255,6 +2385,9 @@ declare namespace dataform {
2255
2385
  /** OperationConfig jobLabels. */
2256
2386
  public jobLabels: { [k: string]: string };
2257
2387
 
2388
+ /** OperationConfig lakehouse. */
2389
+ public lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
2390
+
2258
2391
  /**
2259
2392
  * Creates a new OperationConfig instance using the specified properties.
2260
2393
  * @param [properties] Properties to set
@@ -2356,6 +2489,9 @@ declare namespace dataform {
2356
2489
 
2357
2490
  /** DeclarationConfig tags */
2358
2491
  tags?: (string[]|null);
2492
+
2493
+ /** DeclarationConfig lakehouse */
2494
+ lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
2359
2495
  }
2360
2496
 
2361
2497
  /** Represents a DeclarationConfig. */
@@ -2388,6 +2524,9 @@ declare namespace dataform {
2388
2524
  /** DeclarationConfig tags. */
2389
2525
  public tags: string[];
2390
2526
 
2527
+ /** DeclarationConfig lakehouse. */
2528
+ public lakehouse?: (dataform.ActionConfig.ILakehouseConfig|null);
2529
+
2391
2530
  /**
2392
2531
  * Creates a new DeclarationConfig instance using the specified properties.
2393
2532
  * @param [properties] Properties to set
@@ -4856,6 +4995,9 @@ declare namespace dataform {
4856
4995
 
4857
4996
  /** ProjectConfig defaultJobLabels */
4858
4997
  defaultJobLabels?: ({ [k: string]: string }|null);
4998
+
4999
+ /** ProjectConfig defaultLakehouseConfig */
5000
+ defaultLakehouseConfig?: (dataform.IDefaultLakehouseConfig|null);
4859
5001
  }
4860
5002
 
4861
5003
  /** Represents a ProjectConfig. */
@@ -4921,6 +5063,9 @@ declare namespace dataform {
4921
5063
  /** ProjectConfig defaultJobLabels. */
4922
5064
  public defaultJobLabels: { [k: string]: string };
4923
5065
 
5066
+ /** ProjectConfig defaultLakehouseConfig. */
5067
+ public defaultLakehouseConfig?: (dataform.IDefaultLakehouseConfig|null);
5068
+
4924
5069
  /**
4925
5070
  * Creates a new ProjectConfig instance using the specified properties.
4926
5071
  * @param [properties] Properties to set
@@ -5114,6 +5259,109 @@ declare namespace dataform {
5114
5259
  public static getTypeUrl(typeUrlPrefix?: string): string;
5115
5260
  }
5116
5261
 
5262
+ /** Properties of a DefaultLakehouseConfig. */
5263
+ interface IDefaultLakehouseConfig {
5264
+
5265
+ /** DefaultLakehouseConfig catalog */
5266
+ catalog?: (string|null);
5267
+
5268
+ /** DefaultLakehouseConfig namespace */
5269
+ namespace?: (string|null);
5270
+ }
5271
+
5272
+ /** Represents a DefaultLakehouseConfig. */
5273
+ class DefaultLakehouseConfig implements IDefaultLakehouseConfig {
5274
+
5275
+ /**
5276
+ * Constructs a new DefaultLakehouseConfig.
5277
+ * @param [properties] Properties to set
5278
+ */
5279
+ constructor(properties?: dataform.IDefaultLakehouseConfig);
5280
+
5281
+ /** DefaultLakehouseConfig catalog. */
5282
+ public catalog: string;
5283
+
5284
+ /** DefaultLakehouseConfig namespace. */
5285
+ public namespace: string;
5286
+
5287
+ /**
5288
+ * Creates a new DefaultLakehouseConfig instance using the specified properties.
5289
+ * @param [properties] Properties to set
5290
+ * @returns DefaultLakehouseConfig instance
5291
+ */
5292
+ public static create(properties?: dataform.IDefaultLakehouseConfig): dataform.DefaultLakehouseConfig;
5293
+
5294
+ /**
5295
+ * Encodes the specified DefaultLakehouseConfig message. Does not implicitly {@link dataform.DefaultLakehouseConfig.verify|verify} messages.
5296
+ * @param message DefaultLakehouseConfig message or plain object to encode
5297
+ * @param [writer] Writer to encode to
5298
+ * @returns Writer
5299
+ */
5300
+ public static encode(message: dataform.IDefaultLakehouseConfig, writer?: $protobuf.Writer): $protobuf.Writer;
5301
+
5302
+ /**
5303
+ * Encodes the specified DefaultLakehouseConfig message, length delimited. Does not implicitly {@link dataform.DefaultLakehouseConfig.verify|verify} messages.
5304
+ * @param message DefaultLakehouseConfig message or plain object to encode
5305
+ * @param [writer] Writer to encode to
5306
+ * @returns Writer
5307
+ */
5308
+ public static encodeDelimited(message: dataform.IDefaultLakehouseConfig, writer?: $protobuf.Writer): $protobuf.Writer;
5309
+
5310
+ /**
5311
+ * Decodes a DefaultLakehouseConfig message from the specified reader or buffer.
5312
+ * @param reader Reader or buffer to decode from
5313
+ * @param [length] Message length if known beforehand
5314
+ * @returns DefaultLakehouseConfig
5315
+ * @throws {Error} If the payload is not a reader or valid buffer
5316
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5317
+ */
5318
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): dataform.DefaultLakehouseConfig;
5319
+
5320
+ /**
5321
+ * Decodes a DefaultLakehouseConfig message from the specified reader or buffer, length delimited.
5322
+ * @param reader Reader or buffer to decode from
5323
+ * @returns DefaultLakehouseConfig
5324
+ * @throws {Error} If the payload is not a reader or valid buffer
5325
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5326
+ */
5327
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): dataform.DefaultLakehouseConfig;
5328
+
5329
+ /**
5330
+ * Verifies a DefaultLakehouseConfig message.
5331
+ * @param message Plain object to verify
5332
+ * @returns `null` if valid, otherwise the reason why it is not
5333
+ */
5334
+ public static verify(message: { [k: string]: any }): (string|null);
5335
+
5336
+ /**
5337
+ * Creates a DefaultLakehouseConfig message from a plain object. Also converts values to their respective internal types.
5338
+ * @param object Plain object
5339
+ * @returns DefaultLakehouseConfig
5340
+ */
5341
+ public static fromObject(object: { [k: string]: any }): dataform.DefaultLakehouseConfig;
5342
+
5343
+ /**
5344
+ * Creates a plain object from a DefaultLakehouseConfig message. Also converts values to other types if specified.
5345
+ * @param message DefaultLakehouseConfig
5346
+ * @param [options] Conversion options
5347
+ * @returns Plain object
5348
+ */
5349
+ public static toObject(message: dataform.DefaultLakehouseConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
5350
+
5351
+ /**
5352
+ * Converts this DefaultLakehouseConfig to JSON.
5353
+ * @returns JSON object
5354
+ */
5355
+ public toJSON(): { [k: string]: any };
5356
+
5357
+ /**
5358
+ * Gets the default type url for DefaultLakehouseConfig
5359
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5360
+ * @returns The default type url
5361
+ */
5362
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5363
+ }
5364
+
5117
5365
  /** Properties of a CompileConfig. */
5118
5366
  interface ICompileConfig {
5119
5367
 
@@ -13148,6 +13396,9 @@ declare namespace dataform {
13148
13396
 
13149
13397
  /** BigQuery location */
13150
13398
  location?: (string|null);
13399
+
13400
+ /** BigQuery impersonateServiceAccount */
13401
+ impersonateServiceAccount?: (string|null);
13151
13402
  }
13152
13403
 
13153
13404
  /** Represents a BigQuery. */
@@ -13168,6 +13419,9 @@ declare namespace dataform {
13168
13419
  /** BigQuery location. */
13169
13420
  public location: string;
13170
13421
 
13422
+ /** BigQuery impersonateServiceAccount. */
13423
+ public impersonateServiceAccount: string;
13424
+
13171
13425
  /**
13172
13426
  * Creates a new BigQuery instance using the specified properties.
13173
13427
  * @param [properties] Properties to set
@@ -13778,7 +14032,18 @@ declare namespace google {
13778
14032
  }
13779
14033
  }
13780
14034
 
13781
- type Resolvable = string | dataform.ITarget;
14035
+ interface IResolvable {
14036
+ database?: string;
14037
+ project?: string;
14038
+ schema?: string;
14039
+ dataset?: string;
14040
+ catalog?: string;
14041
+ namespace?: string;
14042
+ lakehouse?: dataform.ActionConfig.ILakehouseConfig;
14043
+ name?: string;
14044
+ includeDependentAssertions?: boolean;
14045
+ }
14046
+ type Resolvable = string | dataform.ITarget | IResolvable;
13782
14047
  type Contextable<Context, T> = T | ((ctx: Context) => T);
13783
14048
  interface IActionContext {
13784
14049
  self: () => string;
@@ -13811,6 +14076,7 @@ declare class Assertion extends ActionBuilder<dataform.Assertion> {
13811
14076
  private proto;
13812
14077
  private contextableQuery;
13813
14078
  private contextableJitCode;
14079
+ private hasLakehouseConfig;
13814
14080
  constructor(session?: Session, unverifiedConfig?: any, configPath?: string);
13815
14081
  query(query: AContextable<string>): this;
13816
14082
  jitCode(jitCode: JitContextable<AssertionContext, JitAssertionResult>): this;
@@ -14123,6 +14389,7 @@ declare class View extends ActionBuilder<dataform.Table> {
14123
14389
  private rowConditionsAssertion;
14124
14390
  private unverifiedConfig;
14125
14391
  private configPath;
14392
+ private hasLakehouseConfig;
14126
14393
  constructor(session?: Session, unverifiedConfig?: any, configPath?: string);
14127
14394
  type(type: TableType): this;
14128
14395
  query(query: Contextable<ITableContext, string>): this;
@@ -14166,6 +14433,7 @@ type Action = Table | View | IncrementalTable | Operation | Assertion | Declarat
14166
14433
  declare abstract class ActionBuilder<T> {
14167
14434
  session: Session;
14168
14435
  includeAssertionsForDependency: Map<string, boolean>;
14436
+ protected isLakehouseTarget: boolean;
14169
14437
  constructor(session?: Session);
14170
14438
  applySessionToTarget(targetFromConfig: dataform.Target, projectConfig: dataform.ProjectConfig, fileName?: string, options?: {
14171
14439
  validateTarget?: boolean;
@@ -14212,6 +14480,7 @@ interface ILegacyTableConfig extends IActionConfig, IDependenciesConfig, IDocume
14212
14480
  assertions?: ILegacyTableAssertions;
14213
14481
  uniqueKey?: string[];
14214
14482
  materialized?: boolean;
14483
+ lakehouse?: dataform.ActionConfig.ILakehouseConfig;
14215
14484
  }
14216
14485
  interface ILegacyBigQueryOptions {
14217
14486
  partitionBy?: string;
@@ -14336,7 +14605,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
14336
14605
 
14337
14606
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
14338
14607
 
14339
- declare const version = "3.1.0";
14608
+ declare const version = "3.1.1";
14340
14609
 
14341
14610
  declare const session: Session;
14342
14611
  declare const supportedFeatures: dataform.SupportedFeatures[];