@kanda-libs/ks-schema 1.0.125 → 1.0.127

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 (81) 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 +5 -3
  8. package/dist/components/schemas/Company.d.ts.map +1 -1
  9. package/dist/components/schemas/Credit.d.ts +139 -6
  10. package/dist/components/schemas/Credit.d.ts.map +1 -1
  11. package/dist/components/schemas/Credit.js +5 -1
  12. package/dist/components/schemas/CustomerDetails.d.ts +2 -2
  13. package/dist/components/schemas/CustomerDetails.d.ts.map +1 -1
  14. package/dist/components/schemas/CustomerDetails.js +3 -0
  15. package/dist/components/schemas/EmploymentDetails.d.ts +1 -1
  16. package/dist/components/schemas/Entity.d.ts +139 -8
  17. package/dist/components/schemas/Entity.d.ts.map +1 -1
  18. package/dist/components/schemas/Event.d.ts +139 -8
  19. package/dist/components/schemas/Event.d.ts.map +1 -1
  20. package/dist/components/schemas/Expenditure.d.ts +15 -0
  21. package/dist/components/schemas/Expenditure.d.ts.map +1 -0
  22. package/dist/components/schemas/Expenditure.js +39 -0
  23. package/dist/components/schemas/FinanceDetails.d.ts +18 -0
  24. package/dist/components/schemas/FinanceDetails.d.ts.map +1 -0
  25. package/dist/components/schemas/FinanceDetails.js +35 -0
  26. package/dist/components/schemas/JobCompanyInfo.d.ts +4 -2
  27. package/dist/components/schemas/JobCompanyInfo.d.ts.map +1 -1
  28. package/dist/components/schemas/NotEmployedDetails.d.ts +2 -2
  29. package/dist/components/schemas/NotEmployedDetails.d.ts.map +1 -1
  30. package/dist/components/schemas/NotEmployedDetails.js +4 -0
  31. package/dist/components/schemas/SolarCompanyInfo.d.ts +2 -2
  32. package/dist/components/schemas/SolarCompanyInfo.d.ts.map +1 -1
  33. package/dist/components/schemas/SolarCompanyInfo.js +1 -1
  34. package/dist/components/schemas/index.d.ts +3 -0
  35. package/dist/components/schemas/index.d.ts.map +1 -1
  36. package/dist/components/schemas/index.js +3 -0
  37. package/dist/operations/applyCredit.d.ts +134 -5
  38. package/dist/operations/applyCredit.d.ts.map +1 -1
  39. package/dist/operations/approveCompany.d.ts +5 -3
  40. package/dist/operations/approveCompany.d.ts.map +1 -1
  41. package/dist/operations/checkCredit.d.ts +134 -5
  42. package/dist/operations/checkCredit.d.ts.map +1 -1
  43. package/dist/operations/declineCompany.d.ts +5 -3
  44. package/dist/operations/declineCompany.d.ts.map +1 -1
  45. package/dist/operations/deleteCompany.d.ts +5 -3
  46. package/dist/operations/deleteCompany.d.ts.map +1 -1
  47. package/dist/operations/deleteCredit.d.ts +134 -5
  48. package/dist/operations/deleteCredit.d.ts.map +1 -1
  49. package/dist/operations/directorCompany.d.ts +5 -3
  50. package/dist/operations/directorCompany.d.ts.map +1 -1
  51. package/dist/operations/getCompanies.d.ts +5 -3
  52. package/dist/operations/getCompanies.d.ts.map +1 -1
  53. package/dist/operations/getCompany.d.ts +5 -3
  54. package/dist/operations/getCompany.d.ts.map +1 -1
  55. package/dist/operations/getCredit.d.ts +134 -5
  56. package/dist/operations/getCredit.d.ts.map +1 -1
  57. package/dist/operations/getCredits.d.ts +134 -5
  58. package/dist/operations/getCredits.d.ts.map +1 -1
  59. package/dist/operations/index.d.ts +1257 -78
  60. package/dist/operations/index.d.ts.map +1 -1
  61. package/dist/operations/jobCompanyInfo.d.ts +4 -2
  62. package/dist/operations/jobCompanyInfo.d.ts.map +1 -1
  63. package/dist/operations/postCompany.d.ts +5 -3
  64. package/dist/operations/postCompany.d.ts.map +1 -1
  65. package/dist/operations/postCredit.d.ts +134 -5
  66. package/dist/operations/postCredit.d.ts.map +1 -1
  67. package/dist/operations/putCompany.d.ts +5 -3
  68. package/dist/operations/putCompany.d.ts.map +1 -1
  69. package/dist/operations/putCredit.d.ts +134 -5
  70. package/dist/operations/putCredit.d.ts.map +1 -1
  71. package/dist/operations/quoteCredit.d.ts +134 -5
  72. package/dist/operations/quoteCredit.d.ts.map +1 -1
  73. package/dist/operations/signCredit.d.ts +134 -5
  74. package/dist/operations/signCredit.d.ts.map +1 -1
  75. package/dist/schema.json +1 -1
  76. package/dist/widget/index.d.ts +7808 -5116
  77. package/dist/widget/index.d.ts.map +1 -1
  78. package/dist/widget/index.js +15890 -12879
  79. package/package.json +1 -1
  80. package/schema.yaml +84 -1
  81. package/tsconfig.json +1 -1
