servicem8 0.3.3 → 0.3.8

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 (53) hide show
  1. package/.devcontainer/README.md +30 -0
  2. package/bin/mcp-server.js +5 -5
  3. package/bin/mcp-server.js.map +4 -4
  4. package/dist/commonjs/lib/config.d.ts +2 -2
  5. package/dist/commonjs/lib/config.js +2 -2
  6. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  7. package/dist/commonjs/mcp-server/server.js +1 -1
  8. package/dist/esm/lib/config.d.ts +2 -2
  9. package/dist/esm/lib/config.js +2 -2
  10. package/dist/esm/mcp-server/mcp-server.js +1 -1
  11. package/dist/esm/mcp-server/server.js +1 -1
  12. package/docs/sdks/allocationwindows/README.md +433 -0
  13. package/docs/sdks/assets/README.md +364 -0
  14. package/docs/sdks/assettypefields/README.md +456 -0
  15. package/docs/sdks/assettypes/README.md +448 -0
  16. package/docs/sdks/attachments/README.md +441 -0
  17. package/docs/sdks/badges/README.md +460 -0
  18. package/docs/sdks/bundles/README.md +437 -0
  19. package/docs/sdks/categories/README.md +462 -0
  20. package/docs/sdks/clients/README.md +466 -0
  21. package/docs/sdks/companycontacts/README.md +462 -0
  22. package/docs/sdks/emailtemplates/README.md +437 -0
  23. package/docs/sdks/feedback/README.md +437 -0
  24. package/docs/sdks/formfields/README.md +437 -0
  25. package/docs/sdks/formresponses/README.md +461 -0
  26. package/docs/sdks/forms/README.md +437 -0
  27. package/docs/sdks/jobactivities/README.md +490 -0
  28. package/docs/sdks/joballocations/README.md +492 -0
  29. package/docs/sdks/jobchecklists/README.md +477 -0
  30. package/docs/sdks/jobcontacts/README.md +462 -0
  31. package/docs/sdks/jobmaterialbundles/README.md +441 -0
  32. package/docs/sdks/jobmaterials/README.md +478 -0
  33. package/docs/sdks/jobpayments/README.md +445 -0
  34. package/docs/sdks/jobqueues/README.md +458 -0
  35. package/docs/sdks/jobs/README.md +546 -0
  36. package/docs/sdks/knowledgearticles/README.md +452 -0
  37. package/docs/sdks/locations/README.md +462 -0
  38. package/docs/sdks/materials/README.md +466 -0
  39. package/docs/sdks/notes/README.md +445 -0
  40. package/docs/sdks/securityroles/README.md +437 -0
  41. package/docs/sdks/servicem8/README.md +22 -0
  42. package/docs/sdks/smstemplates/README.md +437 -0
  43. package/docs/sdks/staffmembers/README.md +494 -0
  44. package/docs/sdks/staffmessages/README.md +457 -0
  45. package/docs/sdks/tasks/README.md +490 -0
  46. package/docs/sdks/taxrates/README.md +437 -0
  47. package/docs/sdks/vendors/README.md +278 -0
  48. package/jsr.json +1 -1
  49. package/package.json +1 -1
  50. package/src/lib/config.ts +2 -2
  51. package/src/mcp-server/mcp-server.ts +1 -1
  52. package/src/mcp-server/server.ts +1 -1
  53. package/api_fixed.json +0 -14096
