@unified-api/typescript-sdk 2.40.0 → 2.46.0
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 +2 -1
- package/docs/sdks/connection/README.md +4 -4
- package/docs/sdks/unified/README.md +4 -4
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +6 -2
- package/lib/config.js.map +1 -1
- package/package.json +1 -1
- package/sdk/models/shared/accountingaccount.d.ts +6 -23
- package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
- package/sdk/models/shared/accountingaccount.js +3 -28
- package/sdk/models/shared/accountingaccount.js.map +1 -1
- package/sdk/models/shared/accountingcontact.d.ts +6 -23
- package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
- package/sdk/models/shared/accountingcontact.js +3 -26
- package/sdk/models/shared/accountingcontact.js.map +1 -1
- package/sdk/models/shared/accountinginvoice.d.ts +6 -23
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +3 -26
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/accountingjournal.d.ts +6 -23
- package/sdk/models/shared/accountingjournal.d.ts.map +1 -1
- package/sdk/models/shared/accountingjournal.js +3 -26
- package/sdk/models/shared/accountingjournal.js.map +1 -1
- package/sdk/models/shared/accountingorder.d.ts +6 -23
- package/sdk/models/shared/accountingorder.d.ts.map +1 -1
- package/sdk/models/shared/accountingorder.js +3 -26
- package/sdk/models/shared/accountingorder.js.map +1 -1
- package/sdk/models/shared/accountingorganization.d.ts +6 -23
- package/sdk/models/shared/accountingorganization.d.ts.map +1 -1
- package/sdk/models/shared/accountingorganization.js +3 -26
- package/sdk/models/shared/accountingorganization.js.map +1 -1
- package/sdk/models/shared/accountingreport.d.ts +6 -23
- package/sdk/models/shared/accountingreport.d.ts.map +1 -1
- package/sdk/models/shared/accountingreport.js +3 -26
- package/sdk/models/shared/accountingreport.js.map +1 -1
- package/sdk/models/shared/accountingtaxrate.d.ts +6 -23
- package/sdk/models/shared/accountingtaxrate.d.ts.map +1 -1
- package/sdk/models/shared/accountingtaxrate.js +3 -26
- package/sdk/models/shared/accountingtaxrate.js.map +1 -1
- package/sdk/models/shared/accountingtransaction.d.ts +6 -23
- package/sdk/models/shared/accountingtransaction.d.ts.map +1 -1
- package/sdk/models/shared/accountingtransaction.js +3 -26
- package/sdk/models/shared/accountingtransaction.js.map +1 -1
- package/sdk/models/shared/atsactivity.d.ts +6 -23
- package/sdk/models/shared/atsactivity.d.ts.map +1 -1
- package/sdk/models/shared/atsactivity.js +3 -26
- package/sdk/models/shared/atsactivity.js.map +1 -1
- package/sdk/models/shared/atsapplication.d.ts +6 -23
- package/sdk/models/shared/atsapplication.d.ts.map +1 -1
- package/sdk/models/shared/atsapplication.js +3 -26
- package/sdk/models/shared/atsapplication.js.map +1 -1
- package/sdk/models/shared/atscandidate.d.ts +6 -23
- package/sdk/models/shared/atscandidate.d.ts.map +1 -1
- package/sdk/models/shared/atscandidate.js +3 -26
- package/sdk/models/shared/atscandidate.js.map +1 -1
- package/sdk/models/shared/atscompany.d.ts +6 -23
- package/sdk/models/shared/atscompany.d.ts.map +1 -1
- package/sdk/models/shared/atscompany.js +3 -26
- package/sdk/models/shared/atscompany.js.map +1 -1
- package/sdk/models/shared/atsdocument.d.ts +6 -23
- package/sdk/models/shared/atsdocument.d.ts.map +1 -1
- package/sdk/models/shared/atsdocument.js +3 -26
- package/sdk/models/shared/atsdocument.js.map +1 -1
- package/sdk/models/shared/atsinterview.d.ts +6 -23
- package/sdk/models/shared/atsinterview.d.ts.map +1 -1
- package/sdk/models/shared/atsinterview.js +3 -26
- package/sdk/models/shared/atsinterview.js.map +1 -1
- package/sdk/models/shared/atsjob.d.ts +6 -23
- package/sdk/models/shared/atsjob.d.ts.map +1 -1
- package/sdk/models/shared/atsjob.js +3 -26
- package/sdk/models/shared/atsjob.js.map +1 -1
- package/sdk/models/shared/atsoffer.d.ts +6 -23
- package/sdk/models/shared/atsoffer.d.ts.map +1 -1
- package/sdk/models/shared/atsoffer.js +3 -26
- package/sdk/models/shared/atsoffer.js.map +1 -1
- package/sdk/models/shared/atsscorecard.d.ts +6 -23
- package/sdk/models/shared/atsscorecard.d.ts.map +1 -1
- package/sdk/models/shared/atsscorecard.js +3 -26
- package/sdk/models/shared/atsscorecard.js.map +1 -1
- package/sdk/models/shared/atsstatus.d.ts +6 -23
- package/sdk/models/shared/atsstatus.d.ts.map +1 -1
- package/sdk/models/shared/atsstatus.js +3 -26
- package/sdk/models/shared/atsstatus.js.map +1 -1
- package/sdk/models/shared/calendarbusy.d.ts +6 -23
- package/sdk/models/shared/calendarbusy.d.ts.map +1 -1
- package/sdk/models/shared/calendarbusy.js +3 -26
- package/sdk/models/shared/calendarbusy.js.map +1 -1
- package/sdk/models/shared/calendarcalendar.d.ts +6 -23
- package/sdk/models/shared/calendarcalendar.d.ts.map +1 -1
- package/sdk/models/shared/calendarcalendar.js +3 -26
- package/sdk/models/shared/calendarcalendar.js.map +1 -1
- package/sdk/models/shared/calendarevent.d.ts +6 -23
- package/sdk/models/shared/calendarevent.d.ts.map +1 -1
- package/sdk/models/shared/calendarevent.js +3 -26
- package/sdk/models/shared/calendarevent.js.map +1 -1
- package/sdk/models/shared/calendarlink.d.ts +6 -23
- package/sdk/models/shared/calendarlink.d.ts.map +1 -1
- package/sdk/models/shared/calendarlink.js +3 -26
- package/sdk/models/shared/calendarlink.js.map +1 -1
- package/sdk/models/shared/calendarrecording.d.ts +6 -23
- package/sdk/models/shared/calendarrecording.d.ts.map +1 -1
- package/sdk/models/shared/calendarrecording.js +3 -26
- package/sdk/models/shared/calendarrecording.js.map +1 -1
- package/sdk/models/shared/commercecollection.d.ts +6 -23
- package/sdk/models/shared/commercecollection.d.ts.map +1 -1
- package/sdk/models/shared/commercecollection.js +3 -26
- package/sdk/models/shared/commercecollection.js.map +1 -1
- package/sdk/models/shared/commerceinventory.d.ts +6 -23
- package/sdk/models/shared/commerceinventory.d.ts.map +1 -1
- package/sdk/models/shared/commerceinventory.js +3 -26
- package/sdk/models/shared/commerceinventory.js.map +1 -1
- package/sdk/models/shared/commerceitem.d.ts +6 -23
- package/sdk/models/shared/commerceitem.d.ts.map +1 -1
- package/sdk/models/shared/commerceitem.js +3 -26
- package/sdk/models/shared/commerceitem.js.map +1 -1
- package/sdk/models/shared/commercelocation.d.ts +6 -23
- package/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/sdk/models/shared/commercelocation.js +3 -26
- package/sdk/models/shared/commercelocation.js.map +1 -1
- package/sdk/models/shared/crmcompany.d.ts +6 -23
- package/sdk/models/shared/crmcompany.d.ts.map +1 -1
- package/sdk/models/shared/crmcompany.js +3 -26
- package/sdk/models/shared/crmcompany.js.map +1 -1
- package/sdk/models/shared/crmcontact.d.ts +6 -23
- package/sdk/models/shared/crmcontact.d.ts.map +1 -1
- package/sdk/models/shared/crmcontact.js +3 -26
- package/sdk/models/shared/crmcontact.js.map +1 -1
- package/sdk/models/shared/crmdeal.d.ts +6 -23
- package/sdk/models/shared/crmdeal.d.ts.map +1 -1
- package/sdk/models/shared/crmdeal.js +3 -26
- package/sdk/models/shared/crmdeal.js.map +1 -1
- package/sdk/models/shared/crmevent.d.ts +6 -23
- package/sdk/models/shared/crmevent.d.ts.map +1 -1
- package/sdk/models/shared/crmevent.js +3 -26
- package/sdk/models/shared/crmevent.js.map +1 -1
- package/sdk/models/shared/crmlead.d.ts +6 -23
- package/sdk/models/shared/crmlead.d.ts.map +1 -1
- package/sdk/models/shared/crmlead.js +3 -26
- package/sdk/models/shared/crmlead.js.map +1 -1
- package/sdk/models/shared/crmpipeline.d.ts +6 -23
- package/sdk/models/shared/crmpipeline.d.ts.map +1 -1
- package/sdk/models/shared/crmpipeline.js +3 -26
- package/sdk/models/shared/crmpipeline.js.map +1 -1
- package/sdk/models/shared/hriscompany.d.ts +6 -23
- package/sdk/models/shared/hriscompany.d.ts.map +1 -1
- package/sdk/models/shared/hriscompany.js +3 -26
- package/sdk/models/shared/hriscompany.js.map +1 -1
- package/sdk/models/shared/hrisemployee.d.ts +6 -23
- package/sdk/models/shared/hrisemployee.d.ts.map +1 -1
- package/sdk/models/shared/hrisemployee.js +3 -26
- package/sdk/models/shared/hrisemployee.js.map +1 -1
- package/sdk/models/shared/hrisgroup.d.ts +6 -23
- package/sdk/models/shared/hrisgroup.d.ts.map +1 -1
- package/sdk/models/shared/hrisgroup.js +3 -26
- package/sdk/models/shared/hrisgroup.js.map +1 -1
- package/sdk/models/shared/hrislocation.d.ts +6 -23
- package/sdk/models/shared/hrislocation.d.ts.map +1 -1
- package/sdk/models/shared/hrislocation.js +3 -26
- package/sdk/models/shared/hrislocation.js.map +1 -1
- package/sdk/models/shared/hrispayslip.d.ts +6 -23
- package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
- package/sdk/models/shared/hrispayslip.js +3 -26
- package/sdk/models/shared/hrispayslip.js.map +1 -1
- package/sdk/models/shared/hristimeoff.d.ts +6 -23
- package/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/sdk/models/shared/hristimeoff.js +3 -26
- package/sdk/models/shared/hristimeoff.js.map +1 -1
- package/sdk/models/shared/metadatametadata.d.ts +6 -23
- package/sdk/models/shared/metadatametadata.d.ts.map +1 -1
- package/sdk/models/shared/metadatametadata.js +3 -26
- package/sdk/models/shared/metadatametadata.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/src/lib/config.ts +6 -2
- package/src/sdk/models/shared/accountingaccount.ts +4 -44
- package/src/sdk/models/shared/accountingcontact.ts +4 -54
- package/src/sdk/models/shared/accountinginvoice.ts +4 -54
- package/src/sdk/models/shared/accountingjournal.ts +4 -54
- package/src/sdk/models/shared/accountingorder.ts +4 -54
- package/src/sdk/models/shared/accountingorganization.ts +4 -54
- package/src/sdk/models/shared/accountingreport.ts +4 -54
- package/src/sdk/models/shared/accountingtaxrate.ts +4 -54
- package/src/sdk/models/shared/accountingtransaction.ts +4 -54
- package/src/sdk/models/shared/atsactivity.ts +4 -50
- package/src/sdk/models/shared/atsapplication.ts +4 -54
- package/src/sdk/models/shared/atscandidate.ts +4 -52
- package/src/sdk/models/shared/atscompany.ts +4 -50
- package/src/sdk/models/shared/atsdocument.ts +4 -50
- package/src/sdk/models/shared/atsinterview.ts +4 -52
- package/src/sdk/models/shared/atsjob.ts +4 -50
- package/src/sdk/models/shared/atsoffer.ts +4 -50
- package/src/sdk/models/shared/atsscorecard.ts +4 -52
- package/src/sdk/models/shared/atsstatus.ts +4 -50
- package/src/sdk/models/shared/calendarbusy.ts +4 -52
- package/src/sdk/models/shared/calendarcalendar.ts +4 -54
- package/src/sdk/models/shared/calendarevent.ts +4 -54
- package/src/sdk/models/shared/calendarlink.ts +4 -52
- package/src/sdk/models/shared/calendarrecording.ts +4 -54
- package/src/sdk/models/shared/commercecollection.ts +4 -54
- package/src/sdk/models/shared/commerceinventory.ts +4 -54
- package/src/sdk/models/shared/commerceitem.ts +4 -52
- package/src/sdk/models/shared/commercelocation.ts +4 -54
- package/src/sdk/models/shared/crmcompany.ts +4 -50
- package/src/sdk/models/shared/crmcontact.ts +4 -50
- package/src/sdk/models/shared/crmdeal.ts +4 -50
- package/src/sdk/models/shared/crmevent.ts +4 -50
- package/src/sdk/models/shared/crmlead.ts +4 -50
- package/src/sdk/models/shared/crmpipeline.ts +4 -50
- package/src/sdk/models/shared/hriscompany.ts +4 -50
- package/src/sdk/models/shared/hrisemployee.ts +4 -52
- package/src/sdk/models/shared/hrisgroup.ts +4 -50
- package/src/sdk/models/shared/hrislocation.ts +4 -52
- package/src/sdk/models/shared/hrispayslip.ts +4 -50
- package/src/sdk/models/shared/hristimeoff.ts +4 -50
- package/src/sdk/models/shared/metadatametadata.ts +4 -54
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
|
@@ -20,8 +20,6 @@ import {
|
|
|
20
20
|
PropertyHrisLocationAddress$outboundSchema,
|
|
21
21
|
} from "./propertyhrislocationaddress.js";
|
|
22
22
|
|
|
23
|
-
export type HrisLocationRaw = {};
|
|
24
|
-
|
|
25
23
|
export type HrisLocation = {
|
|
26
24
|
address?: PropertyHrisLocationAddress | undefined;
|
|
27
25
|
createdAt?: Date | undefined;
|
|
@@ -34,58 +32,12 @@ export type HrisLocation = {
|
|
|
34
32
|
languageLocale?: string | undefined;
|
|
35
33
|
name?: string | undefined;
|
|
36
34
|
parentId?: string | undefined;
|
|
37
|
-
raw?:
|
|
35
|
+
raw?: { [k: string]: any } | undefined;
|
|
38
36
|
telephones?: Array<HrisTelephone> | undefined;
|
|
39
37
|
timezone?: string | undefined;
|
|
40
38
|
updatedAt?: Date | undefined;
|
|
41
39
|
};
|
|
42
40
|
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const HrisLocationRaw$inboundSchema: z.ZodType<
|
|
45
|
-
HrisLocationRaw,
|
|
46
|
-
z.ZodTypeDef,
|
|
47
|
-
unknown
|
|
48
|
-
> = z.object({});
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type HrisLocationRaw$Outbound = {};
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const HrisLocationRaw$outboundSchema: z.ZodType<
|
|
55
|
-
HrisLocationRaw$Outbound,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
HrisLocationRaw
|
|
58
|
-
> = z.object({});
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export namespace HrisLocationRaw$ {
|
|
65
|
-
/** @deprecated use `HrisLocationRaw$inboundSchema` instead. */
|
|
66
|
-
export const inboundSchema = HrisLocationRaw$inboundSchema;
|
|
67
|
-
/** @deprecated use `HrisLocationRaw$outboundSchema` instead. */
|
|
68
|
-
export const outboundSchema = HrisLocationRaw$outboundSchema;
|
|
69
|
-
/** @deprecated use `HrisLocationRaw$Outbound` instead. */
|
|
70
|
-
export type Outbound = HrisLocationRaw$Outbound;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function hrisLocationRawToJSON(
|
|
74
|
-
hrisLocationRaw: HrisLocationRaw,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(HrisLocationRaw$outboundSchema.parse(hrisLocationRaw));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function hrisLocationRawFromJSON(
|
|
80
|
-
jsonString: string,
|
|
81
|
-
): SafeParseResult<HrisLocationRaw, SDKValidationError> {
|
|
82
|
-
return safeParse(
|
|
83
|
-
jsonString,
|
|
84
|
-
(x) => HrisLocationRaw$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
-
`Failed to parse 'HrisLocationRaw' from JSON`,
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
41
|
/** @internal */
|
|
90
42
|
export const HrisLocation$inboundSchema: z.ZodType<
|
|
91
43
|
HrisLocation,
|
|
@@ -104,7 +56,7 @@ export const HrisLocation$inboundSchema: z.ZodType<
|
|
|
104
56
|
language_locale: z.string().optional(),
|
|
105
57
|
name: z.string().optional(),
|
|
106
58
|
parent_id: z.string().optional(),
|
|
107
|
-
raw: z.
|
|
59
|
+
raw: z.record(z.any()).optional(),
|
|
108
60
|
telephones: z.array(HrisTelephone$inboundSchema).optional(),
|
|
109
61
|
timezone: z.string().optional(),
|
|
110
62
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -134,7 +86,7 @@ export type HrisLocation$Outbound = {
|
|
|
134
86
|
language_locale?: string | undefined;
|
|
135
87
|
name?: string | undefined;
|
|
136
88
|
parent_id?: string | undefined;
|
|
137
|
-
raw?:
|
|
89
|
+
raw?: { [k: string]: any } | undefined;
|
|
138
90
|
telephones?: Array<HrisTelephone$Outbound> | undefined;
|
|
139
91
|
timezone?: string | undefined;
|
|
140
92
|
updated_at?: string | undefined;
|
|
@@ -157,7 +109,7 @@ export const HrisLocation$outboundSchema: z.ZodType<
|
|
|
157
109
|
languageLocale: z.string().optional(),
|
|
158
110
|
name: z.string().optional(),
|
|
159
111
|
parentId: z.string().optional(),
|
|
160
|
-
raw: z.
|
|
112
|
+
raw: z.record(z.any()).optional(),
|
|
161
113
|
telephones: z.array(HrisTelephone$outboundSchema).optional(),
|
|
162
114
|
timezone: z.string().optional(),
|
|
163
115
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -22,8 +22,6 @@ export const PaymentType = {
|
|
|
22
22
|
} as const;
|
|
23
23
|
export type PaymentType = ClosedEnum<typeof PaymentType>;
|
|
24
24
|
|
|
25
|
-
export type HrisPayslipRaw = {};
|
|
26
|
-
|
|
27
25
|
export type HrisPayslip = {
|
|
28
26
|
companyId?: string | undefined;
|
|
29
27
|
createdAt?: Date | undefined;
|
|
@@ -35,7 +33,7 @@ export type HrisPayslip = {
|
|
|
35
33
|
netAmount?: number | undefined;
|
|
36
34
|
paidAt?: Date | undefined;
|
|
37
35
|
paymentType?: PaymentType | undefined;
|
|
38
|
-
raw:
|
|
36
|
+
raw: { [k: string]: any };
|
|
39
37
|
startAt?: Date | undefined;
|
|
40
38
|
updatedAt?: Date | undefined;
|
|
41
39
|
userId?: string | undefined;
|
|
@@ -60,50 +58,6 @@ export namespace PaymentType$ {
|
|
|
60
58
|
export const outboundSchema = PaymentType$outboundSchema;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const HrisPayslipRaw$inboundSchema: z.ZodType<
|
|
65
|
-
HrisPayslipRaw,
|
|
66
|
-
z.ZodTypeDef,
|
|
67
|
-
unknown
|
|
68
|
-
> = z.object({});
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export type HrisPayslipRaw$Outbound = {};
|
|
72
|
-
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const HrisPayslipRaw$outboundSchema: z.ZodType<
|
|
75
|
-
HrisPayslipRaw$Outbound,
|
|
76
|
-
z.ZodTypeDef,
|
|
77
|
-
HrisPayslipRaw
|
|
78
|
-
> = z.object({});
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
-
*/
|
|
84
|
-
export namespace HrisPayslipRaw$ {
|
|
85
|
-
/** @deprecated use `HrisPayslipRaw$inboundSchema` instead. */
|
|
86
|
-
export const inboundSchema = HrisPayslipRaw$inboundSchema;
|
|
87
|
-
/** @deprecated use `HrisPayslipRaw$outboundSchema` instead. */
|
|
88
|
-
export const outboundSchema = HrisPayslipRaw$outboundSchema;
|
|
89
|
-
/** @deprecated use `HrisPayslipRaw$Outbound` instead. */
|
|
90
|
-
export type Outbound = HrisPayslipRaw$Outbound;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function hrisPayslipRawToJSON(hrisPayslipRaw: HrisPayslipRaw): string {
|
|
94
|
-
return JSON.stringify(HrisPayslipRaw$outboundSchema.parse(hrisPayslipRaw));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export function hrisPayslipRawFromJSON(
|
|
98
|
-
jsonString: string,
|
|
99
|
-
): SafeParseResult<HrisPayslipRaw, SDKValidationError> {
|
|
100
|
-
return safeParse(
|
|
101
|
-
jsonString,
|
|
102
|
-
(x) => HrisPayslipRaw$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
-
`Failed to parse 'HrisPayslipRaw' from JSON`,
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
61
|
/** @internal */
|
|
108
62
|
export const HrisPayslip$inboundSchema: z.ZodType<
|
|
109
63
|
HrisPayslip,
|
|
@@ -123,7 +77,7 @@ export const HrisPayslip$inboundSchema: z.ZodType<
|
|
|
123
77
|
paid_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
124
78
|
.optional(),
|
|
125
79
|
payment_type: PaymentType$inboundSchema.optional(),
|
|
126
|
-
raw: z.
|
|
80
|
+
raw: z.record(z.any()),
|
|
127
81
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
128
82
|
.optional(),
|
|
129
83
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -156,7 +110,7 @@ export type HrisPayslip$Outbound = {
|
|
|
156
110
|
net_amount?: number | undefined;
|
|
157
111
|
paid_at?: string | undefined;
|
|
158
112
|
payment_type?: string | undefined;
|
|
159
|
-
raw:
|
|
113
|
+
raw: { [k: string]: any };
|
|
160
114
|
start_at?: string | undefined;
|
|
161
115
|
updated_at?: string | undefined;
|
|
162
116
|
user_id?: string | undefined;
|
|
@@ -178,7 +132,7 @@ export const HrisPayslip$outboundSchema: z.ZodType<
|
|
|
178
132
|
netAmount: z.number().optional(),
|
|
179
133
|
paidAt: z.date().transform(v => v.toISOString()).optional(),
|
|
180
134
|
paymentType: PaymentType$outboundSchema.optional(),
|
|
181
|
-
raw: z.
|
|
135
|
+
raw: z.record(z.any()),
|
|
182
136
|
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
183
137
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
184
138
|
userId: z.string().optional(),
|
|
@@ -9,8 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type HrisTimeoffRaw = {};
|
|
13
|
-
|
|
14
12
|
export const HrisTimeoffStatus = {
|
|
15
13
|
Approved: "APPROVED",
|
|
16
14
|
Pending: "PENDING",
|
|
@@ -32,7 +30,7 @@ export type HrisTimeoff = {
|
|
|
32
30
|
createdAt?: Date | undefined;
|
|
33
31
|
endAt?: Date | undefined;
|
|
34
32
|
id?: string | undefined;
|
|
35
|
-
raw?:
|
|
33
|
+
raw?: { [k: string]: any } | undefined;
|
|
36
34
|
startAt: Date;
|
|
37
35
|
status?: HrisTimeoffStatus | undefined;
|
|
38
36
|
type?: HrisTimeoffType | undefined;
|
|
@@ -40,50 +38,6 @@ export type HrisTimeoff = {
|
|
|
40
38
|
userId?: string | undefined;
|
|
41
39
|
};
|
|
42
40
|
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const HrisTimeoffRaw$inboundSchema: z.ZodType<
|
|
45
|
-
HrisTimeoffRaw,
|
|
46
|
-
z.ZodTypeDef,
|
|
47
|
-
unknown
|
|
48
|
-
> = z.object({});
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export type HrisTimeoffRaw$Outbound = {};
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const HrisTimeoffRaw$outboundSchema: z.ZodType<
|
|
55
|
-
HrisTimeoffRaw$Outbound,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
HrisTimeoffRaw
|
|
58
|
-
> = z.object({});
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export namespace HrisTimeoffRaw$ {
|
|
65
|
-
/** @deprecated use `HrisTimeoffRaw$inboundSchema` instead. */
|
|
66
|
-
export const inboundSchema = HrisTimeoffRaw$inboundSchema;
|
|
67
|
-
/** @deprecated use `HrisTimeoffRaw$outboundSchema` instead. */
|
|
68
|
-
export const outboundSchema = HrisTimeoffRaw$outboundSchema;
|
|
69
|
-
/** @deprecated use `HrisTimeoffRaw$Outbound` instead. */
|
|
70
|
-
export type Outbound = HrisTimeoffRaw$Outbound;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function hrisTimeoffRawToJSON(hrisTimeoffRaw: HrisTimeoffRaw): string {
|
|
74
|
-
return JSON.stringify(HrisTimeoffRaw$outboundSchema.parse(hrisTimeoffRaw));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function hrisTimeoffRawFromJSON(
|
|
78
|
-
jsonString: string,
|
|
79
|
-
): SafeParseResult<HrisTimeoffRaw, SDKValidationError> {
|
|
80
|
-
return safeParse(
|
|
81
|
-
jsonString,
|
|
82
|
-
(x) => HrisTimeoffRaw$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
-
`Failed to parse 'HrisTimeoffRaw' from JSON`,
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
41
|
/** @internal */
|
|
88
42
|
export const HrisTimeoffStatus$inboundSchema: z.ZodNativeEnum<
|
|
89
43
|
typeof HrisTimeoffStatus
|
|
@@ -142,7 +96,7 @@ export const HrisTimeoff$inboundSchema: z.ZodType<
|
|
|
142
96
|
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
143
97
|
.optional(),
|
|
144
98
|
id: z.string().optional(),
|
|
145
|
-
raw: z.
|
|
99
|
+
raw: z.record(z.any()).optional(),
|
|
146
100
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
147
101
|
status: HrisTimeoffStatus$inboundSchema.optional(),
|
|
148
102
|
type: HrisTimeoffType$inboundSchema.optional(),
|
|
@@ -171,7 +125,7 @@ export type HrisTimeoff$Outbound = {
|
|
|
171
125
|
created_at?: string | undefined;
|
|
172
126
|
end_at?: string | undefined;
|
|
173
127
|
id?: string | undefined;
|
|
174
|
-
raw?:
|
|
128
|
+
raw?: { [k: string]: any } | undefined;
|
|
175
129
|
start_at: string;
|
|
176
130
|
status?: string | undefined;
|
|
177
131
|
type?: string | undefined;
|
|
@@ -192,7 +146,7 @@ export const HrisTimeoff$outboundSchema: z.ZodType<
|
|
|
192
146
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
193
147
|
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
194
148
|
id: z.string().optional(),
|
|
195
|
-
raw: z.
|
|
149
|
+
raw: z.record(z.any()).optional(),
|
|
196
150
|
startAt: z.date().transform(v => v.toISOString()),
|
|
197
151
|
status: HrisTimeoffStatus$outboundSchema.optional(),
|
|
198
152
|
type: HrisTimeoffType$outboundSchema.optional(),
|
|
@@ -26,8 +26,6 @@ export const Format = {
|
|
|
26
26
|
} as const;
|
|
27
27
|
export type Format = ClosedEnum<typeof Format>;
|
|
28
28
|
|
|
29
|
-
export type MetadataMetadataRaw = {};
|
|
30
|
-
|
|
31
29
|
export type MetadataMetadata = {
|
|
32
30
|
createdAt?: Date | undefined;
|
|
33
31
|
format?: Format | undefined;
|
|
@@ -37,7 +35,7 @@ export type MetadataMetadata = {
|
|
|
37
35
|
objects?: { [k: string]: any } | undefined;
|
|
38
36
|
options?: Array<string> | undefined;
|
|
39
37
|
originalFormat?: string | undefined;
|
|
40
|
-
raw?:
|
|
38
|
+
raw?: { [k: string]: any } | undefined;
|
|
41
39
|
slug?: string | undefined;
|
|
42
40
|
updatedAt?: Date | undefined;
|
|
43
41
|
};
|
|
@@ -61,54 +59,6 @@ export namespace Format$ {
|
|
|
61
59
|
export const outboundSchema = Format$outboundSchema;
|
|
62
60
|
}
|
|
63
61
|
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const MetadataMetadataRaw$inboundSchema: z.ZodType<
|
|
66
|
-
MetadataMetadataRaw,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
unknown
|
|
69
|
-
> = z.object({});
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export type MetadataMetadataRaw$Outbound = {};
|
|
73
|
-
|
|
74
|
-
/** @internal */
|
|
75
|
-
export const MetadataMetadataRaw$outboundSchema: z.ZodType<
|
|
76
|
-
MetadataMetadataRaw$Outbound,
|
|
77
|
-
z.ZodTypeDef,
|
|
78
|
-
MetadataMetadataRaw
|
|
79
|
-
> = z.object({});
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export namespace MetadataMetadataRaw$ {
|
|
86
|
-
/** @deprecated use `MetadataMetadataRaw$inboundSchema` instead. */
|
|
87
|
-
export const inboundSchema = MetadataMetadataRaw$inboundSchema;
|
|
88
|
-
/** @deprecated use `MetadataMetadataRaw$outboundSchema` instead. */
|
|
89
|
-
export const outboundSchema = MetadataMetadataRaw$outboundSchema;
|
|
90
|
-
/** @deprecated use `MetadataMetadataRaw$Outbound` instead. */
|
|
91
|
-
export type Outbound = MetadataMetadataRaw$Outbound;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function metadataMetadataRawToJSON(
|
|
95
|
-
metadataMetadataRaw: MetadataMetadataRaw,
|
|
96
|
-
): string {
|
|
97
|
-
return JSON.stringify(
|
|
98
|
-
MetadataMetadataRaw$outboundSchema.parse(metadataMetadataRaw),
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export function metadataMetadataRawFromJSON(
|
|
103
|
-
jsonString: string,
|
|
104
|
-
): SafeParseResult<MetadataMetadataRaw, SDKValidationError> {
|
|
105
|
-
return safeParse(
|
|
106
|
-
jsonString,
|
|
107
|
-
(x) => MetadataMetadataRaw$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
-
`Failed to parse 'MetadataMetadataRaw' from JSON`,
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
62
|
/** @internal */
|
|
113
63
|
export const MetadataMetadata$inboundSchema: z.ZodType<
|
|
114
64
|
MetadataMetadata,
|
|
@@ -124,7 +74,7 @@ export const MetadataMetadata$inboundSchema: z.ZodType<
|
|
|
124
74
|
objects: z.record(z.any()).optional(),
|
|
125
75
|
options: z.array(z.string()).optional(),
|
|
126
76
|
original_format: z.string().optional(),
|
|
127
|
-
raw: z.
|
|
77
|
+
raw: z.record(z.any()).optional(),
|
|
128
78
|
slug: z.string().optional(),
|
|
129
79
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
130
80
|
.optional(),
|
|
@@ -147,7 +97,7 @@ export type MetadataMetadata$Outbound = {
|
|
|
147
97
|
objects?: { [k: string]: any } | undefined;
|
|
148
98
|
options?: Array<string> | undefined;
|
|
149
99
|
original_format?: string | undefined;
|
|
150
|
-
raw?:
|
|
100
|
+
raw?: { [k: string]: any } | undefined;
|
|
151
101
|
slug?: string | undefined;
|
|
152
102
|
updated_at?: string | undefined;
|
|
153
103
|
};
|
|
@@ -166,7 +116,7 @@ export const MetadataMetadata$outboundSchema: z.ZodType<
|
|
|
166
116
|
objects: z.record(z.any()).optional(),
|
|
167
117
|
options: z.array(z.string()).optional(),
|
|
168
118
|
originalFormat: z.string().optional(),
|
|
169
|
-
raw: z.
|
|
119
|
+
raw: z.record(z.any()).optional(),
|
|
170
120
|
slug: z.string().optional(),
|
|
171
121
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
172
122
|
}).transform((v) => {
|
|
@@ -148,6 +148,8 @@ export const PropertyConnectionPermissions = {
|
|
|
148
148
|
CalendarLinkWrite: "calendar_link_write",
|
|
149
149
|
CalendarRecordingRead: "calendar_recording_read",
|
|
150
150
|
CalendarRecordingWrite: "calendar_recording_write",
|
|
151
|
+
EnrichPersonRead: "enrich_person_read",
|
|
152
|
+
EnrichCompanyRead: "enrich_company_read",
|
|
151
153
|
} as const;
|
|
152
154
|
export type PropertyConnectionPermissions = ClosedEnum<
|
|
153
155
|
typeof PropertyConnectionPermissions
|