@kanda-libs/ks-schema 1.0.147 → 1.0.149

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 (36) hide show
  1. package/dist/components/schemas/ApplicantDetails.d.ts +29 -6
  2. package/dist/components/schemas/ApplicantDetails.d.ts.map +1 -1
  3. package/dist/components/schemas/ApplicantDetails.js +1 -2
  4. package/dist/components/schemas/Credit.d.ts +57 -10
  5. package/dist/components/schemas/Credit.d.ts.map +1 -1
  6. package/dist/components/schemas/Credit.js +1 -2
  7. package/dist/components/schemas/Entity.d.ts +56 -8
  8. package/dist/components/schemas/Entity.d.ts.map +1 -1
  9. package/dist/components/schemas/Event.d.ts +56 -8
  10. package/dist/components/schemas/Event.d.ts.map +1 -1
  11. package/dist/operations/applyCredit.d.ts +56 -8
  12. package/dist/operations/applyCredit.d.ts.map +1 -1
  13. package/dist/operations/checkCredit.d.ts +56 -8
  14. package/dist/operations/checkCredit.d.ts.map +1 -1
  15. package/dist/operations/deleteCredit.d.ts +56 -8
  16. package/dist/operations/deleteCredit.d.ts.map +1 -1
  17. package/dist/operations/getCredit.d.ts +56 -8
  18. package/dist/operations/getCredit.d.ts.map +1 -1
  19. package/dist/operations/getCredits.d.ts +56 -8
  20. package/dist/operations/getCredits.d.ts.map +1 -1
  21. package/dist/operations/index.d.ts +504 -72
  22. package/dist/operations/index.d.ts.map +1 -1
  23. package/dist/operations/postCredit.d.ts +56 -8
  24. package/dist/operations/postCredit.d.ts.map +1 -1
  25. package/dist/operations/putCredit.d.ts +56 -8
  26. package/dist/operations/putCredit.d.ts.map +1 -1
  27. package/dist/operations/quoteCredit.d.ts +56 -8
  28. package/dist/operations/quoteCredit.d.ts.map +1 -1
  29. package/dist/operations/signCredit.d.ts +56 -8
  30. package/dist/operations/signCredit.d.ts.map +1 -1
  31. package/dist/schema.json +1 -1
  32. package/dist/widget/index.d.ts +5516 -4907
  33. package/dist/widget/index.d.ts.map +1 -1
  34. package/dist/widget/index.js +17352 -16649
  35. package/package.json +1 -1
  36. package/schema.yaml +2 -2
@@ -1,7 +1,6 @@
1
1
  import * as t from "io-ts";
2
2
  import { BankAccount } from "./BankAccount";
3
3
  import { CustomerDetails } from "./CustomerDetails";
4
- import { EmployedDetails } from "./EmployedDetails";
5
4
  import { EmploymentDetails } from "./EmploymentDetails";
6
5
  import { FinanceDetails } from "./FinanceDetails";
7
6
  export declare const ApplicantDetails: t.IntersectionC<[t.TypeC<{
@@ -133,18 +132,42 @@ export declare const ApplicantDetails: t.IntersectionC<[t.TypeC<{
133
132
  }>;
134
133
  }>, t.PartialC<{
135
134
  additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
136
- employer_name: t.StringC;
137
- main_occupation: t.StringC;
138
- months_employed: t.NumberC;
135
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
136
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
137
+ amount: t.NumberC;
138
+ }>, t.PartialC<{
139
+ currency: t.LiteralC<"GBP">;
140
+ }>]>;
139
141
  }>, t.PartialC<{
140
- employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
142
+ employed_details: t.IntersectionC<[t.TypeC<{
143
+ employer_name: t.StringC;
144
+ main_occupation: t.StringC;
145
+ months_employed: t.NumberC;
146
+ }>, t.PartialC<{
147
+ employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
148
+ }>]>;
149
+ self_employed_details: t.IntersectionC<[t.TypeC<{
150
+ business_name: t.StringC;
151
+ type_of_business: t.StringC;
152
+ months_self_employed: t.NumberC;
153
+ }>, t.PartialC<{
154
+ self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
155
+ }>]>;
156
+ not_employed_details: t.TypeC<{
157
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"fulltime_carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent_dla">, t.LiteralC<"other">]>;
158
+ }>;
159
+ household_annual_income: t.IntersectionC<[t.TypeC<{
160
+ amount: t.NumberC;
161
+ }>, t.PartialC<{
162
+ currency: t.LiteralC<"GBP">;
163
+ }>]>;
141
164
  }>]>>;