@@ -0,0 +1,128 @@
1
+ import * as t from "io-ts";
2
+ import { BankAccount } from "./BankAccount";
3
+ import { CustomerDetails } from "./CustomerDetails";
4
+ import { EmploymentDetails } from "./EmploymentDetails";
5
+ import { FinanceDetails } from "./FinanceDetails";
6
+ export declare const ApplicantDetails: t.TypeC<{
7
+ bank_account: t.IntersectionC<[t.TypeC<{
8
+ account_name: t.StringC;
9
+ account_number: t.StringC;
10
+ sort_code: t.StringC;
11
+ }>, t.PartialC<{
12
+ months_held: t.NumberC;
13
+ }>]>;
14
+ customer_details: t.IntersectionC<[t.TypeC<{
15
+ email: t.StringC;
16
+ gender: t.UnionC<[t.LiteralC<"male">, t.LiteralC<"female">]>;
17
+ title: t.UnionC<[t.LiteralC<"mrs">, t.LiteralC<"mr">, t.LiteralC<"miss">, t.LiteralC<"ms">, t.LiteralC<"dr">]>;
18
+ first_name: t.StringC;
19
+ last_name: t.StringC;
20
+ date_of_birth: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
21
+ 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">]>;
22
+ number_of_dependants: t.NumberC;
23
+ 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">]>;
24
+ current_address: t.IntersectionC<[t.TypeC<{
25
+ line_1: t.StringC;
26
+ city: t.StringC;
27
+ country: t.StringC;
28
+ postcode: t.StringC;
29
+ }>, t.PartialC<{
30
+ building_number: t.StringC;
31
+ building_name: t.StringC;
32
+ line_2: t.StringC;
33
+ county: t.StringC;
34
+ months_at_address: t.NumberC;
35
+ }>]>;
36
+ }>, t.PartialC<{
37
+ middle_name: t.StringC;
38
+ maiden_name: t.StringC;
39
+ telephone: t.StringC;
40
+ mobile: t.StringC;
41
+ monthly_rent_amount: t.IntersectionC<[t.TypeC<{
42
+ amount: t.NumberC;
43
+ }>, t.PartialC<{
44
+ currency: t.LiteralC<"GBP">;
45
+ }>]>;
46
+ previous_address_one: t.IntersectionC<[t.TypeC<{
47
+ line_1: t.StringC;
48
+ city: t.StringC;
49
+ country: t.StringC;
50
+ postcode: t.StringC;
51
+ }>, t.PartialC<{
52
+ building_number: t.StringC;
53
+ building_name: t.StringC;
54
+ line_2: t.StringC;
55
+ county: t.StringC;
56
+ months_at_address: t.NumberC;
57
+ }>]>;
58
+ previous_address_two: t.IntersectionC<[t.TypeC<{
59
+ line_1: t.StringC;
60
+ city: t.StringC;
61
+ country: t.StringC;
62
+ postcode: t.StringC;
63
+ }>, t.PartialC<{
64
+ building_number: t.StringC;
65
+ building_name: t.StringC;
66
+ line_2: t.StringC;
67
+ county: t.StringC;
68
+ months_at_address: t.NumberC;
69
+ }>]>;
70
+ goods_delivery_address: t.IntersectionC<[t.TypeC<{
71
+ line_1: t.StringC;
72
+ city: t.StringC;
73
+ country: t.StringC;
74
+ postcode: t.StringC;
75
+ }>, t.PartialC<{
76
+ building_number: t.StringC;
77
+ building_name: t.StringC;
78
+ line_2: t.StringC;
79
+ county: t.StringC;
80
+ months_at_address: t.NumberC;
81
+ }>]>;
82
+ }>]>;
83
+ employment_details: t.IntersectionC<[t.TypeC<{
84
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
85
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
86
+ amount: t.NumberC;
87
+ }>, t.PartialC<{
88
+ currency: t.LiteralC<"GBP">;
89
+ }>]>;
90
+ household_annual_income: t.IntersectionC<[t.TypeC<{
91
+ amount: t.NumberC;
92
+ }>, t.PartialC<{
93
+ currency: t.LiteralC<"GBP">;
94
+ }>]>;
95
+ }>, t.PartialC<{
96
+ employed_details: t.TypeC<{
97
+ employer_name: t.StringC;
98
+ main_occupation: t.StringC;
99
+ months_employed: t.NumberC;
100
+ }>;
101
+ self_employed_details: t.TypeC<{
102
+ business_name: t.StringC;
103
+ type_of_business: t.StringC;
104
+ months_self_employed: t.NumberC;
105
+ }>;
106
+ not_employed_details: t.TypeC<{
107
+ 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">]>;
108
+ }>;
109
+ }>]>;
110
+ finance_details: t.PartialC<{
111
+ bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
112
+ expenditures: t.ArrayC<t.PartialC<{
113
+ 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">]>;
114
+ monthly_amount: t.IntersectionC<[t.TypeC<{
115
+ amount: t.NumberC;
116
+ }>, t.PartialC<{
117
+ currency: t.LiteralC<"GBP">;
118
+ }>]>;
119
+ }>>;
120
+ }>;
121
+ }>;
122
+ export interface ApplicantDetails {
123
+ bank_account: BankAccount;
124
+ customer_details: CustomerDetails;
125
+ employment_details: EmploymentDetails;
126
+ finance_details: FinanceDetails;
127
+ }
128
+ //# sourceMappingURL=ApplicantDetails.d.ts.map
@@ -0,0 +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,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,WAAW,CAAC;IAC1B,gBAAgB,EAAE,eAAe,CAAC;IAClC,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,eAAe,EAAE,cAAc,CAAC;CACjC"}
@@ -0,0 +1,37 @@
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.ApplicantDetails = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const BankAccount_1 = require("./BankAccount");
29
+ const CustomerDetails_1 = require("./CustomerDetails");
30
+ const EmploymentDetails_1 = require("./EmploymentDetails");
31
+ const FinanceDetails_1 = require("./FinanceDetails");
32
+ exports.ApplicantDetails = t.type({
33
+ bank_account: BankAccount_1.BankAccount,
34
+ customer_details: CustomerDetails_1.CustomerDetails,
35
+ employment_details: EmploymentDetails_1.EmploymentDetails,
36
+ finance_details: FinanceDetails_1.FinanceDetails,
37
+ });
@@ -1,12 +1,15 @@
1
1
  import * as t from "io-ts";
