@financeable/aggregation 0.13.3 → 0.14.0

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 (332) hide show
  1. package/.devcontainer/devcontainer.json +45 -0
  2. package/FUNCTIONS.md +240 -0
  3. package/RUNTIMES.md +48 -0
  4. package/core.js +17 -0
  5. package/core.js.map +1 -0
  6. package/examples/applicationsCreate.example.ts +179 -0
  7. package/examples/package-lock.json +610 -0
  8. package/examples/package.json +18 -0
  9. package/hooks/hooks.js +84 -0
  10. package/hooks/hooks.js.map +1 -0
  11. package/hooks/index.js +22 -0
  12. package/hooks/index.js.map +1 -0
  13. package/hooks/oauth2scopes.d.ts +13 -0
  14. package/hooks/oauth2scopes.d.ts.map +1 -0
  15. package/hooks/oauth2scopes.js +6 -0
  16. package/hooks/oauth2scopes.js.map +1 -0
  17. package/hooks/types.js +6 -0
  18. package/hooks/types.js.map +1 -0
  19. package/index.js +48 -0
  20. package/index.js.map +1 -0
  21. package/jsr.json +27 -0
  22. package/lib/base64.js +71 -0
  23. package/lib/base64.js.map +1 -0
  24. package/lib/config.d.ts +38 -0
  25. package/lib/config.d.ts.map +1 -0
  26. package/lib/config.js +35 -0
  27. package/lib/config.js.map +1 -0
  28. package/lib/dlv.d.ts +14 -0
  29. package/lib/dlv.d.ts.map +1 -0
  30. package/lib/dlv.js +49 -0
  31. package/lib/dlv.js.map +1 -0
  32. package/lib/encodings.js +379 -0
  33. package/lib/encodings.js.map +1 -0
  34. package/lib/env.js +82 -0
  35. package/lib/env.js.map +1 -0
  36. package/lib/files.d.ts +13 -0
  37. package/lib/files.d.ts.map +1 -0
  38. package/lib/files.js +77 -0
  39. package/lib/files.js.map +1 -0
  40. package/lib/http.d.ts +67 -0
  41. package/lib/http.d.ts.map +1 -0
  42. package/lib/http.js +217 -0
  43. package/lib/http.js.map +1 -0
  44. package/lib/is-plain-object.d.ts +2 -0
  45. package/lib/is-plain-object.d.ts.map +1 -0
  46. package/lib/is-plain-object.js +41 -0
  47. package/lib/is-plain-object.js.map +1 -0
  48. package/lib/logger.d.ts +6 -0
  49. package/lib/logger.d.ts.map +1 -0
  50. package/lib/logger.js +6 -0
  51. package/lib/logger.js.map +1 -0
  52. package/lib/matchers.js +218 -0
  53. package/lib/matchers.js.map +1 -0
  54. package/lib/primitives.d.ts +26 -0
  55. package/lib/primitives.d.ts.map +1 -0
  56. package/lib/primitives.js +111 -0
  57. package/lib/primitives.js.map +1 -0
  58. package/lib/retries.d.ts +38 -0
  59. package/lib/retries.d.ts.map +1 -0
  60. package/lib/retries.js +153 -0
  61. package/lib/retries.js.map +1 -0
  62. package/lib/schemas.js +62 -0
  63. package/lib/schemas.js.map +1 -0
  64. package/lib/sdks.js +274 -0
  65. package/lib/sdks.js.map +1 -0
  66. package/lib/security.js +145 -0
  67. package/lib/security.js.map +1 -0
  68. package/lib/url.d.ts +5 -0
  69. package/lib/url.d.ts.map +1 -0
  70. package/lib/url.js +25 -0
  71. package/lib/url.js.map +1 -0
  72. package/models/components/abnstatus.d.ts +10 -0
  73. package/models/components/abnstatus.d.ts.map +1 -0
  74. package/models/components/abnstatus.js +48 -0
  75. package/models/components/abnstatus.js.map +1 -0
  76. package/models/components/addressattributes.js +98 -0
  77. package/models/components/addressattributes.js.map +1 -0
  78. package/models/components/apierrorlinks.js +50 -0
  79. package/models/components/apierrorlinks.js.map +1 -0
  80. package/models/components/applicationresource.js +57 -0
  81. package/models/components/applicationresource.js.map +1 -0
  82. package/models/components/applicationstatus.js +53 -0
  83. package/models/components/applicationstatus.js.map +1 -0
  84. package/models/components/australianstatesandterritories.js +55 -0
  85. package/models/components/australianstatesandterritories.js.map +1 -0
  86. package/models/components/badrequesterror.js +69 -0
  87. package/models/components/badrequesterror.js.map +1 -0
  88. package/models/components/businessapplicationjsonapirelationships.js +126 -0
  89. package/models/components/businessapplicationjsonapirelationships.js.map +1 -0
  90. package/models/components/businessapplicationpayload.js +79 -0
  91. package/models/components/businessapplicationpayload.js.map +1 -0
  92. package/models/components/businessapplicationresource.js +82 -0
  93. package/models/components/businessapplicationresource.js.map +1 -0
  94. package/models/components/businessloanbusinessapplicationrelationships.js +221 -0
  95. package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -0
  96. package/models/components/commercialapplicationjsonapirelationships.js +153 -0
  97. package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
  98. package/models/components/commercialsecuredapplicationpayload.js +88 -0
  99. package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
  100. package/models/components/commercialsecuredapplicationresource.js +81 -0
  101. package/models/components/commercialsecuredapplicationresource.js.map +1 -0
  102. package/models/components/commercialsecuredloanassetattributes.js +223 -0
  103. package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
  104. package/models/components/commercialsecuredloanassettype.js +73 -0
  105. package/models/components/commercialsecuredloanassettype.js.map +1 -0
  106. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +101 -6
  107. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  108. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +309 -0
  109. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
  110. package/models/components/commercialsecuredloantypeofsale.js +53 -0
  111. package/models/components/commercialsecuredloantypeofsale.js.map +1 -0
  112. package/models/components/consumerapplicationjsonapirelationships.js +127 -0
  113. package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
  114. package/models/components/consumersecuredapplicationpayload.js +89 -0
  115. package/models/components/consumersecuredapplicationpayload.js.map +1 -0
  116. package/models/components/consumersecuredapplicationresource.js +82 -0
  117. package/models/components/consumersecuredapplicationresource.js.map +1 -0
  118. package/models/components/consumersecuredloanassetattributes.js +225 -0
  119. package/models/components/consumersecuredloanassetattributes.js.map +1 -0
  120. package/models/components/consumersecuredloanassettype.js +61 -0
  121. package/models/components/consumersecuredloanassettype.js.map +1 -0
  122. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +105 -10
  123. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  124. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +344 -0
  125. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
  126. package/models/components/consumersecuredloantypeofsale.js +53 -0
  127. package/models/components/consumersecuredloantypeofsale.js.map +1 -0
  128. package/models/components/createsupportingdocumentsresponse.js +82 -0
  129. package/models/components/createsupportingdocumentsresponse.js.map +1 -0
  130. package/models/components/currencycodeiso4217.js +48 -0
  131. package/models/components/currencycodeiso4217.js.map +1 -0
  132. package/models/components/customerassetattributes.js +66 -0
  133. package/models/components/customerassetattributes.js.map +1 -0
  134. package/models/components/customerassettype.js +55 -0
  135. package/models/components/customerassettype.js.map +1 -0
  136. package/models/components/customerattributes.js +68 -0
  137. package/models/components/customerattributes.js.map +1 -0
  138. package/models/components/customerattributescreateitem.js +73 -0
  139. package/models/components/customerattributescreateitem.js.map +1 -0
  140. package/models/components/customeridtype.js +47 -0
  141. package/models/components/customeridtype.js.map +1 -0
  142. package/models/components/customerliabilityattributes.js +77 -0
  143. package/models/components/customerliabilityattributes.js.map +1 -0
  144. package/models/components/customerliabilityrepaymentfrequency.js +50 -0
  145. package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
  146. package/models/components/customerliabilitytype.js +53 -0
  147. package/models/components/customerliabilitytype.js.map +1 -0
  148. package/models/components/customertitle.js +51 -0
  149. package/models/components/customertitle.js.map +1 -0
  150. package/models/components/documenttype.js +64 -0
  151. package/models/components/documenttype.js.map +1 -0
  152. package/models/components/employerattributes.d.ts +58 -0
  153. package/models/components/employerattributes.d.ts.map +1 -0
  154. package/models/components/employerattributes.js +69 -0
  155. package/models/components/employerattributes.js.map +1 -0
  156. package/models/components/employmentstatus.d.ts +10 -0
  157. package/models/components/employmentstatus.d.ts.map +1 -0
  158. package/models/components/employmentstatus.js +47 -0
  159. package/models/components/employmentstatus.js.map +1 -0
  160. package/models/components/employmenttype.d.ts +15 -0
  161. package/models/components/employmenttype.d.ts.map +1 -0
  162. package/models/components/employmenttype.js +52 -0
  163. package/models/components/employmenttype.js.map +1 -0
  164. package/models/components/entityattributes.d.ts +4 -4
  165. package/models/components/entityattributes.d.ts.map +1 -1
  166. package/models/components/entityattributes.js +90 -0
  167. package/models/components/entityattributes.js.map +1 -0
  168. package/models/components/entityattributesinput.js +55 -0
  169. package/models/components/entityattributesinput.js.map +1 -0
  170. package/models/components/entitytype.d.ts +152 -0
  171. package/models/components/entitytype.d.ts.map +1 -0
  172. package/models/components/entitytype.js +190 -0
  173. package/models/components/entitytype.js.map +1 -0
  174. package/models/components/errorsource.js +52 -0
  175. package/models/components/errorsource.js.map +1 -0
  176. package/models/components/expenseattributes.js +55 -0
  177. package/models/components/expenseattributes.js.map +1 -0
  178. package/models/components/expensefrequency.js +48 -0
  179. package/models/components/expensefrequency.js.map +1 -0
  180. package/models/components/expensetype.js +65 -0
  181. package/models/components/expensetype.js.map +1 -0
  182. package/models/components/forbiddenerror.js +74 -0
  183. package/models/components/forbiddenerror.js.map +1 -0
  184. package/models/components/frequencytype.js +53 -0
  185. package/models/components/frequencytype.js.map +1 -0
  186. package/models/components/incomeattributes.js +55 -0
  187. package/models/components/incomeattributes.js.map +1 -0
  188. package/models/components/incomefrequency.js +49 -0
  189. package/models/components/incomefrequency.js.map +1 -0
  190. package/models/components/incometype.js +55 -0
  191. package/models/components/incometype.js.map +1 -0
  192. package/models/components/index.d.ts +7 -0
  193. package/models/components/index.d.ts.map +1 -1
  194. package/models/components/index.js +98 -0
  195. package/models/components/index.js.map +1 -0
  196. package/models/components/industry.d.ts +27 -0
  197. package/models/components/industry.d.ts.map +1 -0
  198. package/models/components/industry.js +65 -0
  199. package/models/components/industry.js.map +1 -0
  200. package/models/components/linkobject.js +66 -0
  201. package/models/components/linkobject.js.map +1 -0
  202. package/models/components/livingarrangements.js +51 -0
  203. package/models/components/livingarrangements.js.map +1 -0
  204. package/models/components/loandetailsattributes.js +256 -0
  205. package/models/components/loandetailsattributes.js.map +1 -0
  206. package/models/components/maritalstatus.js +49 -0
  207. package/models/components/maritalstatus.js.map +1 -0
  208. package/models/components/monetaryquantity.js +71 -0
  209. package/models/components/monetaryquantity.js.map +1 -0
  210. package/models/components/occupation.d.ts +201 -0
  211. package/models/components/occupation.d.ts.map +1 -0
  212. package/models/components/occupation.js +239 -0
  213. package/models/components/occupation.js.map +1 -0
  214. package/models/components/paginationlinks.js +53 -0
  215. package/models/components/paginationlinks.js.map +1 -0
  216. package/models/components/paginationmeta.js +60 -0
  217. package/models/components/paginationmeta.js.map +1 -0
  218. package/models/components/percentagequantity.js +67 -0
  219. package/models/components/percentagequantity.js.map +1 -0
  220. package/models/components/personalapplicationjsonapirelationships.js +101 -0
  221. package/models/components/personalapplicationjsonapirelationships.js.map +1 -0
  222. package/models/components/personalapplicationpayload.js +79 -0
  223. package/models/components/personalapplicationpayload.js.map +1 -0
  224. package/models/components/personalapplicationresource.js +82 -0
  225. package/models/components/personalapplicationresource.js.map +1 -0
  226. package/models/components/personalloanpersonalapplicationrelationships.d.ts +105 -10
  227. package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
  228. package/models/components/personalloanpersonalapplicationrelationships.js +311 -0
  229. package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -0
  230. package/models/components/relationshipresourcenotfound.js +74 -0
  231. package/models/components/relationshipresourcenotfound.js.map +1 -0
  232. package/models/components/repaymentstructure.js +53 -0
  233. package/models/components/repaymentstructure.js.map +1 -0
  234. package/models/components/residencystatus.js +52 -0
  235. package/models/components/residencystatus.js.map +1 -0
  236. package/models/components/resourcenotfound.js +74 -0
  237. package/models/components/resourcenotfound.js.map +1 -0
  238. package/models/components/security.js +49 -0
  239. package/models/components/security.js.map +1 -0
  240. package/models/components/supportingdocumentattributes.js +53 -0
  241. package/models/components/supportingdocumentattributes.js.map +1 -0
  242. package/models/components/supportingdocumentattributesinput.js +51 -0
  243. package/models/components/supportingdocumentattributesinput.js.map +1 -0
  244. package/models/components/supportingdocumentrelationships.js +269 -0
  245. package/models/components/supportingdocumentrelationships.js.map +1 -0
  246. package/models/components/supportingdocumentresource.js +61 -0
  247. package/models/components/supportingdocumentresource.js.map +1 -0
  248. package/models/components/tokenrequest.js +68 -0
  249. package/models/components/tokenrequest.js.map +1 -0
  250. package/models/components/tokenresponse.js +60 -0
  251. package/models/components/tokenresponse.js.map +1 -0
  252. package/models/components/uploadmimetype.js +55 -0
  253. package/models/components/uploadmimetype.js.map +1 -0
  254. package/models/errors/apierror.d.ts +10 -0
  255. package/models/errors/apierror.d.ts.map +1 -0
  256. package/models/errors/apierror.js +34 -0
  257. package/models/errors/apierror.js.map +1 -0
  258. package/models/errors/financeableerror.d.ts +19 -0
  259. package/models/errors/financeableerror.d.ts.map +1 -0
  260. package/models/errors/financeableerror.js +20 -0
  261. package/models/errors/financeableerror.js.map +1 -0
  262. package/models/errors/httpclienterrors.d.ts +44 -0
  263. package/models/errors/httpclienterrors.d.ts.map +1 -0
  264. package/models/errors/httpclienterrors.js +78 -0
  265. package/models/errors/httpclienterrors.js.map +1 -0
  266. package/models/errors/index.js +25 -0
  267. package/models/errors/index.js.map +1 -0
  268. package/models/errors/responsevalidationerror.js +66 -0
  269. package/models/errors/responsevalidationerror.js.map +1 -0
  270. package/models/errors/sdkvalidationerror.js +129 -0
  271. package/models/errors/sdkvalidationerror.js.map +1 -0
  272. package/models/operations/createapplication.js +278 -0
  273. package/models/operations/createapplication.js.map +1 -0
  274. package/models/operations/getapplication.js +256 -0
  275. package/models/operations/getapplication.js.map +1 -0
  276. package/models/operations/index.js +24 -0
  277. package/models/operations/index.js.map +1 -0
  278. package/models/operations/listapplications.js +94 -0
  279. package/models/operations/listapplications.js.map +1 -0
  280. package/models/operations/supportingdocumentscreate.js +133 -0
  281. package/models/operations/supportingdocumentscreate.js.map +1 -0
  282. package/package.json +1 -16
  283. package/sdk/index.js +21 -0
  284. package/sdk/index.js.map +1 -0
  285. package/sdk/sdk.js +23 -0
  286. package/sdk/sdk.js.map +1 -0
  287. package/src/lib/config.ts +3 -3
  288. package/src/models/components/abnstatus.ts +16 -0
  289. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +241 -13
  290. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +275 -19
  291. package/src/models/components/employerattributes.ts +97 -0
  292. package/src/models/components/employmentstatus.ts +17 -0
  293. package/src/models/components/employmenttype.ts +22 -0
  294. package/src/models/components/entityattributes.ts +9 -6
  295. package/src/models/components/entitytype.ts +215 -0
  296. package/src/models/components/index.ts +7 -0
  297. package/src/models/components/industry.ts +36 -0
  298. package/src/models/components/occupation.ts +226 -0
  299. package/src/models/components/personalloanpersonalapplicationrelationships.ts +272 -20
  300. package/tsconfig.json +40 -0
  301. package/types/async.d.ts +23 -0
  302. package/types/async.d.ts.map +1 -0
  303. package/types/async.js +44 -0
  304. package/types/async.js.map +1 -0
  305. package/types/blobs.js +62 -0
  306. package/types/blobs.js.map +1 -0
  307. package/types/constdatetime.js +46 -0
  308. package/types/constdatetime.js.map +1 -0
  309. package/types/enums.js +66 -0
  310. package/types/enums.js.map +1 -0
  311. package/types/fp.d.ts +31 -0
  312. package/types/fp.d.ts.map +1 -0
  313. package/types/fp.js +37 -0
  314. package/types/fp.js.map +1 -0
  315. package/types/index.js +29 -0
  316. package/types/index.js.map +1 -0
  317. package/types/operations.d.ts +27 -0
  318. package/types/operations.d.ts.map +1 -0
  319. package/types/operations.js +83 -0
  320. package/types/operations.js.map +1 -0
  321. package/types/rfcdate.d.ts +21 -0
  322. package/types/rfcdate.d.ts.map +1 -0
  323. package/types/rfcdate.js +46 -0
  324. package/types/rfcdate.js.map +1 -0
  325. package/types/streams.d.ts +2 -0
  326. package/types/streams.d.ts.map +1 -0
  327. package/types/streams.js +18 -0
  328. package/types/streams.js.map +1 -0
  329. package/types/unrecognized.d.ts +16 -0
  330. package/types/unrecognized.d.ts.map +1 -0
  331. package/types/unrecognized.js +34 -0
  332. package/types/unrecognized.js.map +1 -0
