@kanda-libs/ks-schema 1.0.124 → 1.0.126

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 (115) hide show
  1. package/dist/components/schemas/ApplicantDetails.d.ts +128 -0
  2. package/dist/components/schemas/ApplicantDetails.d.ts.map +1 -0
  3. package/dist/components/schemas/ApplicantDetails.js +37 -0
  4. package/dist/components/schemas/BankAccount.d.ts +5 -2
  5. package/dist/components/schemas/BankAccount.d.ts.map +1 -1
  6. package/dist/components/schemas/BankAccount.js +10 -5
  7. package/dist/components/schemas/Company.d.ts +14 -2
  8. package/dist/components/schemas/Company.d.ts.map +1 -1
  9. package/dist/components/schemas/Company.js +2 -0
  10. package/dist/components/schemas/Credit.d.ts +139 -6
  11. package/dist/components/schemas/Credit.d.ts.map +1 -1
  12. package/dist/components/schemas/Credit.js +5 -1
  13. package/dist/components/schemas/CustomerDetails.d.ts +2 -2
  14. package/dist/components/schemas/CustomerDetails.d.ts.map +1 -1
  15. package/dist/components/schemas/CustomerDetails.js +3 -0
  16. package/dist/components/schemas/EmploymentDetails.d.ts +1 -1
  17. package/dist/components/schemas/Entity.d.ts +166 -9
  18. package/dist/components/schemas/Entity.d.ts.map +1 -1
  19. package/dist/components/schemas/Event.d.ts +166 -9
  20. package/dist/components/schemas/Event.d.ts.map +1 -1
  21. package/dist/components/schemas/Expenditure.d.ts +15 -0
  22. package/dist/components/schemas/Expenditure.d.ts.map +1 -0
  23. package/dist/components/schemas/Expenditure.js +39 -0
  24. package/dist/components/schemas/FinanceDetails.d.ts +18 -0
  25. package/dist/components/schemas/FinanceDetails.d.ts.map +1 -0
  26. package/dist/components/schemas/FinanceDetails.js +35 -0
  27. package/dist/components/schemas/Job.d.ts +23 -2
  28. package/dist/components/schemas/Job.d.ts.map +1 -1
  29. package/dist/components/schemas/Job.js +3 -0
  30. package/dist/components/schemas/JobCompanyInfo.d.ts +4 -2
  31. package/dist/components/schemas/JobCompanyInfo.d.ts.map +1 -1
  32. package/dist/components/schemas/NotEmployedDetails.d.ts +2 -2
  33. package/dist/components/schemas/NotEmployedDetails.d.ts.map +1 -1
  34. package/dist/components/schemas/NotEmployedDetails.js +4 -0
  35. package/dist/components/schemas/SatNote.d.ts +5 -2
  36. package/dist/components/schemas/SatNote.d.ts.map +1 -1
  37. package/dist/components/schemas/SatNote.js +37 -29
  38. package/dist/components/schemas/SolarCompanyInfo.d.ts +17 -0
  39. package/dist/components/schemas/SolarCompanyInfo.d.ts.map +1 -0
  40. package/dist/components/schemas/SolarCompanyInfo.js +46 -0
  41. package/dist/components/schemas/index.d.ts +4 -0
  42. package/dist/components/schemas/index.d.ts.map +1 -1
  43. package/dist/components/schemas/index.js +4 -0
  44. package/dist/operations/applyCredit.d.ts +134 -5
  45. package/dist/operations/applyCredit.d.ts.map +1 -1
  46. package/dist/operations/applyJob.d.ts +20 -2
  47. package/dist/operations/applyJob.d.ts.map +1 -1
  48. package/dist/operations/approveCompany.d.ts +12 -2
  49. package/dist/operations/approveCompany.d.ts.map +1 -1
  50. package/dist/operations/approveJobSatNote.d.ts +20 -2
  51. package/dist/operations/approveJobSatNote.d.ts.map +1 -1
  52. package/dist/operations/archiveJob.d.ts +20 -2
  53. package/dist/operations/archiveJob.d.ts.map +1 -1
  54. package/dist/operations/checkCredit.d.ts +134 -5
  55. package/dist/operations/checkCredit.d.ts.map +1 -1
  56. package/dist/operations/completeJob.d.ts +20 -2
  57. package/dist/operations/completeJob.d.ts.map +1 -1
  58. package/dist/operations/declineCompany.d.ts +12 -2
  59. package/dist/operations/declineCompany.d.ts.map +1 -1
  60. package/dist/operations/deleteCompany.d.ts +12 -2
  61. package/dist/operations/deleteCompany.d.ts.map +1 -1
  62. package/dist/operations/deleteCredit.d.ts +134 -5
  63. package/dist/operations/deleteCredit.d.ts.map +1 -1
  64. package/dist/operations/deleteJob.d.ts +20 -2
  65. package/dist/operations/deleteJob.d.ts.map +1 -1
  66. package/dist/operations/directorCompany.d.ts +12 -2
  67. package/dist/operations/directorCompany.d.ts.map +1 -1
  68. package/dist/operations/getCompanies.d.ts +12 -2
  69. package/dist/operations/getCompanies.d.ts.map +1 -1
  70. package/dist/operations/getCompany.d.ts +12 -2
  71. package/dist/operations/getCompany.d.ts.map +1 -1
  72. package/dist/operations/getCredit.d.ts +134 -5
  73. package/dist/operations/getCredit.d.ts.map +1 -1
  74. package/dist/operations/getCredits.d.ts +134 -5
  75. package/dist/operations/getCredits.d.ts.map +1 -1
  76. package/dist/operations/getJob.d.ts +20 -2
  77. package/dist/operations/getJob.d.ts.map +1 -1
  78. package/dist/operations/getJobs.d.ts +20 -2
  79. package/dist/operations/getJobs.d.ts.map +1 -1
  80. package/dist/operations/index.d.ts +1692 -197
  81. package/dist/operations/index.d.ts.map +1 -1
  82. package/dist/operations/jobCompanyInfo.d.ts +4 -2
  83. package/dist/operations/jobCompanyInfo.d.ts.map +1 -1
  84. package/dist/operations/payJob.d.ts +20 -2
  85. package/dist/operations/payJob.d.ts.map +1 -1
  86. package/dist/operations/payoutJob.d.ts +20 -2
  87. package/dist/operations/payoutJob.d.ts.map +1 -1
  88. package/dist/operations/postCompany.d.ts +12 -2
  89. package/dist/operations/postCompany.d.ts.map +1 -1
  90. package/dist/operations/postCredit.d.ts +134 -5
  91. package/dist/operations/postCredit.d.ts.map +1 -1
  92. package/dist/operations/postJob.d.ts +20 -2
  93. package/dist/operations/postJob.d.ts.map +1 -1
  94. package/dist/operations/putCompany.d.ts +12 -2
  95. package/dist/operations/putCompany.d.ts.map +1 -1
  96. package/dist/operations/putCredit.d.ts +134 -5
  97. package/dist/operations/putCredit.d.ts.map +1 -1
  98. package/dist/operations/putJob.d.ts +20 -2
  99. package/dist/operations/putJob.d.ts.map +1 -1
  100. package/dist/operations/quoteCredit.d.ts +134 -5
  101. package/dist/operations/quoteCredit.d.ts.map +1 -1
  102. package/dist/operations/sendJob.d.ts +20 -2
  103. package/dist/operations/sendJob.d.ts.map +1 -1
  104. package/dist/operations/signCredit.d.ts +134 -5
  105. package/dist/operations/signCredit.d.ts.map +1 -1
  106. package/dist/operations/signJobSateNote.d.ts +20 -2
  107. package/dist/operations/signJobSateNote.d.ts.map +1 -1
  108. package/dist/operations/viewJobSatNote.d.ts +20 -2
  109. package/dist/operations/viewJobSatNote.d.ts.map +1 -1
  110. package/dist/schema.json +1 -1
  111. package/dist/widget/index.d.ts +8388 -5245
  112. package/dist/widget/index.d.ts.map +1 -1
  113. package/dist/widget/index.js +15039 -11434
  114. package/package.json +1 -1
  115. package/schema.yaml +141 -0
