node-autotask 0.63.0 → 0.63.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/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.63.1] - 2026-11-12
11
+
12
+ ### Fixed
13
+ - `queryBounded({ latest })` on `user_defined_field_definitions` and `user_defined_field_list_items` no longer
14
+ refuses with `LATEST_WINDOW_INCOMPLETE` once the visible rows pass the walk limit (#435). Their pin is
15
+ count-only `unfiltered-blind`, so the blind unfiltered count is now re-probed once with the filtered
16
+ `id gt 0` count, which returns the real total, and the normal full-set or threshold mode runs on it (a
17
+ re-probe 0 falls back to the walk, so the #432 empty answer cannot return). An
18
+ unfiltered UDF `latest` read now costs one extra count call. Other blind surfaces keep the blind walk.
19
+ - `npm run release:check` no longer says a version "is published" when it is only recorded in
20
+ `scripts/published-plan-hashes.json` (#435). The check is offline and cannot tell the two apart, so the
21
+ messages now say "recorded", and the changed-plan failure names both remedies (a minor bump if published,
22
+ re-record if not).
23
+
10
24
  ## [0.63.0] - 2026-11-12
11
25
 
12
26
  ### Changed
@@ -1,4 +1,4 @@
1
- import { GenericResource, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, RELATIONSHIP_MAP, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, numericIds, IN_FILTER_CAP, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, cursorToPath } from './chunk-LCZJ3STD.js';
1
+ import { GenericResource, parseIdentifier, AutotaskConfigError, StaleObjectError, buildDryRunResult, RELATIONSHIP_MAP, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, numericIds, IN_FILTER_CAP, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, isAutotaskError, resolveLineOfBusinessChain, uiLinkFor, refuse, queryRows, mergePartialBody, AutotaskError, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, cursorToPath } from './chunk-EUD4CCRR.js';
2
2
  import { loadCapabilityRecords } from './chunk-X46S4BDG.js';
3
3
 
4
4
  // src/resources/special/configuration_items.ts
@@ -16792,7 +16792,9 @@ var QueryBase = class {
16792
16792
  * reached with a live next cursor, or the 1000-page guard) →
16793
16793
  * LATEST_WINDOW_INCOMPLETE — a truncated enumeration's top-N-by-id is
16794
16794
  * unprovable, so the op refuses instead of returning a possibly-wrong
16795
- * answer.
16795
+ * answer. Exception (issue #435): a COUNT-only `unfiltered-blind` pin
16796
+ * (no query pin) re-probes with the filtered `count(id gt 0)`, which is
16797
+ * not blind, and takes branch 2 with that total.
16796
16798
  * `includeFields` always carries `id` (the P1 id-append,
16797
16799
  * `buildQueryRequest`), which `latest` sorts on. Pure read; no mutation
16798
16800
  * paths involved; every count probe goes to the wire (counts are never
@@ -16801,7 +16803,14 @@ var QueryBase = class {
16801
16803
  */
16802
16804
  async latestWalk(params, limit, latest) {
16803
16805
  const baseConds = normalizedConditions(params.filter) ?? [];
16804
- const total = await this.countGlobal({ filter: params.filter });
16806
+ let total = await this.countGlobal({ filter: params.filter });
16807
+ let probes = 1;
16808
+ const stamps = BLIND_SURFACE_STAMPS[this.config.key];
16809
+ if (typeof total === "object" && total !== null && total.blindSurface !== void 0 && stamps?.count?.kind === "unfiltered-blind" && stamps.query === void 0) {
16810
+ total = await this.countAboveId(baseConds, 0n);
16811
+ probes = 2;
16812
+ if (total === 0) return this.latestBlindWalk(params, limit, latest);
16813
+ }
16805
16814
  if (typeof total === "object" && total !== null) {
16806
16815
  const rec = total;
16807
16816
  if (rec.blindSurface !== void 0) {
@@ -16823,7 +16832,6 @@ var QueryBase = class {
16823
16832
  }
16824
16833
  return this.finishLatest(items2, latest, pages3);
16825
16834
  }
16826
- let probes = 1;
16827
16835
  const spend = () => {
16828
16836
  probes += 1;
16829
16837
  if (probes > LATEST_MAX_COUNT_PROBES) throw this.latestThresholdUnresolvedError();