142
165
  }>]>;
143
166
  export interface ApplicantDetails {
144
167
  bank_account: BankAccount;
145
168
  customer_details: CustomerDetails;
146
169
  employment_details: EmploymentDetails;
147
- additional_employment_details?: Array<EmployedDetails>;
170
+ additional_employment_details?: Array<EmploymentDetails>;
148
171
  finance_details: FinanceDetails;
149
172
  }
150
173
  //# sourceMappingURL=ApplicantDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicantDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/ApplicantDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAU3B,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,WAAW,CAAC;IAC1B,gBAAgB,EAAE,eAAe,CAAC;IAClC,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,6BAA6B,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACvD,eAAe,EAAE,cAAc,CAAC;CACjC"}
1
+ {"version":3,"file":"ApplicantDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/ApplicantDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAU3B,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,WAAW,CAAC;IAC1B,gBAAgB,EAAE,eAAe,CAAC;IAClC,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,6BAA6B,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACzD,eAAe,EAAE,cAAc,CAAC;CACjC"}
@@ -27,7 +27,6 @@ exports.ApplicantDetails = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
28
  const BankAccount_1 = require("./BankAccount");
29
29
  const CustomerDetails_1 = require("./CustomerDetails");
30
- const EmployedDetails_1 = require("./EmployedDetails");
31
30
  const EmploymentDetails_1 = require("./EmploymentDetails");
32
31
  const FinanceDetails_1 = require("./FinanceDetails");
33
32
  exports.ApplicantDetails = t.intersection([
@@ -38,6 +37,6 @@ exports.ApplicantDetails = t.intersection([
38
37
  finance_details: FinanceDetails_1.FinanceDetails,
39
38
  }),
40
39
  t.partial({
41
- additional_employment_details: t.array(EmployedDetails_1.EmployedDetails),
40
+ additional_employment_details: t.array(EmploymentDetails_1.EmploymentDetails),
42
41
  }),
43
42
  ]);
@@ -3,7 +3,6 @@ import { ApplicantDetails } from "./ApplicantDetails";
3
3
  import { BankAccount } from "./BankAccount";
4
4
  import { CustomerDetails } from "./CustomerDetails";
5
5
  import { Document } from "./Document";
6
- import { EmployedDetails } from "./EmployedDetails";
7
6
  import { EmploymentDetails } from "./EmploymentDetails";
8
7
  import { FinanceDetails } from "./FinanceDetails";
9
8
  import { Metadata } from "./Metadata";
@@ -140,11 +139,35 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
140
139
  currency: t.LiteralC<"GBP">;
141
140
  }>]>;
142
141
  additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
143
- employer_name: t.StringC;
144
- main_occupation: t.StringC;
145
- months_employed: t.NumberC;
142
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
143
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
144
+ amount: t.NumberC;
145
+ }>, t.PartialC<{
146
+ currency: t.LiteralC<"GBP">;
147
+ }>]>;
146
148
  }>, t.PartialC<{
147
- employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
149
+ employed_details: t.IntersectionC<[t.TypeC<{
150
+ employer_name: t.StringC;
151
+ main_occupation: t.StringC;
152
+ months_employed: t.NumberC;
153
+ }>, t.PartialC<{
154
+ employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
155
+ }>]>;
156
+ self_employed_details: t.IntersectionC<[t.TypeC<{
157
+ business_name: t.StringC;
158
+ type_of_business: t.StringC;
159
+ months_self_employed: t.NumberC;
160
+ }>, t.PartialC<{
161
+ self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
162
+ }>]>;
163
+ not_employed_details: t.TypeC<{
164
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"fulltime_carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent_dla">, t.LiteralC<"other">]>;
165
+ }>;
166
+ household_annual_income: t.IntersectionC<[t.TypeC<{
167
+ amount: t.NumberC;
168
+ }>, t.PartialC<{
169
+ currency: t.LiteralC<"GBP">;
170
+ }>]>;
148
171
  }>]>>;
