@unified-api/typescript-sdk 2.73.20 → 2.73.22
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/bin/mcp-server.js +30 -31
- package/bin/mcp-server.js.map +8 -8
- package/docs/sdks/hris/README.md +30 -6
- package/docs/sdks/timeshift/README.md +30 -6
- package/examples/package-lock.json +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/shared/hriscompensation.d.ts +2 -0
- package/sdk/models/shared/hriscompensation.d.ts.map +1 -1
- package/sdk/models/shared/hriscompensation.js +11 -0
- package/sdk/models/shared/hriscompensation.js.map +1 -1
- package/sdk/models/shared/hristimeoff.d.ts +4 -21
- package/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/sdk/models/shared/hristimeoff.js +7 -29
- package/sdk/models/shared/hristimeoff.js.map +1 -1
- package/sdk/models/shared/hristimeshift.d.ts +6 -6
- package/sdk/models/shared/hristimeshift.d.ts.map +1 -1
- package/sdk/models/shared/hristimeshift.js +6 -8
- package/sdk/models/shared/hristimeshift.js.map +1 -1
- 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/shared/hriscompensation.ts +13 -0
- package/src/sdk/models/shared/hristimeoff.ts +10 -42
- package/src/sdk/models/shared/hristimeshift.ts +12 -14
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.73.
|
|
34235
|
-
genVersion: "2.
|
|
34236
|
-
userAgent: "speakeasy-sdk/typescript 2.73.
|
|
34234
|
+
sdkVersion: "2.73.22",
|
|
34235
|
+
genVersion: "2.694.1",
|
|
34236
|
+
userAgent: "speakeasy-sdk/typescript 2.73.22 2.694.1 1.0 @unified-api/typescript-sdk"
|
|
34237
34237
|
};
|
|
34238
34238
|
});
|
|
34239
34239
|
|
|
@@ -44336,6 +44336,7 @@ var init_hriscompany = __esm(() => {
|
|
|
44336
44336
|
var HrisCompensationFrequency, HrisCompensationType, HrisCompensationFrequency$inboundSchema, HrisCompensationFrequency$outboundSchema, HrisCompensationFrequency$, HrisCompensationType$inboundSchema, HrisCompensationType$outboundSchema, HrisCompensationType$, HrisCompensation$inboundSchema, HrisCompensation$outboundSchema, HrisCompensation$;
|
|
44337
44337
|
var init_hriscompensation = __esm(() => {
|
|
44338
44338
|
init_esm();
|
|
44339
|
+
init_primitives();
|
|
44339
44340
|
HrisCompensationFrequency = {
|
|
44340
44341
|
OneTime: "ONE_TIME",
|
|
44341
44342
|
Day: "DAY",
|
|
@@ -44380,13 +44381,23 @@ var init_hriscompensation = __esm(() => {
|
|
|
44380
44381
|
amount: numberType().optional(),
|
|
44381
44382
|
currency: stringType().optional(),
|
|
44382
44383
|
frequency: HrisCompensationFrequency$inboundSchema.optional(),
|
|
44384
|
+
group_id: stringType().optional(),
|
|
44383
44385
|
type: HrisCompensationType$inboundSchema.optional()
|
|
44386
|
+
}).transform((v2) => {
|
|
44387
|
+
return remap(v2, {
|
|
44388
|
+
group_id: "groupId"
|
|
44389
|
+
});
|
|
44384
44390
|
});
|
|
44385
44391
|
HrisCompensation$outboundSchema = objectType({
|
|
44386
44392
|
amount: numberType().optional(),
|
|
44387
44393
|
currency: stringType().optional(),
|
|
44388
44394
|
frequency: HrisCompensationFrequency$outboundSchema.optional(),
|
|
44395
|
+
groupId: stringType().optional(),
|
|
44389
44396
|
type: HrisCompensationType$outboundSchema.optional()
|
|
44397
|
+
}).transform((v2) => {
|
|
44398
|
+
return remap(v2, {
|
|
44399
|
+
groupId: "group_id"
|
|
44400
|
+
});
|
|
44390
44401
|
});
|
|
44391
44402
|
((HrisCompensation$) => {
|
|
44392
44403
|
HrisCompensation$.inboundSchema = HrisCompensation$inboundSchema;
|
|
@@ -45393,7 +45404,7 @@ var init_hrispayslip = __esm(() => {
|
|
|
45393
45404
|
});
|
|
45394
45405
|
|
|
45395
45406
|
// src/sdk/models/shared/hristimeoff.ts
|
|
45396
|
-
var HrisTimeoffStatus,
|
|
45407
|
+
var HrisTimeoffStatus, HrisTimeoffStatus$inboundSchema, HrisTimeoffStatus$outboundSchema, HrisTimeoffStatus$, HrisTimeoff$inboundSchema, HrisTimeoff$outboundSchema, HrisTimeoff$;
|
|
45397
45408
|
var init_hristimeoff = __esm(() => {
|
|
45398
45409
|
init_esm();
|
|
45399
45410
|
init_primitives();
|
|
@@ -45402,10 +45413,6 @@ var init_hristimeoff = __esm(() => {
|
|
|
45402
45413
|
Pending: "PENDING",
|
|
45403
45414
|
Denied: "DENIED"
|
|
45404
45415
|
};
|
|
45405
|
-
HrisTimeoffType = {
|
|
45406
|
-
Paid: "PAID",
|
|
45407
|
-
Unpaid: "UNPAID"
|
|
45408
|
-
};
|
|
45409
45416
|
HrisTimeoffStatus$inboundSchema = unionType([
|
|
45410
45417
|
nativeEnumType(HrisTimeoffStatus),
|
|
45411
45418
|
stringType().transform(catchUnrecognizedEnum)
|
|
@@ -45418,18 +45425,6 @@ var init_hristimeoff = __esm(() => {
|
|
|
45418
45425
|
HrisTimeoffStatus$.inboundSchema = HrisTimeoffStatus$inboundSchema;
|
|
45419
45426
|
HrisTimeoffStatus$.outboundSchema = HrisTimeoffStatus$outboundSchema;
|
|
45420
45427
|
})(HrisTimeoffStatus$ ||= {});
|
|
45421
|
-
HrisTimeoffType$inboundSchema = unionType([
|
|
45422
|
-
nativeEnumType(HrisTimeoffType),
|
|
45423
|
-
stringType().transform(catchUnrecognizedEnum)
|
|
45424
|
-
]);
|
|
45425
|
-
HrisTimeoffType$outboundSchema = unionType([
|
|
45426
|
-
nativeEnumType(HrisTimeoffType),
|
|
45427
|
-
stringType().and(custom())
|
|
45428
|
-
]);
|
|
45429
|
-
((HrisTimeoffType$) => {
|
|
45430
|
-
HrisTimeoffType$.inboundSchema = HrisTimeoffType$inboundSchema;
|
|
45431
|
-
HrisTimeoffType$.outboundSchema = HrisTimeoffType$outboundSchema;
|
|
45432
|
-
})(HrisTimeoffType$ ||= {});
|
|
45433
45428
|
HrisTimeoff$inboundSchema = objectType({
|
|
45434
45429
|
approved_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
45435
45430
|
approver_user_id: stringType().optional(),
|
|
@@ -45438,10 +45433,11 @@ var init_hristimeoff = __esm(() => {
|
|
|
45438
45433
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
45439
45434
|
end_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
45440
45435
|
id: stringType().optional(),
|
|
45436
|
+
is_paid: booleanType().optional(),
|
|
45441
45437
|
raw: recordType(anyType()).optional(),
|
|
45438
|
+
reason: stringType().optional(),
|
|
45442
45439
|
start_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
45443
45440
|
status: HrisTimeoffStatus$inboundSchema.optional(),
|
|
45444
|
-
type: HrisTimeoffType$inboundSchema.optional(),
|
|
45445
45441
|
updated_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
45446
45442
|
user_id: stringType().optional()
|
|
45447
45443
|
}).transform((v2) => {
|
|
@@ -45451,6 +45447,7 @@ var init_hristimeoff = __esm(() => {
|
|
|
45451
45447
|
company_id: "companyId",
|
|
45452
45448
|
created_at: "createdAt",
|
|
45453
45449
|
end_at: "endAt",
|
|
45450
|
+
is_paid: "isPaid",
|
|
45454
45451
|
start_at: "startAt",
|
|
45455
45452
|
updated_at: "updatedAt",
|
|
45456
45453
|
user_id: "userId"
|
|
@@ -45464,10 +45461,11 @@ var init_hristimeoff = __esm(() => {
|
|
|
45464
45461
|
createdAt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
45465
45462
|
endAt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
45466
45463
|
id: stringType().optional(),
|
|
45464
|
+
isPaid: booleanType().optional(),
|
|
45467
45465
|
raw: recordType(anyType()).optional(),
|
|
45466
|
+
reason: stringType().optional(),
|
|
45468
45467
|
startAt: dateType().transform((v2) => v2.toISOString()),
|
|
45469
45468
|
status: HrisTimeoffStatus$outboundSchema.optional(),
|
|
45470
|
-
type: HrisTimeoffType$outboundSchema.optional(),
|
|
45471
45469
|
updatedAt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
45472
45470
|
userId: stringType().optional()
|
|
45473
45471
|
}).transform((v2) => {
|
|
@@ -45477,6 +45475,7 @@ var init_hristimeoff = __esm(() => {
|
|
|
45477
45475
|
companyId: "company_id",
|
|
45478
45476
|
createdAt: "created_at",
|
|
45479
45477
|
endAt: "end_at",
|
|
45478
|
+
isPaid: "is_paid",
|
|
45480
45479
|
startAt: "start_at",
|
|
45481
45480
|
updatedAt: "updated_at",
|
|
45482
45481
|
userId: "user_id"
|
|
@@ -45500,15 +45499,15 @@ var init_hristimeshift = __esm(() => {
|
|
|
45500
45499
|
company_id: stringType().optional(),
|
|
45501
45500
|
compensation: arrayType(HrisCompensation$inboundSchema).optional(),
|
|
45502
45501
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
45503
|
-
employee_user_id: stringType()
|
|
45504
|
-
end_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
45502
|
+
employee_user_id: stringType(),
|
|
45503
|
+
end_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
45505
45504
|
group_id: stringType().optional(),
|
|
45506
45505
|
hours: numberType().optional(),
|
|
45507
45506
|
id: stringType().optional(),
|
|
45508
45507
|
is_approved: booleanType().optional(),
|
|
45509
45508
|
location_id: stringType().optional(),
|
|
45510
45509
|
raw: recordType(anyType()).optional(),
|
|
45511
|
-
start_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
45510
|
+
start_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
45512
45511
|
updated_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
|
|
45513
45512
|
}).transform((v2) => {
|
|
45514
45513
|
return remap(v2, {
|
|
@@ -45531,15 +45530,15 @@ var init_hristimeshift = __esm(() => {
|
|
|
45531
45530
|
companyId: stringType().optional(),
|
|
45532
45531
|
compensation: arrayType(HrisCompensation$outboundSchema).optional(),
|
|
45533
45532
|
createdAt: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
45534
|
-
employeeUserId: stringType()
|
|
45535
|
-
endAt: dateType().transform((v2) => v2.toISOString())
|
|
45533
|
+
employeeUserId: stringType(),
|
|
45534
|
+
endAt: dateType().transform((v2) => v2.toISOString()),
|
|
45536
45535
|
groupId: stringType().optional(),
|
|
45537
45536
|
hours: numberType().optional(),
|
|
45538
45537
|
id: stringType().optional(),
|
|
45539
45538
|
isApproved: booleanType().optional(),
|
|
45540
45539
|
locationId: stringType().optional(),
|
|
45541
45540
|
raw: recordType(anyType()).optional(),
|
|
45542
|
-
startAt: dateType().transform((v2) => v2.toISOString())
|
|
45541
|
+
startAt: dateType().transform((v2) => v2.toISOString()),
|
|
45543
45542
|
updatedAt: dateType().transform((v2) => v2.toISOString()).optional()
|
|
45544
45543
|
}).transform((v2) => {
|
|
45545
45544
|
return remap(v2, {
|
|
@@ -127343,7 +127342,7 @@ var init_verificationUpdateVerificationRequest2 = __esm(() => {
|
|
|
127343
127342
|
function createMCPServer(deps) {
|
|
127344
127343
|
const server = new McpServer({
|
|
127345
127344
|
name: "UnifiedTo",
|
|
127346
|
-
version: "2.73.
|
|
127345
|
+
version: "2.73.22"
|
|
127347
127346
|
});
|
|
127348
127347
|
const client = new UnifiedToCore({
|
|
127349
127348
|
security: deps.security,
|
|
@@ -129542,7 +129541,7 @@ var routes = an({
|
|
|
129542
129541
|
var app = He(routes, {
|
|
129543
129542
|
name: "mcp",
|
|
129544
129543
|
versionInfo: {
|
|
129545
|
-
currentVersion: "2.73.
|
|
129544
|
+
currentVersion: "2.73.22"
|
|
129546
129545
|
}
|
|
129547
129546
|
});
|
|
129548
129547
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -129550,5 +129549,5 @@ export {
|
|
|
129550
129549
|
app
|
|
129551
129550
|
};
|
|
129552
129551
|
|
|
129553
|
-
//# debugId=
|
|
129552
|
+
//# debugId=C81C9B1862E22E5564756E2164756E21
|
|
129554
129553
|
//# sourceMappingURL=mcp-server.js.map
|