@@ -87,6 +87,14 @@ export declare const Entity: t.PartialC<{
87
87
  signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
88
88
  }>;
89
89
  }>]>;
90
+ solar_company_info: t.IntersectionC<[t.TypeC<{
91
+ epvs_registration_number: t.StringC;
92
+ solar_trade_association: t.UnionC<[t.LiteralC<"msc">, t.LiteralC<"heis">, t.LiteralC<"recc">]>;
93
+ solar_trade_association_number: t.StringC;
94
+ electrical_trade_association: t.UnionC<[t.LiteralC<"niceic">, t.LiteralC<"napit">, t.LiteralC<"none">]>;
95
+ }>, t.PartialC<{
96
+ electrical_trade_association_number: t.StringC;
97
+ }>]>;
90
98
  limited_company_info: t.IntersectionC<[t.TypeC<{
91
99
  company_name: t.StringC;
92
100
  company_address: t.IntersectionC<[t.TypeC<{
@@ -159,11 +167,13 @@ export declare const Entity: t.PartialC<{
159
167
  updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
160
168
  }>;
161
169
  }>]>;
162
- bank_account: t.TypeC<{
170
+ bank_account: t.IntersectionC<[t.TypeC<{
163
171
  account_name: t.StringC;
164
172
  account_number: t.StringC;
165
173
  sort_code: t.StringC;
166
- }>;
174
+ }>, t.PartialC<{
175
+ months_held: t.NumberC;
176
+ }>]>;
167
177
  contact_info: t.PartialC<{
168
178
  contact_name: t.StringC;
169
179
  contact_email: t.StringC;
@@ -190,11 +200,13 @@ export declare const Entity: t.PartialC<{
190
200
  }>]>;
191
201
  credit: t.IntersectionC<[t.TypeC<{
192
202
  finance_option: t.StringC;
193
- bank_account: t.TypeC<{
203
+ bank_account: t.IntersectionC<[t.TypeC<{
194
204
  account_name: t.StringC;
195
205
  account_number: t.StringC;
196
206
  sort_code: t.StringC;
197
- }>;
207
+ }>, t.PartialC<{
208
+ months_held: t.NumberC;
209
+ }>]>;
198
210
  customer_details: t.IntersectionC<[t.TypeC<{
199
211
  email: t.StringC;
200
212
  gender: t.UnionC<[t.LiteralC<"male">, t.LiteralC<"female">]>;
@@ -204,7 +216,7 @@ export declare const Entity: t.PartialC<{
204
216
  date_of_birth: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
205
217
  marital_status: t.UnionC<[t.LiteralC<"widowed">, t.LiteralC<"other">, t.LiteralC<"married">, t.LiteralC<"divorced">, t.LiteralC<"cohabiting">, t.LiteralC<"to_be_married">, t.LiteralC<"separated">, t.LiteralC<"single">]>;
206
218
  number_of_dependants: t.NumberC;
207
- residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">]>;
219
+ residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">, t.LiteralC<"owner without mortgage">, t.LiteralC<"lodger">, t.LiteralC<"armed forces">]>;
208
220
  current_address: t.IntersectionC<[t.TypeC<{
209
221
  line_1: t.StringC;
210
222
  city: t.StringC;
@@ -288,7 +300,7 @@ export declare const Entity: t.PartialC<{
288
300
  months_self_employed: t.NumberC;
289
301
  }>;
290
302
  not_employed_details: t.TypeC<{
291
- source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"other">]>;
303
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"full-time carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent dla">, t.LiteralC<"other">]>;
292
304
  }>;
293
305
  }>]>;
294
306
  }>, t.PartialC<{
@@ -298,7 +310,7 @@ export declare const Entity: t.PartialC<{
298
310
  aid: t.StringC;
299
311
  kid: t.StringC;
300
312
  kind: t.UnionC<[t.LiteralC<"job">, t.LiteralC<"charge">]>;
301
- provider: t.LiteralC<"omni">;
313
+ provider: t.UnionC<[t.LiteralC<"omni">, t.LiteralC<"propensio">]>;
302
314
  xid: t.StringC;
303
315
  xref: t.StringC;
304
316
  state: t.UnionC<[t.LiteralC<"accepted">, t.LiteralC<"declined">, t.LiteralC<"referred">, t.LiteralC<"action_lender">, t.LiteralC<"action_customer">, t.LiteralC<"pending">, t.LiteralC<"finished">, t.LiteralC<"paid_out">, t.LiteralC<"cancelled">]>;
@@ -312,6 +324,133 @@ export declare const Entity: t.PartialC<{
312
324
  }>, t.PartialC<{
313
325
  currency: t.LiteralC<"GBP">;
314
326
  }>]>;
327
+ finance_details: t.PartialC<{
328
+ bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
329
+ expenditures: t.ArrayC<t.PartialC<{
330
+ expenditure_type: t.UnionC<[t.LiteralC<"credit card">, t.LiteralC<"clothes">, t.LiteralC<"council tax and bills">, t.LiteralC<"child support agency">, t.LiteralC<"healthcare">, t.LiteralC<"holidays">]>;
331
+ monthly_amount: t.IntersectionC<[t.TypeC<{
332
+ amount: t.NumberC;
333
+ }>, t.PartialC<{
334
+ currency: t.LiteralC<"GBP">;
335
+ }>]>;
336
+ }>>;
337
+ }>;
338
+ extra_applicants: t.ArrayC<t.TypeC<{
339
+ bank_account: t.IntersectionC<[t.TypeC<{
340
+ account_name: t.StringC;
341
+ account_number: t.StringC;
342
+ sort_code: t.StringC;
343
+ }>, t.PartialC<{
344
+ months_held: t.NumberC;
345
+ }>]>;
346
+ customer_details: t.IntersectionC<[t.TypeC<{
347
+ email: t.StringC;
348
+ gender: t.UnionC<[t.LiteralC<"male">, t.LiteralC<"female">]>;
349
+ title: t.UnionC<[t.LiteralC<"mrs">, t.LiteralC<"mr">, t.LiteralC<"miss">, t.LiteralC<"ms">, t.LiteralC<"dr">]>;
350
+ first_name: t.StringC;
351
+ last_name: t.StringC;
352
+ date_of_birth: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
353
+ marital_status: t.UnionC<[t.LiteralC<"widowed">, t.LiteralC<"other">, t.LiteralC<"married">, t.LiteralC<"divorced">, t.LiteralC<"cohabiting">, t.LiteralC<"to_be_married">, t.LiteralC<"separated">, t.LiteralC<"single">]>;
354
+ number_of_dependants: t.NumberC;
355
+ residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">, t.LiteralC<"owner without mortgage">, t.LiteralC<"lodger">, t.LiteralC<"armed forces">]>;
356
+ current_address: t.IntersectionC<[t.TypeC<{
357
+ line_1: t.StringC;
358
+ city: t.StringC;
359
+ country: t.StringC;
360
+ postcode: t.StringC;
361
+ }>, t.PartialC<{
362
+ building_number: t.StringC;
363
+ building_name: t.StringC;
364
+ line_2: t.StringC;
365
+ county: t.StringC;
366
+ months_at_address: t.NumberC;
367
+ }>]>;
368
+ }>, t.PartialC<{
369
+ middle_name: t.StringC;
370
+ maiden_name: t.StringC;
371
+ telephone: t.StringC;
372
+ mobile: t.StringC;
373
+ monthly_rent_amount: t.IntersectionC<[t.TypeC<{
374
+ amount: t.NumberC;
375
+ }>, t.PartialC<{
376
+ currency: t.LiteralC<"GBP">;
377
+ }>]>;
378
+ previous_address_one: t.IntersectionC<[t.TypeC<{
379
+ line_1: t.StringC;
380
+ city: t.StringC;
381
+ country: t.StringC;
382
+ postcode: t.StringC;
383
+ }>, t.PartialC<{
384
+ building_number: t.StringC;
385
+ building_name: t.StringC;
386
+ line_2: t.StringC;
387
+ county: t.StringC;
388
+ months_at_address: t.NumberC;
389
+ }>]>;
390
+ previous_address_two: t.IntersectionC<[t.TypeC<{
391
+ line_1: t.StringC;
392
+ city: t.StringC;
393
+ country: t.StringC;
394
+ postcode: t.StringC;
395
+ }>, t.PartialC<{
396
+ building_number: t.StringC;
397
+ building_name: t.StringC;
398
+ line_2: t.StringC;
399
+ county: t.StringC;
400
+ months_at_address: t.NumberC;
401
+ }>]>;
402
+ goods_delivery_address: t.IntersectionC<[t.TypeC<{
403
+ line_1: t.StringC;
404
+ city: t.StringC;
405
+ country: t.StringC;
406
+ postcode: t.StringC;
407
+ }>, t.PartialC<{
408
+ building_number: t.StringC;
409
+ building_name: t.StringC;
410
+ line_2: t.StringC;
411
+ county: t.StringC;
412
+ months_at_address: t.NumberC;
413
+ }>]>;
414
+ }>]>;
415
+ employment_details: t.IntersectionC<[t.TypeC<{
416
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
417
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
418
+ amount: t.NumberC;
419
+ }>, t.PartialC<{
420
+ currency: t.LiteralC<"GBP">;
421
+ }>]>;
422
+ household_annual_income: t.IntersectionC<[t.TypeC<{
423
+ amount: t.NumberC;
424
+ }>, t.PartialC<{
425
+ currency: t.LiteralC<"GBP">;
426
+ }>]>;
427
+ }>, t.PartialC<{
428
+ employed_details: t.TypeC<{
429
+ employer_name: t.StringC;
430
+ main_occupation: t.StringC;
431
+ months_employed: t.NumberC;
432
+ }>;
433
+ self_employed_details: t.TypeC<{
434
+ business_name: t.StringC;
435
+ type_of_business: t.StringC;
436
+ months_self_employed: t.NumberC;
437
+ }>;
438
+ not_employed_details: t.TypeC<{
439
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"full-time carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent dla">, t.LiteralC<"other">]>;
440
+ }>;
441
+ }>]>;
442
+ finance_details: t.PartialC<{
443
+ bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
444
+ expenditures: t.ArrayC<t.PartialC<{
445
+ expenditure_type: t.UnionC<[t.LiteralC<"credit card">, t.LiteralC<"clothes">, t.LiteralC<"council tax and bills">, t.LiteralC<"child support agency">, t.LiteralC<"healthcare">, t.LiteralC<"holidays">]>;
446
+ monthly_amount: t.IntersectionC<[t.TypeC<{
447
+ amount: t.NumberC;
448
+ }>, t.PartialC<{
449
+ currency: t.LiteralC<"GBP">;
450
+ }>]>;
451
+ }>>;
452
+ }>;
453
+ }>>;
315
454
  credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
316
455
  name: t.StringC;
317
456
  }>, t.PartialC<{
@@ -481,7 +620,7 @@ export declare const Entity: t.PartialC<{
481
620
  viewed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
482
621
  signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
483
622
  }>;
484
- sat_note: t.TypeC<{
623
+ sat_note: t.IntersectionC<[t.TypeC<{
485
624
  q_pressure: t.UnionC<[t.LiteralC<"no">, t.LiteralC<"somewhat">, t.LiteralC<"yes">]>;
486
625
  q_easiness: t.UnionC<[t.LiteralC<"no">, t.LiteralC<"somewhat">, t.LiteralC<"yes">]>;
487
626
  q_availability: t.UnionC<[t.LiteralC<"The installer told me when quoting me">, t.LiteralC<"I saw it advertised by the installer">, t.LiteralC<"I found out when the installer sent me a link via Kanda">]>;
@@ -506,7 +645,25 @@ export declare const Entity: t.PartialC<{
506
645
  updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
507
646
  }>;
508
647
  }>]>;
509
- }>;
648
+ }>, t.PartialC<{
649
+ q_saving: t.UnionC<[t.LiteralC<"Yes I understand">, t.LiteralC<"No I don't understand">]>;
650
+ }>]>;
651
+ job_type: t.UnionC<[t.LiteralC<"standard">, t.LiteralC<"solar">]>;
652
+ job_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
653
+ name: t.StringC;
654
+ }>, t.PartialC<{
655
+ id: t.StringC;
656
+ cid: t.StringC;
657
+ oid: t.StringC;
658
+ aid: t.StringC;
659
+ content: t.StringC;
660
+ mimetype: t.StringC;
661
+ metadata: t.TypeC<{
662
+ liveness: t.BooleanC;
663
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
664
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
665
+ }>;
666
+ }>]>>;
510
667
  metadata: t.TypeC<{
511
668
  liveness: t.BooleanC;
512
669
  created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
@@ -1 +1 @@
1
- {"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjB,CAAC;AAEH,MAAM,WAAW,MAAM;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B"}
@@ -94,6 +94,14 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
94
94
  signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
95
95
  }>;
