@unified-api/typescript-sdk 2.73.2 → 2.73.4
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/README.md +8 -0
- package/bin/mcp-server.js +3473 -2828
- package/bin/mcp-server.js.map +26 -13
- package/docs/sdks/ats/README.md +332 -0
- package/docs/sdks/company/README.md +332 -0
- package/funcs/atsCreateAtsCompany.d.ts +15 -0
- package/funcs/atsCreateAtsCompany.d.ts.map +1 -0
- package/funcs/atsCreateAtsCompany.js +112 -0
- package/funcs/atsCreateAtsCompany.js.map +1 -0
- package/funcs/atsPatchAtsCompany.d.ts +15 -0
- package/funcs/atsPatchAtsCompany.d.ts.map +1 -0
- package/funcs/atsPatchAtsCompany.js +116 -0
- package/funcs/atsPatchAtsCompany.js.map +1 -0
- package/funcs/atsRemoveAtsCompany.d.ts +14 -0
- package/funcs/atsRemoveAtsCompany.d.ts.map +1 -0
- package/funcs/atsRemoveAtsCompany.js +112 -0
- package/funcs/atsRemoveAtsCompany.js.map +1 -0
- package/funcs/atsUpdateAtsCompany.d.ts +15 -0
- package/funcs/atsUpdateAtsCompany.d.ts.map +1 -0
- package/funcs/atsUpdateAtsCompany.js +116 -0
- package/funcs/atsUpdateAtsCompany.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/cli/start/command.d.ts.map +1 -1
- package/mcp-server/cli/start/command.js +0 -12
- package/mcp-server/cli/start/command.js.map +1 -1
- package/mcp-server/cli/start/impl.d.ts +0 -2
- package/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/mcp-server/cli/start/impl.js +0 -2
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +9 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/atsCreateAtsCompany.d.ts +8 -0
- package/mcp-server/tools/atsCreateAtsCompany.d.ts.map +1 -0
- package/mcp-server/tools/atsCreateAtsCompany.js +52 -0
- package/mcp-server/tools/atsCreateAtsCompany.js.map +1 -0
- package/mcp-server/tools/atsPatchAtsCompany.d.ts +8 -0
- package/mcp-server/tools/atsPatchAtsCompany.d.ts.map +1 -0
- package/mcp-server/tools/atsPatchAtsCompany.js +52 -0
- package/mcp-server/tools/atsPatchAtsCompany.js.map +1 -0
- package/mcp-server/tools/atsRemoveAtsCompany.d.ts +8 -0
- package/mcp-server/tools/atsRemoveAtsCompany.d.ts.map +1 -0
- package/mcp-server/tools/atsRemoveAtsCompany.js +51 -0
- package/mcp-server/tools/atsRemoveAtsCompany.js.map +1 -0
- package/mcp-server/tools/atsUpdateAtsCompany.d.ts +8 -0
- package/mcp-server/tools/atsUpdateAtsCompany.d.ts.map +1 -0
- package/mcp-server/tools/atsUpdateAtsCompany.js +52 -0
- package/mcp-server/tools/atsUpdateAtsCompany.js.map +1 -0
- package/package.json +1 -1
- package/sdk/ats.d.ts +16 -0
- package/sdk/ats.d.ts.map +1 -1
- package/sdk/ats.js +28 -0
- package/sdk/ats.js.map +1 -1
- package/sdk/company.d.ts +16 -0
- package/sdk/company.d.ts.map +1 -1
- package/sdk/company.js +28 -0
- package/sdk/company.js.map +1 -1
- package/sdk/models/errors/sdkerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkerror.js +8 -2
- package/sdk/models/errors/sdkerror.js.map +1 -1
- package/sdk/models/operations/createatscompany.d.ts +45 -0
- package/sdk/models/operations/createatscompany.d.ts.map +1 -0
- package/sdk/models/operations/createatscompany.js +77 -0
- package/sdk/models/operations/createatscompany.js.map +1 -0
- package/sdk/models/operations/index.d.ts +4 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +4 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/patchatscompany.d.ts +50 -0
- package/sdk/models/operations/patchatscompany.d.ts.map +1 -0
- package/sdk/models/operations/patchatscompany.js +79 -0
- package/sdk/models/operations/patchatscompany.js.map +1 -0
- package/sdk/models/operations/removeatscompany.d.ts +66 -0
- package/sdk/models/operations/removeatscompany.d.ts.map +1 -0
- package/sdk/models/operations/removeatscompany.js +105 -0
- package/sdk/models/operations/removeatscompany.js.map +1 -0
- package/sdk/models/operations/updateatscompany.d.ts +50 -0
- package/sdk/models/operations/updateatscompany.d.ts.map +1 -0
- package/sdk/models/operations/updateatscompany.js +79 -0
- package/sdk/models/operations/updateatscompany.js.map +1 -0
- package/sdk/models/shared/index.d.ts +2 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +2 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/messagingmessage.d.ts +3 -0
- package/sdk/models/shared/messagingmessage.d.ts.map +1 -1
- package/sdk/models/shared/messagingmessage.js +3 -0
- package/sdk/models/shared/messagingmessage.js.map +1 -1
- package/sdk/models/shared/messagingreaction.d.ts +32 -0
- package/sdk/models/shared/messagingreaction.d.ts.map +1 -0
- package/sdk/models/shared/messagingreaction.js +62 -0
- package/sdk/models/shared/messagingreaction.js.map +1 -0
- package/sdk/models/shared/propertymessagingreactionmember.d.ts +33 -0
- package/sdk/models/shared/propertymessagingreactionmember.d.ts.map +1 -0
- package/sdk/models/shared/propertymessagingreactionmember.js +72 -0
- package/sdk/models/shared/propertymessagingreactionmember.js.map +1 -0
- package/src/funcs/atsCreateAtsCompany.ts +170 -0
- package/src/funcs/atsPatchAtsCompany.ts +174 -0
- package/src/funcs/atsRemoveAtsCompany.ts +175 -0
- package/src/funcs/atsUpdateAtsCompany.ts +174 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +0 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/atsCreateAtsCompany.ts +35 -0
- package/src/mcp-server/tools/atsPatchAtsCompany.ts +35 -0
- package/src/mcp-server/tools/atsRemoveAtsCompany.ts +33 -0
- package/src/mcp-server/tools/atsUpdateAtsCompany.ts +35 -0
- package/src/sdk/ats.ts +60 -0
- package/src/sdk/company.ts +60 -0
- package/src/sdk/models/errors/sdkerror.ts +8 -2
- package/src/sdk/models/operations/createatscompany.ts +99 -0
- package/src/sdk/models/operations/index.ts +4 -0
- package/src/sdk/models/operations/patchatscompany.ts +106 -0
- package/src/sdk/models/operations/removeatscompany.ts +151 -0
- package/src/sdk/models/operations/updateatscompany.ts +106 -0
- package/src/sdk/models/shared/index.ts +2 -0
- package/src/sdk/models/shared/messagingmessage.ts +10 -0
- package/src/sdk/models/shared/messagingreaction.ts +76 -0
- package/src/sdk/models/shared/propertymessagingreactionmember.ts +85 -0
package/docs/sdks/ats/README.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* [createAtsActivity](#createatsactivity) - Create an activity
|
|
9
9
|
* [createAtsApplication](#createatsapplication) - Create an application
|
|
10
10
|
* [createAtsCandidate](#createatscandidate) - Create a candidate
|
|
11
|
+
* [createAtsCompany](#createatscompany) - Create a company
|
|
11
12
|
* [createAtsDocument](#createatsdocument) - Create a document
|
|
12
13
|
* [createAtsInterview](#createatsinterview) - Create an interview
|
|
13
14
|
* [createAtsJob](#createatsjob) - Create a job
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
* [patchAtsActivity](#patchatsactivity) - Update an activity
|
|
33
34
|
* [patchAtsApplication](#patchatsapplication) - Update an application
|
|
34
35
|
* [patchAtsCandidate](#patchatscandidate) - Update a candidate
|
|
36
|
+
* [patchAtsCompany](#patchatscompany) - Update a company
|
|
35
37
|
* [patchAtsDocument](#patchatsdocument) - Update a document
|
|
36
38
|
* [patchAtsInterview](#patchatsinterview) - Update an interview
|
|
37
39
|
* [patchAtsJob](#patchatsjob) - Update a job
|
|
@@ -39,6 +41,7 @@
|
|
|
39
41
|
* [removeAtsActivity](#removeatsactivity) - Remove an activity
|
|
40
42
|
* [removeAtsApplication](#removeatsapplication) - Remove an application
|
|
41
43
|
* [removeAtsCandidate](#removeatscandidate) - Remove a candidate
|
|
44
|
+
* [removeAtsCompany](#removeatscompany) - Remove a company
|
|
42
45
|
* [removeAtsDocument](#removeatsdocument) - Remove a document
|
|
43
46
|
* [removeAtsInterview](#removeatsinterview) - Remove an interview
|
|
44
47
|
* [removeAtsJob](#removeatsjob) - Remove a job
|
|
@@ -46,6 +49,7 @@
|
|
|
46
49
|
* [updateAtsActivity](#updateatsactivity) - Update an activity
|
|
47
50
|
* [updateAtsApplication](#updateatsapplication) - Update an application
|
|
48
51
|
* [updateAtsCandidate](#updateatscandidate) - Update a candidate
|
|
52
|
+
* [updateAtsCompany](#updateatscompany) - Update a company
|
|
49
53
|
* [updateAtsDocument](#updateatsdocument) - Update a document
|
|
50
54
|
* [updateAtsInterview](#updateatsinterview) - Update an interview
|
|
51
55
|
* [updateAtsJob](#updateatsjob) - Update a job
|
|
@@ -285,6 +289,88 @@ run();
|
|
|
285
289
|
| --------------- | --------------- | --------------- |
|
|
286
290
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
287
291
|
|
|
292
|
+
## createAtsCompany
|
|
293
|
+
|
|
294
|
+
Create a company
|
|
295
|
+
|
|
296
|
+
### Example Usage
|
|
297
|
+
|
|
298
|
+
```typescript
|
|
299
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
300
|
+
|
|
301
|
+
const unifiedTo = new UnifiedTo({
|
|
302
|
+
security: {
|
|
303
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
304
|
+
},
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
async function run() {
|
|
308
|
+
const result = await unifiedTo.ats.createAtsCompany({
|
|
309
|
+
atsCompany: {
|
|
310
|
+
name: "<value>",
|
|
311
|
+
},
|
|
312
|
+
connectionId: "<id>",
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
console.log(result);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
run();
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Standalone function
|
|
322
|
+
|
|
323
|
+
The standalone function version of this method:
|
|
324
|
+
|
|
325
|
+
```typescript
|
|
326
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
327
|
+
import { atsCreateAtsCompany } from "@unified-api/typescript-sdk/funcs/atsCreateAtsCompany.js";
|
|
328
|
+
|
|
329
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
330
|
+
// You can create one instance of it to use across an application.
|
|
331
|
+
const unifiedTo = new UnifiedToCore({
|
|
332
|
+
security: {
|
|
333
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
334
|
+
},
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
async function run() {
|
|
338
|
+
const res = await atsCreateAtsCompany(unifiedTo, {
|
|
339
|
+
atsCompany: {
|
|
340
|
+
name: "<value>",
|
|
341
|
+
},
|
|
342
|
+
connectionId: "<id>",
|
|
343
|
+
});
|
|
344
|
+
if (res.ok) {
|
|
345
|
+
const { value: result } = res;
|
|
346
|
+
console.log(result);
|
|
347
|
+
} else {
|
|
348
|
+
console.log("atsCreateAtsCompany failed:", res.error);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
run();
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Parameters
|
|
356
|
+
|
|
357
|
+
| Parameter | Type | Required | Description |
|
|
358
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
359
|
+
| `request` | [operations.CreateAtsCompanyRequest](../../sdk/models/operations/createatscompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
360
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
361
|
+
| `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. |
|
|
362
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
363
|
+
|
|
364
|
+
### Response
|
|
365
|
+
|
|
366
|
+
**Promise\<[shared.AtsCompany](../../sdk/models/shared/atscompany.md)\>**
|
|
367
|
+
|
|
368
|
+
### Errors
|
|
369
|
+
|
|
370
|
+
| Error Type | Status Code | Content Type |
|
|
371
|
+
| --------------- | --------------- | --------------- |
|
|
372
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
373
|
+
|
|
288
374
|
## createAtsDocument
|
|
289
375
|
|
|
290
376
|
Create a document
|
|
@@ -2145,6 +2231,90 @@ run();
|
|
|
2145
2231
|
| --------------- | --------------- | --------------- |
|
|
2146
2232
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2147
2233
|
|
|
2234
|
+
## patchAtsCompany
|
|
2235
|
+
|
|
2236
|
+
Update a company
|
|
2237
|
+
|
|
2238
|
+
### Example Usage
|
|
2239
|
+
|
|
2240
|
+
```typescript
|
|
2241
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
2242
|
+
|
|
2243
|
+
const unifiedTo = new UnifiedTo({
|
|
2244
|
+
security: {
|
|
2245
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
2246
|
+
},
|
|
2247
|
+
});
|
|
2248
|
+
|
|
2249
|
+
async function run() {
|
|
2250
|
+
const result = await unifiedTo.ats.patchAtsCompany({
|
|
2251
|
+
atsCompany: {
|
|
2252
|
+
name: "<value>",
|
|
2253
|
+
},
|
|
2254
|
+
connectionId: "<id>",
|
|
2255
|
+
id: "<id>",
|
|
2256
|
+
});
|
|
2257
|
+
|
|
2258
|
+
console.log(result);
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
run();
|
|
2262
|
+
```
|
|
2263
|
+
|
|
2264
|
+
### Standalone function
|
|
2265
|
+
|
|
2266
|
+
The standalone function version of this method:
|
|
2267
|
+
|
|
2268
|
+
```typescript
|
|
2269
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
2270
|
+
import { atsPatchAtsCompany } from "@unified-api/typescript-sdk/funcs/atsPatchAtsCompany.js";
|
|
2271
|
+
|
|
2272
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
2273
|
+
// You can create one instance of it to use across an application.
|
|
2274
|
+
const unifiedTo = new UnifiedToCore({
|
|
2275
|
+
security: {
|
|
2276
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
2277
|
+
},
|
|
2278
|
+
});
|
|
2279
|
+
|
|
2280
|
+
async function run() {
|
|
2281
|
+
const res = await atsPatchAtsCompany(unifiedTo, {
|
|
2282
|
+
atsCompany: {
|
|
2283
|
+
name: "<value>",
|
|
2284
|
+
},
|
|
2285
|
+
connectionId: "<id>",
|
|
2286
|
+
id: "<id>",
|
|
2287
|
+
});
|
|
2288
|
+
if (res.ok) {
|
|
2289
|
+
const { value: result } = res;
|
|
2290
|
+
console.log(result);
|
|
2291
|
+
} else {
|
|
2292
|
+
console.log("atsPatchAtsCompany failed:", res.error);
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
run();
|
|
2297
|
+
```
|
|
2298
|
+
|
|
2299
|
+
### Parameters
|
|
2300
|
+
|
|
2301
|
+
| Parameter | Type | Required | Description |
|
|
2302
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2303
|
+
| `request` | [operations.PatchAtsCompanyRequest](../../sdk/models/operations/patchatscompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
2304
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2305
|
+
| `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. |
|
|
2306
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2307
|
+
|
|
2308
|
+
### Response
|
|
2309
|
+
|
|
2310
|
+
**Promise\<[shared.AtsCompany](../../sdk/models/shared/atscompany.md)\>**
|
|
2311
|
+
|
|
2312
|
+
### Errors
|
|
2313
|
+
|
|
2314
|
+
| Error Type | Status Code | Content Type |
|
|
2315
|
+
| --------------- | --------------- | --------------- |
|
|
2316
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2317
|
+
|
|
2148
2318
|
## patchAtsDocument
|
|
2149
2319
|
|
|
2150
2320
|
Update a document
|
|
@@ -2699,6 +2869,84 @@ run();
|
|
|
2699
2869
|
| --------------- | --------------- | --------------- |
|
|
2700
2870
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2701
2871
|
|
|
2872
|
+
## removeAtsCompany
|
|
2873
|
+
|
|
2874
|
+
Remove a company
|
|
2875
|
+
|
|
2876
|
+
### Example Usage
|
|
2877
|
+
|
|
2878
|
+
```typescript
|
|
2879
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
2880
|
+
|
|
2881
|
+
const unifiedTo = new UnifiedTo({
|
|
2882
|
+
security: {
|
|
2883
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
2884
|
+
},
|
|
2885
|
+
});
|
|
2886
|
+
|
|
2887
|
+
async function run() {
|
|
2888
|
+
const result = await unifiedTo.ats.removeAtsCompany({
|
|
2889
|
+
connectionId: "<id>",
|
|
2890
|
+
id: "<id>",
|
|
2891
|
+
});
|
|
2892
|
+
|
|
2893
|
+
console.log(result);
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
run();
|
|
2897
|
+
```
|
|
2898
|
+
|
|
2899
|
+
### Standalone function
|
|
2900
|
+
|
|
2901
|
+
The standalone function version of this method:
|
|
2902
|
+
|
|
2903
|
+
```typescript
|
|
2904
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
2905
|
+
import { atsRemoveAtsCompany } from "@unified-api/typescript-sdk/funcs/atsRemoveAtsCompany.js";
|
|
2906
|
+
|
|
2907
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
2908
|
+
// You can create one instance of it to use across an application.
|
|
2909
|
+
const unifiedTo = new UnifiedToCore({
|
|
2910
|
+
security: {
|
|
2911
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
2912
|
+
},
|
|
2913
|
+
});
|
|
2914
|
+
|
|
2915
|
+
async function run() {
|
|
2916
|
+
const res = await atsRemoveAtsCompany(unifiedTo, {
|
|
2917
|
+
connectionId: "<id>",
|
|
2918
|
+
id: "<id>",
|
|
2919
|
+
});
|
|
2920
|
+
if (res.ok) {
|
|
2921
|
+
const { value: result } = res;
|
|
2922
|
+
console.log(result);
|
|
2923
|
+
} else {
|
|
2924
|
+
console.log("atsRemoveAtsCompany failed:", res.error);
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
run();
|
|
2929
|
+
```
|
|
2930
|
+
|
|
2931
|
+
### Parameters
|
|
2932
|
+
|
|
2933
|
+
| Parameter | Type | Required | Description |
|
|
2934
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2935
|
+
| `request` | [operations.RemoveAtsCompanyRequest](../../sdk/models/operations/removeatscompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
2936
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2937
|
+
| `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. |
|
|
2938
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2939
|
+
|
|
2940
|
+
### Response
|
|
2941
|
+
|
|
2942
|
+
**Promise\<[operations.RemoveAtsCompanyResponse](../../sdk/models/operations/removeatscompanyresponse.md)\>**
|
|
2943
|
+
|
|
2944
|
+
### Errors
|
|
2945
|
+
|
|
2946
|
+
| Error Type | Status Code | Content Type |
|
|
2947
|
+
| --------------- | --------------- | --------------- |
|
|
2948
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
2949
|
+
|
|
2702
2950
|
## removeAtsDocument
|
|
2703
2951
|
|
|
2704
2952
|
Remove a document
|
|
@@ -3251,6 +3499,90 @@ run();
|
|
|
3251
3499
|
| --------------- | --------------- | --------------- |
|
|
3252
3500
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
3253
3501
|
|
|
3502
|
+
## updateAtsCompany
|
|
3503
|
+
|
|
3504
|
+
Update a company
|
|
3505
|
+
|
|
3506
|
+
### Example Usage
|
|
3507
|
+
|
|
3508
|
+
```typescript
|
|
3509
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
3510
|
+
|
|
3511
|
+
const unifiedTo = new UnifiedTo({
|
|
3512
|
+
security: {
|
|
3513
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
3514
|
+
},
|
|
3515
|
+
});
|
|
3516
|
+
|
|
3517
|
+
async function run() {
|
|
3518
|
+
const result = await unifiedTo.ats.updateAtsCompany({
|
|
3519
|
+
atsCompany: {
|
|
3520
|
+
name: "<value>",
|
|
3521
|
+
},
|
|
3522
|
+
connectionId: "<id>",
|
|
3523
|
+
id: "<id>",
|
|
3524
|
+
});
|
|
3525
|
+
|
|
3526
|
+
console.log(result);
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
run();
|
|
3530
|
+
```
|
|
3531
|
+
|
|
3532
|
+
### Standalone function
|
|
3533
|
+
|
|
3534
|
+
The standalone function version of this method:
|
|
3535
|
+
|
|
3536
|
+
```typescript
|
|
3537
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
3538
|
+
import { atsUpdateAtsCompany } from "@unified-api/typescript-sdk/funcs/atsUpdateAtsCompany.js";
|
|
3539
|
+
|
|
3540
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
3541
|
+
// You can create one instance of it to use across an application.
|
|
3542
|
+
const unifiedTo = new UnifiedToCore({
|
|
3543
|
+
security: {
|
|
3544
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
3545
|
+
},
|
|
3546
|
+
});
|
|
3547
|
+
|
|
3548
|
+
async function run() {
|
|
3549
|
+
const res = await atsUpdateAtsCompany(unifiedTo, {
|
|
3550
|
+
atsCompany: {
|
|
3551
|
+
name: "<value>",
|
|
3552
|
+
},
|
|
3553
|
+
connectionId: "<id>",
|
|
3554
|
+
id: "<id>",
|
|
3555
|
+
});
|
|
3556
|
+
if (res.ok) {
|
|
3557
|
+
const { value: result } = res;
|
|
3558
|
+
console.log(result);
|
|
3559
|
+
} else {
|
|
3560
|
+
console.log("atsUpdateAtsCompany failed:", res.error);
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
run();
|
|
3565
|
+
```
|
|
3566
|
+
|
|
3567
|
+
### Parameters
|
|
3568
|
+
|
|
3569
|
+
| Parameter | Type | Required | Description |
|
|
3570
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
3571
|
+
| `request` | [operations.UpdateAtsCompanyRequest](../../sdk/models/operations/updateatscompanyrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
3572
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
3573
|
+
| `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. |
|
|
3574
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
3575
|
+
|
|
3576
|
+
### Response
|
|
3577
|
+
|
|
3578
|
+
**Promise\<[shared.AtsCompany](../../sdk/models/shared/atscompany.md)\>**
|
|
3579
|
+
|
|
3580
|
+
### Errors
|
|
3581
|
+
|
|
3582
|
+
| Error Type | Status Code | Content Type |
|
|
3583
|
+
| --------------- | --------------- | --------------- |
|
|
3584
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
3585
|
+
|
|
3254
3586
|
## updateAtsDocument
|
|
3255
3587
|
|
|
3256
3588
|
Update a document
|