@dataform/core 3.0.46 → 3.0.48

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
@@ -9761,6 +9761,9 @@ namespace dataform {
9761
9761
 
9762
9762
  /** JitCompilationRequest compilationTargetType */
9763
9763
  compilationTargetType?: (dataform.JitCompilationTargetType|null);
9764
+
9765
+ /** JitCompilationRequest filePaths */
9766
+ filePaths?: (string[]|null);
9764
9767
  }
9765
9768
 
9766
9769
  /** Represents a JitCompilationRequest. */
@@ -9787,6 +9790,9 @@ namespace dataform {
9787
9790
  /** JitCompilationRequest compilationTargetType. */
9788
9791
  public compilationTargetType: dataform.JitCompilationTargetType;
9789
9792
 
9793
+ /** JitCompilationRequest filePaths. */
9794
+ public filePaths: string[];
9795
+
9790
9796
  /**
9791
9797
  * Creates a new JitCompilationRequest instance using the specified properties.
9792
9798
  * @param [properties] Properties to set
@@ -10843,6 +10849,7 @@ declare type JitContext<T> = T & {
10843
10849
  data?: {
10844
10850
  [k: string]: any;
10845
10851
  };
10852
+ request: dataform.IJitCompilationRequest;
10846
10853
  };
10847
10854
  declare type JitContextable<Context, T> = string | ((jctx: JitContext<Context>) => Promise<T>);
10848
10855
 
@@ -11262,16 +11269,31 @@ declare class CompilationSql {
11262
11269
  rowConditionsAssertion(dataset: string, rowConditions: string[]): string;
11263
11270
  }
11264
11271
 
11272
+ declare class ResolvableMap<T> {
11273
+ private byName;
11274
+ private bySchemaAndName;
11275
+ private byDatabaseAndName;
11276
+ private byDatabaseSchemaAndName;
11277
+ constructor(values?: Array<{
11278
+ actionTarget: dataform.ITarget;
11279
+ value: T;
11280
+ }>);
11281
+ set(actionTarget: dataform.ITarget, value: T): void;
11282
+ find(actionTarget: dataform.ITarget): T[];
11283
+ private setByNameLevel;
11284
+ private setBySchemaLevel;
11285
+ }
11286
+
11265
11287
  declare class Session {
11266
11288
  rootDir: string;
11267
11289
  projectConfig: dataform.ProjectConfig;
11268
11290
  canonicalProjectConfig: dataform.ProjectConfig;
11269
11291
  actions: Action[];
11270
- indexedActions: ActionMap;
11292
+ indexedActions: ResolvableMap<Action>;
11271
11293
  tests: {
11272
11294
  [name: string]: Test;
11273
11295
  };
11274
- actionAssertionMap: ActionMap;
11296
+ actionAssertionMap: ResolvableMap<Action>;
11275
11297
  graphErrors: dataform.IGraphErrors;
11276
11298
  jitContextData: google.protobuf.Struct | undefined;
11277
11299
  constructor(rootDir?: string, projectConfig?: dataform.ProjectConfig, originalProjectConfig?: dataform.ProjectConfig);
@@ -11313,28 +11335,23 @@ declare class Session {
11313
11335
  private checkCircularity;
11314
11336
  private removeNonUniqueActionsFromCompiledGraph;
11315
11337
  }
11316
- declare class ActionMap {
11317
- private byName;
11318
- private bySchemaAndName;
11319
- private byDatabaseAndName;
11320
- private byDatabaseSchemaAndName;
11321
- constructor(actions: Action[]);
11322
- set(actionTarget: dataform.ITarget, assertionTarget: Action): void;
11323
- find(target: dataform.ITarget): Action[];
11324
- private setByNameLevel;
11325
- private setBySchemaLevel;
11326
- }
11327
11338
 
11328
11339
  interface IDataformExtension {
11329
11340
  compile(request: dataform.ICompileExecutionRequest, session: Session): void;
11330
11341
  }
11331
11342
 
11343
+ interface IJitCompiler {
11344
+ compile: (request: Uint8Array) => Promise<Uint8Array>;
11345
+ }
11346
+ declare type RpcCallback = (method: string, request: Uint8Array, callback: (error: Error | null, response: Uint8Array) => void) => void;
11347
+ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
11348
+
11332
11349
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
11333
11350
 
11334
- declare const version = "3.0.46";
11351
+ declare const version = "3.0.48";
11335
11352
 
11336
11353
  declare const session: Session;
11337
11354
  declare const supportedFeatures: dataform.SupportedFeatures[];
11338
11355
  declare function indexFileGenerator(): void;
11339
11356
 
11340
- export { IDataformExtension, compile as compiler, indexFileGenerator, main, session, supportedFeatures, version };
11357
+ export { IDataformExtension, IJitCompiler, compile as compiler, indexFileGenerator, jitCompiler, main, session, supportedFeatures, version };