96
96
  }>]>;
97
+ solar_company_info: t.IntersectionC<[t.TypeC<{
98
+ epvs_registration_number: t.StringC;
99
+ solar_trade_association: t.UnionC<[t.LiteralC<"msc">, t.LiteralC<"heis">, t.LiteralC<"recc">]>;
100
+ solar_trade_association_number: t.StringC;
101
+ electrical_trade_association: t.UnionC<[t.LiteralC<"niceic">, t.LiteralC<"napit">, t.LiteralC<"none">]>;
102
+ }>, t.PartialC<{
103
+ electrical_trade_association_number: t.StringC;
104
+ }>]>;
97
105
  limited_company_info: t.IntersectionC<[t.TypeC<{
98
106
  company_name: t.StringC;
99
107
  company_address: t.IntersectionC<[t.TypeC<{
@@ -166,11 +174,13 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
166
174
  updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
167
175
  }>;
168
176
  }>]>;
169
- bank_account: t.TypeC<{
177
+ bank_account: t.IntersectionC<[t.TypeC<{
170
178
  account_name: t.StringC;
171
179
  account_number: t.StringC;
172
180
  sort_code: t.StringC;
173
- }>;
181
+ }>, t.PartialC<{
182
+ months_held: t.NumberC;
183
+ }>]>;
174
184
  contact_info: t.PartialC<{
175
185
  contact_name: t.StringC;
176
186
  contact_email: t.StringC;
@@ -197,11 +207,13 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
197
207
  }>]>;
