@unified-api/typescript-sdk 2.42.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/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/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
|
@@ -27,8 +27,6 @@ import {
|
|
|
27
27
|
PropertyAccountingOrderShippingAddress$outboundSchema,
|
|
28
28
|
} from "./propertyaccountingordershippingaddress.js";
|
|
29
29
|
|
|
30
|
-
export type AccountingOrderRaw = {};
|
|
31
|
-
|
|
32
30
|
export const AccountingOrderStatus = {
|
|
33
31
|
Draft: "DRAFT",
|
|
34
32
|
Voided: "VOIDED",
|
|
@@ -54,7 +52,7 @@ export type AccountingOrder = {
|
|
|
54
52
|
currency?: string | undefined;
|
|
55
53
|
id?: string | undefined;
|
|
56
54
|
lineitems?: Array<AccountingLineitem> | undefined;
|
|
57
|
-
raw?:
|
|
55
|
+
raw?: { [k: string]: any } | undefined;
|
|
58
56
|
shippingAddress?: PropertyAccountingOrderShippingAddress | undefined;
|
|
59
57
|
status?: AccountingOrderStatus | undefined;
|
|
60
58
|
totalAmount?: number | undefined;
|
|
@@ -62,54 +60,6 @@ export type AccountingOrder = {
|
|
|
62
60
|
updatedAt?: Date | undefined;
|
|
63
61
|
};
|
|
64
62
|
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const AccountingOrderRaw$inboundSchema: z.ZodType<
|
|
67
|
-
AccountingOrderRaw,
|
|
68
|
-
z.ZodTypeDef,
|
|
69
|
-
unknown
|
|
70
|
-
> = z.object({});
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export type AccountingOrderRaw$Outbound = {};
|
|
74
|
-
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const AccountingOrderRaw$outboundSchema: z.ZodType<
|
|
77
|
-
AccountingOrderRaw$Outbound,
|
|
78
|
-
z.ZodTypeDef,
|
|
79
|
-
AccountingOrderRaw
|
|
80
|
-
> = z.object({});
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export namespace AccountingOrderRaw$ {
|
|
87
|
-
/** @deprecated use `AccountingOrderRaw$inboundSchema` instead. */
|
|
88
|
-
export const inboundSchema = AccountingOrderRaw$inboundSchema;
|
|
89
|
-
/** @deprecated use `AccountingOrderRaw$outboundSchema` instead. */
|
|
90
|
-
export const outboundSchema = AccountingOrderRaw$outboundSchema;
|
|
91
|
-
/** @deprecated use `AccountingOrderRaw$Outbound` instead. */
|
|
92
|
-
export type Outbound = AccountingOrderRaw$Outbound;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function accountingOrderRawToJSON(
|
|
96
|
-
accountingOrderRaw: AccountingOrderRaw,
|
|
97
|
-
): string {
|
|
98
|
-
return JSON.stringify(
|
|
99
|
-
AccountingOrderRaw$outboundSchema.parse(accountingOrderRaw),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function accountingOrderRawFromJSON(
|
|
104
|
-
jsonString: string,
|
|
105
|
-
): SafeParseResult<AccountingOrderRaw, SDKValidationError> {
|
|
106
|
-
return safeParse(
|
|
107
|
-
jsonString,
|
|
108
|
-
(x) => AccountingOrderRaw$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
-
`Failed to parse 'AccountingOrderRaw' from JSON`,
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
63
|
/** @internal */
|
|
114
64
|
export const AccountingOrderStatus$inboundSchema: z.ZodNativeEnum<
|
|
115
65
|
typeof AccountingOrderStatus
|
|
@@ -167,7 +117,7 @@ export const AccountingOrder$inboundSchema: z.ZodType<
|
|
|
167
117
|
currency: z.string().optional(),
|
|
168
118
|
id: z.string().optional(),
|
|
169
119
|
lineitems: z.array(AccountingLineitem$inboundSchema).optional(),
|
|
170
|
-
raw: z.
|
|
120
|
+
raw: z.record(z.any()).optional(),
|
|
171
121
|
shipping_address: PropertyAccountingOrderShippingAddress$inboundSchema
|
|
172
122
|
.optional(),
|
|
173
123
|
status: AccountingOrderStatus$inboundSchema.optional(),
|
|
@@ -196,7 +146,7 @@ export type AccountingOrder$Outbound = {
|
|
|
196
146
|
currency?: string | undefined;
|
|
197
147
|
id?: string | undefined;
|
|
198
148
|
lineitems?: Array<AccountingLineitem$Outbound> | undefined;
|
|
199
|
-
raw?:
|
|
149
|
+
raw?: { [k: string]: any } | undefined;
|
|
200
150
|
shipping_address?:
|
|
201
151
|
| PropertyAccountingOrderShippingAddress$Outbound
|
|
202
152
|
| undefined;
|
|
@@ -220,7 +170,7 @@ export const AccountingOrder$outboundSchema: z.ZodType<
|
|
|
220
170
|
currency: z.string().optional(),
|
|
221
171
|
id: z.string().optional(),
|
|
222
172
|
lineitems: z.array(AccountingLineitem$outboundSchema).optional(),
|
|
223
|
-
raw: z.
|
|
173
|
+
raw: z.record(z.any()).optional(),
|
|
224
174
|
shippingAddress: PropertyAccountingOrderShippingAddress$outboundSchema
|
|
225
175
|
.optional(),
|
|
226
176
|
status: AccountingOrderStatus$outboundSchema.optional(),
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
PropertyAccountingOrganizationAddress$outboundSchema,
|
|
15
15
|
} from "./propertyaccountingorganizationaddress.js";
|
|
16
16
|
|
|
17
|
-
export type AccountingOrganizationRaw = {};
|
|
18
|
-
|
|
19
17
|
export type AccountingOrganization = {
|
|
20
18
|
address?: PropertyAccountingOrganizationAddress | undefined;
|
|
21
19
|
createdAt?: Date | undefined;
|
|
@@ -25,61 +23,13 @@ export type AccountingOrganization = {
|
|
|
25
23
|
legalName?: string | undefined;
|
|
26
24
|
name: string;
|
|
27
25
|
organizationCode?: string | undefined;
|
|
28
|
-
raw?:
|
|
26
|
+
raw?: { [k: string]: any } | undefined;
|
|
29
27
|
taxNumber?: string | undefined;
|
|
30
28
|
timezone?: string | undefined;
|
|
31
29
|
updatedAt?: Date | undefined;
|
|
32
30
|
website?: string | undefined;
|
|
33
31
|
};
|
|
34
32
|
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const AccountingOrganizationRaw$inboundSchema: z.ZodType<
|
|
37
|
-
AccountingOrganizationRaw,
|
|
38
|
-
z.ZodTypeDef,
|
|
39
|
-
unknown
|
|
40
|
-
> = z.object({});
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type AccountingOrganizationRaw$Outbound = {};
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const AccountingOrganizationRaw$outboundSchema: z.ZodType<
|
|
47
|
-
AccountingOrganizationRaw$Outbound,
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
AccountingOrganizationRaw
|
|
50
|
-
> = z.object({});
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export namespace AccountingOrganizationRaw$ {
|
|
57
|
-
/** @deprecated use `AccountingOrganizationRaw$inboundSchema` instead. */
|
|
58
|
-
export const inboundSchema = AccountingOrganizationRaw$inboundSchema;
|
|
59
|
-
/** @deprecated use `AccountingOrganizationRaw$outboundSchema` instead. */
|
|
60
|
-
export const outboundSchema = AccountingOrganizationRaw$outboundSchema;
|
|
61
|
-
/** @deprecated use `AccountingOrganizationRaw$Outbound` instead. */
|
|
62
|
-
export type Outbound = AccountingOrganizationRaw$Outbound;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function accountingOrganizationRawToJSON(
|
|
66
|
-
accountingOrganizationRaw: AccountingOrganizationRaw,
|
|
67
|
-
): string {
|
|
68
|
-
return JSON.stringify(
|
|
69
|
-
AccountingOrganizationRaw$outboundSchema.parse(accountingOrganizationRaw),
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function accountingOrganizationRawFromJSON(
|
|
74
|
-
jsonString: string,
|
|
75
|
-
): SafeParseResult<AccountingOrganizationRaw, SDKValidationError> {
|
|
76
|
-
return safeParse(
|
|
77
|
-
jsonString,
|
|
78
|
-
(x) => AccountingOrganizationRaw$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
-
`Failed to parse 'AccountingOrganizationRaw' from JSON`,
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
33
|
/** @internal */
|
|
84
34
|
export const AccountingOrganization$inboundSchema: z.ZodType<
|
|
85
35
|
AccountingOrganization,
|
|
@@ -95,7 +45,7 @@ export const AccountingOrganization$inboundSchema: z.ZodType<
|
|
|
95
45
|
legal_name: z.string().optional(),
|
|
96
46
|
name: z.string(),
|
|
97
47
|
organization_code: z.string().optional(),
|
|
98
|
-
raw: z.
|
|
48
|
+
raw: z.record(z.any()).optional(),
|
|
99
49
|
tax_number: z.string().optional(),
|
|
100
50
|
timezone: z.string().optional(),
|
|
101
51
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -122,7 +72,7 @@ export type AccountingOrganization$Outbound = {
|
|
|
122
72
|
legal_name?: string | undefined;
|
|
123
73
|
name: string;
|
|
124
74
|
organization_code?: string | undefined;
|
|
125
|
-
raw?:
|
|
75
|
+
raw?: { [k: string]: any } | undefined;
|
|
126
76
|
tax_number?: string | undefined;
|
|
127
77
|
timezone?: string | undefined;
|
|
128
78
|
updated_at?: string | undefined;
|
|
@@ -143,7 +93,7 @@ export const AccountingOrganization$outboundSchema: z.ZodType<
|
|
|
143
93
|
legalName: z.string().optional(),
|
|
144
94
|
name: z.string(),
|
|
145
95
|
organizationCode: z.string().optional(),
|
|
146
|
-
raw: z.
|
|
96
|
+
raw: z.record(z.any()).optional(),
|
|
147
97
|
taxNumber: z.string().optional(),
|
|
148
98
|
timezone: z.string().optional(),
|
|
149
99
|
updatedAt: z.date().transform(v => v.toISOString()).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 AccountingReportRaw = {};
|
|
13
|
-
|
|
14
12
|
export const AccountingReportType = {
|
|
15
13
|
TrialBalance: "TRIAL_BALANCE",
|
|
16
14
|
BalanceSheet: "BALANCE_SHEET",
|
|
@@ -25,60 +23,12 @@ export type AccountingReport = {
|
|
|
25
23
|
createdAt?: Date | undefined;
|
|
26
24
|
group?: string | undefined;
|
|
27
25
|
id?: string | undefined;
|
|
28
|
-
raw?:
|
|
26
|
+
raw?: { [k: string]: any } | undefined;
|
|
29
27
|
subgroup?: string | undefined;
|
|
30
28
|
type?: AccountingReportType | undefined;
|
|
31
29
|
updatedAt?: Date | undefined;
|
|
32
30
|
};
|
|
33
31
|
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const AccountingReportRaw$inboundSchema: z.ZodType<
|
|
36
|
-
AccountingReportRaw,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
unknown
|
|
39
|
-
> = z.object({});
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type AccountingReportRaw$Outbound = {};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const AccountingReportRaw$outboundSchema: z.ZodType<
|
|
46
|
-
AccountingReportRaw$Outbound,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
AccountingReportRaw
|
|
49
|
-
> = z.object({});
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
export namespace AccountingReportRaw$ {
|
|
56
|
-
/** @deprecated use `AccountingReportRaw$inboundSchema` instead. */
|
|
57
|
-
export const inboundSchema = AccountingReportRaw$inboundSchema;
|
|
58
|
-
/** @deprecated use `AccountingReportRaw$outboundSchema` instead. */
|
|
59
|
-
export const outboundSchema = AccountingReportRaw$outboundSchema;
|
|
60
|
-
/** @deprecated use `AccountingReportRaw$Outbound` instead. */
|
|
61
|
-
export type Outbound = AccountingReportRaw$Outbound;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function accountingReportRawToJSON(
|
|
65
|
-
accountingReportRaw: AccountingReportRaw,
|
|
66
|
-
): string {
|
|
67
|
-
return JSON.stringify(
|
|
68
|
-
AccountingReportRaw$outboundSchema.parse(accountingReportRaw),
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function accountingReportRawFromJSON(
|
|
73
|
-
jsonString: string,
|
|
74
|
-
): SafeParseResult<AccountingReportRaw, SDKValidationError> {
|
|
75
|
-
return safeParse(
|
|
76
|
-
jsonString,
|
|
77
|
-
(x) => AccountingReportRaw$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
-
`Failed to parse 'AccountingReportRaw' from JSON`,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
32
|
/** @internal */
|
|
83
33
|
export const AccountingReportType$inboundSchema: z.ZodNativeEnum<
|
|
84
34
|
typeof AccountingReportType
|
|
@@ -113,7 +63,7 @@ export const AccountingReport$inboundSchema: z.ZodType<
|
|
|
113
63
|
.optional(),
|
|
114
64
|
group: z.string().optional(),
|
|
115
65
|
id: z.string().optional(),
|
|
116
|
-
raw: z.
|
|
66
|
+
raw: z.record(z.any()).optional(),
|
|
117
67
|
subgroup: z.string().optional(),
|
|
118
68
|
type: AccountingReportType$inboundSchema.optional(),
|
|
119
69
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -135,7 +85,7 @@ export type AccountingReport$Outbound = {
|
|
|
135
85
|
created_at?: string | undefined;
|
|
136
86
|
group?: string | undefined;
|
|
137
87
|
id?: string | undefined;
|
|
138
|
-
raw?:
|
|
88
|
+
raw?: { [k: string]: any } | undefined;
|
|
139
89
|
subgroup?: string | undefined;
|
|
140
90
|
type?: string | undefined;
|
|
141
91
|
updated_at?: string | undefined;
|
|
@@ -153,7 +103,7 @@ export const AccountingReport$outboundSchema: z.ZodType<
|
|
|
153
103
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
154
104
|
group: z.string().optional(),
|
|
155
105
|
id: z.string().optional(),
|
|
156
|
-
raw: z.
|
|
106
|
+
raw: z.record(z.any()).optional(),
|
|
157
107
|
subgroup: z.string().optional(),
|
|
158
108
|
type: AccountingReportType$outboundSchema.optional(),
|
|
159
109
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -8,8 +8,6 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type AccountingTaxrateRaw = {};
|
|
12
|
-
|
|
13
11
|
export type AccountingTaxrate = {
|
|
14
12
|
createdAt?: Date | undefined;
|
|
15
13
|
description?: string | undefined;
|
|
@@ -17,58 +15,10 @@ export type AccountingTaxrate = {
|
|
|
17
15
|
isActive?: boolean | undefined;
|
|
18
16
|
name?: string | undefined;
|
|
19
17
|
rate?: number | undefined;
|
|
20
|
-
raw?:
|
|
18
|
+
raw?: { [k: string]: any } | undefined;
|
|
21
19
|
updatedAt?: Date | undefined;
|
|
22
20
|
};
|
|
23
21
|
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const AccountingTaxrateRaw$inboundSchema: z.ZodType<
|
|
26
|
-
AccountingTaxrateRaw,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
unknown
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type AccountingTaxrateRaw$Outbound = {};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const AccountingTaxrateRaw$outboundSchema: z.ZodType<
|
|
36
|
-
AccountingTaxrateRaw$Outbound,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
AccountingTaxrateRaw
|
|
39
|
-
> = z.object({});
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export namespace AccountingTaxrateRaw$ {
|
|
46
|
-
/** @deprecated use `AccountingTaxrateRaw$inboundSchema` instead. */
|
|
47
|
-
export const inboundSchema = AccountingTaxrateRaw$inboundSchema;
|
|
48
|
-
/** @deprecated use `AccountingTaxrateRaw$outboundSchema` instead. */
|
|
49
|
-
export const outboundSchema = AccountingTaxrateRaw$outboundSchema;
|
|
50
|
-
/** @deprecated use `AccountingTaxrateRaw$Outbound` instead. */
|
|
51
|
-
export type Outbound = AccountingTaxrateRaw$Outbound;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function accountingTaxrateRawToJSON(
|
|
55
|
-
accountingTaxrateRaw: AccountingTaxrateRaw,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
AccountingTaxrateRaw$outboundSchema.parse(accountingTaxrateRaw),
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function accountingTaxrateRawFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<AccountingTaxrateRaw, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => AccountingTaxrateRaw$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'AccountingTaxrateRaw' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
22
|
/** @internal */
|
|
73
23
|
export const AccountingTaxrate$inboundSchema: z.ZodType<
|
|
74
24
|
AccountingTaxrate,
|
|
@@ -82,7 +32,7 @@ export const AccountingTaxrate$inboundSchema: z.ZodType<
|
|
|
82
32
|
is_active: z.boolean().optional(),
|
|
83
33
|
name: z.string().optional(),
|
|
84
34
|
rate: z.number().optional(),
|
|
85
|
-
raw: z.
|
|
35
|
+
raw: z.record(z.any()).optional(),
|
|
86
36
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
87
37
|
.optional(),
|
|
88
38
|
}).transform((v) => {
|
|
@@ -101,7 +51,7 @@ export type AccountingTaxrate$Outbound = {
|
|
|
101
51
|
is_active?: boolean | undefined;
|
|
102
52
|
name?: string | undefined;
|
|
103
53
|
rate?: number | undefined;
|
|
104
|
-
raw?:
|
|
54
|
+
raw?: { [k: string]: any } | undefined;
|
|
105
55
|
updated_at?: string | undefined;
|
|
106
56
|
};
|
|
107
57
|
|
|
@@ -117,7 +67,7 @@ export const AccountingTaxrate$outboundSchema: z.ZodType<
|
|
|
117
67
|
isActive: z.boolean().optional(),
|
|
118
68
|
name: z.string().optional(),
|
|
119
69
|
rate: z.number().optional(),
|
|
120
|
-
raw: z.
|
|
70
|
+
raw: z.record(z.any()).optional(),
|
|
121
71
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
122
72
|
}).transform((v) => {
|
|
123
73
|
return remap$(v, {
|
|
@@ -20,8 +20,6 @@ import {
|
|
|
20
20
|
AccountingTransactionLineItem$outboundSchema,
|
|
21
21
|
} from "./accountingtransactionlineitem.js";
|
|
22
22
|
|
|
23
|
-
export type AccountingTransactionRaw = {};
|
|
24
|
-
|
|
25
23
|
export type AccountingTransaction = {
|
|
26
24
|
accountId?: string | undefined;
|
|
27
25
|
contactId?: string | undefined;
|
|
@@ -34,7 +32,7 @@ export type AccountingTransaction = {
|
|
|
34
32
|
memo?: string | undefined;
|
|
35
33
|
paymentMethod?: string | undefined;
|
|
36
34
|
paymentTerms?: string | undefined;
|
|
37
|
-
raw?:
|
|
35
|
+
raw?: { [k: string]: any } | undefined;
|
|
38
36
|
reference?: string | undefined;
|
|
39
37
|
splitAccountId?: string | undefined;
|
|
40
38
|
subTotalAmount?: number | undefined;
|
|
@@ -44,54 +42,6 @@ export type AccountingTransaction = {
|
|
|
44
42
|
updatedAt?: Date | undefined;
|
|
45
43
|
};
|
|
46
44
|
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const AccountingTransactionRaw$inboundSchema: z.ZodType<
|
|
49
|
-
AccountingTransactionRaw,
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
unknown
|
|
52
|
-
> = z.object({});
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export type AccountingTransactionRaw$Outbound = {};
|
|
56
|
-
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const AccountingTransactionRaw$outboundSchema: z.ZodType<
|
|
59
|
-
AccountingTransactionRaw$Outbound,
|
|
60
|
-
z.ZodTypeDef,
|
|
61
|
-
AccountingTransactionRaw
|
|
62
|
-
> = z.object({});
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
-
*/
|
|
68
|
-
export namespace AccountingTransactionRaw$ {
|
|
69
|
-
/** @deprecated use `AccountingTransactionRaw$inboundSchema` instead. */
|
|
70
|
-
export const inboundSchema = AccountingTransactionRaw$inboundSchema;
|
|
71
|
-
/** @deprecated use `AccountingTransactionRaw$outboundSchema` instead. */
|
|
72
|
-
export const outboundSchema = AccountingTransactionRaw$outboundSchema;
|
|
73
|
-
/** @deprecated use `AccountingTransactionRaw$Outbound` instead. */
|
|
74
|
-
export type Outbound = AccountingTransactionRaw$Outbound;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function accountingTransactionRawToJSON(
|
|
78
|
-
accountingTransactionRaw: AccountingTransactionRaw,
|
|
79
|
-
): string {
|
|
80
|
-
return JSON.stringify(
|
|
81
|
-
AccountingTransactionRaw$outboundSchema.parse(accountingTransactionRaw),
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function accountingTransactionRawFromJSON(
|
|
86
|
-
jsonString: string,
|
|
87
|
-
): SafeParseResult<AccountingTransactionRaw, SDKValidationError> {
|
|
88
|
-
return safeParse(
|
|
89
|
-
jsonString,
|
|
90
|
-
(x) => AccountingTransactionRaw$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
-
`Failed to parse 'AccountingTransactionRaw' from JSON`,
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
45
|
/** @internal */
|
|
96
46
|
export const AccountingTransaction$inboundSchema: z.ZodType<
|
|
97
47
|
AccountingTransaction,
|
|
@@ -110,7 +60,7 @@ export const AccountingTransaction$inboundSchema: z.ZodType<
|
|
|
110
60
|
memo: z.string().optional(),
|
|
111
61
|
payment_method: z.string().optional(),
|
|
112
62
|
payment_terms: z.string().optional(),
|
|
113
|
-
raw: z.
|
|
63
|
+
raw: z.record(z.any()).optional(),
|
|
114
64
|
reference: z.string().optional(),
|
|
115
65
|
split_account_id: z.string().optional(),
|
|
116
66
|
sub_total_amount: z.number().optional(),
|
|
@@ -148,7 +98,7 @@ export type AccountingTransaction$Outbound = {
|
|
|
148
98
|
memo?: string | undefined;
|
|
149
99
|
payment_method?: string | undefined;
|
|
150
100
|
payment_terms?: string | undefined;
|
|
151
|
-
raw?:
|
|
101
|
+
raw?: { [k: string]: any } | undefined;
|
|
152
102
|
reference?: string | undefined;
|
|
153
103
|
split_account_id?: string | undefined;
|
|
154
104
|
sub_total_amount?: number | undefined;
|
|
@@ -175,7 +125,7 @@ export const AccountingTransaction$outboundSchema: z.ZodType<
|
|
|
175
125
|
memo: z.string().optional(),
|
|
176
126
|
paymentMethod: z.string().optional(),
|
|
177
127
|
paymentTerms: z.string().optional(),
|
|
178
|
-
raw: z.
|
|
128
|
+
raw: z.record(z.any()).optional(),
|
|
179
129
|
reference: z.string().optional(),
|
|
180
130
|
splitAccountId: z.string().optional(),
|
|
181
131
|
subTotalAmount: z.number().optional(),
|
|
@@ -21,8 +21,6 @@ import {
|
|
|
21
21
|
PropertyAtsActivityFrom$outboundSchema,
|
|
22
22
|
} from "./propertyatsactivityfrom.js";
|
|
23
23
|
|
|
24
|
-
export type AtsActivityRaw = {};
|
|
25
|
-
|
|
26
24
|
export const AtsActivityType = {
|
|
27
25
|
Note: "NOTE",
|
|
28
26
|
Task: "TASK",
|
|
@@ -47,7 +45,7 @@ export type AtsActivity = {
|
|
|
47
45
|
interviewId?: string | undefined;
|
|
48
46
|
isPrivate?: boolean | undefined;
|
|
49
47
|
jobId?: string | undefined;
|
|
50
|
-
raw?:
|
|
48
|
+
raw?: { [k: string]: any } | undefined;
|
|
51
49
|
subType?: string | undefined;
|
|
52
50
|
title?: string | undefined;
|
|
53
51
|
to?: Array<AtsEmail> | undefined;
|
|
@@ -59,50 +57,6 @@ export type AtsActivity = {
|
|
|
59
57
|
userIds?: Array<string> | undefined;
|
|
60
58
|
};
|
|
61
59
|
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const AtsActivityRaw$inboundSchema: z.ZodType<
|
|
64
|
-
AtsActivityRaw,
|
|
65
|
-
z.ZodTypeDef,
|
|
66
|
-
unknown
|
|
67
|
-
> = z.object({});
|
|
68
|
-
|
|
69
|
-
/** @internal */
|
|
70
|
-
export type AtsActivityRaw$Outbound = {};
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const AtsActivityRaw$outboundSchema: z.ZodType<
|
|
74
|
-
AtsActivityRaw$Outbound,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
AtsActivityRaw
|
|
77
|
-
> = z.object({});
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
-
*/
|
|
83
|
-
export namespace AtsActivityRaw$ {
|
|
84
|
-
/** @deprecated use `AtsActivityRaw$inboundSchema` instead. */
|
|
85
|
-
export const inboundSchema = AtsActivityRaw$inboundSchema;
|
|
86
|
-
/** @deprecated use `AtsActivityRaw$outboundSchema` instead. */
|
|
87
|
-
export const outboundSchema = AtsActivityRaw$outboundSchema;
|
|
88
|
-
/** @deprecated use `AtsActivityRaw$Outbound` instead. */
|
|
89
|
-
export type Outbound = AtsActivityRaw$Outbound;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function atsActivityRawToJSON(atsActivityRaw: AtsActivityRaw): string {
|
|
93
|
-
return JSON.stringify(AtsActivityRaw$outboundSchema.parse(atsActivityRaw));
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function atsActivityRawFromJSON(
|
|
97
|
-
jsonString: string,
|
|
98
|
-
): SafeParseResult<AtsActivityRaw, SDKValidationError> {
|
|
99
|
-
return safeParse(
|
|
100
|
-
jsonString,
|
|
101
|
-
(x) => AtsActivityRaw$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
-
`Failed to parse 'AtsActivityRaw' from JSON`,
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
60
|
/** @internal */
|
|
107
61
|
export const AtsActivityType$inboundSchema: z.ZodNativeEnum<
|
|
108
62
|
typeof AtsActivityType
|
|
@@ -144,7 +98,7 @@ export const AtsActivity$inboundSchema: z.ZodType<
|
|
|
144
98
|
interview_id: z.string().optional(),
|
|
145
99
|
is_private: z.boolean().optional(),
|
|
146
100
|
job_id: z.string().optional(),
|
|
147
|
-
raw: z.
|
|
101
|
+
raw: z.record(z.any()).optional(),
|
|
148
102
|
sub_type: z.string().optional(),
|
|
149
103
|
title: z.string().optional(),
|
|
150
104
|
to: z.array(AtsEmail$inboundSchema).optional(),
|
|
@@ -183,7 +137,7 @@ export type AtsActivity$Outbound = {
|
|
|
183
137
|
interview_id?: string | undefined;
|
|
184
138
|
is_private?: boolean | undefined;
|
|
185
139
|
job_id?: string | undefined;
|
|
186
|
-
raw?:
|
|
140
|
+
raw?: { [k: string]: any } | undefined;
|
|
187
141
|
sub_type?: string | undefined;
|
|
188
142
|
title?: string | undefined;
|
|
189
143
|
to?: Array<AtsEmail$Outbound> | undefined;
|
|
@@ -211,7 +165,7 @@ export const AtsActivity$outboundSchema: z.ZodType<
|
|
|
211
165
|
interviewId: z.string().optional(),
|
|
212
166
|
isPrivate: z.boolean().optional(),
|
|
213
167
|
jobId: z.string().optional(),
|
|
214
|
-
raw: z.
|
|
168
|
+
raw: z.record(z.any()).optional(),
|
|
215
169
|
subType: z.string().optional(),
|
|
216
170
|
title: z.string().optional(),
|
|
217
171
|
to: z.array(AtsEmail$outboundSchema).optional(),
|
|
@@ -27,8 +27,6 @@ import {
|
|
|
27
27
|
AtsOffer$outboundSchema,
|
|
28
28
|
} from "./atsoffer.js";
|
|
29
29
|
|
|
30
|
-
export type AtsApplicationRaw = {};
|
|
31
|
-
|
|
32
30
|
export const AtsApplicationStatus = {
|
|
33
31
|
New: "NEW",
|
|
34
32
|
Reviewing: "REVIEWING",
|
|
@@ -58,7 +56,7 @@ export type AtsApplication = {
|
|
|
58
56
|
metadata?: Array<AtsMetadata> | undefined;
|
|
59
57
|
offers?: Array<AtsOffer> | undefined;
|
|
60
58
|
originalStatus?: string | undefined;
|
|
61
|
-
raw?:
|
|
59
|
+
raw?: { [k: string]: any } | undefined;
|
|
62
60
|
rejectedAt?: Date | undefined;
|
|
63
61
|
rejectedReason?: string | undefined;
|
|
64
62
|
source?: string | undefined;
|
|
@@ -66,54 +64,6 @@ export type AtsApplication = {
|
|
|
66
64
|
updatedAt?: Date | undefined;
|
|
67
65
|
};
|
|
68
66
|
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const AtsApplicationRaw$inboundSchema: z.ZodType<
|
|
71
|
-
AtsApplicationRaw,
|
|
72
|
-
z.ZodTypeDef,
|
|
73
|
-
unknown
|
|
74
|
-
> = z.object({});
|
|
75
|
-
|
|
76
|
-
/** @internal */
|
|
77
|
-
export type AtsApplicationRaw$Outbound = {};
|
|
78
|
-
|
|
79
|
-
/** @internal */
|
|
80
|
-
export const AtsApplicationRaw$outboundSchema: z.ZodType<
|
|
81
|
-
AtsApplicationRaw$Outbound,
|
|
82
|
-
z.ZodTypeDef,
|
|
83
|
-
AtsApplicationRaw
|
|
84
|
-
> = z.object({});
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
-
*/
|
|
90
|
-
export namespace AtsApplicationRaw$ {
|
|
91
|
-
/** @deprecated use `AtsApplicationRaw$inboundSchema` instead. */
|
|
92
|
-
export const inboundSchema = AtsApplicationRaw$inboundSchema;
|
|
93
|
-
/** @deprecated use `AtsApplicationRaw$outboundSchema` instead. */
|
|
94
|
-
export const outboundSchema = AtsApplicationRaw$outboundSchema;
|
|
95
|
-
/** @deprecated use `AtsApplicationRaw$Outbound` instead. */
|
|
96
|
-
export type Outbound = AtsApplicationRaw$Outbound;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function atsApplicationRawToJSON(
|
|
100
|
-
atsApplicationRaw: AtsApplicationRaw,
|
|
101
|
-
): string {
|
|
102
|
-
return JSON.stringify(
|
|
103
|
-
AtsApplicationRaw$outboundSchema.parse(atsApplicationRaw),
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function atsApplicationRawFromJSON(
|
|
108
|
-
jsonString: string,
|
|
109
|
-
): SafeParseResult<AtsApplicationRaw, SDKValidationError> {
|
|
110
|
-
return safeParse(
|
|
111
|
-
jsonString,
|
|
112
|
-
(x) => AtsApplicationRaw$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
-
`Failed to parse 'AtsApplicationRaw' from JSON`,
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
67
|
/** @internal */
|
|
118
68
|
export const AtsApplicationStatus$inboundSchema: z.ZodNativeEnum<
|
|
119
69
|
typeof AtsApplicationStatus
|
|
@@ -154,7 +104,7 @@ export const AtsApplication$inboundSchema: z.ZodType<
|
|
|
154
104
|
metadata: z.array(AtsMetadata$inboundSchema).optional(),
|
|
155
105
|
offers: z.array(AtsOffer$inboundSchema).optional(),
|
|
156
106
|
original_status: z.string().optional(),
|
|
157
|
-
raw: z.
|
|
107
|
+
raw: z.record(z.any()).optional(),
|
|
158
108
|
rejected_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
159
109
|
.optional(),
|
|
160
110
|
rejected_reason: z.string().optional(),
|
|
@@ -188,7 +138,7 @@ export type AtsApplication$Outbound = {
|
|
|
188
138
|
metadata?: Array<AtsMetadata$Outbound> | undefined;
|
|
189
139
|
offers?: Array<AtsOffer$Outbound> | undefined;
|
|
190
140
|
original_status?: string | undefined;
|
|
191
|
-
raw?:
|
|
141
|
+
raw?: { [k: string]: any } | undefined;
|
|
192
142
|
rejected_at?: string | undefined;
|
|
193
143
|
rejected_reason?: string | undefined;
|
|
194
144
|
source?: string | undefined;
|
|
@@ -212,7 +162,7 @@ export const AtsApplication$outboundSchema: z.ZodType<
|
|
|
212
162
|
metadata: z.array(AtsMetadata$outboundSchema).optional(),
|
|
213
163
|
offers: z.array(AtsOffer$outboundSchema).optional(),
|
|
214
164
|
originalStatus: z.string().optional(),
|
|
215
|
-
raw: z.
|
|
165
|
+
raw: z.record(z.any()).optional(),
|
|
216
166
|
rejectedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
217
167
|
rejectedReason: z.string().optional(),
|
|
218
168
|
source: z.string().optional(),
|