149
172
  finance_details: t.PartialC<{
150
173
  bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
@@ -294,11 +317,35 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
294
317
  }>;
295
318
  }>, t.PartialC<{
296
319
  additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
297
- employer_name: t.StringC;
298
- main_occupation: t.StringC;
299
- months_employed: t.NumberC;
320
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
321
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
322
+ amount: t.NumberC;
323
+ }>, t.PartialC<{
324
+ currency: t.LiteralC<"GBP">;
325
+ }>]>;
300
326
  }>, t.PartialC<{
301
- employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
327
+ employed_details: t.IntersectionC<[t.TypeC<{
328
+ employer_name: t.StringC;
329
+ main_occupation: t.StringC;
330
+ months_employed: t.NumberC;
331
+ }>, t.PartialC<{
332
+ employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
333
+ }>]>;
334
+ self_employed_details: t.IntersectionC<[t.TypeC<{
335
+ business_name: t.StringC;
336
+ type_of_business: t.StringC;
337
+ months_self_employed: t.NumberC;
338
+ }>, t.PartialC<{
339
+ self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
340
+ }>]>;
341
+ not_employed_details: t.TypeC<{
342
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"fulltime_carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent_dla">, t.LiteralC<"other">]>;
343
+ }>;
344
+ household_annual_income: t.IntersectionC<[t.TypeC<{
345
+ amount: t.NumberC;
346
+ }>, t.PartialC<{
347
+ currency: t.LiteralC<"GBP">;
348
+ }>]>;
302
349
  }>]>>;
303
350
  }>]>>;
304
351
  credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
@@ -343,7 +390,7 @@ export interface Credit {
343
390
  bank_account: BankAccount;
344
391
  customer_details: CustomerDetails;
345
392
  employment_details: EmploymentDetails;
346
- additional_employment_details?: Array<EmployedDetails>;
393
+ additional_employment_details?: Array<EmploymentDetails>;
347
394
  finance_details?: FinanceDetails;
348
395
  extra_applicants?: Array<ApplicantDetails>;
349
396
  credit_documents?: Array<Document>;
@@ -1 +1 @@
1
- {"version":3,"file":"Credit.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Credit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;IAqCjB,CAAC;AAEH,MAAM,WAAW,MAAM;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EACF,UAAU,GACV,UAAU,GACV,UAAU,GACV,eAAe,GACf,iBAAiB,GACjB,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,WAAW,CAAC;IAC1B,gBAAgB,EAAE,eAAe,CAAC;IAClC,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,6BAA6B,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,gBAAgB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC3C,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
@@ -29,7 +29,6 @@ const ApplicantDetails_1 = require("./ApplicantDetails");
29
29
  const BankAccount_1 = require("./BankAccount");
30
30
  const CustomerDetails_1 = require("./CustomerDetails");
31
31
  const Document_1 = require("./Document");
32
- const EmployedDetails_1 = require("./EmployedDetails");
33
32
  const EmploymentDetails_1 = require("./EmploymentDetails");
34
33
  const FinanceDetails_1 = require("./FinanceDetails");
35
34
  const Metadata_1 = require("./Metadata");
@@ -65,7 +64,7 @@ exports.Credit = t.intersection([
65
64
  ]),
66
65
  amount: Money_1.Money,
67
66
  deposit_value: Money_1.Money,
68
- additional_employment_details: t.array(EmployedDetails_1.EmployedDetails),
67
+ additional_employment_details: t.array(EmploymentDetails_1.EmploymentDetails),
69
68
  finance_details: FinanceDetails_1.FinanceDetails,
70
69
  extra_applicants: t.array(ApplicantDetails_1.ApplicantDetails),
71
70
  credit_documents: t.array(Document_1.Document),
@@ -329,11 +329,35 @@ export declare const Entity: t.PartialC<{
329
329
  currency: t.LiteralC<"GBP">;
330
330
  }>]>;
331
331
  additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
332
- employer_name: t.StringC;
333
- main_occupation: t.StringC;
334
- months_employed: t.NumberC;
332
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
333
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
334
+ amount: t.NumberC;
335
+ }>, t.PartialC<{
336
+ currency: t.LiteralC<"GBP">;
337
+ }>]>;
335
338
  }>, t.PartialC<{
336
- employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
339
+ employed_details: t.IntersectionC<[t.TypeC<{
340
+ employer_name: t.StringC;
341
+ main_occupation: t.StringC;
342
+ months_employed: t.NumberC;
343
+ }>, t.PartialC<{
344
+ employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
345
+ }>]>;
346
+ self_employed_details: t.IntersectionC<[t.TypeC<{
347
+ business_name: t.StringC;
348
+ type_of_business: t.StringC;
349
+ months_self_employed: t.NumberC;
350
+ }>, t.PartialC<{
351
+ self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
352
+ }>]>;
353
+ not_employed_details: t.TypeC<{
354
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"fulltime_carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent_dla">, t.LiteralC<"other">]>;
355
+ }>;
356
+ household_annual_income: t.IntersectionC<[t.TypeC<{
357
+ amount: t.NumberC;
358
+ }>, t.PartialC<{
359
+ currency: t.LiteralC<"GBP">;
360
+ }>]>;
337
361
  }>]>>;
