@dataform/core 2.0.4 → 2.1.0

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.
Files changed (2) hide show
  1. package/bundle.js +19 -2
  2. package/package.json +1 -1
package/bundle.js CHANGED
@@ -22330,7 +22330,15 @@ const SortStyleType = ["compound", "interleaved"];
22330
22330
  const IRedshiftOptionsProperties = () => strictKeysOf()(["distKey", "distStyle", "sortKeys", "sortStyle"]);
22331
22331
  const ISnowflakeOptionsProperties = () => strictKeysOf()(["secure", "transient", "clusterBy"]);
22332
22332
  const ISQLDataWarehouseOptionsProperties = () => strictKeysOf()(["distribution"]);
22333
- const IBigQueryOptionsProperties = () => strictKeysOf()(["partitionBy", "clusterBy", "updatePartitionFilter", "labels", "partitionExpirationDays", "requirePartitionFilter", "additionalOptions"]);
22333
+ const IBigQueryOptionsProperties = () => strictKeysOf()([
22334
+ "partitionBy",
22335
+ "clusterBy",
22336
+ "updatePartitionFilter",
22337
+ "labels",
22338
+ "partitionExpirationDays",
22339
+ "requirePartitionFilter",
22340
+ "additionalOptions"
22341
+ ]);
22334
22342
  const IPrestoOptionsProperties = () => strictKeysOf()(["partitionBy"]);
22335
22343
  const ITableAssertionsProperties = () => strictKeysOf()(["uniqueKey", "uniqueKeys", "nonNull", "rowConditions"]);
22336
22344
  const ITableConfigProperties = () => strictKeysOf()([
@@ -22504,10 +22512,13 @@ class Table {
22504
22512
  : dataform.ActionHermeticity.NON_HERMETIC;
22505
22513
  }
22506
22514
  tags(value) {
22515
+ var _a;
22507
22516
  const newTags = typeof value === "string" ? [value] : value;
22508
22517
  newTags.forEach(t => {
22509
22518
  this.proto.tags.push(t);
22510
22519
  });
22520
+ this.uniqueKeyAssertions.forEach(assertion => assertion.tags(value));
22521
+ (_a = this.rowConditionsAssertion) === null || _a === void 0 ? void 0 : _a.tags(value);
22511
22522
  return this;
22512
22523
  }
22513
22524
  description(description) {
@@ -22547,6 +22558,9 @@ class Table {
22547
22558
  if (uniqueKeys) {
22548
22559
  uniqueKeys.forEach((uniqueKey, index) => {
22549
22560
  const uniqueKeyAssertion = this.session.assert(`${this.proto.target.schema}_${this.proto.target.name}_assertions_uniqueKey_${index}`, ctx => this.session.adapter().indexAssertion(ctx.ref(this.proto.target), uniqueKey));
22561
+ if (this.proto.tags) {
22562
+ uniqueKeyAssertion.tags(this.proto.tags);
22563
+ }
22550
22564
  uniqueKeyAssertion.proto.parentAction = this.proto.target;
22551
22565
  if (this.proto.disabled) {
22552
22566
  uniqueKeyAssertion.disabled();
@@ -22567,6 +22581,9 @@ class Table {
22567
22581
  if (this.proto.disabled) {
22568
22582
  this.rowConditionsAssertion.disabled();
22569
22583
  }
22584
+ if (this.proto.tags) {
22585
+ this.rowConditionsAssertion.tags(this.proto.tags);
22586
+ }
22570
22587
  }
22571
22588
  return this;
22572
22589
  }
@@ -23742,7 +23759,7 @@ class RefReplacingContext {
23742
23759
  }
23743
23760
  }
23744
23761
 
23745
- const version = "2.0.4";
23762
+ const version = "2.1.0";
23746
23763
 
23747
23764
  const SQL_DATA_WAREHOUSE_DIST_HASH_REGEXP = new RegExp("HASH\\s*\\(\\s*\\w*\\s*\\)\\s*");
23748
23765
  const DEFAULT_CONFIG = {
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "version": "2.0.4",
53
+ "version": "2.1.0",
54
54
  "name": "@dataform/core",
55
55
  "description": "Dataform core API.",
56
56
  "main": "bundle.js",