@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.
Files changed (306) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/{accountingdepartmentinput.d.ts → accountingdepartment.d.ts} +51 -51
  5. package/models/components/accountingdepartment.d.ts.map +1 -0
  6. package/models/components/{accountingdepartmentinput.js → accountingdepartment.js} +51 -51
  7. package/models/components/accountingdepartment.js.map +1 -0
  8. package/models/components/{accountinglocationinput.d.ts → accountinglocation.d.ts} +58 -58
  9. package/models/components/accountinglocation.d.ts.map +1 -0
  10. package/models/components/{accountinglocationinput.js → accountinglocation.js} +56 -56
  11. package/models/components/accountinglocation.js.map +1 -0
  12. package/models/components/activity.d.ts +1 -1
  13. package/models/components/activity.d.ts.map +1 -1
  14. package/models/components/activity.js +5 -5
  15. package/models/components/activity.js.map +1 -1
  16. package/models/components/{activityattendeeinput.d.ts → activityattendee.d.ts} +51 -51
  17. package/models/components/activityattendee.d.ts.map +1 -0
  18. package/models/components/{activityattendeeinput.js → activityattendee.js} +48 -48
  19. package/models/components/activityattendee.js.map +1 -0
  20. package/models/components/{allocationinput.d.ts → allocation.d.ts} +29 -29
  21. package/models/components/allocation.d.ts.map +1 -0
  22. package/models/components/{allocationinput.js → allocation.js} +32 -32
  23. package/models/components/allocation.js.map +1 -0
  24. package/models/components/{applicationinput.d.ts → application.d.ts} +37 -37
  25. package/models/components/application.d.ts.map +1 -0
  26. package/models/components/{applicationinput.js → application.js} +49 -49
  27. package/models/components/application.js.map +1 -0
  28. package/models/components/{bill.d.ts → billinput.d.ts} +75 -75
  29. package/models/components/billinput.d.ts.map +1 -0
  30. package/models/components/{bill.js → billinput.js} +70 -70
  31. package/models/components/billinput.js.map +1 -0
  32. package/models/components/{billlineitem.d.ts → billlineiteminput.d.ts} +59 -59
  33. package/models/components/billlineiteminput.d.ts.map +1 -0
  34. package/models/components/{billlineitem.js → billlineiteminput.js} +56 -56
  35. package/models/components/billlineiteminput.js.map +1 -0
  36. package/models/components/companyinfo.d.ts +1 -1
  37. package/models/components/companyinfo.d.ts.map +1 -1
  38. package/models/components/companyinfo.js +3 -3
  39. package/models/components/companyinfo.js.map +1 -1
  40. package/models/components/{company.d.ts → companyinput.d.ts} +77 -77
  41. package/models/components/companyinput.d.ts.map +1 -0
  42. package/models/components/{company.js → companyinput.js} +67 -67
  43. package/models/components/companyinput.js.map +1 -0
  44. package/models/components/creditnote.d.ts +1 -1
  45. package/models/components/creditnote.d.ts.map +1 -1
  46. package/models/components/creditnote.js +5 -5
  47. package/models/components/creditnote.js.map +1 -1
  48. package/models/components/employeeinput.d.ts +1 -1
  49. package/models/components/employeeinput.d.ts.map +1 -1
  50. package/models/components/employeeinput.js +5 -5
  51. package/models/components/employeeinput.js.map +1 -1
  52. package/models/components/{employeejobinput.d.ts → employeejob.d.ts} +37 -37
  53. package/models/components/employeejob.d.ts.map +1 -0
  54. package/models/components/{employeejobinput.js → employeejob.js} +36 -36
  55. package/models/components/employeejob.js.map +1 -0
  56. package/models/components/{expenseinput.d.ts → expense.d.ts} +55 -55
  57. package/models/components/expense.d.ts.map +1 -0
  58. package/models/components/{expenseinput.js → expense.js} +52 -52
  59. package/models/components/expense.js.map +1 -0
  60. package/models/components/getaccountingdepartmentresponse.d.ts +1 -1
  61. package/models/components/getaccountingdepartmentresponse.d.ts.map +1 -1
  62. package/models/components/getaccountingdepartmentresponse.js +3 -3
  63. package/models/components/getaccountingdepartmentresponse.js.map +1 -1
  64. package/models/components/getaccountingdepartmentsresponse.d.ts +1 -1
  65. package/models/components/getaccountingdepartmentsresponse.d.ts.map +1 -1
  66. package/models/components/getaccountingdepartmentsresponse.js +3 -3
  67. package/models/components/getaccountingdepartmentsresponse.js.map +1 -1
  68. package/models/components/getaccountinglocationresponse.d.ts +1 -1
  69. package/models/components/getaccountinglocationresponse.d.ts.map +1 -1
  70. package/models/components/getaccountinglocationresponse.js +3 -3
  71. package/models/components/getaccountinglocationresponse.js.map +1 -1
  72. package/models/components/getaccountinglocationsresponse.d.ts +1 -1
  73. package/models/components/getaccountinglocationsresponse.d.ts.map +1 -1
  74. package/models/components/getaccountinglocationsresponse.js +3 -3
  75. package/models/components/getaccountinglocationsresponse.js.map +1 -1
  76. package/models/components/getapplicationresponse.d.ts +1 -1
  77. package/models/components/getapplicationresponse.d.ts.map +1 -1
  78. package/models/components/getapplicationresponse.js +3 -3
  79. package/models/components/getapplicationresponse.js.map +1 -1
  80. package/models/components/getapplicationsresponse.d.ts +1 -1
  81. package/models/components/getapplicationsresponse.d.ts.map +1 -1
  82. package/models/components/getapplicationsresponse.js +3 -3
  83. package/models/components/getapplicationsresponse.js.map +1 -1
  84. package/models/components/getbillresponse.d.ts +1 -1
  85. package/models/components/getbillresponse.d.ts.map +1 -1
  86. package/models/components/getbillresponse.js +3 -3
  87. package/models/components/getbillresponse.js.map +1 -1
  88. package/models/components/getbillsresponse.d.ts +1 -1
  89. package/models/components/getbillsresponse.d.ts.map +1 -1
  90. package/models/components/getbillsresponse.js +3 -3
  91. package/models/components/getbillsresponse.js.map +1 -1
  92. package/models/components/getcompaniesresponse.d.ts +1 -1
  93. package/models/components/getcompaniesresponse.d.ts.map +1 -1
  94. package/models/components/getcompaniesresponse.js +3 -3
  95. package/models/components/getcompaniesresponse.js.map +1 -1
  96. package/models/components/getcompanyresponse.d.ts +1 -1
  97. package/models/components/getcompanyresponse.d.ts.map +1 -1
  98. package/models/components/getcompanyresponse.js +3 -3
  99. package/models/components/getcompanyresponse.js.map +1 -1
  100. package/models/components/getexpenseresponse.d.ts +1 -1
  101. package/models/components/getexpenseresponse.d.ts.map +1 -1
  102. package/models/components/getexpenseresponse.js +3 -3
  103. package/models/components/getexpenseresponse.js.map +1 -1
  104. package/models/components/getexpensesresponse.d.ts +1 -1
  105. package/models/components/getexpensesresponse.d.ts.map +1 -1
  106. package/models/components/getexpensesresponse.js +3 -3
  107. package/models/components/getexpensesresponse.js.map +1 -1
  108. package/models/components/gethriscompaniesresponse.d.ts +1 -1
  109. package/models/components/gethriscompaniesresponse.d.ts.map +1 -1
  110. package/models/components/gethriscompaniesresponse.js +3 -3
  111. package/models/components/gethriscompaniesresponse.js.map +1 -1
  112. package/models/components/gethriscompanyresponse.d.ts +1 -1
  113. package/models/components/gethriscompanyresponse.d.ts.map +1 -1
  114. package/models/components/gethriscompanyresponse.js +3 -3
  115. package/models/components/gethriscompanyresponse.js.map +1 -1
  116. package/models/components/getinvoiceresponse.d.ts +1 -1
  117. package/models/components/getinvoiceresponse.d.ts.map +1 -1
  118. package/models/components/getinvoiceresponse.js +3 -3
  119. package/models/components/getinvoiceresponse.js.map +1 -1
  120. package/models/components/getinvoicesresponse.d.ts +1 -1
  121. package/models/components/getinvoicesresponse.d.ts.map +1 -1
  122. package/models/components/getinvoicesresponse.js +3 -3
  123. package/models/components/getinvoicesresponse.js.map +1 -1
  124. package/models/components/getledgeraccountresponse.d.ts +1 -1
  125. package/models/components/getledgeraccountresponse.d.ts.map +1 -1
  126. package/models/components/getledgeraccountresponse.js +3 -3
  127. package/models/components/getledgeraccountresponse.js.map +1 -1
  128. package/models/components/getledgeraccountsresponse.d.ts +1 -1
  129. package/models/components/getledgeraccountsresponse.d.ts.map +1 -1
  130. package/models/components/getledgeraccountsresponse.js +3 -3
  131. package/models/components/getledgeraccountsresponse.js.map +1 -1
  132. package/models/components/getsharedlinkresponse.d.ts +1 -1
  133. package/models/components/getsharedlinkresponse.d.ts.map +1 -1
  134. package/models/components/getsharedlinkresponse.js +3 -3
  135. package/models/components/getsharedlinkresponse.js.map +1 -1
  136. package/models/components/getsharedlinksresponse.d.ts +1 -1
  137. package/models/components/getsharedlinksresponse.d.ts.map +1 -1
  138. package/models/components/getsharedlinksresponse.js +3 -3
  139. package/models/components/getsharedlinksresponse.js.map +1 -1
  140. package/models/components/gettaxrateresponse.d.ts +1 -1
  141. package/models/components/gettaxrateresponse.d.ts.map +1 -1
  142. package/models/components/gettaxrateresponse.js +3 -3
  143. package/models/components/gettaxrateresponse.js.map +1 -1
  144. package/models/components/gettaxratesresponse.d.ts +1 -1
  145. package/models/components/gettaxratesresponse.d.ts.map +1 -1
  146. package/models/components/gettaxratesresponse.js +3 -3
  147. package/models/components/gettaxratesresponse.js.map +1 -1
  148. package/models/components/getticketresponse.d.ts +1 -1
  149. package/models/components/getticketresponse.d.ts.map +1 -1
  150. package/models/components/getticketresponse.js +3 -3
  151. package/models/components/getticketresponse.js.map +1 -1
  152. package/models/components/getticketsresponse.d.ts +1 -1
  153. package/models/components/getticketsresponse.d.ts.map +1 -1
  154. package/models/components/getticketsresponse.js +3 -3
  155. package/models/components/getticketsresponse.js.map +1 -1
  156. package/models/components/gettimeoffrequestresponse.d.ts +1 -1
  157. package/models/components/gettimeoffrequestresponse.d.ts.map +1 -1
  158. package/models/components/gettimeoffrequestresponse.js +3 -3
  159. package/models/components/gettimeoffrequestresponse.js.map +1 -1
  160. package/models/components/gettimeoffrequestsresponse.d.ts +1 -1
  161. package/models/components/gettimeoffrequestsresponse.d.ts.map +1 -1
  162. package/models/components/gettimeoffrequestsresponse.js +3 -3
  163. package/models/components/gettimeoffrequestsresponse.js.map +1 -1
  164. package/models/components/{hriscompanyinput.d.ts → hriscompany.d.ts} +55 -55
  165. package/models/components/hriscompany.d.ts.map +1 -0
  166. package/models/components/{hriscompanyinput.js → hriscompany.js} +54 -54
  167. package/models/components/hriscompany.js.map +1 -0
  168. package/models/components/index.d.ts +18 -18
  169. package/models/components/index.d.ts.map +1 -1
  170. package/models/components/index.js +18 -18
  171. package/models/components/index.js.map +1 -1
  172. package/models/components/{invoiceinput.d.ts → invoice.d.ts} +121 -73
  173. package/models/components/invoice.d.ts.map +1 -0
  174. package/models/components/{invoiceinput.js → invoice.js} +118 -71
  175. package/models/components/invoice.js.map +1 -0
  176. package/models/components/journalentry.d.ts +1 -1
  177. package/models/components/journalentry.d.ts.map +1 -1
  178. package/models/components/journalentry.js +3 -3
  179. package/models/components/journalentry.js.map +1 -1
  180. package/models/components/journalentryinput.d.ts +1 -1
  181. package/models/components/journalentryinput.d.ts.map +1 -1
  182. package/models/components/journalentryinput.js +3 -3
  183. package/models/components/journalentryinput.js.map +1 -1
  184. package/models/components/{journalentrylineiteminput.d.ts → journalentrylineitem.d.ts} +48 -48
  185. package/models/components/journalentrylineitem.d.ts.map +1 -0
  186. package/models/components/{journalentrylineiteminput.js → journalentrylineitem.js} +48 -48
  187. package/models/components/journalentrylineitem.js.map +1 -0
  188. package/models/components/{ledgeraccountinput.d.ts → ledgeraccount.d.ts} +129 -129
  189. package/models/components/ledgeraccount.d.ts.map +1 -0
  190. package/models/components/{ledgeraccountinput.js → ledgeraccount.js} +128 -128
  191. package/models/components/ledgeraccount.js.map +1 -0
  192. package/models/components/payment.d.ts +1 -1
  193. package/models/components/payment.d.ts.map +1 -1
  194. package/models/components/payment.js +3 -3
  195. package/models/components/payment.js.map +1 -1
  196. package/models/components/paymentinput.d.ts +1 -1
  197. package/models/components/paymentinput.d.ts.map +1 -1
  198. package/models/components/paymentinput.js +3 -3
  199. package/models/components/paymentinput.js.map +1 -1
  200. package/models/components/{sharedlinkinput.d.ts → sharedlink.d.ts} +49 -49
  201. package/models/components/sharedlink.d.ts.map +1 -0
  202. package/models/components/{sharedlinkinput.js → sharedlink.js} +49 -49
  203. package/models/components/sharedlink.js.map +1 -0
  204. package/models/components/{taxrateinput.d.ts → taxrate.d.ts} +52 -52
  205. package/models/components/taxrate.d.ts.map +1 -0
  206. package/models/components/{taxrateinput.js → taxrate.js} +50 -50
  207. package/models/components/taxrate.js.map +1 -0
  208. package/models/components/{ticket.d.ts → ticketinput.d.ts} +66 -66
  209. package/models/components/ticketinput.d.ts.map +1 -0
  210. package/models/components/{ticket.js → ticketinput.js} +59 -59
  211. package/models/components/ticketinput.js.map +1 -0
  212. package/models/components/{timeoffrequestinput.d.ts → timeoffrequest.d.ts} +57 -57
  213. package/models/components/timeoffrequest.d.ts.map +1 -0
  214. package/models/components/{timeoffrequestinput.js → timeoffrequest.js} +52 -52
  215. package/models/components/timeoffrequest.js.map +1 -0
  216. package/package.json +1 -1
  217. package/src/lib/config.ts +3 -3
  218. package/src/models/components/activity.ts +1 -1
  219. package/src/models/components/{bill.ts → billinput.ts} +248 -248
  220. package/src/models/components/companyinfo.ts +1 -1
  221. package/src/models/components/creditnote.ts +1 -1
  222. package/src/models/components/employeeinput.ts +1 -1
  223. package/src/models/components/getaccountingdepartmentresponse.ts +1 -1
  224. package/src/models/components/getaccountingdepartmentsresponse.ts +1 -1
  225. package/src/models/components/getaccountinglocationresponse.ts +1 -1
  226. package/src/models/components/getaccountinglocationsresponse.ts +1 -1
  227. package/src/models/components/getapplicationresponse.ts +1 -1
  228. package/src/models/components/getapplicationsresponse.ts +1 -1
  229. package/src/models/components/getbillresponse.ts +1 -1
  230. package/src/models/components/getbillsresponse.ts +1 -1
  231. package/src/models/components/getcompaniesresponse.ts +1 -1
  232. package/src/models/components/getcompanyresponse.ts +1 -1
  233. package/src/models/components/getexpenseresponse.ts +1 -1
  234. package/src/models/components/getexpensesresponse.ts +1 -1
  235. package/src/models/components/gethriscompaniesresponse.ts +1 -1
  236. package/src/models/components/gethriscompanyresponse.ts +1 -1
  237. package/src/models/components/getinvoiceresponse.ts +1 -1
  238. package/src/models/components/getinvoicesresponse.ts +1 -1
  239. package/src/models/components/getledgeraccountresponse.ts +1 -1
  240. package/src/models/components/getledgeraccountsresponse.ts +1 -1
  241. package/src/models/components/getsharedlinkresponse.ts +1 -1
  242. package/src/models/components/getsharedlinksresponse.ts +1 -1
  243. package/src/models/components/gettaxrateresponse.ts +1 -1
  244. package/src/models/components/gettaxratesresponse.ts +1 -1
  245. package/src/models/components/getticketresponse.ts +1 -1
  246. package/src/models/components/getticketsresponse.ts +1 -1
  247. package/src/models/components/gettimeoffrequestresponse.ts +1 -1
  248. package/src/models/components/gettimeoffrequestsresponse.ts +1 -1
  249. package/src/models/components/index.ts +18 -18
  250. package/src/models/components/{invoiceinput.ts → invoice.ts} +351 -240
  251. package/src/models/components/journalentry.ts +1 -1
  252. package/src/models/components/journalentryinput.ts +1 -1
  253. package/src/models/components/payment.ts +1 -1
  254. package/src/models/components/paymentinput.ts +1 -1
  255. package/models/components/accountingdepartmentinput.d.ts.map +0 -1
  256. package/models/components/accountingdepartmentinput.js.map +0 -1
  257. package/models/components/accountinglocationinput.d.ts.map +0 -1
  258. package/models/components/accountinglocationinput.js.map +0 -1
  259. package/models/components/activityattendeeinput.d.ts.map +0 -1
  260. package/models/components/activityattendeeinput.js.map +0 -1
  261. package/models/components/allocationinput.d.ts.map +0 -1
  262. package/models/components/allocationinput.js.map +0 -1
  263. package/models/components/applicationinput.d.ts.map +0 -1
  264. package/models/components/applicationinput.js.map +0 -1
  265. package/models/components/bill.d.ts.map +0 -1
  266. package/models/components/bill.js.map +0 -1
  267. package/models/components/billlineitem.d.ts.map +0 -1
  268. package/models/components/billlineitem.js.map +0 -1
  269. package/models/components/company.d.ts.map +0 -1
  270. package/models/components/company.js.map +0 -1
  271. package/models/components/employeejobinput.d.ts.map +0 -1
  272. package/models/components/employeejobinput.js.map +0 -1
  273. package/models/components/expenseinput.d.ts.map +0 -1
  274. package/models/components/expenseinput.js.map +0 -1
  275. package/models/components/hriscompanyinput.d.ts.map +0 -1
  276. package/models/components/hriscompanyinput.js.map +0 -1
  277. package/models/components/invoiceinput.d.ts.map +0 -1
  278. package/models/components/invoiceinput.js.map +0 -1
  279. package/models/components/journalentrylineiteminput.d.ts.map +0 -1
  280. package/models/components/journalentrylineiteminput.js.map +0 -1
  281. package/models/components/ledgeraccountinput.d.ts.map +0 -1
  282. package/models/components/ledgeraccountinput.js.map +0 -1
  283. package/models/components/sharedlinkinput.d.ts.map +0 -1
  284. package/models/components/sharedlinkinput.js.map +0 -1
  285. package/models/components/taxrateinput.d.ts.map +0 -1
  286. package/models/components/taxrateinput.js.map +0 -1
  287. package/models/components/ticket.d.ts.map +0 -1
  288. package/models/components/ticket.js.map +0 -1
  289. package/models/components/timeoffrequestinput.d.ts.map +0 -1
  290. package/models/components/timeoffrequestinput.js.map +0 -1
  291. package/src/models/components/{accountingdepartmentinput.ts → accountingdepartment.ts} +102 -102
  292. package/src/models/components/{accountinglocationinput.ts → accountinglocation.ts} +106 -106
  293. package/src/models/components/{activityattendeeinput.ts → activityattendee.ts} +89 -89
  294. package/src/models/components/{allocationinput.ts → allocation.ts} +46 -46
  295. package/src/models/components/{applicationinput.ts → application.ts} +85 -85
  296. package/src/models/components/{billlineitem.ts → billlineiteminput.ts} +107 -107
  297. package/src/models/components/{company.ts → companyinput.ts} +226 -226
  298. package/src/models/components/{employeejobinput.ts → employeejob.ts} +60 -60
  299. package/src/models/components/{expenseinput.ts → expense.ts} +159 -159
  300. package/src/models/components/{hriscompanyinput.ts → hriscompany.ts} +101 -101
  301. package/src/models/components/{journalentrylineiteminput.ts → journalentrylineitem.ts} +81 -81
  302. package/src/models/components/{ledgeraccountinput.ts → ledgeraccount.ts} +253 -253
  303. package/src/models/components/{sharedlinkinput.ts → sharedlink.ts} +99 -99
  304. package/src/models/components/{taxrateinput.ts → taxrate.ts} +146 -146
  305. package/src/models/components/{ticket.ts → ticketinput.ts} +125 -125
  306. package/src/models/components/{timeoffrequestinput.ts → timeoffrequest.ts} +100 -100