338
362
  finance_details: t.PartialC<{
339
363
  bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
@@ -483,11 +507,35 @@ export declare const Entity: t.PartialC<{
483
507
  }>;
484
508
  }>, t.PartialC<{
485
509
  additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
486
- employer_name: t.StringC;
487
- main_occupation: t.StringC;
488
- months_employed: t.NumberC;
510
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
511
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
512
+ amount: t.NumberC;
513
+ }>, t.PartialC<{
514
+ currency: t.LiteralC<"GBP">;
515
+ }>]>;
489
516
  }>, t.PartialC<{
490
- employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
517
+ employed_details: t.IntersectionC<[t.TypeC<{
518
+ employer_name: t.StringC;
519
+ main_occupation: t.StringC;
520
+ months_employed: t.NumberC;
521
+ }>, t.PartialC<{
522
+ employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
523
+ }>]>;
524
+ self_employed_details: t.IntersectionC<[t.TypeC<{
525
+ business_name: t.StringC;
526
+ type_of_business: t.StringC;
527
+ months_self_employed: t.NumberC;
528
+ }>, t.PartialC<{
529
+ self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
530
+ }>]>;
531
+ not_employed_details: t.TypeC<{
532
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"fulltime_carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent_dla">, t.LiteralC<"other">]>;
533
+ }>;
534
+ household_annual_income: t.IntersectionC<[t.TypeC<{
535
+ amount: t.NumberC;
536
+ }>, t.PartialC<{
537
+ currency: t.LiteralC<"GBP">;
538
+ }>]>;
491
539
  }>]>>;
492
540
  }>]>>;
493
541
  credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
@@ -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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@ export declare const Event: t.IntersectionC<[t.TypeC<{
336
336
  currency: t.LiteralC<"GBP">;
337
337
  }>]>;
338
338
  additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
339
- employer_name: t.StringC;
340
- main_occupation: t.StringC;
341
- months_employed: t.NumberC;
339
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
340
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
341
+ amount: t.NumberC;
342
+ }>, t.PartialC<{
343
+ currency: t.LiteralC<"GBP">;
344
+ }>]>;
342
345
  }>, t.PartialC<{
343
- employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
346
+ employed_details: t.IntersectionC<[t.TypeC<{
347
+ employer_name: t.StringC;
348
+ main_occupation: t.StringC;
349
+ months_employed: t.NumberC;
350
+ }>, t.PartialC<{
351
+ employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
352
+ }>]>;
353
+ self_employed_details: t.IntersectionC<[t.TypeC<{
354
+ business_name: t.StringC;
355
+ type_of_business: t.StringC;
356
+ months_self_employed: t.NumberC;
357
+ }>, t.PartialC<{
358
+ self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
359
+ }>]>;
360
+ not_employed_details: t.TypeC<{
361
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"fulltime_carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent_dla">, t.LiteralC<"other">]>;
362
+ }>;
363
+ household_annual_income: t.IntersectionC<[t.TypeC<{
364
+ amount: t.NumberC;
365
+ }>, t.PartialC<{
366
+ currency: t.LiteralC<"GBP">;
367
+ }>]>;
344
368
  }>]>>;
345
369
  finance_details: t.PartialC<{
346
370
  bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
@@ -490,11 +514,35 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
490
514
  }>;
