node-autotask 0.88.0 → 0.88.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 +5 -0
- package/dist/{chunk-QKRHKLVY.js → chunk-33UVHMFN.js} +1 -1
- package/dist/{chunk-ESKQAINP.cjs → chunk-DSHWQMF2.cjs} +30 -30
- package/dist/{chunk-AB326MJO.cjs → chunk-JHDT4O7N.cjs} +198 -198
- package/dist/{chunk-LGOJ2HBH.js → chunk-JVVE4XEN.js} +2 -2
- package/dist/{chunk-K72PPAAD.js → chunk-KM7ITBOT.js} +238 -161
- package/dist/{chunk-GEFUSYH5.cjs → chunk-YTOBU3Z6.cjs} +238 -161
- package/dist/{index-D0KHVqoO.d.cts → index-4jmitXBs.d.cts} +1 -1
- package/dist/{index-D0KHVqoO.d.ts → index-4jmitXBs.d.ts} +1 -1
- package/dist/{index-BFgZJsqx.d.ts → index-GSA44LRd.d.ts} +1 -1
- package/dist/{index-DsA1-2GA.d.cts → index-XDIy_GvD.d.cts} +1 -1
- package/dist/index.cjs +84 -84
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/operations/index.cjs +50 -50
- package/dist/operations/index.d.cts +4 -4
- package/dist/operations/index.d.ts +4 -4
- package/dist/operations/index.js +1 -1
- package/dist/pool.cjs +11 -11
- package/dist/pool.d.cts +1 -1
- package/dist/pool.d.ts +1 -1
- package/dist/pool.js +3 -3
- package/dist/resources/index.cjs +26 -26
- package/dist/resources/index.d.cts +2 -2
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +2 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.88.1] - 2026-11-21
|
|
11
|
+
|
|
12
|
+
- Require own submitted and current InventoryLocations fields for create validation, inactivation guards and persisted verification. Validate the requested identity and response envelope, keep mutation IDs out of create bodies, and clarify the collection PATCH input comment (#504).
|
|
13
|
+
- Governed calls require explicit argument slots. Supply `dryRun: false` and `acknowledgeUnscoped: true` as own data properties to apply a mutation or acknowledge an unscoped read, respectively. An explicit empty aggregate filter still requests an unfiltered read (#504).
|
|
14
|
+
|
|
10
15
|
## [0.88.0] - 2026-11-21
|
|
11
16
|
|
|
12
17
|
- Add InventoryLocations account-wide reads, metadata, create and guarded partial collection PATCH. Inventory permissions govern access and location names must be unique. A fresh nondefault record is required for inactivation (#468).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-
|
|
1
|
+
import { GenericResource, readTasks, OperationNotSupportedError, parseIdentifier, AutotaskConfigError, isRecord, isDateYMD, isAutotaskError, RateLimitError, MaintenanceError, AutotaskError, StaleObjectError, buildDryRunResult, createNamePlan, resolveCompositeNames, addNameSibling, NotFoundError, unwrapItems, ConflictError, clientOf, compositePartLimit, invokeRead, compositePart, openTicketsOfPart, unwrapOperation, unwrapItem, ResolutionError, joinedCompositePart, runMove, resolveTicketStatusSemantics, openStatusFilter, isClosedStatus, vendorId, resolveLineOfBusinessChain, cachedRecordGet, uiLinkFor, refuse, queryRows, mergePartialBody, TICKET_LABEL_FIELDS, addLabelSibling, parseVendorErrors, RELATIONSHIP_MAP, cursorToPath } from './chunk-KM7ITBOT.js';
|
|
2
2
|
import { loadCapabilityRecords } from './chunk-ZADTVF6M.js';
|
|
3
3
|
|
|
4
4
|
// src/resources/special/configuration_items.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkJHDT4O7N_cjs = require('./chunk-JHDT4O7N.cjs');
|
|
4
|
+
var chunkYTOBU3Z6_cjs = require('./chunk-YTOBU3Z6.cjs');
|
|
5
5
|
|
|
6
6
|
// src/client.ts
|
|
7
7
|
var AutotaskClient = class {
|
|
@@ -175,34 +175,34 @@ var AutotaskClient = class {
|
|
|
175
175
|
* anything is wired. Construction issues NO request.
|
|
176
176
|
*/
|
|
177
177
|
constructor(options) {
|
|
178
|
-
this.config =
|
|
179
|
-
this.http = new
|
|
178
|
+
this.config = chunkYTOBU3Z6_cjs.resolveConfig(options);
|
|
179
|
+
this.http = new chunkYTOBU3Z6_cjs.HttpClient(this.config);
|
|
180
180
|
this.http.client = this;
|
|
181
|
-
for (const entry of
|
|
182
|
-
this[entry.accessor] = new
|
|
181
|
+
for (const entry of chunkYTOBU3Z6_cjs.SIMPLE_RESOURCES) {
|
|
182
|
+
this[entry.accessor] = new chunkYTOBU3Z6_cjs.GenericResource(this.http, entry, this.config.pageSize);
|
|
183
183
|
}
|
|
184
|
-
this.companies = new
|
|
185
|
-
this.configurationItems = new
|
|
186
|
-
this.contacts = new
|
|
187
|
-
this.contracts = new
|
|
188
|
-
this.inventoryProducts = new
|
|
189
|
-
this.invoices = new
|
|
190
|
-
this.quotes = new
|
|
191
|
-
this.resourceTimeOffAdditional = new
|
|
192
|
-
this.resourceTimeOffBalances = new
|
|
193
|
-
this.resources = new
|
|
194
|
-
this.serviceCalls = new
|
|
195
|
-
this.ticketCharges = new
|
|
196
|
-
this.tickets = new
|
|
197
|
-
this.timeEntries = new
|
|
198
|
-
this.timeOffRequests = new
|
|
199
|
-
this.authenticateResource = new
|
|
200
|
-
this.entityInformation = new
|
|
201
|
-
this.modules = new
|
|
202
|
-
this.thresholdInformation = new
|
|
203
|
-
this.version = new
|
|
204
|
-
this.versionInformation = new
|
|
205
|
-
this.zoneInformation = new
|
|
184
|
+
this.companies = new chunkYTOBU3Z6_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
185
|
+
this.configurationItems = new chunkJHDT4O7N_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
186
|
+
this.contacts = new chunkJHDT4O7N_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
187
|
+
this.contracts = new chunkYTOBU3Z6_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
188
|
+
this.inventoryProducts = new chunkJHDT4O7N_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
189
|
+
this.invoices = new chunkYTOBU3Z6_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
190
|
+
this.quotes = new chunkJHDT4O7N_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
191
|
+
this.resourceTimeOffAdditional = new chunkJHDT4O7N_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
192
|
+
this.resourceTimeOffBalances = new chunkJHDT4O7N_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
193
|
+
this.resources = new chunkJHDT4O7N_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
194
|
+
this.serviceCalls = new chunkJHDT4O7N_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
195
|
+
this.ticketCharges = new chunkJHDT4O7N_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
196
|
+
this.tickets = new chunkJHDT4O7N_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
197
|
+
this.timeEntries = new chunkYTOBU3Z6_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
198
|
+
this.timeOffRequests = new chunkJHDT4O7N_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
199
|
+
this.authenticateResource = new chunkJHDT4O7N_cjs.AuthenticateResource(this.http);
|
|
200
|
+
this.entityInformation = new chunkJHDT4O7N_cjs.EntityInformationResource(this.http);
|
|
201
|
+
this.modules = new chunkJHDT4O7N_cjs.ModulesResource(this.http);
|
|
202
|
+
this.thresholdInformation = new chunkJHDT4O7N_cjs.ThresholdInformationResource(this.http);
|
|
203
|
+
this.version = new chunkJHDT4O7N_cjs.VersionResource(this.http);
|
|
204
|
+
this.versionInformation = new chunkJHDT4O7N_cjs.VersionInformationResource(this.http);
|
|
205
|
+
this.zoneInformation = new chunkJHDT4O7N_cjs.ZoneInformationResource(this.http);
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
208
|
* `GET /V1.0/Authenticate` → `AuthTokenResultModel` (as-is). The SDK does
|
|
@@ -236,10 +236,10 @@ var AutotaskClient = class {
|
|
|
236
236
|
* parameter on each: `await client.withSignal(signal, () => invoke(client, ...))`.
|
|
237
237
|
*/
|
|
238
238
|
withSignal(signal, fn) {
|
|
239
|
-
return
|
|
239
|
+
return chunkYTOBU3Z6_cjs.runWithSignal(signal, fn);
|
|
240
240
|
}
|
|
241
241
|
async batch(fn, items, opts = {}) {
|
|
242
|
-
return
|
|
242
|
+
return chunkYTOBU3Z6_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
|