@@ -51,7 +51,11 @@ export const LocationStatus = {
51
51
  */
52
52
  export type LocationStatus = ClosedEnum<typeof LocationStatus>;
53
53
 
54
- export type AccountingLocationInput = {
54
+ export type AccountingLocation = {
55
+ /**
56
+ * A unique identifier for an object.
57
+ */
58
+ id?: string | undefined;
55
59
  /**
56
60
  * A unique identifier for an object.
57
61
  */
@@ -69,22 +73,38 @@ export type AccountingLocationInput = {
69
73
  */
70
74
  status?: LocationStatus | undefined;
71
75
  addresses?: Array<Address> | undefined;
72
- subsidiaries?: Array<SubsidiaryReferenceInput> | undefined;
76
+ subsidiaries?: Array<SubsidiaryReference> | undefined;
77
+ /**
78
+ * When custom mappings are configured on the resource, the result is included here.
79
+ */
80
+ customMappings?: CustomMappings | null | undefined;
73
81
  /**
74
82
  * 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.
75
83
  */
76
84
  rowVersion?: string | null | undefined;
85
+ /**
86
+ * The user who last updated the object.
87
+ */
88
+ updatedBy?: string | null | undefined;
89
+ /**
90
+ * The user who created the object.
91
+ */
92
+ createdBy?: string | null | undefined;
93
+ /**
94
+ * The date and time when the object was last updated.
95
+ */
96
+ updatedAt?: Date | null | undefined;
97
+ /**
98
+ * The date and time when the object was created.
99
+ */
100
+ createdAt?: Date | null | undefined;
77
101
  /**
78
102
  * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
79
103
  */
80
104
  passThrough?: Array<PassThroughBody> | undefined;
81
105
  };
82
106
 
83
- export type AccountingLocation = {
84
- /**
85
- * A unique identifier for an object.
86
- */
87
- id?: string | undefined;
107
+ export type AccountingLocationInput = {
88
108
  /**
89
109
  * A unique identifier for an object.
90
110
  */
@@ -102,31 +122,11 @@ export type AccountingLocation = {
102
122
  */
103
123
  status?: LocationStatus | undefined;
104
124
  addresses?: Array<Address> | undefined;
105
- subsidiaries?: Array<SubsidiaryReference> | undefined;
106
- /**
107
- * When custom mappings are configured on the resource, the result is included here.
108
- */
109
- customMappings?: CustomMappings | null | undefined;
125
+ subsidiaries?: Array<SubsidiaryReferenceInput> | undefined;
110
126
  /**
111
127
  * 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.
112
128
  */
113
129
  rowVersion?: string | null | undefined;
114
- /**
115
- * The user who last updated the object.
116
- */
117
- updatedBy?: string | null | undefined;
118
- /**
119
- * The user who created the object.
120
- */
121
- createdBy?: string | null | undefined;
122
- /**
123
- * The date and time when the object was last updated.
124
- */
125
- updatedAt?: Date | null | undefined;
126
- /**
127
- * The date and time when the object was created.
128
- */
129
- createdAt?: Date | null | undefined;
130
130
  /**
131
131
  * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
132
132
  */
@@ -155,61 +155,93 @@ export namespace LocationStatus$ {
155
155
  }
156
156
 
157
157
  /** @internal */
158
- export const AccountingLocationInput$inboundSchema: z.ZodType<
159
- AccountingLocationInput,
158
+ export const AccountingLocation$inboundSchema: z.ZodType<
159
+ AccountingLocation,
160
160
  z.ZodTypeDef,
161
161
  unknown
162
162
  > = z.object({
163
+ id: z.string().optional(),
163
164
  parent_id: z.nullable(z.string()).optional(),
164
165
  company_name: z.nullable(z.string()).optional(),
165
166
  display_name: z.nullable(z.string()).optional(),
166
167
  status: LocationStatus$inboundSchema.optional(),
167
168
  addresses: z.array(Address$inboundSchema).optional(),
168
- subsidiaries: z.array(SubsidiaryReferenceInput$inboundSchema).optional(),
169
+ subsidiaries: z.array(SubsidiaryReference$inboundSchema).optional(),
170
+ custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
169
171
  row_version: z.nullable(z.string()).optional(),
172
+ updated_by: z.nullable(z.string()).optional(),
173
+ created_by: z.nullable(z.string()).optional(),
174
+ updated_at: z.nullable(
175
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
176
+ ).optional(),
177
+ created_at: z.nullable(
178
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
179
+ ).optional(),
170
180
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
171
181
  }).transform((v) => {
172
182
  return remap$(v, {
173
183
  "parent_id": "parentId",
174
184
  "company_name": "companyName",
175
185
  "display_name": "displayName",
186
+ "custom_mappings": "customMappings",
176
187
  "row_version": "rowVersion",
188
+ "updated_by": "updatedBy",
189
+ "created_by": "createdBy",
190
+ "updated_at": "updatedAt",
191
+ "created_at": "createdAt",
177
192
  "pass_through": "passThrough",
178
193
  });
179
194
  });
180
195
 
181
196
  /** @internal */
182
- export type AccountingLocationInput$Outbound = {
197
+ export type AccountingLocation$Outbound = {
198
+ id?: string | undefined;
183
199
  parent_id?: string | null | undefined;
184
200
  company_name?: string | null | undefined;
185
201
  display_name?: string | null | undefined;
186
202
  status?: string | undefined;
187
203
  addresses?: Array<Address$Outbound> | undefined;
188
- subsidiaries?: Array<SubsidiaryReferenceInput$Outbound> | undefined;
204
+ subsidiaries?: Array<SubsidiaryReference$Outbound> | undefined;
205
+ custom_mappings?: CustomMappings$Outbound | null | undefined;
189
206
  row_version?: string | null | undefined;
207
+ updated_by?: string | null | undefined;
208
+ created_by?: string | null | undefined;
209
+ updated_at?: string | null | undefined;
210
+ created_at?: string | null | undefined;
190
211
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
191
212
  };
192
213
 
193
214
  /** @internal */
194
- export const AccountingLocationInput$outboundSchema: z.ZodType<
195
- AccountingLocationInput$Outbound,
215
+ export const AccountingLocation$outboundSchema: z.ZodType<
216
+ AccountingLocation$Outbound,
196
217
  z.ZodTypeDef,
197
- AccountingLocationInput
218
+ AccountingLocation
198
219
  > = z.object({
220
+ id: z.string().optional(),
199
221
  parentId: z.nullable(z.string()).optional(),
200
222
  companyName: z.nullable(z.string()).optional(),
201
223
  displayName: z.nullable(z.string()).optional(),
202
224
  status: LocationStatus$outboundSchema.optional(),
203
225
  addresses: z.array(Address$outboundSchema).optional(),
204
- subsidiaries: z.array(SubsidiaryReferenceInput$outboundSchema).optional(),
226
+ subsidiaries: z.array(SubsidiaryReference$outboundSchema).optional(),
227
+ customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
205
228
  rowVersion: z.nullable(z.string()).optional(),
229
+ updatedBy: z.nullable(z.string()).optional(),
230
+ createdBy: z.nullable(z.string()).optional(),
231
+ updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
232
+ createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
206
233
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
207
234
  }).transform((v) => {
208
235
  return remap$(v, {
209
236
  parentId: "parent_id",
210
237
  companyName: "company_name",
211
238
  displayName: "display_name",
239
+ customMappings: "custom_mappings",
212
240
  rowVersion: "row_version",
241
+ updatedBy: "updated_by",
242
+ createdBy: "created_by",
243
+ updatedAt: "updated_at",
244
+ createdAt: "created_at",
213
245
  passThrough: "pass_through",
214
246
  });
215
247
  });
@@ -218,121 +250,89 @@ export const AccountingLocationInput$outboundSchema: z.ZodType<
218
250
  * @internal
219
251
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
220
252
  */
221
- export namespace AccountingLocationInput$ {
222
- /** @deprecated use `AccountingLocationInput$inboundSchema` instead. */
223
- export const inboundSchema = AccountingLocationInput$inboundSchema;
224
- /** @deprecated use `AccountingLocationInput$outboundSchema` instead. */
225
- export const outboundSchema = AccountingLocationInput$outboundSchema;
226
- /** @deprecated use `AccountingLocationInput$Outbound` instead. */
227
- export type Outbound = AccountingLocationInput$Outbound;
253
+ export namespace AccountingLocation$ {
254
+ /** @deprecated use `AccountingLocation$inboundSchema` instead. */
255
+ export const inboundSchema = AccountingLocation$inboundSchema;
256
+ /** @deprecated use `AccountingLocation$outboundSchema` instead. */
257
+ export const outboundSchema = AccountingLocation$outboundSchema;
258
+ /** @deprecated use `AccountingLocation$Outbound` instead. */
259
+ export type Outbound = AccountingLocation$Outbound;
228
260
  }
229
261
 
230
- export function accountingLocationInputToJSON(
231
- accountingLocationInput: AccountingLocationInput,
262
+ export function accountingLocationToJSON(
263
+ accountingLocation: AccountingLocation,
232
264
  ): string {
233
265
  return JSON.stringify(
234
- AccountingLocationInput$outboundSchema.parse(accountingLocationInput),
266
+ AccountingLocation$outboundSchema.parse(accountingLocation),
235
267
  );
236
268
  }
237
269
 
238
- export function accountingLocationInputFromJSON(
270
+ export function accountingLocationFromJSON(
239
271
  jsonString: string,
240
- ): SafeParseResult<AccountingLocationInput, SDKValidationError> {
272
+ ): SafeParseResult<AccountingLocation, SDKValidationError> {
241
273
  return safeParse(
242
274
  jsonString,
243
- (x) => AccountingLocationInput$inboundSchema.parse(JSON.parse(x)),
244
- `Failed to parse 'AccountingLocationInput' from JSON`,
275
+ (x) => AccountingLocation$inboundSchema.parse(JSON.parse(x)),
276
+ `Failed to parse 'AccountingLocation' from JSON`,
245
277
  );
246
278
  }
247
279
 
248
280
  /** @internal */
249
- export const AccountingLocation$inboundSchema: z.ZodType<
250
- AccountingLocation,
281
+ export const AccountingLocationInput$inboundSchema: z.ZodType<
282
+ AccountingLocationInput,
251
283
  z.ZodTypeDef,
252
284
  unknown
253
285
  > = z.object({
254
- id: z.string().optional(),
255
286
  parent_id: z.nullable(z.string()).optional(),
256
287
  company_name: z.nullable(z.string()).optional(),
257
288
  display_name: z.nullable(z.string()).optional(),
258
289
  status: LocationStatus$inboundSchema.optional(),
259
290
  addresses: z.array(Address$inboundSchema).optional(),
260
- subsidiaries: z.array(SubsidiaryReference$inboundSchema).optional(),
261
- custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
291
+ subsidiaries: z.array(SubsidiaryReferenceInput$inboundSchema).optional(),
262
292
  row_version: z.nullable(z.string()).optional(),
263
- updated_by: z.nullable(z.string()).optional(),
264
- created_by: z.nullable(z.string()).optional(),
265
- updated_at: z.nullable(
266
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
267
- ).optional(),
268
- created_at: z.nullable(
269
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
270
- ).optional(),
271
293
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
272
294
  }).transform((v) => {
273
295
  return remap$(v, {
274
296
  "parent_id": "parentId",
275
297
  "company_name": "companyName",
276
298
  "display_name": "displayName",
277
- "custom_mappings": "customMappings",
278
299
  "row_version": "rowVersion",
279
- "updated_by": "updatedBy",
280
- "created_by": "createdBy",
281
- "updated_at": "updatedAt",
282
- "created_at": "createdAt",
283
300
  "pass_through": "passThrough",
284
301
  });
285
302
  });
286
303
 
287
304
  /** @internal */
288
- export type AccountingLocation$Outbound = {
289
- id?: string | undefined;
305
+ export type AccountingLocationInput$Outbound = {
290
306
  parent_id?: string | null | undefined;
291
307
  company_name?: string | null | undefined;
292
308
  display_name?: string | null | undefined;
293
309
  status?: string | undefined;
294
310
  addresses?: Array<Address$Outbound> | undefined;
295
- subsidiaries?: Array<SubsidiaryReference$Outbound> | undefined;
296
- custom_mappings?: CustomMappings$Outbound | null | undefined;
311
+ subsidiaries?: Array<SubsidiaryReferenceInput$Outbound> | undefined;
297
312
  row_version?: string | null | undefined;
298
- updated_by?: string | null | undefined;
299
- created_by?: string | null | undefined;
300
- updated_at?: string | null | undefined;
301
- created_at?: string | null | undefined;
302
313
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
303
314
  };
304
315
 
305
316
  /** @internal */
306
- export const AccountingLocation$outboundSchema: z.ZodType<
307
- AccountingLocation$Outbound,
317
+ export const AccountingLocationInput$outboundSchema: z.ZodType<
318
+ AccountingLocationInput$Outbound,
308
319
  z.ZodTypeDef,
309
- AccountingLocation
320
+ AccountingLocationInput
310
321
  > = z.object({
311
- id: z.string().optional(),
312
322
  parentId: z.nullable(z.string()).optional(),
313
323
  companyName: z.nullable(z.string()).optional(),
314
324
  displayName: z.nullable(z.string()).optional(),
315
325
  status: LocationStatus$outboundSchema.optional(),
316
326
  addresses: z.array(Address$outboundSchema).optional(),
317
- subsidiaries: z.array(SubsidiaryReference$outboundSchema).optional(),
318
- customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
327
+ subsidiaries: z.array(SubsidiaryReferenceInput$outboundSchema).optional(),
319
328
  rowVersion: z.nullable(z.string()).optional(),
320
- updatedBy: z.nullable(z.string()).optional(),
321
- createdBy: z.nullable(z.string()).optional(),
322
- updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
323
- createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
324
329
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
325
330
  }).transform((v) => {
326
331
  return remap$(v, {
327
332
  parentId: "parent_id",
328
333
  companyName: "company_name",
329
334
  displayName: "display_name",
330
- customMappings: "custom_mappings",
331
335
  rowVersion: "row_version",
332
- updatedBy: "updated_by",
333
- createdBy: "created_by",
334
- updatedAt: "updated_at",
335
- createdAt: "created_at",
336
336
  passThrough: "pass_through",
337
337
  });
338
338
  });
@@ -341,29 +341,29 @@ export const AccountingLocation$outboundSchema: z.ZodType<
341
341
  * @internal
342
342
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
343
343
  */
344
- export namespace AccountingLocation$ {
345
- /** @deprecated use `AccountingLocation$inboundSchema` instead. */
346
- export const inboundSchema = AccountingLocation$inboundSchema;
347
- /** @deprecated use `AccountingLocation$outboundSchema` instead. */
348
- export const outboundSchema = AccountingLocation$outboundSchema;
349
- /** @deprecated use `AccountingLocation$Outbound` instead. */
350
- export type Outbound = AccountingLocation$Outbound;
344
+ export namespace AccountingLocationInput$ {
345
+ /** @deprecated use `AccountingLocationInput$inboundSchema` instead. */
346
+ export const inboundSchema = AccountingLocationInput$inboundSchema;
347
+ /** @deprecated use `AccountingLocationInput$outboundSchema` instead. */
348
+ export const outboundSchema = AccountingLocationInput$outboundSchema;
349
+ /** @deprecated use `AccountingLocationInput$Outbound` instead. */
350
+ export type Outbound = AccountingLocationInput$Outbound;
351
351
  }
352
352
 
353
- export function accountingLocationToJSON(
354
- accountingLocation: AccountingLocation,
353
+ export function accountingLocationInputToJSON(
354
+ accountingLocationInput: AccountingLocationInput,
355
355
  ): string {
356
356
  return JSON.stringify(
357
- AccountingLocation$outboundSchema.parse(accountingLocation),
357
+ AccountingLocationInput$outboundSchema.parse(accountingLocationInput),
358
358
  );
359
359
  }
360
360
 
361
- export function accountingLocationFromJSON(
361
+ export function accountingLocationInputFromJSON(
362
362
  jsonString: string,
363
- ): SafeParseResult<AccountingLocation, SDKValidationError> {
363
+ ): SafeParseResult<AccountingLocationInput, SDKValidationError> {
364
364
  return safeParse(
365
365
  jsonString,
366
- (x) => AccountingLocation$inboundSchema.parse(JSON.parse(x)),
367
- `Failed to parse 'AccountingLocation' from JSON`,
366
+ (x) => AccountingLocationInput$inboundSchema.parse(JSON.parse(x)),
367
+ `Failed to parse 'AccountingLocationInput' from JSON`,
368
368
  );
369
369
  }