@@ -29,6 +29,11 @@ import {
29
29
  CustomerLiabilityAttributes$Outbound,
30
30
  CustomerLiabilityAttributes$outboundSchema,
31
31
  } from "./customerliabilityattributes.js";
32
+ import {
33
+ EmployerAttributes,
34
+ EmployerAttributes$Outbound,
35
+ EmployerAttributes$outboundSchema,
36
+ } from "./employerattributes.js";
32
37
  import {
33
38
  ExpenseAttributes,
34
39
  ExpenseAttributes$Outbound,
@@ -104,17 +109,74 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses = {
104
109
 
105
110
  export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType =
106
111
  {
107
- Income: "income",
112
+ Employers: "employers",
108
113
  } as const;
109
114
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType =
110
115
  ClosedEnum<
111
116
  typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType
112
117
  >;
113
118
 
119
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType =
120
+ {
121
+ Addresses: "addresses",
122
+ } as const;
123
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType =
124
+ ClosedEnum<
125
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType
126
+ >;
127
+
128
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData =
129
+ {
130
+ type:
131
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType;
132
+ attributes: AddressAttributes;
133
+ links?: { [k: string]: LinkObject } | undefined;
134
+ meta?: { [k: string]: any } | undefined;
135
+ };
136
+
137
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddress = {
138
+ data:
139
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData;
140
+ };
141
+
142
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships =
143
+ {
144
+ address?:
145
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAddress
146
+ | undefined;
147
+ };
148
+
114
149
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData =
115
150
  {
116
151
  type:
117
152
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType;
153
+ attributes: EmployerAttributes;
154
+ relationships?:
155
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships
156
+ | undefined;
157
+ links?: { [k: string]: LinkObject } | undefined;
158
+ meta?: { [k: string]: any } | undefined;
159
+ };
160
+
161
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers = {
162
+ data: Array<
163
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
164
+ >;
165
+ };
166
+
167
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType =
168
+ {
169
+ Income: "income",
170
+ } as const;
171
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType =
172
+ ClosedEnum<
173
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType
174
+ >;
175
+
176
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData =
177
+ {
178
+ type:
179
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType;
118
180
  attributes: IncomeAttributes;
119
181
  links?: { [k: string]: LinkObject } | undefined;
120
182
  meta?: { [k: string]: any } | undefined;
@@ -122,7 +184,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
122
184
 
123
185
  export type Income = {
124
186
  data: Array<
125
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
187
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
126
188
  >;
127
189
  };
128
190
 
@@ -135,7 +197,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRela
135
197
  typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType
136
198
  >;
137
199
 
138
- export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData =
200
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData =
139
201
  {
140
202
  type:
141
203
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType;
@@ -146,7 +208,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRela
146
208
 
147
209
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities = {
148
210
  data: Array<
149
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
211
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData
150
212
  >;
151
213
  };
152
214
 
@@ -202,6 +264,9 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships = {
202
264
  addresses?:
203
265
  | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses
204
266
  | undefined;
267
+ employers?:
268
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers
269
+ | undefined;
205
270
  income?: Income | undefined;
206
271
  liabilities?:
207
272
  | ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities
@@ -418,11 +483,118 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRel
418
483
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType,
419
484
  );
420
485
 
486
+ /** @internal */
487
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType$outboundSchema:
488
+ z.ZodNativeEnum<
489
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType
490
+ > = z.nativeEnum(
491
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType,
492
+ );
493
+
494
+ /** @internal */
495
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound =
496
+ {
497
+ type: string;
498
+ attributes: AddressAttributes$Outbound;
499
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
500
+ meta?: { [k: string]: any } | undefined;
501
+ };
502
+
503
+ /** @internal */
504
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema:
505
+ z.ZodType<
506
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound,
507
+ z.ZodTypeDef,
508
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData
509
+ > = z.object({
510
+ type:
511
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType$outboundSchema,
512
+ attributes: AddressAttributes$outboundSchema,
513
+ links: z.record(LinkObject$outboundSchema).optional(),
514
+ meta: z.record(z.any()).optional(),
515
+ });
516
+
517
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersDataToJSON(
518
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData:
519
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData,
520
+ ): string {
521
+ return JSON.stringify(
522
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema
523
+ .parse(
524
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData,
525
+ ),
526
+ );
527
+ }
528
+
529
+ /** @internal */
530
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$Outbound =
531
+ {
532
+ data:
533
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound;
534
+ };
535
+
536
+ /** @internal */
537
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$outboundSchema:
538
+ z.ZodType<
539
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$Outbound,
540
+ z.ZodTypeDef,
541
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddress
542
+ > = z.object({
543
+ data: z.lazy(() =>
544
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema
545
+ ),
546
+ });
547
+
548
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAddressToJSON(
549
+ consumerSecuredLoanConsumerApplicationRelationshipsAddress:
550
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddress,
551
+ ): string {
552
+ return JSON.stringify(
553
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$outboundSchema
554
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsAddress),
555
+ );
556
+ }
557
+
558
+ /** @internal */
559
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$Outbound =
560
+ {
561
+ address?:
562
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$Outbound
563
+ | undefined;
564
+ };
565
+
566
+ /** @internal */
567
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$outboundSchema:
568
+ z.ZodType<
569
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$Outbound,
570
+ z.ZodTypeDef,
571
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships
572
+ > = z.object({
573
+ address: z.lazy(() =>
574
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$outboundSchema
575
+ ).optional(),
576
+ });
577
+
578
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationshipsToJSON(
579
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships:
580
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships,
581
+ ): string {
582
+ return JSON.stringify(
583
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$outboundSchema
584
+ .parse(
585
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships,
586
+ ),
587
+ );
588
+ }
589
+
421
590
  /** @internal */
422
591
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound =
423
592
  {
424
593
  type: string;
425
- attributes: IncomeAttributes$Outbound;
594
+ attributes: EmployerAttributes$Outbound;
595
+ relationships?:
596
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$Outbound
597
+ | undefined;
426
598
  links?: { [k: string]: LinkObject$Outbound } | undefined;
427
599
  meta?: { [k: string]: any } | undefined;
428
600
  };
@@ -436,7 +608,10 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
436
608
  > = z.object({
437
609
  type:
438
610
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
439
- attributes: IncomeAttributes$outboundSchema,
611
+ attributes: EmployerAttributes$outboundSchema,
612
+ relationships: z.lazy(() =>
613
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$outboundSchema
614
+ ).optional(),
440
615
  links: z.record(LinkObject$outboundSchema).optional(),
441
616
  meta: z.record(z.any()).optional(),
442
617
  });
@@ -453,10 +628,85 @@ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersData
453
628
  );
454
629
  }
455
630
 
631
+ /** @internal */
632
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$Outbound =
633
+ {
634
+ data: Array<
635
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
636
+ >;
637
+ };
638
+
639
+ /** @internal */
640
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$outboundSchema:
641
+ z.ZodType<
642
+ ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$Outbound,
643
+ z.ZodTypeDef,
644
+ ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers
645
+ > = z.object({
646
+ data: z.array(
647
+ z.lazy(() =>
648
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
649
+ ),
650
+ ),
651
+ });
652
+
653
+ export function consumerSecuredLoanConsumerApplicationRelationshipsEmployersToJSON(
654
+ consumerSecuredLoanConsumerApplicationRelationshipsEmployers:
655
+ ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers,
656
+ ): string {
657
+ return JSON.stringify(
658
+ ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$outboundSchema
659
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsEmployers),
660
+ );
661
+ }
662
+
663
+ /** @internal */
664
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType$outboundSchema:
665
+ z.ZodNativeEnum<
666
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType
667
+ > = z.nativeEnum(
668
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType,
669
+ );
670
+
671
+ /** @internal */
672
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
673
+ {
674
+ type: string;
675
+ attributes: IncomeAttributes$Outbound;
676
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
677
+ meta?: { [k: string]: any } | undefined;
678
+ };
679
+
680
+ /** @internal */
681
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
682
+ z.ZodType<
683
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
684
+ z.ZodTypeDef,
685
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
686
+ > = z.object({
687
+ type:
688
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType$outboundSchema,
689
+ attributes: IncomeAttributes$outboundSchema,
690
+ links: z.record(LinkObject$outboundSchema).optional(),
691
+ meta: z.record(z.any()).optional(),
692
+ });
693
+
694
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
695
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData:
696
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
697
+ ): string {
698
+ return JSON.stringify(
699
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
700
+ .parse(
701
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
702
+ ),
703
+ );
704
+ }
705
+
456
706
  /** @internal */
