node-autotask 0.88.0 → 0.89.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.
- package/CHANGELOG.md +11 -0
- package/README.md +3 -4
- package/dist/{chunk-LGOJ2HBH.js → chunk-2PWAWWWM.js} +2 -2
- package/dist/{chunk-QKRHKLVY.js → chunk-4EIN7AZJ.js} +2 -2
- package/dist/{chunk-AB326MJO.cjs → chunk-4MPQ5CDB.cjs} +199 -199
- package/dist/{chunk-ESKQAINP.cjs → chunk-BRU7TZOD.cjs} +30 -30
- package/dist/{chunk-K72PPAAD.js → chunk-OVIYLMGB.js} +246 -170
- package/dist/{chunk-GEFUSYH5.cjs → chunk-YAXEPESA.cjs} +246 -170
- 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-DsA1-2GA.d.cts → index-CoTtEn8U.d.cts} +6 -11
- package/dist/{index-BFgZJsqx.d.ts → index-Wh6bLfv_.d.ts} +6 -11
- package/dist/index.cjs +84 -84
- package/dist/index.d.cts +8 -11
- package/dist/index.d.ts +8 -11
- 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/docs/API.md +17 -29
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk4MPQ5CDB_cjs = require('./chunk-4MPQ5CDB.cjs');
|
|
4
|
+
var chunkYAXEPESA_cjs = require('./chunk-YAXEPESA.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 = chunkYAXEPESA_cjs.resolveConfig(options);
|
|
179
|
+
this.http = new chunkYAXEPESA_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 chunkYAXEPESA_cjs.SIMPLE_RESOURCES) {
|
|
182
|
+
this[entry.accessor] = new chunkYAXEPESA_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 chunkYAXEPESA_cjs.CompaniesResource(this.http, this.config.pageSize);
|
|
185
|
+
this.configurationItems = new chunk4MPQ5CDB_cjs.ConfigurationItemsResource(this.http, this.config.pageSize);
|
|
186
|
+
this.contacts = new chunk4MPQ5CDB_cjs.ContactsResource(this.http, this.config.pageSize);
|
|
187
|
+
this.contracts = new chunkYAXEPESA_cjs.ContractsResource(this.http, this.config.pageSize);
|
|
188
|
+
this.inventoryProducts = new chunk4MPQ5CDB_cjs.InventoryProductsResource(this.http, this.config.pageSize);
|
|
189
|
+
this.invoices = new chunkYAXEPESA_cjs.InvoicesResource(this.http, this.config.pageSize);
|
|
190
|
+
this.quotes = new chunk4MPQ5CDB_cjs.QuotesResource(this.http, this.config.pageSize);
|
|
191
|
+
this.resourceTimeOffAdditional = new chunk4MPQ5CDB_cjs.ResourceTimeOffAdditionalResource(this.http, this.config.pageSize);
|
|
192
|
+
this.resourceTimeOffBalances = new chunk4MPQ5CDB_cjs.ResourceTimeOffBalancesResource(this.http, this.config.pageSize);
|
|
193
|
+
this.resources = new chunk4MPQ5CDB_cjs.ResourcesResource(this.http, this.config, this.config.pageSize);
|
|
194
|
+
this.serviceCalls = new chunk4MPQ5CDB_cjs.ServiceCallsResource(this.http, this.config.pageSize);
|
|
195
|
+
this.ticketCharges = new chunk4MPQ5CDB_cjs.TicketChargesResource(this.http, this.config.pageSize);
|
|
196
|
+
this.tickets = new chunk4MPQ5CDB_cjs.TicketsResource(this.http, this.config.pageSize);
|
|
197
|
+
this.timeEntries = new chunkYAXEPESA_cjs.TimeEntriesResource(this.http, this.config.pageSize);
|
|
198
|
+
this.timeOffRequests = new chunk4MPQ5CDB_cjs.TimeOffRequestsResource(this.http, this.config.pageSize);
|
|
199
|
+
this.authenticateResource = new chunk4MPQ5CDB_cjs.AuthenticateResource(this.http);
|
|
200
|
+
this.entityInformation = new chunk4MPQ5CDB_cjs.EntityInformationResource(this.http);
|
|
201
|
+
this.modules = new chunk4MPQ5CDB_cjs.ModulesResource(this.http);
|
|
202
|
+
this.thresholdInformation = new chunk4MPQ5CDB_cjs.ThresholdInformationResource(this.http);
|
|
203
|
+
this.version = new chunk4MPQ5CDB_cjs.VersionResource(this.http);
|
|
204
|
+
this.versionInformation = new chunk4MPQ5CDB_cjs.VersionInformationResource(this.http);
|
|
205
|
+
this.zoneInformation = new chunk4MPQ5CDB_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 chunkYAXEPESA_cjs.runWithSignal(signal, fn);
|
|
240
240
|
}
|
|
241
241
|
async batch(fn, items, opts = {}) {
|
|
242
|
-
return
|
|
242
|
+
return chunkYAXEPESA_cjs.runBounded(fn, items, { ...opts, concurrency: opts.concurrency ?? this.config.maxConcurrent });
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
|