@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
|
@@ -33,29 +33,6 @@ export const Scope = {
|
|
|
33
33
|
*/
|
|
34
34
|
export type Scope = ClosedEnum<typeof Scope>;
|
|
35
35
|
|
|
36
|
-
export type SharedLinkInput = {
|
|
37
|
-
/**
|
|
38
|
-
* The URL that can be used to download the file.
|
|
39
|
-
*/
|
|
40
|
-
downloadUrl?: string | null | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* The ID of the file or folder to link.
|
|
43
|
-
*/
|
|
44
|
-
targetId: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* The scope of the shared link.
|
|
47
|
-
*/
|
|
48
|
-
scope?: Scope | null | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Optional password for the shared link.
|
|
51
|
-
*/
|
|
52
|
-
password?: string | null | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
55
|
-
*/
|
|
56
|
-
passThrough?: Array<PassThroughBody> | undefined;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
36
|
export type SharedLink = {
|
|
60
37
|
/**
|
|
61
38
|
* The URL that can be used to view the file.
|
|
@@ -89,6 +66,29 @@ export type SharedLink = {
|
|
|
89
66
|
passThrough?: Array<PassThroughBody> | undefined;
|
|
90
67
|
};
|
|
91
68
|
|
|
69
|
+
export type SharedLinkInput = {
|
|
70
|
+
/**
|
|
71
|
+
* The URL that can be used to download the file.
|
|
72
|
+
*/
|
|
73
|
+
downloadUrl?: string | null | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The ID of the file or folder to link.
|
|
76
|
+
*/
|
|
77
|
+
targetId: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The scope of the shared link.
|
|
80
|
+
*/
|
|
81
|
+
scope?: Scope | null | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Optional password for the shared link.
|
|
84
|
+
*/
|
|
85
|
+
password?: string | null | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
88
|
+
*/
|
|
89
|
+
passThrough?: Array<PassThroughBody> | undefined;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
92
|
/** @internal */
|
|
93
93
|
export const Scope$inboundSchema: z.ZodNativeEnum<typeof Scope> = z.nativeEnum(
|
|
94
94
|
Scope,
|
|
@@ -109,82 +109,6 @@ export namespace Scope$ {
|
|
|
109
109
|
export const outboundSchema = Scope$outboundSchema;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
/** @internal */
|
|
113
|
-
export const SharedLinkInput$inboundSchema: z.ZodType<
|
|
114
|
-
SharedLinkInput,
|
|
115
|
-
z.ZodTypeDef,
|
|
116
|
-
unknown
|
|
117
|
-
> = z.object({
|
|
118
|
-
download_url: z.nullable(z.string()).optional(),
|
|
119
|
-
target_id: z.nullable(z.string()),
|
|
120
|
-
scope: z.nullable(Scope$inboundSchema).optional(),
|
|
121
|
-
password: z.nullable(z.string()).optional(),
|
|
122
|
-
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
123
|
-
}).transform((v) => {
|
|
124
|
-
return remap$(v, {
|
|
125
|
-
"download_url": "downloadUrl",
|
|
126
|
-
"target_id": "targetId",
|
|
127
|
-
"pass_through": "passThrough",
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
/** @internal */
|
|
132
|
-
export type SharedLinkInput$Outbound = {
|
|
133
|
-
download_url?: string | null | undefined;
|
|
134
|
-
target_id: string | null;
|
|
135
|
-
scope?: string | null | undefined;
|
|
136
|
-
password?: string | null | undefined;
|
|
137
|
-
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
/** @internal */
|
|
141
|
-
export const SharedLinkInput$outboundSchema: z.ZodType<
|
|
142
|
-
SharedLinkInput$Outbound,
|
|
143
|
-
z.ZodTypeDef,
|
|
144
|
-
SharedLinkInput
|
|
145
|
-
> = z.object({
|
|
146
|
-
downloadUrl: z.nullable(z.string()).optional(),
|
|
147
|
-
targetId: z.nullable(z.string()),
|
|
148
|
-
scope: z.nullable(Scope$outboundSchema).optional(),
|
|
149
|
-
password: z.nullable(z.string()).optional(),
|
|
150
|
-
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
151
|
-
}).transform((v) => {
|
|
152
|
-
return remap$(v, {
|
|
153
|
-
downloadUrl: "download_url",
|
|
154
|
-
targetId: "target_id",
|
|
155
|
-
passThrough: "pass_through",
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @internal
|
|
161
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
162
|
-
*/
|
|
163
|
-
export namespace SharedLinkInput$ {
|
|
164
|
-
/** @deprecated use `SharedLinkInput$inboundSchema` instead. */
|
|
165
|
-
export const inboundSchema = SharedLinkInput$inboundSchema;
|
|
166
|
-
/** @deprecated use `SharedLinkInput$outboundSchema` instead. */
|
|
167
|
-
export const outboundSchema = SharedLinkInput$outboundSchema;
|
|
168
|
-
/** @deprecated use `SharedLinkInput$Outbound` instead. */
|
|
169
|
-
export type Outbound = SharedLinkInput$Outbound;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export function sharedLinkInputToJSON(
|
|
173
|
-
sharedLinkInput: SharedLinkInput,
|
|
174
|
-
): string {
|
|
175
|
-
return JSON.stringify(SharedLinkInput$outboundSchema.parse(sharedLinkInput));
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export function sharedLinkInputFromJSON(
|
|
179
|
-
jsonString: string,
|
|
180
|
-
): SafeParseResult<SharedLinkInput, SDKValidationError> {
|
|
181
|
-
return safeParse(
|
|
182
|
-
jsonString,
|
|
183
|
-
(x) => SharedLinkInput$inboundSchema.parse(JSON.parse(x)),
|
|
184
|
-
`Failed to parse 'SharedLinkInput' from JSON`,
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
112
|
/** @internal */
|
|
189
113
|
export const SharedLink$inboundSchema: z.ZodType<
|
|
190
114
|
SharedLink,
|
|
@@ -282,3 +206,79 @@ export function sharedLinkFromJSON(
|
|
|
282
206
|
`Failed to parse 'SharedLink' from JSON`,
|
|
283
207
|
);
|
|
284
208
|
}
|
|
209
|
+
|
|
210
|
+
/** @internal */
|
|
211
|
+
export const SharedLinkInput$inboundSchema: z.ZodType<
|
|
212
|
+
SharedLinkInput,
|
|
213
|
+
z.ZodTypeDef,
|
|
214
|
+
unknown
|
|
215
|
+
> = z.object({
|
|
216
|
+
download_url: z.nullable(z.string()).optional(),
|
|
217
|
+
target_id: z.nullable(z.string()),
|
|
218
|
+
scope: z.nullable(Scope$inboundSchema).optional(),
|
|
219
|
+
password: z.nullable(z.string()).optional(),
|
|
220
|
+
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
221
|
+
}).transform((v) => {
|
|
222
|
+
return remap$(v, {
|
|
223
|
+
"download_url": "downloadUrl",
|
|
224
|
+
"target_id": "targetId",
|
|
225
|
+
"pass_through": "passThrough",
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
/** @internal */
|
|
230
|
+
export type SharedLinkInput$Outbound = {
|
|
231
|
+
download_url?: string | null | undefined;
|
|
232
|
+
target_id: string | null;
|
|
233
|
+
scope?: string | null | undefined;
|
|
234
|
+
password?: string | null | undefined;
|
|
235
|
+
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/** @internal */
|
|
239
|
+
export const SharedLinkInput$outboundSchema: z.ZodType<
|
|
240
|
+
SharedLinkInput$Outbound,
|
|
241
|
+
z.ZodTypeDef,
|
|
242
|
+
SharedLinkInput
|
|
243
|
+
> = z.object({
|
|
244
|
+
downloadUrl: z.nullable(z.string()).optional(),
|
|
245
|
+
targetId: z.nullable(z.string()),
|
|
246
|
+
scope: z.nullable(Scope$outboundSchema).optional(),
|
|
247
|
+
password: z.nullable(z.string()).optional(),
|
|
248
|
+
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
249
|
+
}).transform((v) => {
|
|
250
|
+
return remap$(v, {
|
|
251
|
+
downloadUrl: "download_url",
|
|
252
|
+
targetId: "target_id",
|
|
253
|
+
passThrough: "pass_through",
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
260
|
+
*/
|
|
261
|
+
export namespace SharedLinkInput$ {
|
|
262
|
+
/** @deprecated use `SharedLinkInput$inboundSchema` instead. */
|
|
263
|
+
export const inboundSchema = SharedLinkInput$inboundSchema;
|
|
264
|
+
/** @deprecated use `SharedLinkInput$outboundSchema` instead. */
|
|
265
|
+
export const outboundSchema = SharedLinkInput$outboundSchema;
|
|
266
|
+
/** @deprecated use `SharedLinkInput$Outbound` instead. */
|
|
267
|
+
export type Outbound = SharedLinkInput$Outbound;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export function sharedLinkInputToJSON(
|
|
271
|
+
sharedLinkInput: SharedLinkInput,
|
|
272
|
+
): string {
|
|
273
|
+
return JSON.stringify(SharedLinkInput$outboundSchema.parse(sharedLinkInput));
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export function sharedLinkInputFromJSON(
|
|
277
|
+
jsonString: string,
|
|
278
|
+
): SafeParseResult<SharedLinkInput, SDKValidationError> {
|
|
279
|
+
return safeParse(
|
|
280
|
+
jsonString,
|
|
281
|
+
(x) => SharedLinkInput$inboundSchema.parse(JSON.parse(x)),
|
|
282
|
+
`Failed to parse 'SharedLinkInput' from JSON`,
|
|
283
|
+
);
|
|
284
|
+
}
|
|
@@ -54,7 +54,7 @@ export type Subsidiaries = {
|
|
|
54
54
|
id?: string | undefined;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
export type
|
|
57
|
+
export type TaxRate = {
|
|
58
58
|
/**
|
|
59
59
|
* ID assigned to identify this tax rate.
|
|
60
60
|
*/
|
|
@@ -104,10 +104,30 @@ export type TaxRateInput = {
|
|
|
104
104
|
* Tax rate status
|
|
105
105
|
*/
|
|
106
106
|
status?: TaxRateStatus | null | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
109
|
+
*/
|
|
110
|
+
customMappings?: CustomMappings | null | undefined;
|
|
107
111
|
/**
|
|
108
112
|
* 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.
|
|
109
113
|
*/
|
|
110
114
|
rowVersion?: string | null | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* The user who last updated the object.
|
|
117
|
+
*/
|
|
118
|
+
updatedBy?: string | null | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* The user who created the object.
|
|
121
|
+
*/
|
|
122
|
+
createdBy?: string | null | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* The date and time when the object was last updated.
|
|
125
|
+
*/
|
|
126
|
+
updatedAt?: Date | null | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* The date and time when the object was created.
|
|
129
|
+
*/
|
|
130
|
+
createdAt?: Date | null | undefined;
|
|
111
131
|
/**
|
|
112
132
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
113
133
|
*/
|
|
@@ -119,7 +139,7 @@ export type TaxRateInput = {
|
|
|
119
139
|
customFields?: Array<CustomField> | undefined;
|
|
120
140
|
};
|
|
121
141
|
|
|
122
|
-
export type
|
|
142
|
+
export type TaxRateInput = {
|
|
123
143
|
/**
|
|
124
144
|
* ID assigned to identify this tax rate.
|
|
125
145
|
*/
|
|
@@ -169,30 +189,10 @@ export type TaxRate = {
|
|
|
169
189
|
* Tax rate status
|
|
170
190
|
*/
|
|
171
191
|
status?: TaxRateStatus | null | undefined;
|
|
172
|
-
/**
|
|
173
|
-
* When custom mappings are configured on the resource, the result is included here.
|
|
174
|
-
*/
|
|
175
|
-
customMappings?: CustomMappings | null | undefined;
|
|
176
192
|
/**
|
|
177
193
|
* 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.
|
|
178
194
|
*/
|
|
179
195
|
rowVersion?: string | null | undefined;
|
|
180
|
-
/**
|
|
181
|
-
* The user who last updated the object.
|
|
182
|
-
*/
|
|
183
|
-
updatedBy?: string | null | undefined;
|
|
184
|
-
/**
|
|
185
|
-
* The user who created the object.
|
|
186
|
-
*/
|
|
187
|
-
createdBy?: string | null | undefined;
|
|
188
|
-
/**
|
|
189
|
-
* The date and time when the object was last updated.
|
|
190
|
-
*/
|
|
191
|
-
updatedAt?: Date | null | undefined;
|
|
192
|
-
/**
|
|
193
|
-
* The date and time when the object was created.
|
|
194
|
-
*/
|
|
195
|
-
createdAt?: Date | null | undefined;
|
|
196
196
|
/**
|
|
197
197
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
198
198
|
*/
|
|
@@ -334,130 +334,6 @@ export function subsidiariesFromJSON(
|
|
|
334
334
|
);
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
/** @internal */
|
|
338
|
-
export const TaxRateInput$inboundSchema: z.ZodType<
|
|
339
|
-
TaxRateInput,
|
|
340
|
-
z.ZodTypeDef,
|
|
341
|
-
unknown
|
|
342
|
-
> = z.object({
|
|
343
|
-
id: z.nullable(z.string()).optional(),
|
|
344
|
-
name: z.string().optional(),
|
|
345
|
-
code: z.nullable(z.string()).optional(),
|
|
346
|
-
description: z.nullable(z.string()).optional(),
|
|
347
|
-
effective_tax_rate: z.nullable(z.number()).optional(),
|
|
348
|
-
total_tax_rate: z.nullable(z.number()).optional(),
|
|
349
|
-
tax_payable_account_id: z.nullable(z.string()).optional(),
|
|
350
|
-
tax_remitted_account_id: z.nullable(z.string()).optional(),
|
|
351
|
-
components: z.nullable(z.array(z.lazy(() => Components$inboundSchema)))
|
|
352
|
-
.optional(),
|
|
353
|
-
type: z.nullable(z.string()).optional(),
|
|
354
|
-
report_tax_type: z.nullable(z.string()).optional(),
|
|
355
|
-
original_tax_rate_id: z.nullable(z.string()).optional(),
|
|
356
|
-
status: z.nullable(TaxRateStatus$inboundSchema).optional(),
|
|
357
|
-
row_version: z.nullable(z.string()).optional(),
|
|
358
|
-
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
359
|
-
subsidiaries: z.array(z.lazy(() => Subsidiaries$inboundSchema)).optional(),
|
|
360
|
-
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
361
|
-
}).transform((v) => {
|
|
362
|
-
return remap$(v, {
|
|
363
|
-
"effective_tax_rate": "effectiveTaxRate",
|
|
364
|
-
"total_tax_rate": "totalTaxRate",
|
|
365
|
-
"tax_payable_account_id": "taxPayableAccountId",
|
|
366
|
-
"tax_remitted_account_id": "taxRemittedAccountId",
|
|
367
|
-
"report_tax_type": "reportTaxType",
|
|
368
|
-
"original_tax_rate_id": "originalTaxRateId",
|
|
369
|
-
"row_version": "rowVersion",
|
|
370
|
-
"pass_through": "passThrough",
|
|
371
|
-
"custom_fields": "customFields",
|
|
372
|
-
});
|
|
373
|
-
});
|
|
374
|
-
|
|
375
|
-
/** @internal */
|
|
376
|
-
export type TaxRateInput$Outbound = {
|
|
377
|
-
id?: string | null | undefined;
|
|
378
|
-
name?: string | undefined;
|
|
379
|
-
code?: string | null | undefined;
|
|
380
|
-
description?: string | null | undefined;
|
|
381
|
-
effective_tax_rate?: number | null | undefined;
|
|
382
|
-
total_tax_rate?: number | null | undefined;
|
|
383
|
-
tax_payable_account_id?: string | null | undefined;
|
|
384
|
-
tax_remitted_account_id?: string | null | undefined;
|
|
385
|
-
components?: Array<Components$Outbound> | null | undefined;
|
|
386
|
-
type?: string | null | undefined;
|
|
387
|
-
report_tax_type?: string | null | undefined;
|
|
388
|
-
original_tax_rate_id?: string | null | undefined;
|
|
389
|
-
status?: string | null | undefined;
|
|
390
|
-
row_version?: string | null | undefined;
|
|
391
|
-
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
392
|
-
subsidiaries?: Array<Subsidiaries$Outbound> | undefined;
|
|
393
|
-
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
/** @internal */
|
|
397
|
-
export const TaxRateInput$outboundSchema: z.ZodType<
|
|
398
|
-
TaxRateInput$Outbound,
|
|
399
|
-
z.ZodTypeDef,
|
|
400
|
-
TaxRateInput
|
|
401
|
-
> = z.object({
|
|
402
|
-
id: z.nullable(z.string()).optional(),
|
|
403
|
-
name: z.string().optional(),
|
|
404
|
-
code: z.nullable(z.string()).optional(),
|
|
405
|
-
description: z.nullable(z.string()).optional(),
|
|
406
|
-
effectiveTaxRate: z.nullable(z.number()).optional(),
|
|
407
|
-
totalTaxRate: z.nullable(z.number()).optional(),
|
|
408
|
-
taxPayableAccountId: z.nullable(z.string()).optional(),
|
|
409
|
-
taxRemittedAccountId: z.nullable(z.string()).optional(),
|
|
410
|
-
components: z.nullable(z.array(z.lazy(() => Components$outboundSchema)))
|
|
411
|
-
.optional(),
|
|
412
|
-
type: z.nullable(z.string()).optional(),
|
|
413
|
-
reportTaxType: z.nullable(z.string()).optional(),
|
|
414
|
-
originalTaxRateId: z.nullable(z.string()).optional(),
|
|
415
|
-
status: z.nullable(TaxRateStatus$outboundSchema).optional(),
|
|
416
|
-
rowVersion: z.nullable(z.string()).optional(),
|
|
417
|
-
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
418
|
-
subsidiaries: z.array(z.lazy(() => Subsidiaries$outboundSchema)).optional(),
|
|
419
|
-
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
420
|
-
}).transform((v) => {
|
|
421
|
-
return remap$(v, {
|
|
422
|
-
effectiveTaxRate: "effective_tax_rate",
|
|
423
|
-
totalTaxRate: "total_tax_rate",
|
|
424
|
-
taxPayableAccountId: "tax_payable_account_id",
|
|
425
|
-
taxRemittedAccountId: "tax_remitted_account_id",
|
|
426
|
-
reportTaxType: "report_tax_type",
|
|
427
|
-
originalTaxRateId: "original_tax_rate_id",
|
|
428
|
-
rowVersion: "row_version",
|
|
429
|
-
passThrough: "pass_through",
|
|
430
|
-
customFields: "custom_fields",
|
|
431
|
-
});
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* @internal
|
|
436
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
437
|
-
*/
|
|
438
|
-
export namespace TaxRateInput$ {
|
|
439
|
-
/** @deprecated use `TaxRateInput$inboundSchema` instead. */
|
|
440
|
-
export const inboundSchema = TaxRateInput$inboundSchema;
|
|
441
|
-
/** @deprecated use `TaxRateInput$outboundSchema` instead. */
|
|
442
|
-
export const outboundSchema = TaxRateInput$outboundSchema;
|
|
443
|
-
/** @deprecated use `TaxRateInput$Outbound` instead. */
|
|
444
|
-
export type Outbound = TaxRateInput$Outbound;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
export function taxRateInputToJSON(taxRateInput: TaxRateInput): string {
|
|
448
|
-
return JSON.stringify(TaxRateInput$outboundSchema.parse(taxRateInput));
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export function taxRateInputFromJSON(
|
|
452
|
-
jsonString: string,
|
|
453
|
-
): SafeParseResult<TaxRateInput, SDKValidationError> {
|
|
454
|
-
return safeParse(
|
|
455
|
-
jsonString,
|
|
456
|
-
(x) => TaxRateInput$inboundSchema.parse(JSON.parse(x)),
|
|
457
|
-
`Failed to parse 'TaxRateInput' from JSON`,
|
|
458
|
-
);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
337
|
/** @internal */
|
|
462
338
|
export const TaxRate$inboundSchema: z.ZodType<TaxRate, z.ZodTypeDef, unknown> =
|
|
463
339
|
z.object({
|
|
@@ -607,3 +483,127 @@ export function taxRateFromJSON(
|
|
|
607
483
|
`Failed to parse 'TaxRate' from JSON`,
|
|
608
484
|
);
|
|
609
485
|
}
|
|
486
|
+
|
|
487
|
+
/** @internal */
|
|
488
|
+
export const TaxRateInput$inboundSchema: z.ZodType<
|
|
489
|
+
TaxRateInput,
|
|
490
|
+
z.ZodTypeDef,
|
|
491
|
+
unknown
|
|
492
|
+
> = z.object({
|
|
493
|
+
id: z.nullable(z.string()).optional(),
|
|
494
|
+
name: z.string().optional(),
|
|
495
|
+
code: z.nullable(z.string()).optional(),
|
|
496
|
+
description: z.nullable(z.string()).optional(),
|
|
497
|
+
effective_tax_rate: z.nullable(z.number()).optional(),
|
|
498
|
+
total_tax_rate: z.nullable(z.number()).optional(),
|
|
499
|
+
tax_payable_account_id: z.nullable(z.string()).optional(),
|
|
500
|
+
tax_remitted_account_id: z.nullable(z.string()).optional(),
|
|
501
|
+
components: z.nullable(z.array(z.lazy(() => Components$inboundSchema)))
|
|
502
|
+
.optional(),
|
|
503
|
+
type: z.nullable(z.string()).optional(),
|
|
504
|
+
report_tax_type: z.nullable(z.string()).optional(),
|
|
505
|
+
original_tax_rate_id: z.nullable(z.string()).optional(),
|
|
506
|
+
status: z.nullable(TaxRateStatus$inboundSchema).optional(),
|
|
507
|
+
row_version: z.nullable(z.string()).optional(),
|
|
508
|
+
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
509
|
+
subsidiaries: z.array(z.lazy(() => Subsidiaries$inboundSchema)).optional(),
|
|
510
|
+
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
511
|
+
}).transform((v) => {
|
|
512
|
+
return remap$(v, {
|
|
513
|
+
"effective_tax_rate": "effectiveTaxRate",
|
|
514
|
+
"total_tax_rate": "totalTaxRate",
|
|
515
|
+
"tax_payable_account_id": "taxPayableAccountId",
|
|
516
|
+
"tax_remitted_account_id": "taxRemittedAccountId",
|
|
517
|
+
"report_tax_type": "reportTaxType",
|
|
518
|
+
"original_tax_rate_id": "originalTaxRateId",
|
|
519
|
+
"row_version": "rowVersion",
|
|
520
|
+
"pass_through": "passThrough",
|
|
521
|
+
"custom_fields": "customFields",
|
|
522
|
+
});
|
|
523
|
+
});
|
|
524
|
+
|
|
525
|
+
/** @internal */
|
|
526
|
+
export type TaxRateInput$Outbound = {
|
|
527
|
+
id?: string | null | undefined;
|
|
528
|
+
name?: string | undefined;
|
|
529
|
+
code?: string | null | undefined;
|
|
530
|
+
description?: string | null | undefined;
|
|
531
|
+
effective_tax_rate?: number | null | undefined;
|
|
532
|
+
total_tax_rate?: number | null | undefined;
|
|
533
|
+
tax_payable_account_id?: string | null | undefined;
|
|
534
|
+
tax_remitted_account_id?: string | null | undefined;
|
|
535
|
+
components?: Array<Components$Outbound> | null | undefined;
|
|
536
|
+
type?: string | null | undefined;
|
|
537
|
+
report_tax_type?: string | null | undefined;
|
|
538
|
+
original_tax_rate_id?: string | null | undefined;
|
|
539
|
+
status?: string | null | undefined;
|
|
540
|
+
row_version?: string | null | undefined;
|
|
541
|
+
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
542
|
+
subsidiaries?: Array<Subsidiaries$Outbound> | undefined;
|
|
543
|
+
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
/** @internal */
|
|
547
|
+
export const TaxRateInput$outboundSchema: z.ZodType<
|
|
548
|
+
TaxRateInput$Outbound,
|
|
549
|
+
z.ZodTypeDef,
|
|
550
|
+
TaxRateInput
|
|
551
|
+
> = z.object({
|
|
552
|
+
id: z.nullable(z.string()).optional(),
|
|
553
|
+
name: z.string().optional(),
|
|
554
|
+
code: z.nullable(z.string()).optional(),
|
|
555
|
+
description: z.nullable(z.string()).optional(),
|
|
556
|
+
effectiveTaxRate: z.nullable(z.number()).optional(),
|
|
557
|
+
totalTaxRate: z.nullable(z.number()).optional(),
|
|
558
|
+
taxPayableAccountId: z.nullable(z.string()).optional(),
|
|
559
|
+
taxRemittedAccountId: z.nullable(z.string()).optional(),
|
|
560
|
+
components: z.nullable(z.array(z.lazy(() => Components$outboundSchema)))
|
|
561
|
+
.optional(),
|
|
562
|
+
type: z.nullable(z.string()).optional(),
|
|
563
|
+
reportTaxType: z.nullable(z.string()).optional(),
|
|
564
|
+
originalTaxRateId: z.nullable(z.string()).optional(),
|
|
565
|
+
status: z.nullable(TaxRateStatus$outboundSchema).optional(),
|
|
566
|
+
rowVersion: z.nullable(z.string()).optional(),
|
|
567
|
+
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
568
|
+
subsidiaries: z.array(z.lazy(() => Subsidiaries$outboundSchema)).optional(),
|
|
569
|
+
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
570
|
+
}).transform((v) => {
|
|
571
|
+
return remap$(v, {
|
|
572
|
+
effectiveTaxRate: "effective_tax_rate",
|
|
573
|
+
totalTaxRate: "total_tax_rate",
|
|
574
|
+
taxPayableAccountId: "tax_payable_account_id",
|
|
575
|
+
taxRemittedAccountId: "tax_remitted_account_id",
|
|
576
|
+
reportTaxType: "report_tax_type",
|
|
577
|
+
originalTaxRateId: "original_tax_rate_id",
|
|
578
|
+
rowVersion: "row_version",
|
|
579
|
+
passThrough: "pass_through",
|
|
580
|
+
customFields: "custom_fields",
|
|
581
|
+
});
|
|
582
|
+
});
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* @internal
|
|
586
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
587
|
+
*/
|
|
588
|
+
export namespace TaxRateInput$ {
|
|
589
|
+
/** @deprecated use `TaxRateInput$inboundSchema` instead. */
|
|
590
|
+
export const inboundSchema = TaxRateInput$inboundSchema;
|
|
591
|
+
/** @deprecated use `TaxRateInput$outboundSchema` instead. */
|
|
592
|
+
export const outboundSchema = TaxRateInput$outboundSchema;
|
|
593
|
+
/** @deprecated use `TaxRateInput$Outbound` instead. */
|
|
594
|
+
export type Outbound = TaxRateInput$Outbound;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export function taxRateInputToJSON(taxRateInput: TaxRateInput): string {
|
|
598
|
+
return JSON.stringify(TaxRateInput$outboundSchema.parse(taxRateInput));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export function taxRateInputFromJSON(
|
|
602
|
+
jsonString: string,
|
|
603
|
+
): SafeParseResult<TaxRateInput, SDKValidationError> {
|
|
604
|
+
return safeParse(
|
|
605
|
+
jsonString,
|
|
606
|
+
(x) => TaxRateInput$inboundSchema.parse(JSON.parse(x)),
|
|
607
|
+
`Failed to parse 'TaxRateInput' from JSON`,
|
|
608
|
+
);
|
|
609
|
+
}
|