457
707
  export type Income$Outbound = {
458
708
  data: Array<
459
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
709
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound
460
710
  >;
461
711
  };
462
712
 
@@ -468,7 +718,7 @@ export const Income$outboundSchema: z.ZodType<
468
718
  > = z.object({
469
719
  data: z.array(
470
720
  z.lazy(() =>
471
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
721
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
472
722
  ),
473
723
  ),
474
724
  });
@@ -486,7 +736,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRel
486
736
  );
487
737
 
488
738
  /** @internal */
489
- export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
739
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound =
490
740
  {
491
741
  type: string;
492
742
  attributes: CustomerLiabilityAttributes$Outbound;
@@ -495,11 +745,11 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRela
495
745
  };
496
746
 
497
747
  /** @internal */
498
- export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
748
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema:
499
749
  z.ZodType<
500
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
750
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound,
501
751
  z.ZodTypeDef,
502
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
752
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData
503
753
  > = z.object({
504
754
  type:
505
755
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$outboundSchema,
@@ -508,14 +758,14 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRel
508
758
  meta: z.record(z.any()).optional(),
509
759
  });
510
760
 
511
- export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
512
- consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData:
513
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
761
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesDataToJSON(
762
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData:
763
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData,
514
764
  ): string {
515
765
  return JSON.stringify(
516
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
766
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema
517
767
  .parse(
518
- consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
768
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData,
519
769
  ),
520
770
  );
521
771
  }