491
515
  }>, t.PartialC<{
492
516
  additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
493
- employer_name: t.StringC;
494
- main_occupation: t.StringC;
495
- months_employed: t.NumberC;
517
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
518
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
519
+ amount: t.NumberC;
520
+ }>, t.PartialC<{
521
+ currency: t.LiteralC<"GBP">;
522
+ }>]>;
496
523
  }>, t.PartialC<{
497
- employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
524
+ employed_details: t.IntersectionC<[t.TypeC<{
525
+ employer_name: t.StringC;
526
+ main_occupation: t.StringC;
527
+ months_employed: t.NumberC;
528
+ }>, t.PartialC<{
529
+ employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
530
+ }>]>;
531
+ self_employed_details: t.IntersectionC<[t.TypeC<{
532
+ business_name: t.StringC;
533
+ type_of_business: t.StringC;
534
+ months_self_employed: t.NumberC;
535
+ }>, t.PartialC<{
536
+ self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
537
+ }>]>;
538
+ not_employed_details: t.TypeC<{
539
+ source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"disabled">, t.LiteralC<"fulltime_carer">, t.LiteralC<"homemaker">, t.LiteralC<"permanent_dla">, t.LiteralC<"other">]>;
540
+ }>;
541
+ household_annual_income: t.IntersectionC<[t.TypeC<{
542
+ amount: t.NumberC;
543
+ }>, t.PartialC<{
544
+ currency: t.LiteralC<"GBP">;
545
+ }>]>;
498
546
  }>]>>;
499
547
  }>]>>;
500
548
  credit_documents: t.ArrayC<t.I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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBhB,CAAC;AAEH,MAAM,WAAW,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"}
@@ -140,11 +140,35 @@ export declare const applyCreditOperation: {
140
140
  currency: import("io-ts").LiteralC<"GBP">;
141
141
  }>]>;
142
142
  additional_employment_details: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
143
- employer_name: import("io-ts").StringC;
144
- main_occupation: import("io-ts").StringC;
145
- months_employed: import("io-ts").NumberC;
143
+ employment_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"employed">, import("io-ts").LiteralC<"self_employed">, import("io-ts").LiteralC<"not_employed">, import("io-ts").LiteralC<"retired">]>;
144
+ gross_annual_income: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
145
+ amount: import("io-ts").NumberC;
146
+ }>, import("io-ts").PartialC<{
147
+ currency: import("io-ts").LiteralC<"GBP">;
148
+ }>]>;
146
149
  }>, import("io-ts").PartialC<{
147
- employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
150
+ employed_details: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
151
+ employer_name: import("io-ts").StringC;
152
+ main_occupation: import("io-ts").StringC;
153
+ months_employed: import("io-ts").NumberC;
154
+ }>, import("io-ts").PartialC<{
155
+ employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
156
+ }>]>;
157
+ self_employed_details: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
158
+ business_name: import("io-ts").StringC;
159
+ type_of_business: import("io-ts").StringC;
160
+ months_self_employed: import("io-ts").NumberC;
161
+ }>, import("io-ts").PartialC<{
162
+ self_employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
163
+ }>]>;
164
+ not_employed_details: import("io-ts").TypeC<{
165
+ source_of_income: import("io-ts").UnionC<[import("io-ts").LiteralC<"partner">, import("io-ts").LiteralC<"benefits">, import("io-ts").LiteralC<"maintenance">, import("io-ts").LiteralC<"disabled">, import("io-ts").LiteralC<"fulltime_carer">, import("io-ts").LiteralC<"homemaker">, import("io-ts").LiteralC<"permanent_dla">, import("io-ts").LiteralC<"other">]>;
166
+ }>;
167
+ household_annual_income: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
168
+ amount: import("io-ts").NumberC;
169
+ }>, import("io-ts").PartialC<{
170
+ currency: import("io-ts").LiteralC<"GBP">;
171
+ }>]>;
148
172
  }>]>>;
