@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
|
@@ -22,7 +22,11 @@ export const ActivityAttendeeStatus = {
|
|
|
22
22
|
*/
|
|
23
23
|
export type ActivityAttendeeStatus = ClosedEnum<typeof ActivityAttendeeStatus>;
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type ActivityAttendee = {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for the attendee
|
|
28
|
+
*/
|
|
29
|
+
id?: string | null | undefined;
|
|
26
30
|
/**
|
|
27
31
|
* Full name of the attendee
|
|
28
32
|
*/
|
|
@@ -59,13 +63,25 @@ export type ActivityAttendeeInput = {
|
|
|
59
63
|
* Status of the attendee
|
|
60
64
|
*/
|
|
61
65
|
status?: ActivityAttendeeStatus | null | undefined;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export type ActivityAttendee = {
|
|
65
66
|
/**
|
|
66
|
-
*
|
|
67
|
+
* The identifier for a related user
|
|
67
68
|
*/
|
|
68
|
-
|
|
69
|
+
userId?: string | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* The identifier for a related contact
|
|
72
|
+
*/
|
|
73
|
+
contactId?: string | null | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The last time the attendee was updated (ISO 8601)
|
|
76
|
+
*/
|
|
77
|
+
updatedAt?: Date | null | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* The time the attendee was created (ISO 8601)
|
|
80
|
+
*/
|
|
81
|
+
createdAt?: Date | null | undefined;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type ActivityAttendeeInput = {
|
|
69
85
|
/**
|
|
70
86
|
* Full name of the attendee
|
|
71
87
|
*/
|
|
@@ -102,22 +118,6 @@ export type ActivityAttendee = {
|
|
|
102
118
|
* Status of the attendee
|
|
103
119
|
*/
|
|
104
120
|
status?: ActivityAttendeeStatus | null | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* The identifier for a related user
|
|
107
|
-
*/
|
|
108
|
-
userId?: string | null | undefined;
|
|
109
|
-
/**
|
|
110
|
-
* The identifier for a related contact
|
|
111
|
-
*/
|
|
112
|
-
contactId?: string | null | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* The last time the attendee was updated (ISO 8601)
|
|
115
|
-
*/
|
|
116
|
-
updatedAt?: Date | null | undefined;
|
|
117
|
-
/**
|
|
118
|
-
* The time the attendee was created (ISO 8601)
|
|
119
|
-
*/
|
|
120
|
-
createdAt?: Date | null | undefined;
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
/** @internal */
|
|
@@ -142,11 +142,12 @@ export namespace ActivityAttendeeStatus$ {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/** @internal */
|
|
145
|
-
export const
|
|
146
|
-
|
|
145
|
+
export const ActivityAttendee$inboundSchema: z.ZodType<
|
|
146
|
+
ActivityAttendee,
|
|
147
147
|
z.ZodTypeDef,
|
|
148
148
|
unknown
|
|
149
149
|
> = z.object({
|
|
150
|
+
id: z.nullable(z.string()).optional(),
|
|
150
151
|
name: z.nullable(z.string()).optional(),
|
|
151
152
|
first_name: z.nullable(z.string()).optional(),
|
|
152
153
|
middle_name: z.nullable(z.string()).optional(),
|
|
@@ -156,6 +157,14 @@ export const ActivityAttendeeInput$inboundSchema: z.ZodType<
|
|
|
156
157
|
email_address: z.nullable(z.string()).optional(),
|
|
157
158
|
is_organizer: z.nullable(z.boolean()).optional(),
|
|
158
159
|
status: z.nullable(ActivityAttendeeStatus$inboundSchema).optional(),
|
|
160
|
+
user_id: z.nullable(z.string()).optional(),
|
|
161
|
+
contact_id: z.nullable(z.string()).optional(),
|
|
162
|
+
updated_at: z.nullable(
|
|
163
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
164
|
+
).optional(),
|
|
165
|
+
created_at: z.nullable(
|
|
166
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
167
|
+
).optional(),
|
|
159
168
|
}).transform((v) => {
|
|
160
169
|
return remap$(v, {
|
|
161
170
|
"first_name": "firstName",
|
|
@@ -163,11 +172,16 @@ export const ActivityAttendeeInput$inboundSchema: z.ZodType<
|
|
|
163
172
|
"last_name": "lastName",
|
|
164
173
|
"email_address": "emailAddress",
|
|
165
174
|
"is_organizer": "isOrganizer",
|
|
175
|
+
"user_id": "userId",
|
|
176
|
+
"contact_id": "contactId",
|
|
177
|
+
"updated_at": "updatedAt",
|
|
178
|
+
"created_at": "createdAt",
|
|
166
179
|
});
|
|
167
180
|
});
|
|
168
181
|
|
|
169
182
|
/** @internal */
|
|
170
|
-
export type
|
|
183
|
+
export type ActivityAttendee$Outbound = {
|
|
184
|
+
id?: string | null | undefined;
|
|
171
185
|
name?: string | null | undefined;
|
|
172
186
|
first_name?: string | null | undefined;
|
|
173
187
|
middle_name?: string | null | undefined;
|
|
@@ -177,14 +191,19 @@ export type ActivityAttendeeInput$Outbound = {
|
|
|
177
191
|
email_address?: string | null | undefined;
|
|
178
192
|
is_organizer?: boolean | null | undefined;
|
|
179
193
|
status?: string | null | undefined;
|
|
194
|
+
user_id?: string | null | undefined;
|
|
195
|
+
contact_id?: string | null | undefined;
|
|
196
|
+
updated_at?: string | null | undefined;
|
|
197
|
+
created_at?: string | null | undefined;
|
|
180
198
|
};
|
|
181
199
|
|
|
182
200
|
/** @internal */
|
|
183
|
-
export const
|
|
184
|
-
|
|
201
|
+
export const ActivityAttendee$outboundSchema: z.ZodType<
|
|
202
|
+
ActivityAttendee$Outbound,
|
|
185
203
|
z.ZodTypeDef,
|
|
186
|
-
|
|
204
|
+
ActivityAttendee
|
|
187
205
|
> = z.object({
|
|
206
|
+
id: z.nullable(z.string()).optional(),
|
|
188
207
|
name: z.nullable(z.string()).optional(),
|
|
189
208
|
firstName: z.nullable(z.string()).optional(),
|
|
190
209
|
middleName: z.nullable(z.string()).optional(),
|
|
@@ -194,6 +213,10 @@ export const ActivityAttendeeInput$outboundSchema: z.ZodType<
|
|
|
194
213
|
emailAddress: z.nullable(z.string()).optional(),
|
|
195
214
|
isOrganizer: z.nullable(z.boolean()).optional(),
|
|
196
215
|
status: z.nullable(ActivityAttendeeStatus$outboundSchema).optional(),
|
|
216
|
+
userId: z.nullable(z.string()).optional(),
|
|
217
|
+
contactId: z.nullable(z.string()).optional(),
|
|
218
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
219
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
197
220
|
}).transform((v) => {
|
|
198
221
|
return remap$(v, {
|
|
199
222
|
firstName: "first_name",
|
|
@@ -201,6 +224,10 @@ export const ActivityAttendeeInput$outboundSchema: z.ZodType<
|
|
|
201
224
|
lastName: "last_name",
|
|
202
225
|
emailAddress: "email_address",
|
|
203
226
|
isOrganizer: "is_organizer",
|
|
227
|
+
userId: "user_id",
|
|
228
|
+
contactId: "contact_id",
|
|
229
|
+
updatedAt: "updated_at",
|
|
230
|
+
createdAt: "created_at",
|
|
204
231
|
});
|
|
205
232
|
});
|
|
206
233
|
|
|
@@ -208,40 +235,39 @@ export const ActivityAttendeeInput$outboundSchema: z.ZodType<
|
|
|
208
235
|
* @internal
|
|
209
236
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
210
237
|
*/
|
|
211
|
-
export namespace
|
|
212
|
-
/** @deprecated use `
|
|
213
|
-
export const inboundSchema =
|
|
214
|
-
/** @deprecated use `
|
|
215
|
-
export const outboundSchema =
|
|
216
|
-
/** @deprecated use `
|
|
217
|
-
export type Outbound =
|
|
238
|
+
export namespace ActivityAttendee$ {
|
|
239
|
+
/** @deprecated use `ActivityAttendee$inboundSchema` instead. */
|
|
240
|
+
export const inboundSchema = ActivityAttendee$inboundSchema;
|
|
241
|
+
/** @deprecated use `ActivityAttendee$outboundSchema` instead. */
|
|
242
|
+
export const outboundSchema = ActivityAttendee$outboundSchema;
|
|
243
|
+
/** @deprecated use `ActivityAttendee$Outbound` instead. */
|
|
244
|
+
export type Outbound = ActivityAttendee$Outbound;
|
|
218
245
|
}
|
|
219
246
|
|
|
220
|
-
export function
|
|
221
|
-
|
|
247
|
+
export function activityAttendeeToJSON(
|
|
248
|
+
activityAttendee: ActivityAttendee,
|
|
222
249
|
): string {
|
|
223
250
|
return JSON.stringify(
|
|
224
|
-
|
|
251
|
+
ActivityAttendee$outboundSchema.parse(activityAttendee),
|
|
225
252
|
);
|
|
226
253
|
}
|
|
227
254
|
|
|
228
|
-
export function
|
|
255
|
+
export function activityAttendeeFromJSON(
|
|
229
256
|
jsonString: string,
|
|
230
|
-
): SafeParseResult<
|
|
257
|
+
): SafeParseResult<ActivityAttendee, SDKValidationError> {
|
|
231
258
|
return safeParse(
|
|
232
259
|
jsonString,
|
|
233
|
-
(x) =>
|
|
234
|
-
`Failed to parse '
|
|
260
|
+
(x) => ActivityAttendee$inboundSchema.parse(JSON.parse(x)),
|
|
261
|
+
`Failed to parse 'ActivityAttendee' from JSON`,
|
|
235
262
|
);
|
|
236
263
|
}
|
|
237
264
|
|
|
238
265
|
/** @internal */
|
|
239
|
-
export const
|
|
240
|
-
|
|
266
|
+
export const ActivityAttendeeInput$inboundSchema: z.ZodType<
|
|
267
|
+
ActivityAttendeeInput,
|
|
241
268
|
z.ZodTypeDef,
|
|
242
269
|
unknown
|
|
243
270
|
> = z.object({
|
|
244
|
-
id: z.nullable(z.string()).optional(),
|
|
245
271
|
name: z.nullable(z.string()).optional(),
|
|
246
272
|
first_name: z.nullable(z.string()).optional(),
|
|
247
273
|
middle_name: z.nullable(z.string()).optional(),
|
|
@@ -251,14 +277,6 @@ export const ActivityAttendee$inboundSchema: z.ZodType<
|
|
|
251
277
|
email_address: z.nullable(z.string()).optional(),
|
|
252
278
|
is_organizer: z.nullable(z.boolean()).optional(),
|
|
253
279
|
status: z.nullable(ActivityAttendeeStatus$inboundSchema).optional(),
|
|
254
|
-
user_id: z.nullable(z.string()).optional(),
|
|
255
|
-
contact_id: z.nullable(z.string()).optional(),
|
|
256
|
-
updated_at: z.nullable(
|
|
257
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
258
|
-
).optional(),
|
|
259
|
-
created_at: z.nullable(
|
|
260
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
261
|
-
).optional(),
|
|
262
280
|
}).transform((v) => {
|
|
263
281
|
return remap$(v, {
|
|
264
282
|
"first_name": "firstName",
|
|
@@ -266,16 +284,11 @@ export const ActivityAttendee$inboundSchema: z.ZodType<
|
|
|
266
284
|
"last_name": "lastName",
|
|
267
285
|
"email_address": "emailAddress",
|
|
268
286
|
"is_organizer": "isOrganizer",
|
|
269
|
-
"user_id": "userId",
|
|
270
|
-
"contact_id": "contactId",
|
|
271
|
-
"updated_at": "updatedAt",
|
|
272
|
-
"created_at": "createdAt",
|
|
273
287
|
});
|
|
274
288
|
});
|
|
275
289
|
|
|
276
290
|
/** @internal */
|
|
277
|
-
export type
|
|
278
|
-
id?: string | null | undefined;
|
|
291
|
+
export type ActivityAttendeeInput$Outbound = {
|
|
279
292
|
name?: string | null | undefined;
|
|
280
293
|
first_name?: string | null | undefined;
|
|
281
294
|
middle_name?: string | null | undefined;
|
|
@@ -285,19 +298,14 @@ export type ActivityAttendee$Outbound = {
|
|
|
285
298
|
email_address?: string | null | undefined;
|
|
286
299
|
is_organizer?: boolean | null | undefined;
|
|
287
300
|
status?: string | null | undefined;
|
|
288
|
-
user_id?: string | null | undefined;
|
|
289
|
-
contact_id?: string | null | undefined;
|
|
290
|
-
updated_at?: string | null | undefined;
|
|
291
|
-
created_at?: string | null | undefined;
|
|
292
301
|
};
|
|
293
302
|
|
|
294
303
|
/** @internal */
|
|
295
|
-
export const
|
|
296
|
-
|
|
304
|
+
export const ActivityAttendeeInput$outboundSchema: z.ZodType<
|
|
305
|
+
ActivityAttendeeInput$Outbound,
|
|
297
306
|
z.ZodTypeDef,
|
|
298
|
-
|
|
307
|
+
ActivityAttendeeInput
|
|
299
308
|
> = z.object({
|
|
300
|
-
id: z.nullable(z.string()).optional(),
|
|
301
309
|
name: z.nullable(z.string()).optional(),
|
|
302
310
|
firstName: z.nullable(z.string()).optional(),
|
|
303
311
|
middleName: z.nullable(z.string()).optional(),
|
|
@@ -307,10 +315,6 @@ export const ActivityAttendee$outboundSchema: z.ZodType<
|
|
|
307
315
|
emailAddress: z.nullable(z.string()).optional(),
|
|
308
316
|
isOrganizer: z.nullable(z.boolean()).optional(),
|
|
309
317
|
status: z.nullable(ActivityAttendeeStatus$outboundSchema).optional(),
|
|
310
|
-
userId: z.nullable(z.string()).optional(),
|
|
311
|
-
contactId: z.nullable(z.string()).optional(),
|
|
312
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
313
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
314
318
|
}).transform((v) => {
|
|
315
319
|
return remap$(v, {
|
|
316
320
|
firstName: "first_name",
|
|
@@ -318,10 +322,6 @@ export const ActivityAttendee$outboundSchema: z.ZodType<
|
|
|
318
322
|
lastName: "last_name",
|
|
319
323
|
emailAddress: "email_address",
|
|
320
324
|
isOrganizer: "is_organizer",
|
|
321
|
-
userId: "user_id",
|
|
322
|
-
contactId: "contact_id",
|
|
323
|
-
updatedAt: "updated_at",
|
|
324
|
-
createdAt: "created_at",
|
|
325
325
|
});
|
|
326
326
|
});
|
|
327
327
|
|
|
@@ -329,29 +329,29 @@ export const ActivityAttendee$outboundSchema: z.ZodType<
|
|
|
329
329
|
* @internal
|
|
330
330
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
331
331
|
*/
|
|
332
|
-
export namespace
|
|
333
|
-
/** @deprecated use `
|
|
334
|
-
export const inboundSchema =
|
|
335
|
-
/** @deprecated use `
|
|
336
|
-
export const outboundSchema =
|
|
337
|
-
/** @deprecated use `
|
|
338
|
-
export type Outbound =
|
|
332
|
+
export namespace ActivityAttendeeInput$ {
|
|
333
|
+
/** @deprecated use `ActivityAttendeeInput$inboundSchema` instead. */
|
|
334
|
+
export const inboundSchema = ActivityAttendeeInput$inboundSchema;
|
|
335
|
+
/** @deprecated use `ActivityAttendeeInput$outboundSchema` instead. */
|
|
336
|
+
export const outboundSchema = ActivityAttendeeInput$outboundSchema;
|
|
337
|
+
/** @deprecated use `ActivityAttendeeInput$Outbound` instead. */
|
|
338
|
+
export type Outbound = ActivityAttendeeInput$Outbound;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
export function
|
|
342
|
-
|
|
341
|
+
export function activityAttendeeInputToJSON(
|
|
342
|
+
activityAttendeeInput: ActivityAttendeeInput,
|
|
343
343
|
): string {
|
|
344
344
|
return JSON.stringify(
|
|
345
|
-
|
|
345
|
+
ActivityAttendeeInput$outboundSchema.parse(activityAttendeeInput),
|
|
346
346
|
);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
export function
|
|
349
|
+
export function activityAttendeeInputFromJSON(
|
|
350
350
|
jsonString: string,
|
|
351
|
-
): SafeParseResult<
|
|
351
|
+
): SafeParseResult<ActivityAttendeeInput, SDKValidationError> {
|
|
352
352
|
return safeParse(
|
|
353
353
|
jsonString,
|
|
354
|
-
(x) =>
|
|
355
|
-
`Failed to parse '
|
|
354
|
+
(x) => ActivityAttendeeInput$inboundSchema.parse(JSON.parse(x)),
|
|
355
|
+
`Failed to parse 'ActivityAttendeeInput' from JSON`,
|
|
356
356
|
);
|
|
357
357
|
}
|
|
@@ -28,7 +28,7 @@ export const AllocationType = {
|
|
|
28
28
|
*/
|
|
29
29
|
export type AllocationType = ClosedEnum<typeof AllocationType>;
|
|
30
30
|
|
|
31
|
-
export type
|
|
31
|
+
export type Allocation = {
|
|
32
32
|
/**
|
|
33
33
|
* Unique identifier of entity this payment should be attributed to.
|
|
34
34
|
*/
|
|
@@ -37,6 +37,7 @@ export type AllocationInput = {
|
|
|
37
37
|
* Type of entity this payment should be attributed to.
|
|
38
38
|
*/
|
|
39
39
|
type?: AllocationType | undefined;
|
|
40
|
+
code?: string | undefined;
|
|
40
41
|
/**
|
|
41
42
|
* Amount of payment that should be attributed to this allocation. If null, the total_amount will be used.
|
|
42
43
|
*/
|
|
@@ -47,7 +48,7 @@ export type AllocationInput = {
|
|
|
47
48
|
allocationId?: string | undefined;
|
|
48
49
|
};
|
|
49
50
|
|
|
50
|
-
export type
|
|
51
|
+
export type AllocationInput = {
|
|
51
52
|
/**
|
|
52
53
|
* Unique identifier of entity this payment should be attributed to.
|
|
53
54
|
*/
|
|
@@ -56,7 +57,6 @@ export type Allocation = {
|
|
|
56
57
|
* Type of entity this payment should be attributed to.
|
|
57
58
|
*/
|
|
58
59
|
type?: AllocationType | undefined;
|
|
59
|
-
code?: string | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* Amount of payment that should be attributed to this allocation. If null, the total_amount will be used.
|
|
62
62
|
*/
|
|
@@ -89,13 +89,14 @@ export namespace AllocationType$ {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/** @internal */
|
|
92
|
-
export const
|
|
93
|
-
|
|
92
|
+
export const Allocation$inboundSchema: z.ZodType<
|
|
93
|
+
Allocation,
|
|
94
94
|
z.ZodTypeDef,
|
|
95
95
|
unknown
|
|
96
96
|
> = z.object({
|
|
97
97
|
id: z.string().optional(),
|
|
98
98
|
type: AllocationType$inboundSchema.optional(),
|
|
99
|
+
code: z.string().optional(),
|
|
99
100
|
amount: z.nullable(z.number()).optional(),
|
|
100
101
|
allocation_id: z.string().optional(),
|
|
101
102
|
}).transform((v) => {
|
|
@@ -105,21 +106,23 @@ export const AllocationInput$inboundSchema: z.ZodType<
|
|
|
105
106
|
});
|
|
106
107
|
|
|
107
108
|
/** @internal */
|
|
108
|
-
export type
|
|
109
|
+
export type Allocation$Outbound = {
|
|
109
110
|
id?: string | undefined;
|
|
110
111
|
type?: string | undefined;
|
|
112
|
+
code?: string | undefined;
|
|
111
113
|
amount?: number | null | undefined;
|
|
112
114
|
allocation_id?: string | undefined;
|
|
113
115
|
};
|
|
114
116
|
|
|
115
117
|
/** @internal */
|
|
116
|
-
export const
|
|
117
|
-
|
|
118
|
+
export const Allocation$outboundSchema: z.ZodType<
|
|
119
|
+
Allocation$Outbound,
|
|
118
120
|
z.ZodTypeDef,
|
|
119
|
-
|
|
121
|
+
Allocation
|
|
120
122
|
> = z.object({
|
|
121
123
|
id: z.string().optional(),
|
|
122
124
|
type: AllocationType$outboundSchema.optional(),
|
|
125
|
+
code: z.string().optional(),
|
|
123
126
|
amount: z.nullable(z.number()).optional(),
|
|
124
127
|
allocationId: z.string().optional(),
|
|
125
128
|
}).transform((v) => {
|
|
@@ -132,40 +135,37 @@ export const AllocationInput$outboundSchema: z.ZodType<
|
|
|
132
135
|
* @internal
|
|
133
136
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
134
137
|
*/
|
|
135
|
-
export namespace
|
|
136
|
-
/** @deprecated use `
|
|
137
|
-
export const inboundSchema =
|
|
138
|
-
/** @deprecated use `
|
|
139
|
-
export const outboundSchema =
|
|
140
|
-
/** @deprecated use `
|
|
141
|
-
export type Outbound =
|
|
138
|
+
export namespace Allocation$ {
|
|
139
|
+
/** @deprecated use `Allocation$inboundSchema` instead. */
|
|
140
|
+
export const inboundSchema = Allocation$inboundSchema;
|
|
141
|
+
/** @deprecated use `Allocation$outboundSchema` instead. */
|
|
142
|
+
export const outboundSchema = Allocation$outboundSchema;
|
|
143
|
+
/** @deprecated use `Allocation$Outbound` instead. */
|
|
144
|
+
export type Outbound = Allocation$Outbound;
|
|
142
145
|
}
|
|
143
146
|
|
|
144
|
-
export function
|
|
145
|
-
|
|
146
|
-
): string {
|
|
147
|
-
return JSON.stringify(AllocationInput$outboundSchema.parse(allocationInput));
|
|
147
|
+
export function allocationToJSON(allocation: Allocation): string {
|
|
148
|
+
return JSON.stringify(Allocation$outboundSchema.parse(allocation));
|
|
148
149
|
}
|
|
149
150
|
|
|
150
|
-
export function
|
|
151
|
+
export function allocationFromJSON(
|
|
151
152
|
jsonString: string,
|
|
152
|
-
): SafeParseResult<
|
|
153
|
+
): SafeParseResult<Allocation, SDKValidationError> {
|
|
153
154
|
return safeParse(
|
|
154
155
|
jsonString,
|
|
155
|
-
(x) =>
|
|
156
|
-
`Failed to parse '
|
|
156
|
+
(x) => Allocation$inboundSchema.parse(JSON.parse(x)),
|
|
157
|
+
`Failed to parse 'Allocation' from JSON`,
|
|
157
158
|
);
|
|
158
159
|
}
|
|
159
160
|
|
|
160
161
|
/** @internal */
|
|
161
|
-
export const
|
|
162
|
-
|
|
162
|
+
export const AllocationInput$inboundSchema: z.ZodType<
|
|
163
|
+
AllocationInput,
|
|
163
164
|
z.ZodTypeDef,
|
|
164
165
|
unknown
|
|
165
166
|
> = z.object({
|
|
166
167
|
id: z.string().optional(),
|
|
167
168
|
type: AllocationType$inboundSchema.optional(),
|
|
168
|
-
code: z.string().optional(),
|
|
169
169
|
amount: z.nullable(z.number()).optional(),
|
|
170
170
|
allocation_id: z.string().optional(),
|
|
171
171
|
}).transform((v) => {
|
|
@@ -175,23 +175,21 @@ export const Allocation$inboundSchema: z.ZodType<
|
|
|
175
175
|
});
|
|
176
176
|
|
|
177
177
|
/** @internal */
|
|
178
|
-
export type
|
|
178
|
+
export type AllocationInput$Outbound = {
|
|
179
179
|
id?: string | undefined;
|
|
180
180
|
type?: string | undefined;
|
|
181
|
-
code?: string | undefined;
|
|
182
181
|
amount?: number | null | undefined;
|
|
183
182
|
allocation_id?: string | undefined;
|
|
184
183
|
};
|
|
185
184
|
|
|
186
185
|
/** @internal */
|
|
187
|
-
export const
|
|
188
|
-
|
|
186
|
+
export const AllocationInput$outboundSchema: z.ZodType<
|
|
187
|
+
AllocationInput$Outbound,
|
|
189
188
|
z.ZodTypeDef,
|
|
190
|
-
|
|
189
|
+
AllocationInput
|
|
191
190
|
> = z.object({
|
|
192
191
|
id: z.string().optional(),
|
|
193
192
|
type: AllocationType$outboundSchema.optional(),
|
|
194
|
-
code: z.string().optional(),
|
|
195
193
|
amount: z.nullable(z.number()).optional(),
|
|
196
194
|
allocationId: z.string().optional(),
|
|
197
195
|
}).transform((v) => {
|
|
@@ -204,25 +202,27 @@ export const Allocation$outboundSchema: z.ZodType<
|
|
|
204
202
|
* @internal
|
|
205
203
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
206
204
|
*/
|
|
207
|
-
export namespace
|
|
208
|
-
/** @deprecated use `
|
|
209
|
-
export const inboundSchema =
|
|
210
|
-
/** @deprecated use `
|
|
211
|
-
export const outboundSchema =
|
|
212
|
-
/** @deprecated use `
|
|
213
|
-
export type Outbound =
|
|
205
|
+
export namespace AllocationInput$ {
|
|
206
|
+
/** @deprecated use `AllocationInput$inboundSchema` instead. */
|
|
207
|
+
export const inboundSchema = AllocationInput$inboundSchema;
|
|
208
|
+
/** @deprecated use `AllocationInput$outboundSchema` instead. */
|
|
209
|
+
export const outboundSchema = AllocationInput$outboundSchema;
|
|
210
|
+
/** @deprecated use `AllocationInput$Outbound` instead. */
|
|
211
|
+
export type Outbound = AllocationInput$Outbound;
|
|
214
212
|
}
|
|
215
213
|
|
|
216
|
-
export function
|
|
217
|
-
|
|
214
|
+
export function allocationInputToJSON(
|
|
215
|
+
allocationInput: AllocationInput,
|
|
216
|
+
): string {
|
|
217
|
+
return JSON.stringify(AllocationInput$outboundSchema.parse(allocationInput));
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
export function
|
|
220
|
+
export function allocationInputFromJSON(
|
|
221
221
|
jsonString: string,
|
|
222
|
-
): SafeParseResult<
|
|
222
|
+
): SafeParseResult<AllocationInput, SDKValidationError> {
|
|
223
223
|
return safeParse(
|
|
224
224
|
jsonString,
|
|
225
|
-
(x) =>
|
|
226
|
-
`Failed to parse '
|
|
225
|
+
(x) => AllocationInput$inboundSchema.parse(JSON.parse(x)),
|
|
226
|
+
`Failed to parse 'AllocationInput' from JSON`,
|
|
227
227
|
);
|
|
228
228
|
}
|