198
208
  credit: t.IntersectionC<[t.TypeC<{
199
209
  finance_option: t.StringC;
200
- bank_account: t.TypeC<{
210
+ bank_account: t.IntersectionC<[t.TypeC<{
201
211
  account_name: t.StringC;
202
212
  account_number: t.StringC;
203
213
  sort_code: t.StringC;
204
- }>;
214
+ }>, t.PartialC<{
215
+ months_held: t.NumberC;
216
+ }>]>;
205
217
  customer_details: t.IntersectionC<[t.TypeC<{
206
218
  email: t.StringC;
207
219
  gender: t.UnionC<[t.LiteralC<"male">, t.LiteralC<"female">]>;
@@ -211,7 +223,7 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
211
223
  date_of_birth: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
212
224
  marital_status: t.UnionC<[t.LiteralC<"widowed">, t.LiteralC<"other">, t.LiteralC<"married">, t.LiteralC<"divorced">, t.LiteralC<"cohabiting">, t.LiteralC<"to_be_married">, t.LiteralC<"separated">, t.LiteralC<"single">]>;
213
225
  number_of_dependants: t.NumberC;
214
- residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">]>;
226
+ residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">, t.LiteralC<"owner without mortgage">, t.LiteralC<"lodger">, t.LiteralC<"armed forces">]>;
215
227
  current_address: t.IntersectionC<[t.TypeC<{
216
228
  line_1: t.StringC;
217
229
  city: t.StringC;
@@ -295,7 +307,7 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
295
307
  months_self_employed: t.NumberC;
296
308
  }>;
297
309
  not_employed_details: t.TypeC<{
298
- source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"other">]>;
310
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"full-time carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent dla">, t.LiteralC<"other">]>;
299
311
  }>;
300
312
  }>]>;
301
313
  }>, t.PartialC<{
@@ -305,7 +317,7 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
305
317
  aid: t.StringC;
306
318
  kid: t.StringC;
307
319
  kind: t.UnionC<[t.LiteralC<"job">, t.LiteralC<"charge">]>;
308
- provider: t.LiteralC<"omni">;
320
+ provider: t.UnionC<[t.LiteralC<"omni">, t.LiteralC<"propensio">]>;
309
321
  xid: t.StringC;
310
322
  xref: t.StringC;
311
323
  state: t.UnionC<[t.LiteralC<"accepted">, t.LiteralC<"declined">, t.LiteralC<"referred">, t.LiteralC<"action_lender">, t.LiteralC<"action_customer">, t.LiteralC<"pending">, t.LiteralC<"finished">, t.LiteralC<"paid_out">, t.LiteralC<"cancelled">]>;
@@ -319,6 +331,133 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
319
331
  }>, t.PartialC<{
320
332
  currency: t.LiteralC<"GBP">;
321
333
  }>]>;
