@apideck/unify 0.21.1 → 0.22.1
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/{accountingdepartmentinput.d.ts → accountingdepartment.d.ts} +51 -51
- package/models/components/accountingdepartment.d.ts.map +1 -0
- package/models/components/{accountingdepartmentinput.js → accountingdepartment.js} +51 -51
- package/models/components/accountingdepartment.js.map +1 -0
- package/models/components/{accountinglocationinput.d.ts → accountinglocation.d.ts} +58 -58
- package/models/components/accountinglocation.d.ts.map +1 -0
- package/models/components/{accountinglocationinput.js → accountinglocation.js} +56 -56
- package/models/components/accountinglocation.js.map +1 -0
- package/models/components/activity.d.ts +1 -1
- package/models/components/activity.d.ts.map +1 -1
- package/models/components/activity.js +5 -5
- package/models/components/activity.js.map +1 -1
- package/models/components/{activityattendeeinput.d.ts → activityattendee.d.ts} +51 -51
- package/models/components/activityattendee.d.ts.map +1 -0
- package/models/components/{activityattendeeinput.js → activityattendee.js} +48 -48
- package/models/components/activityattendee.js.map +1 -0
- package/models/components/{allocationinput.d.ts → allocation.d.ts} +29 -29
- package/models/components/allocation.d.ts.map +1 -0
- package/models/components/{allocationinput.js → allocation.js} +32 -32
- package/models/components/allocation.js.map +1 -0
- package/models/components/{applicationinput.d.ts → application.d.ts} +37 -37
- package/models/components/application.d.ts.map +1 -0
- package/models/components/{applicationinput.js → application.js} +49 -49
- package/models/components/application.js.map +1 -0
- package/models/components/{bill.d.ts → billinput.d.ts} +75 -75
- package/models/components/billinput.d.ts.map +1 -0
- package/models/components/{bill.js → billinput.js} +70 -70
- package/models/components/billinput.js.map +1 -0
- package/models/components/{billlineitem.d.ts → billlineiteminput.d.ts} +59 -59
- package/models/components/billlineiteminput.d.ts.map +1 -0
- package/models/components/{billlineitem.js → billlineiteminput.js} +56 -56
- package/models/components/billlineiteminput.js.map +1 -0
- package/models/components/companyinfo.d.ts +1 -1
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +3 -3
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/{company.d.ts → companyinput.d.ts} +77 -77
- package/models/components/companyinput.d.ts.map +1 -0
- package/models/components/{company.js → companyinput.js} +67 -67
- package/models/components/companyinput.js.map +1 -0
- package/models/components/creditnote.d.ts +1 -1
- package/models/components/creditnote.d.ts.map +1 -1
- package/models/components/creditnote.js +5 -5
- package/models/components/creditnote.js.map +1 -1
- package/models/components/employeeinput.d.ts +1 -1
- package/models/components/employeeinput.d.ts.map +1 -1
- package/models/components/employeeinput.js +5 -5
- package/models/components/employeeinput.js.map +1 -1
- package/models/components/{employeejobinput.d.ts → employeejob.d.ts} +37 -37
- package/models/components/employeejob.d.ts.map +1 -0
- package/models/components/{employeejobinput.js → employeejob.js} +36 -36
- package/models/components/employeejob.js.map +1 -0
- package/models/components/{expenseinput.d.ts → expense.d.ts} +55 -55
- package/models/components/expense.d.ts.map +1 -0
- package/models/components/{expenseinput.js → expense.js} +52 -52
- package/models/components/expense.js.map +1 -0
- package/models/components/getaccountingdepartmentresponse.d.ts +1 -1
- package/models/components/getaccountingdepartmentresponse.d.ts.map +1 -1
- package/models/components/getaccountingdepartmentresponse.js +3 -3
- package/models/components/getaccountingdepartmentresponse.js.map +1 -1
- package/models/components/getaccountingdepartmentsresponse.d.ts +1 -1
- package/models/components/getaccountingdepartmentsresponse.d.ts.map +1 -1
- package/models/components/getaccountingdepartmentsresponse.js +3 -3
- package/models/components/getaccountingdepartmentsresponse.js.map +1 -1
- package/models/components/getaccountinglocationresponse.d.ts +1 -1
- package/models/components/getaccountinglocationresponse.d.ts.map +1 -1
- package/models/components/getaccountinglocationresponse.js +3 -3
- package/models/components/getaccountinglocationresponse.js.map +1 -1
- package/models/components/getaccountinglocationsresponse.d.ts +1 -1
- package/models/components/getaccountinglocationsresponse.d.ts.map +1 -1
- package/models/components/getaccountinglocationsresponse.js +3 -3
- package/models/components/getaccountinglocationsresponse.js.map +1 -1
- package/models/components/getapplicationresponse.d.ts +1 -1
- package/models/components/getapplicationresponse.d.ts.map +1 -1
- package/models/components/getapplicationresponse.js +3 -3
- package/models/components/getapplicationresponse.js.map +1 -1
- package/models/components/getapplicationsresponse.d.ts +1 -1
- package/models/components/getapplicationsresponse.d.ts.map +1 -1
- package/models/components/getapplicationsresponse.js +3 -3
- package/models/components/getapplicationsresponse.js.map +1 -1
- package/models/components/getbillresponse.d.ts +1 -1
- package/models/components/getbillresponse.d.ts.map +1 -1
- package/models/components/getbillresponse.js +3 -3
- package/models/components/getbillresponse.js.map +1 -1
- package/models/components/getbillsresponse.d.ts +1 -1
- package/models/components/getbillsresponse.d.ts.map +1 -1
- package/models/components/getbillsresponse.js +3 -3
- package/models/components/getbillsresponse.js.map +1 -1
- package/models/components/getcompaniesresponse.d.ts +1 -1
- package/models/components/getcompaniesresponse.d.ts.map +1 -1
- package/models/components/getcompaniesresponse.js +3 -3
- package/models/components/getcompaniesresponse.js.map +1 -1
- package/models/components/getcompanyresponse.d.ts +1 -1
- package/models/components/getcompanyresponse.d.ts.map +1 -1
- package/models/components/getcompanyresponse.js +3 -3
- package/models/components/getcompanyresponse.js.map +1 -1
- package/models/components/getexpenseresponse.d.ts +1 -1
- package/models/components/getexpenseresponse.d.ts.map +1 -1
- package/models/components/getexpenseresponse.js +3 -3
- package/models/components/getexpenseresponse.js.map +1 -1
- package/models/components/getexpensesresponse.d.ts +1 -1
- package/models/components/getexpensesresponse.d.ts.map +1 -1
- package/models/components/getexpensesresponse.js +3 -3
- package/models/components/getexpensesresponse.js.map +1 -1
- package/models/components/gethriscompaniesresponse.d.ts +1 -1
- package/models/components/gethriscompaniesresponse.d.ts.map +1 -1
- package/models/components/gethriscompaniesresponse.js +3 -3
- package/models/components/gethriscompaniesresponse.js.map +1 -1
- package/models/components/gethriscompanyresponse.d.ts +1 -1
- package/models/components/gethriscompanyresponse.d.ts.map +1 -1
- package/models/components/gethriscompanyresponse.js +3 -3
- package/models/components/gethriscompanyresponse.js.map +1 -1
- package/models/components/getinvoiceresponse.d.ts +1 -1
- package/models/components/getinvoiceresponse.d.ts.map +1 -1
- package/models/components/getinvoiceresponse.js +3 -3
- package/models/components/getinvoiceresponse.js.map +1 -1
- package/models/components/getinvoicesresponse.d.ts +1 -1
- package/models/components/getinvoicesresponse.d.ts.map +1 -1
- package/models/components/getinvoicesresponse.js +3 -3
- package/models/components/getinvoicesresponse.js.map +1 -1
- package/models/components/getledgeraccountresponse.d.ts +1 -1
- package/models/components/getledgeraccountresponse.d.ts.map +1 -1
- package/models/components/getledgeraccountresponse.js +3 -3
- package/models/components/getledgeraccountresponse.js.map +1 -1
- package/models/components/getledgeraccountsresponse.d.ts +1 -1
- package/models/components/getledgeraccountsresponse.d.ts.map +1 -1
- package/models/components/getledgeraccountsresponse.js +3 -3
- package/models/components/getledgeraccountsresponse.js.map +1 -1
- package/models/components/getsharedlinkresponse.d.ts +1 -1
- package/models/components/getsharedlinkresponse.d.ts.map +1 -1
- package/models/components/getsharedlinkresponse.js +3 -3
- package/models/components/getsharedlinkresponse.js.map +1 -1
- package/models/components/getsharedlinksresponse.d.ts +1 -1
- package/models/components/getsharedlinksresponse.d.ts.map +1 -1
- package/models/components/getsharedlinksresponse.js +3 -3
- package/models/components/getsharedlinksresponse.js.map +1 -1
- package/models/components/gettaxrateresponse.d.ts +1 -1
- package/models/components/gettaxrateresponse.d.ts.map +1 -1
- package/models/components/gettaxrateresponse.js +3 -3
- package/models/components/gettaxrateresponse.js.map +1 -1
- package/models/components/gettaxratesresponse.d.ts +1 -1
- package/models/components/gettaxratesresponse.d.ts.map +1 -1
- package/models/components/gettaxratesresponse.js +3 -3
- package/models/components/gettaxratesresponse.js.map +1 -1
- package/models/components/getticketresponse.d.ts +1 -1
- package/models/components/getticketresponse.d.ts.map +1 -1
- package/models/components/getticketresponse.js +3 -3
- package/models/components/getticketresponse.js.map +1 -1
- package/models/components/getticketsresponse.d.ts +1 -1
- package/models/components/getticketsresponse.d.ts.map +1 -1
- package/models/components/getticketsresponse.js +3 -3
- package/models/components/getticketsresponse.js.map +1 -1
- package/models/components/gettimeoffrequestresponse.d.ts +1 -1
- package/models/components/gettimeoffrequestresponse.d.ts.map +1 -1
- package/models/components/gettimeoffrequestresponse.js +3 -3
- package/models/components/gettimeoffrequestresponse.js.map +1 -1
- package/models/components/gettimeoffrequestsresponse.d.ts +1 -1
- package/models/components/gettimeoffrequestsresponse.d.ts.map +1 -1
- package/models/components/gettimeoffrequestsresponse.js +3 -3
- package/models/components/gettimeoffrequestsresponse.js.map +1 -1
- package/models/components/{hriscompanyinput.d.ts → hriscompany.d.ts} +55 -55
- package/models/components/hriscompany.d.ts.map +1 -0
- package/models/components/{hriscompanyinput.js → hriscompany.js} +54 -54
- package/models/components/hriscompany.js.map +1 -0
- package/models/components/index.d.ts +18 -18
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -18
- package/models/components/index.js.map +1 -1
- package/models/components/{invoiceinput.d.ts → invoice.d.ts} +121 -73
- package/models/components/invoice.d.ts.map +1 -0
- package/models/components/{invoiceinput.js → invoice.js} +118 -71
- package/models/components/invoice.js.map +1 -0
- package/models/components/journalentry.d.ts +1 -1
- package/models/components/journalentry.d.ts.map +1 -1
- package/models/components/journalentry.js +3 -3
- package/models/components/journalentry.js.map +1 -1
- package/models/components/journalentryinput.d.ts +1 -1
- package/models/components/journalentryinput.d.ts.map +1 -1
- package/models/components/journalentryinput.js +3 -3
- package/models/components/journalentryinput.js.map +1 -1
- package/models/components/{journalentrylineiteminput.d.ts → journalentrylineitem.d.ts} +48 -48
- package/models/components/journalentrylineitem.d.ts.map +1 -0
- package/models/components/{journalentrylineiteminput.js → journalentrylineitem.js} +48 -48
- package/models/components/journalentrylineitem.js.map +1 -0
- package/models/components/{ledgeraccountinput.d.ts → ledgeraccount.d.ts} +129 -129
- package/models/components/ledgeraccount.d.ts.map +1 -0
- package/models/components/{ledgeraccountinput.js → ledgeraccount.js} +128 -128
- package/models/components/ledgeraccount.js.map +1 -0
- package/models/components/payment.d.ts +1 -1
- package/models/components/payment.d.ts.map +1 -1
- package/models/components/payment.js +3 -3
- package/models/components/payment.js.map +1 -1
- package/models/components/paymentinput.d.ts +1 -1
- package/models/components/paymentinput.d.ts.map +1 -1
- package/models/components/paymentinput.js +3 -3
- package/models/components/paymentinput.js.map +1 -1
- package/models/components/{sharedlinkinput.d.ts → sharedlink.d.ts} +49 -49
- package/models/components/sharedlink.d.ts.map +1 -0
- package/models/components/{sharedlinkinput.js → sharedlink.js} +49 -49
- package/models/components/sharedlink.js.map +1 -0
- package/models/components/{taxrateinput.d.ts → taxrate.d.ts} +52 -52
- package/models/components/taxrate.d.ts.map +1 -0
- package/models/components/{taxrateinput.js → taxrate.js} +50 -50
- package/models/components/taxrate.js.map +1 -0
- package/models/components/{ticket.d.ts → ticketinput.d.ts} +66 -66
- package/models/components/ticketinput.d.ts.map +1 -0
- package/models/components/{ticket.js → ticketinput.js} +59 -59
- package/models/components/ticketinput.js.map +1 -0
- package/models/components/{timeoffrequestinput.d.ts → timeoffrequest.d.ts} +57 -57
- package/models/components/timeoffrequest.d.ts.map +1 -0
- package/models/components/{timeoffrequestinput.js → timeoffrequest.js} +52 -52
- package/models/components/timeoffrequest.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/activity.ts +1 -1
- package/src/models/components/{bill.ts → billinput.ts} +248 -248
- package/src/models/components/companyinfo.ts +1 -1
- package/src/models/components/creditnote.ts +1 -1
- package/src/models/components/employeeinput.ts +1 -1
- package/src/models/components/getaccountingdepartmentresponse.ts +1 -1
- package/src/models/components/getaccountingdepartmentsresponse.ts +1 -1
- package/src/models/components/getaccountinglocationresponse.ts +1 -1
- package/src/models/components/getaccountinglocationsresponse.ts +1 -1
- package/src/models/components/getapplicationresponse.ts +1 -1
- package/src/models/components/getapplicationsresponse.ts +1 -1
- package/src/models/components/getbillresponse.ts +1 -1
- package/src/models/components/getbillsresponse.ts +1 -1
- package/src/models/components/getcompaniesresponse.ts +1 -1
- package/src/models/components/getcompanyresponse.ts +1 -1
- package/src/models/components/getexpenseresponse.ts +1 -1
- package/src/models/components/getexpensesresponse.ts +1 -1
- package/src/models/components/gethriscompaniesresponse.ts +1 -1
- package/src/models/components/gethriscompanyresponse.ts +1 -1
- package/src/models/components/getinvoiceresponse.ts +1 -1
- package/src/models/components/getinvoicesresponse.ts +1 -1
- package/src/models/components/getledgeraccountresponse.ts +1 -1
- package/src/models/components/getledgeraccountsresponse.ts +1 -1
- package/src/models/components/getsharedlinkresponse.ts +1 -1
- package/src/models/components/getsharedlinksresponse.ts +1 -1
- package/src/models/components/gettaxrateresponse.ts +1 -1
- package/src/models/components/gettaxratesresponse.ts +1 -1
- package/src/models/components/getticketresponse.ts +1 -1
- package/src/models/components/getticketsresponse.ts +1 -1
- package/src/models/components/gettimeoffrequestresponse.ts +1 -1
- package/src/models/components/gettimeoffrequestsresponse.ts +1 -1
- package/src/models/components/index.ts +18 -18
- package/src/models/components/{invoiceinput.ts → invoice.ts} +351 -240
- package/src/models/components/journalentry.ts +1 -1
- package/src/models/components/journalentryinput.ts +1 -1
- package/src/models/components/payment.ts +1 -1
- package/src/models/components/paymentinput.ts +1 -1
- package/models/components/accountingdepartmentinput.d.ts.map +0 -1
- package/models/components/accountingdepartmentinput.js.map +0 -1
- package/models/components/accountinglocationinput.d.ts.map +0 -1
- package/models/components/accountinglocationinput.js.map +0 -1
- package/models/components/activityattendeeinput.d.ts.map +0 -1
- package/models/components/activityattendeeinput.js.map +0 -1
- package/models/components/allocationinput.d.ts.map +0 -1
- package/models/components/allocationinput.js.map +0 -1
- package/models/components/applicationinput.d.ts.map +0 -1
- package/models/components/applicationinput.js.map +0 -1
- package/models/components/bill.d.ts.map +0 -1
- package/models/components/bill.js.map +0 -1
- package/models/components/billlineitem.d.ts.map +0 -1
- package/models/components/billlineitem.js.map +0 -1
- package/models/components/company.d.ts.map +0 -1
- package/models/components/company.js.map +0 -1
- package/models/components/employeejobinput.d.ts.map +0 -1
- package/models/components/employeejobinput.js.map +0 -1
- package/models/components/expenseinput.d.ts.map +0 -1
- package/models/components/expenseinput.js.map +0 -1
- package/models/components/hriscompanyinput.d.ts.map +0 -1
- package/models/components/hriscompanyinput.js.map +0 -1
- package/models/components/invoiceinput.d.ts.map +0 -1
- package/models/components/invoiceinput.js.map +0 -1
- package/models/components/journalentrylineiteminput.d.ts.map +0 -1
- package/models/components/journalentrylineiteminput.js.map +0 -1
- package/models/components/ledgeraccountinput.d.ts.map +0 -1
- package/models/components/ledgeraccountinput.js.map +0 -1
- package/models/components/sharedlinkinput.d.ts.map +0 -1
- package/models/components/sharedlinkinput.js.map +0 -1
- package/models/components/taxrateinput.d.ts.map +0 -1
- package/models/components/taxrateinput.js.map +0 -1
- package/models/components/ticket.d.ts.map +0 -1
- package/models/components/ticket.js.map +0 -1
- package/models/components/timeoffrequestinput.d.ts.map +0 -1
- package/models/components/timeoffrequestinput.js.map +0 -1
- package/src/models/components/{accountingdepartmentinput.ts → accountingdepartment.ts} +102 -102
- package/src/models/components/{accountinglocationinput.ts → accountinglocation.ts} +106 -106
- package/src/models/components/{activityattendeeinput.ts → activityattendee.ts} +89 -89
- package/src/models/components/{allocationinput.ts → allocation.ts} +46 -46
- package/src/models/components/{applicationinput.ts → application.ts} +85 -85
- package/src/models/components/{billlineitem.ts → billlineiteminput.ts} +107 -107
- package/src/models/components/{company.ts → companyinput.ts} +226 -226
- package/src/models/components/{employeejobinput.ts → employeejob.ts} +60 -60
- package/src/models/components/{expenseinput.ts → expense.ts} +159 -159
- package/src/models/components/{hriscompanyinput.ts → hriscompany.ts} +101 -101
- package/src/models/components/{journalentrylineiteminput.ts → journalentrylineitem.ts} +81 -81
- package/src/models/components/{ledgeraccountinput.ts → ledgeraccount.ts} +253 -253
- package/src/models/components/{sharedlinkinput.ts → sharedlink.ts} +99 -99
- package/src/models/components/{taxrateinput.ts → taxrate.ts} +146 -146
- package/src/models/components/{ticket.ts → ticketinput.ts} +125 -125
- package/src/models/components/{timeoffrequestinput.ts → timeoffrequest.ts} +100 -100
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
BillLineItemInput$inboundSchema,
|
|
25
25
|
BillLineItemInput$Outbound,
|
|
26
26
|
BillLineItemInput$outboundSchema,
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./billlineiteminput.js";
|
|
28
28
|
import {
|
|
29
29
|
Currency,
|
|
30
30
|
Currency$inboundSchema,
|
|
@@ -97,15 +97,7 @@ export const BillStatus = {
|
|
|
97
97
|
*/
|
|
98
98
|
export type BillStatus = ClosedEnum<typeof BillStatus>;
|
|
99
99
|
|
|
100
|
-
export type
|
|
101
|
-
/**
|
|
102
|
-
* A unique identifier for an object.
|
|
103
|
-
*/
|
|
104
|
-
id?: string | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* The third-party API ID of original entity
|
|
107
|
-
*/
|
|
108
|
-
downstreamId?: string | null | undefined;
|
|
100
|
+
export type BillInput = {
|
|
109
101
|
/**
|
|
110
102
|
* Reference to supplier bill number
|
|
111
103
|
*/
|
|
@@ -113,7 +105,7 @@ export type Bill = {
|
|
|
113
105
|
/**
|
|
114
106
|
* The supplier this entity is linked to.
|
|
115
107
|
*/
|
|
116
|
-
supplier?:
|
|
108
|
+
supplier?: LinkedSupplierInput | null | undefined;
|
|
117
109
|
/**
|
|
118
110
|
* The company or subsidiary id the transaction belongs to
|
|
119
111
|
*/
|
|
@@ -150,7 +142,7 @@ export type Bill = {
|
|
|
150
142
|
* Optional bill reference.
|
|
151
143
|
*/
|
|
152
144
|
reference?: string | null | undefined;
|
|
153
|
-
lineItems?: Array<
|
|
145
|
+
lineItems?: Array<BillLineItemInput> | undefined;
|
|
154
146
|
/**
|
|
155
147
|
* Terms of payment.
|
|
156
148
|
*/
|
|
@@ -184,7 +176,7 @@ export type Bill = {
|
|
|
184
176
|
* Invoice status
|
|
185
177
|
*/
|
|
186
178
|
status?: BillStatus | null | undefined;
|
|
187
|
-
ledgerAccount?:
|
|
179
|
+
ledgerAccount?: LinkedLedgerAccountInput | null | undefined;
|
|
188
180
|
/**
|
|
189
181
|
* Payment method used for the transaction, such as cash, credit card, bank transfer, or check
|
|
190
182
|
*/
|
|
@@ -214,31 +206,11 @@ export type Bill = {
|
|
|
214
206
|
* A list of linked tracking categories.
|
|
215
207
|
*/
|
|
216
208
|
trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
|
|
217
|
-
/**
|
|
218
|
-
* The user who last updated the object.
|
|
219
|
-
*/
|
|
220
|
-
updatedBy?: string | null | undefined;
|
|
221
|
-
/**
|
|
222
|
-
* The user who created the object.
|
|
223
|
-
*/
|
|
224
|
-
createdBy?: string | null | undefined;
|
|
225
|
-
/**
|
|
226
|
-
* The date and time when the object was last updated.
|
|
227
|
-
*/
|
|
228
|
-
updatedAt?: Date | null | undefined;
|
|
229
|
-
/**
|
|
230
|
-
* The date and time when the object was created.
|
|
231
|
-
*/
|
|
232
|
-
createdAt?: Date | null | undefined;
|
|
233
209
|
/**
|
|
234
210
|
* 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.
|
|
235
211
|
*/
|
|
236
212
|
rowVersion?: string | null | undefined;
|
|
237
213
|
customFields?: Array<CustomField> | undefined;
|
|
238
|
-
/**
|
|
239
|
-
* When custom mappings are configured on the resource, the result is included here.
|
|
240
|
-
*/
|
|
241
|
-
customMappings?: CustomMappings | null | undefined;
|
|
242
214
|
/**
|
|
243
215
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
244
216
|
*/
|
|
@@ -249,7 +221,15 @@ export type Bill = {
|
|
|
249
221
|
accountingPeriod?: string | null | undefined;
|
|
250
222
|
};
|
|
251
223
|
|
|
252
|
-
export type
|
|
224
|
+
export type Bill = {
|
|
225
|
+
/**
|
|
226
|
+
* A unique identifier for an object.
|
|
227
|
+
*/
|
|
228
|
+
id?: string | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* The third-party API ID of original entity
|
|
231
|
+
*/
|
|
232
|
+
downstreamId?: string | null | undefined;
|
|
253
233
|
/**
|
|
254
234
|
* Reference to supplier bill number
|
|
255
235
|
*/
|
|
@@ -257,7 +237,7 @@ export type BillInput = {
|
|
|
257
237
|
/**
|
|
258
238
|
* The supplier this entity is linked to.
|
|
259
239
|
*/
|
|
260
|
-
supplier?:
|
|
240
|
+
supplier?: LinkedSupplier | null | undefined;
|
|
261
241
|
/**
|
|
262
242
|
* The company or subsidiary id the transaction belongs to
|
|
263
243
|
*/
|
|
@@ -294,7 +274,7 @@ export type BillInput = {
|
|
|
294
274
|
* Optional bill reference.
|
|
295
275
|
*/
|
|
296
276
|
reference?: string | null | undefined;
|
|
297
|
-
lineItems?: Array<
|
|
277
|
+
lineItems?: Array<BillLineItem> | undefined;
|
|
298
278
|
/**
|
|
299
279
|
* Terms of payment.
|
|
300
280
|
*/
|
|
@@ -328,7 +308,7 @@ export type BillInput = {
|
|
|
328
308
|
* Invoice status
|
|
329
309
|
*/
|
|
330
310
|
status?: BillStatus | null | undefined;
|
|
331
|
-
ledgerAccount?:
|
|
311
|
+
ledgerAccount?: LinkedLedgerAccount | null | undefined;
|
|
332
312
|
/**
|
|
333
313
|
* Payment method used for the transaction, such as cash, credit card, bank transfer, or check
|
|
334
314
|
*/
|
|
@@ -358,11 +338,31 @@ export type BillInput = {
|
|
|
358
338
|
* A list of linked tracking categories.
|
|
359
339
|
*/
|
|
360
340
|
trackingCategories?: Array<LinkedTrackingCategory | null> | null | undefined;
|
|
341
|
+
/**
|
|
342
|
+
* The user who last updated the object.
|
|
343
|
+
*/
|
|
344
|
+
updatedBy?: string | null | undefined;
|
|
345
|
+
/**
|
|
346
|
+
* The user who created the object.
|
|
347
|
+
*/
|
|
348
|
+
createdBy?: string | null | undefined;
|
|
349
|
+
/**
|
|
350
|
+
* The date and time when the object was last updated.
|
|
351
|
+
*/
|
|
352
|
+
updatedAt?: Date | null | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* The date and time when the object was created.
|
|
355
|
+
*/
|
|
356
|
+
createdAt?: Date | null | undefined;
|
|
361
357
|
/**
|
|
362
358
|
* 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.
|
|
363
359
|
*/
|
|
364
360
|
rowVersion?: string | null | undefined;
|
|
365
361
|
customFields?: Array<CustomField> | undefined;
|
|
362
|
+
/**
|
|
363
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
364
|
+
*/
|
|
365
|
+
customMappings?: CustomMappings | null | undefined;
|
|
366
366
|
/**
|
|
367
367
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
368
368
|
*/
|
|
@@ -392,6 +392,217 @@ export namespace BillStatus$ {
|
|
|
392
392
|
export const outboundSchema = BillStatus$outboundSchema;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
+
/** @internal */
|
|
396
|
+
export const BillInput$inboundSchema: z.ZodType<
|
|
397
|
+
BillInput,
|
|
398
|
+
z.ZodTypeDef,
|
|
399
|
+
unknown
|
|
400
|
+
> = z.object({
|
|
401
|
+
bill_number: z.nullable(z.string()).optional(),
|
|
402
|
+
supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(),
|
|
403
|
+
company_id: z.nullable(z.string()).optional(),
|
|
404
|
+
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
405
|
+
currency_rate: z.nullable(z.number()).optional(),
|
|
406
|
+
tax_inclusive: z.nullable(z.boolean()).optional(),
|
|
407
|
+
bill_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
408
|
+
due_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
409
|
+
paid_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
410
|
+
po_number: z.nullable(z.string()).optional(),
|
|
411
|
+
reference: z.nullable(z.string()).optional(),
|
|
412
|
+
line_items: z.array(BillLineItemInput$inboundSchema).optional(),
|
|
413
|
+
terms: z.nullable(z.string()).optional(),
|
|
414
|
+
balance: z.nullable(z.number()).optional(),
|
|
415
|
+
deposit: z.nullable(z.number()).optional(),
|
|
416
|
+
sub_total: z.nullable(z.number()).optional(),
|
|
417
|
+
total_tax: z.nullable(z.number()).optional(),
|
|
418
|
+
total: z.nullable(z.number()).optional(),
|
|
419
|
+
tax_code: z.nullable(z.string()).optional(),
|
|
420
|
+
notes: z.nullable(z.string()).optional(),
|
|
421
|
+
status: z.nullable(BillStatus$inboundSchema).optional(),
|
|
422
|
+
ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(),
|
|
423
|
+
payment_method: z.nullable(z.string()).optional(),
|
|
424
|
+
channel: z.nullable(z.string()).optional(),
|
|
425
|
+
language: z.nullable(z.string()).optional(),
|
|
426
|
+
accounting_by_row: z.nullable(z.boolean()).optional(),
|
|
427
|
+
bank_account: BankAccount$inboundSchema.optional(),
|
|
428
|
+
discount_percentage: z.nullable(z.number()).optional(),
|
|
429
|
+
source_document_url: z.nullable(z.string()).optional(),
|
|
430
|
+
tracking_categories: z.nullable(
|
|
431
|
+
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
432
|
+
).optional(),
|
|
433
|
+
row_version: z.nullable(z.string()).optional(),
|
|
434
|
+
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
435
|
+
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
436
|
+
accounting_period: z.nullable(z.string()).optional(),
|
|
437
|
+
}).transform((v) => {
|
|
438
|
+
return remap$(v, {
|
|
439
|
+
"bill_number": "billNumber",
|
|
440
|
+
"company_id": "companyId",
|
|
441
|
+
"currency_rate": "currencyRate",
|
|
442
|
+
"tax_inclusive": "taxInclusive",
|
|
443
|
+
"bill_date": "billDate",
|
|
444
|
+
"due_date": "dueDate",
|
|
445
|
+
"paid_date": "paidDate",
|
|
446
|
+
"po_number": "poNumber",
|
|
447
|
+
"line_items": "lineItems",
|
|
448
|
+
"sub_total": "subTotal",
|
|
449
|
+
"total_tax": "totalTax",
|
|
450
|
+
"tax_code": "taxCode",
|
|
451
|
+
"ledger_account": "ledgerAccount",
|
|
452
|
+
"payment_method": "paymentMethod",
|
|
453
|
+
"accounting_by_row": "accountingByRow",
|
|
454
|
+
"bank_account": "bankAccount",
|
|
455
|
+
"discount_percentage": "discountPercentage",
|
|
456
|
+
"source_document_url": "sourceDocumentUrl",
|
|
457
|
+
"tracking_categories": "trackingCategories",
|
|
458
|
+
"row_version": "rowVersion",
|
|
459
|
+
"custom_fields": "customFields",
|
|
460
|
+
"pass_through": "passThrough",
|
|
461
|
+
"accounting_period": "accountingPeriod",
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
/** @internal */
|
|
466
|
+
export type BillInput$Outbound = {
|
|
467
|
+
bill_number?: string | null | undefined;
|
|
468
|
+
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
469
|
+
company_id?: string | null | undefined;
|
|
470
|
+
currency?: string | null | undefined;
|
|
471
|
+
currency_rate?: number | null | undefined;
|
|
472
|
+
tax_inclusive?: boolean | null | undefined;
|
|
473
|
+
bill_date?: string | null | undefined;
|
|
474
|
+
due_date?: string | null | undefined;
|
|
475
|
+
paid_date?: string | null | undefined;
|
|
476
|
+
po_number?: string | null | undefined;
|
|
477
|
+
reference?: string | null | undefined;
|
|
478
|
+
line_items?: Array<BillLineItemInput$Outbound> | undefined;
|
|
479
|
+
terms?: string | null | undefined;
|
|
480
|
+
balance?: number | null | undefined;
|
|
481
|
+
deposit?: number | null | undefined;
|
|
482
|
+
sub_total?: number | null | undefined;
|
|
483
|
+
total_tax?: number | null | undefined;
|
|
484
|
+
total?: number | null | undefined;
|
|
485
|
+
tax_code?: string | null | undefined;
|
|
486
|
+
notes?: string | null | undefined;
|
|
487
|
+
status?: string | null | undefined;
|
|
488
|
+
ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined;
|
|
489
|
+
payment_method?: string | null | undefined;
|
|
490
|
+
channel?: string | null | undefined;
|
|
491
|
+
language?: string | null | undefined;
|
|
492
|
+
accounting_by_row?: boolean | null | undefined;
|
|
493
|
+
bank_account?: BankAccount$Outbound | undefined;
|
|
494
|
+
discount_percentage?: number | null | undefined;
|
|
495
|
+
source_document_url?: string | null | undefined;
|
|
496
|
+
tracking_categories?:
|
|
497
|
+
| Array<LinkedTrackingCategory$Outbound | null>
|
|
498
|
+
| null
|
|
499
|
+
| undefined;
|
|
500
|
+
row_version?: string | null | undefined;
|
|
501
|
+
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
502
|
+
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
503
|
+
accounting_period?: string | null | undefined;
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
/** @internal */
|
|
507
|
+
export const BillInput$outboundSchema: z.ZodType<
|
|
508
|
+
BillInput$Outbound,
|
|
509
|
+
z.ZodTypeDef,
|
|
510
|
+
BillInput
|
|
511
|
+
> = z.object({
|
|
512
|
+
billNumber: z.nullable(z.string()).optional(),
|
|
513
|
+
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
514
|
+
companyId: z.nullable(z.string()).optional(),
|
|
515
|
+
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
516
|
+
currencyRate: z.nullable(z.number()).optional(),
|
|
517
|
+
taxInclusive: z.nullable(z.boolean()).optional(),
|
|
518
|
+
billDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
519
|
+
.optional(),
|
|
520
|
+
dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
521
|
+
.optional(),
|
|
522
|
+
paidDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
523
|
+
.optional(),
|
|
524
|
+
poNumber: z.nullable(z.string()).optional(),
|
|
525
|
+
reference: z.nullable(z.string()).optional(),
|
|
526
|
+
lineItems: z.array(BillLineItemInput$outboundSchema).optional(),
|
|
527
|
+
terms: z.nullable(z.string()).optional(),
|
|
528
|
+
balance: z.nullable(z.number()).optional(),
|
|
529
|
+
deposit: z.nullable(z.number()).optional(),
|
|
530
|
+
subTotal: z.nullable(z.number()).optional(),
|
|
531
|
+
totalTax: z.nullable(z.number()).optional(),
|
|
532
|
+
total: z.nullable(z.number()).optional(),
|
|
533
|
+
taxCode: z.nullable(z.string()).optional(),
|
|
534
|
+
notes: z.nullable(z.string()).optional(),
|
|
535
|
+
status: z.nullable(BillStatus$outboundSchema).optional(),
|
|
536
|
+
ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(),
|
|
537
|
+
paymentMethod: z.nullable(z.string()).optional(),
|
|
538
|
+
channel: z.nullable(z.string()).optional(),
|
|
539
|
+
language: z.nullable(z.string()).optional(),
|
|
540
|
+
accountingByRow: z.nullable(z.boolean()).optional(),
|
|
541
|
+
bankAccount: BankAccount$outboundSchema.optional(),
|
|
542
|
+
discountPercentage: z.nullable(z.number()).optional(),
|
|
543
|
+
sourceDocumentUrl: z.nullable(z.string()).optional(),
|
|
544
|
+
trackingCategories: z.nullable(
|
|
545
|
+
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
546
|
+
).optional(),
|
|
547
|
+
rowVersion: z.nullable(z.string()).optional(),
|
|
548
|
+
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
549
|
+
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
550
|
+
accountingPeriod: z.nullable(z.string()).optional(),
|
|
551
|
+
}).transform((v) => {
|
|
552
|
+
return remap$(v, {
|
|
553
|
+
billNumber: "bill_number",
|
|
554
|
+
companyId: "company_id",
|
|
555
|
+
currencyRate: "currency_rate",
|
|
556
|
+
taxInclusive: "tax_inclusive",
|
|
557
|
+
billDate: "bill_date",
|
|
558
|
+
dueDate: "due_date",
|
|
559
|
+
paidDate: "paid_date",
|
|
560
|
+
poNumber: "po_number",
|
|
561
|
+
lineItems: "line_items",
|
|
562
|
+
subTotal: "sub_total",
|
|
563
|
+
totalTax: "total_tax",
|
|
564
|
+
taxCode: "tax_code",
|
|
565
|
+
ledgerAccount: "ledger_account",
|
|
566
|
+
paymentMethod: "payment_method",
|
|
567
|
+
accountingByRow: "accounting_by_row",
|
|
568
|
+
bankAccount: "bank_account",
|
|
569
|
+
discountPercentage: "discount_percentage",
|
|
570
|
+
sourceDocumentUrl: "source_document_url",
|
|
571
|
+
trackingCategories: "tracking_categories",
|
|
572
|
+
rowVersion: "row_version",
|
|
573
|
+
customFields: "custom_fields",
|
|
574
|
+
passThrough: "pass_through",
|
|
575
|
+
accountingPeriod: "accounting_period",
|
|
576
|
+
});
|
|
577
|
+
});
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* @internal
|
|
581
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
582
|
+
*/
|
|
583
|
+
export namespace BillInput$ {
|
|
584
|
+
/** @deprecated use `BillInput$inboundSchema` instead. */
|
|
585
|
+
export const inboundSchema = BillInput$inboundSchema;
|
|
586
|
+
/** @deprecated use `BillInput$outboundSchema` instead. */
|
|
587
|
+
export const outboundSchema = BillInput$outboundSchema;
|
|
588
|
+
/** @deprecated use `BillInput$Outbound` instead. */
|
|
589
|
+
export type Outbound = BillInput$Outbound;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export function billInputToJSON(billInput: BillInput): string {
|
|
593
|
+
return JSON.stringify(BillInput$outboundSchema.parse(billInput));
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export function billInputFromJSON(
|
|
597
|
+
jsonString: string,
|
|
598
|
+
): SafeParseResult<BillInput, SDKValidationError> {
|
|
599
|
+
return safeParse(
|
|
600
|
+
jsonString,
|
|
601
|
+
(x) => BillInput$inboundSchema.parse(JSON.parse(x)),
|
|
602
|
+
`Failed to parse 'BillInput' from JSON`,
|
|
603
|
+
);
|
|
604
|
+
}
|
|
605
|
+
|
|
395
606
|
/** @internal */
|
|
396
607
|
export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
|
|
397
608
|
.object({
|
|
@@ -633,214 +844,3 @@ export function billFromJSON(
|
|
|
633
844
|
`Failed to parse 'Bill' from JSON`,
|
|
634
845
|
);
|
|
635
846
|
}
|
|
636
|
-
|
|
637
|
-
/** @internal */
|
|
638
|
-
export const BillInput$inboundSchema: z.ZodType<
|
|
639
|
-
BillInput,
|
|
640
|
-
z.ZodTypeDef,
|
|
641
|
-
unknown
|
|
642
|
-
> = z.object({
|
|
643
|
-
bill_number: z.nullable(z.string()).optional(),
|
|
644
|
-
supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(),
|
|
645
|
-
company_id: z.nullable(z.string()).optional(),
|
|
646
|
-
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
647
|
-
currency_rate: z.nullable(z.number()).optional(),
|
|
648
|
-
tax_inclusive: z.nullable(z.boolean()).optional(),
|
|
649
|
-
bill_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
650
|
-
due_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
651
|
-
paid_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
652
|
-
po_number: z.nullable(z.string()).optional(),
|
|
653
|
-
reference: z.nullable(z.string()).optional(),
|
|
654
|
-
line_items: z.array(BillLineItemInput$inboundSchema).optional(),
|
|
655
|
-
terms: z.nullable(z.string()).optional(),
|
|
656
|
-
balance: z.nullable(z.number()).optional(),
|
|
657
|
-
deposit: z.nullable(z.number()).optional(),
|
|
658
|
-
sub_total: z.nullable(z.number()).optional(),
|
|
659
|
-
total_tax: z.nullable(z.number()).optional(),
|
|
660
|
-
total: z.nullable(z.number()).optional(),
|
|
661
|
-
tax_code: z.nullable(z.string()).optional(),
|
|
662
|
-
notes: z.nullable(z.string()).optional(),
|
|
663
|
-
status: z.nullable(BillStatus$inboundSchema).optional(),
|
|
664
|
-
ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(),
|
|
665
|
-
payment_method: z.nullable(z.string()).optional(),
|
|
666
|
-
channel: z.nullable(z.string()).optional(),
|
|
667
|
-
language: z.nullable(z.string()).optional(),
|
|
668
|
-
accounting_by_row: z.nullable(z.boolean()).optional(),
|
|
669
|
-
bank_account: BankAccount$inboundSchema.optional(),
|
|
670
|
-
discount_percentage: z.nullable(z.number()).optional(),
|
|
671
|
-
source_document_url: z.nullable(z.string()).optional(),
|
|
672
|
-
tracking_categories: z.nullable(
|
|
673
|
-
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
674
|
-
).optional(),
|
|
675
|
-
row_version: z.nullable(z.string()).optional(),
|
|
676
|
-
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
677
|
-
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
678
|
-
accounting_period: z.nullable(z.string()).optional(),
|
|
679
|
-
}).transform((v) => {
|
|
680
|
-
return remap$(v, {
|
|
681
|
-
"bill_number": "billNumber",
|
|
682
|
-
"company_id": "companyId",
|
|
683
|
-
"currency_rate": "currencyRate",
|
|
684
|
-
"tax_inclusive": "taxInclusive",
|
|
685
|
-
"bill_date": "billDate",
|
|
686
|
-
"due_date": "dueDate",
|
|
687
|
-
"paid_date": "paidDate",
|
|
688
|
-
"po_number": "poNumber",
|
|
689
|
-
"line_items": "lineItems",
|
|
690
|
-
"sub_total": "subTotal",
|
|
691
|
-
"total_tax": "totalTax",
|
|
692
|
-
"tax_code": "taxCode",
|
|
693
|
-
"ledger_account": "ledgerAccount",
|
|
694
|
-
"payment_method": "paymentMethod",
|
|
695
|
-
"accounting_by_row": "accountingByRow",
|
|
696
|
-
"bank_account": "bankAccount",
|
|
697
|
-
"discount_percentage": "discountPercentage",
|
|
698
|
-
"source_document_url": "sourceDocumentUrl",
|
|
699
|
-
"tracking_categories": "trackingCategories",
|
|
700
|
-
"row_version": "rowVersion",
|
|
701
|
-
"custom_fields": "customFields",
|
|
702
|
-
"pass_through": "passThrough",
|
|
703
|
-
"accounting_period": "accountingPeriod",
|
|
704
|
-
});
|
|
705
|
-
});
|
|
706
|
-
|
|
707
|
-
/** @internal */
|
|
708
|
-
export type BillInput$Outbound = {
|
|
709
|
-
bill_number?: string | null | undefined;
|
|
710
|
-
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
711
|
-
company_id?: string | null | undefined;
|
|
712
|
-
currency?: string | null | undefined;
|
|
713
|
-
currency_rate?: number | null | undefined;
|
|
714
|
-
tax_inclusive?: boolean | null | undefined;
|
|
715
|
-
bill_date?: string | null | undefined;
|
|
716
|
-
due_date?: string | null | undefined;
|
|
717
|
-
paid_date?: string | null | undefined;
|
|
718
|
-
po_number?: string | null | undefined;
|
|
719
|
-
reference?: string | null | undefined;
|
|
720
|
-
line_items?: Array<BillLineItemInput$Outbound> | undefined;
|
|
721
|
-
terms?: string | null | undefined;
|
|
722
|
-
balance?: number | null | undefined;
|
|
723
|
-
deposit?: number | null | undefined;
|
|
724
|
-
sub_total?: number | null | undefined;
|
|
725
|
-
total_tax?: number | null | undefined;
|
|
726
|
-
total?: number | null | undefined;
|
|
727
|
-
tax_code?: string | null | undefined;
|
|
728
|
-
notes?: string | null | undefined;
|
|
729
|
-
status?: string | null | undefined;
|
|
730
|
-
ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined;
|
|
731
|
-
payment_method?: string | null | undefined;
|
|
732
|
-
channel?: string | null | undefined;
|
|
733
|
-
language?: string | null | undefined;
|
|
734
|
-
accounting_by_row?: boolean | null | undefined;
|
|
735
|
-
bank_account?: BankAccount$Outbound | undefined;
|
|
736
|
-
discount_percentage?: number | null | undefined;
|
|
737
|
-
source_document_url?: string | null | undefined;
|
|
738
|
-
tracking_categories?:
|
|
739
|
-
| Array<LinkedTrackingCategory$Outbound | null>
|
|
740
|
-
| null
|
|
741
|
-
| undefined;
|
|
742
|
-
row_version?: string | null | undefined;
|
|
743
|
-
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
744
|
-
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
745
|
-
accounting_period?: string | null | undefined;
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
/** @internal */
|
|
749
|
-
export const BillInput$outboundSchema: z.ZodType<
|
|
750
|
-
BillInput$Outbound,
|
|
751
|
-
z.ZodTypeDef,
|
|
752
|
-
BillInput
|
|
753
|
-
> = z.object({
|
|
754
|
-
billNumber: z.nullable(z.string()).optional(),
|
|
755
|
-
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
756
|
-
companyId: z.nullable(z.string()).optional(),
|
|
757
|
-
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
758
|
-
currencyRate: z.nullable(z.number()).optional(),
|
|
759
|
-
taxInclusive: z.nullable(z.boolean()).optional(),
|
|
760
|
-
billDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
761
|
-
.optional(),
|
|
762
|
-
dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
763
|
-
.optional(),
|
|
764
|
-
paidDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
765
|
-
.optional(),
|
|
766
|
-
poNumber: z.nullable(z.string()).optional(),
|
|
767
|
-
reference: z.nullable(z.string()).optional(),
|
|
768
|
-
lineItems: z.array(BillLineItemInput$outboundSchema).optional(),
|
|
769
|
-
terms: z.nullable(z.string()).optional(),
|
|
770
|
-
balance: z.nullable(z.number()).optional(),
|
|
771
|
-
deposit: z.nullable(z.number()).optional(),
|
|
772
|
-
subTotal: z.nullable(z.number()).optional(),
|
|
773
|
-
totalTax: z.nullable(z.number()).optional(),
|
|
774
|
-
total: z.nullable(z.number()).optional(),
|
|
775
|
-
taxCode: z.nullable(z.string()).optional(),
|
|
776
|
-
notes: z.nullable(z.string()).optional(),
|
|
777
|
-
status: z.nullable(BillStatus$outboundSchema).optional(),
|
|
778
|
-
ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(),
|
|
779
|
-
paymentMethod: z.nullable(z.string()).optional(),
|
|
780
|
-
channel: z.nullable(z.string()).optional(),
|
|
781
|
-
language: z.nullable(z.string()).optional(),
|
|
782
|
-
accountingByRow: z.nullable(z.boolean()).optional(),
|
|
783
|
-
bankAccount: BankAccount$outboundSchema.optional(),
|
|
784
|
-
discountPercentage: z.nullable(z.number()).optional(),
|
|
785
|
-
sourceDocumentUrl: z.nullable(z.string()).optional(),
|
|
786
|
-
trackingCategories: z.nullable(
|
|
787
|
-
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
788
|
-
).optional(),
|
|
789
|
-
rowVersion: z.nullable(z.string()).optional(),
|
|
790
|
-
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
791
|
-
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
792
|
-
accountingPeriod: z.nullable(z.string()).optional(),
|
|
793
|
-
}).transform((v) => {
|
|
794
|
-
return remap$(v, {
|
|
795
|
-
billNumber: "bill_number",
|
|
796
|
-
companyId: "company_id",
|
|
797
|
-
currencyRate: "currency_rate",
|
|
798
|
-
taxInclusive: "tax_inclusive",
|
|
799
|
-
billDate: "bill_date",
|
|
800
|
-
dueDate: "due_date",
|
|
801
|
-
paidDate: "paid_date",
|
|
802
|
-
poNumber: "po_number",
|
|
803
|
-
lineItems: "line_items",
|
|
804
|
-
subTotal: "sub_total",
|
|
805
|
-
totalTax: "total_tax",
|
|
806
|
-
taxCode: "tax_code",
|
|
807
|
-
ledgerAccount: "ledger_account",
|
|
808
|
-
paymentMethod: "payment_method",
|
|
809
|
-
accountingByRow: "accounting_by_row",
|
|
810
|
-
bankAccount: "bank_account",
|
|
811
|
-
discountPercentage: "discount_percentage",
|
|
812
|
-
sourceDocumentUrl: "source_document_url",
|
|
813
|
-
trackingCategories: "tracking_categories",
|
|
814
|
-
rowVersion: "row_version",
|
|
815
|
-
customFields: "custom_fields",
|
|
816
|
-
passThrough: "pass_through",
|
|
817
|
-
accountingPeriod: "accounting_period",
|
|
818
|
-
});
|
|
819
|
-
});
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* @internal
|
|
823
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
824
|
-
*/
|
|
825
|
-
export namespace BillInput$ {
|
|
826
|
-
/** @deprecated use `BillInput$inboundSchema` instead. */
|
|
827
|
-
export const inboundSchema = BillInput$inboundSchema;
|
|
828
|
-
/** @deprecated use `BillInput$outboundSchema` instead. */
|
|
829
|
-
export const outboundSchema = BillInput$outboundSchema;
|
|
830
|
-
/** @deprecated use `BillInput$Outbound` instead. */
|
|
831
|
-
export type Outbound = BillInput$Outbound;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
export function billInputToJSON(billInput: BillInput): string {
|
|
835
|
-
return JSON.stringify(BillInput$outboundSchema.parse(billInput));
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
export function billInputFromJSON(
|
|
839
|
-
jsonString: string,
|
|
840
|
-
): SafeParseResult<BillInput, SDKValidationError> {
|
|
841
|
-
return safeParse(
|
|
842
|
-
jsonString,
|
|
843
|
-
(x) => BillInput$inboundSchema.parse(JSON.parse(x)),
|
|
844
|
-
`Failed to parse 'BillInput' from JSON`,
|
|
845
|
-
);
|
|
846
|
-
}
|