@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
|
@@ -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
|
|
|
@@ -13,12 +13,6 @@ import {
|
|
|
13
13
|
Compensation$Outbound,
|
|
14
14
|
Compensation$outboundSchema,
|
|
15
15
|
} from "./compensation.js";
|
|
16
|
-
import {
|
|
17
|
-
CustomMappings,
|
|
18
|
-
CustomMappings$inboundSchema,
|
|
19
|
-
CustomMappings$Outbound,
|
|
20
|
-
CustomMappings$outboundSchema,
|
|
21
|
-
} from "./custommappings.js";
|
|
22
16
|
import {
|
|
23
17
|
PayrollTotals,
|
|
24
18
|
PayrollTotals$inboundSchema,
|
|
@@ -66,7 +60,7 @@ export type Payroll = {
|
|
|
66
60
|
/**
|
|
67
61
|
* When custom mappings are configured on the resource, the result is included here.
|
|
68
62
|
*/
|
|
69
|
-
customMappings?:
|
|
63
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
70
64
|
};
|
|
71
65
|
|
|
72
66
|
/** @internal */
|
|
@@ -81,7 +75,7 @@ export const Payroll$inboundSchema: z.ZodType<Payroll, z.ZodTypeDef, unknown> =
|
|
|
81
75
|
end_date: z.nullable(z.string()),
|
|
82
76
|
totals: PayrollTotals$inboundSchema.optional(),
|
|
83
77
|
compensations: z.array(Compensation$inboundSchema).optional(),
|
|
84
|
-
custom_mappings: z.nullable(
|
|
78
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
85
79
|
}).transform((v) => {
|
|
86
80
|
return remap$(v, {
|
|
87
81
|
"company_id": "companyId",
|
|
@@ -104,7 +98,7 @@ export type Payroll$Outbound = {
|
|
|
104
98
|
end_date: string | null;
|
|
105
99
|
totals?: PayrollTotals$Outbound | undefined;
|
|
106
100
|
compensations?: Array<Compensation$Outbound> | undefined;
|
|
107
|
-
custom_mappings?:
|
|
101
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
108
102
|
};
|
|
109
103
|
|
|
110
104
|
/** @internal */
|
|
@@ -122,7 +116,7 @@ export const Payroll$outboundSchema: z.ZodType<
|
|
|
122
116
|
endDate: z.nullable(z.string()),
|
|
123
117
|
totals: PayrollTotals$outboundSchema.optional(),
|
|
124
118
|
compensations: z.array(Compensation$outboundSchema).optional(),
|
|
125
|
-
customMappings: z.nullable(
|
|
119
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
126
120
|
}).transform((v) => {
|
|
127
121
|
return remap$(v, {
|
|
128
122
|
companyId: "company_id",
|
|
@@ -8,12 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { RFCDate } from "../../types/rfcdate.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
CustomMappings,
|
|
13
|
-
CustomMappings$inboundSchema,
|
|
14
|
-
CustomMappings$Outbound,
|
|
15
|
-
CustomMappings$outboundSchema,
|
|
16
|
-
} from "./custommappings.js";
|
|
17
11
|
import {
|
|
18
12
|
Gender,
|
|
19
13
|
Gender$inboundSchema,
|
|
@@ -56,7 +50,7 @@ export type Person = {
|
|
|
56
50
|
/**
|
|
57
51
|
* When custom mappings are configured on the resource, the result is included here.
|
|
58
52
|
*/
|
|
59
|
-
customMappings?:
|
|
53
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
60
54
|
};
|
|
61
55
|
|
|
62
56
|
/** @internal */
|
|
@@ -71,7 +65,7 @@ export const Person$inboundSchema: z.ZodType<Person, z.ZodTypeDef, unknown> = z
|
|
|
71
65
|
birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
72
66
|
deceased_on: z.nullable(z.string().transform(v => new RFCDate(v)))
|
|
73
67
|
.optional(),
|
|
74
|
-
custom_mappings: z.nullable(
|
|
68
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
75
69
|
}).transform((v) => {
|
|
76
70
|
return remap$(v, {
|
|
77
71
|
"first_name": "firstName",
|
|
@@ -92,7 +86,7 @@ export type Person$Outbound = {
|
|
|
92
86
|
initials?: string | null | undefined;
|
|
93
87
|
birthday?: string | null | undefined;
|
|
94
88
|
deceased_on?: string | null | undefined;
|
|
95
|
-
custom_mappings?:
|
|
89
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
96
90
|
};
|
|
97
91
|
|
|
98
92
|
/** @internal */
|
|
@@ -111,7 +105,7 @@ export const Person$outboundSchema: z.ZodType<
|
|
|
111
105
|
.optional(),
|
|
112
106
|
deceasedOn: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
113
107
|
.optional(),
|
|
114
|
-
customMappings: z.nullable(
|
|
108
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
115
109
|
}).transform((v) => {
|
|
116
110
|
return remap$(v, {
|
|
117
111
|
firstName: "first_name",
|
|
@@ -12,12 +12,6 @@ import {
|
|
|
12
12
|
Currency$inboundSchema,
|
|
13
13
|
Currency$outboundSchema,
|
|
14
14
|
} from "./currency.js";
|
|
15
|
-
import {
|
|
16
|
-
CustomMappings,
|
|
17
|
-
CustomMappings$inboundSchema,
|
|
18
|
-
CustomMappings$Outbound,
|
|
19
|
-
CustomMappings$outboundSchema,
|
|
20
|
-
} from "./custommappings.js";
|
|
21
15
|
import {
|
|
22
16
|
ProfitAndLossIndicator,
|
|
23
17
|
ProfitAndLossIndicator$inboundSchema,
|
|
@@ -134,7 +128,7 @@ export type OtherIncome = {
|
|
|
134
128
|
/**
|
|
135
129
|
* The aggregated total of all accounts within this category.
|
|
136
130
|
*/
|
|
137
|
-
total
|
|
131
|
+
total?: number | null | undefined;
|
|
138
132
|
records?: any | undefined;
|
|
139
133
|
};
|
|
140
134
|
|
|
@@ -161,7 +155,7 @@ export type OtherExpenses = {
|
|
|
161
155
|
/**
|
|
162
156
|
* The aggregated total of all accounts within this category.
|
|
163
157
|
*/
|
|
164
|
-
total
|
|
158
|
+
total?: number | null | undefined;
|
|
165
159
|
records?: any | undefined;
|
|
166
160
|
};
|
|
167
161
|
|
|
@@ -243,7 +237,7 @@ export type ProfitAndLoss = {
|
|
|
243
237
|
/**
|
|
244
238
|
* When custom mappings are configured on the resource, the result is included here.
|
|
245
239
|
*/
|
|
246
|
-
customMappings?:
|
|
240
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
247
241
|
/**
|
|
248
242
|
* The customer id
|
|
249
243
|
*/
|
|
@@ -454,7 +448,7 @@ export const OtherIncome$inboundSchema: z.ZodType<
|
|
|
454
448
|
code: z.string().optional(),
|
|
455
449
|
title: z.string().optional(),
|
|
456
450
|
type: z.nullable(ProfitAndLossType$inboundSchema).optional(),
|
|
457
|
-
total: z.nullable(z.number()),
|
|
451
|
+
total: z.nullable(z.number()).optional(),
|
|
458
452
|
records: z.any().optional(),
|
|
459
453
|
});
|
|
460
454
|
|
|
@@ -464,7 +458,7 @@ export type OtherIncome$Outbound = {
|
|
|
464
458
|
code?: string | undefined;
|
|
465
459
|
title?: string | undefined;
|
|
466
460
|
type?: string | null | undefined;
|
|
467
|
-
total
|
|
461
|
+
total?: number | null | undefined;
|
|
468
462
|
records?: any | undefined;
|
|
469
463
|
};
|
|
470
464
|
|
|
@@ -478,7 +472,7 @@ export const OtherIncome$outboundSchema: z.ZodType<
|
|
|
478
472
|
code: z.string().optional(),
|
|
479
473
|
title: z.string().optional(),
|
|
480
474
|
type: z.nullable(ProfitAndLossType$outboundSchema).optional(),
|
|
481
|
-
total: z.nullable(z.number()),
|
|
475
|
+
total: z.nullable(z.number()).optional(),
|
|
482
476
|
records: z.any().optional(),
|
|
483
477
|
});
|
|
484
478
|
|
|
@@ -519,7 +513,7 @@ export const OtherExpenses$inboundSchema: z.ZodType<
|
|
|
519
513
|
code: z.string().optional(),
|
|
520
514
|
title: z.string().optional(),
|
|
521
515
|
type: z.nullable(ProfitAndLossType$inboundSchema).optional(),
|
|
522
|
-
total: z.nullable(z.number()),
|
|
516
|
+
total: z.nullable(z.number()).optional(),
|
|
523
517
|
records: z.any().optional(),
|
|
524
518
|
});
|
|
525
519
|
|
|
@@ -529,7 +523,7 @@ export type OtherExpenses$Outbound = {
|
|
|
529
523
|
code?: string | undefined;
|
|
530
524
|
title?: string | undefined;
|
|
531
525
|
type?: string | null | undefined;
|
|
532
|
-
total
|
|
526
|
+
total?: number | null | undefined;
|
|
533
527
|
records?: any | undefined;
|
|
534
528
|
};
|
|
535
529
|
|
|
@@ -543,7 +537,7 @@ export const OtherExpenses$outboundSchema: z.ZodType<
|
|
|
543
537
|
code: z.string().optional(),
|
|
544
538
|
title: z.string().optional(),
|
|
545
539
|
type: z.nullable(ProfitAndLossType$outboundSchema).optional(),
|
|
546
|
-
total: z.nullable(z.number()),
|
|
540
|
+
total: z.nullable(z.number()).optional(),
|
|
547
541
|
records: z.any().optional(),
|
|
548
542
|
});
|
|
549
543
|
|
|
@@ -664,7 +658,7 @@ export const ProfitAndLoss$inboundSchema: z.ZodType<
|
|
|
664
658
|
gross_profit: ProfitAndLossIndicator$inboundSchema.optional(),
|
|
665
659
|
net_operating_income: ProfitAndLossIndicator$inboundSchema.optional(),
|
|
666
660
|
net_income: ProfitAndLossIndicator$inboundSchema.optional(),
|
|
667
|
-
custom_mappings: z.nullable(
|
|
661
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
668
662
|
customer: z.string().optional(),
|
|
669
663
|
}).transform((v) => {
|
|
670
664
|
return remap$(v, {
|
|
@@ -698,7 +692,7 @@ export type ProfitAndLoss$Outbound = {
|
|
|
698
692
|
gross_profit?: ProfitAndLossIndicator$Outbound | undefined;
|
|
699
693
|
net_operating_income?: ProfitAndLossIndicator$Outbound | undefined;
|
|
700
694
|
net_income?: ProfitAndLossIndicator$Outbound | undefined;
|
|
701
|
-
custom_mappings?:
|
|
695
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
702
696
|
customer?: string | undefined;
|
|
703
697
|
};
|
|
704
698
|
|
|
@@ -723,7 +717,7 @@ export const ProfitAndLoss$outboundSchema: z.ZodType<
|
|
|
723
717
|
grossProfit: ProfitAndLossIndicator$outboundSchema.optional(),
|
|
724
718
|
netOperatingIncome: ProfitAndLossIndicator$outboundSchema.optional(),
|
|
725
719
|
netIncome: ProfitAndLossIndicator$outboundSchema.optional(),
|
|
726
|
-
customMappings: z.nullable(
|
|
720
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
727
721
|
customer: z.string().optional(),
|
|
728
722
|
}).transform((v) => {
|
|
729
723
|
return remap$(v, {
|
|
@@ -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
|
InvoiceLineItem,
|
|
43
37
|
InvoiceLineItem$inboundSchema,
|
|
@@ -116,6 +110,10 @@ export type PurchaseOrder = {
|
|
|
116
110
|
* The supplier this entity is linked to.
|
|
117
111
|
*/
|
|
118
112
|
supplier?: LinkedSupplier | null | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the subsidiary
|
|
115
|
+
*/
|
|
116
|
+
subsidiaryId?: string | null | undefined;
|
|
119
117
|
/**
|
|
120
118
|
* The company or subsidiary id the transaction belongs to
|
|
121
119
|
*/
|
|
@@ -200,7 +198,7 @@ export type PurchaseOrder = {
|
|
|
200
198
|
/**
|
|
201
199
|
* When custom mappings are configured on the resource, the result is included here.
|
|
202
200
|
*/
|
|
203
|
-
customMappings?:
|
|
201
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
204
202
|
customFields?: Array<CustomField> | undefined;
|
|
205
203
|
/**
|
|
206
204
|
* 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.
|
|
@@ -241,6 +239,10 @@ export type PurchaseOrderInput = {
|
|
|
241
239
|
* The supplier this entity is linked to.
|
|
242
240
|
*/
|
|
243
241
|
supplier?: LinkedSupplierInput | null | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* The ID of the subsidiary
|
|
244
|
+
*/
|
|
245
|
+
subsidiaryId?: string | null | undefined;
|
|
244
246
|
/**
|
|
245
247
|
* The company or subsidiary id the transaction belongs to
|
|
246
248
|
*/
|
|
@@ -365,6 +367,7 @@ export const PurchaseOrder$inboundSchema: z.ZodType<
|
|
|
365
367
|
po_number: z.nullable(z.string()).optional(),
|
|
366
368
|
reference: z.nullable(z.string()).optional(),
|
|
367
369
|
supplier: z.nullable(LinkedSupplier$inboundSchema).optional(),
|
|
370
|
+
subsidiary_id: z.nullable(z.string()).optional(),
|
|
368
371
|
company_id: z.nullable(z.string()).optional(),
|
|
369
372
|
status: z.nullable(PurchaseOrderStatus$inboundSchema).optional(),
|
|
370
373
|
issued_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
@@ -393,7 +396,7 @@ export const PurchaseOrder$inboundSchema: z.ZodType<
|
|
|
393
396
|
tracking_categories: z.nullable(
|
|
394
397
|
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
395
398
|
).optional(),
|
|
396
|
-
custom_mappings: z.nullable(
|
|
399
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
397
400
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
398
401
|
row_version: z.nullable(z.string()).optional(),
|
|
399
402
|
updated_by: z.nullable(z.string()).optional(),
|
|
@@ -409,6 +412,7 @@ export const PurchaseOrder$inboundSchema: z.ZodType<
|
|
|
409
412
|
return remap$(v, {
|
|
410
413
|
"downstream_id": "downstreamId",
|
|
411
414
|
"po_number": "poNumber",
|
|
415
|
+
"subsidiary_id": "subsidiaryId",
|
|
412
416
|
"company_id": "companyId",
|
|
413
417
|
"issued_date": "issuedDate",
|
|
414
418
|
"delivery_date": "deliveryDate",
|
|
@@ -446,6 +450,7 @@ export type PurchaseOrder$Outbound = {
|
|
|
446
450
|
po_number?: string | null | undefined;
|
|
447
451
|
reference?: string | null | undefined;
|
|
448
452
|
supplier?: LinkedSupplier$Outbound | null | undefined;
|
|
453
|
+
subsidiary_id?: string | null | undefined;
|
|
449
454
|
company_id?: string | null | undefined;
|
|
450
455
|
status?: string | null | undefined;
|
|
451
456
|
issued_date?: string | null | undefined;
|
|
@@ -473,7 +478,7 @@ export type PurchaseOrder$Outbound = {
|
|
|
473
478
|
| Array<LinkedTrackingCategory$Outbound | null>
|
|
474
479
|
| null
|
|
475
480
|
| undefined;
|
|
476
|
-
custom_mappings?:
|
|
481
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
477
482
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
478
483
|
row_version?: string | null | undefined;
|
|
479
484
|
updated_by?: string | null | undefined;
|
|
@@ -494,6 +499,7 @@ export const PurchaseOrder$outboundSchema: z.ZodType<
|
|
|
494
499
|
poNumber: z.nullable(z.string()).optional(),
|
|
495
500
|
reference: z.nullable(z.string()).optional(),
|
|
496
501
|
supplier: z.nullable(LinkedSupplier$outboundSchema).optional(),
|
|
502
|
+
subsidiaryId: z.nullable(z.string()).optional(),
|
|
497
503
|
companyId: z.nullable(z.string()).optional(),
|
|
498
504
|
status: z.nullable(PurchaseOrderStatus$outboundSchema).optional(),
|
|
499
505
|
issuedDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
@@ -525,7 +531,7 @@ export const PurchaseOrder$outboundSchema: z.ZodType<
|
|
|
525
531
|
trackingCategories: z.nullable(
|
|
526
532
|
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
527
533
|
).optional(),
|
|
528
|
-
customMappings: z.nullable(
|
|
534
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
529
535
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
530
536
|
rowVersion: z.nullable(z.string()).optional(),
|
|
531
537
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -537,6 +543,7 @@ export const PurchaseOrder$outboundSchema: z.ZodType<
|
|
|
537
543
|
return remap$(v, {
|
|
538
544
|
downstreamId: "downstream_id",
|
|
539
545
|
poNumber: "po_number",
|
|
546
|
+
subsidiaryId: "subsidiary_id",
|
|
540
547
|
companyId: "company_id",
|
|
541
548
|
issuedDate: "issued_date",
|
|
542
549
|
deliveryDate: "delivery_date",
|
|
@@ -603,6 +610,7 @@ export const PurchaseOrderInput$inboundSchema: z.ZodType<
|
|
|
603
610
|
po_number: z.nullable(z.string()).optional(),
|
|
604
611
|
reference: z.nullable(z.string()).optional(),
|
|
605
612
|
supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(),
|
|
613
|
+
subsidiary_id: z.nullable(z.string()).optional(),
|
|
606
614
|
company_id: z.nullable(z.string()).optional(),
|
|
607
615
|
status: z.nullable(PurchaseOrderStatus$inboundSchema).optional(),
|
|
608
616
|
issued_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
@@ -637,6 +645,7 @@ export const PurchaseOrderInput$inboundSchema: z.ZodType<
|
|
|
637
645
|
}).transform((v) => {
|
|
638
646
|
return remap$(v, {
|
|
639
647
|
"po_number": "poNumber",
|
|
648
|
+
"subsidiary_id": "subsidiaryId",
|
|
640
649
|
"company_id": "companyId",
|
|
641
650
|
"issued_date": "issuedDate",
|
|
642
651
|
"delivery_date": "deliveryDate",
|
|
@@ -667,6 +676,7 @@ export type PurchaseOrderInput$Outbound = {
|
|
|
667
676
|
po_number?: string | null | undefined;
|
|
668
677
|
reference?: string | null | undefined;
|
|
669
678
|
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
679
|
+
subsidiary_id?: string | null | undefined;
|
|
670
680
|
company_id?: string | null | undefined;
|
|
671
681
|
status?: string | null | undefined;
|
|
672
682
|
issued_date?: string | null | undefined;
|
|
@@ -708,6 +718,7 @@ export const PurchaseOrderInput$outboundSchema: z.ZodType<
|
|
|
708
718
|
poNumber: z.nullable(z.string()).optional(),
|
|
709
719
|
reference: z.nullable(z.string()).optional(),
|
|
710
720
|
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
721
|
+
subsidiaryId: z.nullable(z.string()).optional(),
|
|
711
722
|
companyId: z.nullable(z.string()).optional(),
|
|
712
723
|
status: z.nullable(PurchaseOrderStatus$outboundSchema).optional(),
|
|
713
724
|
issuedDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
@@ -745,6 +756,7 @@ export const PurchaseOrderInput$outboundSchema: z.ZodType<
|
|
|
745
756
|
}).transform((v) => {
|
|
746
757
|
return remap$(v, {
|
|
747
758
|
poNumber: "po_number",
|
|
759
|
+
subsidiaryId: "subsidiary_id",
|
|
748
760
|
companyId: "company_id",
|
|
749
761
|
issuedDate: "issued_date",
|
|
750
762
|
deliveryDate: "delivery_date",
|