@@ -0,0 +1,492 @@
1
+ # JobAllocations
2
+ (*jobAllocations*)
3
+
4
+ ## Overview
5
+
6
+ Operations related to Job Allocations
7
+
8
+ ### Available Operations
9
+
10
+ * [listJobAllocations](#listjoballocations) - List all Job Allocations
11
+ * [createJobAllocations](#createjoballocations) - Create a new Job Allocation
12
+ * [getJobAllocations](#getjoballocations) - Retrieve a Job Allocation
13
+ * [updateJobAllocations](#updatejoballocations) - Update a Job Allocation
14
+ * [deleteJobAllocations](#deletejoballocations) - Delete a Job Allocation
15
+
16
+ ## listJobAllocations
17
+
18
+
19
+
20
+ #### Filtering
21
+ This endpoint supports result filtering. For more information on how to filter this request, [go here](/docs/filtering).
22
+
23
+
24
+ #### OAuth Scope
25
+ This endpoint requires the following OAuth scope **read_schedule**.
26
+
27
+
28
+
29
+ ### Example Usage
30
+
31
+ ```typescript
32
+ import { ServiceM8 } from "servicem8";
33
+
34
+ const serviceM8 = new ServiceM8({
35
+ security: {
36
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
37
+ },
38
+ });
39
+
40
+ async function run() {
41
+ const result = await serviceM8.jobAllocations.listJobAllocations();
42
+
43
+ // Handle the result
44
+ console.log(result);
45
+ }
46
+
47
+ run();
48
+ ```
49
+
50
+ ### Standalone function
51
+
52
+ The standalone function version of this method:
53
+
54
+ ```typescript
55
+ import { ServiceM8Core } from "servicem8/core.js";
56
+ import { jobAllocationsListJobAllocations } from "servicem8/funcs/jobAllocationsListJobAllocations.js";
57
+
58
+ // Use `ServiceM8Core` for best tree-shaking performance.
59
+ // You can create one instance of it to use across an application.
60
+ const serviceM8 = new ServiceM8Core({
61
+ security: {
62
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
63
+ },
64
+ });
65
+
66
+ async function run() {
67
+ const res = await jobAllocationsListJobAllocations(serviceM8);
68
+
69
+ if (!res.ok) {
70
+ throw res.error;
71
+ }
72
+
73
+ const { value: result } = res;
74
+
75
+ // Handle the result
76
+ console.log(result);
77
+ }
78
+
79
+ run();
80
+ ```
81
+
82
+ ### Parameters
83
+
84
+ | Parameter | Type | Required | Description |
85
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
86
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
87
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
88
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
89
+
90
+ ### Response
91
+
92
+ **Promise\<[operations.ListJobAllocationsResponse](../../models/operations/listjoballocationsresponse.md)\>**
93
+
94
+ ### Errors
95
+
96
+ | Error Type | Status Code | Content Type |
97
+ | ---------------- | ---------------- | ---------------- |
98
+ | errors.ErrorT | 400 | application/json |
99
+ | errors.APIError | 4XX, 5XX | \*/\* |
100
+
101
+ ## createJobAllocations
102
+
103
+
104
+
105
+ #### OAuth Scope
106
+ This endpoint requires the following OAuth scope **manage_schedule**.
107
+
108
+
109
+
110
+ #### Record UUID
111
+ UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the response header as x-record-uuid.
112
+
113
+
114
+
115
+ ### Example Usage
116
+
117
+ ```typescript
118
+ import { ServiceM8 } from "servicem8";
119
+
120
+ const serviceM8 = new ServiceM8({
121
+ security: {
122
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
123
+ },
124
+ });
125
+
126
+ async function run() {
127
+ const result = await serviceM8.jobAllocations.createJobAllocations({
128
+ uuid: "123e4567-80be-4bbf-843a-22b4d44e9dbb",
129
+ jobUuid: "123e4567-fa82-4a92-95b3-22b4d98be4fb",
130
+ queueUuid: "123e4567-48f3-4e37-8366-22b4d4aa202b",
131
+ staffUuid: "123e4567-3767-4488-9b62-22b4d1bee3fb",
132
+ allocationDate: "YYYY-MM-DD HH:MM:SS",
133
+ allocationWindowUuid: "123e4567-1c17-483f-9f69-22b4dde619bb",
134
+ allocatedByStaffUuid: "123e4567-9fe4-4526-b360-22b4d4a21dfb",
135
+ allocatedTimestamp: "YYYY-MM-DD HH:MM:SS",
136
+ expiryTimestamp: "YYYY-MM-DD HH:MM:SS",
137
+ readTimestamp: "YYYY-MM-DD HH:MM:SS",
138
+ completionTimestamp: "YYYY-MM-DD HH:MM:SS",
139
+ acceptanceTimestamp: "YYYY-MM-DD HH:MM:SS",
140
+ });
141
+
142
+ // Handle the result
143
+ console.log(result);
144
+ }
145
+
146
+ run();
147
+ ```
148
+
149
+ ### Standalone function
150
+
151
+ The standalone function version of this method:
152
+
153
+ ```typescript
154
+ import { ServiceM8Core } from "servicem8/core.js";
155
+ import { jobAllocationsCreateJobAllocations } from "servicem8/funcs/jobAllocationsCreateJobAllocations.js";
156
+
157
+ // Use `ServiceM8Core` for best tree-shaking performance.
158
+ // You can create one instance of it to use across an application.
159
+ const serviceM8 = new ServiceM8Core({
160
+ security: {
161
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
162
+ },
163
+ });
164
+
165
+ async function run() {
166
+ const res = await jobAllocationsCreateJobAllocations(serviceM8, {
167
+ uuid: "123e4567-80be-4bbf-843a-22b4d44e9dbb",
168
+ jobUuid: "123e4567-fa82-4a92-95b3-22b4d98be4fb",
169
+ queueUuid: "123e4567-48f3-4e37-8366-22b4d4aa202b",
170
+ staffUuid: "123e4567-3767-4488-9b62-22b4d1bee3fb",
171
+ allocationDate: "YYYY-MM-DD HH:MM:SS",
172
+ allocationWindowUuid: "123e4567-1c17-483f-9f69-22b4dde619bb",
173
+ allocatedByStaffUuid: "123e4567-9fe4-4526-b360-22b4d4a21dfb",
174
+ allocatedTimestamp: "YYYY-MM-DD HH:MM:SS",
175
+ expiryTimestamp: "YYYY-MM-DD HH:MM:SS",
176
+ readTimestamp: "YYYY-MM-DD HH:MM:SS",
177
+ completionTimestamp: "YYYY-MM-DD HH:MM:SS",
178
+ acceptanceTimestamp: "YYYY-MM-DD HH:MM:SS",
179
+ });
180
+
181
+ if (!res.ok) {
182
+ throw res.error;
183
+ }
184
+
185
+ const { value: result } = res;
186
+
187
+ // Handle the result
188
+ console.log(result);
189
+ }
190
+
191
+ run();
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ | Parameter | Type | Required | Description |
197
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
198
+ | `request` | [components.JobAllocationInput](../../models/components/joballocationinput.md) | :heavy_check_mark: | The request object to use for the request. |
199
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
200
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
201
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
202
+
203
+ ### Response
204
+
205
+ **Promise\<[operations.CreateJobAllocationsResponse](../../models/operations/createjoballocationsresponse.md)\>**
206
+
207
+ ### Errors
208
+
209
+ | Error Type | Status Code | Content Type |
210
+ | ---------------- | ---------------- | ---------------- |
211
+ | errors.ErrorT | 400 | application/json |
212
+ | errors.APIError | 4XX, 5XX | \*/\* |
213
+
214
+ ## getJobAllocations
215
+
216
+
217
+
218
+ #### OAuth Scope
219
+ This endpoint requires the following OAuth scope **read_schedule**.
220
+
221
+
222
+
223
+ ### Example Usage
224
+
225
+ ```typescript
226
+ import { ServiceM8 } from "servicem8";
227
+
228
+ const serviceM8 = new ServiceM8({
229
+ security: {
230
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
231
+ },
232
+ });
233
+
234
+ async function run() {
235
+ const result = await serviceM8.jobAllocations.getJobAllocations({
236
+ uuid: "0d05bbd5-edc5-48f5-97dd-9ac71aad761c",
237
+ });
238
+
239
+ // Handle the result
240
+ console.log(result);
241
+ }
242
+
243
+ run();
244
+ ```
245
+
246
+ ### Standalone function
247
+
248
+ The standalone function version of this method:
249
+
250
+ ```typescript
251
+ import { ServiceM8Core } from "servicem8/core.js";
252
+ import { jobAllocationsGetJobAllocations } from "servicem8/funcs/jobAllocationsGetJobAllocations.js";
253
+
254
+ // Use `ServiceM8Core` for best tree-shaking performance.
255
+ // You can create one instance of it to use across an application.
256
+ const serviceM8 = new ServiceM8Core({
257
+ security: {
258
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
259
+ },
260
+ });
261
+
262
+ async function run() {
263
+ const res = await jobAllocationsGetJobAllocations(serviceM8, {
264
+ uuid: "0d05bbd5-edc5-48f5-97dd-9ac71aad761c",
265
+ });
266
+
267
+ if (!res.ok) {
268
+ throw res.error;
269
+ }
270
+
271
+ const { value: result } = res;
272
+
273
+ // Handle the result
274
+ console.log(result);
275
+ }
276
+
277
+ run();
278
+ ```
279
+
280
+ ### Parameters
281
+
282
+ | Parameter | Type | Required | Description |
283
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
284
+ | `request` | [operations.GetJobAllocationsRequest](../../models/operations/getjoballocationsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
285
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
286
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
287
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
288
+
289
+ ### Response
290
+
291
+ **Promise\<[operations.GetJobAllocationsResponse](../../models/operations/getjoballocationsresponse.md)\>**
292
+
293
+ ### Errors
294
+
295
+ | Error Type | Status Code | Content Type |
296
+ | ---------------- | ---------------- | ---------------- |
297
+ | errors.ErrorT | 400 | application/json |
298
+ | errors.APIError | 4XX, 5XX | \*/\* |
299
+
300
+ ## updateJobAllocations
301
+
302
+ Update a Job Allocation
303
+
304
+ ### Example Usage
305
+
306
+ ```typescript
307
+ import { ServiceM8 } from "servicem8";
308
+
309
+ const serviceM8 = new ServiceM8({
310
+ security: {
311
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
312
+ },
313
+ });
314
+
315
+ async function run() {
316
+ const result = await serviceM8.jobAllocations.updateJobAllocations({
317
+ uuid: "1e2eeaa9-f021-442e-bfb3-163a7f0bbeb5",
318
+ jobAllocation: {
319
+ uuid: "123e4567-80be-4bbf-843a-22b4d44e9dbb",
320
+ jobUuid: "123e4567-fa82-4a92-95b3-22b4d98be4fb",
321
+ queueUuid: "123e4567-48f3-4e37-8366-22b4d4aa202b",
322
+ staffUuid: "123e4567-3767-4488-9b62-22b4d1bee3fb",
323
+ allocationDate: "YYYY-MM-DD HH:MM:SS",
324
+ allocationWindowUuid: "123e4567-1c17-483f-9f69-22b4dde619bb",
325
+ allocatedByStaffUuid: "123e4567-9fe4-4526-b360-22b4d4a21dfb",
326
+ allocatedTimestamp: "YYYY-MM-DD HH:MM:SS",
327
+ expiryTimestamp: "YYYY-MM-DD HH:MM:SS",
328
+ readTimestamp: "YYYY-MM-DD HH:MM:SS",
329
+ completionTimestamp: "YYYY-MM-DD HH:MM:SS",
330
+ acceptanceTimestamp: "YYYY-MM-DD HH:MM:SS",
331
+ },
332
+ });
333
+
334
+ // Handle the result
335
+ console.log(result);
336
+ }
337
+
338
+ run();
339
+ ```
340
+
341
+ ### Standalone function
342
+
343
+ The standalone function version of this method:
344
+
345
+ ```typescript
346
+ import { ServiceM8Core } from "servicem8/core.js";
347
+ import { jobAllocationsUpdateJobAllocations } from "servicem8/funcs/jobAllocationsUpdateJobAllocations.js";
348
+
349
+ // Use `ServiceM8Core` for best tree-shaking performance.
350
+ // You can create one instance of it to use across an application.
351
+ const serviceM8 = new ServiceM8Core({
352
+ security: {
353
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
354
+ },
355
+ });
356
+
357
+ async function run() {
358
+ const res = await jobAllocationsUpdateJobAllocations(serviceM8, {
359
+ uuid: "1e2eeaa9-f021-442e-bfb3-163a7f0bbeb5",
360
+ jobAllocation: {
361
+ uuid: "123e4567-80be-4bbf-843a-22b4d44e9dbb",
362
+ jobUuid: "123e4567-fa82-4a92-95b3-22b4d98be4fb",
363
+ queueUuid: "123e4567-48f3-4e37-8366-22b4d4aa202b",
364
+ staffUuid: "123e4567-3767-4488-9b62-22b4d1bee3fb",
365
+ allocationDate: "YYYY-MM-DD HH:MM:SS",
366
+ allocationWindowUuid: "123e4567-1c17-483f-9f69-22b4dde619bb",
367
+ allocatedByStaffUuid: "123e4567-9fe4-4526-b360-22b4d4a21dfb",
368
+ allocatedTimestamp: "YYYY-MM-DD HH:MM:SS",
369
+ expiryTimestamp: "YYYY-MM-DD HH:MM:SS",
370
+ readTimestamp: "YYYY-MM-DD HH:MM:SS",
371
+ completionTimestamp: "YYYY-MM-DD HH:MM:SS",
372
+ acceptanceTimestamp: "YYYY-MM-DD HH:MM:SS",
373
+ },
374
+ });
375
+
376
+ if (!res.ok) {
377
+ throw res.error;
378
+ }
379
+
380
+ const { value: result } = res;
381
+
382
+ // Handle the result
383
+ console.log(result);
384
+ }
385
+
386
+ run();
387
+ ```
388
+
389
+ ### Parameters
390
+
391
+ | Parameter | Type | Required | Description |
392
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
393
+ | `request` | [operations.UpdateJobAllocationsRequest](../../models/operations/updatejoballocationsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
394
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
395
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
396
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
397
+
398
+ ### Response
399
+
400
+ **Promise\<[operations.UpdateJobAllocationsResponse](../../models/operations/updatejoballocationsresponse.md)\>**
401
+
402
+ ### Errors
403
+
404
+ | Error Type | Status Code | Content Type |
405
+ | ---------------- | ---------------- | ---------------- |
406
+ | errors.ErrorT | 400 | application/json |
407
+ | errors.APIError | 4XX, 5XX | \*/\* |
408
+
409
+ ## deleteJobAllocations
410
+
411
+
412
+
413
+ In ServiceM8, records are never deleted, but are archived. Archived records will remain accessible via the API as (active = 0), however will no longer be visible in UI. Archived records can be restored to active by setting the record active field to 1.
414
+
415
+
416
+
417
+ ### Example Usage
418
+
419
+ ```typescript
420
+ import { ServiceM8 } from "servicem8";
421
+
422
+ const serviceM8 = new ServiceM8({
423
+ security: {
424
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
425
+ },
426
+ });
427
+
428
+ async function run() {
429
+ const result = await serviceM8.jobAllocations.deleteJobAllocations({
430
+ uuid: "88d40d63-2a66-4330-9db6-6768b93c2891",
431
+ });
432
+
433
+ // Handle the result
434
+ console.log(result);
435
+ }
436
+
437
+ run();
438
+ ```
439
+
440
+ ### Standalone function
441
+
442
+ The standalone function version of this method:
443
+
444
+ ```typescript
445
+ import { ServiceM8Core } from "servicem8/core.js";
446
+ import { jobAllocationsDeleteJobAllocations } from "servicem8/funcs/jobAllocationsDeleteJobAllocations.js";
447
+
448
+ // Use `ServiceM8Core` for best tree-shaking performance.
449
+ // You can create one instance of it to use across an application.
450
+ const serviceM8 = new ServiceM8Core({
451
+ security: {
452
+ oauth2: process.env["SERVICEM8_OAUTH2"] ?? "",
453
+ },
454
+ });
455
+
456
+ async function run() {
457
+ const res = await jobAllocationsDeleteJobAllocations(serviceM8, {
458
+ uuid: "88d40d63-2a66-4330-9db6-6768b93c2891",
459
+ });
460
+
461
+ if (!res.ok) {
462
+ throw res.error;
463
+ }
464
+
465
+ const { value: result } = res;
466
+
467
+ // Handle the result
468
+ console.log(result);
469
+ }
470
+
471
+ run();
472
+ ```
473
+
474
+ ### Parameters
475
+
476
+ | Parameter | Type | Required | Description |
477
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
478
+ | `request` | [operations.DeleteJobAllocationsRequest](../../models/operations/deletejoballocationsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
479
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
480
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
481
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
482
+
483
+ ### Response
484
+
485
+ **Promise\<[operations.DeleteJobAllocationsResponse](../../models/operations/deletejoballocationsresponse.md)\>**
486
+
487
+ ### Errors
488
+
489
+ | Error Type | Status Code | Content Type |
490
+ | ---------------- | ---------------- | ---------------- |
491
+ | errors.ErrorT | 400 | application/json |
492
+ | errors.APIError | 4XX, 5XX | \*/\* |