@unified-api/typescript-sdk 2.72.0 → 2.72.2
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/FUNCTIONS.md +5 -22
- package/README.md +28 -47
- package/bin/mcp-server.js +60 -15
- package/bin/mcp-server.js.map +24 -24
- package/docs/sdks/account/README.md +30 -54
- package/docs/sdks/accounting/README.md +230 -414
- package/docs/sdks/activity/README.md +30 -54
- package/docs/sdks/apicall/README.md +10 -18
- package/docs/sdks/application/README.md +30 -54
- package/docs/sdks/applicationstatus/README.md +5 -9
- package/docs/sdks/ats/README.md +225 -405
- package/docs/sdks/auth/README.md +10 -18
- package/docs/sdks/branch/README.md +30 -54
- package/docs/sdks/busy/README.md +5 -9
- package/docs/sdks/calendar/README.md +105 -189
- package/docs/sdks/call/README.md +5 -9
- package/docs/sdks/candidate/README.md +30 -54
- package/docs/sdks/channel/README.md +10 -18
- package/docs/sdks/class/README.md +30 -54
- package/docs/sdks/collection/README.md +30 -54
- package/docs/sdks/comment/README.md +90 -162
- package/docs/sdks/commerce/README.md +150 -270
- package/docs/sdks/commit/README.md +30 -54
- package/docs/sdks/company/README.md +75 -135
- package/docs/sdks/connection/README.md +30 -54
- package/docs/sdks/contact/README.md +90 -162
- package/docs/sdks/course/README.md +30 -54
- package/docs/sdks/crm/README.md +180 -324
- package/docs/sdks/customer/README.md +30 -54
- package/docs/sdks/deal/README.md +30 -54
- package/docs/sdks/device/README.md +30 -54
- package/docs/sdks/document/README.md +30 -54
- package/docs/sdks/employee/README.md +30 -54
- package/docs/sdks/enrich/README.md +10 -18
- package/docs/sdks/event/README.md +60 -108
- package/docs/sdks/file/README.md +30 -54
- package/docs/sdks/genai/README.md +10 -18
- package/docs/sdks/group/README.md +60 -108
- package/docs/sdks/hris/README.md +200 -360
- package/docs/sdks/instructor/README.md +30 -54
- package/docs/sdks/integration/README.md +15 -27
- package/docs/sdks/interview/README.md +30 -54
- package/docs/sdks/inventory/README.md +30 -54
- package/docs/sdks/invoice/README.md +30 -54
- package/docs/sdks/issue/README.md +5 -9
- package/docs/sdks/item/README.md +30 -54
- package/docs/sdks/job/README.md +30 -54
- package/docs/sdks/journal/README.md +30 -54
- package/docs/sdks/kms/README.md +90 -162
- package/docs/sdks/lead/README.md +30 -54
- package/docs/sdks/link/README.md +60 -108
- package/docs/sdks/list/README.md +30 -54
- package/docs/sdks/lms/README.md +120 -216
- package/docs/sdks/location/README.md +60 -108
- package/docs/sdks/login/README.md +5 -9
- package/docs/sdks/martech/README.md +60 -108
- package/docs/sdks/member/README.md +30 -54
- package/docs/sdks/message/README.md +30 -54
- package/docs/sdks/messaging/README.md +40 -72
- package/docs/sdks/metadata/README.md +30 -54
- package/docs/sdks/model/README.md +5 -9
- package/docs/sdks/note/README.md +30 -54
- package/docs/sdks/order/README.md +30 -54
- package/docs/sdks/organization/README.md +40 -72
- package/docs/sdks/page/README.md +30 -54
- package/docs/sdks/passthrough/README.md +40 -72
- package/docs/sdks/payment/README.md +110 -198
- package/docs/sdks/payout/README.md +10 -18
- package/docs/sdks/payslip/README.md +10 -18
- package/docs/sdks/person/README.md +5 -9
- package/docs/sdks/pipeline/README.md +30 -54
- package/docs/sdks/project/README.md +30 -54
- package/docs/sdks/prompt/README.md +5 -9
- package/docs/sdks/pullrequest/README.md +30 -54
- package/docs/sdks/recording/README.md +40 -72
- package/docs/sdks/refund/README.md +10 -18
- package/docs/sdks/repo/README.md +150 -270
- package/docs/sdks/report/README.md +10 -18
- package/docs/sdks/repository/README.md +30 -54
- package/docs/sdks/review/README.md +30 -54
- package/docs/sdks/scim/README.md +60 -108
- package/docs/sdks/scorecard/README.md +30 -54
- package/docs/sdks/space/README.md +30 -54
- package/docs/sdks/storage/README.md +30 -54
- package/docs/sdks/student/README.md +30 -54
- package/docs/sdks/subscription/README.md +30 -54
- package/docs/sdks/task/README.md +90 -162
- package/docs/sdks/taxrate/README.md +30 -54
- package/docs/sdks/ticket/README.md +30 -54
- package/docs/sdks/ticketing/README.md +90 -162
- package/docs/sdks/timeoff/README.md +10 -18
- package/docs/sdks/timeshift/README.md +30 -54
- package/docs/sdks/transaction/README.md +30 -54
- package/docs/sdks/uc/README.md +95 -171
- package/docs/sdks/unified/README.md +100 -180
- package/docs/sdks/user/README.md +30 -54
- package/docs/sdks/webhook/README.md +40 -72
- package/funcs/applicationListAtsApplications.js +1 -0
- package/funcs/applicationListAtsApplications.js.map +1 -1
- package/funcs/atsListAtsApplications.js +1 -0
- package/funcs/atsListAtsApplications.js.map +1 -1
- package/funcs/atsListAtsCandidates.js +1 -0
- package/funcs/atsListAtsCandidates.js.map +1 -1
- package/funcs/atsListAtsJobs.js +1 -0
- package/funcs/atsListAtsJobs.js.map +1 -1
- package/funcs/busyListCalendarBusies.js +1 -0
- package/funcs/busyListCalendarBusies.js.map +1 -1
- package/funcs/calendarListCalendarBusies.js +1 -0
- package/funcs/calendarListCalendarBusies.js.map +1 -1
- package/funcs/candidateListAtsCandidates.js +1 -0
- package/funcs/candidateListAtsCandidates.js.map +1 -1
- package/funcs/hrisListHrisLocations.js +1 -0
- package/funcs/hrisListHrisLocations.js.map +1 -1
- package/funcs/jobListAtsJobs.js +1 -0
- package/funcs/jobListAtsJobs.js.map +1 -1
- package/funcs/locationListHrisLocations.js +1 -0
- package/funcs/locationListHrisLocations.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/package.json +1 -1
- package/sdk/models/errors/sdkerror.d.ts +14 -2
- package/sdk/models/errors/sdkerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkerror.js +1 -1
- package/sdk/models/errors/sdkerror.js.map +1 -1
- package/sdk/models/operations/listatsapplications.d.ts +5 -0
- package/sdk/models/operations/listatsapplications.d.ts.map +1 -1
- package/sdk/models/operations/listatsapplications.js +4 -0
- package/sdk/models/operations/listatsapplications.js.map +1 -1
- package/sdk/models/operations/listatscandidates.d.ts +5 -0
- package/sdk/models/operations/listatscandidates.d.ts.map +1 -1
- package/sdk/models/operations/listatscandidates.js +4 -0
- package/sdk/models/operations/listatscandidates.js.map +1 -1
- package/sdk/models/operations/listatsjobs.d.ts +5 -0
- package/sdk/models/operations/listatsjobs.d.ts.map +1 -1
- package/sdk/models/operations/listatsjobs.js +4 -0
- package/sdk/models/operations/listatsjobs.js.map +1 -1
- package/sdk/models/operations/listcalendarbusies.d.ts +5 -0
- package/sdk/models/operations/listcalendarbusies.d.ts.map +1 -1
- package/sdk/models/operations/listcalendarbusies.js +4 -0
- package/sdk/models/operations/listcalendarbusies.js.map +1 -1
- package/sdk/models/operations/listhrislocations.d.ts +5 -0
- package/sdk/models/operations/listhrislocations.d.ts.map +1 -1
- package/sdk/models/operations/listhrislocations.js +4 -0
- package/sdk/models/operations/listhrislocations.js.map +1 -1
- package/sdk/models/shared/accountingaccount.d.ts +2 -0
- package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
- package/sdk/models/shared/accountingaccount.js +4 -0
- package/sdk/models/shared/accountingaccount.js.map +1 -1
- package/sdk/models/shared/commercelocation.d.ts +6 -0
- package/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/sdk/models/shared/commercelocation.js +10 -0
- package/sdk/models/shared/commercelocation.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/src/funcs/applicationListAtsApplications.ts +1 -0
- package/src/funcs/atsListAtsApplications.ts +1 -0
- package/src/funcs/atsListAtsCandidates.ts +1 -0
- package/src/funcs/atsListAtsJobs.ts +1 -0
- package/src/funcs/busyListCalendarBusies.ts +1 -0
- package/src/funcs/calendarListCalendarBusies.ts +1 -0
- package/src/funcs/candidateListAtsCandidates.ts +1 -0
- package/src/funcs/hrisListHrisLocations.ts +1 -0
- package/src/funcs/jobListAtsJobs.ts +1 -0
- package/src/funcs/locationListHrisLocations.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/sdk/models/errors/sdkerror.ts +18 -3
- package/src/sdk/models/operations/listatsapplications.ts +9 -0
- package/src/sdk/models/operations/listatscandidates.ts +9 -0
- package/src/sdk/models/operations/listatsjobs.ts +9 -0
- package/src/sdk/models/operations/listcalendarbusies.ts +9 -0
- package/src/sdk/models/operations/listhrislocations.ts +9 -0
- package/src/sdk/models/shared/accountingaccount.ts +6 -0
- package/src/sdk/models/shared/commercelocation.ts +16 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
package/FUNCTIONS.md
CHANGED
|
@@ -21,7 +21,6 @@ specific category of applications.
|
|
|
21
21
|
```typescript
|
|
22
22
|
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
23
23
|
import { accountingCreateAccountingAccount } from "@unified-api/typescript-sdk/funcs/accountingCreateAccountingAccount.js";
|
|
24
|
-
import { SDKValidationError } from "@unified-api/typescript-sdk/sdk/models/errors/sdkvalidationerror.js";
|
|
25
24
|
|
|
26
25
|
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
27
26
|
// You can create one instance of it to use across an application.
|
|
@@ -36,28 +35,12 @@ async function run() {
|
|
|
36
35
|
accountingAccount: {},
|
|
37
36
|
connectionId: "<id>",
|
|
38
37
|
});
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
case res.error instanceof SDKValidationError:
|
|
45
|
-
// Pretty-print validation errors.
|
|
46
|
-
return console.log(res.error.pretty());
|
|
47
|
-
case res.error instanceof Error:
|
|
48
|
-
return console.log(res.error);
|
|
49
|
-
default:
|
|
50
|
-
// TypeScript's type checking will fail on the following line if the above
|
|
51
|
-
// cases were not exhaustive.
|
|
52
|
-
res.error satisfies never;
|
|
53
|
-
throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error);
|
|
38
|
+
if (res.ok) {
|
|
39
|
+
const { value: result } = res;
|
|
40
|
+
console.log(result);
|
|
41
|
+
} else {
|
|
42
|
+
console.log("accountingCreateAccountingAccount failed:", res.error);
|
|
54
43
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const { value: result } = res;
|
|
58
|
-
|
|
59
|
-
// Handle the result
|
|
60
|
-
console.log(result);
|
|
61
44
|
}
|
|
62
45
|
|
|
63
46
|
run();
|
package/README.md
CHANGED
|
@@ -101,7 +101,6 @@ async function run() {
|
|
|
101
101
|
connectionId: "<id>",
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
// Handle the result
|
|
105
104
|
console.log(result);
|
|
106
105
|
}
|
|
107
106
|
|
|
@@ -128,7 +127,6 @@ async function run() {
|
|
|
128
127
|
connectionId: "<id>",
|
|
129
128
|
});
|
|
130
129
|
|
|
131
|
-
// Handle the result
|
|
132
130
|
console.log(result);
|
|
133
131
|
}
|
|
134
132
|
|
|
@@ -217,7 +215,6 @@ async function run() {
|
|
|
217
215
|
connectionId: "<id>",
|
|
218
216
|
});
|
|
219
217
|
|
|
220
|
-
// Handle the result
|
|
221
218
|
console.log(result);
|
|
222
219
|
}
|
|
223
220
|
|
|
@@ -232,15 +229,22 @@ run();
|
|
|
232
229
|
<!-- Start Error Handling [errors] -->
|
|
233
230
|
## Error Handling
|
|
234
231
|
|
|
235
|
-
|
|
232
|
+
This table shows properties which are common on error classes. For full details see [error classes](#error-classes).
|
|
236
233
|
|
|
237
|
-
|
|
|
238
|
-
|
|
|
239
|
-
|
|
|
234
|
+
| Property | Type | Description |
|
|
235
|
+
| ------------------- | ---------- | --------------------------------------------------------------------------------------- |
|
|
236
|
+
| `error.name` | `string` | Error class name eg `SDKError` |
|
|
237
|
+
| `error.message` | `string` | Error message |
|
|
238
|
+
| `error.statusCode` | `number` | HTTP status code eg `404` |
|
|
239
|
+
| `error.contentType` | `string` | HTTP content type eg `application/json` |
|
|
240
|
+
| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. |
|
|
241
|
+
| `error.rawResponse` | `Response` | Raw HTTP response. Access to headers and more. |
|
|
242
|
+
| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
|
|
240
243
|
|
|
244
|
+
### Example
|
|
241
245
|
```typescript
|
|
242
246
|
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
243
|
-
import
|
|
247
|
+
import * as errors from "@unified-api/typescript-sdk/sdk/models/errors";
|
|
244
248
|
|
|
245
249
|
const unifiedTo = new UnifiedTo({
|
|
246
250
|
security: {
|
|
@@ -249,37 +253,19 @@ const unifiedTo = new UnifiedTo({
|
|
|
249
253
|
});
|
|
250
254
|
|
|
251
255
|
async function run() {
|
|
252
|
-
let result;
|
|
253
256
|
try {
|
|
254
|
-
result = await unifiedTo.accounting.createAccountingAccount({
|
|
257
|
+
const result = await unifiedTo.accounting.createAccountingAccount({
|
|
255
258
|
accountingAccount: {},
|
|
256
259
|
connectionId: "<id>",
|
|
257
260
|
});
|
|
258
261
|
|
|
259
|
-
// Handle the result
|
|
260
262
|
console.log(result);
|
|
261
|
-
} catch (
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
console.error(err.pretty());
|
|
268
|
-
// Raw value may also be inspected
|
|
269
|
-
console.error(err.rawValue);
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
sdkerror.js;
|
|
273
|
-
// Server returned an error status code or an unknown content type
|
|
274
|
-
case (err instanceof SDKError): {
|
|
275
|
-
console.error(err.statusCode);
|
|
276
|
-
console.error(err.rawResponse.body);
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
default: {
|
|
280
|
-
// Other errors such as network errors, see HTTPClientErrors for more details
|
|
281
|
-
throw err;
|
|
282
|
-
}
|
|
263
|
+
} catch (error) {
|
|
264
|
+
if (error instanceof errors.SDKError) {
|
|
265
|
+
console.log(error.message);
|
|
266
|
+
console.log(error.statusCode);
|
|
267
|
+
console.log(error.body);
|
|
268
|
+
console.log(error.rawResponse.headers);
|
|
283
269
|
}
|
|
284
270
|
}
|
|
285
271
|
}
|
|
@@ -288,17 +274,15 @@ run();
|
|
|
288
274
|
|
|
289
275
|
```
|
|
290
276
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
| InvalidRequestError | Any input used to create a request is invalid |
|
|
301
|
-
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
277
|
+
### Error Classes
|
|
278
|
+
* `SDKError`: The fallback error class, if no other more specific error class is matched.
|
|
279
|
+
* `SDKValidationError`: Type mismatch between the data returned from the server and the structure expected by the SDK. This can also be thrown for invalid method arguments. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
280
|
+
* Network errors:
|
|
281
|
+
* `ConnectionError`: HTTP client was unable to make a request to a server.
|
|
282
|
+
* `RequestTimeoutError`: HTTP request timed out due to an AbortSignal signal.
|
|
283
|
+
* `RequestAbortedError`: HTTP request was aborted by the client.
|
|
284
|
+
* `InvalidRequestError`: Any input used to create a request is invalid.
|
|
285
|
+
* `UnexpectedClientError`: Unrecognised or unexpected error.
|
|
302
286
|
<!-- End Error Handling [errors] -->
|
|
303
287
|
|
|
304
288
|
<!-- Start Requirements [requirements] -->
|
|
@@ -336,7 +320,6 @@ async function run() {
|
|
|
336
320
|
path: "/var/log",
|
|
337
321
|
});
|
|
338
322
|
|
|
339
|
-
// Handle the result
|
|
340
323
|
console.log(result);
|
|
341
324
|
}
|
|
342
325
|
|
|
@@ -377,7 +360,6 @@ async function run() {
|
|
|
377
360
|
},
|
|
378
361
|
});
|
|
379
362
|
|
|
380
|
-
// Handle the result
|
|
381
363
|
console.log(result);
|
|
382
364
|
}
|
|
383
365
|
|
|
@@ -411,7 +393,6 @@ async function run() {
|
|
|
411
393
|
connectionId: "<id>",
|
|
412
394
|
});
|
|
413
395
|
|
|
414
|
-
// Handle the result
|
|
415
396
|
console.log(result);
|
|
416
397
|
}
|
|
417
398
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -34231,9 +34231,9 @@ var init_config = __esm(() => {
|
|
|
34231
34231
|
SDK_METADATA = {
|
|
34232
34232
|
language: "typescript",
|
|
34233
34233
|
openapiDocVersion: "1.0",
|
|
34234
|
-
sdkVersion: "2.72.
|
|
34235
|
-
genVersion: "2.
|
|
34236
|
-
userAgent: "speakeasy-sdk/typescript 2.72.
|
|
34234
|
+
sdkVersion: "2.72.2",
|
|
34235
|
+
genVersion: "2.621.3",
|
|
34236
|
+
userAgent: "speakeasy-sdk/typescript 2.72.2 2.621.3 1.0 @unified-api/typescript-sdk"
|
|
34237
34237
|
};
|
|
34238
34238
|
});
|
|
34239
34239
|
|
|
@@ -35184,18 +35184,18 @@ var init_tools = __esm(() => {
|
|
|
35184
35184
|
var SDKError;
|
|
35185
35185
|
var init_sdkerror = __esm(() => {
|
|
35186
35186
|
SDKError = class SDKError extends Error {
|
|
35187
|
-
rawResponse;
|
|
35188
|
-
body;
|
|
35189
35187
|
statusCode;
|
|
35190
35188
|
contentType;
|
|
35189
|
+
body;
|
|
35190
|
+
rawResponse;
|
|
35191
35191
|
constructor(message, rawResponse, body = "") {
|
|
35192
35192
|
const statusCode = rawResponse.status;
|
|
35193
35193
|
const contentType2 = rawResponse.headers.get("content-type") || "";
|
|
35194
35194
|
const bodyString = body.length > 0 ? `
|
|
35195
35195
|
${body}` : "";
|
|
35196
35196
|
super(`${message}: Status ${statusCode} Content-Type ${contentType2} Body ${bodyString}`);
|
|
35197
|
-
this.rawResponse = rawResponse;
|
|
35198
35197
|
this.body = body;
|
|
35198
|
+
this.rawResponse = rawResponse;
|
|
35199
35199
|
this.statusCode = statusCode;
|
|
35200
35200
|
this.contentType = contentType2;
|
|
35201
35201
|
this.name = "SDKError";
|
|
@@ -35634,6 +35634,7 @@ var init_accountingaccount = __esm(() => {
|
|
|
35634
35634
|
is_payable: booleanType().optional(),
|
|
35635
35635
|
name: stringType().optional(),
|
|
35636
35636
|
parent_account_id: stringType().optional(),
|
|
35637
|
+
parent_id: stringType().optional(),
|
|
35637
35638
|
raw: recordType(anyType()).optional(),
|
|
35638
35639
|
section: stringType().optional(),
|
|
35639
35640
|
status: Status$inboundSchema.optional(),
|
|
@@ -35647,6 +35648,7 @@ var init_accountingaccount = __esm(() => {
|
|
|
35647
35648
|
customer_defined_code: "customerDefinedCode",
|
|
35648
35649
|
is_payable: "isPayable",
|
|
35649
35650
|
parent_account_id: "parentAccountId",
|
|
35651
|
+
parent_id: "parentId",
|
|
35650
35652
|
updated_at: "updatedAt"
|
|
35651
35653
|
});
|
|
35652
35654
|
});
|
|
@@ -35661,6 +35663,7 @@ var init_accountingaccount = __esm(() => {
|
|
|
35661
35663
|
isPayable: booleanType().optional(),
|
|
35662
35664
|
name: stringType().optional(),
|
|
35663
35665
|
parentAccountId: stringType().optional(),
|
|
35666
|
+
parentId: stringType().optional(),
|
|
35664
35667
|
raw: recordType(anyType()).optional(),
|
|
35665
35668
|
section: stringType().optional(),
|
|
35666
35669
|
status: Status$outboundSchema.optional(),
|
|
@@ -35674,6 +35677,7 @@ var init_accountingaccount = __esm(() => {
|
|
|
35674
35677
|
customerDefinedCode: "customer_defined_code",
|
|
35675
35678
|
isPayable: "is_payable",
|
|
35676
35679
|
parentAccountId: "parent_account_id",
|
|
35680
|
+
parentId: "parent_id",
|
|
35677
35681
|
updatedAt: "updated_at"
|
|
35678
35682
|
});
|
|
35679
35683
|
});
|
|
@@ -40463,32 +40467,42 @@ var init_commercelocation = __esm(() => {
|
|
|
40463
40467
|
CommerceLocation$inboundSchema = objectType({
|
|
40464
40468
|
address: PropertyCommerceLocationAddress$inboundSchema.optional(),
|
|
40465
40469
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
40470
|
+
currency: stringType().optional(),
|
|
40466
40471
|
description: stringType().optional(),
|
|
40467
40472
|
id: stringType().optional(),
|
|
40468
40473
|
is_active: booleanType().optional(),
|
|
40474
|
+
language_locale: stringType().optional(),
|
|
40469
40475
|
name: stringType(),
|
|
40476
|
+
parent_id: stringType().optional(),
|
|
40470
40477
|
raw: recordType(anyType()).optional(),
|
|
40471
40478
|
updated_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
40472
40479
|
}).transform((v2) => {
|
|
40473
40480
|
return remap(v2, {
|
|
40474
40481
|
created_at: "createdAt",
|
|
40475
40482
|
is_active: "isActive",
|
|
40483
|
+
language_locale: "languageLocale",
|
|
40484
|
+
parent_id: "parentId",
|
|
40476
40485
|
updated_at: "updatedAt"
|
|
40477
40486
|
});
|
|
40478
40487
|
});
|
|
40479
40488
|
CommerceLocation$outboundSchema = objectType({
|
|
40480
40489
|
address: PropertyCommerceLocationAddress$outboundSchema.optional(),
|
|
40481
40490
|
createdAt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
40491
|
+
currency: stringType().optional(),
|
|
40482
40492
|
description: stringType().optional(),
|
|
40483
40493
|
id: stringType().optional(),
|
|
40484
40494
|
isActive: booleanType().optional(),
|
|
40495
|
+
languageLocale: stringType().optional(),
|
|
40485
40496
|
name: stringType(),
|
|
40497
|
+
parentId: stringType().optional(),
|
|
40486
40498
|
raw: recordType(anyType()).optional(),
|
|
40487
40499
|
updatedAt: dateType().transform((v2) => v2.toISOString()).optional()
|
|
40488
40500
|
}).transform((v2) => {
|
|
40489
40501
|
return remap(v2, {
|
|
40490
40502
|
createdAt: "created_at",
|
|
40491
40503
|
isActive: "is_active",
|
|
40504
|
+
languageLocale: "language_locale",
|
|
40505
|
+
parentId: "parent_id",
|
|
40492
40506
|
updatedAt: "updated_at"
|
|
40493
40507
|
});
|
|
40494
40508
|
});
|
|
@@ -48858,6 +48872,7 @@ var init_webhook = __esm(() => {
|
|
|
48858
48872
|
HrisCompany: "hris_company",
|
|
48859
48873
|
HrisLocation: "hris_location",
|
|
48860
48874
|
HrisDevice: "hris_device",
|
|
48875
|
+
HrisTimeshift: "hris_timeshift",
|
|
48861
48876
|
MartechList: "martech_list",
|
|
48862
48877
|
MartechMember: "martech_member",
|
|
48863
48878
|
Passthrough: "passthrough",
|
|
@@ -54635,6 +54650,7 @@ var init_listatsapplications = __esm(() => {
|
|
|
54635
54650
|
init_primitives();
|
|
54636
54651
|
ListAtsApplicationsRequest$inboundSchema = objectType({
|
|
54637
54652
|
candidate_id: stringType().optional(),
|
|
54653
|
+
company_id: stringType().optional(),
|
|
54638
54654
|
connection_id: stringType(),
|
|
54639
54655
|
fields: arrayType(stringType()).optional(),
|
|
54640
54656
|
job_id: stringType().optional(),
|
|
@@ -54648,6 +54664,7 @@ var init_listatsapplications = __esm(() => {
|
|
|
54648
54664
|
}).transform((v2) => {
|
|
54649
54665
|
return remap(v2, {
|
|
54650
54666
|
candidate_id: "candidateId",
|
|
54667
|
+
company_id: "companyId",
|
|
54651
54668
|
connection_id: "connectionId",
|
|
54652
54669
|
job_id: "jobId",
|
|
54653
54670
|
updated_gte: "updatedGte"
|
|
@@ -54655,6 +54672,7 @@ var init_listatsapplications = __esm(() => {
|
|
|
54655
54672
|
});
|
|
54656
54673
|
ListAtsApplicationsRequest$outboundSchema = objectType({
|
|
54657
54674
|
candidateId: stringType().optional(),
|
|
54675
|
+
companyId: stringType().optional(),
|
|
54658
54676
|
connectionId: stringType(),
|
|
54659
54677
|
fields: arrayType(stringType()).optional(),
|
|
54660
54678
|
jobId: stringType().optional(),
|
|
@@ -54668,6 +54686,7 @@ var init_listatsapplications = __esm(() => {
|
|
|
54668
54686
|
}).transform((v2) => {
|
|
54669
54687
|
return remap(v2, {
|
|
54670
54688
|
candidateId: "candidate_id",
|
|
54689
|
+
companyId: "company_id",
|
|
54671
54690
|
connectionId: "connection_id",
|
|
54672
54691
|
jobId: "job_id",
|
|
54673
54692
|
updatedGte: "updated_gte"
|
|
@@ -54728,6 +54747,7 @@ var init_listatscandidates = __esm(() => {
|
|
|
54728
54747
|
init_esm();
|
|
54729
54748
|
init_primitives();
|
|
54730
54749
|
ListAtsCandidatesRequest$inboundSchema = objectType({
|
|
54750
|
+
company_id: stringType().optional(),
|
|
54731
54751
|
connection_id: stringType(),
|
|
54732
54752
|
fields: arrayType(stringType()).optional(),
|
|
54733
54753
|
limit: numberType().optional(),
|
|
@@ -54739,11 +54759,13 @@ var init_listatscandidates = __esm(() => {
|
|
|
54739
54759
|
updated_gte: stringType().optional()
|
|
54740
54760
|
}).transform((v2) => {
|
|
54741
54761
|
return remap(v2, {
|
|
54762
|
+
company_id: "companyId",
|
|
54742
54763
|
connection_id: "connectionId",
|
|
54743
54764
|
updated_gte: "updatedGte"
|
|
54744
54765
|
});
|
|
54745
54766
|
});
|
|
54746
54767
|
ListAtsCandidatesRequest$outboundSchema = objectType({
|
|
54768
|
+
companyId: stringType().optional(),
|
|
54747
54769
|
connectionId: stringType(),
|
|
54748
54770
|
fields: arrayType(stringType()).optional(),
|
|
54749
54771
|
limit: numberType().optional(),
|
|
@@ -54755,6 +54777,7 @@ var init_listatscandidates = __esm(() => {
|
|
|
54755
54777
|
updatedGte: stringType().optional()
|
|
54756
54778
|
}).transform((v2) => {
|
|
54757
54779
|
return remap(v2, {
|
|
54780
|
+
companyId: "company_id",
|
|
54758
54781
|
connectionId: "connection_id",
|
|
54759
54782
|
updatedGte: "updated_gte"
|
|
54760
54783
|
});
|
|
@@ -54918,6 +54941,7 @@ var init_listatsjobs = __esm(() => {
|
|
|
54918
54941
|
init_esm();
|
|
54919
54942
|
init_primitives();
|
|
54920
54943
|
ListAtsJobsRequest$inboundSchema = objectType({
|
|
54944
|
+
company_id: stringType().optional(),
|
|
54921
54945
|
connection_id: stringType(),
|
|
54922
54946
|
fields: arrayType(stringType()).optional(),
|
|
54923
54947
|
limit: numberType().optional(),
|
|
@@ -54930,12 +54954,14 @@ var init_listatsjobs = __esm(() => {
|
|
|
54930
54954
|
user_id: stringType().optional()
|
|
54931
54955
|
}).transform((v2) => {
|
|
54932
54956
|
return remap(v2, {
|
|
54957
|
+
company_id: "companyId",
|
|
54933
54958
|
connection_id: "connectionId",
|
|
54934
54959
|
updated_gte: "updatedGte",
|
|
54935
54960
|
user_id: "userId"
|
|
54936
54961
|
});
|
|
54937
54962
|
});
|
|
54938
54963
|
ListAtsJobsRequest$outboundSchema = objectType({
|
|
54964
|
+
companyId: stringType().optional(),
|
|
54939
54965
|
connectionId: stringType(),
|
|
54940
54966
|
fields: arrayType(stringType()).optional(),
|
|
54941
54967
|
limit: numberType().optional(),
|
|
@@ -54948,6 +54974,7 @@ var init_listatsjobs = __esm(() => {
|
|
|
54948
54974
|
userId: stringType().optional()
|
|
54949
54975
|
}).transform((v2) => {
|
|
54950
54976
|
return remap(v2, {
|
|
54977
|
+
companyId: "company_id",
|
|
54951
54978
|
connectionId: "connection_id",
|
|
54952
54979
|
updatedGte: "updated_gte",
|
|
54953
54980
|
userId: "user_id"
|
|
@@ -55035,14 +55062,16 @@ var init_listcalendarbusies = __esm(() => {
|
|
|
55035
55062
|
raw: stringType().optional(),
|
|
55036
55063
|
sort: stringType().optional(),
|
|
55037
55064
|
start_gte: stringType().optional(),
|
|
55038
|
-
updated_gte: stringType().optional()
|
|
55065
|
+
updated_gte: stringType().optional(),
|
|
55066
|
+
user_id: stringType().optional()
|
|
55039
55067
|
}).transform((v2) => {
|
|
55040
55068
|
return remap(v2, {
|
|
55041
55069
|
calendar_id: "calendarId",
|
|
55042
55070
|
connection_id: "connectionId",
|
|
55043
55071
|
end_le: "endLe",
|
|
55044
55072
|
start_gte: "startGte",
|
|
55045
|
-
updated_gte: "updatedGte"
|
|
55073
|
+
updated_gte: "updatedGte",
|
|
55074
|
+
user_id: "userId"
|
|
55046
55075
|
});
|
|
55047
55076
|
});
|
|
55048
55077
|
ListCalendarBusiesRequest$outboundSchema = objectType({
|
|
@@ -55057,14 +55086,16 @@ var init_listcalendarbusies = __esm(() => {
|
|
|
55057
55086
|
raw: stringType().optional(),
|
|
55058
55087
|
sort: stringType().optional(),
|
|
55059
55088
|
startGte: stringType().optional(),
|
|
55060
|
-
updatedGte: stringType().optional()
|
|
55089
|
+
updatedGte: stringType().optional(),
|
|
55090
|
+
userId: stringType().optional()
|
|
55061
55091
|
}).transform((v2) => {
|
|
55062
55092
|
return remap(v2, {
|
|
55063
55093
|
calendarId: "calendar_id",
|
|
55064
55094
|
connectionId: "connection_id",
|
|
55065
55095
|
endLe: "end_le",
|
|
55066
55096
|
startGte: "start_gte",
|
|
55067
|
-
updatedGte: "updated_gte"
|
|
55097
|
+
updatedGte: "updated_gte",
|
|
55098
|
+
userId: "user_id"
|
|
55068
55099
|
});
|
|
55069
55100
|
});
|
|
55070
55101
|
((ListCalendarBusiesRequest$) => {
|
|
@@ -56143,6 +56174,7 @@ var init_listhrislocations = __esm(() => {
|
|
|
56143
56174
|
init_esm();
|
|
56144
56175
|
init_primitives();
|
|
56145
56176
|
ListHrisLocationsRequest$inboundSchema = objectType({
|
|
56177
|
+
company_id: stringType().optional(),
|
|
56146
56178
|
connection_id: stringType(),
|
|
56147
56179
|
fields: arrayType(stringType()).optional(),
|
|
56148
56180
|
limit: numberType().optional(),
|
|
@@ -56154,11 +56186,13 @@ var init_listhrislocations = __esm(() => {
|
|
|
56154
56186
|
updated_gte: stringType().optional()
|
|
56155
56187
|
}).transform((v2) => {
|
|
56156
56188
|
return remap(v2, {
|
|
56189
|
+
company_id: "companyId",
|
|
56157
56190
|
connection_id: "connectionId",
|
|
56158
56191
|
updated_gte: "updatedGte"
|
|
56159
56192
|
});
|
|
56160
56193
|
});
|
|
56161
56194
|
ListHrisLocationsRequest$outboundSchema = objectType({
|
|
56195
|
+
companyId: stringType().optional(),
|
|
56162
56196
|
connectionId: stringType(),
|
|
56163
56197
|
fields: arrayType(stringType()).optional(),
|
|
56164
56198
|
limit: numberType().optional(),
|
|
@@ -56170,6 +56204,7 @@ var init_listhrislocations = __esm(() => {
|
|
|
56170
56204
|
updatedGte: stringType().optional()
|
|
56171
56205
|
}).transform((v2) => {
|
|
56172
56206
|
return remap(v2, {
|
|
56207
|
+
companyId: "company_id",
|
|
56173
56208
|
connectionId: "connection_id",
|
|
56174
56209
|
updatedGte: "updated_gte"
|
|
56175
56210
|
});
|
|
@@ -74164,6 +74199,7 @@ async function $do63(client, request, options) {
|
|
|
74164
74199
|
const path = pathToFunc("/ats/{connection_id}/application")(pathParams);
|
|
74165
74200
|
const query = encodeFormQuery({
|
|
74166
74201
|
candidate_id: payload.candidate_id,
|
|
74202
|
+
company_id: payload.company_id,
|
|
74167
74203
|
fields: payload.fields,
|
|
74168
74204
|
job_id: payload.job_id,
|
|
74169
74205
|
limit: payload.limit,
|
|
@@ -76490,6 +76526,7 @@ async function $do84(client, request, options) {
|
|
|
76490
76526
|
const path = pathToFunc("/ats/{connection_id}/application")(pathParams);
|
|
76491
76527
|
const query = encodeFormQuery({
|
|
76492
76528
|
candidate_id: payload.candidate_id,
|
|
76529
|
+
company_id: payload.company_id,
|
|
76493
76530
|
fields: payload.fields,
|
|
76494
76531
|
job_id: payload.job_id,
|
|
76495
76532
|
limit: payload.limit,
|
|
@@ -76719,6 +76756,7 @@ async function $do86(client, request, options) {
|
|
|
76719
76756
|
};
|
|
76720
76757
|
const path = pathToFunc("/ats/{connection_id}/candidate")(pathParams);
|
|
76721
76758
|
const query = encodeFormQuery({
|
|
76759
|
+
company_id: payload.company_id,
|
|
76722
76760
|
fields: payload.fields,
|
|
76723
76761
|
limit: payload.limit,
|
|
76724
76762
|
offset: payload.offset,
|
|
@@ -77180,6 +77218,7 @@ async function $do90(client, request, options) {
|
|
|
77180
77218
|
};
|
|
77181
77219
|
const path = pathToFunc("/ats/{connection_id}/job")(pathParams);
|
|
77182
77220
|
const query = encodeFormQuery({
|
|
77221
|
+
company_id: payload.company_id,
|
|
77183
77222
|
fields: payload.fields,
|
|
77184
77223
|
limit: payload.limit,
|
|
77185
77224
|
offset: payload.offset,
|
|
@@ -80637,7 +80676,8 @@ async function $do121(client, request, options) {
|
|
|
80637
80676
|
raw: payload.raw,
|
|
80638
80677
|
sort: payload.sort,
|
|
80639
80678
|
start_gte: payload.start_gte,
|
|
80640
|
-
updated_gte: payload.updated_gte
|
|
80679
|
+
updated_gte: payload.updated_gte,
|
|
80680
|
+
user_id: payload.user_id
|
|
80641
80681
|
});
|
|
80642
80682
|
const headers = new Headers(compactMap({
|
|
80643
80683
|
Accept: "application/json"
|
|
@@ -81522,7 +81562,8 @@ async function $do129(client, request, options) {
|
|
|
81522
81562
|
raw: payload.raw,
|
|
81523
81563
|
sort: payload.sort,
|
|
81524
81564
|
start_gte: payload.start_gte,
|
|
81525
|
-
updated_gte: payload.updated_gte
|
|
81565
|
+
updated_gte: payload.updated_gte,
|
|
81566
|
+
user_id: payload.user_id
|
|
81526
81567
|
});
|
|
81527
81568
|
const headers = new Headers(compactMap({
|
|
81528
81569
|
Accept: "application/json"
|
|
@@ -83420,6 +83461,7 @@ async function $do146(client, request, options) {
|
|
|
83420
83461
|
};
|
|
83421
83462
|
const path = pathToFunc("/ats/{connection_id}/candidate")(pathParams);
|
|
83422
83463
|
const query = encodeFormQuery({
|
|
83464
|
+
company_id: payload.company_id,
|
|
83423
83465
|
fields: payload.fields,
|
|
83424
83466
|
limit: payload.limit,
|
|
83425
83467
|
offset: payload.offset,
|
|
@@ -109446,6 +109488,7 @@ async function $do381(client, request, options) {
|
|
|
109446
109488
|
};
|
|
109447
109489
|
const path = pathToFunc("/hris/{connection_id}/location")(pathParams);
|
|
109448
109490
|
const query = encodeFormQuery({
|
|
109491
|
+
company_id: payload.company_id,
|
|
109449
109492
|
fields: payload.fields,
|
|
109450
109493
|
limit: payload.limit,
|
|
109451
109494
|
offset: payload.offset,
|
|
@@ -115894,6 +115937,7 @@ async function $do439(client, request, options) {
|
|
|
115894
115937
|
};
|
|
115895
115938
|
const path = pathToFunc("/ats/{connection_id}/job")(pathParams);
|
|
115896
115939
|
const query = encodeFormQuery({
|
|
115940
|
+
company_id: payload.company_id,
|
|
115897
115941
|
fields: payload.fields,
|
|
115898
115942
|
limit: payload.limit,
|
|
115899
115943
|
offset: payload.offset,
|
|
@@ -124886,6 +124930,7 @@ async function $do520(client, request, options) {
|
|
|
124886
124930
|
};
|
|
124887
124931
|
const path = pathToFunc("/hris/{connection_id}/location")(pathParams);
|
|
124888
124932
|
const query = encodeFormQuery({
|
|
124933
|
+
company_id: payload.company_id,
|
|
124889
124934
|
fields: payload.fields,
|
|
124890
124935
|
limit: payload.limit,
|
|
124891
124936
|
offset: payload.offset,
|
|
@@ -162237,7 +162282,7 @@ var init_webhookUpdateUnifiedWebhookTrigger2 = __esm(() => {
|
|
|
162237
162282
|
function createMCPServer(deps) {
|
|
162238
162283
|
const server = new McpServer({
|
|
162239
162284
|
name: "UnifiedTo",
|
|
162240
|
-
version: "2.72.
|
|
162285
|
+
version: "2.72.2"
|
|
162241
162286
|
});
|
|
162242
162287
|
const client = new UnifiedToCore({
|
|
162243
162288
|
security: deps.security,
|
|
@@ -165162,7 +165207,7 @@ var routes = an({
|
|
|
165162
165207
|
var app = He(routes, {
|
|
165163
165208
|
name: "mcp",
|
|
165164
165209
|
versionInfo: {
|
|
165165
|
-
currentVersion: "2.72.
|
|
165210
|
+
currentVersion: "2.72.2"
|
|
165166
165211
|
}
|
|
165167
165212
|
});
|
|
165168
165213
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -165170,5 +165215,5 @@ export {
|
|
|
165170
165215
|
app
|
|
165171
165216
|
};
|
|
165172
165217
|
|
|
165173
|
-
//# debugId=
|
|
165218
|
+
//# debugId=2E8540AB3E83541264756E2164756E21
|
|
165174
165219
|
//# sourceMappingURL=mcp-server.js.map
|