334
+ finance_details: t.PartialC<{
335
+ bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
336
+ expenditures: t.ArrayC<t.PartialC<{
337
+ expenditure_type: t.UnionC<[t.LiteralC<"credit card">, t.LiteralC<"clothes">, t.LiteralC<"council tax and bills">, t.LiteralC<"child support agency">, t.LiteralC<"healthcare">, t.LiteralC<"holidays">]>;
338
+ monthly_amount: t.IntersectionC<[t.TypeC<{
339
+ amount: t.NumberC;
340
+ }>, t.PartialC<{
341
+ currency: t.LiteralC<"GBP">;
342
+ }>]>;
343
+ }>>;
344
+ }>;
345
+ extra_applicants: t.ArrayC<t.TypeC<{
346
+ bank_account: t.IntersectionC<[t.TypeC<{
347
+ account_name: t.StringC;
348
+ account_number: t.StringC;
349
+ sort_code: t.StringC;
350
+ }>, t.PartialC<{
351
+ months_held: t.NumberC;
352
+ }>]>;
353
+ customer_details: t.IntersectionC<[t.TypeC<{
354
+ email: t.StringC;
355
+ gender: t.UnionC<[t.LiteralC<"male">, t.LiteralC<"female">]>;
356
+ title: t.UnionC<[t.LiteralC<"mrs">, t.LiteralC<"mr">, t.LiteralC<"miss">, t.LiteralC<"ms">, t.LiteralC<"dr">]>;
357
+ first_name: t.StringC;
358
+ last_name: t.StringC;
359
+ date_of_birth: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
360
+ marital_status: t.UnionC<[t.LiteralC<"widowed">, t.LiteralC<"other">, t.LiteralC<"married">, t.LiteralC<"divorced">, t.LiteralC<"cohabiting">, t.LiteralC<"to_be_married">, t.LiteralC<"separated">, t.LiteralC<"single">]>;
361
+ number_of_dependants: t.NumberC;
362
+ residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">, t.LiteralC<"owner without mortgage">, t.LiteralC<"lodger">, t.LiteralC<"armed forces">]>;
363
+ current_address: t.IntersectionC<[t.TypeC<{
364
+ line_1: t.StringC;
365
+ city: t.StringC;
366
+ country: t.StringC;
367
+ postcode: t.StringC;
368
+ }>, t.PartialC<{
369
+ building_number: t.StringC;
370
+ building_name: t.StringC;
371
+ line_2: t.StringC;
372
+ county: t.StringC;
373
+ months_at_address: t.NumberC;
374
+ }>]>;
375
+ }>, t.PartialC<{
376
+ middle_name: t.StringC;
377
+ maiden_name: t.StringC;
378
+ telephone: t.StringC;
379
+ mobile: t.StringC;
380
+ monthly_rent_amount: t.IntersectionC<[t.TypeC<{
381
+ amount: t.NumberC;
382
+ }>, t.PartialC<{
383
+ currency: t.LiteralC<"GBP">;
384
+ }>]>;
385
+ previous_address_one: t.IntersectionC<[t.TypeC<{
386
+ line_1: t.StringC;
387
+ city: t.StringC;
388
+ country: t.StringC;
389
+ postcode: t.StringC;
390
+ }>, t.PartialC<{
391
+ building_number: t.StringC;
392
+ building_name: t.StringC;
393
+ line_2: t.StringC;
394
+ county: t.StringC;
395
+ months_at_address: t.NumberC;
396
+ }>]>;
397
+ previous_address_two: t.IntersectionC<[t.TypeC<{
398
+ line_1: t.StringC;
399
+ city: t.StringC;
400
+ country: t.StringC;
401
+ postcode: t.StringC;
402
+ }>, t.PartialC<{
403
+ building_number: t.StringC;
404
+ building_name: t.StringC;
405
+ line_2: t.StringC;
406
+ county: t.StringC;
407
+ months_at_address: t.NumberC;
408
+ }>]>;
409
+ goods_delivery_address: t.IntersectionC<[t.TypeC<{
410
+ line_1: t.StringC;
411
+ city: t.StringC;
412
+ country: t.StringC;
413
+ postcode: t.StringC;
414
+ }>, t.PartialC<{
415
+ building_number: t.StringC;
416
+ building_name: t.StringC;
417
+ line_2: t.StringC;
418
+ county: t.StringC;
419
+ months_at_address: t.NumberC;
420
+ }>]>;
421
+ }>]>;
422
+ employment_details: t.IntersectionC<[t.TypeC<{
423
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
424
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
425
+ amount: t.NumberC;
426
+ }>, t.PartialC<{
427
+ currency: t.LiteralC<"GBP">;
428
+ }>]>;
429
+ household_annual_income: t.IntersectionC<[t.TypeC<{
430
+ amount: t.NumberC;
431
+ }>, t.PartialC<{
432
+ currency: t.LiteralC<"GBP">;
433
+ }>]>;
434
+ }>, t.PartialC<{
435
+ employed_details: t.TypeC<{
436
+ employer_name: t.StringC;
437
+ main_occupation: t.StringC;
438
+ months_employed: t.NumberC;
439
+ }>;
440
+ self_employed_details: t.TypeC<{
441
+ business_name: t.StringC;
442
+ type_of_business: t.StringC;
443
+ months_self_employed: t.NumberC;
444
+ }>;
445
+ not_employed_details: t.TypeC<{
446
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"full-time carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent dla">, t.LiteralC<"other">]>;
447
+ }>;
448
+ }>]>;
449
+ finance_details: t.PartialC<{
450
+ bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
451
+ expenditures: t.ArrayC<t.PartialC<{
452
+ expenditure_type: t.UnionC<[t.LiteralC<"credit card">, t.LiteralC<"clothes">, t.LiteralC<"council tax and bills">, t.LiteralC<"child support agency">, t.LiteralC<"healthcare">, t.LiteralC<"holidays">]>;
453
+ monthly_amount: t.IntersectionC<[t.TypeC<{
454
+ amount: t.NumberC;
455
+ }>, t.PartialC<{
456
+ currency: t.LiteralC<"GBP">;
457
+ }>]>;
458
+ }>>;
459
+ }>;
460
+ }>>;
322
461
  credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
