@unified-api/typescript-sdk 2.80.5 → 2.80.7
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 +26 -0
- package/examples/package-lock.json +1 -1
- package/funcs/hrisCreateHrisBenefit.d.ts +15 -0
- package/funcs/hrisCreateHrisBenefit.d.ts.map +1 -0
- package/funcs/hrisCreateHrisBenefit.js +122 -0
- package/funcs/hrisCreateHrisBenefit.js.map +1 -0
- package/funcs/hrisCreateHrisDeduction.d.ts +15 -0
- package/funcs/hrisCreateHrisDeduction.d.ts.map +1 -0
- package/funcs/hrisCreateHrisDeduction.js +122 -0
- package/funcs/hrisCreateHrisDeduction.js.map +1 -0
- package/funcs/hrisGetHrisBenefit.d.ts +15 -0
- package/funcs/hrisGetHrisBenefit.d.ts.map +1 -0
- package/funcs/hrisGetHrisBenefit.js +125 -0
- package/funcs/hrisGetHrisBenefit.js.map +1 -0
- package/funcs/hrisGetHrisDeduction.d.ts +15 -0
- package/funcs/hrisGetHrisDeduction.d.ts.map +1 -0
- package/funcs/hrisGetHrisDeduction.js +125 -0
- package/funcs/hrisGetHrisDeduction.js.map +1 -0
- package/funcs/hrisListHrisBenefits.d.ts +15 -0
- package/funcs/hrisListHrisBenefits.d.ts.map +1 -0
- package/funcs/hrisListHrisBenefits.js +129 -0
- package/funcs/hrisListHrisBenefits.js.map +1 -0
- package/funcs/hrisListHrisDeductions.d.ts +15 -0
- package/funcs/hrisListHrisDeductions.d.ts.map +1 -0
- package/funcs/hrisListHrisDeductions.js +132 -0
- package/funcs/hrisListHrisDeductions.js.map +1 -0
- package/funcs/hrisPatchHrisBenefit.d.ts +15 -0
- package/funcs/hrisPatchHrisBenefit.d.ts.map +1 -0
- package/funcs/hrisPatchHrisBenefit.js +126 -0
- package/funcs/hrisPatchHrisBenefit.js.map +1 -0
- package/funcs/hrisPatchHrisDeduction.d.ts +15 -0
- package/funcs/hrisPatchHrisDeduction.d.ts.map +1 -0
- package/funcs/hrisPatchHrisDeduction.js +126 -0
- package/funcs/hrisPatchHrisDeduction.js.map +1 -0
- package/funcs/hrisRemoveHrisBenefit.d.ts +14 -0
- package/funcs/hrisRemoveHrisBenefit.d.ts.map +1 -0
- package/funcs/hrisRemoveHrisBenefit.js +122 -0
- package/funcs/hrisRemoveHrisBenefit.js.map +1 -0
- package/funcs/hrisRemoveHrisDeduction.d.ts +14 -0
- package/funcs/hrisRemoveHrisDeduction.d.ts.map +1 -0
- package/funcs/hrisRemoveHrisDeduction.js +122 -0
- package/funcs/hrisRemoveHrisDeduction.js.map +1 -0
- package/funcs/hrisUpdateHrisBenefit.d.ts +15 -0
- package/funcs/hrisUpdateHrisBenefit.d.ts.map +1 -0
- package/funcs/hrisUpdateHrisBenefit.js +126 -0
- package/funcs/hrisUpdateHrisBenefit.js.map +1 -0
- package/funcs/hrisUpdateHrisDeduction.d.ts +15 -0
- package/funcs/hrisUpdateHrisDeduction.d.ts.map +1 -0
- package/funcs/hrisUpdateHrisDeduction.js +126 -0
- package/funcs/hrisUpdateHrisDeduction.js.map +1 -0
- package/funcs/messagingListMessagingMessages.js +1 -0
- package/funcs/messagingListMessagingMessages.js.map +1 -1
- package/funcs/ucGetUcCall.d.ts +15 -0
- package/funcs/ucGetUcCall.d.ts.map +1 -0
- package/funcs/ucGetUcCall.js +125 -0
- package/funcs/ucGetUcCall.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/benefit.d.ts +30 -0
- package/sdk/benefit.d.ts.map +1 -0
- package/sdk/benefit.js +54 -0
- package/sdk/benefit.js.map +1 -0
- package/sdk/call.d.ts +4 -0
- package/sdk/call.d.ts.map +1 -1
- package/sdk/call.js +7 -0
- package/sdk/call.js.map +1 -1
- package/sdk/deduction.d.ts +30 -0
- package/sdk/deduction.d.ts.map +1 -0
- package/sdk/deduction.js +54 -0
- package/sdk/deduction.js.map +1 -0
- package/sdk/hris.d.ts +48 -0
- package/sdk/hris.d.ts.map +1 -1
- package/sdk/hris.js +84 -0
- package/sdk/hris.js.map +1 -1
- package/sdk/models/operations/createhrisbenefit.d.ts +31 -0
- package/sdk/models/operations/createhrisbenefit.d.ts.map +1 -0
- package/sdk/models/operations/createhrisbenefit.js +59 -0
- package/sdk/models/operations/createhrisbenefit.js.map +1 -0
- package/sdk/models/operations/createhrisdeduction.d.ts +31 -0
- package/sdk/models/operations/createhrisdeduction.d.ts.map +1 -0
- package/sdk/models/operations/createhrisdeduction.js +59 -0
- package/sdk/models/operations/createhrisdeduction.js.map +1 -0
- package/sdk/models/operations/gethrisbenefit.d.ts +30 -0
- package/sdk/models/operations/gethrisbenefit.d.ts.map +1 -0
- package/sdk/models/operations/gethrisbenefit.js +57 -0
- package/sdk/models/operations/gethrisbenefit.js.map +1 -0
- package/sdk/models/operations/gethrisdeduction.d.ts +30 -0
- package/sdk/models/operations/gethrisdeduction.d.ts.map +1 -0
- package/sdk/models/operations/gethrisdeduction.js +57 -0
- package/sdk/models/operations/gethrisdeduction.js.map +1 -0
- package/sdk/models/operations/getuccall.d.ts +30 -0
- package/sdk/models/operations/getuccall.d.ts.map +1 -0
- package/sdk/models/operations/getuccall.js +57 -0
- package/sdk/models/operations/getuccall.js.map +1 -0
- package/sdk/models/operations/index.d.ts +13 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +13 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listhrisbenefits.d.ts +48 -0
- package/sdk/models/operations/listhrisbenefits.d.ts.map +1 -0
- package/sdk/models/operations/listhrisbenefits.js +65 -0
- package/sdk/models/operations/listhrisbenefits.js.map +1 -0
- package/sdk/models/operations/listhrisdeductions.d.ts +63 -0
- package/sdk/models/operations/listhrisdeductions.d.ts.map +1 -0
- package/sdk/models/operations/listhrisdeductions.js +71 -0
- package/sdk/models/operations/listhrisdeductions.js.map +1 -0
- package/sdk/models/operations/listmessagingmessages.d.ts +6 -1
- package/sdk/models/operations/listmessagingmessages.d.ts.map +1 -1
- package/sdk/models/operations/listmessagingmessages.js +2 -0
- package/sdk/models/operations/listmessagingmessages.js.map +1 -1
- package/sdk/models/operations/patchhrisbenefit.d.ts +36 -0
- package/sdk/models/operations/patchhrisbenefit.d.ts.map +1 -0
- package/sdk/models/operations/patchhrisbenefit.js +60 -0
- package/sdk/models/operations/patchhrisbenefit.js.map +1 -0
- package/sdk/models/operations/patchhrisdeduction.d.ts +36 -0
- package/sdk/models/operations/patchhrisdeduction.d.ts.map +1 -0
- package/sdk/models/operations/patchhrisdeduction.js +60 -0
- package/sdk/models/operations/patchhrisdeduction.js.map +1 -0
- package/sdk/models/operations/removehrisbenefit.d.ts +30 -0
- package/sdk/models/operations/removehrisbenefit.d.ts.map +1 -0
- package/sdk/models/operations/removehrisbenefit.js +68 -0
- package/sdk/models/operations/removehrisbenefit.js.map +1 -0
- package/sdk/models/operations/removehrisdeduction.d.ts +30 -0
- package/sdk/models/operations/removehrisdeduction.d.ts.map +1 -0
- package/sdk/models/operations/removehrisdeduction.js +68 -0
- package/sdk/models/operations/removehrisdeduction.js.map +1 -0
- package/sdk/models/operations/updatehrisbenefit.d.ts +36 -0
- package/sdk/models/operations/updatehrisbenefit.d.ts.map +1 -0
- package/sdk/models/operations/updatehrisbenefit.js +60 -0
- package/sdk/models/operations/updatehrisbenefit.js.map +1 -0
- package/sdk/models/operations/updatehrisdeduction.d.ts +36 -0
- package/sdk/models/operations/updatehrisdeduction.d.ts.map +1 -0
- package/sdk/models/operations/updatehrisdeduction.js +60 -0
- package/sdk/models/operations/updatehrisdeduction.js.map +1 -0
- package/sdk/models/shared/accountinglineitem.d.ts +3 -0
- package/sdk/models/shared/accountinglineitem.d.ts.map +1 -1
- package/sdk/models/shared/accountinglineitem.js +3 -0
- package/sdk/models/shared/accountinglineitem.js.map +1 -1
- package/sdk/models/shared/accountingreference.d.ts +19 -0
- package/sdk/models/shared/accountingreference.d.ts.map +1 -0
- package/sdk/models/shared/accountingreference.js +60 -0
- package/sdk/models/shared/accountingreference.js.map +1 -0
- package/sdk/models/shared/hrisbenefit.d.ts +127 -0
- package/sdk/models/shared/hrisbenefit.d.ts.map +1 -0
- package/sdk/models/shared/hrisbenefit.js +181 -0
- package/sdk/models/shared/hrisbenefit.js.map +1 -0
- package/sdk/models/shared/hrisdeduction.d.ts +88 -0
- package/sdk/models/shared/hrisdeduction.d.ts.map +1 -0
- package/sdk/models/shared/hrisdeduction.js +148 -0
- package/sdk/models/shared/hrisdeduction.js.map +1 -0
- package/sdk/models/shared/hrispayslip.d.ts +5 -0
- package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
- package/sdk/models/shared/hrispayslip.js +2 -0
- package/sdk/models/shared/hrispayslip.js.map +1 -1
- package/sdk/models/shared/index.d.ts +4 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +4 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +27 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +33 -5
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/messagingmessage.d.ts +2 -0
- package/sdk/models/shared/messagingmessage.d.ts.map +1 -1
- package/sdk/models/shared/messagingmessage.js +4 -0
- package/sdk/models/shared/messagingmessage.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +4 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +4 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/propertyhrispayslipdeduction.d.ts +60 -0
- package/sdk/models/shared/propertyhrispayslipdeduction.d.ts.map +1 -0
- package/sdk/models/shared/propertyhrispayslipdeduction.js +110 -0
- package/sdk/models/shared/propertyhrispayslipdeduction.js.map +1 -0
- package/sdk/models/shared/uccall.d.ts +3 -0
- package/sdk/models/shared/uccall.d.ts.map +1 -1
- package/sdk/models/shared/uccall.js +4 -0
- package/sdk/models/shared/uccall.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +2 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +2 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/uc.d.ts +4 -0
- package/sdk/uc.d.ts.map +1 -1
- package/sdk/uc.js +7 -0
- package/sdk/uc.js.map +1 -1
- package/src/funcs/hrisCreateHrisBenefit.ts +170 -0
- package/src/funcs/hrisCreateHrisDeduction.ts +171 -0
- package/src/funcs/hrisGetHrisBenefit.ts +173 -0
- package/src/funcs/hrisGetHrisDeduction.ts +173 -0
- package/src/funcs/hrisListHrisBenefits.ts +177 -0
- package/src/funcs/hrisListHrisDeductions.ts +180 -0
- package/src/funcs/hrisPatchHrisBenefit.ts +174 -0
- package/src/funcs/hrisPatchHrisDeduction.ts +174 -0
- package/src/funcs/hrisRemoveHrisBenefit.ts +175 -0
- package/src/funcs/hrisRemoveHrisDeduction.ts +176 -0
- package/src/funcs/hrisUpdateHrisBenefit.ts +174 -0
- package/src/funcs/hrisUpdateHrisDeduction.ts +175 -0
- package/src/funcs/messagingListMessagingMessages.ts +1 -0
- package/src/funcs/ucGetUcCall.ts +173 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/benefit.ts +100 -0
- package/src/sdk/call.ts +15 -0
- package/src/sdk/deduction.ts +100 -0
- package/src/sdk/hris.ts +180 -0
- package/src/sdk/models/operations/createhrisbenefit.ts +59 -0
- package/src/sdk/models/operations/createhrisdeduction.ts +59 -0
- package/src/sdk/models/operations/gethrisbenefit.ts +57 -0
- package/src/sdk/models/operations/gethrisdeduction.ts +57 -0
- package/src/sdk/models/operations/getuccall.ts +57 -0
- package/src/sdk/models/operations/index.ts +13 -0
- package/src/sdk/models/operations/listhrisbenefits.ts +83 -0
- package/src/sdk/models/operations/listhrisdeductions.ts +104 -0
- package/src/sdk/models/operations/listmessagingmessages.ts +8 -1
- package/src/sdk/models/operations/patchhrisbenefit.ts +65 -0
- package/src/sdk/models/operations/patchhrisdeduction.ts +65 -0
- package/src/sdk/models/operations/removehrisbenefit.ts +75 -0
- package/src/sdk/models/operations/removehrisdeduction.ts +75 -0
- package/src/sdk/models/operations/updatehrisbenefit.ts +65 -0
- package/src/sdk/models/operations/updatehrisdeduction.ts +65 -0
- package/src/sdk/models/shared/accountinglineitem.ts +10 -0
- package/src/sdk/models/shared/accountingreference.ts +55 -0
- package/src/sdk/models/shared/hrisbenefit.ts +255 -0
- package/src/sdk/models/shared/hrisdeduction.ts +202 -0
- package/src/sdk/models/shared/hrispayslip.ts +9 -0
- package/src/sdk/models/shared/index.ts +4 -0
- package/src/sdk/models/shared/integrationsupport.ts +54 -0
- package/src/sdk/models/shared/messagingmessage.ts +6 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +4 -0
- package/src/sdk/models/shared/propertyhrispayslipdeduction.ts +135 -0
- package/src/sdk/models/shared/uccall.ts +6 -0
- package/src/sdk/models/shared/webhook.ts +2 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/uc.ts +15 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import * as shared from "../shared/index.js";
|
|
8
|
+
|
|
9
|
+
export type CreateHrisBenefitRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Company-wide benefit plans available to employees.
|
|
12
|
+
*/
|
|
13
|
+
hrisBenefit: shared.HrisBenefit;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
24
|
+
*/
|
|
25
|
+
raw?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type CreateHrisBenefitRequest$Outbound = {
|
|
30
|
+
HrisBenefit: shared.HrisBenefit$Outbound;
|
|
31
|
+
connection_id: string;
|
|
32
|
+
fields?: Array<string> | undefined;
|
|
33
|
+
raw?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CreateHrisBenefitRequest$outboundSchema: z.ZodType<
|
|
38
|
+
CreateHrisBenefitRequest$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
CreateHrisBenefitRequest
|
|
41
|
+
> = z.object({
|
|
42
|
+
hrisBenefit: shared.HrisBenefit$outboundSchema,
|
|
43
|
+
connectionId: z.string(),
|
|
44
|
+
fields: z.array(z.string()).optional(),
|
|
45
|
+
raw: z.string().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
hrisBenefit: "HrisBenefit",
|
|
49
|
+
connectionId: "connection_id",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function createHrisBenefitRequestToJSON(
|
|
54
|
+
createHrisBenefitRequest: CreateHrisBenefitRequest,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
CreateHrisBenefitRequest$outboundSchema.parse(createHrisBenefitRequest),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import * as shared from "../shared/index.js";
|
|
8
|
+
|
|
9
|
+
export type CreateHrisDeductionRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Employee-specific deduction/benefit enrolment.
|
|
12
|
+
*/
|
|
13
|
+
hrisDeduction: shared.HrisDeduction;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
24
|
+
*/
|
|
25
|
+
raw?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type CreateHrisDeductionRequest$Outbound = {
|
|
30
|
+
HrisDeduction: shared.HrisDeduction$Outbound;
|
|
31
|
+
connection_id: string;
|
|
32
|
+
fields?: Array<string> | undefined;
|
|
33
|
+
raw?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const CreateHrisDeductionRequest$outboundSchema: z.ZodType<
|
|
38
|
+
CreateHrisDeductionRequest$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
CreateHrisDeductionRequest
|
|
41
|
+
> = z.object({
|
|
42
|
+
hrisDeduction: shared.HrisDeduction$outboundSchema,
|
|
43
|
+
connectionId: z.string(),
|
|
44
|
+
fields: z.array(z.string()).optional(),
|
|
45
|
+
raw: z.string().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
hrisDeduction: "HrisDeduction",
|
|
49
|
+
connectionId: "connection_id",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function createHrisDeductionRequestToJSON(
|
|
54
|
+
createHrisDeductionRequest: CreateHrisDeductionRequest,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
CreateHrisDeductionRequest$outboundSchema.parse(createHrisDeductionRequest),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type GetHrisBenefitRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* ID of the connection
|
|
11
|
+
*/
|
|
12
|
+
connectionId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Comma-delimited fields to return
|
|
15
|
+
*/
|
|
16
|
+
fields?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the Benefit
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
23
|
+
*/
|
|
24
|
+
raw?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type GetHrisBenefitRequest$Outbound = {
|
|
29
|
+
connection_id: string;
|
|
30
|
+
fields?: Array<string> | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
raw?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const GetHrisBenefitRequest$outboundSchema: z.ZodType<
|
|
37
|
+
GetHrisBenefitRequest$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
GetHrisBenefitRequest
|
|
40
|
+
> = z.object({
|
|
41
|
+
connectionId: z.string(),
|
|
42
|
+
fields: z.array(z.string()).optional(),
|
|
43
|
+
id: z.string(),
|
|
44
|
+
raw: z.string().optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
connectionId: "connection_id",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function getHrisBenefitRequestToJSON(
|
|
52
|
+
getHrisBenefitRequest: GetHrisBenefitRequest,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
GetHrisBenefitRequest$outboundSchema.parse(getHrisBenefitRequest),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type GetHrisDeductionRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* ID of the connection
|
|
11
|
+
*/
|
|
12
|
+
connectionId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Comma-delimited fields to return
|
|
15
|
+
*/
|
|
16
|
+
fields?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the Deduction
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
23
|
+
*/
|
|
24
|
+
raw?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type GetHrisDeductionRequest$Outbound = {
|
|
29
|
+
connection_id: string;
|
|
30
|
+
fields?: Array<string> | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
raw?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const GetHrisDeductionRequest$outboundSchema: z.ZodType<
|
|
37
|
+
GetHrisDeductionRequest$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
GetHrisDeductionRequest
|
|
40
|
+
> = z.object({
|
|
41
|
+
connectionId: z.string(),
|
|
42
|
+
fields: z.array(z.string()).optional(),
|
|
43
|
+
id: z.string(),
|
|
44
|
+
raw: z.string().optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
connectionId: "connection_id",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function getHrisDeductionRequestToJSON(
|
|
52
|
+
getHrisDeductionRequest: GetHrisDeductionRequest,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
GetHrisDeductionRequest$outboundSchema.parse(getHrisDeductionRequest),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type GetUcCallRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* ID of the connection
|
|
11
|
+
*/
|
|
12
|
+
connectionId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Comma-delimited fields to return
|
|
15
|
+
*/
|
|
16
|
+
fields?: Array<string> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the Call
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
23
|
+
*/
|
|
24
|
+
raw?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type GetUcCallRequest$Outbound = {
|
|
29
|
+
connection_id: string;
|
|
30
|
+
fields?: Array<string> | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
raw?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const GetUcCallRequest$outboundSchema: z.ZodType<
|
|
37
|
+
GetUcCallRequest$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
GetUcCallRequest
|
|
40
|
+
> = z.object({
|
|
41
|
+
connectionId: z.string(),
|
|
42
|
+
fields: z.array(z.string()).optional(),
|
|
43
|
+
id: z.string(),
|
|
44
|
+
raw: z.string().optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
connectionId: "connection_id",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function getUcCallRequestToJSON(
|
|
52
|
+
getUcCallRequest: GetUcCallRequest,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
GetUcCallRequest$outboundSchema.parse(getUcCallRequest),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -39,7 +39,9 @@ export * from "./createcrmlead.js";
|
|
|
39
39
|
export * from "./createcrmpipeline.js";
|
|
40
40
|
export * from "./creategenaiembedding.js";
|
|
41
41
|
export * from "./creategenaiprompt.js";
|
|
42
|
+
export * from "./createhrisbenefit.js";
|
|
42
43
|
export * from "./createhriscompany.js";
|
|
44
|
+
export * from "./createhrisdeduction.js";
|
|
43
45
|
export * from "./createhrisdevice.js";
|
|
44
46
|
export * from "./createhrisemployee.js";
|
|
45
47
|
export * from "./createhrisgroup.js";
|
|
@@ -124,7 +126,9 @@ export * from "./getcrmevent.js";
|
|
|
124
126
|
export * from "./getcrmlead.js";
|
|
125
127
|
export * from "./getcrmpipeline.js";
|
|
126
128
|
export * from "./getgenaimodel.js";
|
|
129
|
+
export * from "./gethrisbenefit.js";
|
|
127
130
|
export * from "./gethriscompany.js";
|
|
131
|
+
export * from "./gethrisdeduction.js";
|
|
128
132
|
export * from "./gethrisdevice.js";
|
|
129
133
|
export * from "./gethrisemployee.js";
|
|
130
134
|
export * from "./gethrisgroup.js";
|
|
@@ -165,6 +169,7 @@ export * from "./getticketingcategory.js";
|
|
|
165
169
|
export * from "./getticketingcustomer.js";
|
|
166
170
|
export * from "./getticketingnote.js";
|
|
167
171
|
export * from "./getticketingticket.js";
|
|
172
|
+
export * from "./getuccall.js";
|
|
168
173
|
export * from "./getuccomment.js";
|
|
169
174
|
export * from "./getuccontact.js";
|
|
170
175
|
export * from "./getucrecording.js";
|
|
@@ -223,7 +228,9 @@ export * from "./listcrmpipelines.js";
|
|
|
223
228
|
export * from "./listenrichcompanies.js";
|
|
224
229
|
export * from "./listenrichpeople.js";
|
|
225
230
|
export * from "./listgenaimodels.js";
|
|
231
|
+
export * from "./listhrisbenefits.js";
|
|
226
232
|
export * from "./listhriscompanies.js";
|
|
233
|
+
export * from "./listhrisdeductions.js";
|
|
227
234
|
export * from "./listhrisdevices.js";
|
|
228
235
|
export * from "./listhrisemployees.js";
|
|
229
236
|
export * from "./listhrisgroups.js";
|
|
@@ -312,7 +319,9 @@ export * from "./patchcrmdeal.js";
|
|
|
312
319
|
export * from "./patchcrmevent.js";
|
|
313
320
|
export * from "./patchcrmlead.js";
|
|
314
321
|
export * from "./patchcrmpipeline.js";
|
|
322
|
+
export * from "./patchhrisbenefit.js";
|
|
315
323
|
export * from "./patchhriscompany.js";
|
|
324
|
+
export * from "./patchhrisdeduction.js";
|
|
316
325
|
export * from "./patchhrisdevice.js";
|
|
317
326
|
export * from "./patchhrisemployee.js";
|
|
318
327
|
export * from "./patchhrisgroup.js";
|
|
@@ -391,7 +400,9 @@ export * from "./removecrmdeal.js";
|
|
|
391
400
|
export * from "./removecrmevent.js";
|
|
392
401
|
export * from "./removecrmlead.js";
|
|
393
402
|
export * from "./removecrmpipeline.js";
|
|
403
|
+
export * from "./removehrisbenefit.js";
|
|
394
404
|
export * from "./removehriscompany.js";
|
|
405
|
+
export * from "./removehrisdeduction.js";
|
|
395
406
|
export * from "./removehrisdevice.js";
|
|
396
407
|
export * from "./removehrisemployee.js";
|
|
397
408
|
export * from "./removehrisgroup.js";
|
|
@@ -468,7 +479,9 @@ export * from "./updatecrmdeal.js";
|
|
|
468
479
|
export * from "./updatecrmevent.js";
|
|
469
480
|
export * from "./updatecrmlead.js";
|
|
470
481
|
export * from "./updatecrmpipeline.js";
|
|
482
|
+
export * from "./updatehrisbenefit.js";
|
|
471
483
|
export * from "./updatehriscompany.js";
|
|
484
|
+
export * from "./updatehrisdeduction.js";
|
|
472
485
|
export * from "./updatehrisdevice.js";
|
|
473
486
|
export * from "./updatehrisemployee.js";
|
|
474
487
|
export * from "./updatehrisgroup.js";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ListHrisBenefitsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The company ID to filter by
|
|
11
|
+
*/
|
|
12
|
+
companyId?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* ID of the connection
|
|
15
|
+
*/
|
|
16
|
+
connectionId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-delimited fields to return
|
|
19
|
+
*/
|
|
20
|
+
fields?: Array<string> | undefined;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
offset?: number | undefined;
|
|
23
|
+
order?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Query string to search. eg. email address or name
|
|
26
|
+
*/
|
|
27
|
+
query?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
30
|
+
*/
|
|
31
|
+
raw?: string | undefined;
|
|
32
|
+
sort?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Return only results whose updated date is equal or greater to this value
|
|
35
|
+
*/
|
|
36
|
+
updatedGte?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type ListHrisBenefitsRequest$Outbound = {
|
|
41
|
+
company_id?: string | undefined;
|
|
42
|
+
connection_id: string;
|
|
43
|
+
fields?: Array<string> | undefined;
|
|
44
|
+
limit?: number | undefined;
|
|
45
|
+
offset?: number | undefined;
|
|
46
|
+
order?: string | undefined;
|
|
47
|
+
query?: string | undefined;
|
|
48
|
+
raw?: string | undefined;
|
|
49
|
+
sort?: string | undefined;
|
|
50
|
+
updated_gte?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const ListHrisBenefitsRequest$outboundSchema: z.ZodType<
|
|
55
|
+
ListHrisBenefitsRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
ListHrisBenefitsRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
companyId: z.string().optional(),
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
limit: z.number().optional(),
|
|
63
|
+
offset: z.number().optional(),
|
|
64
|
+
order: z.string().optional(),
|
|
65
|
+
query: z.string().optional(),
|
|
66
|
+
raw: z.string().optional(),
|
|
67
|
+
sort: z.string().optional(),
|
|
68
|
+
updatedGte: z.string().optional(),
|
|
69
|
+
}).transform((v) => {
|
|
70
|
+
return remap$(v, {
|
|
71
|
+
companyId: "company_id",
|
|
72
|
+
connectionId: "connection_id",
|
|
73
|
+
updatedGte: "updated_gte",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export function listHrisBenefitsRequestToJSON(
|
|
78
|
+
listHrisBenefitsRequest: ListHrisBenefitsRequest,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
ListHrisBenefitsRequest$outboundSchema.parse(listHrisBenefitsRequest),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ListHrisDeductionsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The benefit ID to filter by
|
|
11
|
+
*/
|
|
12
|
+
benefitId?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The company ID to filter by
|
|
15
|
+
*/
|
|
16
|
+
companyId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the connection
|
|
19
|
+
*/
|
|
20
|
+
connectionId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Comma-delimited fields to return
|
|
23
|
+
*/
|
|
24
|
+
fields?: Array<string> | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
offset?: number | undefined;
|
|
27
|
+
order?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The payslip ID to filter by
|
|
30
|
+
*/
|
|
31
|
+
payslipId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Query string to search. eg. email address or name
|
|
34
|
+
*/
|
|
35
|
+
query?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
38
|
+
*/
|
|
39
|
+
raw?: string | undefined;
|
|
40
|
+
sort?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Return only results whose updated date is equal or greater to this value
|
|
43
|
+
*/
|
|
44
|
+
updatedGte?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The user/employee ID to filter by
|
|
47
|
+
*/
|
|
48
|
+
userId?: string | undefined;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type ListHrisDeductionsRequest$Outbound = {
|
|
53
|
+
benefit_id?: string | undefined;
|
|
54
|
+
company_id?: string | undefined;
|
|
55
|
+
connection_id: string;
|
|
56
|
+
fields?: Array<string> | undefined;
|
|
57
|
+
limit?: number | undefined;
|
|
58
|
+
offset?: number | undefined;
|
|
59
|
+
order?: string | undefined;
|
|
60
|
+
payslip_id?: string | undefined;
|
|
61
|
+
query?: string | undefined;
|
|
62
|
+
raw?: string | undefined;
|
|
63
|
+
sort?: string | undefined;
|
|
64
|
+
updated_gte?: string | undefined;
|
|
65
|
+
user_id?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const ListHrisDeductionsRequest$outboundSchema: z.ZodType<
|
|
70
|
+
ListHrisDeductionsRequest$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
ListHrisDeductionsRequest
|
|
73
|
+
> = z.object({
|
|
74
|
+
benefitId: z.string().optional(),
|
|
75
|
+
companyId: z.string().optional(),
|
|
76
|
+
connectionId: z.string(),
|
|
77
|
+
fields: z.array(z.string()).optional(),
|
|
78
|
+
limit: z.number().optional(),
|
|
79
|
+
offset: z.number().optional(),
|
|
80
|
+
order: z.string().optional(),
|
|
81
|
+
payslipId: z.string().optional(),
|
|
82
|
+
query: z.string().optional(),
|
|
83
|
+
raw: z.string().optional(),
|
|
84
|
+
sort: z.string().optional(),
|
|
85
|
+
updatedGte: z.string().optional(),
|
|
86
|
+
userId: z.string().optional(),
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return remap$(v, {
|
|
89
|
+
benefitId: "benefit_id",
|
|
90
|
+
companyId: "company_id",
|
|
91
|
+
connectionId: "connection_id",
|
|
92
|
+
payslipId: "payslip_id",
|
|
93
|
+
updatedGte: "updated_gte",
|
|
94
|
+
userId: "user_id",
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export function listHrisDeductionsRequestToJSON(
|
|
99
|
+
listHrisDeductionsRequest: ListHrisDeductionsRequest,
|
|
100
|
+
): string {
|
|
101
|
+
return JSON.stringify(
|
|
102
|
+
ListHrisDeductionsRequest$outboundSchema.parse(listHrisDeductionsRequest),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../../../lib/primitives.js";
|
|
|
7
7
|
|
|
8
8
|
export type ListMessagingMessagesRequest = {
|
|
9
9
|
/**
|
|
10
|
-
* The channel ID to filter by
|
|
10
|
+
* The channel ID to filter by. You can also use these aliases; INBOX, SENT or DRAFT
|
|
11
11
|
*/
|
|
12
12
|
channelId?: string | undefined;
|
|
13
13
|
/**
|
|
@@ -58,6 +58,10 @@ export type ListMessagingMessagesRequest = {
|
|
|
58
58
|
* The user/employee ID to filter by
|
|
59
59
|
*/
|
|
60
60
|
userId?: string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The user/employee ID to filter by
|
|
63
|
+
*/
|
|
64
|
+
userMentionedId?: string | undefined;
|
|
61
65
|
};
|
|
62
66
|
|
|
63
67
|
/** @internal */
|
|
@@ -78,6 +82,7 @@ export type ListMessagingMessagesRequest$Outbound = {
|
|
|
78
82
|
start_gte?: string | undefined;
|
|
79
83
|
updated_gte?: string | undefined;
|
|
80
84
|
user_id?: string | undefined;
|
|
85
|
+
user_mentioned_id?: string | undefined;
|
|
81
86
|
};
|
|
82
87
|
|
|
83
88
|
/** @internal */
|
|
@@ -102,6 +107,7 @@ export const ListMessagingMessagesRequest$outboundSchema: z.ZodType<
|
|
|
102
107
|
startGte: z.string().optional(),
|
|
103
108
|
updatedGte: z.string().optional(),
|
|
104
109
|
userId: z.string().optional(),
|
|
110
|
+
userMentionedId: z.string().optional(),
|
|
105
111
|
}).transform((v) => {
|
|
106
112
|
return remap$(v, {
|
|
107
113
|
channelId: "channel_id",
|
|
@@ -112,6 +118,7 @@ export const ListMessagingMessagesRequest$outboundSchema: z.ZodType<
|
|
|
112
118
|
startGte: "start_gte",
|
|
113
119
|
updatedGte: "updated_gte",
|
|
114
120
|
userId: "user_id",
|
|
121
|
+
userMentionedId: "user_mentioned_id",
|
|
115
122
|
});
|
|
116
123
|
});
|
|
117
124
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import * as shared from "../shared/index.js";
|
|
8
|
+
|
|
9
|
+
export type PatchHrisBenefitRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Company-wide benefit plans available to employees.
|
|
12
|
+
*/
|
|
13
|
+
hrisBenefit: shared.HrisBenefit;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the Benefit
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
28
|
+
*/
|
|
29
|
+
raw?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type PatchHrisBenefitRequest$Outbound = {
|
|
34
|
+
HrisBenefit: shared.HrisBenefit$Outbound;
|
|
35
|
+
connection_id: string;
|
|
36
|
+
fields?: Array<string> | undefined;
|
|
37
|
+
id: string;
|
|
38
|
+
raw?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const PatchHrisBenefitRequest$outboundSchema: z.ZodType<
|
|
43
|
+
PatchHrisBenefitRequest$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
PatchHrisBenefitRequest
|
|
46
|
+
> = z.object({
|
|
47
|
+
hrisBenefit: shared.HrisBenefit$outboundSchema,
|
|
48
|
+
connectionId: z.string(),
|
|
49
|
+
fields: z.array(z.string()).optional(),
|
|
50
|
+
id: z.string(),
|
|
51
|
+
raw: z.string().optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
hrisBenefit: "HrisBenefit",
|
|
55
|
+
connectionId: "connection_id",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function patchHrisBenefitRequestToJSON(
|
|
60
|
+
patchHrisBenefitRequest: PatchHrisBenefitRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
PatchHrisBenefitRequest$outboundSchema.parse(patchHrisBenefitRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|