2
- export declare const BankAccount: t.TypeC<{
2
+ export declare const BankAccount: t.IntersectionC<[t.TypeC<{
3
3
  account_name: t.StringC;
4
4
  account_number: t.StringC;
5
5
  sort_code: t.StringC;
6
- }>;
6
+ }>, t.PartialC<{
7
+ months_held: t.NumberC;
8
+ }>]>;
7
9
  export interface BankAccount {
8
10
  account_name: string;
9
11
  account_number: string;
10
12
  sort_code: string;
13
+ months_held?: number;
11
14
  }
12
15
  //# sourceMappingURL=BankAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BankAccount.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/BankAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,WAAW;;;;EAItB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"BankAccount.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/BankAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,WAAW;;;;;;IAStB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -25,8 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.BankAccount = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
- exports.BankAccount = t.type({
29
- account_name: t.string,
30
- account_number: t.string,
31
- sort_code: t.string,
32
- });
28
+ exports.BankAccount = t.intersection([
29
+ t.type({
30
+ account_name: t.string,
31
+ account_number: t.string,
32
+ sort_code: t.string,
33
+ }),
34
+ t.partial({
35
+ months_held: t.number,
36
+ }),
37
+ ]);
@@ -92,7 +92,7 @@ export declare const Company: t.IntersectionC<[t.TypeC<{
92
92
  }>]>;
