@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
|
@@ -59,19 +59,11 @@ export const Priority = {
|
|
|
59
59
|
*/
|
|
60
60
|
export type Priority = ClosedEnum<typeof Priority>;
|
|
61
61
|
|
|
62
|
-
export type
|
|
63
|
-
/**
|
|
64
|
-
* A unique identifier for an object.
|
|
65
|
-
*/
|
|
66
|
-
id: string;
|
|
62
|
+
export type TicketInput = {
|
|
67
63
|
/**
|
|
68
64
|
* The ticket's parent ID
|
|
69
65
|
*/
|
|
70
66
|
parentId?: string | null | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* The ticket's collection ID
|
|
73
|
-
*/
|
|
74
|
-
collectionId?: string | null | undefined;
|
|
75
67
|
/**
|
|
76
68
|
* The ticket's type
|
|
77
69
|
*/
|
|
@@ -92,43 +84,31 @@ export type Ticket = {
|
|
|
92
84
|
* Priority of the ticket
|
|
93
85
|
*/
|
|
94
86
|
priority?: Priority | null | undefined;
|
|
95
|
-
assignees?: Array<
|
|
96
|
-
/**
|
|
97
|
-
* The date and time when the object was last updated.
|
|
98
|
-
*/
|
|
99
|
-
updatedAt?: Date | null | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* The date and time when the object was created.
|
|
102
|
-
*/
|
|
103
|
-
createdAt?: Date | null | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* The user who created the object.
|
|
106
|
-
*/
|
|
107
|
-
createdBy?: string | null | undefined;
|
|
87
|
+
assignees?: Array<AssigneeInput> | undefined;
|
|
108
88
|
/**
|
|
109
89
|
* Due date of the ticket
|
|
110
90
|
*/
|
|
111
91
|
dueDate?: Date | null | undefined;
|
|
112
|
-
|
|
113
|
-
* When the ticket was completed
|
|
114
|
-
*/
|
|
115
|
-
completedAt?: Date | null | undefined;
|
|
116
|
-
tags?: Array<CollectionTag> | undefined;
|
|
117
|
-
/**
|
|
118
|
-
* When custom mappings are configured on the resource, the result is included here.
|
|
119
|
-
*/
|
|
120
|
-
customMappings?: CustomMappings | null | undefined;
|
|
92
|
+
tags?: Array<CollectionTagInput> | undefined;
|
|
121
93
|
/**
|
|
122
94
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
123
95
|
*/
|
|
124
96
|
passThrough?: Array<PassThroughBody> | undefined;
|
|
125
97
|
};
|
|
126
98
|
|
|
127
|
-
export type
|
|
99
|
+
export type Ticket = {
|
|
100
|
+
/**
|
|
101
|
+
* A unique identifier for an object.
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
128
104
|
/**
|
|
129
105
|
* The ticket's parent ID
|
|
130
106
|
*/
|
|
131
107
|
parentId?: string | null | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* The ticket's collection ID
|
|
110
|
+
*/
|
|
111
|
+
collectionId?: string | null | undefined;
|
|
132
112
|
/**
|
|
133
113
|
* The ticket's type
|
|
134
114
|
*/
|
|
@@ -149,12 +129,32 @@ export type TicketInput = {
|
|
|
149
129
|
* Priority of the ticket
|
|
150
130
|
*/
|
|
151
131
|
priority?: Priority | null | undefined;
|
|
152
|
-
assignees?: Array<
|
|
132
|
+
assignees?: Array<Assignee> | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* The date and time when the object was last updated.
|
|
135
|
+
*/
|
|
136
|
+
updatedAt?: Date | null | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* The date and time when the object was created.
|
|
139
|
+
*/
|
|
140
|
+
createdAt?: Date | null | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* The user who created the object.
|
|
143
|
+
*/
|
|
144
|
+
createdBy?: string | null | undefined;
|
|
153
145
|
/**
|
|
154
146
|
* Due date of the ticket
|
|
155
147
|
*/
|
|
156
148
|
dueDate?: Date | null | undefined;
|
|
157
|
-
|
|
149
|
+
/**
|
|
150
|
+
* When the ticket was completed
|
|
151
|
+
*/
|
|
152
|
+
completedAt?: Date | null | undefined;
|
|
153
|
+
tags?: Array<CollectionTag> | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
156
|
+
*/
|
|
157
|
+
customMappings?: CustomMappings | null | undefined;
|
|
158
158
|
/**
|
|
159
159
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
160
160
|
*/
|
|
@@ -180,6 +180,97 @@ export namespace Priority$ {
|
|
|
180
180
|
export const outboundSchema = Priority$outboundSchema;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const TicketInput$inboundSchema: z.ZodType<
|
|
185
|
+
TicketInput,
|
|
186
|
+
z.ZodTypeDef,
|
|
187
|
+
unknown
|
|
188
|
+
> = z.object({
|
|
189
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
190
|
+
type: z.nullable(z.string()).optional(),
|
|
191
|
+
subject: z.nullable(z.string()).optional(),
|
|
192
|
+
description: z.nullable(z.string()).optional(),
|
|
193
|
+
status: z.nullable(z.string()).optional(),
|
|
194
|
+
priority: z.nullable(Priority$inboundSchema).optional(),
|
|
195
|
+
assignees: z.array(AssigneeInput$inboundSchema).optional(),
|
|
196
|
+
due_date: z.nullable(
|
|
197
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
198
|
+
).optional(),
|
|
199
|
+
tags: z.array(CollectionTagInput$inboundSchema).optional(),
|
|
200
|
+
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
201
|
+
}).transform((v) => {
|
|
202
|
+
return remap$(v, {
|
|
203
|
+
"parent_id": "parentId",
|
|
204
|
+
"due_date": "dueDate",
|
|
205
|
+
"pass_through": "passThrough",
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
/** @internal */
|
|
210
|
+
export type TicketInput$Outbound = {
|
|
211
|
+
parent_id?: string | null | undefined;
|
|
212
|
+
type?: string | null | undefined;
|
|
213
|
+
subject?: string | null | undefined;
|
|
214
|
+
description?: string | null | undefined;
|
|
215
|
+
status?: string | null | undefined;
|
|
216
|
+
priority?: string | null | undefined;
|
|
217
|
+
assignees?: Array<AssigneeInput$Outbound> | undefined;
|
|
218
|
+
due_date?: string | null | undefined;
|
|
219
|
+
tags?: Array<CollectionTagInput$Outbound> | undefined;
|
|
220
|
+
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/** @internal */
|
|
224
|
+
export const TicketInput$outboundSchema: z.ZodType<
|
|
225
|
+
TicketInput$Outbound,
|
|
226
|
+
z.ZodTypeDef,
|
|
227
|
+
TicketInput
|
|
228
|
+
> = z.object({
|
|
229
|
+
parentId: z.nullable(z.string()).optional(),
|
|
230
|
+
type: z.nullable(z.string()).optional(),
|
|
231
|
+
subject: z.nullable(z.string()).optional(),
|
|
232
|
+
description: z.nullable(z.string()).optional(),
|
|
233
|
+
status: z.nullable(z.string()).optional(),
|
|
234
|
+
priority: z.nullable(Priority$outboundSchema).optional(),
|
|
235
|
+
assignees: z.array(AssigneeInput$outboundSchema).optional(),
|
|
236
|
+
dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
237
|
+
tags: z.array(CollectionTagInput$outboundSchema).optional(),
|
|
238
|
+
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
239
|
+
}).transform((v) => {
|
|
240
|
+
return remap$(v, {
|
|
241
|
+
parentId: "parent_id",
|
|
242
|
+
dueDate: "due_date",
|
|
243
|
+
passThrough: "pass_through",
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @internal
|
|
249
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
250
|
+
*/
|
|
251
|
+
export namespace TicketInput$ {
|
|
252
|
+
/** @deprecated use `TicketInput$inboundSchema` instead. */
|
|
253
|
+
export const inboundSchema = TicketInput$inboundSchema;
|
|
254
|
+
/** @deprecated use `TicketInput$outboundSchema` instead. */
|
|
255
|
+
export const outboundSchema = TicketInput$outboundSchema;
|
|
256
|
+
/** @deprecated use `TicketInput$Outbound` instead. */
|
|
257
|
+
export type Outbound = TicketInput$Outbound;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export function ticketInputToJSON(ticketInput: TicketInput): string {
|
|
261
|
+
return JSON.stringify(TicketInput$outboundSchema.parse(ticketInput));
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export function ticketInputFromJSON(
|
|
265
|
+
jsonString: string,
|
|
266
|
+
): SafeParseResult<TicketInput, SDKValidationError> {
|
|
267
|
+
return safeParse(
|
|
268
|
+
jsonString,
|
|
269
|
+
(x) => TicketInput$inboundSchema.parse(JSON.parse(x)),
|
|
270
|
+
`Failed to parse 'TicketInput' from JSON`,
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
|
|
183
274
|
/** @internal */
|
|
184
275
|
export const Ticket$inboundSchema: z.ZodType<Ticket, z.ZodTypeDef, unknown> = z
|
|
185
276
|
.object({
|
|
@@ -306,94 +397,3 @@ export function ticketFromJSON(
|
|
|
306
397
|
`Failed to parse 'Ticket' from JSON`,
|
|
307
398
|
);
|
|
308
399
|
}
|
|
309
|
-
|
|
310
|
-
/** @internal */
|
|
311
|
-
export const TicketInput$inboundSchema: z.ZodType<
|
|
312
|
-
TicketInput,
|
|
313
|
-
z.ZodTypeDef,
|
|
314
|
-
unknown
|
|
315
|
-
> = z.object({
|
|
316
|
-
parent_id: z.nullable(z.string()).optional(),
|
|
317
|
-
type: z.nullable(z.string()).optional(),
|
|
318
|
-
subject: z.nullable(z.string()).optional(),
|
|
319
|
-
description: z.nullable(z.string()).optional(),
|
|
320
|
-
status: z.nullable(z.string()).optional(),
|
|
321
|
-
priority: z.nullable(Priority$inboundSchema).optional(),
|
|
322
|
-
assignees: z.array(AssigneeInput$inboundSchema).optional(),
|
|
323
|
-
due_date: z.nullable(
|
|
324
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
325
|
-
).optional(),
|
|
326
|
-
tags: z.array(CollectionTagInput$inboundSchema).optional(),
|
|
327
|
-
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
328
|
-
}).transform((v) => {
|
|
329
|
-
return remap$(v, {
|
|
330
|
-
"parent_id": "parentId",
|
|
331
|
-
"due_date": "dueDate",
|
|
332
|
-
"pass_through": "passThrough",
|
|
333
|
-
});
|
|
334
|
-
});
|
|
335
|
-
|
|
336
|
-
/** @internal */
|
|
337
|
-
export type TicketInput$Outbound = {
|
|
338
|
-
parent_id?: string | null | undefined;
|
|
339
|
-
type?: string | null | undefined;
|
|
340
|
-
subject?: string | null | undefined;
|
|
341
|
-
description?: string | null | undefined;
|
|
342
|
-
status?: string | null | undefined;
|
|
343
|
-
priority?: string | null | undefined;
|
|
344
|
-
assignees?: Array<AssigneeInput$Outbound> | undefined;
|
|
345
|
-
due_date?: string | null | undefined;
|
|
346
|
-
tags?: Array<CollectionTagInput$Outbound> | undefined;
|
|
347
|
-
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
/** @internal */
|
|
351
|
-
export const TicketInput$outboundSchema: z.ZodType<
|
|
352
|
-
TicketInput$Outbound,
|
|
353
|
-
z.ZodTypeDef,
|
|
354
|
-
TicketInput
|
|
355
|
-
> = z.object({
|
|
356
|
-
parentId: z.nullable(z.string()).optional(),
|
|
357
|
-
type: z.nullable(z.string()).optional(),
|
|
358
|
-
subject: z.nullable(z.string()).optional(),
|
|
359
|
-
description: z.nullable(z.string()).optional(),
|
|
360
|
-
status: z.nullable(z.string()).optional(),
|
|
361
|
-
priority: z.nullable(Priority$outboundSchema).optional(),
|
|
362
|
-
assignees: z.array(AssigneeInput$outboundSchema).optional(),
|
|
363
|
-
dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
364
|
-
tags: z.array(CollectionTagInput$outboundSchema).optional(),
|
|
365
|
-
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
366
|
-
}).transform((v) => {
|
|
367
|
-
return remap$(v, {
|
|
368
|
-
parentId: "parent_id",
|
|
369
|
-
dueDate: "due_date",
|
|
370
|
-
passThrough: "pass_through",
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* @internal
|
|
376
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
377
|
-
*/
|
|
378
|
-
export namespace TicketInput$ {
|
|
379
|
-
/** @deprecated use `TicketInput$inboundSchema` instead. */
|
|
380
|
-
export const inboundSchema = TicketInput$inboundSchema;
|
|
381
|
-
/** @deprecated use `TicketInput$outboundSchema` instead. */
|
|
382
|
-
export const outboundSchema = TicketInput$outboundSchema;
|
|
383
|
-
/** @deprecated use `TicketInput$Outbound` instead. */
|
|
384
|
-
export type Outbound = TicketInput$Outbound;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
export function ticketInputToJSON(ticketInput: TicketInput): string {
|
|
388
|
-
return JSON.stringify(TicketInput$outboundSchema.parse(ticketInput));
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
export function ticketInputFromJSON(
|
|
392
|
-
jsonString: string,
|
|
393
|
-
): SafeParseResult<TicketInput, SDKValidationError> {
|
|
394
|
-
return safeParse(
|
|
395
|
-
jsonString,
|
|
396
|
-
(x) => TicketInput$inboundSchema.parse(JSON.parse(x)),
|
|
397
|
-
`Failed to parse 'TicketInput' from JSON`,
|
|
398
|
-
);
|
|
399
|
-
}
|
|
@@ -74,7 +74,11 @@ export type Notes = {
|
|
|
74
74
|
manager?: string | null | undefined;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
export type
|
|
77
|
+
export type TimeOffRequest = {
|
|
78
|
+
/**
|
|
79
|
+
* A unique identifier for an object.
|
|
80
|
+
*/
|
|
81
|
+
id?: string | undefined;
|
|
78
82
|
/**
|
|
79
83
|
* ID of the employee
|
|
80
84
|
*/
|
|
@@ -124,6 +128,26 @@ export type TimeOffRequestInput = {
|
|
|
124
128
|
*/
|
|
125
129
|
dayPart?: string | null | undefined;
|
|
126
130
|
notes?: Notes | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
133
|
+
*/
|
|
134
|
+
customMappings?: CustomMappings | null | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* The user who last updated the object.
|
|
137
|
+
*/
|
|
138
|
+
updatedBy?: string | null | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* The user who created the object.
|
|
141
|
+
*/
|
|
142
|
+
createdBy?: string | null | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* The date and time when the object was last updated.
|
|
145
|
+
*/
|
|
146
|
+
updatedAt?: Date | null | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* The date and time when the object was created.
|
|
149
|
+
*/
|
|
150
|
+
createdAt?: Date | null | undefined;
|
|
127
151
|
/**
|
|
128
152
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
129
153
|
*/
|
|
@@ -134,11 +158,7 @@ export type TimeOffRequestInput = {
|
|
|
134
158
|
policyType?: string | undefined;
|
|
135
159
|
};
|
|
136
160
|
|
|
137
|
-
export type
|
|
138
|
-
/**
|
|
139
|
-
* A unique identifier for an object.
|
|
140
|
-
*/
|
|
141
|
-
id?: string | undefined;
|
|
161
|
+
export type TimeOffRequestInput = {
|
|
142
162
|
/**
|
|
143
163
|
* ID of the employee
|
|
144
164
|
*/
|
|
@@ -188,26 +208,6 @@ export type TimeOffRequest = {
|
|
|
188
208
|
*/
|
|
189
209
|
dayPart?: string | null | undefined;
|
|
190
210
|
notes?: Notes | undefined;
|
|
191
|
-
/**
|
|
192
|
-
* When custom mappings are configured on the resource, the result is included here.
|
|
193
|
-
*/
|
|
194
|
-
customMappings?: CustomMappings | null | undefined;
|
|
195
|
-
/**
|
|
196
|
-
* The user who last updated the object.
|
|
197
|
-
*/
|
|
198
|
-
updatedBy?: string | null | undefined;
|
|
199
|
-
/**
|
|
200
|
-
* The user who created the object.
|
|
201
|
-
*/
|
|
202
|
-
createdBy?: string | null | undefined;
|
|
203
|
-
/**
|
|
204
|
-
* The date and time when the object was last updated.
|
|
205
|
-
*/
|
|
206
|
-
updatedAt?: Date | null | undefined;
|
|
207
|
-
/**
|
|
208
|
-
* The date and time when the object was created.
|
|
209
|
-
*/
|
|
210
|
-
createdAt?: Date | null | undefined;
|
|
211
211
|
/**
|
|
212
212
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
213
213
|
*/
|
|
@@ -329,11 +329,12 @@ export function notesFromJSON(
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
/** @internal */
|
|
332
|
-
export const
|
|
333
|
-
|
|
332
|
+
export const TimeOffRequest$inboundSchema: z.ZodType<
|
|
333
|
+
TimeOffRequest,
|
|
334
334
|
z.ZodTypeDef,
|
|
335
335
|
unknown
|
|
336
336
|
> = z.object({
|
|
337
|
+
id: z.string().optional(),
|
|
337
338
|
employee_id: z.nullable(z.string()).optional(),
|
|
338
339
|
policy_id: z.nullable(z.string()).optional(),
|
|
339
340
|
status: z.nullable(TimeOffRequestStatusStatus$inboundSchema).optional(),
|
|
@@ -347,6 +348,15 @@ export const TimeOffRequestInput$inboundSchema: z.ZodType<
|
|
|
347
348
|
amount: z.nullable(z.number()).optional(),
|
|
348
349
|
day_part: z.nullable(z.string()).optional(),
|
|
349
350
|
notes: z.lazy(() => Notes$inboundSchema).optional(),
|
|
351
|
+
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
352
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
353
|
+
created_by: z.nullable(z.string()).optional(),
|
|
354
|
+
updated_at: z.nullable(
|
|
355
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
356
|
+
).optional(),
|
|
357
|
+
created_at: z.nullable(
|
|
358
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
359
|
+
).optional(),
|
|
350
360
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
351
361
|
policy_type: z.string().optional(),
|
|
352
362
|
}).transform((v) => {
|
|
@@ -359,13 +369,19 @@ export const TimeOffRequestInput$inboundSchema: z.ZodType<
|
|
|
359
369
|
"request_type": "requestType",
|
|
360
370
|
"approval_date": "approvalDate",
|
|
361
371
|
"day_part": "dayPart",
|
|
372
|
+
"custom_mappings": "customMappings",
|
|
373
|
+
"updated_by": "updatedBy",
|
|
374
|
+
"created_by": "createdBy",
|
|
375
|
+
"updated_at": "updatedAt",
|
|
376
|
+
"created_at": "createdAt",
|
|
362
377
|
"pass_through": "passThrough",
|
|
363
378
|
"policy_type": "policyType",
|
|
364
379
|
});
|
|
365
380
|
});
|
|
366
381
|
|
|
367
382
|
/** @internal */
|
|
368
|
-
export type
|
|
383
|
+
export type TimeOffRequest$Outbound = {
|
|
384
|
+
id?: string | undefined;
|
|
369
385
|
employee_id?: string | null | undefined;
|
|
370
386
|
policy_id?: string | null | undefined;
|
|
371
387
|
status?: string | null | undefined;
|
|
@@ -379,16 +395,22 @@ export type TimeOffRequestInput$Outbound = {
|
|
|
379
395
|
amount?: number | null | undefined;
|
|
380
396
|
day_part?: string | null | undefined;
|
|
381
397
|
notes?: Notes$Outbound | undefined;
|
|
398
|
+
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
399
|
+
updated_by?: string | null | undefined;
|
|
400
|
+
created_by?: string | null | undefined;
|
|
401
|
+
updated_at?: string | null | undefined;
|
|
402
|
+
created_at?: string | null | undefined;
|
|
382
403
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
383
404
|
policy_type?: string | undefined;
|
|
384
405
|
};
|
|
385
406
|
|
|
386
407
|
/** @internal */
|
|
387
|
-
export const
|
|
388
|
-
|
|
408
|
+
export const TimeOffRequest$outboundSchema: z.ZodType<
|
|
409
|
+
TimeOffRequest$Outbound,
|
|
389
410
|
z.ZodTypeDef,
|
|
390
|
-
|
|
411
|
+
TimeOffRequest
|
|
391
412
|
> = z.object({
|
|
413
|
+
id: z.string().optional(),
|
|
392
414
|
employeeId: z.nullable(z.string()).optional(),
|
|
393
415
|
policyId: z.nullable(z.string()).optional(),
|
|
394
416
|
status: z.nullable(TimeOffRequestStatusStatus$outboundSchema).optional(),
|
|
@@ -402,6 +424,11 @@ export const TimeOffRequestInput$outboundSchema: z.ZodType<
|
|
|
402
424
|
amount: z.nullable(z.number()).optional(),
|
|
403
425
|
dayPart: z.nullable(z.string()).optional(),
|
|
404
426
|
notes: z.lazy(() => Notes$outboundSchema).optional(),
|
|
427
|
+
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
428
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
429
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
430
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
431
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
405
432
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
406
433
|
policyType: z.string().optional(),
|
|
407
434
|
}).transform((v) => {
|
|
@@ -414,6 +441,11 @@ export const TimeOffRequestInput$outboundSchema: z.ZodType<
|
|
|
414
441
|
requestType: "request_type",
|
|
415
442
|
approvalDate: "approval_date",
|
|
416
443
|
dayPart: "day_part",
|
|
444
|
+
customMappings: "custom_mappings",
|
|
445
|
+
updatedBy: "updated_by",
|
|
446
|
+
createdBy: "created_by",
|
|
447
|
+
updatedAt: "updated_at",
|
|
448
|
+
createdAt: "created_at",
|
|
417
449
|
passThrough: "pass_through",
|
|
418
450
|
policyType: "policy_type",
|
|
419
451
|
});
|
|
@@ -423,40 +455,35 @@ export const TimeOffRequestInput$outboundSchema: z.ZodType<
|
|
|
423
455
|
* @internal
|
|
424
456
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
425
457
|
*/
|
|
426
|
-
export namespace
|
|
427
|
-
/** @deprecated use `
|
|
428
|
-
export const inboundSchema =
|
|
429
|
-
/** @deprecated use `
|
|
430
|
-
export const outboundSchema =
|
|
431
|
-
/** @deprecated use `
|
|
432
|
-
export type Outbound =
|
|
458
|
+
export namespace TimeOffRequest$ {
|
|
459
|
+
/** @deprecated use `TimeOffRequest$inboundSchema` instead. */
|
|
460
|
+
export const inboundSchema = TimeOffRequest$inboundSchema;
|
|
461
|
+
/** @deprecated use `TimeOffRequest$outboundSchema` instead. */
|
|
462
|
+
export const outboundSchema = TimeOffRequest$outboundSchema;
|
|
463
|
+
/** @deprecated use `TimeOffRequest$Outbound` instead. */
|
|
464
|
+
export type Outbound = TimeOffRequest$Outbound;
|
|
433
465
|
}
|
|
434
466
|
|
|
435
|
-
export function
|
|
436
|
-
|
|
437
|
-
): string {
|
|
438
|
-
return JSON.stringify(
|
|
439
|
-
TimeOffRequestInput$outboundSchema.parse(timeOffRequestInput),
|
|
440
|
-
);
|
|
467
|
+
export function timeOffRequestToJSON(timeOffRequest: TimeOffRequest): string {
|
|
468
|
+
return JSON.stringify(TimeOffRequest$outboundSchema.parse(timeOffRequest));
|
|
441
469
|
}
|
|
442
470
|
|
|
443
|
-
export function
|
|
471
|
+
export function timeOffRequestFromJSON(
|
|
444
472
|
jsonString: string,
|
|
445
|
-
): SafeParseResult<
|
|
473
|
+
): SafeParseResult<TimeOffRequest, SDKValidationError> {
|
|
446
474
|
return safeParse(
|
|
447
475
|
jsonString,
|
|
448
|
-
(x) =>
|
|
449
|
-
`Failed to parse '
|
|
476
|
+
(x) => TimeOffRequest$inboundSchema.parse(JSON.parse(x)),
|
|
477
|
+
`Failed to parse 'TimeOffRequest' from JSON`,
|
|
450
478
|
);
|
|
451
479
|
}
|
|
452
480
|
|
|
453
481
|
/** @internal */
|
|
454
|
-
export const
|
|
455
|
-
|
|
482
|
+
export const TimeOffRequestInput$inboundSchema: z.ZodType<
|
|
483
|
+
TimeOffRequestInput,
|
|
456
484
|
z.ZodTypeDef,
|
|
457
485
|
unknown
|
|
458
486
|
> = z.object({
|
|
459
|
-
id: z.string().optional(),
|
|
460
487
|
employee_id: z.nullable(z.string()).optional(),
|
|
461
488
|
policy_id: z.nullable(z.string()).optional(),
|
|
462
489
|
status: z.nullable(TimeOffRequestStatusStatus$inboundSchema).optional(),
|
|
@@ -470,15 +497,6 @@ export const TimeOffRequest$inboundSchema: z.ZodType<
|
|
|
470
497
|
amount: z.nullable(z.number()).optional(),
|
|
471
498
|
day_part: z.nullable(z.string()).optional(),
|
|
472
499
|
notes: z.lazy(() => Notes$inboundSchema).optional(),
|
|
473
|
-
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
474
|
-
updated_by: z.nullable(z.string()).optional(),
|
|
475
|
-
created_by: z.nullable(z.string()).optional(),
|
|
476
|
-
updated_at: z.nullable(
|
|
477
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
478
|
-
).optional(),
|
|
479
|
-
created_at: z.nullable(
|
|
480
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
481
|
-
).optional(),
|
|
482
500
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
483
501
|
policy_type: z.string().optional(),
|
|
484
502
|
}).transform((v) => {
|
|
@@ -491,19 +509,13 @@ export const TimeOffRequest$inboundSchema: z.ZodType<
|
|
|
491
509
|
"request_type": "requestType",
|
|
492
510
|
"approval_date": "approvalDate",
|
|
493
511
|
"day_part": "dayPart",
|
|
494
|
-
"custom_mappings": "customMappings",
|
|
495
|
-
"updated_by": "updatedBy",
|
|
496
|
-
"created_by": "createdBy",
|
|
497
|
-
"updated_at": "updatedAt",
|
|
498
|
-
"created_at": "createdAt",
|
|
499
512
|
"pass_through": "passThrough",
|
|
500
513
|
"policy_type": "policyType",
|
|
501
514
|
});
|
|
502
515
|
});
|
|
503
516
|
|
|
504
517
|
/** @internal */
|
|
505
|
-
export type
|
|
506
|
-
id?: string | undefined;
|
|
518
|
+
export type TimeOffRequestInput$Outbound = {
|
|
507
519
|
employee_id?: string | null | undefined;
|
|
508
520
|
policy_id?: string | null | undefined;
|
|
509
521
|
status?: string | null | undefined;
|
|
@@ -517,22 +529,16 @@ export type TimeOffRequest$Outbound = {
|
|
|
517
529
|
amount?: number | null | undefined;
|
|
518
530
|
day_part?: string | null | undefined;
|
|
519
531
|
notes?: Notes$Outbound | undefined;
|
|
520
|
-
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
521
|
-
updated_by?: string | null | undefined;
|
|
522
|
-
created_by?: string | null | undefined;
|
|
523
|
-
updated_at?: string | null | undefined;
|
|
524
|
-
created_at?: string | null | undefined;
|
|
525
532
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
526
533
|
policy_type?: string | undefined;
|
|
527
534
|
};
|
|
528
535
|
|
|
529
536
|
/** @internal */
|
|
530
|
-
export const
|
|
531
|
-
|
|
537
|
+
export const TimeOffRequestInput$outboundSchema: z.ZodType<
|
|
538
|
+
TimeOffRequestInput$Outbound,
|
|
532
539
|
z.ZodTypeDef,
|
|
533
|
-
|
|
540
|
+
TimeOffRequestInput
|
|
534
541
|
> = z.object({
|
|
535
|
-
id: z.string().optional(),
|
|
536
542
|
employeeId: z.nullable(z.string()).optional(),
|
|
537
543
|
policyId: z.nullable(z.string()).optional(),
|
|
538
544
|
status: z.nullable(TimeOffRequestStatusStatus$outboundSchema).optional(),
|
|
@@ -546,11 +552,6 @@ export const TimeOffRequest$outboundSchema: z.ZodType<
|
|
|
546
552
|
amount: z.nullable(z.number()).optional(),
|
|
547
553
|
dayPart: z.nullable(z.string()).optional(),
|
|
548
554
|
notes: z.lazy(() => Notes$outboundSchema).optional(),
|
|
549
|
-
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
550
|
-
updatedBy: z.nullable(z.string()).optional(),
|
|
551
|
-
createdBy: z.nullable(z.string()).optional(),
|
|
552
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
553
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
554
555
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
555
556
|
policyType: z.string().optional(),
|
|
556
557
|
}).transform((v) => {
|
|
@@ -563,11 +564,6 @@ export const TimeOffRequest$outboundSchema: z.ZodType<
|
|
|
563
564
|
requestType: "request_type",
|
|
564
565
|
approvalDate: "approval_date",
|
|
565
566
|
dayPart: "day_part",
|
|
566
|
-
customMappings: "custom_mappings",
|
|
567
|
-
updatedBy: "updated_by",
|
|
568
|
-
createdBy: "created_by",
|
|
569
|
-
updatedAt: "updated_at",
|
|
570
|
-
createdAt: "created_at",
|
|
571
567
|
passThrough: "pass_through",
|
|
572
568
|
policyType: "policy_type",
|
|
573
569
|
});
|
|
@@ -577,25 +573,29 @@ export const TimeOffRequest$outboundSchema: z.ZodType<
|
|
|
577
573
|
* @internal
|
|
578
574
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
579
575
|
*/
|
|
580
|
-
export namespace
|
|
581
|
-
/** @deprecated use `
|
|
582
|
-
export const inboundSchema =
|
|
583
|
-
/** @deprecated use `
|
|
584
|
-
export const outboundSchema =
|
|
585
|
-
/** @deprecated use `
|
|
586
|
-
export type Outbound =
|
|
576
|
+
export namespace TimeOffRequestInput$ {
|
|
577
|
+
/** @deprecated use `TimeOffRequestInput$inboundSchema` instead. */
|
|
578
|
+
export const inboundSchema = TimeOffRequestInput$inboundSchema;
|
|
579
|
+
/** @deprecated use `TimeOffRequestInput$outboundSchema` instead. */
|
|
580
|
+
export const outboundSchema = TimeOffRequestInput$outboundSchema;
|
|
581
|
+
/** @deprecated use `TimeOffRequestInput$Outbound` instead. */
|
|
582
|
+
export type Outbound = TimeOffRequestInput$Outbound;
|
|
587
583
|
}
|
|
588
584
|
|
|
589
|
-
export function
|
|
590
|
-
|
|
585
|
+
export function timeOffRequestInputToJSON(
|
|
586
|
+
timeOffRequestInput: TimeOffRequestInput,
|
|
587
|
+
): string {
|
|
588
|
+
return JSON.stringify(
|
|
589
|
+
TimeOffRequestInput$outboundSchema.parse(timeOffRequestInput),
|
|
590
|
+
);
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
export function
|
|
593
|
+
export function timeOffRequestInputFromJSON(
|
|
594
594
|
jsonString: string,
|
|
595
|
-
): SafeParseResult<
|
|
595
|
+
): SafeParseResult<TimeOffRequestInput, SDKValidationError> {
|
|
596
596
|
return safeParse(
|
|
597
597
|
jsonString,
|
|
598
|
-
(x) =>
|
|
599
|
-
`Failed to parse '
|
|
598
|
+
(x) => TimeOffRequestInput$inboundSchema.parse(JSON.parse(x)),
|
|
599
|
+
`Failed to parse 'TimeOffRequestInput' from JSON`,
|
|
600
600
|
);
|
|
601
601
|
}
|