node-autotask 0.10.0 → 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.
Files changed (41) hide show
  1. package/MCP_TOOL_CATALOG.json +27 -9
  2. package/MCP_TOOL_MANIFEST.md +13 -12
  3. package/N8N_MCP_MANIFEST.json +3 -3
  4. package/N8N_MCP_MANIFEST.md +4 -4
  5. package/README.md +1 -1
  6. package/capabilities.json +1460 -1250
  7. package/dist/capabilities.cjs +2 -2
  8. package/dist/capabilities.js +1 -1
  9. package/dist/{chunk-NVJ2PTN3.js → chunk-3WIDDEHP.js} +2 -2
  10. package/dist/{chunk-6KFP5HV3.js → chunk-4A6XLQHE.js} +1459 -1249
  11. package/dist/{chunk-WTVLHMZA.cjs → chunk-5N6DYKXO.cjs} +519 -39
  12. package/dist/{chunk-HWC2WPX2.js → chunk-GD4JRPYF.js} +498 -18
  13. package/dist/{chunk-WTVD2JZN.cjs → chunk-JKZVCFRY.cjs} +1459 -1249
  14. package/dist/{chunk-3VB6N44U.js → chunk-MY7ZSXY3.js} +1075 -6
  15. package/dist/{chunk-QUM74WLQ.cjs → chunk-SRJI5XUZ.cjs} +135 -135
  16. package/dist/{chunk-S7VMY5KN.cjs → chunk-TELBX6HK.cjs} +1462 -393
  17. package/dist/{index-DGgMD8aq.d.ts → index-D8I6taEo.d.cts} +200 -2
  18. package/dist/{index-BOyh7S65.d.cts → index-uAxAcRol.d.ts} +200 -2
  19. package/dist/index.cjs +19 -19
  20. package/dist/index.d.cts +4 -4
  21. package/dist/index.d.ts +4 -4
  22. package/dist/index.js +4 -4
  23. package/dist/operations/index.cjs +213 -529
  24. package/dist/operations/index.d.cts +24 -6
  25. package/dist/operations/index.d.ts +24 -6
  26. package/dist/operations/index.js +102 -418
  27. package/dist/pool.cjs +8 -8
  28. package/dist/pool.d.cts +2 -2
  29. package/dist/pool.d.ts +2 -2
  30. package/dist/pool.js +4 -4
  31. package/dist/resources/index.cjs +4 -4
  32. package/dist/resources/index.d.cts +2 -2
  33. package/dist/resources/index.d.ts +2 -2
  34. package/dist/resources/index.js +3 -3
  35. package/dist/types/index.d.cts +1 -1
  36. package/dist/types/index.d.ts +1 -1
  37. package/docs/API.md +192 -2
  38. package/docs/N8N-ADAPTER.md +1 -1
  39. package/package.json +1 -1
  40. package/dist/{index-cQ6CRexR.d.cts → index-BXtKN1M5.d.cts} +201 -201
  41. package/dist/{index-cQ6CRexR.d.ts → index-BXtKN1M5.d.ts} +201 -201