149
173
  finance_details: import("io-ts").PartialC<{
150
174
  bankrupcy_or_iva_in_last_5_years: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
@@ -294,11 +318,35 @@ export declare const applyCreditOperation: {
294
318
  }>;
295
319
  }>, import("io-ts").PartialC<{
296
320
  additional_employment_details: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
297
- employer_name: import("io-ts").StringC;
298
- main_occupation: import("io-ts").StringC;
299
- months_employed: import("io-ts").NumberC;
321
+ employment_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"employed">, import("io-ts").LiteralC<"self_employed">, import("io-ts").LiteralC<"not_employed">, import("io-ts").LiteralC<"retired">]>;
322
+ gross_annual_income: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
323
+ amount: import("io-ts").NumberC;
324
+ }>, import("io-ts").PartialC<{
325
+ currency: import("io-ts").LiteralC<"GBP">;
326
+ }>]>;
300
327
  }>, import("io-ts").PartialC<{
301
- employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
328
+ employed_details: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
329
+ employer_name: import("io-ts").StringC;
330
+ main_occupation: import("io-ts").StringC;
331
+ months_employed: import("io-ts").NumberC;
332
+ }>, import("io-ts").PartialC<{
333
+ employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
334
+ }>]>;
335
+ self_employed_details: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
336
+ business_name: import("io-ts").StringC;
337
+ type_of_business: import("io-ts").StringC;
338
+ months_self_employed: import("io-ts").NumberC;
339
+ }>, import("io-ts").PartialC<{
340
+ self_employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
341
+ }>]>;
342
+ not_employed_details: import("io-ts").TypeC<{
343
+ source_of_income: import("io-ts").UnionC<[import("io-ts").LiteralC<"partner">, import("io-ts").LiteralC<"benefits">, import("io-ts").LiteralC<"maintenance">, import("io-ts").LiteralC<"disabled">, import("io-ts").LiteralC<"fulltime_carer">, import("io-ts").LiteralC<"homemaker">, import("io-ts").LiteralC<"permanent_dla">, import("io-ts").LiteralC<"other">]>;
344
+ }>;
345
+ household_annual_income: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
346
+ amount: import("io-ts").NumberC;
347
+ }>, import("io-ts").PartialC<{
348
+ currency: import("io-ts").LiteralC<"GBP">;
349
+ }>]>;
302
350
  }>]>>;
303
351
  }>]>>;
304
352
  credit_documents: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
@@ -1 +1 @@
1
- {"version":3,"file":"applyCredit.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/applyCredit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBvB,CAAC;AAEX,oBAAY,0BAA0B,GAAG,eAAe,CACtD;IAAE,MAAM,EAAE,4BAA4B,CAAA;CAAE,EACxC,OAAO,CAAC,MAAM,CACf,CAAC"}
1
+ {"version":3,"file":"applyCredit.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/applyCredit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBvB,CAAC;AAEX,oBAAY,0BAA0B,GAAG,eAAe,CACtD;IAAE,MAAM,EAAE,4BAA4B,CAAA;CAAE,EACxC,OAAO,CAAC,MAAM,CACf,CAAC"}
@@ -140,11 +140,35 @@ export declare const checkCreditOperation: {
140
140
  currency: import("io-ts").LiteralC<"GBP">;
141
141
  }>]>;
142
142
  additional_employment_details: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
143
- employer_name: import("io-ts").StringC;
144
- main_occupation: import("io-ts").StringC;
145
- months_employed: import("io-ts").NumberC;
143
+ employment_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"employed">, import("io-ts").LiteralC<"self_employed">, import("io-ts").LiteralC<"not_employed">, import("io-ts").LiteralC<"retired">]>;
144
+ gross_annual_income: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
145
+ amount: import("io-ts").NumberC;
146
+ }>, import("io-ts").PartialC<{
147
+ currency: import("io-ts").LiteralC<"GBP">;
148
+ }>]>;
146
149
  }>, import("io-ts").PartialC<{
147
- employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
150
+ employed_details: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
151
+ employer_name: import("io-ts").StringC;
152
+ main_occupation: import("io-ts").StringC;
153
+ months_employed: import("io-ts").NumberC;
154
+ }>, import("io-ts").PartialC<{
155
+ employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
156
+ }>]>;
157
+ self_employed_details: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
158
+ business_name: import("io-ts").StringC;
159
+ type_of_business: import("io-ts").StringC;
160
+ months_self_employed: import("io-ts").NumberC;
161
+ }>, import("io-ts").PartialC<{
162
+ self_employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
163
+ }>]>;
164
+ not_employed_details: import("io-ts").TypeC<{
165
+ source_of_income: import("io-ts").UnionC<[import("io-ts").LiteralC<"partner">, import("io-ts").LiteralC<"benefits">, import("io-ts").LiteralC<"maintenance">, import("io-ts").LiteralC<"disabled">, import("io-ts").LiteralC<"fulltime_carer">, import("io-ts").LiteralC<"homemaker">, import("io-ts").LiteralC<"permanent_dla">, import("io-ts").LiteralC<"other">]>;
166
+ }>;
167
+ household_annual_income: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
168
+ amount: import("io-ts").NumberC;
169
+ }>, import("io-ts").PartialC<{
170
+ currency: import("io-ts").LiteralC<"GBP">;
171
+ }>]>;
148
172
  }>]>>;
