node-autotask 0.61.0 → 0.62.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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk4SEIDMF6_cjs = require('../chunk-4SEIDMF6.cjs');
4
- require('../chunk-TE7RUKU2.cjs');
3
+ var chunkVDYUG6RK_cjs = require('../chunk-VDYUG6RK.cjs');
4
+ require('../chunk-ODPM4YVG.cjs');
5
5
  var chunkBD4AUGCJ_cjs = require('../chunk-BD4AUGCJ.cjs');
6
6
 
7
7
  // src/operations/describeWrite.ts
@@ -78,194 +78,194 @@ function describeWrite(dry, record, opts) {
78
78
 
79
79
  Object.defineProperty(exports, "AGGREGATE_DATE_BUCKETS", {
80
80
  enumerable: true,
81
- get: function () { return chunk4SEIDMF6_cjs.AGGREGATE_DATE_BUCKETS; }
81
+ get: function () { return chunkVDYUG6RK_cjs.AGGREGATE_DATE_BUCKETS; }
82
82
  });
83
83
  Object.defineProperty(exports, "AGGREGATE_DEFAULT_LIMIT", {
84
84
  enumerable: true,
85
- get: function () { return chunk4SEIDMF6_cjs.AGGREGATE_DEFAULT_LIMIT; }
85
+ get: function () { return chunkVDYUG6RK_cjs.AGGREGATE_DEFAULT_LIMIT; }
86
86
  });
87
87
  Object.defineProperty(exports, "AGGREGATE_DEFAULT_TOP", {
88
88
  enumerable: true,
89
- get: function () { return chunk4SEIDMF6_cjs.AGGREGATE_DEFAULT_TOP; }
89
+ get: function () { return chunkVDYUG6RK_cjs.AGGREGATE_DEFAULT_TOP; }
90
90
  });
91
91
  Object.defineProperty(exports, "AGGREGATE_TOP_MAX", {
92
92
  enumerable: true,
93
- get: function () { return chunk4SEIDMF6_cjs.AGGREGATE_TOP_MAX; }
93
+ get: function () { return chunkVDYUG6RK_cjs.AGGREGATE_TOP_MAX; }
94
94
  });
95
95
  Object.defineProperty(exports, "CREATE_BLOCKER_KINDS", {
96
96
  enumerable: true,
97
- get: function () { return chunk4SEIDMF6_cjs.CREATE_BLOCKER_KINDS; }
97
+ get: function () { return chunkVDYUG6RK_cjs.CREATE_BLOCKER_KINDS; }
98
98
  });
99
99
  Object.defineProperty(exports, "EXPAND_RESOURCE_NAMES_MAX_IDS", {
100
100
  enumerable: true,
101
- get: function () { return chunk4SEIDMF6_cjs.EXPAND_RESOURCE_NAMES_MAX_IDS; }
101
+ get: function () { return chunkVDYUG6RK_cjs.EXPAND_RESOURCE_NAMES_MAX_IDS; }
102
102
  });
103
103
  Object.defineProperty(exports, "FETCH_BY_IDS_CHUNK_SIZE", {
104
104
  enumerable: true,
105
- get: function () { return chunk4SEIDMF6_cjs.FETCH_BY_IDS_CHUNK_SIZE; }
105
+ get: function () { return chunkVDYUG6RK_cjs.FETCH_BY_IDS_CHUNK_SIZE; }
106
106
  });
107
107
  Object.defineProperty(exports, "FETCH_BY_IDS_MAX_ITEMS", {
108
108
  enumerable: true,
109
- get: function () { return chunk4SEIDMF6_cjs.FETCH_BY_IDS_MAX_ITEMS; }
109
+ get: function () { return chunkVDYUG6RK_cjs.FETCH_BY_IDS_MAX_ITEMS; }
110
110
  });
111
111
  Object.defineProperty(exports, "FIELD_CACHE_KINDS", {
112
112
  enumerable: true,
113
- get: function () { return chunk4SEIDMF6_cjs.FIELD_CACHE_KINDS; }
113
+ get: function () { return chunkVDYUG6RK_cjs.FIELD_CACHE_KINDS; }
114
114
  });
115
115
  Object.defineProperty(exports, "FIELD_CATALOG_HONESTY_NOTE", {
116
116
  enumerable: true,
117
- get: function () { return chunk4SEIDMF6_cjs.FIELD_CATALOG_HONESTY_NOTE; }
117
+ get: function () { return chunkVDYUG6RK_cjs.FIELD_CATALOG_HONESTY_NOTE; }
118
118
  });
119
119
  Object.defineProperty(exports, "INVOKE_OPTION_KEYS", {
120
120
  enumerable: true,
121
- get: function () { return chunk4SEIDMF6_cjs.INVOKE_OPTION_KEYS; }
121
+ get: function () { return chunkVDYUG6RK_cjs.INVOKE_OPTION_KEYS; }
122
122
  });
123
123
  Object.defineProperty(exports, "MAX_FIELD_CATALOG_WIRE", {
124
124
  enumerable: true,
125
- get: function () { return chunk4SEIDMF6_cjs.MAX_FIELD_CATALOG_WIRE; }
125
+ get: function () { return chunkVDYUG6RK_cjs.MAX_FIELD_CATALOG_WIRE; }
126
126
  });
127
127
  Object.defineProperty(exports, "MIN_FIELD_CATALOG_MAX_BYTES", {
128
128
  enumerable: true,
129
- get: function () { return chunk4SEIDMF6_cjs.MIN_FIELD_CATALOG_MAX_BYTES; }
129
+ get: function () { return chunkVDYUG6RK_cjs.MIN_FIELD_CATALOG_MAX_BYTES; }
130
130
  });
131
131
  Object.defineProperty(exports, "PARAMS_BAG_KEYS", {
132
132
  enumerable: true,
133
- get: function () { return chunk4SEIDMF6_cjs.PARAMS_BAG_KEYS; }
133
+ get: function () { return chunkVDYUG6RK_cjs.PARAMS_BAG_KEYS; }
134
134
  });
135
135
  Object.defineProperty(exports, "PICKLIST_VALUE_NOT_SERVED_NOTE", {
136
136
  enumerable: true,
137
- get: function () { return chunk4SEIDMF6_cjs.PICKLIST_VALUE_NOT_SERVED_NOTE; }
137
+ get: function () { return chunkVDYUG6RK_cjs.PICKLIST_VALUE_NOT_SERVED_NOTE; }
138
138
  });
139
139
  Object.defineProperty(exports, "UI_LINK_ENTITIES", {
140
140
  enumerable: true,
141
- get: function () { return chunk4SEIDMF6_cjs.UI_LINK_ENTITIES; }
141
+ get: function () { return chunkVDYUG6RK_cjs.UI_LINK_ENTITIES; }
142
142
  });
143
143
  Object.defineProperty(exports, "WORKFLOW_RESOURCES", {
144
144
  enumerable: true,
145
- get: function () { return chunk4SEIDMF6_cjs.WORKFLOW_RESOURCES; }
145
+ get: function () { return chunkVDYUG6RK_cjs.WORKFLOW_RESOURCES; }
146
146
  });
147
147
  Object.defineProperty(exports, "aggregate", {
148
148
  enumerable: true,
149
- get: function () { return chunk4SEIDMF6_cjs.aggregate; }
149
+ get: function () { return chunkVDYUG6RK_cjs.aggregate; }
150
150
  });
151
151
  Object.defineProperty(exports, "arAging", {
152
152
  enumerable: true,
153
- get: function () { return chunk4SEIDMF6_cjs.arAging; }
153
+ get: function () { return chunkVDYUG6RK_cjs.arAging; }
154
154
  });
155
155
  Object.defineProperty(exports, "buildUiLink", {
156
156
  enumerable: true,
157
- get: function () { return chunk4SEIDMF6_cjs.buildUiLink; }
157
+ get: function () { return chunkVDYUG6RK_cjs.buildUiLink; }
158
158
  });
159
159
  Object.defineProperty(exports, "createGuidance", {
160
160
  enumerable: true,
161
- get: function () { return chunk4SEIDMF6_cjs.createGuidance; }
161
+ get: function () { return chunkVDYUG6RK_cjs.createGuidance; }
162
162
  });
163
163
  Object.defineProperty(exports, "dateBucketLabel", {
164
164
  enumerable: true,
165
- get: function () { return chunk4SEIDMF6_cjs.dateBucketLabel; }
165
+ get: function () { return chunkVDYUG6RK_cjs.dateBucketLabel; }
166
166
  });
167
167
  Object.defineProperty(exports, "effectiveRequiredFields", {
168
168
  enumerable: true,
169
- get: function () { return chunk4SEIDMF6_cjs.effectiveRequiredFields; }
169
+ get: function () { return chunkVDYUG6RK_cjs.effectiveRequiredFields; }
170
170
  });
171
171
  Object.defineProperty(exports, "expandResourceNames", {
172
172
  enumerable: true,
173
- get: function () { return chunk4SEIDMF6_cjs.expandResourceNames; }
173
+ get: function () { return chunkVDYUG6RK_cjs.expandResourceNames; }
174
174
  });
175
175
  Object.defineProperty(exports, "fetchByIds", {
176
176
  enumerable: true,
177
- get: function () { return chunk4SEIDMF6_cjs.fetchByIds; }
177
+ get: function () { return chunkVDYUG6RK_cjs.fetchByIds; }
178
178
  });
179
179
  Object.defineProperty(exports, "fieldCatalog", {
180
180
  enumerable: true,
181
- get: function () { return chunk4SEIDMF6_cjs.fieldCatalog; }
181
+ get: function () { return chunkVDYUG6RK_cjs.fieldCatalog; }
182
182
  });
183
183
  Object.defineProperty(exports, "foldFlattenedOpts", {
184
184
  enumerable: true,
185
- get: function () { return chunk4SEIDMF6_cjs.foldFlattenedOpts; }
185
+ get: function () { return chunkVDYUG6RK_cjs.foldFlattenedOpts; }
186
186
  });
187
187
  Object.defineProperty(exports, "invoke", {
188
188
  enumerable: true,
189
- get: function () { return chunk4SEIDMF6_cjs.invoke; }
189
+ get: function () { return chunkVDYUG6RK_cjs.invoke; }
190
190
  });
191
191
  Object.defineProperty(exports, "invokeDelete", {
192
192
  enumerable: true,
193
- get: function () { return chunk4SEIDMF6_cjs.invokeDelete; }
193
+ get: function () { return chunkVDYUG6RK_cjs.invokeDelete; }
194
194
  });
195
195
  Object.defineProperty(exports, "invokeRead", {
196
196
  enumerable: true,
197
- get: function () { return chunk4SEIDMF6_cjs.invokeRead; }
197
+ get: function () { return chunkVDYUG6RK_cjs.invokeRead; }
198
198
  });
199
199
  Object.defineProperty(exports, "invokeWrite", {
200
200
  enumerable: true,
201
- get: function () { return chunk4SEIDMF6_cjs.invokeWrite; }
201
+ get: function () { return chunkVDYUG6RK_cjs.invokeWrite; }
202
202
  });
203
203
  Object.defineProperty(exports, "needsConfirmation", {
204
204
  enumerable: true,
205
- get: function () { return chunk4SEIDMF6_cjs.needsConfirmation; }
205
+ get: function () { return chunkVDYUG6RK_cjs.needsConfirmation; }
206
206
  });
207
207
  Object.defineProperty(exports, "nonChargeableWork", {
208
208
  enumerable: true,
209
- get: function () { return chunk4SEIDMF6_cjs.nonChargeableWork; }
209
+ get: function () { return chunkVDYUG6RK_cjs.nonChargeableWork; }
210
210
  });
211
211
  Object.defineProperty(exports, "notPersistedFields", {
212
212
  enumerable: true,
213
- get: function () { return chunk4SEIDMF6_cjs.notPersistedFields; }
213
+ get: function () { return chunkVDYUG6RK_cjs.notPersistedFields; }
214
214
  });
215
215
  Object.defineProperty(exports, "portfolioMargin", {
216
216
  enumerable: true,
217
- get: function () { return chunk4SEIDMF6_cjs.portfolioMargin; }
217
+ get: function () { return chunkVDYUG6RK_cjs.portfolioMargin; }
218
218
  });
219
219
  Object.defineProperty(exports, "recurringRevenue", {
220
220
  enumerable: true,
221
- get: function () { return chunk4SEIDMF6_cjs.recurringRevenue; }
221
+ get: function () { return chunkVDYUG6RK_cjs.recurringRevenue; }
222
222
  });
223
223
  Object.defineProperty(exports, "relationshipMap", {
224
224
  enumerable: true,
225
- get: function () { return chunk4SEIDMF6_cjs.relationshipMap; }
225
+ get: function () { return chunkVDYUG6RK_cjs.relationshipMap; }
226
226
  });
227
227
  Object.defineProperty(exports, "resolveAny", {
228
228
  enumerable: true,
229
- get: function () { return chunk4SEIDMF6_cjs.resolveAny; }
229
+ get: function () { return chunkVDYUG6RK_cjs.resolveAny; }
230
230
  });
231
231
  Object.defineProperty(exports, "resolveStaff", {
232
232
  enumerable: true,
233
- get: function () { return chunk4SEIDMF6_cjs.resolveStaff; }
233
+ get: function () { return chunkVDYUG6RK_cjs.resolveStaff; }
234
234
  });
235
235
  Object.defineProperty(exports, "revenueRollup", {
236
236
  enumerable: true,
237
- get: function () { return chunk4SEIDMF6_cjs.revenueRollup; }
237
+ get: function () { return chunkVDYUG6RK_cjs.revenueRollup; }
238
238
  });
239
239
  Object.defineProperty(exports, "sanitiseResult", {
240
240
  enumerable: true,
241
- get: function () { return chunk4SEIDMF6_cjs.sanitiseResult; }
241
+ get: function () { return chunkVDYUG6RK_cjs.sanitiseResult; }
242
242
  });
243
243
  Object.defineProperty(exports, "searchAcrossResources", {
244
244
  enumerable: true,
245
- get: function () { return chunk4SEIDMF6_cjs.searchAcrossResources; }
245
+ get: function () { return chunkVDYUG6RK_cjs.searchAcrossResources; }
246
246
  });
247
247
  Object.defineProperty(exports, "uiLink", {
248
248
  enumerable: true,
249
- get: function () { return chunk4SEIDMF6_cjs.uiLink; }
249
+ get: function () { return chunkVDYUG6RK_cjs.uiLink; }
250
250
  });
251
251
  Object.defineProperty(exports, "unknownKeysRefusal", {
252
252
  enumerable: true,
253
- get: function () { return chunk4SEIDMF6_cjs.unknownKeysRefusal; }
253
+ get: function () { return chunkVDYUG6RK_cjs.unknownKeysRefusal; }
254
254
  });
255
255
  Object.defineProperty(exports, "validateDispatchArgs", {
256
256
  enumerable: true,
257
- get: function () { return chunk4SEIDMF6_cjs.validateDispatchArgs; }
257
+ get: function () { return chunkVDYUG6RK_cjs.validateDispatchArgs; }
258
258
  });
259
259
  Object.defineProperty(exports, "validateInvokeOptions", {
260
260
  enumerable: true,
261
- get: function () { return chunk4SEIDMF6_cjs.validateInvokeOptions; }
261
+ get: function () { return chunkVDYUG6RK_cjs.validateInvokeOptions; }
262
262
  });
263
263
  Object.defineProperty(exports, "validateParamsBag", {
264
264
  enumerable: true,
265
- get: function () { return chunk4SEIDMF6_cjs.validateParamsBag; }
265
+ get: function () { return chunkVDYUG6RK_cjs.validateParamsBag; }
266
266
  });
267
267
  Object.defineProperty(exports, "wipHours", {
268
268
  enumerable: true,
269
- get: function () { return chunk4SEIDMF6_cjs.wipHours; }
269
+ get: function () { return chunkVDYUG6RK_cjs.wipHours; }
270
270
  });
271
271
  exports.describeWrite = describeWrite;
@@ -1,6 +1,6 @@
1
- import { a3 as RowNamesSummary, a4 as BlindSurfaceInfo, a5 as RelationshipResource, a6 as CreateGuidanceValueRequirement, a7 as CreateGuidanceRow, a8 as CreateBlockerKind, a9 as CreateGuidanceReport, aa as FieldCacheKind } from '../index-D1dW10iM.cjs';
1
+ import { a3 as RowNamesSummary, a4 as BlindSurfaceInfo, a5 as RelationshipResource, a6 as CreateGuidanceValueRequirement, a7 as CreateGuidanceRow, a8 as CreateBlockerKind, a9 as CreateGuidanceReport, aa as FieldCacheKind } from '../index-BXJOPL7w.cjs';
2
2
  import { AutotaskClient, ProfitabilityLabourCostMethod, ZoneName } from '../index.cjs';
3
- export { ab as FIELD_CACHE_KINDS } from '../index-D1dW10iM.cjs';
3
+ export { ab as FIELD_CACHE_KINDS } from '../index-BXJOPL7w.cjs';
4
4
  import { I as Identifier, E as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-COQEG55Q.cjs';
5
5
  export { a as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-COQEG55Q.cjs';
6
6
  import { CapabilityRecord } from '../capabilities.cjs';
@@ -1,6 +1,6 @@
1
- import { a3 as RowNamesSummary, a4 as BlindSurfaceInfo, a5 as RelationshipResource, a6 as CreateGuidanceValueRequirement, a7 as CreateGuidanceRow, a8 as CreateBlockerKind, a9 as CreateGuidanceReport, aa as FieldCacheKind } from '../index-Bc3yX2Nc.js';
1
+ import { a3 as RowNamesSummary, a4 as BlindSurfaceInfo, a5 as RelationshipResource, a6 as CreateGuidanceValueRequirement, a7 as CreateGuidanceRow, a8 as CreateBlockerKind, a9 as CreateGuidanceReport, aa as FieldCacheKind } from '../index-C4wZRw9N.js';
2
2
  import { AutotaskClient, ProfitabilityLabourCostMethod, ZoneName } from '../index.js';
3
- export { ab as FIELD_CACHE_KINDS } from '../index-Bc3yX2Nc.js';
3
+ export { ab as FIELD_CACHE_KINDS } from '../index-C4wZRw9N.js';
4
4
  import { I as Identifier, E as EmptyReasonInfo, D as DryRunResult, P as PickListValue } from '../index-COQEG55Q.js';
5
5
  export { a as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-COQEG55Q.js';
6
6
  import { CapabilityRecord } from '../capabilities.js';
@@ -1,5 +1,5 @@
1
- export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, CREATE_BLOCKER_KINDS, EXPAND_RESOURCE_NAMES_MAX_IDS, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FIELD_CACHE_KINDS, FIELD_CATALOG_HONESTY_NOTE, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, PICKLIST_VALUE_NOT_SERVED_NOTE, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, effectiveRequiredFields, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours } from '../chunk-BSFJ5JYP.js';
2
- import '../chunk-GUXVYGBK.js';
1
+ export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, CREATE_BLOCKER_KINDS, EXPAND_RESOURCE_NAMES_MAX_IDS, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FIELD_CACHE_KINDS, FIELD_CATALOG_HONESTY_NOTE, INVOKE_OPTION_KEYS, MAX_FIELD_CATALOG_WIRE, MIN_FIELD_CATALOG_MAX_BYTES, PARAMS_BAG_KEYS, PICKLIST_VALUE_NOT_SERVED_NOTE, UI_LINK_ENTITIES, WORKFLOW_RESOURCES, aggregate, arAging, buildUiLink, createGuidance, dateBucketLabel, effectiveRequiredFields, expandResourceNames, fetchByIds, fieldCatalog, foldFlattenedOpts, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, nonChargeableWork, notPersistedFields, portfolioMargin, recurringRevenue, relationshipMap, resolveAny, resolveStaff, revenueRollup, sanitiseResult, searchAcrossResources, uiLink, unknownKeysRefusal, validateDispatchArgs, validateInvokeOptions, validateParamsBag, wipHours } from '../chunk-TGCFJCWN.js';
2
+ import '../chunk-XJNNCMBS.js';
3
3
  import { REDACTED } from '../chunk-7NKB4UXV.js';
4
4
 
5
5
  // src/operations/describeWrite.ts
package/dist/pool.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkJTRC7XEH_cjs = require('./chunk-JTRC7XEH.cjs');
4
- require('./chunk-CWH2SLP2.cjs');
5
- var chunk4SEIDMF6_cjs = require('./chunk-4SEIDMF6.cjs');
6
- require('./chunk-TE7RUKU2.cjs');
3
+ var chunkLFEMZVOV_cjs = require('./chunk-LFEMZVOV.cjs');
4
+ require('./chunk-QHM6ROAE.cjs');
5
+ var chunkVDYUG6RK_cjs = require('./chunk-VDYUG6RK.cjs');
6
+ require('./chunk-ODPM4YVG.cjs');
7
7
  require('./chunk-BD4AUGCJ.cjs');
8
8
  var crypto = require('crypto');
9
9
 
10
10
  function createClientPool(options = {}) {
11
11
  const maxSize = options.maxSize ?? 128;
12
12
  if (!Number.isInteger(maxSize) || maxSize < 1) {
13
- throw new chunk4SEIDMF6_cjs.AutotaskConfigError(
13
+ throw new chunkVDYUG6RK_cjs.AutotaskConfigError(
14
14
  `ClientPool maxSize must be a positive integer (got ${String(options.maxSize)})`
15
15
  );
16
16
  }
@@ -25,7 +25,7 @@ function createClientPool(options = {}) {
25
25
  readCaches.set(key, existing);
26
26
  return existing;
27
27
  }
28
- const created = chunk4SEIDMF6_cjs.buildReadCache(config);
28
+ const created = chunkVDYUG6RK_cjs.buildReadCache(config);
29
29
  if (created === void 0) return void 0;
30
30
  readCaches.set(key, created);
31
31
  while (readCaches.size > maxSize) {
@@ -42,7 +42,7 @@ function createClientPool(options = {}) {
42
42
  return { ...config, cache };
43
43
  }
44
44
  function keyFor(config) {
45
- const resolved = chunk4SEIDMF6_cjs.resolveCredentials(config);
45
+ const resolved = chunkVDYUG6RK_cjs.resolveCredentials(config);
46
46
  const tuple = [
47
47
  resolved.userName,
48
48
  resolved.apiIntegrationCode,
@@ -65,7 +65,7 @@ function createClientPool(options = {}) {
65
65
  const oldest = entries.keys().next().value;
66
66
  if (oldest !== void 0) entries.delete(oldest);
67
67
  }
68
- const client = new chunkJTRC7XEH_cjs.AutotaskClient(withSharedCache(config, sharedCacheFor(key, config)));
68
+ const client = new chunkLFEMZVOV_cjs.AutotaskClient(withSharedCache(config, sharedCacheFor(key, config)));
69
69
  entries.set(key, client);
70
70
  return client;
71
71
  },
package/dist/pool.js CHANGED
@@ -1,7 +1,7 @@
1
- import { AutotaskClient } from './chunk-NFTWRHUR.js';
2
- import './chunk-O63FO5XC.js';
3
- import { AutotaskConfigError, buildReadCache, resolveCredentials } from './chunk-BSFJ5JYP.js';
4
- import './chunk-GUXVYGBK.js';
1
+ import { AutotaskClient } from './chunk-O6SYTORL.js';
2
+ import './chunk-S4YR3RLJ.js';
3
+ import { AutotaskConfigError, buildReadCache, resolveCredentials } from './chunk-TGCFJCWN.js';
4
+ import './chunk-XJNNCMBS.js';
5
5
  import './chunk-7NKB4UXV.js';
6
6
  import { createHash } from 'crypto';
7
7
 
@@ -1,106 +1,106 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-S5CH4H6H.cjs');
4
- var chunkCWH2SLP2_cjs = require('../chunk-CWH2SLP2.cjs');
5
- var chunk4SEIDMF6_cjs = require('../chunk-4SEIDMF6.cjs');
6
- require('../chunk-TE7RUKU2.cjs');
4
+ var chunkQHM6ROAE_cjs = require('../chunk-QHM6ROAE.cjs');
5
+ var chunkVDYUG6RK_cjs = require('../chunk-VDYUG6RK.cjs');
6
+ require('../chunk-ODPM4YVG.cjs');
7
7
  require('../chunk-BD4AUGCJ.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "AuthenticateResource", {
12
12
  enumerable: true,
13
- get: function () { return chunkCWH2SLP2_cjs.AuthenticateResource; }
13
+ get: function () { return chunkQHM6ROAE_cjs.AuthenticateResource; }
14
14
  });
15
15
  Object.defineProperty(exports, "ConfigurationItemsResource", {
16
16
  enumerable: true,
17
- get: function () { return chunkCWH2SLP2_cjs.ConfigurationItemsResource; }
17
+ get: function () { return chunkQHM6ROAE_cjs.ConfigurationItemsResource; }
18
18
  });
19
19
  Object.defineProperty(exports, "ContactsResource", {
20
20
  enumerable: true,
21
- get: function () { return chunkCWH2SLP2_cjs.ContactsResource; }
21
+ get: function () { return chunkQHM6ROAE_cjs.ContactsResource; }
22
22
  });
23
23
  Object.defineProperty(exports, "EntityInformationResource", {
24
24
  enumerable: true,
25
- get: function () { return chunkCWH2SLP2_cjs.EntityInformationResource; }
25
+ get: function () { return chunkQHM6ROAE_cjs.EntityInformationResource; }
26
26
  });
27
27
  Object.defineProperty(exports, "InventoryProductsResource", {
28
28
  enumerable: true,
29
- get: function () { return chunkCWH2SLP2_cjs.InventoryProductsResource; }
29
+ get: function () { return chunkQHM6ROAE_cjs.InventoryProductsResource; }
30
30
  });
31
31
  Object.defineProperty(exports, "ModulesResource", {
32
32
  enumerable: true,
33
- get: function () { return chunkCWH2SLP2_cjs.ModulesResource; }
33
+ get: function () { return chunkQHM6ROAE_cjs.ModulesResource; }
34
34
  });
35
35
  Object.defineProperty(exports, "QuotesResource", {
36
36
  enumerable: true,
37
- get: function () { return chunkCWH2SLP2_cjs.QuotesResource; }
37
+ get: function () { return chunkQHM6ROAE_cjs.QuotesResource; }
38
38
  });
39
39
  Object.defineProperty(exports, "ResourceTimeOffAdditionalResource", {
40
40
  enumerable: true,
41
- get: function () { return chunkCWH2SLP2_cjs.ResourceTimeOffAdditionalResource; }
41
+ get: function () { return chunkQHM6ROAE_cjs.ResourceTimeOffAdditionalResource; }
42
42
  });
43
43
  Object.defineProperty(exports, "ResourceTimeOffBalancesResource", {
44
44
  enumerable: true,
45
- get: function () { return chunkCWH2SLP2_cjs.ResourceTimeOffBalancesResource; }
45
+ get: function () { return chunkQHM6ROAE_cjs.ResourceTimeOffBalancesResource; }
46
46
  });
47
47
  Object.defineProperty(exports, "ResourcesResource", {
48
48
  enumerable: true,
49
- get: function () { return chunkCWH2SLP2_cjs.ResourcesResource; }
49
+ get: function () { return chunkQHM6ROAE_cjs.ResourcesResource; }
50
50
  });
51
51
  Object.defineProperty(exports, "ServiceCallsResource", {
52
52
  enumerable: true,
53
- get: function () { return chunkCWH2SLP2_cjs.ServiceCallsResource; }
53
+ get: function () { return chunkQHM6ROAE_cjs.ServiceCallsResource; }
54
54
  });
55
55
  Object.defineProperty(exports, "ThresholdInformationResource", {
56
56
  enumerable: true,
57
- get: function () { return chunkCWH2SLP2_cjs.ThresholdInformationResource; }
57
+ get: function () { return chunkQHM6ROAE_cjs.ThresholdInformationResource; }
58
58
  });
59
59
  Object.defineProperty(exports, "TicketChargesResource", {
60
60
  enumerable: true,
61
- get: function () { return chunkCWH2SLP2_cjs.TicketChargesResource; }
61
+ get: function () { return chunkQHM6ROAE_cjs.TicketChargesResource; }
62
62
  });
63
63
  Object.defineProperty(exports, "TicketsResource", {
64
64
  enumerable: true,
65
- get: function () { return chunkCWH2SLP2_cjs.TicketsResource; }
65
+ get: function () { return chunkQHM6ROAE_cjs.TicketsResource; }
66
66
  });
67
67
  Object.defineProperty(exports, "TimeOffRequestsResource", {
68
68
  enumerable: true,
69
- get: function () { return chunkCWH2SLP2_cjs.TimeOffRequestsResource; }
69
+ get: function () { return chunkQHM6ROAE_cjs.TimeOffRequestsResource; }
70
70
  });
71
71
  Object.defineProperty(exports, "VersionInformationResource", {
72
72
  enumerable: true,
73
- get: function () { return chunkCWH2SLP2_cjs.VersionInformationResource; }
73
+ get: function () { return chunkQHM6ROAE_cjs.VersionInformationResource; }
74
74
  });
75
75
  Object.defineProperty(exports, "VersionResource", {
76
76
  enumerable: true,
77
- get: function () { return chunkCWH2SLP2_cjs.VersionResource; }
77
+ get: function () { return chunkQHM6ROAE_cjs.VersionResource; }
78
78
  });
79
79
  Object.defineProperty(exports, "ZoneInformationResource", {
80
80
  enumerable: true,
81
- get: function () { return chunkCWH2SLP2_cjs.ZoneInformationResource; }
81
+ get: function () { return chunkQHM6ROAE_cjs.ZoneInformationResource; }
82
82
  });
83
83
  Object.defineProperty(exports, "CompaniesResource", {
84
84
  enumerable: true,
85
- get: function () { return chunk4SEIDMF6_cjs.CompaniesResource; }
85
+ get: function () { return chunkVDYUG6RK_cjs.CompaniesResource; }
86
86
  });
87
87
  Object.defineProperty(exports, "ContractsResource", {
88
88
  enumerable: true,
89
- get: function () { return chunk4SEIDMF6_cjs.ContractsResource; }
89
+ get: function () { return chunkVDYUG6RK_cjs.ContractsResource; }
90
90
  });
91
91
  Object.defineProperty(exports, "GenericResource", {
92
92
  enumerable: true,
93
- get: function () { return chunk4SEIDMF6_cjs.GenericResource; }
93
+ get: function () { return chunkVDYUG6RK_cjs.GenericResource; }
94
94
  });
95
95
  Object.defineProperty(exports, "InvoicesResource", {
96
96
  enumerable: true,
97
- get: function () { return chunk4SEIDMF6_cjs.InvoicesResource; }
97
+ get: function () { return chunkVDYUG6RK_cjs.InvoicesResource; }
98
98
  });
99
99
  Object.defineProperty(exports, "SIMPLE_RESOURCES", {
100
100
  enumerable: true,
101
- get: function () { return chunk4SEIDMF6_cjs.SIMPLE_RESOURCES; }
101
+ get: function () { return chunkVDYUG6RK_cjs.SIMPLE_RESOURCES; }
102
102
  });
103
103
  Object.defineProperty(exports, "TimeEntriesResource", {
104
104
  enumerable: true,
105
- get: function () { return chunk4SEIDMF6_cjs.TimeEntriesResource; }
105
+ get: function () { return chunkVDYUG6RK_cjs.TimeEntriesResource; }
106
106
  });
@@ -1,3 +1,3 @@
1
- export { c as AuthenticateResource, C as CompaniesResource, d as ConfigurationItemsResource, e as ContactsResource, g as ContractsResource, E as EntityInformationResource, G as GenericResource, i as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, j as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, v as ResourceTimeOffBalancesResource, w as ResourcesResource, S as SIMPLE_RESOURCES, x as ServiceCallsResource, y as SimpleResourceEntry, z as ThresholdInformationResource, B as TicketChargesResource, D as TicketsResource, V as TimeEntriesResource, Y as TimeOffRequestsResource, _ as VersionInformationResource, $ as VersionResource, a1 as ZoneInformationResource } from '../index-D1dW10iM.cjs';
1
+ export { c as AuthenticateResource, C as CompaniesResource, d as ConfigurationItemsResource, e as ContactsResource, g as ContractsResource, E as EntityInformationResource, G as GenericResource, i as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, j as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, v as ResourceTimeOffBalancesResource, w as ResourcesResource, S as SIMPLE_RESOURCES, x as ServiceCallsResource, y as SimpleResourceEntry, z as ThresholdInformationResource, B as TicketChargesResource, D as TicketsResource, V as TimeEntriesResource, Y as TimeOffRequestsResource, _ as VersionInformationResource, $ as VersionResource, a1 as ZoneInformationResource } from '../index-BXJOPL7w.cjs';
2
2
  import '../index-COQEG55Q.cjs';
3
3
  import '../logger-B1gYmFre.cjs';
@@ -1,3 +1,3 @@
1
- export { c as AuthenticateResource, C as CompaniesResource, d as ConfigurationItemsResource, e as ContactsResource, g as ContractsResource, E as EntityInformationResource, G as GenericResource, i as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, j as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, v as ResourceTimeOffBalancesResource, w as ResourcesResource, S as SIMPLE_RESOURCES, x as ServiceCallsResource, y as SimpleResourceEntry, z as ThresholdInformationResource, B as TicketChargesResource, D as TicketsResource, V as TimeEntriesResource, Y as TimeOffRequestsResource, _ as VersionInformationResource, $ as VersionResource, a1 as ZoneInformationResource } from '../index-Bc3yX2Nc.js';
1
+ export { c as AuthenticateResource, C as CompaniesResource, d as ConfigurationItemsResource, e as ContactsResource, g as ContractsResource, E as EntityInformationResource, G as GenericResource, i as GenericResourceConfig, H as HelperFlags, I as InventoryProductsResource, j as InvoicesResource, M as ModulesResource, O as OpsFlags, Q as QuotesResource, R as ResourceTimeOffAdditionalResource, v as ResourceTimeOffBalancesResource, w as ResourcesResource, S as SIMPLE_RESOURCES, x as ServiceCallsResource, y as SimpleResourceEntry, z as ThresholdInformationResource, B as TicketChargesResource, D as TicketsResource, V as TimeEntriesResource, Y as TimeOffRequestsResource, _ as VersionInformationResource, $ as VersionResource, a1 as ZoneInformationResource } from '../index-C4wZRw9N.js';
2
2
  import '../index-COQEG55Q.js';
3
3
  import '../logger-B1gYmFre.js';
@@ -1,5 +1,5 @@
1
1
  import '../chunk-YL6HXU33.js';
2
- export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from '../chunk-O63FO5XC.js';
3
- export { CompaniesResource, ContractsResource, GenericResource, InvoicesResource, SIMPLE_RESOURCES, TimeEntriesResource } from '../chunk-BSFJ5JYP.js';
4
- import '../chunk-GUXVYGBK.js';
2
+ export { AuthenticateResource, ConfigurationItemsResource, ContactsResource, EntityInformationResource, InventoryProductsResource, ModulesResource, QuotesResource, ResourceTimeOffAdditionalResource, ResourceTimeOffBalancesResource, ResourcesResource, ServiceCallsResource, ThresholdInformationResource, TicketChargesResource, TicketsResource, TimeOffRequestsResource, VersionInformationResource, VersionResource, ZoneInformationResource } from '../chunk-S4YR3RLJ.js';
3
+ export { CompaniesResource, ContractsResource, GenericResource, InvoicesResource, SIMPLE_RESOURCES, TimeEntriesResource } from '../chunk-TGCFJCWN.js';
4
+ import '../chunk-XJNNCMBS.js';
5
5
  import '../chunk-7NKB4UXV.js';
@@ -55,6 +55,10 @@ generated note (the one-call recovery op that shared it was deleted in
55
55
  query the internal family with `useType` (1 = general, 3 = internal) +
56
56
  `isActive` filters (S9b; the `time_entries.createForResource` rule that did
57
57
  this was cut in #292).
58
+ - `user_defined_field_definitions` / `user_defined_field_list_items`: the
59
+ **unfiltered count** is blind in ww29 (0 while a filtered count returns the
60
+ real total); the unfiltered query is NOT blind and returns rows. Count with a
61
+ filter (e.g. `id gt 0`) or page the query (§11.31, #432).
58
62
  - the `resources` table is blind to this API user: count/query return 0; the
59
63
  API user's own resource id is visible only via `whoAmI` (S5 sweep fact).
60
64
  - Rule of thumb: on a blind surface, `get(id)` is the authority; a 0/empty
@@ -185,7 +189,7 @@ of the data).
185
189
  `surface` = one of the pins below; `zone` = `australia-nz` (the facts are
186
190
  zone-specific — never read across zones); `kind` = `unowned-blind`
187
191
  (companies) / `unfiltered-blind`
188
- (tickets, billing_codes — post-merge P1: the tickets class moved from
192
+ (tickets, billing_codes, and the UDF definition / list-item counts — post-merge P1: the tickets class moved from
189
193
  `fully-blind` after S12-B P1 live-verified that FILTERED tickets queries
190
194
  return data); `authority` = the `<resource>.get` op that is the REMEDY
191
195
  (it returns the record even while count/query are blind); `note` = the zone
@@ -196,11 +200,13 @@ of the data).
196
200
  `capabilities:check` asserts the set-equality, so the describe channel and
197
201
  the result channel cannot drift):
198
202
  `companies.count` · `companies.query` · `tickets.count` · `tickets.query` ·
199
- `billing_codes.count` · `billing_codes.query`.
203
+ `billing_codes.count` · `billing_codes.query` ·
204
+ `user_defined_field_definitions.count` · `user_defined_field_list_items.count`
205
+ (count only: their unfiltered query returns rows, #432).
200
206
  - **Filter-aware stamping (the `blindStampFor` predicate, post-merge P1)**:
201
207
  `unowned-blind` surfaces stamp EVERY empty result (a filtered query against
202
208
  companies not owned by the caller is blind too). `unfiltered-blind`
203
- surfaces (tickets, billing_codes) stamp ONLY the unfiltered call — the
209
+ surfaces (tickets, billing_codes, the UDF counts) stamp ONLY the unfiltered call — the
204
210
  vendor `count` AND `query` take the same filter shape, and the filtered
205
211
  query RETURNS DATA (live-verified S12-B P1: 3 open tickets via a
206
212
  companyID+status filter; the earlier `fully-blind` pin — unfiltered-only
@@ -1971,3 +1977,12 @@ name reads per call, so a plain read returns raw ids), through the same
1971
1977
 
1972
1978
  - A `BillingItems` line's `companyID` is not always its invoice's `companyID`: about 0.5% of sampled lines, on about 1% of sampled non-voided invoices, differed. Company-scoped `revenueRollup` runs therefore match an invoice on its header company or on a carrying in-scope line, not on the header alone.
1973
1979
  - The `revenueRollup` reference figures recorded at 0.36.0 (a 12-month Recurring + Fixed Price run, one month, and one line-of-business row; exact values are deliberately not repeated here) reproduce on SDK 0.56.0 with header and line totals equal (delta 0.00). A 12-month tenant-wide run costs about 50 vendor calls (about 27 s) and a one-month run under 10, all inside the default budget of 90.
1980
+
1981
+ ### 11.31 UDF definition and picklist-value surfaces (0.61.0 #428, live-verified 2026-11-11; issue #432)
1982
+
1983
+ - The read paths match the vendored spec URLs with no 404 and no shape mismatch: `UserDefinedFieldDefinitions/query`, `.../query/count`, `UserDefinedFieldDefinitions/{id}`, the standalone read-only `UserDefinedFieldListItems/query`, and the parent-scoped `UserDefinedFields/{parentId}/ListItems/{id}` all answer coherent rows. The item GET returns the full vendor model with no label siblings, while query rows carry the SDK-added `dataTypeLabel` / `udfTypeLabel` (on the verified tenant: List = dataType 3, String = 1; udfType 6 = Installed_Product, 9 = Site_Config).
1984
+ - The UNFILTERED count surface on both UDF entities is blind on the verified zone (issue #432): the unfiltered `query/count` answers 0 while a filtered count on the same surface (a single `id gt 0` condition) returns a three-digit total, and the unfiltered `query` page returns real rows. Same quirk class as the blind tickets / unowned-company count surfaces (B5): a filtered empty answer is a true absence, an unfiltered 0 proves nothing. 0.61.0 served the blind 0 without the typed `blindSurface` sentinel (no plan pin), and a `latest` read anchored on that 0 answered empty; since #432 both `count` ops are pinned (`unfiltered-blind`, count only — the unfiltered query is not blind), so the unfiltered 0 carries the sentinel and `latest` walks the query instead.
1985
+ - A `udfFieldId` filter on the standalone list-items endpoint narrows exactly to one definition's values: every returned row carried the filtered `udfFieldId`, and the filtered `query/count` equaled the filtered row count.
1986
+ - Absence of DELETE confirmed by surface enumeration (no delete op is served on either entity; the deleteBoundary note is spec-derived) — a live DELETE was not attempted. Soft removal is `isActive=false`; the vendor caps active company UDFs at 200.
1987
+ - Headroom on the verified tenant: active definitions at roughly 40% of the 200-active cap; list items of the same order as the definition count. Every UDF read cost one vendor call, ~0.4–1.0 s at the MCP layer.
1988
+ - Write-path URLs registry-verified, zero wire: `POST /V1.0/UserDefinedFieldDefinitions`, `PUT|PATCH /V1.0/UserDefinedFieldDefinitions`, `POST|PUT|PATCH /V1.0/UserDefinedFields/{parentId}/ListItems`. Dry-run create/update previews under the operator governance returned an allow decision plus a plan, the no-DELETE warning and the account-wide hazard, with zero vendor writes. The live write round-trip ran the same day after owner go-ahead: the test definition + item were created (the parent-scoped create and update proven live on `UserDefinedFields/{parentId}/ListItems`), the item's label was updated and read back, and both were then deactivated and left in place — anything created is permanent (no DELETE); the active-definition count was unchanged after deactivation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-autotask",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "description": "Fully-typed TypeScript SDK for the Autotask (Datto) PSA REST API. Zero runtime dependencies. Built for building MCP servers and integrations.",
5
5
  "type": "module",
6
6
  "sideEffects": false,