@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
|
@@ -114,6 +114,14 @@ export const AccountStatus = {
|
|
|
114
114
|
*/
|
|
115
115
|
export type AccountStatus = ClosedEnum<typeof AccountStatus>;
|
|
116
116
|
|
|
117
|
+
export type Categories = {
|
|
118
|
+
id?: string | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* The name of the category.
|
|
121
|
+
*/
|
|
122
|
+
name?: string | undefined;
|
|
123
|
+
};
|
|
124
|
+
|
|
117
125
|
export type ParentAccount = {
|
|
118
126
|
/**
|
|
119
127
|
* The ID of the parent account.
|
|
@@ -129,6 +137,17 @@ export type ParentAccount = {
|
|
|
129
137
|
displayId?: string | undefined;
|
|
130
138
|
};
|
|
131
139
|
|
|
140
|
+
export type SubAccounts = {
|
|
141
|
+
/**
|
|
142
|
+
* The ID of the sub account.
|
|
143
|
+
*/
|
|
144
|
+
id?: string | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* The name of the sub account.
|
|
147
|
+
*/
|
|
148
|
+
accountSubName?: string | undefined;
|
|
149
|
+
};
|
|
150
|
+
|
|
132
151
|
export type LedgerAccountSubsidiaries = {
|
|
133
152
|
/**
|
|
134
153
|
* The ID of the subsidiary.
|
|
@@ -136,7 +155,11 @@ export type LedgerAccountSubsidiaries = {
|
|
|
136
155
|
id?: string | undefined;
|
|
137
156
|
};
|
|
138
157
|
|
|
139
|
-
export type
|
|
158
|
+
export type LedgerAccount = {
|
|
159
|
+
/**
|
|
160
|
+
* A unique identifier for an object.
|
|
161
|
+
*/
|
|
162
|
+
id?: string | undefined;
|
|
140
163
|
/**
|
|
141
164
|
* The human readable display ID used when displaying the account
|
|
142
165
|
*/
|
|
@@ -191,7 +214,7 @@ export type LedgerAccountInput = {
|
|
|
191
214
|
* The tax type of the account.
|
|
192
215
|
*/
|
|
193
216
|
taxType?: string | null | undefined;
|
|
194
|
-
taxRate?:
|
|
217
|
+
taxRate?: LinkedTaxRate | undefined;
|
|
195
218
|
level?: number | null | undefined;
|
|
196
219
|
/**
|
|
197
220
|
* Whether the account is active or not.
|
|
@@ -206,11 +229,19 @@ export type LedgerAccountInput = {
|
|
|
206
229
|
*/
|
|
207
230
|
header?: boolean | null | undefined;
|
|
208
231
|
bankAccount?: BankAccount | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* The categories of the account.
|
|
234
|
+
*/
|
|
235
|
+
categories?: Array<Categories> | undefined;
|
|
209
236
|
parentAccount?: ParentAccount | undefined;
|
|
210
237
|
/**
|
|
211
238
|
* Whether the account is a sub account or not.
|
|
212
239
|
*/
|
|
213
240
|
subAccount?: boolean | null | undefined;
|
|
241
|
+
/**
|
|
242
|
+
* The sub accounts of the account.
|
|
243
|
+
*/
|
|
244
|
+
subAccounts?: Array<SubAccounts> | undefined;
|
|
214
245
|
/**
|
|
215
246
|
* Reconciliation Date means the last calendar day of each Reconciliation Period.
|
|
216
247
|
*/
|
|
@@ -219,41 +250,38 @@ export type LedgerAccountInput = {
|
|
|
219
250
|
* The subsidiaries the account belongs to.
|
|
220
251
|
*/
|
|
221
252
|
subsidiaries?: Array<LedgerAccountSubsidiaries> | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
255
|
+
*/
|
|
256
|
+
customMappings?: CustomMappings | null | undefined;
|
|
222
257
|
customFields?: Array<CustomField> | undefined;
|
|
223
258
|
/**
|
|
224
259
|
* 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.
|
|
225
260
|
*/
|
|
226
261
|
rowVersion?: string | null | undefined;
|
|
227
262
|
/**
|
|
228
|
-
* The
|
|
263
|
+
* The user who last updated the object.
|
|
229
264
|
*/
|
|
230
|
-
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
export type Categories = {
|
|
234
|
-
id?: string | undefined;
|
|
265
|
+
updatedBy?: string | null | undefined;
|
|
235
266
|
/**
|
|
236
|
-
* The
|
|
267
|
+
* The user who created the object.
|
|
237
268
|
*/
|
|
238
|
-
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
export type SubAccounts = {
|
|
269
|
+
createdBy?: string | null | undefined;
|
|
242
270
|
/**
|
|
243
|
-
* The
|
|
271
|
+
* The date and time when the object was last updated.
|
|
244
272
|
*/
|
|
245
|
-
|
|
273
|
+
updatedAt?: Date | null | undefined;
|
|
246
274
|
/**
|
|
247
|
-
* The
|
|
275
|
+
* The date and time when the object was created.
|
|
248
276
|
*/
|
|
249
|
-
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
export type LedgerAccount = {
|
|
277
|
+
createdAt?: Date | null | undefined;
|
|
253
278
|
/**
|
|
254
|
-
*
|
|
279
|
+
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
255
280
|
*/
|
|
256
|
-
|
|
281
|
+
passThrough?: Array<PassThroughBody> | undefined;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export type LedgerAccountInput = {
|
|
257
285
|
/**
|
|
258
286
|
* The human readable display ID used when displaying the account
|
|
259
287
|
*/
|
|
@@ -308,7 +336,7 @@ export type LedgerAccount = {
|
|
|
308
336
|
* The tax type of the account.
|
|
309
337
|
*/
|
|
310
338
|
taxType?: string | null | undefined;
|
|
311
|
-
taxRate?:
|
|
339
|
+
taxRate?: LinkedTaxRateInput | undefined;
|
|
312
340
|
level?: number | null | undefined;
|
|
313
341
|
/**
|
|
314
342
|
* Whether the account is active or not.
|
|
@@ -323,19 +351,11 @@ export type LedgerAccount = {
|
|
|
323
351
|
*/
|
|
324
352
|
header?: boolean | null | undefined;
|
|
325
353
|
bankAccount?: BankAccount | undefined;
|
|
326
|
-
/**
|
|
327
|
-
* The categories of the account.
|
|
328
|
-
*/
|
|
329
|
-
categories?: Array<Categories> | undefined;
|
|
330
354
|
parentAccount?: ParentAccount | undefined;
|
|
331
355
|
/**
|
|
332
356
|
* Whether the account is a sub account or not.
|
|
333
357
|
*/
|
|
334
358
|
subAccount?: boolean | null | undefined;
|
|
335
|
-
/**
|
|
336
|
-
* The sub accounts of the account.
|
|
337
|
-
*/
|
|
338
|
-
subAccounts?: Array<SubAccounts> | undefined;
|
|
339
359
|
/**
|
|
340
360
|
* Reconciliation Date means the last calendar day of each Reconciliation Period.
|
|
341
361
|
*/
|
|
@@ -344,31 +364,11 @@ export type LedgerAccount = {
|
|
|
344
364
|
* The subsidiaries the account belongs to.
|
|
345
365
|
*/
|
|
346
366
|
subsidiaries?: Array<LedgerAccountSubsidiaries> | undefined;
|
|
347
|
-
/**
|
|
348
|
-
* When custom mappings are configured on the resource, the result is included here.
|
|
349
|
-
*/
|
|
350
|
-
customMappings?: CustomMappings | null | undefined;
|
|
351
367
|
customFields?: Array<CustomField> | undefined;
|
|
352
368
|
/**
|
|
353
369
|
* 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.
|
|
354
370
|
*/
|
|
355
371
|
rowVersion?: string | null | undefined;
|
|
356
|
-
/**
|
|
357
|
-
* The user who last updated the object.
|
|
358
|
-
*/
|
|
359
|
-
updatedBy?: string | null | undefined;
|
|
360
|
-
/**
|
|
361
|
-
* The user who created the object.
|
|
362
|
-
*/
|
|
363
|
-
createdBy?: string | null | undefined;
|
|
364
|
-
/**
|
|
365
|
-
* The date and time when the object was last updated.
|
|
366
|
-
*/
|
|
367
|
-
updatedAt?: Date | null | undefined;
|
|
368
|
-
/**
|
|
369
|
-
* The date and time when the object was created.
|
|
370
|
-
*/
|
|
371
|
-
createdAt?: Date | null | undefined;
|
|
372
372
|
/**
|
|
373
373
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
374
374
|
*/
|
|
@@ -438,6 +438,59 @@ export namespace AccountStatus$ {
|
|
|
438
438
|
export const outboundSchema = AccountStatus$outboundSchema;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
+
/** @internal */
|
|
442
|
+
export const Categories$inboundSchema: z.ZodType<
|
|
443
|
+
Categories,
|
|
444
|
+
z.ZodTypeDef,
|
|
445
|
+
unknown
|
|
446
|
+
> = z.object({
|
|
447
|
+
id: z.string().optional(),
|
|
448
|
+
name: z.string().optional(),
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
/** @internal */
|
|
452
|
+
export type Categories$Outbound = {
|
|
453
|
+
id?: string | undefined;
|
|
454
|
+
name?: string | undefined;
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
/** @internal */
|
|
458
|
+
export const Categories$outboundSchema: z.ZodType<
|
|
459
|
+
Categories$Outbound,
|
|
460
|
+
z.ZodTypeDef,
|
|
461
|
+
Categories
|
|
462
|
+
> = z.object({
|
|
463
|
+
id: z.string().optional(),
|
|
464
|
+
name: z.string().optional(),
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @internal
|
|
469
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
470
|
+
*/
|
|
471
|
+
export namespace Categories$ {
|
|
472
|
+
/** @deprecated use `Categories$inboundSchema` instead. */
|
|
473
|
+
export const inboundSchema = Categories$inboundSchema;
|
|
474
|
+
/** @deprecated use `Categories$outboundSchema` instead. */
|
|
475
|
+
export const outboundSchema = Categories$outboundSchema;
|
|
476
|
+
/** @deprecated use `Categories$Outbound` instead. */
|
|
477
|
+
export type Outbound = Categories$Outbound;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export function categoriesToJSON(categories: Categories): string {
|
|
481
|
+
return JSON.stringify(Categories$outboundSchema.parse(categories));
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export function categoriesFromJSON(
|
|
485
|
+
jsonString: string,
|
|
486
|
+
): SafeParseResult<Categories, SDKValidationError> {
|
|
487
|
+
return safeParse(
|
|
488
|
+
jsonString,
|
|
489
|
+
(x) => Categories$inboundSchema.parse(JSON.parse(x)),
|
|
490
|
+
`Failed to parse 'Categories' from JSON`,
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
|
|
441
494
|
/** @internal */
|
|
442
495
|
export const ParentAccount$inboundSchema: z.ZodType<
|
|
443
496
|
ParentAccount,
|
|
@@ -502,6 +555,67 @@ export function parentAccountFromJSON(
|
|
|
502
555
|
);
|
|
503
556
|
}
|
|
504
557
|
|
|
558
|
+
/** @internal */
|
|
559
|
+
export const SubAccounts$inboundSchema: z.ZodType<
|
|
560
|
+
SubAccounts,
|
|
561
|
+
z.ZodTypeDef,
|
|
562
|
+
unknown
|
|
563
|
+
> = z.object({
|
|
564
|
+
id: z.string().optional(),
|
|
565
|
+
account_sub_name: z.string().optional(),
|
|
566
|
+
}).transform((v) => {
|
|
567
|
+
return remap$(v, {
|
|
568
|
+
"account_sub_name": "accountSubName",
|
|
569
|
+
});
|
|
570
|
+
});
|
|
571
|
+
|
|
572
|
+
/** @internal */
|
|
573
|
+
export type SubAccounts$Outbound = {
|
|
574
|
+
id?: string | undefined;
|
|
575
|
+
account_sub_name?: string | undefined;
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
/** @internal */
|
|
579
|
+
export const SubAccounts$outboundSchema: z.ZodType<
|
|
580
|
+
SubAccounts$Outbound,
|
|
581
|
+
z.ZodTypeDef,
|
|
582
|
+
SubAccounts
|
|
583
|
+
> = z.object({
|
|
584
|
+
id: z.string().optional(),
|
|
585
|
+
accountSubName: z.string().optional(),
|
|
586
|
+
}).transform((v) => {
|
|
587
|
+
return remap$(v, {
|
|
588
|
+
accountSubName: "account_sub_name",
|
|
589
|
+
});
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @internal
|
|
594
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
595
|
+
*/
|
|
596
|
+
export namespace SubAccounts$ {
|
|
597
|
+
/** @deprecated use `SubAccounts$inboundSchema` instead. */
|
|
598
|
+
export const inboundSchema = SubAccounts$inboundSchema;
|
|
599
|
+
/** @deprecated use `SubAccounts$outboundSchema` instead. */
|
|
600
|
+
export const outboundSchema = SubAccounts$outboundSchema;
|
|
601
|
+
/** @deprecated use `SubAccounts$Outbound` instead. */
|
|
602
|
+
export type Outbound = SubAccounts$Outbound;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export function subAccountsToJSON(subAccounts: SubAccounts): string {
|
|
606
|
+
return JSON.stringify(SubAccounts$outboundSchema.parse(subAccounts));
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export function subAccountsFromJSON(
|
|
610
|
+
jsonString: string,
|
|
611
|
+
): SafeParseResult<SubAccounts, SDKValidationError> {
|
|
612
|
+
return safeParse(
|
|
613
|
+
jsonString,
|
|
614
|
+
(x) => SubAccounts$inboundSchema.parse(JSON.parse(x)),
|
|
615
|
+
`Failed to parse 'SubAccounts' from JSON`,
|
|
616
|
+
);
|
|
617
|
+
}
|
|
618
|
+
|
|
505
619
|
/** @internal */
|
|
506
620
|
export const LedgerAccountSubsidiaries$inboundSchema: z.ZodType<
|
|
507
621
|
LedgerAccountSubsidiaries,
|
|
@@ -557,11 +671,12 @@ export function ledgerAccountSubsidiariesFromJSON(
|
|
|
557
671
|
}
|
|
558
672
|
|
|
559
673
|
/** @internal */
|
|
560
|
-
export const
|
|
561
|
-
|
|
674
|
+
export const LedgerAccount$inboundSchema: z.ZodType<
|
|
675
|
+
LedgerAccount,
|
|
562
676
|
z.ZodTypeDef,
|
|
563
677
|
unknown
|
|
564
678
|
> = z.object({
|
|
679
|
+
id: z.string().optional(),
|
|
565
680
|
display_id: z.string().optional(),
|
|
566
681
|
nominal_code: z.nullable(z.string()).optional(),
|
|
567
682
|
code: z.nullable(z.string()).optional(),
|
|
@@ -575,21 +690,32 @@ export const LedgerAccountInput$inboundSchema: z.ZodType<
|
|
|
575
690
|
current_balance: z.nullable(z.number()).optional(),
|
|
576
691
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
577
692
|
tax_type: z.nullable(z.string()).optional(),
|
|
578
|
-
tax_rate:
|
|
693
|
+
tax_rate: LinkedTaxRate$inboundSchema.optional(),
|
|
579
694
|
level: z.nullable(z.number()).optional(),
|
|
580
695
|
active: z.nullable(z.boolean()).optional(),
|
|
581
696
|
status: z.nullable(AccountStatus$inboundSchema).optional(),
|
|
582
697
|
header: z.nullable(z.boolean()).optional(),
|
|
583
698
|
bank_account: BankAccount$inboundSchema.optional(),
|
|
699
|
+
categories: z.array(z.lazy(() => Categories$inboundSchema)).optional(),
|
|
584
700
|
parent_account: z.lazy(() => ParentAccount$inboundSchema).optional(),
|
|
585
701
|
sub_account: z.nullable(z.boolean()).optional(),
|
|
702
|
+
sub_accounts: z.array(z.lazy(() => SubAccounts$inboundSchema)).optional(),
|
|
586
703
|
last_reconciliation_date: z.nullable(
|
|
587
704
|
z.string().transform(v => new RFCDate(v)),
|
|
588
705
|
).optional(),
|
|
589
706
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$inboundSchema))
|
|
590
707
|
.optional(),
|
|
708
|
+
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
591
709
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
592
710
|
row_version: z.nullable(z.string()).optional(),
|
|
711
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
712
|
+
created_by: z.nullable(z.string()).optional(),
|
|
713
|
+
updated_at: z.nullable(
|
|
714
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
715
|
+
).optional(),
|
|
716
|
+
created_at: z.nullable(
|
|
717
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
718
|
+
).optional(),
|
|
593
719
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
594
720
|
}).transform((v) => {
|
|
595
721
|
return remap$(v, {
|
|
@@ -604,15 +730,22 @@ export const LedgerAccountInput$inboundSchema: z.ZodType<
|
|
|
604
730
|
"bank_account": "bankAccount",
|
|
605
731
|
"parent_account": "parentAccount",
|
|
606
732
|
"sub_account": "subAccount",
|
|
733
|
+
"sub_accounts": "subAccounts",
|
|
607
734
|
"last_reconciliation_date": "lastReconciliationDate",
|
|
735
|
+
"custom_mappings": "customMappings",
|
|
608
736
|
"custom_fields": "customFields",
|
|
609
737
|
"row_version": "rowVersion",
|
|
738
|
+
"updated_by": "updatedBy",
|
|
739
|
+
"created_by": "createdBy",
|
|
740
|
+
"updated_at": "updatedAt",
|
|
741
|
+
"created_at": "createdAt",
|
|
610
742
|
"pass_through": "passThrough",
|
|
611
743
|
});
|
|
612
744
|
});
|
|
613
745
|
|
|
614
746
|
/** @internal */
|
|
615
|
-
export type
|
|
747
|
+
export type LedgerAccount$Outbound = {
|
|
748
|
+
id?: string | undefined;
|
|
616
749
|
display_id?: string | undefined;
|
|
617
750
|
nominal_code?: string | null | undefined;
|
|
618
751
|
code?: string | null | undefined;
|
|
@@ -626,27 +759,35 @@ export type LedgerAccountInput$Outbound = {
|
|
|
626
759
|
current_balance?: number | null | undefined;
|
|
627
760
|
currency?: string | null | undefined;
|
|
628
761
|
tax_type?: string | null | undefined;
|
|
629
|
-
tax_rate?:
|
|
762
|
+
tax_rate?: LinkedTaxRate$Outbound | undefined;
|
|
630
763
|
level?: number | null | undefined;
|
|
631
764
|
active?: boolean | null | undefined;
|
|
632
765
|
status?: string | null | undefined;
|
|
633
766
|
header?: boolean | null | undefined;
|
|
634
767
|
bank_account?: BankAccount$Outbound | undefined;
|
|
768
|
+
categories?: Array<Categories$Outbound> | undefined;
|
|
635
769
|
parent_account?: ParentAccount$Outbound | undefined;
|
|
636
770
|
sub_account?: boolean | null | undefined;
|
|
771
|
+
sub_accounts?: Array<SubAccounts$Outbound> | undefined;
|
|
637
772
|
last_reconciliation_date?: string | null | undefined;
|
|
638
773
|
subsidiaries?: Array<LedgerAccountSubsidiaries$Outbound> | undefined;
|
|
774
|
+
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
639
775
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
640
776
|
row_version?: string | null | undefined;
|
|
777
|
+
updated_by?: string | null | undefined;
|
|
778
|
+
created_by?: string | null | undefined;
|
|
779
|
+
updated_at?: string | null | undefined;
|
|
780
|
+
created_at?: string | null | undefined;
|
|
641
781
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
642
782
|
};
|
|
643
783
|
|
|
644
784
|
/** @internal */
|
|
645
|
-
export const
|
|
646
|
-
|
|
785
|
+
export const LedgerAccount$outboundSchema: z.ZodType<
|
|
786
|
+
LedgerAccount$Outbound,
|
|
647
787
|
z.ZodTypeDef,
|
|
648
|
-
|
|
788
|
+
LedgerAccount
|
|
649
789
|
> = z.object({
|
|
790
|
+
id: z.string().optional(),
|
|
650
791
|
displayId: z.string().optional(),
|
|
651
792
|
nominalCode: z.nullable(z.string()).optional(),
|
|
652
793
|
code: z.nullable(z.string()).optional(),
|
|
@@ -660,21 +801,28 @@ export const LedgerAccountInput$outboundSchema: z.ZodType<
|
|
|
660
801
|
currentBalance: z.nullable(z.number()).optional(),
|
|
661
802
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
662
803
|
taxType: z.nullable(z.string()).optional(),
|
|
663
|
-
taxRate:
|
|
804
|
+
taxRate: LinkedTaxRate$outboundSchema.optional(),
|
|
664
805
|
level: z.nullable(z.number()).optional(),
|
|
665
806
|
active: z.nullable(z.boolean()).optional(),
|
|
666
807
|
status: z.nullable(AccountStatus$outboundSchema).optional(),
|
|
667
808
|
header: z.nullable(z.boolean()).optional(),
|
|
668
809
|
bankAccount: BankAccount$outboundSchema.optional(),
|
|
810
|
+
categories: z.array(z.lazy(() => Categories$outboundSchema)).optional(),
|
|
669
811
|
parentAccount: z.lazy(() => ParentAccount$outboundSchema).optional(),
|
|
670
812
|
subAccount: z.nullable(z.boolean()).optional(),
|
|
813
|
+
subAccounts: z.array(z.lazy(() => SubAccounts$outboundSchema)).optional(),
|
|
671
814
|
lastReconciliationDate: z.nullable(
|
|
672
815
|
z.instanceof(RFCDate).transform(v => v.toString()),
|
|
673
816
|
).optional(),
|
|
674
817
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$outboundSchema))
|
|
675
818
|
.optional(),
|
|
819
|
+
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
676
820
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
677
821
|
rowVersion: z.nullable(z.string()).optional(),
|
|
822
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
823
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
824
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
825
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
678
826
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
679
827
|
}).transform((v) => {
|
|
680
828
|
return remap$(v, {
|
|
@@ -689,9 +837,15 @@ export const LedgerAccountInput$outboundSchema: z.ZodType<
|
|
|
689
837
|
bankAccount: "bank_account",
|
|
690
838
|
parentAccount: "parent_account",
|
|
691
839
|
subAccount: "sub_account",
|
|
840
|
+
subAccounts: "sub_accounts",
|
|
692
841
|
lastReconciliationDate: "last_reconciliation_date",
|
|
842
|
+
customMappings: "custom_mappings",
|
|
693
843
|
customFields: "custom_fields",
|
|
694
844
|
rowVersion: "row_version",
|
|
845
|
+
updatedBy: "updated_by",
|
|
846
|
+
createdBy: "created_by",
|
|
847
|
+
updatedAt: "updated_at",
|
|
848
|
+
createdAt: "created_at",
|
|
695
849
|
passThrough: "pass_through",
|
|
696
850
|
});
|
|
697
851
|
});
|
|
@@ -700,154 +854,35 @@ export const LedgerAccountInput$outboundSchema: z.ZodType<
|
|
|
700
854
|
* @internal
|
|
701
855
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
702
856
|
*/
|
|
703
|
-
export namespace
|
|
704
|
-
/** @deprecated use `
|
|
705
|
-
export const inboundSchema =
|
|
706
|
-
/** @deprecated use `
|
|
707
|
-
export const outboundSchema =
|
|
708
|
-
/** @deprecated use `
|
|
709
|
-
export type Outbound =
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
export function ledgerAccountInputToJSON(
|
|
713
|
-
ledgerAccountInput: LedgerAccountInput,
|
|
714
|
-
): string {
|
|
715
|
-
return JSON.stringify(
|
|
716
|
-
LedgerAccountInput$outboundSchema.parse(ledgerAccountInput),
|
|
717
|
-
);
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
export function ledgerAccountInputFromJSON(
|
|
721
|
-
jsonString: string,
|
|
722
|
-
): SafeParseResult<LedgerAccountInput, SDKValidationError> {
|
|
723
|
-
return safeParse(
|
|
724
|
-
jsonString,
|
|
725
|
-
(x) => LedgerAccountInput$inboundSchema.parse(JSON.parse(x)),
|
|
726
|
-
`Failed to parse 'LedgerAccountInput' from JSON`,
|
|
727
|
-
);
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
/** @internal */
|
|
731
|
-
export const Categories$inboundSchema: z.ZodType<
|
|
732
|
-
Categories,
|
|
733
|
-
z.ZodTypeDef,
|
|
734
|
-
unknown
|
|
735
|
-
> = z.object({
|
|
736
|
-
id: z.string().optional(),
|
|
737
|
-
name: z.string().optional(),
|
|
738
|
-
});
|
|
739
|
-
|
|
740
|
-
/** @internal */
|
|
741
|
-
export type Categories$Outbound = {
|
|
742
|
-
id?: string | undefined;
|
|
743
|
-
name?: string | undefined;
|
|
744
|
-
};
|
|
745
|
-
|
|
746
|
-
/** @internal */
|
|
747
|
-
export const Categories$outboundSchema: z.ZodType<
|
|
748
|
-
Categories$Outbound,
|
|
749
|
-
z.ZodTypeDef,
|
|
750
|
-
Categories
|
|
751
|
-
> = z.object({
|
|
752
|
-
id: z.string().optional(),
|
|
753
|
-
name: z.string().optional(),
|
|
754
|
-
});
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
* @internal
|
|
758
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
759
|
-
*/
|
|
760
|
-
export namespace Categories$ {
|
|
761
|
-
/** @deprecated use `Categories$inboundSchema` instead. */
|
|
762
|
-
export const inboundSchema = Categories$inboundSchema;
|
|
763
|
-
/** @deprecated use `Categories$outboundSchema` instead. */
|
|
764
|
-
export const outboundSchema = Categories$outboundSchema;
|
|
765
|
-
/** @deprecated use `Categories$Outbound` instead. */
|
|
766
|
-
export type Outbound = Categories$Outbound;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
export function categoriesToJSON(categories: Categories): string {
|
|
770
|
-
return JSON.stringify(Categories$outboundSchema.parse(categories));
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
export function categoriesFromJSON(
|
|
774
|
-
jsonString: string,
|
|
775
|
-
): SafeParseResult<Categories, SDKValidationError> {
|
|
776
|
-
return safeParse(
|
|
777
|
-
jsonString,
|
|
778
|
-
(x) => Categories$inboundSchema.parse(JSON.parse(x)),
|
|
779
|
-
`Failed to parse 'Categories' from JSON`,
|
|
780
|
-
);
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
/** @internal */
|
|
784
|
-
export const SubAccounts$inboundSchema: z.ZodType<
|
|
785
|
-
SubAccounts,
|
|
786
|
-
z.ZodTypeDef,
|
|
787
|
-
unknown
|
|
788
|
-
> = z.object({
|
|
789
|
-
id: z.string().optional(),
|
|
790
|
-
account_sub_name: z.string().optional(),
|
|
791
|
-
}).transform((v) => {
|
|
792
|
-
return remap$(v, {
|
|
793
|
-
"account_sub_name": "accountSubName",
|
|
794
|
-
});
|
|
795
|
-
});
|
|
796
|
-
|
|
797
|
-
/** @internal */
|
|
798
|
-
export type SubAccounts$Outbound = {
|
|
799
|
-
id?: string | undefined;
|
|
800
|
-
account_sub_name?: string | undefined;
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
/** @internal */
|
|
804
|
-
export const SubAccounts$outboundSchema: z.ZodType<
|
|
805
|
-
SubAccounts$Outbound,
|
|
806
|
-
z.ZodTypeDef,
|
|
807
|
-
SubAccounts
|
|
808
|
-
> = z.object({
|
|
809
|
-
id: z.string().optional(),
|
|
810
|
-
accountSubName: z.string().optional(),
|
|
811
|
-
}).transform((v) => {
|
|
812
|
-
return remap$(v, {
|
|
813
|
-
accountSubName: "account_sub_name",
|
|
814
|
-
});
|
|
815
|
-
});
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* @internal
|
|
819
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
820
|
-
*/
|
|
821
|
-
export namespace SubAccounts$ {
|
|
822
|
-
/** @deprecated use `SubAccounts$inboundSchema` instead. */
|
|
823
|
-
export const inboundSchema = SubAccounts$inboundSchema;
|
|
824
|
-
/** @deprecated use `SubAccounts$outboundSchema` instead. */
|
|
825
|
-
export const outboundSchema = SubAccounts$outboundSchema;
|
|
826
|
-
/** @deprecated use `SubAccounts$Outbound` instead. */
|
|
827
|
-
export type Outbound = SubAccounts$Outbound;
|
|
857
|
+
export namespace LedgerAccount$ {
|
|
858
|
+
/** @deprecated use `LedgerAccount$inboundSchema` instead. */
|
|
859
|
+
export const inboundSchema = LedgerAccount$inboundSchema;
|
|
860
|
+
/** @deprecated use `LedgerAccount$outboundSchema` instead. */
|
|
861
|
+
export const outboundSchema = LedgerAccount$outboundSchema;
|
|
862
|
+
/** @deprecated use `LedgerAccount$Outbound` instead. */
|
|
863
|
+
export type Outbound = LedgerAccount$Outbound;
|
|
828
864
|
}
|
|
829
865
|
|
|
830
|
-
export function
|
|
831
|
-
return JSON.stringify(
|
|
866
|
+
export function ledgerAccountToJSON(ledgerAccount: LedgerAccount): string {
|
|
867
|
+
return JSON.stringify(LedgerAccount$outboundSchema.parse(ledgerAccount));
|
|
832
868
|
}
|
|
833
869
|
|
|
834
|
-
export function
|
|
870
|
+
export function ledgerAccountFromJSON(
|
|
835
871
|
jsonString: string,
|
|
836
|
-
): SafeParseResult<
|
|
872
|
+
): SafeParseResult<LedgerAccount, SDKValidationError> {
|
|
837
873
|
return safeParse(
|
|
838
874
|
jsonString,
|
|
839
|
-
(x) =>
|
|
840
|
-
`Failed to parse '
|
|
875
|
+
(x) => LedgerAccount$inboundSchema.parse(JSON.parse(x)),
|
|
876
|
+
`Failed to parse 'LedgerAccount' from JSON`,
|
|
841
877
|
);
|
|
842
878
|
}
|
|
843
879
|
|
|
844
880
|
/** @internal */
|
|
845
|
-
export const
|
|
846
|
-
|
|
881
|
+
export const LedgerAccountInput$inboundSchema: z.ZodType<
|
|
882
|
+
LedgerAccountInput,
|
|
847
883
|
z.ZodTypeDef,
|
|
848
884
|
unknown
|
|
849
885
|
> = z.object({
|
|
850
|
-
id: z.string().optional(),
|
|
851
886
|
display_id: z.string().optional(),
|
|
852
887
|
nominal_code: z.nullable(z.string()).optional(),
|
|
853
888
|
code: z.nullable(z.string()).optional(),
|
|
@@ -861,32 +896,21 @@ export const LedgerAccount$inboundSchema: z.ZodType<
|
|
|
861
896
|
current_balance: z.nullable(z.number()).optional(),
|
|
862
897
|
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
863
898
|
tax_type: z.nullable(z.string()).optional(),
|
|
864
|
-
tax_rate:
|
|
899
|
+
tax_rate: LinkedTaxRateInput$inboundSchema.optional(),
|
|
865
900
|
level: z.nullable(z.number()).optional(),
|
|
866
901
|
active: z.nullable(z.boolean()).optional(),
|
|
867
902
|
status: z.nullable(AccountStatus$inboundSchema).optional(),
|
|
868
903
|
header: z.nullable(z.boolean()).optional(),
|
|
869
904
|
bank_account: BankAccount$inboundSchema.optional(),
|
|
870
|
-
categories: z.array(z.lazy(() => Categories$inboundSchema)).optional(),
|
|
871
905
|
parent_account: z.lazy(() => ParentAccount$inboundSchema).optional(),
|
|
872
906
|
sub_account: z.nullable(z.boolean()).optional(),
|
|
873
|
-
sub_accounts: z.array(z.lazy(() => SubAccounts$inboundSchema)).optional(),
|
|
874
907
|
last_reconciliation_date: z.nullable(
|
|
875
908
|
z.string().transform(v => new RFCDate(v)),
|
|
876
909
|
).optional(),
|
|
877
910
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$inboundSchema))
|
|
878
911
|
.optional(),
|
|
879
|
-
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
880
912
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
881
913
|
row_version: z.nullable(z.string()).optional(),
|
|
882
|
-
updated_by: z.nullable(z.string()).optional(),
|
|
883
|
-
created_by: z.nullable(z.string()).optional(),
|
|
884
|
-
updated_at: z.nullable(
|
|
885
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
886
|
-
).optional(),
|
|
887
|
-
created_at: z.nullable(
|
|
888
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
889
|
-
).optional(),
|
|
890
914
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
891
915
|
}).transform((v) => {
|
|
892
916
|
return remap$(v, {
|
|
@@ -901,22 +925,15 @@ export const LedgerAccount$inboundSchema: z.ZodType<
|
|
|
901
925
|
"bank_account": "bankAccount",
|
|
902
926
|
"parent_account": "parentAccount",
|
|
903
927
|
"sub_account": "subAccount",
|
|
904
|
-
"sub_accounts": "subAccounts",
|
|
905
928
|
"last_reconciliation_date": "lastReconciliationDate",
|
|
906
|
-
"custom_mappings": "customMappings",
|
|
907
929
|
"custom_fields": "customFields",
|
|
908
930
|
"row_version": "rowVersion",
|
|
909
|
-
"updated_by": "updatedBy",
|
|
910
|
-
"created_by": "createdBy",
|
|
911
|
-
"updated_at": "updatedAt",
|
|
912
|
-
"created_at": "createdAt",
|
|
913
931
|
"pass_through": "passThrough",
|
|
914
932
|
});
|
|
915
933
|
});
|
|
916
934
|
|
|
917
935
|
/** @internal */
|
|
918
|
-
export type
|
|
919
|
-
id?: string | undefined;
|
|
936
|
+
export type LedgerAccountInput$Outbound = {
|
|
920
937
|
display_id?: string | undefined;
|
|
921
938
|
nominal_code?: string | null | undefined;
|
|
922
939
|
code?: string | null | undefined;
|
|
@@ -930,35 +947,27 @@ export type LedgerAccount$Outbound = {
|
|
|
930
947
|
current_balance?: number | null | undefined;
|
|
931
948
|
currency?: string | null | undefined;
|
|
932
949
|
tax_type?: string | null | undefined;
|
|
933
|
-
tax_rate?:
|
|
950
|
+
tax_rate?: LinkedTaxRateInput$Outbound | undefined;
|
|
934
951
|
level?: number | null | undefined;
|
|
935
952
|
active?: boolean | null | undefined;
|
|
936
953
|
status?: string | null | undefined;
|
|
937
954
|
header?: boolean | null | undefined;
|
|
938
955
|
bank_account?: BankAccount$Outbound | undefined;
|
|
939
|
-
categories?: Array<Categories$Outbound> | undefined;
|
|
940
956
|
parent_account?: ParentAccount$Outbound | undefined;
|
|
941
957
|
sub_account?: boolean | null | undefined;
|
|
942
|
-
sub_accounts?: Array<SubAccounts$Outbound> | undefined;
|
|
943
958
|
last_reconciliation_date?: string | null | undefined;
|
|
944
959
|
subsidiaries?: Array<LedgerAccountSubsidiaries$Outbound> | undefined;
|
|
945
|
-
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
946
960
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
947
961
|
row_version?: string | null | undefined;
|
|
948
|
-
updated_by?: string | null | undefined;
|
|
949
|
-
created_by?: string | null | undefined;
|
|
950
|
-
updated_at?: string | null | undefined;
|
|
951
|
-
created_at?: string | null | undefined;
|
|
952
962
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
953
963
|
};
|
|
954
964
|
|
|
955
965
|
/** @internal */
|
|
956
|
-
export const
|
|
957
|
-
|
|
966
|
+
export const LedgerAccountInput$outboundSchema: z.ZodType<
|
|
967
|
+
LedgerAccountInput$Outbound,
|
|
958
968
|
z.ZodTypeDef,
|
|
959
|
-
|
|
969
|
+
LedgerAccountInput
|
|
960
970
|
> = z.object({
|
|
961
|
-
id: z.string().optional(),
|
|
962
971
|
displayId: z.string().optional(),
|
|
963
972
|
nominalCode: z.nullable(z.string()).optional(),
|
|
964
973
|
code: z.nullable(z.string()).optional(),
|
|
@@ -972,28 +981,21 @@ export const LedgerAccount$outboundSchema: z.ZodType<
|
|
|
972
981
|
currentBalance: z.nullable(z.number()).optional(),
|
|
973
982
|
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
974
983
|
taxType: z.nullable(z.string()).optional(),
|
|
975
|
-
taxRate:
|
|
984
|
+
taxRate: LinkedTaxRateInput$outboundSchema.optional(),
|
|
976
985
|
level: z.nullable(z.number()).optional(),
|
|
977
986
|
active: z.nullable(z.boolean()).optional(),
|
|
978
987
|
status: z.nullable(AccountStatus$outboundSchema).optional(),
|
|
979
988
|
header: z.nullable(z.boolean()).optional(),
|
|
980
989
|
bankAccount: BankAccount$outboundSchema.optional(),
|
|
981
|
-
categories: z.array(z.lazy(() => Categories$outboundSchema)).optional(),
|
|
982
990
|
parentAccount: z.lazy(() => ParentAccount$outboundSchema).optional(),
|
|
983
991
|
subAccount: z.nullable(z.boolean()).optional(),
|
|
984
|
-
subAccounts: z.array(z.lazy(() => SubAccounts$outboundSchema)).optional(),
|
|
985
992
|
lastReconciliationDate: z.nullable(
|
|
986
993
|
z.instanceof(RFCDate).transform(v => v.toString()),
|
|
987
994
|
).optional(),
|
|
988
995
|
subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$outboundSchema))
|
|
989
996
|
.optional(),
|
|
990
|
-
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
991
997
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
992
998
|
rowVersion: z.nullable(z.string()).optional(),
|
|
993
|
-
updatedBy: z.nullable(z.string()).optional(),
|
|
994
|
-
createdBy: z.nullable(z.string()).optional(),
|
|
995
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
996
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
997
999
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
998
1000
|
}).transform((v) => {
|
|
999
1001
|
return remap$(v, {
|
|
@@ -1008,15 +1010,9 @@ export const LedgerAccount$outboundSchema: z.ZodType<
|
|
|
1008
1010
|
bankAccount: "bank_account",
|
|
1009
1011
|
parentAccount: "parent_account",
|
|
1010
1012
|
subAccount: "sub_account",
|
|
1011
|
-
subAccounts: "sub_accounts",
|
|
1012
1013
|
lastReconciliationDate: "last_reconciliation_date",
|
|
1013
|
-
customMappings: "custom_mappings",
|
|
1014
1014
|
customFields: "custom_fields",
|
|
1015
1015
|
rowVersion: "row_version",
|
|
1016
|
-
updatedBy: "updated_by",
|
|
1017
|
-
createdBy: "created_by",
|
|
1018
|
-
updatedAt: "updated_at",
|
|
1019
|
-
createdAt: "created_at",
|
|
1020
1016
|
passThrough: "pass_through",
|
|
1021
1017
|
});
|
|
1022
1018
|
});
|
|
@@ -1025,25 +1021,29 @@ export const LedgerAccount$outboundSchema: z.ZodType<
|
|
|
1025
1021
|
* @internal
|
|
1026
1022
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1027
1023
|
*/
|
|
1028
|
-
export namespace
|
|
1029
|
-
/** @deprecated use `
|
|
1030
|
-
export const inboundSchema =
|
|
1031
|
-
/** @deprecated use `
|
|
1032
|
-
export const outboundSchema =
|
|
1033
|
-
/** @deprecated use `
|
|
1034
|
-
export type Outbound =
|
|
1024
|
+
export namespace LedgerAccountInput$ {
|
|
1025
|
+
/** @deprecated use `LedgerAccountInput$inboundSchema` instead. */
|
|
1026
|
+
export const inboundSchema = LedgerAccountInput$inboundSchema;
|
|
1027
|
+
/** @deprecated use `LedgerAccountInput$outboundSchema` instead. */
|
|
1028
|
+
export const outboundSchema = LedgerAccountInput$outboundSchema;
|
|
1029
|
+
/** @deprecated use `LedgerAccountInput$Outbound` instead. */
|
|
1030
|
+
export type Outbound = LedgerAccountInput$Outbound;
|
|
1035
1031
|
}
|
|
1036
1032
|
|
|
1037
|
-
export function
|
|
1038
|
-
|
|
1033
|
+
export function ledgerAccountInputToJSON(
|
|
1034
|
+
ledgerAccountInput: LedgerAccountInput,
|
|
1035
|
+
): string {
|
|
1036
|
+
return JSON.stringify(
|
|
1037
|
+
LedgerAccountInput$outboundSchema.parse(ledgerAccountInput),
|
|
1038
|
+
);
|
|
1039
1039
|
}
|
|
1040
1040
|
|
|
1041
|
-
export function
|
|
1041
|
+
export function ledgerAccountInputFromJSON(
|
|
1042
1042
|
jsonString: string,
|
|
1043
|
-
): SafeParseResult<
|
|
1043
|
+
): SafeParseResult<LedgerAccountInput, SDKValidationError> {
|
|
1044
1044
|
return safeParse(
|
|
1045
1045
|
jsonString,
|
|
1046
|
-
(x) =>
|
|
1047
|
-
`Failed to parse '
|
|
1046
|
+
(x) => LedgerAccountInput$inboundSchema.parse(JSON.parse(x)),
|
|
1047
|
+
`Failed to parse 'LedgerAccountInput' from JSON`,
|
|
1048
1048
|
);
|
|
1049
1049
|
}
|