@@ -524,7 +774,7 @@ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersData
524
774
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound =
525
775
  {
526
776
  data: Array<
527
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound
777
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound
528
778
  >;
529
779
  };
530
780
 
@@ -537,7 +787,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outb
537
787
  > = z.object({
538
788
  data: z.array(
539
789
  z.lazy(() =>
540
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
790
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema
541
791
  ),
542
792
  ),
543
793
  });
@@ -700,6 +950,9 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Out
700
950
  addresses?:
701
951
  | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound
702
952
  | undefined;
953
+ employers?:
954
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$Outbound
955
+ | undefined;
703
956
  income?: Income$Outbound | undefined;
704
957
  liabilities?:
705
958
  | ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound
@@ -720,6 +973,9 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$ou
720
973
  addresses: z.lazy(() =>
721
974
  ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
722
975
  ).optional(),
976
+ employers: z.lazy(() =>
977
+ ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$outboundSchema
978
+ ).optional(),
723
979
  income: z.lazy(() => Income$outboundSchema).optional(),
724
980
  liabilities: z.lazy(() =>
725
981
  ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema
@@ -0,0 +1,97 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { AbnStatus, AbnStatus$outboundSchema } from "./abnstatus.js";
7
+ import {
8
+ EmploymentStatus,
9
+ EmploymentStatus$outboundSchema,
10
+ } from "./employmentstatus.js";
11
+ import {
12
+ EmploymentType,
13
+ EmploymentType$outboundSchema,
14
+ } from "./employmenttype.js";
15
+ import { EntityType, EntityType$outboundSchema } from "./entitytype.js";
16
+ import { Industry, Industry$outboundSchema } from "./industry.js";
17
+ import { Occupation, Occupation$outboundSchema } from "./occupation.js";
18
+
19
+ export type EmployerAttributes = {
20
+ businessNames?: Array<string> | undefined;
21
+ entityName?: string | undefined;
22
+ status?: EmploymentStatus | undefined;
23
+ abn?: string | undefined;
24
+ acn?: string | undefined;
25
+ entityType?: EntityType | undefined;
26
+ /**
27
+ * Format YYYY-MM-DD
28
+ */
29
+ gstRegistrationDate?: string | undefined;
30
+ abnStatus?: AbnStatus | undefined;
31
+ employmentType?: EmploymentType | undefined;
32
+ employmentDurationMonths?: number | undefined;
33
+ occupation?: Occupation | undefined;
34
+ /**
35
+ * The name of the manager of the employer
36
+ */
37
+ managerName?: string | undefined;
38
+ industry?: Industry | undefined;
39
+ /**
40
+ * The email address of the employer
41
+ */
42
+ email?: string | undefined;
43
+ /**
44
+ * The phone number of the employer
45
+ */
46
+ phoneNumber?: string | undefined;
47
+ };
48
+
49
+ /** @internal */
50
+ export type EmployerAttributes$Outbound = {
51
+ businessNames?: Array<string> | undefined;
52
+ entityName?: string | undefined;
53
+ status?: string | undefined;
54
+ abn?: string | undefined;
55
+ acn?: string | undefined;
56
+ entityType?: string | undefined;
57
+ gstRegistrationDate?: string | undefined;
58
+ abnStatus?: string | undefined;
59
+ employmentType?: string | undefined;
60
+ employmentDurationMonths?: number | undefined;
61
+ occupation?: string | undefined;
62
+ managerName?: string | undefined;
63
+ industry?: string | undefined;
64
+ email?: string | undefined;
65
+ phoneNumber?: string | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const EmployerAttributes$outboundSchema: z.ZodType<
70
+ EmployerAttributes$Outbound,
71
+ z.ZodTypeDef,
72
+ EmployerAttributes
73
+ > = z.object({
74
+ businessNames: z.array(z.string()).optional(),
75
+ entityName: z.string().optional(),
76
+ status: EmploymentStatus$outboundSchema.optional(),
77
+ abn: z.string().optional(),
78
+ acn: z.string().optional(),
79
+ entityType: EntityType$outboundSchema.optional(),
80
+ gstRegistrationDate: z.string().optional(),
81
+ abnStatus: AbnStatus$outboundSchema.optional(),
82
+ employmentType: EmploymentType$outboundSchema.optional(),
83
+ employmentDurationMonths: z.number().int().optional(),
84
+ occupation: Occupation$outboundSchema.optional(),
85
+ managerName: z.string().optional(),
86
+ industry: Industry$outboundSchema.optional(),
87
+ email: z.string().optional(),
88
+ phoneNumber: z.string().optional(),
89
+ });
90
+
91
+ export function employerAttributesToJSON(
92
+ employerAttributes: EmployerAttributes,
93
+ ): string {
94
+ return JSON.stringify(
95
+ EmployerAttributes$outboundSchema.parse(employerAttributes),
96
+ );
97
+ }
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const EmploymentStatus = {
9
+ Current: "CURRENT",
10
+ Previous: "PREVIOUS",
11
+ } as const;
12
+ export type EmploymentStatus = ClosedEnum<typeof EmploymentStatus>;
13
+
14
+ /** @internal */
15
+ export const EmploymentStatus$outboundSchema: z.ZodNativeEnum<
16
+ typeof EmploymentStatus
17
+ > = z.nativeEnum(EmploymentStatus);
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const EmploymentType = {
9
+ FullTime: "FULL_TIME",
10
+ PartTime: "PART_TIME",
11
+ Casual: "CASUAL",
12
+ Contract: "CONTRACT",
13
+ SelfEmployed: "SELF_EMPLOYED",
14
+ Benefits: "BENEFITS",
15
+ Unemployed: "UNEMPLOYED",
16
+ } as const;
17
+ export type EmploymentType = ClosedEnum<typeof EmploymentType>;
18
+
19
+ /** @internal */
20
+ export const EmploymentType$outboundSchema: z.ZodNativeEnum<
21
+ typeof EmploymentType
22
+ > = z.nativeEnum(EmploymentType);
@@ -29,7 +29,7 @@ export type State = ClosedEnum<typeof State>;
29
29
  /**
30
30
  * Derived from ABR lookup.
31
31
  */
32
- export const AbnStatus = {
32
+ export const EntityAttributesAbnStatus = {
33
33
  Active: "active",
34
34
  Registered: "registered",
35
35
  Cancelled: "cancelled",
@@ -37,7 +37,9 @@ export const AbnStatus = {
37
37
  /**
38
38
  * Derived from ABR lookup.
39
39
  */
40
- export type AbnStatus = ClosedEnum<typeof AbnStatus>;
40
+ export type EntityAttributesAbnStatus = ClosedEnum<
41
+ typeof EntityAttributesAbnStatus
42
+ >;
41
43
 
42
44
  export type EntityAttributes = {
43
45
  id?: string | undefined;
@@ -66,7 +68,7 @@ export type EntityAttributes = {
66
68
  /**
67
69
  * Derived from ABR lookup.
68
70
  */
69
- abnStatus?: AbnStatus | undefined;
71
+ abnStatus?: EntityAttributesAbnStatus | undefined;
70
72
  /**
71
73
  * Derived from ABR lookup. Format YYYY-MM-DD
72
74
  */
@@ -91,8 +93,9 @@ export const State$inboundSchema: z.ZodNativeEnum<typeof State> = z.nativeEnum(
91
93
  );
92
94
 
93
95
  /** @internal */
94
- export const AbnStatus$inboundSchema: z.ZodNativeEnum<typeof AbnStatus> = z
95
- .nativeEnum(AbnStatus);
96
+ export const EntityAttributesAbnStatus$inboundSchema: z.ZodNativeEnum<
97
+ typeof EntityAttributesAbnStatus
98
+ > = z.nativeEnum(EntityAttributesAbnStatus);
96
99
 
97
100
  /** @internal */
98
101
  export const EntityAttributes$inboundSchema: z.ZodType<
@@ -108,7 +111,7 @@ export const EntityAttributes$inboundSchema: z.ZodType<
108
111
  state: State$inboundSchema.optional(),
109
112
  entityType: z.string().optional(),
110
113
  gst: z.string().optional(),
111
- abnStatus: AbnStatus$inboundSchema.optional(),
114
+ abnStatus: EntityAttributesAbnStatus$inboundSchema.optional(),
112
115
  abnStatusEffectiveFrom: z.string().optional(),
113
116
  timeInBusiness: z.number().int().optional(),
114
117
  turnover: z.number().int().optional(),