@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
|
@@ -23,8 +23,6 @@ export type PaymentCollectionMethod = ClosedEnum<
|
|
|
23
23
|
typeof PaymentCollectionMethod
|
|
24
24
|
>;
|
|
25
25
|
|
|
26
|
-
export type AccountingInvoiceRaw = {};
|
|
27
|
-
|
|
28
26
|
export const AccountingInvoiceStatus = {
|
|
29
27
|
Draft: "DRAFT",
|
|
30
28
|
Voided: "VOIDED",
|
|
@@ -62,7 +60,7 @@ export type AccountingInvoice = {
|
|
|
62
60
|
paidAt?: Date | undefined;
|
|
63
61
|
paymentCollectionMethod?: PaymentCollectionMethod | undefined;
|
|
64
62
|
postedAt?: Date | undefined;
|
|
65
|
-
raw?:
|
|
63
|
+
raw?: { [k: string]: any } | undefined;
|
|
66
64
|
refundAmount?: number | undefined;
|
|
67
65
|
refundReason?: string | undefined;
|
|
68
66
|
refundedAt?: Date | undefined;
|
|
@@ -95,54 +93,6 @@ export namespace PaymentCollectionMethod$ {
|
|
|
95
93
|
export const outboundSchema = PaymentCollectionMethod$outboundSchema;
|
|
96
94
|
}
|
|
97
95
|
|
|
98
|
-
/** @internal */
|
|
99
|
-
export const AccountingInvoiceRaw$inboundSchema: z.ZodType<
|
|
100
|
-
AccountingInvoiceRaw,
|
|
101
|
-
z.ZodTypeDef,
|
|
102
|
-
unknown
|
|
103
|
-
> = z.object({});
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export type AccountingInvoiceRaw$Outbound = {};
|
|
107
|
-
|
|
108
|
-
/** @internal */
|
|
109
|
-
export const AccountingInvoiceRaw$outboundSchema: z.ZodType<
|
|
110
|
-
AccountingInvoiceRaw$Outbound,
|
|
111
|
-
z.ZodTypeDef,
|
|
112
|
-
AccountingInvoiceRaw
|
|
113
|
-
> = z.object({});
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @internal
|
|
117
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
-
*/
|
|
119
|
-
export namespace AccountingInvoiceRaw$ {
|
|
120
|
-
/** @deprecated use `AccountingInvoiceRaw$inboundSchema` instead. */
|
|
121
|
-
export const inboundSchema = AccountingInvoiceRaw$inboundSchema;
|
|
122
|
-
/** @deprecated use `AccountingInvoiceRaw$outboundSchema` instead. */
|
|
123
|
-
export const outboundSchema = AccountingInvoiceRaw$outboundSchema;
|
|
124
|
-
/** @deprecated use `AccountingInvoiceRaw$Outbound` instead. */
|
|
125
|
-
export type Outbound = AccountingInvoiceRaw$Outbound;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export function accountingInvoiceRawToJSON(
|
|
129
|
-
accountingInvoiceRaw: AccountingInvoiceRaw,
|
|
130
|
-
): string {
|
|
131
|
-
return JSON.stringify(
|
|
132
|
-
AccountingInvoiceRaw$outboundSchema.parse(accountingInvoiceRaw),
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export function accountingInvoiceRawFromJSON(
|
|
137
|
-
jsonString: string,
|
|
138
|
-
): SafeParseResult<AccountingInvoiceRaw, SDKValidationError> {
|
|
139
|
-
return safeParse(
|
|
140
|
-
jsonString,
|
|
141
|
-
(x) => AccountingInvoiceRaw$inboundSchema.parse(JSON.parse(x)),
|
|
142
|
-
`Failed to parse 'AccountingInvoiceRaw' from JSON`,
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
96
|
/** @internal */
|
|
147
97
|
export const AccountingInvoiceStatus$inboundSchema: z.ZodNativeEnum<
|
|
148
98
|
typeof AccountingInvoiceStatus
|
|
@@ -214,7 +164,7 @@ export const AccountingInvoice$inboundSchema: z.ZodType<
|
|
|
214
164
|
payment_collection_method: PaymentCollectionMethod$inboundSchema.optional(),
|
|
215
165
|
posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
216
166
|
.optional(),
|
|
217
|
-
raw: z.
|
|
167
|
+
raw: z.record(z.any()).optional(),
|
|
218
168
|
refund_amount: z.number().optional(),
|
|
219
169
|
refund_reason: z.string().optional(),
|
|
220
170
|
refunded_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -267,7 +217,7 @@ export type AccountingInvoice$Outbound = {
|
|
|
267
217
|
paid_at?: string | undefined;
|
|
268
218
|
payment_collection_method?: string | undefined;
|
|
269
219
|
posted_at?: string | undefined;
|
|
270
|
-
raw?:
|
|
220
|
+
raw?: { [k: string]: any } | undefined;
|
|
271
221
|
refund_amount?: number | undefined;
|
|
272
222
|
refund_reason?: string | undefined;
|
|
273
223
|
refunded_at?: string | undefined;
|
|
@@ -301,7 +251,7 @@ export const AccountingInvoice$outboundSchema: z.ZodType<
|
|
|
301
251
|
paidAt: z.date().transform(v => v.toISOString()).optional(),
|
|
302
252
|
paymentCollectionMethod: PaymentCollectionMethod$outboundSchema.optional(),
|
|
303
253
|
postedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
304
|
-
raw: z.
|
|
254
|
+
raw: z.record(z.any()).optional(),
|
|
305
255
|
refundAmount: z.number().optional(),
|
|
306
256
|
refundReason: z.string().optional(),
|
|
307
257
|
refundedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
AccountingJournalLineitem$outboundSchema,
|
|
15
15
|
} from "./accountingjournallineitem.js";
|
|
16
16
|
|
|
17
|
-
export type AccountingJournalRaw = {};
|
|
18
|
-
|
|
19
17
|
export type AccountingJournal = {
|
|
20
18
|
createdAt?: Date | undefined;
|
|
21
19
|
currency?: string | undefined;
|
|
@@ -26,61 +24,13 @@ export type AccountingJournal = {
|
|
|
26
24
|
*/
|
|
27
25
|
lineitems?: Array<AccountingJournalLineitem> | undefined;
|
|
28
26
|
postedAt?: Date | undefined;
|
|
29
|
-
raw?:
|
|
27
|
+
raw?: { [k: string]: any } | undefined;
|
|
30
28
|
reference?: string | undefined;
|
|
31
29
|
taxAmount?: number | undefined;
|
|
32
30
|
taxrateId?: string | undefined;
|
|
33
31
|
updatedAt?: Date | undefined;
|
|
34
32
|
};
|
|
35
33
|
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const AccountingJournalRaw$inboundSchema: z.ZodType<
|
|
38
|
-
AccountingJournalRaw,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
unknown
|
|
41
|
-
> = z.object({});
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export type AccountingJournalRaw$Outbound = {};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const AccountingJournalRaw$outboundSchema: z.ZodType<
|
|
48
|
-
AccountingJournalRaw$Outbound,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
AccountingJournalRaw
|
|
51
|
-
> = z.object({});
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace AccountingJournalRaw$ {
|
|
58
|
-
/** @deprecated use `AccountingJournalRaw$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema = AccountingJournalRaw$inboundSchema;
|
|
60
|
-
/** @deprecated use `AccountingJournalRaw$outboundSchema` instead. */
|
|
61
|
-
export const outboundSchema = AccountingJournalRaw$outboundSchema;
|
|
62
|
-
/** @deprecated use `AccountingJournalRaw$Outbound` instead. */
|
|
63
|
-
export type Outbound = AccountingJournalRaw$Outbound;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function accountingJournalRawToJSON(
|
|
67
|
-
accountingJournalRaw: AccountingJournalRaw,
|
|
68
|
-
): string {
|
|
69
|
-
return JSON.stringify(
|
|
70
|
-
AccountingJournalRaw$outboundSchema.parse(accountingJournalRaw),
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function accountingJournalRawFromJSON(
|
|
75
|
-
jsonString: string,
|
|
76
|
-
): SafeParseResult<AccountingJournalRaw, SDKValidationError> {
|
|
77
|
-
return safeParse(
|
|
78
|
-
jsonString,
|
|
79
|
-
(x) => AccountingJournalRaw$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
-
`Failed to parse 'AccountingJournalRaw' from JSON`,
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
34
|
/** @internal */
|
|
85
35
|
export const AccountingJournal$inboundSchema: z.ZodType<
|
|
86
36
|
AccountingJournal,
|
|
@@ -95,7 +45,7 @@ export const AccountingJournal$inboundSchema: z.ZodType<
|
|
|
95
45
|
lineitems: z.array(AccountingJournalLineitem$inboundSchema).optional(),
|
|
96
46
|
posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
97
47
|
.optional(),
|
|
98
|
-
raw: z.
|
|
48
|
+
raw: z.record(z.any()).optional(),
|
|
99
49
|
reference: z.string().optional(),
|
|
100
50
|
tax_amount: z.number().optional(),
|
|
101
51
|
taxrate_id: z.string().optional(),
|
|
@@ -119,7 +69,7 @@ export type AccountingJournal$Outbound = {
|
|
|
119
69
|
id?: string | undefined;
|
|
120
70
|
lineitems?: Array<AccountingJournalLineitem$Outbound> | undefined;
|
|
121
71
|
posted_at?: string | undefined;
|
|
122
|
-
raw?:
|
|
72
|
+
raw?: { [k: string]: any } | undefined;
|
|
123
73
|
reference?: string | undefined;
|
|
124
74
|
tax_amount?: number | undefined;
|
|
125
75
|
taxrate_id?: string | undefined;
|
|
@@ -138,7 +88,7 @@ export const AccountingJournal$outboundSchema: z.ZodType<
|
|
|
138
88
|
id: z.string().optional(),
|
|
139
89
|
lineitems: z.array(AccountingJournalLineitem$outboundSchema).optional(),
|
|
140
90
|
postedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
141
|
-
raw: z.
|
|
91
|
+
raw: z.record(z.any()).optional(),
|
|
142
92
|
reference: z.string().optional(),
|
|
143
93
|
taxAmount: z.number().optional(),
|
|
144
94
|
taxrateId: z.string().optional(),
|
|
@@ -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(),
|