@apideck/unify 0.23.2 → 0.23.3
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/docs/sdks/activities/README.md +38 -78
- package/docs/sdks/apideckcompanies/README.md +76 -66
- package/docs/sdks/apideckdepartments/README.md +10 -132
- package/docs/sdks/applicants/README.md +138 -102
- package/docs/sdks/applications/README.md +32 -42
- package/docs/sdks/bankfeedaccounts/README.md +20 -26
- package/docs/sdks/bankfeedstatements/README.md +20 -20
- package/docs/sdks/billpayments/README.md +30 -174
- package/docs/sdks/bills/README.md +206 -218
- package/docs/sdks/collectionticketcomments/README.md +32 -100
- package/docs/sdks/collectiontickets/README.md +112 -12
- package/docs/sdks/companies/README.md +166 -286
- package/docs/sdks/connections/README.md +30 -196
- package/docs/sdks/connectionsettings/README.md +20 -194
- package/docs/sdks/contacts/README.md +210 -190
- package/docs/sdks/creditnotes/README.md +37 -525
- package/docs/sdks/customers/README.md +110 -328
- package/docs/sdks/departments/README.md +10 -84
- package/docs/sdks/drivegroups/README.md +0 -16
- package/docs/sdks/drives/README.md +10 -132
- package/docs/sdks/employees/README.md +266 -296
- package/docs/sdks/expenses/README.md +42 -136
- package/docs/sdks/files/README.md +0 -116
- package/docs/sdks/folders/README.md +0 -264
- package/docs/sdks/invoiceitems/README.md +4 -112
- package/docs/sdks/invoices/README.md +210 -316
- package/docs/sdks/journalentries/README.md +272 -476
- package/docs/sdks/leads/README.md +216 -64
- package/docs/sdks/ledgeraccounts/README.md +58 -78
- package/docs/sdks/locations/README.md +6 -120
- package/docs/sdks/messages/README.md +0 -90
- package/docs/sdks/notes/README.md +46 -16
- package/docs/sdks/opportunities/README.md +38 -42
- package/docs/sdks/payments/README.md +24 -200
- package/docs/sdks/pipelines/README.md +16 -28
- package/docs/sdks/purchaseorders/README.md +212 -294
- package/docs/sdks/sharedlinks/README.md +10 -74
- package/docs/sdks/subsidiaries/README.md +10 -116
- package/docs/sdks/suppliers/README.md +24 -322
- package/docs/sdks/taxrates/README.md +32 -26
- package/docs/sdks/timeoffrequests/README.md +0 -142
- package/docs/sdks/trackingcategories/README.md +32 -100
- package/docs/sdks/uploadsessions/README.md +90 -0
- package/docs/sdks/users/README.md +124 -136
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/accountingdepartment.d.ts +6 -3
- package/models/components/accountingdepartment.d.ts.map +1 -1
- package/models/components/accountingdepartment.js +2 -3
- package/models/components/accountingdepartment.js.map +1 -1
- package/models/components/accountinglocation.d.ts +6 -3
- package/models/components/accountinglocation.d.ts.map +1 -1
- package/models/components/accountinglocation.js +2 -3
- package/models/components/accountinglocation.js.map +1 -1
- package/models/components/activity.d.ts +6 -3
- package/models/components/activity.d.ts.map +1 -1
- package/models/components/activity.js +2 -3
- package/models/components/activity.js.map +1 -1
- package/models/components/applicant.d.ts +6 -3
- package/models/components/applicant.d.ts.map +1 -1
- package/models/components/applicant.js +2 -3
- package/models/components/applicant.js.map +1 -1
- package/models/components/application.d.ts +6 -3
- package/models/components/application.d.ts.map +1 -1
- package/models/components/application.js +2 -3
- package/models/components/application.js.map +1 -1
- package/models/components/balancesheet.d.ts +6 -3
- package/models/components/balancesheet.d.ts.map +1 -1
- package/models/components/balancesheet.js +2 -3
- package/models/components/balancesheet.js.map +1 -1
- package/models/components/bankfeedaccount.d.ts +6 -3
- package/models/components/bankfeedaccount.d.ts.map +1 -1
- package/models/components/bankfeedaccount.js +2 -3
- package/models/components/bankfeedaccount.js.map +1 -1
- package/models/components/bill.d.ts +6 -3
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +2 -3
- package/models/components/bill.js.map +1 -1
- package/models/components/billpayment.d.ts +6 -3
- package/models/components/billpayment.d.ts.map +1 -1
- package/models/components/billpayment.js +2 -3
- package/models/components/billpayment.js.map +1 -1
- package/models/components/collection.d.ts +6 -3
- package/models/components/collection.d.ts.map +1 -1
- package/models/components/collection.js +2 -3
- package/models/components/collection.js.map +1 -1
- package/models/components/collectiontag.d.ts +6 -3
- package/models/components/collectiontag.d.ts.map +1 -1
- package/models/components/collectiontag.js +2 -3
- package/models/components/collectiontag.js.map +1 -1
- package/models/components/collectionticketcomment.d.ts +6 -3
- package/models/components/collectionticketcomment.d.ts.map +1 -1
- package/models/components/collectionticketcomment.js +2 -3
- package/models/components/collectionticketcomment.js.map +1 -1
- package/models/components/collectionuser.d.ts +6 -3
- package/models/components/collectionuser.d.ts.map +1 -1
- package/models/components/collectionuser.js +2 -3
- package/models/components/collectionuser.js.map +1 -1
- package/models/components/company.d.ts +6 -3
- package/models/components/company.d.ts.map +1 -1
- package/models/components/company.js +2 -3
- package/models/components/company.js.map +1 -1
- package/models/components/companyinfo.d.ts +6 -3
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +2 -3
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/contact.d.ts +10 -7
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +6 -7
- package/models/components/contact.js.map +1 -1
- package/models/components/creditnote.d.ts +6 -3
- package/models/components/creditnote.d.ts.map +1 -1
- package/models/components/creditnote.js +2 -3
- package/models/components/creditnote.js.map +1 -1
- package/models/components/customer.d.ts +6 -3
- package/models/components/customer.d.ts.map +1 -1
- package/models/components/customer.js +2 -3
- package/models/components/customer.js.map +1 -1
- package/models/components/department.d.ts +6 -3
- package/models/components/department.d.ts.map +1 -1
- package/models/components/department.js +2 -3
- package/models/components/department.js.map +1 -1
- package/models/components/drive.d.ts +6 -3
- package/models/components/drive.d.ts.map +1 -1
- package/models/components/drive.js +2 -3
- package/models/components/drive.js.map +1 -1
- package/models/components/drivegroup.d.ts +6 -3
- package/models/components/drivegroup.d.ts.map +1 -1
- package/models/components/drivegroup.js +2 -3
- package/models/components/drivegroup.js.map +1 -1
- package/models/components/ecommercecustomer.d.ts +6 -3
- package/models/components/ecommercecustomer.d.ts.map +1 -1
- package/models/components/ecommercecustomer.js +2 -3
- package/models/components/ecommercecustomer.js.map +1 -1
- package/models/components/ecommerceorder.d.ts +6 -3
- package/models/components/ecommerceorder.d.ts.map +1 -1
- package/models/components/ecommerceorder.js +2 -3
- package/models/components/ecommerceorder.js.map +1 -1
- package/models/components/ecommerceproduct.d.ts +6 -3
- package/models/components/ecommerceproduct.d.ts.map +1 -1
- package/models/components/ecommerceproduct.js +2 -3
- package/models/components/ecommerceproduct.js.map +1 -1
- package/models/components/ecommercestore.d.ts +6 -3
- package/models/components/ecommercestore.d.ts.map +1 -1
- package/models/components/ecommercestore.js +2 -3
- package/models/components/ecommercestore.js.map +1 -1
- package/models/components/employee.d.ts +6 -3
- package/models/components/employee.d.ts.map +1 -1
- package/models/components/employee.js +2 -3
- package/models/components/employee.js.map +1 -1
- package/models/components/expense.d.ts +16 -3
- package/models/components/expense.d.ts.map +1 -1
- package/models/components/expense.js +10 -3
- package/models/components/expense.js.map +1 -1
- package/models/components/expenselineitem.d.ts +5 -0
- package/models/components/expenselineitem.d.ts.map +1 -1
- package/models/components/expenselineitem.js +4 -0
- package/models/components/expenselineitem.js.map +1 -1
- package/models/components/expenselineiteminput.d.ts +5 -0
- package/models/components/expenselineiteminput.d.ts.map +1 -1
- package/models/components/expenselineiteminput.js +4 -0
- package/models/components/expenselineiteminput.js.map +1 -1
- package/models/components/folder.d.ts +6 -3
- package/models/components/folder.d.ts.map +1 -1
- package/models/components/folder.js +2 -3
- package/models/components/folder.js.map +1 -1
- package/models/components/hriscompany.d.ts +6 -3
- package/models/components/hriscompany.d.ts.map +1 -1
- package/models/components/hriscompany.js +2 -3
- package/models/components/hriscompany.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +6 -3
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +2 -3
- package/models/components/invoice.js.map +1 -1
- package/models/components/invoiceitem.d.ts +6 -3
- package/models/components/invoiceitem.d.ts.map +1 -1
- package/models/components/invoiceitem.js +2 -3
- package/models/components/invoiceitem.js.map +1 -1
- package/models/components/job.d.ts +6 -3
- package/models/components/job.d.ts.map +1 -1
- package/models/components/job.js +2 -3
- package/models/components/job.js.map +1 -1
- package/models/components/journalentry.d.ts +6 -3
- package/models/components/journalentry.d.ts.map +1 -1
- package/models/components/journalentry.js +2 -3
- package/models/components/journalentry.js.map +1 -1
- package/models/components/lead.d.ts +10 -7
- package/models/components/lead.d.ts.map +1 -1
- package/models/components/lead.js +6 -7
- package/models/components/lead.js.map +1 -1
- package/models/components/leadinput.d.ts +4 -4
- package/models/components/leadinput.d.ts.map +1 -1
- package/models/components/leadinput.js +4 -4
- package/models/components/leadinput.js.map +1 -1
- package/models/components/ledgeraccount.d.ts +6 -3
- package/models/components/ledgeraccount.d.ts.map +1 -1
- package/models/components/ledgeraccount.js +2 -3
- package/models/components/ledgeraccount.js.map +1 -1
- package/models/components/message.d.ts +6 -3
- package/models/components/message.d.ts.map +1 -1
- package/models/components/message.js +2 -3
- package/models/components/message.js.map +1 -1
- package/models/components/note.d.ts +6 -3
- package/models/components/note.d.ts.map +1 -1
- package/models/components/note.js +2 -3
- package/models/components/note.js.map +1 -1
- package/models/components/opportunity.d.ts +6 -3
- package/models/components/opportunity.d.ts.map +1 -1
- package/models/components/opportunity.js +2 -3
- package/models/components/opportunity.js.map +1 -1
- package/models/components/payment.d.ts +6 -3
- package/models/components/payment.d.ts.map +1 -1
- package/models/components/payment.js +2 -3
- package/models/components/payment.js.map +1 -1
- package/models/components/paymentsfilter.d.ts +2 -0
- package/models/components/paymentsfilter.d.ts.map +1 -1
- package/models/components/paymentsfilter.js +4 -0
- package/models/components/paymentsfilter.js.map +1 -1
- package/models/components/payroll.d.ts +6 -3
- package/models/components/payroll.d.ts.map +1 -1
- package/models/components/payroll.js +2 -3
- package/models/components/payroll.js.map +1 -1
- package/models/components/person.d.ts +6 -3
- package/models/components/person.d.ts.map +1 -1
- package/models/components/person.js +2 -3
- package/models/components/person.js.map +1 -1
- package/models/components/profitandloss.d.ts +10 -7
- package/models/components/profitandloss.d.ts.map +1 -1
- package/models/components/profitandloss.js +6 -7
- package/models/components/profitandloss.js.map +1 -1
- package/models/components/purchaseorder.d.ts +16 -3
- package/models/components/purchaseorder.d.ts.map +1 -1
- package/models/components/purchaseorder.js +10 -3
- package/models/components/purchaseorder.js.map +1 -1
- package/models/components/subsidiary.d.ts +6 -3
- package/models/components/subsidiary.d.ts.map +1 -1
- package/models/components/subsidiary.js +2 -3
- package/models/components/subsidiary.js.map +1 -1
- package/models/components/supplier.d.ts +6 -3
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +2 -3
- package/models/components/supplier.js.map +1 -1
- package/models/components/taxrate.d.ts +6 -3
- package/models/components/taxrate.d.ts.map +1 -1
- package/models/components/taxrate.js +2 -3
- package/models/components/taxrate.js.map +1 -1
- package/models/components/ticket.d.ts +6 -3
- package/models/components/ticket.d.ts.map +1 -1
- package/models/components/ticket.js +2 -3
- package/models/components/ticket.js.map +1 -1
- package/models/components/timeoffrequest.d.ts +6 -3
- package/models/components/timeoffrequest.d.ts.map +1 -1
- package/models/components/timeoffrequest.js +2 -3
- package/models/components/timeoffrequest.js.map +1 -1
- package/models/components/trackingcategory.d.ts +6 -3
- package/models/components/trackingcategory.d.ts.map +1 -1
- package/models/components/trackingcategory.js +2 -3
- package/models/components/trackingcategory.js.map +1 -1
- package/models/components/unifiedfile.d.ts +6 -3
- package/models/components/unifiedfile.d.ts.map +1 -1
- package/models/components/unifiedfile.js +2 -3
- package/models/components/unifiedfile.js.map +1 -1
- package/models/components/user.d.ts +6 -3
- package/models/components/user.d.ts.map +1 -1
- package/models/components/user.js +2 -3
- package/models/components/user.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +4 -4
- package/src/models/components/accountingdepartment.ts +4 -10
- package/src/models/components/accountinglocation.ts +4 -10
- package/src/models/components/activity.ts +4 -10
- package/src/models/components/applicant.ts +4 -10
- package/src/models/components/application.ts +4 -10
- package/src/models/components/balancesheet.ts +4 -10
- package/src/models/components/bankfeedaccount.ts +4 -10
- package/src/models/components/bill.ts +4 -10
- package/src/models/components/billpayment.ts +4 -10
- package/src/models/components/collection.ts +4 -10
- package/src/models/components/collectiontag.ts +4 -10
- package/src/models/components/collectionticketcomment.ts +4 -10
- package/src/models/components/collectionuser.ts +4 -10
- package/src/models/components/company.ts +4 -10
- package/src/models/components/companyinfo.ts +4 -10
- package/src/models/components/contact.ts +12 -18
- package/src/models/components/creditnote.ts +4 -10
- package/src/models/components/customer.ts +4 -10
- package/src/models/components/department.ts +4 -10
- package/src/models/components/drive.ts +4 -10
- package/src/models/components/drivegroup.ts +4 -10
- package/src/models/components/ecommercecustomer.ts +4 -10
- package/src/models/components/ecommerceorder.ts +4 -10
- package/src/models/components/ecommerceproduct.ts +4 -10
- package/src/models/components/ecommercestore.ts +4 -10
- package/src/models/components/employee.ts +4 -10
- package/src/models/components/expense.ts +22 -10
- package/src/models/components/expenselineitem.ts +9 -0
- package/src/models/components/expenselineiteminput.ts +9 -0
- package/src/models/components/folder.ts +4 -10
- package/src/models/components/hriscompany.ts +4 -10
- package/src/models/components/index.ts +0 -1
- package/src/models/components/invoice.ts +4 -10
- package/src/models/components/invoiceitem.ts +4 -10
- package/src/models/components/job.ts +4 -10
- package/src/models/components/journalentry.ts +4 -10
- package/src/models/components/lead.ts +12 -18
- package/src/models/components/leadinput.ts +8 -8
- package/src/models/components/ledgeraccount.ts +4 -10
- package/src/models/components/message.ts +4 -10
- package/src/models/components/note.ts +4 -10
- package/src/models/components/opportunity.ts +4 -10
- package/src/models/components/payment.ts +4 -10
- package/src/models/components/paymentsfilter.ts +6 -0
- package/src/models/components/payroll.ts +4 -10
- package/src/models/components/person.ts +4 -10
- package/src/models/components/profitandloss.ts +12 -18
- package/src/models/components/purchaseorder.ts +22 -10
- package/src/models/components/subsidiary.ts +4 -10
- package/src/models/components/supplier.ts +4 -10
- package/src/models/components/taxrate.ts +4 -10
- package/src/models/components/ticket.ts +4 -10
- package/src/models/components/timeoffrequest.ts +4 -10
- package/src/models/components/trackingcategory.ts +4 -10
- package/src/models/components/unifiedfile.ts +4 -10
- package/src/models/components/user.ts +4 -10
- package/models/components/custommappings.d.ts +0 -28
- package/models/components/custommappings.d.ts.map +0 -1
- package/models/components/custommappings.js +0 -55
- package/models/components/custommappings.js.map +0 -1
- package/src/models/components/custommappings.ts +0 -57
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
CustomField$Outbound,
|
|
20
20
|
CustomField$outboundSchema,
|
|
21
21
|
} from "./customfield.js";
|
|
22
|
-
import {
|
|
23
|
-
CustomMappings,
|
|
24
|
-
CustomMappings$inboundSchema,
|
|
25
|
-
CustomMappings$Outbound,
|
|
26
|
-
CustomMappings$outboundSchema,
|
|
27
|
-
} from "./custommappings.js";
|
|
28
22
|
import {
|
|
29
23
|
ExpenseLineItem,
|
|
30
24
|
ExpenseLineItem$inboundSchema,
|
|
@@ -147,7 +141,7 @@ export type Expense = {
|
|
|
147
141
|
/**
|
|
148
142
|
* When custom mappings are configured on the resource, the result is included here.
|
|
149
143
|
*/
|
|
150
|
-
customMappings?:
|
|
144
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
151
145
|
/**
|
|
152
146
|
* The date and time when the object was last updated.
|
|
153
147
|
*/
|
|
@@ -160,6 +154,14 @@ export type Expense = {
|
|
|
160
154
|
* A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
|
|
161
155
|
*/
|
|
162
156
|
rowVersion?: string | null | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* The user who last updated the object.
|
|
159
|
+
*/
|
|
160
|
+
updatedBy?: string | null | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* The user who created the object.
|
|
163
|
+
*/
|
|
164
|
+
createdBy?: string | null | undefined;
|
|
163
165
|
/**
|
|
164
166
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
165
167
|
*/
|
|
@@ -297,7 +299,7 @@ export const Expense$inboundSchema: z.ZodType<Expense, z.ZodTypeDef, unknown> =
|
|
|
297
299
|
total_amount: z.nullable(z.number()).optional(),
|
|
298
300
|
line_items: z.array(ExpenseLineItem$inboundSchema),
|
|
299
301
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
300
|
-
custom_mappings: z.nullable(
|
|
302
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
301
303
|
updated_at: z.nullable(
|
|
302
304
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
303
305
|
).optional(),
|
|
@@ -305,6 +307,8 @@ export const Expense$inboundSchema: z.ZodType<Expense, z.ZodTypeDef, unknown> =
|
|
|
305
307
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
306
308
|
).optional(),
|
|
307
309
|
row_version: z.nullable(z.string()).optional(),
|
|
310
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
311
|
+
created_by: z.nullable(z.string()).optional(),
|
|
308
312
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
309
313
|
}).transform((v) => {
|
|
310
314
|
return remap$(v, {
|
|
@@ -324,6 +328,8 @@ export const Expense$inboundSchema: z.ZodType<Expense, z.ZodTypeDef, unknown> =
|
|
|
324
328
|
"updated_at": "updatedAt",
|
|
325
329
|
"created_at": "createdAt",
|
|
326
330
|
"row_version": "rowVersion",
|
|
331
|
+
"updated_by": "updatedBy",
|
|
332
|
+
"created_by": "createdBy",
|
|
327
333
|
"pass_through": "passThrough",
|
|
328
334
|
});
|
|
329
335
|
});
|
|
@@ -347,10 +353,12 @@ export type Expense$Outbound = {
|
|
|
347
353
|
total_amount?: number | null | undefined;
|
|
348
354
|
line_items: Array<ExpenseLineItem$Outbound>;
|
|
349
355
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
350
|
-
custom_mappings?:
|
|
356
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
351
357
|
updated_at?: string | null | undefined;
|
|
352
358
|
created_at?: string | null | undefined;
|
|
353
359
|
row_version?: string | null | undefined;
|
|
360
|
+
updated_by?: string | null | undefined;
|
|
361
|
+
created_by?: string | null | undefined;
|
|
354
362
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
355
363
|
};
|
|
356
364
|
|
|
@@ -377,10 +385,12 @@ export const Expense$outboundSchema: z.ZodType<
|
|
|
377
385
|
totalAmount: z.nullable(z.number()).optional(),
|
|
378
386
|
lineItems: z.array(ExpenseLineItem$outboundSchema),
|
|
379
387
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
380
|
-
customMappings: z.nullable(
|
|
388
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
381
389
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
382
390
|
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
383
391
|
rowVersion: z.nullable(z.string()).optional(),
|
|
392
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
393
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
384
394
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
385
395
|
}).transform((v) => {
|
|
386
396
|
return remap$(v, {
|
|
@@ -400,6 +410,8 @@ export const Expense$outboundSchema: z.ZodType<
|
|
|
400
410
|
updatedAt: "updated_at",
|
|
401
411
|
createdAt: "created_at",
|
|
402
412
|
rowVersion: "row_version",
|
|
413
|
+
updatedBy: "updated_by",
|
|
414
|
+
createdBy: "created_by",
|
|
403
415
|
passThrough: "pass_through",
|
|
404
416
|
});
|
|
405
417
|
});
|
|
@@ -62,6 +62,10 @@ export type ExpenseLineItem = {
|
|
|
62
62
|
* Boolean that indicates if the line item is billable or not.
|
|
63
63
|
*/
|
|
64
64
|
billable?: boolean | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Line number of the resource
|
|
67
|
+
*/
|
|
68
|
+
lineNumber?: number | null | undefined;
|
|
65
69
|
};
|
|
66
70
|
|
|
67
71
|
/** @internal */
|
|
@@ -83,6 +87,7 @@ export const ExpenseLineItem$inboundSchema: z.ZodType<
|
|
|
83
87
|
description: z.nullable(z.string()).optional(),
|
|
84
88
|
total_amount: z.nullable(z.number()),
|
|
85
89
|
billable: z.boolean().optional(),
|
|
90
|
+
line_number: z.nullable(z.number().int()).optional(),
|
|
86
91
|
}).transform((v) => {
|
|
87
92
|
return remap$(v, {
|
|
88
93
|
"tracking_categories": "trackingCategories",
|
|
@@ -93,6 +98,7 @@ export const ExpenseLineItem$inboundSchema: z.ZodType<
|
|
|
93
98
|
"subsidiary_id": "subsidiaryId",
|
|
94
99
|
"tax_rate": "taxRate",
|
|
95
100
|
"total_amount": "totalAmount",
|
|
101
|
+
"line_number": "lineNumber",
|
|
96
102
|
});
|
|
97
103
|
});
|
|
98
104
|
|
|
@@ -112,6 +118,7 @@ export type ExpenseLineItem$Outbound = {
|
|
|
112
118
|
description?: string | null | undefined;
|
|
113
119
|
total_amount: number | null;
|
|
114
120
|
billable?: boolean | undefined;
|
|
121
|
+
line_number?: number | null | undefined;
|
|
115
122
|
};
|
|
116
123
|
|
|
117
124
|
/** @internal */
|
|
@@ -133,6 +140,7 @@ export const ExpenseLineItem$outboundSchema: z.ZodType<
|
|
|
133
140
|
description: z.nullable(z.string()).optional(),
|
|
134
141
|
totalAmount: z.nullable(z.number()),
|
|
135
142
|
billable: z.boolean().optional(),
|
|
143
|
+
lineNumber: z.nullable(z.number().int()).optional(),
|
|
136
144
|
}).transform((v) => {
|
|
137
145
|
return remap$(v, {
|
|
138
146
|
trackingCategories: "tracking_categories",
|
|
@@ -143,6 +151,7 @@ export const ExpenseLineItem$outboundSchema: z.ZodType<
|
|
|
143
151
|
subsidiaryId: "subsidiary_id",
|
|
144
152
|
taxRate: "tax_rate",
|
|
145
153
|
totalAmount: "total_amount",
|
|
154
|
+
lineNumber: "line_number",
|
|
146
155
|
});
|
|
147
156
|
});
|
|
148
157
|
|
|
@@ -58,6 +58,10 @@ export type ExpenseLineItemInput = {
|
|
|
58
58
|
* Boolean that indicates if the line item is billable or not.
|
|
59
59
|
*/
|
|
60
60
|
billable?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Line number of the resource
|
|
63
|
+
*/
|
|
64
|
+
lineNumber?: number | null | undefined;
|
|
61
65
|
};
|
|
62
66
|
|
|
63
67
|
/** @internal */
|
|
@@ -78,6 +82,7 @@ export const ExpenseLineItemInput$inboundSchema: z.ZodType<
|
|
|
78
82
|
description: z.nullable(z.string()).optional(),
|
|
79
83
|
total_amount: z.nullable(z.number()),
|
|
80
84
|
billable: z.boolean().optional(),
|
|
85
|
+
line_number: z.nullable(z.number().int()).optional(),
|
|
81
86
|
}).transform((v) => {
|
|
82
87
|
return remap$(v, {
|
|
83
88
|
"tracking_categories": "trackingCategories",
|
|
@@ -88,6 +93,7 @@ export const ExpenseLineItemInput$inboundSchema: z.ZodType<
|
|
|
88
93
|
"subsidiary_id": "subsidiaryId",
|
|
89
94
|
"tax_rate": "taxRate",
|
|
90
95
|
"total_amount": "totalAmount",
|
|
96
|
+
"line_number": "lineNumber",
|
|
91
97
|
});
|
|
92
98
|
});
|
|
93
99
|
|
|
@@ -106,6 +112,7 @@ export type ExpenseLineItemInput$Outbound = {
|
|
|
106
112
|
description?: string | null | undefined;
|
|
107
113
|
total_amount: number | null;
|
|
108
114
|
billable?: boolean | undefined;
|
|
115
|
+
line_number?: number | null | undefined;
|
|
109
116
|
};
|
|
110
117
|
|
|
111
118
|
/** @internal */
|
|
@@ -126,6 +133,7 @@ export const ExpenseLineItemInput$outboundSchema: z.ZodType<
|
|
|
126
133
|
description: z.nullable(z.string()).optional(),
|
|
127
134
|
totalAmount: z.nullable(z.number()),
|
|
128
135
|
billable: z.boolean().optional(),
|
|
136
|
+
lineNumber: z.nullable(z.number().int()).optional(),
|
|
129
137
|
}).transform((v) => {
|
|
130
138
|
return remap$(v, {
|
|
131
139
|
trackingCategories: "tracking_categories",
|
|
@@ -136,6 +144,7 @@ export const ExpenseLineItemInput$outboundSchema: z.ZodType<
|
|
|
136
144
|
subsidiaryId: "subsidiary_id",
|
|
137
145
|
taxRate: "tax_rate",
|
|
138
146
|
totalAmount: "total_amount",
|
|
147
|
+
lineNumber: "line_number",
|
|
139
148
|
});
|
|
140
149
|
});
|
|
141
150
|
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
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
|
-
import {
|
|
11
|
-
CustomMappings,
|
|
12
|
-
CustomMappings$inboundSchema,
|
|
13
|
-
CustomMappings$Outbound,
|
|
14
|
-
CustomMappings$outboundSchema,
|
|
15
|
-
} from "./custommappings.js";
|
|
16
10
|
import {
|
|
17
11
|
LinkedFolder,
|
|
18
12
|
LinkedFolder$inboundSchema,
|
|
@@ -59,7 +53,7 @@ export type Folder = {
|
|
|
59
53
|
/**
|
|
60
54
|
* When custom mappings are configured on the resource, the result is included here.
|
|
61
55
|
*/
|
|
62
|
-
customMappings?:
|
|
56
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
63
57
|
/**
|
|
64
58
|
* The user who last updated the object.
|
|
65
59
|
*/
|
|
@@ -89,7 +83,7 @@ export const Folder$inboundSchema: z.ZodType<Folder, z.ZodTypeDef, unknown> = z
|
|
|
89
83
|
owner: Owner$inboundSchema.optional(),
|
|
90
84
|
parent_folders: z.array(LinkedFolder$inboundSchema),
|
|
91
85
|
parent_folders_complete: z.boolean().optional(),
|
|
92
|
-
custom_mappings: z.nullable(
|
|
86
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
93
87
|
updated_by: z.nullable(z.string()).optional(),
|
|
94
88
|
created_by: z.nullable(z.string()).optional(),
|
|
95
89
|
updated_at: z.nullable(
|
|
@@ -120,7 +114,7 @@ export type Folder$Outbound = {
|
|
|
120
114
|
owner?: Owner$Outbound | undefined;
|
|
121
115
|
parent_folders: Array<LinkedFolder$Outbound>;
|
|
122
116
|
parent_folders_complete?: boolean | undefined;
|
|
123
|
-
custom_mappings?:
|
|
117
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
124
118
|
updated_by?: string | null | undefined;
|
|
125
119
|
created_by?: string | null | undefined;
|
|
126
120
|
updated_at?: string | null | undefined;
|
|
@@ -141,7 +135,7 @@ export const Folder$outboundSchema: z.ZodType<
|
|
|
141
135
|
owner: Owner$outboundSchema.optional(),
|
|
142
136
|
parentFolders: z.array(LinkedFolder$outboundSchema),
|
|
143
137
|
parentFoldersComplete: z.boolean().optional(),
|
|
144
|
-
customMappings: z.nullable(
|
|
138
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
145
139
|
updatedBy: z.nullable(z.string()).optional(),
|
|
146
140
|
createdBy: z.nullable(z.string()).optional(),
|
|
147
141
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
Currency$inboundSchema,
|
|
20
20
|
Currency$outboundSchema,
|
|
21
21
|
} from "./currency.js";
|
|
22
|
-
import {
|
|
23
|
-
CustomMappings,
|
|
24
|
-
CustomMappings$inboundSchema,
|
|
25
|
-
CustomMappings$Outbound,
|
|
26
|
-
CustomMappings$outboundSchema,
|
|
27
|
-
} from "./custommappings.js";
|
|
28
22
|
import {
|
|
29
23
|
Email,
|
|
30
24
|
Email$inboundSchema,
|
|
@@ -83,7 +77,7 @@ export type HrisCompany = {
|
|
|
83
77
|
/**
|
|
84
78
|
* When custom mappings are configured on the resource, the result is included here.
|
|
85
79
|
*/
|
|
86
|
-
customMappings?:
|
|
80
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
87
81
|
deleted?: boolean | undefined;
|
|
88
82
|
/**
|
|
89
83
|
* The user who last updated the object.
|
|
@@ -170,7 +164,7 @@ export const HrisCompany$inboundSchema: z.ZodType<
|
|
|
170
164
|
emails: z.array(Email$inboundSchema).optional(),
|
|
171
165
|
websites: z.array(Website$inboundSchema).optional(),
|
|
172
166
|
debtor_id: z.nullable(z.string()).optional(),
|
|
173
|
-
custom_mappings: z.nullable(
|
|
167
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
174
168
|
deleted: z.boolean().optional(),
|
|
175
169
|
updated_by: z.nullable(z.string()).optional(),
|
|
176
170
|
created_by: z.nullable(z.string()).optional(),
|
|
@@ -211,7 +205,7 @@ export type HrisCompany$Outbound = {
|
|
|
211
205
|
emails?: Array<Email$Outbound> | undefined;
|
|
212
206
|
websites?: Array<Website$Outbound> | undefined;
|
|
213
207
|
debtor_id?: string | null | undefined;
|
|
214
|
-
custom_mappings?:
|
|
208
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
215
209
|
deleted?: boolean | undefined;
|
|
216
210
|
updated_by?: string | null | undefined;
|
|
217
211
|
created_by?: string | null | undefined;
|
|
@@ -238,7 +232,7 @@ export const HrisCompany$outboundSchema: z.ZodType<
|
|
|
238
232
|
emails: z.array(Email$outboundSchema).optional(),
|
|
239
233
|
websites: z.array(Website$outboundSchema).optional(),
|
|
240
234
|
debtorId: z.nullable(z.string()).optional(),
|
|
241
|
-
customMappings: z.nullable(
|
|
235
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
242
236
|
deleted: z.boolean().optional(),
|
|
243
237
|
updatedBy: z.nullable(z.string()).optional(),
|
|
244
238
|
createdBy: z.nullable(z.string()).optional(),
|
|
@@ -137,7 +137,6 @@ export * from "./customfield.js";
|
|
|
137
137
|
export * from "./customfieldfinder.js";
|
|
138
138
|
export * from "./custommapping.js";
|
|
139
139
|
export * from "./custommappinginput.js";
|
|
140
|
-
export * from "./custommappings.js";
|
|
141
140
|
export * from "./deduction.js";
|
|
142
141
|
export * from "./deleteaccountingdepartmentresponse.js";
|
|
143
142
|
export * from "./deleteaccountinglocationresponse.js";
|
|
@@ -32,12 +32,6 @@ import {
|
|
|
32
32
|
CustomField$Outbound,
|
|
33
33
|
CustomField$outboundSchema,
|
|
34
34
|
} from "./customfield.js";
|
|
35
|
-
import {
|
|
36
|
-
CustomMappings,
|
|
37
|
-
CustomMappings$inboundSchema,
|
|
38
|
-
CustomMappings$Outbound,
|
|
39
|
-
CustomMappings$outboundSchema,
|
|
40
|
-
} from "./custommappings.js";
|
|
41
35
|
import {
|
|
42
36
|
DeprecatedLinkedTrackingCategory,
|
|
43
37
|
DeprecatedLinkedTrackingCategory$inboundSchema,
|
|
@@ -285,7 +279,7 @@ export type Invoice = {
|
|
|
285
279
|
/**
|
|
286
280
|
* When custom mappings are configured on the resource, the result is included here.
|
|
287
281
|
*/
|
|
288
|
-
customMappings?:
|
|
282
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
289
283
|
customFields?: Array<CustomField> | undefined;
|
|
290
284
|
/**
|
|
291
285
|
* A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
|
|
@@ -617,7 +611,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
617
611
|
accounting_by_row: z.nullable(z.boolean()).optional(),
|
|
618
612
|
bank_account: BankAccount$inboundSchema.optional(),
|
|
619
613
|
ledger_account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(),
|
|
620
|
-
custom_mappings: z.nullable(
|
|
614
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
621
615
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
622
616
|
row_version: z.nullable(z.string()).optional(),
|
|
623
617
|
updated_by: z.nullable(z.string()).optional(),
|
|
@@ -715,7 +709,7 @@ export type Invoice$Outbound = {
|
|
|
715
709
|
accounting_by_row?: boolean | null | undefined;
|
|
716
710
|
bank_account?: BankAccount$Outbound | undefined;
|
|
717
711
|
ledger_account?: LinkedLedgerAccount$Outbound | null | undefined;
|
|
718
|
-
custom_mappings?:
|
|
712
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
719
713
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
720
714
|
row_version?: string | null | undefined;
|
|
721
715
|
updated_by?: string | null | undefined;
|
|
@@ -777,7 +771,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
777
771
|
accountingByRow: z.nullable(z.boolean()).optional(),
|
|
778
772
|
bankAccount: BankAccount$outboundSchema.optional(),
|
|
779
773
|
ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(),
|
|
780
|
-
customMappings: z.nullable(
|
|
774
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
781
775
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
782
776
|
rowVersion: z.nullable(z.string()).optional(),
|
|
783
777
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -9,12 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { RFCDate } from "../../types/rfcdate.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
-
import {
|
|
13
|
-
CustomMappings,
|
|
14
|
-
CustomMappings$inboundSchema,
|
|
15
|
-
CustomMappings$Outbound,
|
|
16
|
-
CustomMappings$outboundSchema,
|
|
17
|
-
} from "./custommappings.js";
|
|
18
12
|
import {
|
|
19
13
|
DeprecatedLinkedTrackingCategory,
|
|
20
14
|
DeprecatedLinkedTrackingCategory$inboundSchema,
|
|
@@ -175,7 +169,7 @@ export type InvoiceItem = {
|
|
|
175
169
|
/**
|
|
176
170
|
* When custom mappings are configured on the resource, the result is included here.
|
|
177
171
|
*/
|
|
178
|
-
customMappings?:
|
|
172
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
179
173
|
/**
|
|
180
174
|
* A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
|
|
181
175
|
*/
|
|
@@ -510,7 +504,7 @@ export const InvoiceItem$inboundSchema: z.ZodType<
|
|
|
510
504
|
location_id: z.nullable(z.string()).optional(),
|
|
511
505
|
subsidiary_id: z.nullable(z.string()).optional(),
|
|
512
506
|
tax_schedule_id: z.nullable(z.string()).optional(),
|
|
513
|
-
custom_mappings: z.nullable(
|
|
507
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
514
508
|
row_version: z.nullable(z.string()).optional(),
|
|
515
509
|
updated_by: z.nullable(z.string()).optional(),
|
|
516
510
|
created_by: z.nullable(z.string()).optional(),
|
|
@@ -578,7 +572,7 @@ export type InvoiceItem$Outbound = {
|
|
|
578
572
|
location_id?: string | null | undefined;
|
|
579
573
|
subsidiary_id?: string | null | undefined;
|
|
580
574
|
tax_schedule_id?: string | null | undefined;
|
|
581
|
-
custom_mappings?:
|
|
575
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
582
576
|
row_version?: string | null | undefined;
|
|
583
577
|
updated_by?: string | null | undefined;
|
|
584
578
|
created_by?: string | null | undefined;
|
|
@@ -621,7 +615,7 @@ export const InvoiceItem$outboundSchema: z.ZodType<
|
|
|
621
615
|
locationId: z.nullable(z.string()).optional(),
|
|
622
616
|
subsidiaryId: z.nullable(z.string()).optional(),
|
|
623
617
|
taxScheduleId: z.nullable(z.string()).optional(),
|
|
624
|
-
customMappings: z.nullable(
|
|
618
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
625
619
|
rowVersion: z.nullable(z.string()).optional(),
|
|
626
620
|
updatedBy: z.nullable(z.string()).optional(),
|
|
627
621
|
createdBy: z.nullable(z.string()).optional(),
|
|
@@ -26,12 +26,6 @@ import {
|
|
|
26
26
|
CustomField$Outbound,
|
|
27
27
|
CustomField$outboundSchema,
|
|
28
28
|
} from "./customfield.js";
|
|
29
|
-
import {
|
|
30
|
-
CustomMappings,
|
|
31
|
-
CustomMappings$inboundSchema,
|
|
32
|
-
CustomMappings$Outbound,
|
|
33
|
-
CustomMappings$outboundSchema,
|
|
34
|
-
} from "./custommappings.js";
|
|
35
29
|
import {
|
|
36
30
|
Department,
|
|
37
31
|
Department$inboundSchema,
|
|
@@ -225,7 +219,7 @@ export type Job = {
|
|
|
225
219
|
/**
|
|
226
220
|
* When custom mappings are configured on the resource, the result is included here.
|
|
227
221
|
*/
|
|
228
|
-
customMappings?:
|
|
222
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
229
223
|
/**
|
|
230
224
|
* The user who last updated the object.
|
|
231
225
|
*/
|
|
@@ -555,7 +549,7 @@ export const Job$inboundSchema: z.ZodType<Job, z.ZodTypeDef, unknown> = z
|
|
|
555
549
|
published_at: z.nullable(
|
|
556
550
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
557
551
|
).optional(),
|
|
558
|
-
custom_mappings: z.nullable(
|
|
552
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
559
553
|
updated_by: z.nullable(z.string()).optional(),
|
|
560
554
|
created_by: z.nullable(z.string()).optional(),
|
|
561
555
|
updated_at: z.nullable(
|
|
@@ -625,7 +619,7 @@ export type Job$Outbound = {
|
|
|
625
619
|
deleted?: boolean | null | undefined;
|
|
626
620
|
owner_id?: string | null | undefined;
|
|
627
621
|
published_at?: string | null | undefined;
|
|
628
|
-
custom_mappings?:
|
|
622
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
629
623
|
updated_by?: string | null | undefined;
|
|
630
624
|
created_by?: string | null | undefined;
|
|
631
625
|
updated_at?: string | null | undefined;
|
|
@@ -674,7 +668,7 @@ export const Job$outboundSchema: z.ZodType<Job$Outbound, z.ZodTypeDef, Job> = z
|
|
|
674
668
|
ownerId: z.nullable(z.string()).optional(),
|
|
675
669
|
publishedAt: z.nullable(z.date().transform(v => v.toISOString()))
|
|
676
670
|
.optional(),
|
|
677
|
-
customMappings: z.nullable(
|
|
671
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
678
672
|
updatedBy: z.nullable(z.string()).optional(),
|
|
679
673
|
createdBy: z.nullable(z.string()).optional(),
|
|
680
674
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -18,12 +18,6 @@ import {
|
|
|
18
18
|
CustomField$Outbound,
|
|
19
19
|
CustomField$outboundSchema,
|
|
20
20
|
} from "./customfield.js";
|
|
21
|
-
import {
|
|
22
|
-
CustomMappings,
|
|
23
|
-
CustomMappings$inboundSchema,
|
|
24
|
-
CustomMappings$Outbound,
|
|
25
|
-
CustomMappings$outboundSchema,
|
|
26
|
-
} from "./custommappings.js";
|
|
27
21
|
import {
|
|
28
22
|
JournalEntryLineItem,
|
|
29
23
|
JournalEntryLineItem$inboundSchema,
|
|
@@ -103,7 +97,7 @@ export type JournalEntry = {
|
|
|
103
97
|
/**
|
|
104
98
|
* When custom mappings are configured on the resource, the result is included here.
|
|
105
99
|
*/
|
|
106
|
-
customMappings?:
|
|
100
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
107
101
|
/**
|
|
108
102
|
* The user who last updated the object.
|
|
109
103
|
*/
|
|
@@ -154,7 +148,7 @@ export const JournalEntry$inboundSchema: z.ZodType<
|
|
|
154
148
|
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
155
149
|
).optional(),
|
|
156
150
|
accounting_period: z.nullable(z.string()).optional(),
|
|
157
|
-
custom_mappings: z.nullable(
|
|
151
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
158
152
|
updated_by: z.nullable(z.string()).optional(),
|
|
159
153
|
created_by: z.nullable(z.string()).optional(),
|
|
160
154
|
updated_at: z.nullable(
|
|
@@ -207,7 +201,7 @@ export type JournalEntry$Outbound = {
|
|
|
207
201
|
| null
|
|
208
202
|
| undefined;
|
|
209
203
|
accounting_period?: string | null | undefined;
|
|
210
|
-
custom_mappings?:
|
|
204
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
211
205
|
updated_by?: string | null | undefined;
|
|
212
206
|
created_by?: string | null | undefined;
|
|
213
207
|
updated_at?: string | null | undefined;
|
|
@@ -239,7 +233,7 @@ export const JournalEntry$outboundSchema: z.ZodType<
|
|
|
239
233
|
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
240
234
|
).optional(),
|
|
241
235
|
accountingPeriod: z.nullable(z.string()).optional(),
|
|
242
|
-
customMappings: z.nullable(
|
|
236
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
243
237
|
updatedBy: z.nullable(z.string()).optional(),
|
|
244
238
|
createdBy: z.nullable(z.string()).optional(),
|
|
245
239
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -24,12 +24,6 @@ import {
|
|
|
24
24
|
CustomField$Outbound,
|
|
25
25
|
CustomField$outboundSchema,
|
|
26
26
|
} from "./customfield.js";
|
|
27
|
-
import {
|
|
28
|
-
CustomMappings,
|
|
29
|
-
CustomMappings$inboundSchema,
|
|
30
|
-
CustomMappings$Outbound,
|
|
31
|
-
CustomMappings$outboundSchema,
|
|
32
|
-
} from "./custommappings.js";
|
|
33
27
|
import {
|
|
34
28
|
Email,
|
|
35
29
|
Email$inboundSchema,
|
|
@@ -73,7 +67,7 @@ export type Lead = {
|
|
|
73
67
|
/**
|
|
74
68
|
* The name of the company the lead is associated with.
|
|
75
69
|
*/
|
|
76
|
-
companyName
|
|
70
|
+
companyName?: string | null | undefined;
|
|
77
71
|
/**
|
|
78
72
|
* The owner of the lead.
|
|
79
73
|
*/
|
|
@@ -136,12 +130,12 @@ export type Lead = {
|
|
|
136
130
|
socialLinks?: Array<SocialLink> | undefined;
|
|
137
131
|
phoneNumbers?: Array<PhoneNumber> | undefined;
|
|
138
132
|
emails?: Array<Email> | undefined;
|
|
139
|
-
customFields?: Array<CustomField> | undefined;
|
|
133
|
+
customFields?: Array<CustomField> | null | undefined;
|
|
140
134
|
tags?: Array<string> | null | undefined;
|
|
141
135
|
/**
|
|
142
136
|
* When custom mappings are configured on the resource, the result is included here.
|
|
143
137
|
*/
|
|
144
|
-
customMappings?:
|
|
138
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
145
139
|
/**
|
|
146
140
|
* Date updated in ISO 8601 format
|
|
147
141
|
*/
|
|
@@ -161,7 +155,7 @@ export const Lead$inboundSchema: z.ZodType<Lead, z.ZodTypeDef, unknown> = z
|
|
|
161
155
|
.object({
|
|
162
156
|
id: z.string().optional(),
|
|
163
157
|
name: z.string(),
|
|
164
|
-
company_name: z.nullable(z.string()),
|
|
158
|
+
company_name: z.nullable(z.string()).optional(),
|
|
165
159
|
owner_id: z.nullable(z.string()).optional(),
|
|
166
160
|
owner_name: z.nullable(z.string()).optional(),
|
|
167
161
|
company_id: z.nullable(z.string()).optional(),
|
|
@@ -182,9 +176,9 @@ export const Lead$inboundSchema: z.ZodType<Lead, z.ZodTypeDef, unknown> = z
|
|
|
182
176
|
social_links: z.array(SocialLink$inboundSchema).optional(),
|
|
183
177
|
phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
|
|
184
178
|
emails: z.array(Email$inboundSchema).optional(),
|
|
185
|
-
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
179
|
+
custom_fields: z.nullable(z.array(CustomField$inboundSchema)).optional(),
|
|
186
180
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
187
|
-
custom_mappings: z.nullable(
|
|
181
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
188
182
|
updated_at: z.nullable(z.string()).optional(),
|
|
189
183
|
created_at: z.nullable(z.string()).optional(),
|
|
190
184
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
@@ -213,7 +207,7 @@ export const Lead$inboundSchema: z.ZodType<Lead, z.ZodTypeDef, unknown> = z
|
|
|
213
207
|
export type Lead$Outbound = {
|
|
214
208
|
id?: string | undefined;
|
|
215
209
|
name: string;
|
|
216
|
-
company_name
|
|
210
|
+
company_name?: string | null | undefined;
|
|
217
211
|
owner_id?: string | null | undefined;
|
|
218
212
|
owner_name?: string | null | undefined;
|
|
219
213
|
company_id?: string | null | undefined;
|
|
@@ -234,9 +228,9 @@ export type Lead$Outbound = {
|
|
|
234
228
|
social_links?: Array<SocialLink$Outbound> | undefined;
|
|
235
229
|
phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
|
|
236
230
|
emails?: Array<Email$Outbound> | undefined;
|
|
237
|
-
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
231
|
+
custom_fields?: Array<CustomField$Outbound> | null | undefined;
|
|
238
232
|
tags?: Array<string> | null | undefined;
|
|
239
|
-
custom_mappings?:
|
|
233
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
240
234
|
updated_at?: string | null | undefined;
|
|
241
235
|
created_at?: string | null | undefined;
|
|
242
236
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
@@ -247,7 +241,7 @@ export const Lead$outboundSchema: z.ZodType<Lead$Outbound, z.ZodTypeDef, Lead> =
|
|
|
247
241
|
z.object({
|
|
248
242
|
id: z.string().optional(),
|
|
249
243
|
name: z.string(),
|
|
250
|
-
companyName: z.nullable(z.string()),
|
|
244
|
+
companyName: z.nullable(z.string()).optional(),
|
|
251
245
|
ownerId: z.nullable(z.string()).optional(),
|
|
252
246
|
ownerName: z.nullable(z.string()).optional(),
|
|
253
247
|
companyId: z.nullable(z.string()).optional(),
|
|
@@ -268,9 +262,9 @@ export const Lead$outboundSchema: z.ZodType<Lead$Outbound, z.ZodTypeDef, Lead> =
|
|
|
268
262
|
socialLinks: z.array(SocialLink$outboundSchema).optional(),
|
|
269
263
|
phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
|
|
270
264
|
emails: z.array(Email$outboundSchema).optional(),
|
|
271
|
-
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
265
|
+
customFields: z.nullable(z.array(CustomField$outboundSchema)).optional(),
|
|
272
266
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
273
|
-
customMappings: z.nullable(
|
|
267
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
274
268
|
updatedAt: z.nullable(z.string()).optional(),
|
|
275
269
|
createdAt: z.nullable(z.string()).optional(),
|
|
276
270
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
@@ -63,7 +63,7 @@ export type LeadInput = {
|
|
|
63
63
|
/**
|
|
64
64
|
* The name of the company the lead is associated with.
|
|
65
65
|
*/
|
|
66
|
-
companyName
|
|
66
|
+
companyName?: string | null | undefined;
|
|
67
67
|
/**
|
|
68
68
|
* The owner of the lead.
|
|
69
69
|
*/
|
|
@@ -126,7 +126,7 @@ export type LeadInput = {
|
|
|
126
126
|
socialLinks?: Array<SocialLink> | undefined;
|
|
127
127
|
phoneNumbers?: Array<PhoneNumber> | undefined;
|
|
128
128
|
emails?: Array<Email> | undefined;
|
|
129
|
-
customFields?: Array<CustomField> | undefined;
|
|
129
|
+
customFields?: Array<CustomField> | null | undefined;
|
|
130
130
|
tags?: Array<string> | null | undefined;
|
|
131
131
|
/**
|
|
132
132
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
@@ -141,7 +141,7 @@ export const LeadInput$inboundSchema: z.ZodType<
|
|
|
141
141
|
unknown
|
|
142
142
|
> = z.object({
|
|
143
143
|
name: z.string(),
|
|
144
|
-
company_name: z.nullable(z.string()),
|
|
144
|
+
company_name: z.nullable(z.string()).optional(),
|
|
145
145
|
owner_id: z.nullable(z.string()).optional(),
|
|
146
146
|
owner_name: z.nullable(z.string()).optional(),
|
|
147
147
|
company_id: z.nullable(z.string()).optional(),
|
|
@@ -162,7 +162,7 @@ export const LeadInput$inboundSchema: z.ZodType<
|
|
|
162
162
|
social_links: z.array(SocialLink$inboundSchema).optional(),
|
|
163
163
|
phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
|
|
164
164
|
emails: z.array(Email$inboundSchema).optional(),
|
|
165
|
-
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
165
|
+
custom_fields: z.nullable(z.array(CustomField$inboundSchema)).optional(),
|
|
166
166
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
167
167
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
168
168
|
}).transform((v) => {
|
|
@@ -186,7 +186,7 @@ export const LeadInput$inboundSchema: z.ZodType<
|
|
|
186
186
|
/** @internal */
|
|
187
187
|
export type LeadInput$Outbound = {
|
|
188
188
|
name: string;
|
|
189
|
-
company_name
|
|
189
|
+
company_name?: string | null | undefined;
|
|
190
190
|
owner_id?: string | null | undefined;
|
|
191
191
|
owner_name?: string | null | undefined;
|
|
192
192
|
company_id?: string | null | undefined;
|
|
@@ -207,7 +207,7 @@ export type LeadInput$Outbound = {
|
|
|
207
207
|
social_links?: Array<SocialLink$Outbound> | undefined;
|
|
208
208
|
phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
|
|
209
209
|
emails?: Array<Email$Outbound> | undefined;
|
|
210
|
-
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
210
|
+
custom_fields?: Array<CustomField$Outbound> | null | undefined;
|
|
211
211
|
tags?: Array<string> | null | undefined;
|
|
212
212
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
213
213
|
};
|
|
@@ -219,7 +219,7 @@ export const LeadInput$outboundSchema: z.ZodType<
|
|
|
219
219
|
LeadInput
|
|
220
220
|
> = z.object({
|
|
221
221
|
name: z.string(),
|
|
222
|
-
companyName: z.nullable(z.string()),
|
|
222
|
+
companyName: z.nullable(z.string()).optional(),
|
|
223
223
|
ownerId: z.nullable(z.string()).optional(),
|
|
224
224
|
ownerName: z.nullable(z.string()).optional(),
|
|
225
225
|
companyId: z.nullable(z.string()).optional(),
|
|
@@ -240,7 +240,7 @@ export const LeadInput$outboundSchema: z.ZodType<
|
|
|
240
240
|
socialLinks: z.array(SocialLink$outboundSchema).optional(),
|
|
241
241
|
phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
|
|
242
242
|
emails: z.array(Email$outboundSchema).optional(),
|
|
243
|
-
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
243
|
+
customFields: z.nullable(z.array(CustomField$outboundSchema)).optional(),
|
|
244
244
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
245
245
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
246
246
|
}).transform((v) => {
|