@dataform/core 3.0.54 → 3.0.56

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
@@ -52,6 +52,9 @@ namespace dataform {
52
52
 
53
53
  /** WorkflowSettings extension */
54
54
  extension?: (dataform.IExtension|null);
55
+
56
+ /** WorkflowSettings includeTestsInCompiledGraph */
57
+ includeTestsInCompiledGraph?: (boolean|null);
55
58
  }
56
59
 
57
60
  /** Represents a WorkflowSettings. */
@@ -108,6 +111,9 @@ namespace dataform {
108
111
  /** WorkflowSettings extension. */
109
112
  public extension?: (dataform.IExtension|null);
110
113
 
114
+ /** WorkflowSettings includeTestsInCompiledGraph. */
115
+ public includeTestsInCompiledGraph: boolean;
116
+
111
117
  /**
112
118
  * Creates a new WorkflowSettings instance using the specified properties.
113
119
  * @param [properties] Properties to set
@@ -3291,6 +3297,9 @@ namespace dataform {
3291
3297
 
3292
3298
  /** ProjectConfig defaultReservation */
3293
3299
  defaultReservation?: (string|null);
3300
+
3301
+ /** ProjectConfig includeTestsInCompiledGraph */
3302
+ includeTestsInCompiledGraph?: (boolean|null);
3294
3303
  }
3295
3304
 
3296
3305
  /** Represents a ProjectConfig. */
@@ -3344,6 +3353,9 @@ namespace dataform {
3344
3353
  /** ProjectConfig defaultReservation. */
3345
3354
  public defaultReservation: string;
3346
3355
 
3356
+ /** ProjectConfig includeTestsInCompiledGraph. */
3357
+ public includeTestsInCompiledGraph: boolean;
3358
+
3347
3359
  /**
3348
3360
  * Creates a new ProjectConfig instance using the specified properties.
3349
3361
  * @param [properties] Properties to set
@@ -11423,6 +11435,30 @@ declare class OperationContext implements IActionContext {
11423
11435
  apply<T>(value: Contextable<IActionContext, T>): T;
11424
11436
  }
11425
11437
 
11438
+ interface ITestConfig extends INamedConfig {
11439
+ dataset?: Resolvable;
11440
+ name?: string;
11441
+ filename?: string;
11442
+ tags?: string[];
11443
+ }
11444
+ declare class Test extends ActionBuilder<dataform.Test> {
11445
+ session: Session;
11446
+ contextableInputs: Map<string, Contextable<IActionContext, string>>;
11447
+ private contextableQuery;
11448
+ private testTarget;
11449
+ private proto;
11450
+ constructor(session?: Session, config?: ITestConfig);
11451
+ config(config: ITestConfig): this;
11452
+ dataset(ref: Resolvable): this;
11453
+ input(refName: string | string[], contextableQuery: Contextable<IActionContext, string>): this;
11454
+ expect(contextableQuery: Contextable<IActionContext, string>): this;
11455
+ getFileName(): string;
11456
+ getTarget(): dataform.Target;
11457
+ getTestTarget(): dataform.Target;
11458
+ setFilename(filename: string): void;
11459
+ compile(): dataform.Test;
11460
+ }
11461
+
11426
11462
  declare type JitViewResult = string | dataform.IJitTableResult;
11427
11463
  declare class View extends ActionBuilder<dataform.Table> {
11428
11464
  session: Session;
@@ -11476,7 +11512,7 @@ interface IRecordDescriptor {
11476
11512
  bigqueryPolicyTags?: string | string[];
11477
11513
  }
11478
11514
 
11479
- declare type Action = Table | View | IncrementalTable | Operation | Assertion | Declaration | Notebook | DataPreparation;
11515
+ declare type Action = Table | View | IncrementalTable | Operation | Assertion | Declaration | Notebook | DataPreparation | Test;
11480
11516
  declare abstract class ActionBuilder<T> {
11481
11517
  session: Session;
11482
11518
  includeAssertionsForDependency: Map<string, boolean>;
@@ -11555,28 +11591,6 @@ interface ILegacyTableAssertions {
11555
11591
  rowConditions?: string[];
11556
11592
  }
11557
11593
 
11558
- interface ITestConfig extends INamedConfig {
11559
- dataset?: Resolvable;
11560
- name?: string;
11561
- filename?: string;
11562
- }
11563
- declare class Test extends ActionBuilder<dataform.Test> {
11564
- session: Session;
11565
- contextableInputs: Map<string, Contextable<IActionContext, string>>;
11566
- private contextableQuery;
11567
- private datasetToTest;
11568
- private proto;
11569
- constructor(session?: Session, config?: ITestConfig);
11570
- config(config: ITestConfig): this;
11571
- dataset(ref: Resolvable): this;
11572
- input(refName: string | string[], contextableQuery: Contextable<IActionContext, string>): this;
11573
- expect(contextableQuery: Contextable<IActionContext, string>): this;
11574
- getFileName(): string;
11575
- getTarget(): undefined;
11576
- setFilename(filename: string): void;
11577
- compile(): dataform.Test;
11578
- }
11579
-
11580
11594
  declare class CompilationSql {
11581
11595
  private readonly project;
11582
11596
  private readonly dataformCoreVersion;
@@ -11608,16 +11622,13 @@ declare class Session {
11608
11622
  canonicalProjectConfig: dataform.ProjectConfig;
11609
11623
  actions: Action[];
11610
11624
  indexedActions: ResolvableMap<Action>;
11611
- tests: {
11612
- [name: string]: Test;
11613
- };
11625
+ tests: Action[];
11614
11626
  actionAssertionMap: ResolvableMap<Action>;
11615
11627
  graphErrors: dataform.IGraphErrors;
11616
11628
  jitContextData: google.protobuf.Struct | undefined;
11617
11629
  constructor(rootDir?: string, projectConfig?: dataform.ProjectConfig, originalProjectConfig?: dataform.ProjectConfig);
11618
11630
  init(rootDir: string, projectConfig?: dataform.ProjectConfig, originalProjectConfig?: dataform.ProjectConfig): void;
11619
11631
  compilationSql(): CompilationSql;
11620
- getContents(filePath: string): string;
11621
11632
  sqlxAction(actionOptions: {
11622
11633
  sqlxConfig: any;
11623
11634
  sqlStatementCount: number;
@@ -11652,6 +11663,7 @@ declare class Session {
11652
11663
  private alterActionName;
11653
11664
  private checkTestNameUniqueness;
11654
11665
  private checkCircularity;
11666
+ private addTestsToCompiledGraph;
11655
11667
  private removeNonUniqueActionsFromCompiledGraph;
11656
11668
  }
11657
11669
 
@@ -11667,7 +11679,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
11667
11679
 
11668
11680
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
11669
11681
 
11670
- declare const version = "3.0.54";
11682
+ declare const version = "3.0.56";
11671
11683
 
11672
11684
  declare const session: Session;
11673
11685
  declare const supportedFeatures: dataform.SupportedFeatures[];