@@ -1,7 +1,7 @@
1
- import { a as AutotaskClient, eN as BlindSurfaceInfo, eO as RelationshipResource, eP as BlindSurfaceInventory, eQ as BlindSurfaceRow, eR as CreateBlockerKind, eS as CreateGuidanceReport, eT as FieldCacheKind, g as AutotaskConfigError } from '../index-BOyh7S65.cjs';
2
- export { eU as FIELD_CACHE_KINDS } from '../index-BOyh7S65.cjs';
3
- import { I as Identifier, cE as EmptyReasonInfo, dI as PickListValue, a as FilterCondition } from '../index-cQ6CRexR.cjs';
4
- export { hp as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-cQ6CRexR.cjs';
1
+ import { a as AutotaskClient, eN as BlindSurfaceInfo, eO as RelationshipResource, eP as BlindSurfaceInventory, eQ as BlindSurfaceRow, eR as CreateBlockerKind, eS as CreateGuidanceReport, eT as FieldCacheKind, g as AutotaskConfigError } from '../index-D8I6taEo.cjs';
2
+ export { eU as FIELD_CACHE_KINDS } from '../index-D8I6taEo.cjs';
3
+ import { I as Identifier, cE as EmptyReasonInfo, dI as PickListValue, a as FilterCondition } from '../index-BXtKN1M5.cjs';
4
+ export { hp as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-BXtKN1M5.cjs';
5
5
  import { CapabilityRecord } from '../capabilities.cjs';
6
6
 
7
7
  /**
@@ -195,9 +195,27 @@ declare const AGGREGATE_TOP_MAX = 100;
195
195
  declare const AGGREGATE_DEFAULT_TOP = 25;
196
196
  /** The walk-mode default record cap = the house `BOUNDED_QUERY_MAX_LIMIT` (the hard max — `queryBounded` rejects above it). */
197
197
  declare const AGGREGATE_DEFAULT_LIMIT = 2500;
198
+ /** The closed date-bucket suffix set (issue #101). */
199
+ type DateBucket = 'month' | 'week' | 'year';
200
+ declare const AGGREGATE_DATE_BUCKETS: readonly DateBucket[];
201
+ /**
202
+ * The ISO bucket label of a date field value (issue #101), anchored on UTC —
203
+ * the same anchor the date-window ops use when `tz` is omitted: a date-only
204
+ * value is its UTC day, a zoned datetime is read at its instant, a zoneless
205
+ * datetime is read as a UTC wall time. Returns `null` for null/undefined
206
+ * (the one null bucket group — the raw-fold key normalisation) and the RAW
207
+ * value unchanged when it parses as no date (its own deterministic group —
208
+ * no silent drop).
209
+ */
210
+ declare function dateBucketLabel(value: unknown, bucket: DateBucket): unknown;
198
211
  /** The closed opts bag for `operations.aggregate`. */
199
212
  interface AggregateOptions {
200
- /** The group-by vendor field names (the group key = the field tuple). */
213
+ /** The group-by vendor field names (the group key = the field tuple). A
214
+ * DATE-TYPED field may carry the closed bucket suffix `<field>@month` |
215
+ * `<field>@week` | `<field>@year` (issue #101): the group key is named
216
+ * by the full spec and carries the ISO bucket label (`2026-09` /
217
+ * `2026-W38` / `2026`) read on the UTC calendar (the date-window ops'
218
+ * omitted-`tz` anchor). */
201
219
  groupBy?: string[];
202
220
  /** The numeric vendor field names to sum per group. */
203
221
  sum?: string[];
@@ -894,4 +912,4 @@ declare function invokeWrite(client: AutotaskClient, operation: string, args?: r
894
912
  */
895
913
  declare function invokeDelete(client: AutotaskClient, operation: string, args?: readonly unknown[], opts?: InvokeOptions): Promise<unknown>;
896
914
 
897
- export { AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, type AggregateGroup, type AggregateOptions, type AggregateResult, BLIND_SURFACE_KINDS, type BlindSurfaceKind, type BlindSurfaceOptions, BlindSurfaceRow, CREATE_BLOCKER_KINDS, type CreateGuidanceOptions, EXPAND_RESOURCE_NAMES_MAX_IDS, type ExpandResourceNameRow, type ExpandResourceNamesOptions, type ExpandResourceNamesResult, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FETCH_MANY_MAX_ITEMS, FIELD_CATALOG_HONESTY_NOTE, type FetchByIdsOptions, type FetchManyItem, type FetchManyItemError, type FetchManyItemResult, type FetchManyOptions, type FetchManyResult, FieldCacheKind, type FieldCatalogFieldRow, type FieldCatalogOptions, type FieldCatalogResult, type FieldCatalogRow, type FieldCatalogRowError, INVOKE_OPTION_KEYS, type InvokeMode, type InvokeOptions, MAX_FIELD_CATALOG_WIRE, PARAMS_BAG_KEYS, type ProbeReachabilityOptions, type ProbeReachabilityResult, type ProbeSurfaceRow, RECOVERY_CONFIRM, RECOVERY_DEFAULT_LIMIT, RECOVERY_MAX_LIMIT, type RecoveryDeleteBoundary, type RecoveryInput, type RecoveryMatch, type RecoveryOptions, type RecoveryResult, type ResolveAnyOptions, type ResolveAnyResourceOutcome, type ResolveAnyResult, type SearchAcrossResourcesOptions, type SearchAcrossResourcesResult, type SearchAcrossResourcesRow, WORKFLOW_RESOURCES, aggregate, blindSurfaces, createGuidance, expandResourceNames, fetchByIds, fetchMany, fieldCatalog, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, probeReachability, recovery, relationshipMap, resolveAny, searchAcrossResources, unknownKeysRefusal, validateDispatchArgs, validateFetchManyItems, validateInvokeOptions, validateParamsBag };
915
+ export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, type AggregateGroup, type AggregateOptions, type AggregateResult, BLIND_SURFACE_KINDS, type BlindSurfaceKind, type BlindSurfaceOptions, BlindSurfaceRow, CREATE_BLOCKER_KINDS, type CreateGuidanceOptions, type DateBucket, EXPAND_RESOURCE_NAMES_MAX_IDS, type ExpandResourceNameRow, type ExpandResourceNamesOptions, type ExpandResourceNamesResult, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FETCH_MANY_MAX_ITEMS, FIELD_CATALOG_HONESTY_NOTE, type FetchByIdsOptions, type FetchManyItem, type FetchManyItemError, type FetchManyItemResult, type FetchManyOptions, type FetchManyResult, FieldCacheKind, type FieldCatalogFieldRow, type FieldCatalogOptions, type FieldCatalogResult, type FieldCatalogRow, type FieldCatalogRowError, INVOKE_OPTION_KEYS, type InvokeMode, type InvokeOptions, MAX_FIELD_CATALOG_WIRE, PARAMS_BAG_KEYS, type ProbeReachabilityOptions, type ProbeReachabilityResult, type ProbeSurfaceRow, RECOVERY_CONFIRM, RECOVERY_DEFAULT_LIMIT, RECOVERY_MAX_LIMIT, type RecoveryDeleteBoundary, type RecoveryInput, type RecoveryMatch, type RecoveryOptions, type RecoveryResult, type ResolveAnyOptions, type ResolveAnyResourceOutcome, type ResolveAnyResult, type SearchAcrossResourcesOptions, type SearchAcrossResourcesResult, type SearchAcrossResourcesRow, WORKFLOW_RESOURCES, aggregate, blindSurfaces, createGuidance, dateBucketLabel, expandResourceNames, fetchByIds, fetchMany, fieldCatalog, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, probeReachability, recovery, relationshipMap, resolveAny, searchAcrossResources, unknownKeysRefusal, validateDispatchArgs, validateFetchManyItems, validateInvokeOptions, validateParamsBag };
@@ -1,7 +1,7 @@
1
- import { a as AutotaskClient, eN as BlindSurfaceInfo, eO as RelationshipResource, eP as BlindSurfaceInventory, eQ as BlindSurfaceRow, eR as CreateBlockerKind, eS as CreateGuidanceReport, eT as FieldCacheKind, g as AutotaskConfigError } from '../index-DGgMD8aq.js';
2
- export { eU as FIELD_CACHE_KINDS } from '../index-DGgMD8aq.js';
3
- import { I as Identifier, cE as EmptyReasonInfo, dI as PickListValue, a as FilterCondition } from '../index-cQ6CRexR.js';
4
- export { hp as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-cQ6CRexR.js';
1
+ import { a as AutotaskClient, eN as BlindSurfaceInfo, eO as RelationshipResource, eP as BlindSurfaceInventory, eQ as BlindSurfaceRow, eR as CreateBlockerKind, eS as CreateGuidanceReport, eT as FieldCacheKind, g as AutotaskConfigError } from '../index-uAxAcRol.js';
2
+ export { eU as FIELD_CACHE_KINDS } from '../index-uAxAcRol.js';
3
+ import { I as Identifier, cE as EmptyReasonInfo, dI as PickListValue, a as FilterCondition } from '../index-BXtKN1M5.js';
4
+ export { hp as PICKLIST_VALUE_NOT_SERVED_NOTE } from '../index-BXtKN1M5.js';
5
5
  import { CapabilityRecord } from '../capabilities.js';
6
6
 
7
7
  /**
@@ -195,9 +195,27 @@ declare const AGGREGATE_TOP_MAX = 100;
195
195
  declare const AGGREGATE_DEFAULT_TOP = 25;
196
196
  /** The walk-mode default record cap = the house `BOUNDED_QUERY_MAX_LIMIT` (the hard max — `queryBounded` rejects above it). */
197
197
  declare const AGGREGATE_DEFAULT_LIMIT = 2500;
198
+ /** The closed date-bucket suffix set (issue #101). */
199
+ type DateBucket = 'month' | 'week' | 'year';
200
+ declare const AGGREGATE_DATE_BUCKETS: readonly DateBucket[];
201
+ /**
202
+ * The ISO bucket label of a date field value (issue #101), anchored on UTC —
203
+ * the same anchor the date-window ops use when `tz` is omitted: a date-only
204
+ * value is its UTC day, a zoned datetime is read at its instant, a zoneless
205
+ * datetime is read as a UTC wall time. Returns `null` for null/undefined
206
+ * (the one null bucket group — the raw-fold key normalisation) and the RAW
207
+ * value unchanged when it parses as no date (its own deterministic group —
208
+ * no silent drop).
209
+ */
210
+ declare function dateBucketLabel(value: unknown, bucket: DateBucket): unknown;
198
211
  /** The closed opts bag for `operations.aggregate`. */
199
212
  interface AggregateOptions {
200
- /** The group-by vendor field names (the group key = the field tuple). */
213
+ /** The group-by vendor field names (the group key = the field tuple). A
214
+ * DATE-TYPED field may carry the closed bucket suffix `<field>@month` |
215
+ * `<field>@week` | `<field>@year` (issue #101): the group key is named
216
+ * by the full spec and carries the ISO bucket label (`2026-09` /
217
+ * `2026-W38` / `2026`) read on the UTC calendar (the date-window ops'
218
+ * omitted-`tz` anchor). */
201
219
  groupBy?: string[];
202
220
  /** The numeric vendor field names to sum per group. */
203
221
  sum?: string[];
@@ -894,4 +912,4 @@ declare function invokeWrite(client: AutotaskClient, operation: string, args?: r
894
912
  */
895
913
  declare function invokeDelete(client: AutotaskClient, operation: string, args?: readonly unknown[], opts?: InvokeOptions): Promise<unknown>;
896
914
 
897
- export { AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, type AggregateGroup, type AggregateOptions, type AggregateResult, BLIND_SURFACE_KINDS, type BlindSurfaceKind, type BlindSurfaceOptions, BlindSurfaceRow, CREATE_BLOCKER_KINDS, type CreateGuidanceOptions, EXPAND_RESOURCE_NAMES_MAX_IDS, type ExpandResourceNameRow, type ExpandResourceNamesOptions, type ExpandResourceNamesResult, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FETCH_MANY_MAX_ITEMS, FIELD_CATALOG_HONESTY_NOTE, type FetchByIdsOptions, type FetchManyItem, type FetchManyItemError, type FetchManyItemResult, type FetchManyOptions, type FetchManyResult, FieldCacheKind, type FieldCatalogFieldRow, type FieldCatalogOptions, type FieldCatalogResult, type FieldCatalogRow, type FieldCatalogRowError, INVOKE_OPTION_KEYS, type InvokeMode, type InvokeOptions, MAX_FIELD_CATALOG_WIRE, PARAMS_BAG_KEYS, type ProbeReachabilityOptions, type ProbeReachabilityResult, type ProbeSurfaceRow, RECOVERY_CONFIRM, RECOVERY_DEFAULT_LIMIT, RECOVERY_MAX_LIMIT, type RecoveryDeleteBoundary, type RecoveryInput, type RecoveryMatch, type RecoveryOptions, type RecoveryResult, type ResolveAnyOptions, type ResolveAnyResourceOutcome, type ResolveAnyResult, type SearchAcrossResourcesOptions, type SearchAcrossResourcesResult, type SearchAcrossResourcesRow, WORKFLOW_RESOURCES, aggregate, blindSurfaces, createGuidance, expandResourceNames, fetchByIds, fetchMany, fieldCatalog, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, probeReachability, recovery, relationshipMap, resolveAny, searchAcrossResources, unknownKeysRefusal, validateDispatchArgs, validateFetchManyItems, validateInvokeOptions, validateParamsBag };
915
+ export { AGGREGATE_DATE_BUCKETS, AGGREGATE_DEFAULT_LIMIT, AGGREGATE_DEFAULT_TOP, AGGREGATE_TOP_MAX, type AggregateGroup, type AggregateOptions, type AggregateResult, BLIND_SURFACE_KINDS, type BlindSurfaceKind, type BlindSurfaceOptions, BlindSurfaceRow, CREATE_BLOCKER_KINDS, type CreateGuidanceOptions, type DateBucket, EXPAND_RESOURCE_NAMES_MAX_IDS, type ExpandResourceNameRow, type ExpandResourceNamesOptions, type ExpandResourceNamesResult, FETCH_BY_IDS_CHUNK_SIZE, FETCH_BY_IDS_MAX_ITEMS, FETCH_MANY_MAX_ITEMS, FIELD_CATALOG_HONESTY_NOTE, type FetchByIdsOptions, type FetchManyItem, type FetchManyItemError, type FetchManyItemResult, type FetchManyOptions, type FetchManyResult, FieldCacheKind, type FieldCatalogFieldRow, type FieldCatalogOptions, type FieldCatalogResult, type FieldCatalogRow, type FieldCatalogRowError, INVOKE_OPTION_KEYS, type InvokeMode, type InvokeOptions, MAX_FIELD_CATALOG_WIRE, PARAMS_BAG_KEYS, type ProbeReachabilityOptions, type ProbeReachabilityResult, type ProbeSurfaceRow, RECOVERY_CONFIRM, RECOVERY_DEFAULT_LIMIT, RECOVERY_MAX_LIMIT, type RecoveryDeleteBoundary, type RecoveryInput, type RecoveryMatch, type RecoveryOptions, type RecoveryResult, type ResolveAnyOptions, type ResolveAnyResourceOutcome, type ResolveAnyResult, type SearchAcrossResourcesOptions, type SearchAcrossResourcesResult, type SearchAcrossResourcesRow, WORKFLOW_RESOURCES, aggregate, blindSurfaces, createGuidance, dateBucketLabel, expandResourceNames, fetchByIds, fetchMany, fieldCatalog, invoke, invokeDelete, invokeRead, invokeWrite, needsConfirmation, probeReachability, recovery, relationshipMap, resolveAny, searchAcrossResources, unknownKeysRefusal, validateDispatchArgs, validateFetchManyItems, validateInvokeOptions, validateParamsBag };