@apideck/unify 0.23.2 → 0.23.4
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 +9 -3
- package/models/components/ecommerceorder.d.ts.map +1 -1
- package/models/components/ecommerceorder.js +5 -3
- package/models/components/ecommerceorder.js.map +1 -1
- package/models/components/ecommerceorderrefund.d.ts +56 -0
- package/models/components/ecommerceorderrefund.d.ts.map +1 -0
- package/models/components/ecommerceorderrefund.js +77 -0
- package/models/components/ecommerceorderrefund.js.map +1 -0
- 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 +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -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 +14 -10
- package/src/models/components/ecommerceorderrefund.ts +116 -0
- 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 +1 -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
|
@@ -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";
|
|
@@ -200,6 +199,7 @@ export * from "./ecommercecustomersfilter.js";
|
|
|
200
199
|
export * from "./ecommercediscount.js";
|
|
201
200
|
export * from "./ecommerceorder.js";
|
|
202
201
|
export * from "./ecommerceorderlineitem.js";
|
|
202
|
+
export * from "./ecommerceorderrefund.js";
|
|
203
203
|
export * from "./ecommerceordersfilter.js";
|
|
204
204
|
export * from "./ecommerceorderstatus.js";
|
|
205
205
|
export * from "./ecommerceproduct.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) => {
|
|
@@ -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
|
LinkedTaxRate,
|
|
37
31
|
LinkedTaxRate$inboundSchema,
|
|
@@ -253,7 +247,7 @@ export type LedgerAccount = {
|
|
|
253
247
|
/**
|
|
254
248
|
* When custom mappings are configured on the resource, the result is included here.
|
|
255
249
|
*/
|
|
256
|
-
customMappings?:
|
|
250
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
257
251
|
customFields?: Array<CustomField> | undefined;
|
|
258
252
|
/**
|
|
259
253
|
* 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.
|
|
@@ -705,7 +699,7 @@ export const LedgerAccount$inboundSchema: z.ZodType<
|
|
|
705
699
|
).optional(),
|
|
706
700
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$inboundSchema))
|
|
707
701
|
.optional(),
|
|
708
|
-
custom_mappings: z.nullable(
|
|
702
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
709
703
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
710
704
|
row_version: z.nullable(z.string()).optional(),
|
|
711
705
|
updated_by: z.nullable(z.string()).optional(),
|
|
@@ -771,7 +765,7 @@ export type LedgerAccount$Outbound = {
|
|
|
771
765
|
sub_accounts?: Array<SubAccounts$Outbound> | undefined;
|
|
772
766
|
last_reconciliation_date?: string | null | undefined;
|
|
773
767
|
subsidiaries?: Array<LedgerAccountSubsidiaries$Outbound> | undefined;
|
|
774
|
-
custom_mappings?:
|
|
768
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
775
769
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
776
770
|
row_version?: string | null | undefined;
|
|
777
771
|
updated_by?: string | null | undefined;
|
|
@@ -816,7 +810,7 @@ export const LedgerAccount$outboundSchema: z.ZodType<
|
|
|
816
810
|
).optional(),
|
|
817
811
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$outboundSchema))
|
|
818
812
|
.optional(),
|
|
819
|
-
customMappings: z.nullable(
|
|
813
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
820
814
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
821
815
|
rowVersion: z.nullable(z.string()).optional(),
|
|
822
816
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -13,12 +13,6 @@ import {
|
|
|
13
13
|
Currency$inboundSchema,
|
|
14
14
|
Currency$outboundSchema,
|
|
15
15
|
} from "./currency.js";
|
|
16
|
-
import {
|
|
17
|
-
CustomMappings,
|
|
18
|
-
CustomMappings$inboundSchema,
|
|
19
|
-
CustomMappings$Outbound,
|
|
20
|
-
CustomMappings$outboundSchema,
|
|
21
|
-
} from "./custommappings.js";
|
|
22
16
|
import {
|
|
23
17
|
PassThroughBody,
|
|
24
18
|
PassThroughBody$inboundSchema,
|
|
@@ -167,7 +161,7 @@ export type Message = {
|
|
|
167
161
|
/**
|
|
168
162
|
* When custom mappings are configured on the resource, the result is included here.
|
|
169
163
|
*/
|
|
170
|
-
customMappings?:
|
|
164
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
171
165
|
/**
|
|
172
166
|
* The user who last updated the object.
|
|
173
167
|
*/
|
|
@@ -425,7 +419,7 @@ export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
|
|
|
425
419
|
price: z.lazy(() => Price$inboundSchema).optional(),
|
|
426
420
|
error: z.lazy(() => ErrorT$inboundSchema).optional(),
|
|
427
421
|
messaging_service_id: z.string().optional(),
|
|
428
|
-
custom_mappings: z.nullable(
|
|
422
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
429
423
|
updated_by: z.nullable(z.string()).optional(),
|
|
430
424
|
created_by: z.nullable(z.string()).optional(),
|
|
431
425
|
updated_at: z.nullable(
|
|
@@ -471,7 +465,7 @@ export type Message$Outbound = {
|
|
|
471
465
|
price?: Price$Outbound | undefined;
|
|
472
466
|
error?: ErrorT$Outbound | undefined;
|
|
473
467
|
messaging_service_id?: string | undefined;
|
|
474
|
-
custom_mappings?:
|
|
468
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
475
469
|
updated_by?: string | null | undefined;
|
|
476
470
|
created_by?: string | null | undefined;
|
|
477
471
|
updated_at?: string | null | undefined;
|
|
@@ -502,7 +496,7 @@ export const Message$outboundSchema: z.ZodType<
|
|
|
502
496
|
price: z.lazy(() => Price$outboundSchema).optional(),
|
|
503
497
|
error: z.lazy(() => ErrorT$outboundSchema).optional(),
|
|
504
498
|
messagingServiceId: z.string().optional(),
|
|
505
|
-
customMappings: z.nullable(
|
|
499
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
506
500
|
updatedBy: z.nullable(z.string()).optional(),
|
|
507
501
|
createdBy: z.nullable(z.string()).optional(),
|
|
508
502
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -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
|
PassThroughBody,
|
|
18
12
|
PassThroughBody$inboundSchema,
|
|
@@ -64,7 +58,7 @@ export type Note = {
|
|
|
64
58
|
/**
|
|
65
59
|
* When custom mappings are configured on the resource, the result is included here.
|
|
66
60
|
*/
|
|
67
|
-
customMappings?:
|
|
61
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
68
62
|
/**
|
|
69
63
|
* The user that last updated the note.
|
|
70
64
|
*/
|
|
@@ -100,7 +94,7 @@ export const Note$inboundSchema: z.ZodType<Note, z.ZodTypeDef, unknown> = z
|
|
|
100
94
|
activity_id: z.nullable(z.string()).optional(),
|
|
101
95
|
lead_id: z.nullable(z.string()).optional(),
|
|
102
96
|
active: z.nullable(z.boolean()).optional(),
|
|
103
|
-
custom_mappings: z.nullable(
|
|
97
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
104
98
|
updated_by: z.nullable(z.string()).optional(),
|
|
105
99
|
created_by: z.nullable(z.string()).optional(),
|
|
106
100
|
updated_at: z.nullable(z.string()).optional(),
|
|
@@ -135,7 +129,7 @@ export type Note$Outbound = {
|
|
|
135
129
|
activity_id?: string | null | undefined;
|
|
136
130
|
lead_id?: string | null | undefined;
|
|
137
131
|
active?: boolean | null | undefined;
|
|
138
|
-
custom_mappings?:
|
|
132
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
139
133
|
updated_by?: string | null | undefined;
|
|
140
134
|
created_by?: string | null | undefined;
|
|
141
135
|
updated_at?: string | null | undefined;
|
|
@@ -156,7 +150,7 @@ export const Note$outboundSchema: z.ZodType<Note$Outbound, z.ZodTypeDef, Note> =
|
|
|
156
150
|
activityId: z.nullable(z.string()).optional(),
|
|
157
151
|
leadId: z.nullable(z.string()).optional(),
|
|
158
152
|
active: z.nullable(z.boolean()).optional(),
|
|
159
|
-
customMappings: z.nullable(
|
|
153
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
160
154
|
updatedBy: z.nullable(z.string()).optional(),
|
|
161
155
|
createdBy: z.nullable(z.string()).optional(),
|
|
162
156
|
updatedAt: z.nullable(z.string()).optional(),
|
|
@@ -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
|
PassThroughBody,
|
|
30
24
|
PassThroughBody$inboundSchema,
|
|
@@ -174,7 +168,7 @@ export type Opportunity = {
|
|
|
174
168
|
/**
|
|
175
169
|
* When custom mappings are configured on the resource, the result is included here.
|
|
176
170
|
*/
|
|
177
|
-
customMappings?:
|
|
171
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
178
172
|
/**
|
|
179
173
|
* The unique identifier of the user who last updated the opportunity.
|
|
180
174
|
*/
|
|
@@ -247,7 +241,7 @@ export const Opportunity$inboundSchema: z.ZodType<
|
|
|
247
241
|
date_lead_created: z.nullable(
|
|
248
242
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
249
243
|
).optional(),
|
|
250
|
-
custom_mappings: z.nullable(
|
|
244
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
251
245
|
updated_by: z.nullable(z.string()).optional(),
|
|
252
246
|
created_by: z.nullable(z.string()).optional(),
|
|
253
247
|
updated_at: z.nullable(
|
|
@@ -333,7 +327,7 @@ export type Opportunity$Outbound = {
|
|
|
333
327
|
date_stage_changed?: string | null | undefined;
|
|
334
328
|
date_last_contacted?: string | null | undefined;
|
|
335
329
|
date_lead_created?: string | null | undefined;
|
|
336
|
-
custom_mappings?:
|
|
330
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
337
331
|
updated_by?: string | null | undefined;
|
|
338
332
|
created_by?: string | null | undefined;
|
|
339
333
|
updated_at?: string | null | undefined;
|
|
@@ -388,7 +382,7 @@ export const Opportunity$outboundSchema: z.ZodType<
|
|
|
388
382
|
.optional(),
|
|
389
383
|
dateLeadCreated: z.nullable(z.date().transform(v => v.toISOString()))
|
|
390
384
|
.optional(),
|
|
391
|
-
customMappings: z.nullable(
|
|
385
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
392
386
|
updatedBy: z.nullable(z.string()).optional(),
|
|
393
387
|
createdBy: z.nullable(z.string()).optional(),
|
|
394
388
|
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
|
DeprecatedLinkedSupplier,
|
|
35
29
|
DeprecatedLinkedSupplier$inboundSchema,
|
|
@@ -176,7 +170,7 @@ export type Payment = {
|
|
|
176
170
|
/**
|
|
177
171
|
* When custom mappings are configured on the resource, the result is included here.
|
|
178
172
|
*/
|
|
179
|
-
customMappings?:
|
|
173
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
180
174
|
/**
|
|
181
175
|
* The user who last updated the object.
|
|
182
176
|
*/
|
|
@@ -232,7 +226,7 @@ export const Payment$inboundSchema: z.ZodType<Payment, z.ZodTypeDef, unknown> =
|
|
|
232
226
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
233
227
|
row_version: z.nullable(z.string()).optional(),
|
|
234
228
|
display_id: z.nullable(z.string()).optional(),
|
|
235
|
-
custom_mappings: z.nullable(
|
|
229
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
236
230
|
updated_by: z.nullable(z.string()).optional(),
|
|
237
231
|
created_by: z.nullable(z.string()).optional(),
|
|
238
232
|
created_at: z.nullable(
|
|
@@ -298,7 +292,7 @@ export type Payment$Outbound = {
|
|
|
298
292
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
299
293
|
row_version?: string | null | undefined;
|
|
300
294
|
display_id?: string | null | undefined;
|
|
301
|
-
custom_mappings?:
|
|
295
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
302
296
|
updated_by?: string | null | undefined;
|
|
303
297
|
created_by?: string | null | undefined;
|
|
304
298
|
created_at?: string | null | undefined;
|
|
@@ -340,7 +334,7 @@ export const Payment$outboundSchema: z.ZodType<
|
|
|
340
334
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
341
335
|
rowVersion: z.nullable(z.string()).optional(),
|
|
342
336
|
displayId: z.nullable(z.string()).optional(),
|
|
343
|
-
customMappings: z.nullable(
|
|
337
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
344
338
|
updatedBy: z.nullable(z.string()).optional(),
|
|
345
339
|
createdBy: z.nullable(z.string()).optional(),
|
|
346
340
|
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -10,6 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type PaymentsFilter = {
|
|
12
12
|
updatedSince?: Date | undefined;
|
|
13
|
+
invoiceId?: string | undefined;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
/** @internal */
|
|
@@ -21,15 +22,18 @@ export const PaymentsFilter$inboundSchema: z.ZodType<
|
|
|
21
22
|
updated_since: z.string().datetime({ offset: true }).transform(v =>
|
|
22
23
|
new Date(v)
|
|
23
24
|
).optional(),
|
|
25
|
+
invoice_id: z.string().optional(),
|
|
24
26
|
}).transform((v) => {
|
|
25
27
|
return remap$(v, {
|
|
26
28
|
"updated_since": "updatedSince",
|
|
29
|
+
"invoice_id": "invoiceId",
|
|
27
30
|
});
|
|
28
31
|
});
|
|
29
32
|
|
|
30
33
|
/** @internal */
|
|
31
34
|
export type PaymentsFilter$Outbound = {
|
|
32
35
|
updated_since?: string | undefined;
|
|
36
|
+
invoice_id?: string | undefined;
|
|
33
37
|
};
|
|
34
38
|
|
|
35
39
|
/** @internal */
|
|
@@ -39,9 +43,11 @@ export const PaymentsFilter$outboundSchema: z.ZodType<
|
|
|
39
43
|
PaymentsFilter
|
|
40
44
|
> = z.object({
|
|
41
45
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
46
|
+
invoiceId: z.string().optional(),
|
|
42
47
|
}).transform((v) => {
|
|
43
48
|
return remap$(v, {
|
|
44
49
|
updatedSince: "updated_since",
|
|
50
|
+
invoiceId: "invoice_id",
|
|
45
51
|
});
|
|
46
52
|
});
|
|
47
53
|
|