149
173
  finance_details: import("io-ts").PartialC<{
150
174
  bankrupcy_or_iva_in_last_5_years: import("io-ts").UnionC<[import("io-ts").LiteralC<"yes">, import("io-ts").LiteralC<"no">]>;
@@ -294,11 +318,35 @@ export declare const checkCreditOperation: {
294
318
  }>;
295
319
  }>, import("io-ts").PartialC<{
296
320
  additional_employment_details: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
297
- employer_name: import("io-ts").StringC;
298
- main_occupation: import("io-ts").StringC;
299
- months_employed: import("io-ts").NumberC;
321
+ employment_status: import("io-ts").UnionC<[import("io-ts").LiteralC<"employed">, import("io-ts").LiteralC<"self_employed">, import("io-ts").LiteralC<"not_employed">, import("io-ts").LiteralC<"retired">]>;
322
+ gross_annual_income: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
323
+ amount: import("io-ts").NumberC;
324
+ }>, import("io-ts").PartialC<{
325
+ currency: import("io-ts").LiteralC<"GBP">;
326
+ }>]>;
300
327
  }>, import("io-ts").PartialC<{
301
- employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
328
+ employed_details: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
329
+ employer_name: import("io-ts").StringC;
330
+ main_occupation: import("io-ts").StringC;
331
+ months_employed: import("io-ts").NumberC;
332
+ }>, import("io-ts").PartialC<{
333
+ employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
334
+ }>]>;
335
+ self_employed_details: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
336
+ business_name: import("io-ts").StringC;
337
+ type_of_business: import("io-ts").StringC;
338
+ months_self_employed: import("io-ts").NumberC;
339
+ }>, import("io-ts").PartialC<{
340
+ self_employed_type: import("io-ts").UnionC<[import("io-ts").LiteralC<"full_time">, import("io-ts").LiteralC<"part_time">]>;
341
+ }>]>;
342
+ not_employed_details: import("io-ts").TypeC<{
343
+ source_of_income: import("io-ts").UnionC<[import("io-ts").LiteralC<"partner">, import("io-ts").LiteralC<"benefits">, import("io-ts").LiteralC<"maintenance">, import("io-ts").LiteralC<"disabled">, import("io-ts").LiteralC<"fulltime_carer">, import("io-ts").LiteralC<"homemaker">, import("io-ts").LiteralC<"permanent_dla">, import("io-ts").LiteralC<"other">]>;
344
+ }>;
345
+ household_annual_income: import("io-ts").IntersectionC<[import("io-ts").TypeC<{
346
+ amount: import("io-ts").NumberC;
347
+ }>, import("io-ts").PartialC<{
348
+ currency: import("io-ts").LiteralC<"GBP">;
349
+ }>]>;
302
350
  }>]>>;
303
351
  }>]>>;
304
352
  credit_documents: import("io-ts").ArrayC<import("io-ts").IntersectionC<[import("io-ts").TypeC<{
@@ -1 +1 @@
1
- {"version":3,"file":"checkCredit.d.ts","sourceRoot":"","sources":["../../frontend/generated/operations/checkCredit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEjD,oBAAY,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBvB,CAAC;AAEX,oBAAY,0BAA0B,GAAG,eAAe,CACtD;IAAE,MAAM,EAAE,4BAA4B,CAAA;CAAE,EACxC,OAAO,CAAC,MAAM,CACf,CAAC"}
1
+ {"version":3,"file":"checkCredit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