@hypequery/deployment 0.11.1 → 0.12.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.
@@ -1 +1 @@
1
- {"version":3,"file":"semantic-operation-validation.d.ts","sourceRoot":"","sources":["../src/semantic-operation-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EAErB,4BAA4B,EAC7B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAgGD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,qBAAqB,EAChC,OAAO,EAAE,yBAAyB,EAClC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,yBAAyB,CAAC,EACxD,MAAM,EAAE,uBAAuB;AAC/B,mFAAmF;AACnF,OAAO,CAAC,EAAE,4BAA4B,GACrC,SAAS,0BAA0B,EAAE,CA2FvC;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,SAAS,kBAAkB,EAAE,EAC1C,OAAO,EAAE,yBAAyB,EAClC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,yBAAyB,CAAC,GACvD,SAAS,0BAA0B,EAAE,CAgBvC"}
1
+ {"version":3,"file":"semantic-operation-validation.d.ts","sourceRoot":"","sources":["../src/semantic-operation-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EAErB,4BAA4B,EAC7B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAgGD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,qBAAqB,EAChC,OAAO,EAAE,yBAAyB,EAClC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,yBAAyB,CAAC,EACxD,MAAM,EAAE,uBAAuB;AAC/B,mFAAmF;AACnF,OAAO,CAAC,EAAE,4BAA4B,GACrC,SAAS,0BAA0B,EAAE,CA2GvC;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,SAAS,kBAAkB,EAAE,EAC1C,OAAO,EAAE,yBAAyB,EAClC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,yBAAyB,CAAC,GACvD,SAAS,0BAA0B,EAAE,CAgBvC"}
@@ -132,6 +132,14 @@ visible) {
132
132
  if (filters.length > limits.maxFilters) {
133
133
  fail(`At most ${limits.maxFilters} filters may be applied.`, '$.operation.filters');
134
134
  }
135
+ // RFC 0025: a `having` condition names a selected measure (the protocol
136
+ // validator checked that), so a hidden or unknown one has already failed
137
+ // above as a measure. Conditions share the filter budget, as the dataset
138
+ // client and RFC 0018's `maxPredicates` count them.
139
+ const having = operation.having ?? [];
140
+ if (filters.length <= limits.maxFilters && filters.length + having.length > limits.maxFilters) {
141
+ fail(`At most ${limits.maxFilters} filters and having conditions may be applied together.`, '$.operation.having');
142
+ }
135
143
  filters.forEach((expression, index) => {
136
144
  const path = `$.operation.filters[${index}]`;
137
145
  const comparison = comparisonField(expression);
@@ -165,6 +173,11 @@ visible) {
165
173
  if (operation.by !== undefined && !allowed.grains.has(operation.by)) {
166
174
  fail(`Time grain "${operation.by}" is not supported here.`, '$.operation.by');
167
175
  }
176
+ // A zone moves time buckets and time-key bounds; without a time field it
177
+ // would change nothing, so it is refused rather than silently ignored.
178
+ if (operation.timezone !== undefined && allowed.grains.size === 0) {
179
+ fail('This dataset has no time field, so a timezone does not apply.', '$.operation.timezone');
180
+ }
168
181
  if (operation.limit !== undefined && operation.limit > limits.maxRows) {
169
182
  fail(`The row limit may not exceed ${limits.maxRows}.`, '$.operation.limit');
170
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypequery/deployment",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "description": "Verified deployment intake, activation, and semantic invocation for Hypequery analytics",
5
5
  "keywords": [
6
6
  "hypequery",
@@ -26,13 +26,13 @@
26
26
  "README.md"
27
27
  ],
28
28
  "dependencies": {
29
- "@hypequery/protocol": "0.24.1"
29
+ "@hypequery/protocol": "0.25.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/node": "^22.5.0",
32
+ "@types/node": "^26.6.6",
33
33
  "typescript": "^6.0.3",
34
- "vitest": "^5.0.5",
35
- "@hypequery/datasets": "0.27.0"
34
+ "vitest": "^5.1.0",
35
+ "@hypequery/datasets": "0.30.0"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=20"