323
462
  name: t.StringC;
324
463
  }>, t.PartialC<{
@@ -488,7 +627,7 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
488
627
  viewed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
489
628
  signed_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
490
629
  }>;
491
- sat_note: t.TypeC<{
630
+ sat_note: t.IntersectionC<[t.TypeC<{
492
631
  q_pressure: t.UnionC<[t.LiteralC<"no">, t.LiteralC<"somewhat">, t.LiteralC<"yes">]>;
493
632
  q_easiness: t.UnionC<[t.LiteralC<"no">, t.LiteralC<"somewhat">, t.LiteralC<"yes">]>;
494
633
  q_availability: t.UnionC<[t.LiteralC<"The installer told me when quoting me">, t.LiteralC<"I saw it advertised by the installer">, t.LiteralC<"I found out when the installer sent me a link via Kanda">]>;
@@ -513,7 +652,25 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
513
652
  updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
514
653
  }>;
515
654
  }>]>;
516
- }>;
655
+ }>, t.PartialC<{
656
+ q_saving: t.UnionC<[t.LiteralC<"Yes I understand">, t.LiteralC<"No I don't understand">]>;
657
+ }>]>;
658
+ job_type: t.UnionC<[t.LiteralC<"standard">, t.LiteralC<"solar">]>;
659
+ job_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
660
+ name: t.StringC;
661
+ }>, t.PartialC<{
662
+ id: t.StringC;
663
+ cid: t.StringC;
664
+ oid: t.StringC;
665
+ aid: t.StringC;
666
+ content: t.StringC;
667
+ mimetype: t.StringC;
668
+ metadata: t.TypeC<{
669
+ liveness: t.BooleanC;
670
+ created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
671
+ updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
672
+ }>;
673
+ }>]>>;
517
674
  metadata: t.TypeC<{
518
675
  liveness: t.BooleanC;
519
676
  created_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
@@ -1 +1 @@
1
- {"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CA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,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
@@ -0,0 +1,15 @@
1
+ import * as t from "io-ts";
2
+ import { Money } from "./Money";
3
+ export declare const Expenditure: t.PartialC<{
4
+ expenditure_type: t.UnionC<[t.LiteralC<"credit card">, t.LiteralC<"clothes">, t.LiteralC<"council tax and bills">, t.LiteralC<"child support agency">, t.LiteralC<"healthcare">, t.LiteralC<"holidays">]>;
5
+ monthly_amount: t.IntersectionC<[t.TypeC<{
6
+ amount: t.NumberC;
7
+ }>, t.PartialC<{
8
+ currency: t.LiteralC<"GBP">;
9
+ }>]>;
10
+ }>;
11
+ export interface Expenditure {
12
+ expenditure_type?: "credit card" | "clothes" | "council tax and bills" | "child support agency" | "healthcare" | "holidays";
13
+ monthly_amount?: Money;
14
+ }
15
+ //# sourceMappingURL=Expenditure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Expenditure.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Expenditure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,WAAW;;;;;;;EAUtB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,gBAAgB,CAAC,EACb,aAAa,GACb,SAAS,GACT,uBAAuB,GACvB,sBAAsB,GACtB,YAAY,GACZ,UAAU,CAAC;IACf,cAAc,CAAC,EAAE,KAAK,CAAC;CACxB"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Expenditure = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const Money_1 = require("./Money");
29
+ exports.Expenditure = t.partial({
30
+ expenditure_type: t.union([
31
+ t.literal("credit card"),
32
+ t.literal("clothes"),
33
+ t.literal("council tax and bills"),
34
+ t.literal("child support agency"),
35
+ t.literal("healthcare"),
36
+ t.literal("holidays"),
37
+ ]),
38
+ monthly_amount: Money_1.Money,
39
+ });
@@ -0,0 +1,18 @@
1
+ import * as t from "io-ts";
2
+ import { Expenditure } from "./Expenditure";
3
+ export declare const FinanceDetails: t.PartialC<{
4
+ bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
5
+ expenditures: t.ArrayC<t.PartialC<{
6
+ expenditure_type: t.UnionC<[t.LiteralC<"credit card">, t.LiteralC<"clothes">, t.LiteralC<"council tax and bills">, t.LiteralC<"child support agency">, t.LiteralC<"healthcare">, t.LiteralC<"holidays">]>;
7
+ monthly_amount: t.IntersectionC<[t.TypeC<{
8
+ amount: t.NumberC;
9
+ }>, t.PartialC<{
10
+ currency: t.LiteralC<"GBP">;
11
+ }>]>;
12
+ }>>;
13
+ }>;
14
+ export interface FinanceDetails {
15
+ bankrupcy_or_iva_in_last_5_years?: "yes" | "no";
16
+ expenditures?: Array<Expenditure>;
17
+ }
18
+ //# sourceMappingURL=FinanceDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FinanceDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/FinanceDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,cAAc;;;;;;;;;;EAMzB,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,gCAAgC,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAChD,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CACnC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.FinanceDetails = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const Expenditure_1 = require("./Expenditure");
29
+ exports.FinanceDetails = t.partial({
30
+ bankrupcy_or_iva_in_last_5_years: t.union([
31
+ t.literal("yes"),
32
+ t.literal("no"),
33
+ ]),
34
+ expenditures: t.array(Expenditure_1.Expenditure),
35
+ });