93
93
  solar_company_info: t.IntersectionC<[t.TypeC<{
94
94
  epvs_registration_number: t.StringC;
95
- solar_trade_association: t.UnionC<[t.LiteralC<"msc">, t.LiteralC<"heis">, t.LiteralC<"rec">]>;
95
+ solar_trade_association: t.UnionC<[t.LiteralC<"msc">, t.LiteralC<"heis">, t.LiteralC<"recc">]>;
96
96
  solar_trade_association_number: t.StringC;
97
97
  electrical_trade_association: t.UnionC<[t.LiteralC<"niceic">, t.LiteralC<"napit">, t.LiteralC<"none">]>;
98
98
  }>, t.PartialC<{
@@ -170,11 +170,13 @@ export declare const Company: t.IntersectionC<[t.TypeC<{
170
170
  updated_at: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
171
171
  }>;
172
172
  }>]>;
173
- bank_account: t.TypeC<{
173
+ bank_account: t.IntersectionC<[t.TypeC<{
174
174
  account_name: t.StringC;
175
175
  account_number: t.StringC;
176
176
  sort_code: t.StringC;
177
- }>;
177
+ }>, t.PartialC<{
178
+ months_held: t.NumberC;
179
+ }>]>;
178
180
  contact_info: t.PartialC<{
179
181
  contact_name: t.StringC;
180
182
  contact_email: t.StringC;
@@ -1 +1 @@
1
- {"version":3,"file":"Company.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Company.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqDlB,CAAC;AAEH,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,C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CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,eAAe,GAAG,OAAO,GAAG,QAAQ,CAAC;IACxD,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EACN,YAAY,GACZ,YAAY,GACZ,wBAAwB,GACxB,WAAW,GACX,oBAAoB,GACpB,iBAAiB,GACjB,UAAU,GACV,UAAU,CAAC;IACf,OAAO,CAAC,EACJ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,UAAU,GACV,YAAY,GACZ,4BAA4B,GAC5B,4BAA4B,GAC5B,4BAA4B,GAC5B,WAAW,GACX,WAAW,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
@@ -1,18 +1,22 @@
1
1
  import * as t from "io-ts";
2
+ import { ApplicantDetails } from "./ApplicantDetails";
2
3
  import { BankAccount } from "./BankAccount";
3
4
  import { CustomerDetails } from "./CustomerDetails";
4
5
  import { Document } from "./Document";
5
6
  import { EmploymentDetails } from "./EmploymentDetails";
7
+ import { FinanceDetails } from "./FinanceDetails";
6
8
  import { Metadata } from "./Metadata";
7
9
  import { Money } from "./Money";
8
10
  import { Signature } from "./Signature";
9
11
  export declare const Credit: t.IntersectionC<[t.TypeC<{
10
12
  finance_option: t.StringC;
11
- bank_account: t.TypeC<{
13
+ bank_account: t.IntersectionC<[t.TypeC<{
12
14
  account_name: t.StringC;
13
15
  account_number: t.StringC;
14
16
  sort_code: t.StringC;
15
- }>;
17
+ }>, t.PartialC<{
18
+ months_held: t.NumberC;
19
+ }>]>;
16
20
  customer_details: t.IntersectionC<[t.TypeC<{
17
21
  email: t.StringC;
18
22
  gender: t.UnionC<[t.LiteralC<"male">, t.LiteralC<"female">]>;
@@ -22,7 +26,7 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
22
26
  date_of_birth: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
23
27
  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">]>;
24
28
  number_of_dependants: t.NumberC;
25
- residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">]>;
29
+ 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">]>;
26
30
  current_address: t.IntersectionC<[t.TypeC<{
27
31
  line_1: t.StringC;
28
32
  city: t.StringC;
@@ -106,7 +110,7 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
106
110
  months_self_employed: t.NumberC;
107
111
  }>;
108
112
  not_employed_details: t.TypeC<{
109
- source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"other">]>;
113
+ 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">]>;
110
114
  }>;
111
115
  }>]>;
112
116
  }>, t.PartialC<{
@@ -116,7 +120,7 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
116
120
  aid: t.StringC;
117
121
  kid: t.StringC;
118
122
  kind: t.UnionC<[t.LiteralC<"job">, t.LiteralC<"charge">]>;
119
- provider: t.LiteralC<"omni">;
123
+ provider: t.UnionC<[t.LiteralC<"omni">, t.LiteralC<"propensio">]>;
120
124
  xid: t.StringC;
121
125
  xref: t.StringC;
122
126
  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">]>;
@@ -130,6 +134,133 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
130
134
  }>, t.PartialC<{
131
135
  currency: t.LiteralC<"GBP">;
132
136
  }>]>;
137
+ finance_details: t.PartialC<{
138
+ bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
139
+ expenditures: t.ArrayC<t.PartialC<{
140
+ 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">]>;
141
+ monthly_amount: t.IntersectionC<[t.TypeC<{
142
+ amount: t.NumberC;
143
+ }>, t.PartialC<{
144
+ currency: t.LiteralC<"GBP">;
145
+ }>]>;
146
+ }>>;
147
+ }>;
148
+ extra_applicants: t.ArrayC<t.TypeC<{
149
+ bank_account: t.IntersectionC<[t.TypeC<{
150
+ account_name: t.StringC;
151
+ account_number: t.StringC;
152
+ sort_code: t.StringC;
153
+ }>, t.PartialC<{
154
+ months_held: t.NumberC;
155
+ }>]>;
156
+ customer_details: t.IntersectionC<[t.TypeC<{
157
+ email: t.StringC;
158
+ gender: t.UnionC<[t.LiteralC<"male">, t.LiteralC<"female">]>;
159
+ title: t.UnionC<[t.LiteralC<"mrs">, t.LiteralC<"mr">, t.LiteralC<"miss">, t.LiteralC<"ms">, t.LiteralC<"dr">]>;
160
+ first_name: t.StringC;
161
+ last_name: t.StringC;
162
+ date_of_birth: import("io-ts-types/lib/DateFromISOString").DateFromISOStringC;
163
+ 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">]>;
164
+ number_of_dependants: t.NumberC;
165
+ 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">]>;
166
+ current_address: t.IntersectionC<[t.TypeC<{
167
+ line_1: t.StringC;
168
+ city: t.StringC;
169
+ country: t.StringC;
170
+ postcode: t.StringC;
171
+ }>, t.PartialC<{
172
+ building_number: t.StringC;
173
+ building_name: t.StringC;
174
+ line_2: t.StringC;
175
+ county: t.StringC;
176
+ months_at_address: t.NumberC;
177
+ }>]>;
178
+ }>, t.PartialC<{
179
+ middle_name: t.StringC;
180
+ maiden_name: t.StringC;
181
+ telephone: t.StringC;
182
+ mobile: t.StringC;
183
+ monthly_rent_amount: t.IntersectionC<[t.TypeC<{
184
+ amount: t.NumberC;
185
+ }>, t.PartialC<{
186
+ currency: t.LiteralC<"GBP">;
187
+ }>]>;
188
+ previous_address_one: t.IntersectionC<[t.TypeC<{
189
+ line_1: t.StringC;
190
+ city: t.StringC;
191
+ country: t.StringC;
192
+ postcode: t.StringC;
193
+ }>, t.PartialC<{
194
+ building_number: t.StringC;
195
+ building_name: t.StringC;
196
+ line_2: t.StringC;
197
+ county: t.StringC;
198
+ months_at_address: t.NumberC;
199
+ }>]>;
200
+ previous_address_two: t.IntersectionC<[t.TypeC<{
201
+ line_1: t.StringC;
202
+ city: t.StringC;
203
+ country: t.StringC;
204
+ postcode: t.StringC;
205
+ }>, t.PartialC<{
206
+ building_number: t.StringC;
207
+ building_name: t.StringC;
208
+ line_2: t.StringC;
209
+ county: t.StringC;
210
+ months_at_address: t.NumberC;
211
+ }>]>;
212
+ goods_delivery_address: t.IntersectionC<[t.TypeC<{
213
+ line_1: t.StringC;
214
+ city: t.StringC;
215
+ country: t.StringC;
216
+ postcode: t.StringC;
217
+ }>, t.PartialC<{
218
+ building_number: t.StringC;
219
+ building_name: t.StringC;
220
+ line_2: t.StringC;
221
+ county: t.StringC;
222
+ months_at_address: t.NumberC;
223
+ }>]>;
224
+ }>]>;
225
+ employment_details: t.IntersectionC<[t.TypeC<{
226
+ employment_status: t.UnionC<[t.LiteralC<"employed">, t.LiteralC<"self_employed">, t.LiteralC<"not_employed">, t.LiteralC<"retired">]>;
227
+ gross_annual_income: t.IntersectionC<[t.TypeC<{
228
+ amount: t.NumberC;
229
+ }>, t.PartialC<{
230
+ currency: t.LiteralC<"GBP">;
231
+ }>]>;
232
+ household_annual_income: t.IntersectionC<[t.TypeC<{
233
+ amount: t.NumberC;
234
+ }>, t.PartialC<{
235
+ currency: t.LiteralC<"GBP">;
236
+ }>]>;
237
+ }>, t.PartialC<{
238
+ employed_details: t.TypeC<{
239
+ employer_name: t.StringC;
240
+ main_occupation: t.StringC;
241
+ months_employed: t.NumberC;
242
+ }>;
243
+ self_employed_details: t.TypeC<{
244
+ business_name: t.StringC;
245
+ type_of_business: t.StringC;
246
+ months_self_employed: t.NumberC;
247
+ }>;
248
+ not_employed_details: t.TypeC<{
249
+ 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">]>;
250
+ }>;
251
+ }>]>;
252
+ finance_details: t.PartialC<{
253
+ bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
254
+ expenditures: t.ArrayC<t.PartialC<{
255
+ 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">]>;
256
+ monthly_amount: t.IntersectionC<[t.TypeC<{
257
+ amount: t.NumberC;
258
+ }>, t.PartialC<{
259
+ currency: t.LiteralC<"GBP">;
260
+ }>]>;
261
+ }>>;
262
+ }>;
263
+ }>>;
133
264
  credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
134
265
  name: t.StringC;
135
266
  }>, t.PartialC<{
@@ -162,7 +293,7 @@ export interface Credit {
162
293
  aid?: string;
163
294
  kid?: string;
164
295
  kind?: "job" | "charge";
165
- provider?: "omni";
296
+ provider?: "omni" | "propensio";
166
297
  xid?: string;
167
298
  xref?: string;
168
299
  state?: "accepted" | "declined" | "referred" | "action_lender" | "action_customer" | "pending" | "finished" | "paid_out" | "cancelled";
@@ -172,6 +303,8 @@ export interface Credit {
172
303
  bank_account: BankAccount;
173
304
  customer_details: CustomerDetails;
174
305
  employment_details: EmploymentDetails;
306
+ finance_details?: FinanceDetails;
307
+ extra_applicants?: Array<ApplicantDetails>;
175
308
  credit_documents?: Array<Document>;
176
309
  signature?: Signature;
177
310
  metadata?: Metadata;
@@ -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,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC;IAC1B,gBAAgB,EAAE,eAAe,CAAC;IAClC,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,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"}
@@ -25,10 +25,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Credit = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
+ const ApplicantDetails_1 = require("./ApplicantDetails");
28
29
  const BankAccount_1 = require("./BankAccount");
29
30
  const CustomerDetails_1 = require("./CustomerDetails");
30
31
  const Document_1 = require("./Document");
31
32
  const EmploymentDetails_1 = require("./EmploymentDetails");
33
+ const FinanceDetails_1 = require("./FinanceDetails");
32
34
  const Metadata_1 = require("./Metadata");
33
35
  const Money_1 = require("./Money");
34
36
  const Signature_1 = require("./Signature");
@@ -46,7 +48,7 @@ exports.Credit = t.intersection([
46
48
  aid: t.string,
47
49
  kid: t.string,
48
50
  kind: t.union([t.literal("job"), t.literal("charge")]),
49
- provider: t.literal("omni"),
51
+ provider: t.union([t.literal("omni"), t.literal("propensio")]),
50
52
  xid: t.string,
51
53
  xref: t.string,
52
54
  state: t.union([
@@ -62,6 +64,8 @@ exports.Credit = t.intersection([
62
64
  ]),
63
65
  amount: Money_1.Money,
64
66
  deposit_value: Money_1.Money,
67
+ finance_details: FinanceDetails_1.FinanceDetails,
68
+ extra_applicants: t.array(ApplicantDetails_1.ApplicantDetails),
65
69
  credit_documents: t.array(Document_1.Document),
66
70
  signature: Signature_1.Signature,
67
71
  metadata: Metadata_1.Metadata,
@@ -10,7 +10,7 @@ export declare const CustomerDetails: t.IntersectionC<[t.TypeC<{
10
10
  date_of_birth: import("io-ts-types/DateFromISOString").DateFromISOStringC;
11
11
  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">]>;
12
12
  number_of_dependants: t.NumberC;
13
- residential_status: t.UnionC<[t.LiteralC<"tenant">, t.LiteralC<"council tenant">, t.LiteralC<"living with parents">, t.LiteralC<"owner">]>;
13
+ 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">]>;
14
14
  current_address: t.IntersectionC<[t.TypeC<{
15
15
  line_1: t.StringC;
16
16
  city: t.StringC;
@@ -83,7 +83,7 @@ export interface CustomerDetails {
83
83
  date_of_birth: Date;
84
84
  marital_status: "widowed" | "other" | "married" | "divorced" | "cohabiting" | "to_be_married" | "separated" | "single";
85
85
  number_of_dependants: number;
86
- residential_status: "tenant" | "council tenant" | "living with parents" | "owner";
86
+ residential_status: "tenant" | "council tenant" | "living with parents" | "owner" | "owner without mortgage" | "lodger" | "armed forces";
87
87
  monthly_rent_amount?: Money;
88
88
  current_address: Address;
89
89
  previous_address_one?: Address;
@@ -1 +1 @@
1
- {"version":3,"file":"CustomerDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/CustomerDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2C1B,CAAC;AAEH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,IAAI,CAAC;IACpB,cAAc,EACV,SAAS,GACT,OAAO,GACP,SAAS,GACT,UAAU,GACV,YAAY,GACZ,eAAe,GACf,WAAW,GACX,QAAQ,CAAC;IACb,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EACd,QAAQ,GACR,gBAAgB,GAChB,qBAAqB,GACrB,OAAO,CAAC;IACZ,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC"}
1
+ {"version":3,"file":"CustomerDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/CustomerDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8C1B,CAAC;AAEH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,IAAI,CAAC;IACpB,cAAc,EACV,SAAS,GACT,OAAO,GACP,SAAS,GACT,UAAU,GACV,YAAY,GACZ,eAAe,GACf,WAAW,GACX,QAAQ,CAAC;IACb,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EACd,QAAQ,GACR,gBAAgB,GAChB,qBAAqB,GACrB,OAAO,GACP,wBAAwB,GACxB,QAAQ,GACR,cAAc,CAAC;IACnB,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC"}
@@ -58,6 +58,9 @@ exports.CustomerDetails = t.intersection([
58
58
  t.literal("council tenant"),
59
59
  t.literal("living with parents"),
60
60
  t.literal("owner"),
61
+ t.literal("owner without mortgage"),
62
+ t.literal("lodger"),
63
+ t.literal("armed forces"),
61
64
  ]),
62
65
  current_address: Address_1.Address,
63
66
  }),
@@ -27,7 +27,7 @@ export declare const EmploymentDetails: t.IntersectionC<[t.TypeC<{
27
27
  months_self_employed: t.NumberC;
28
28
  }>;
29
29
  not_employed_details: t.TypeC<{
30
- source_of_income: t.UnionC<[t.LiteralC<"partner">, t.LiteralC<"benefits">, t.LiteralC<"maintenance">, t.LiteralC<"other">]>;
30
+ 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">]>;
31
31
  }>;
32
32
  }>]>;
33
33
  export interface EmploymentDetails {