@kanda-libs/ks-schema 1.0.144 → 1.0.146
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.
- package/dist/components/schemas/ApplicantDetails.d.ts +17 -11
- package/dist/components/schemas/ApplicantDetails.d.ts.map +1 -1
- package/dist/components/schemas/Credit.d.ts +34 -22
- package/dist/components/schemas/Credit.d.ts.map +1 -1
- package/dist/components/schemas/EmployedDetails.d.ts +5 -2
- package/dist/components/schemas/EmployedDetails.d.ts.map +1 -1
- package/dist/components/schemas/EmployedDetails.js +10 -5
- package/dist/components/schemas/EmploymentDetails.d.ts +14 -10
- package/dist/components/schemas/EmploymentDetails.d.ts.map +1 -1
- package/dist/components/schemas/EmploymentDetails.js +1 -1
- package/dist/components/schemas/Entity.d.ts +34 -22
- package/dist/components/schemas/Entity.d.ts.map +1 -1
- package/dist/components/schemas/Event.d.ts +34 -22
- package/dist/components/schemas/Event.d.ts.map +1 -1
- package/dist/components/schemas/SelfEmployedDetails.d.ts +5 -2
- package/dist/components/schemas/SelfEmployedDetails.d.ts.map +1 -1
- package/dist/components/schemas/SelfEmployedDetails.js +13 -5
- package/dist/operations/applyCredit.d.ts +34 -22
- package/dist/operations/applyCredit.d.ts.map +1 -1
- package/dist/operations/checkCredit.d.ts +34 -22
- package/dist/operations/checkCredit.d.ts.map +1 -1
- package/dist/operations/deleteCredit.d.ts +34 -22
- package/dist/operations/deleteCredit.d.ts.map +1 -1
- package/dist/operations/getCredit.d.ts +34 -22
- package/dist/operations/getCredit.d.ts.map +1 -1
- package/dist/operations/getCredits.d.ts +34 -22
- package/dist/operations/getCredits.d.ts.map +1 -1
- package/dist/operations/index.d.ts +306 -198
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/postCredit.d.ts +34 -22
- package/dist/operations/postCredit.d.ts.map +1 -1
- package/dist/operations/putCredit.d.ts +34 -22
- package/dist/operations/putCredit.d.ts.map +1 -1
- package/dist/operations/quoteCredit.d.ts +34 -22
- package/dist/operations/quoteCredit.d.ts.map +1 -1
- package/dist/operations/signCredit.d.ts +34 -22
- package/dist/operations/signCredit.d.ts.map +1 -1
- package/dist/schema.json +1 -1
- package/dist/widget/index.d.ts +6809 -6759
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +11136 -10923
- package/package.json +1 -1
- package/schema.yaml +12 -1
|
@@ -88,25 +88,29 @@ export declare const ApplicantDetails: t.IntersectionC<[t.TypeC<{
|
|
|
88
88
|
}>, t.PartialC<{
|
|
89
89
|
currency: t.LiteralC<"GBP">;
|
|
90
90
|
}>]>;
|
|
91
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
92
|
-
amount: t.NumberC;
|
|
93
|
-
}>, t.PartialC<{
|
|
94
|
-
currency: t.LiteralC<"GBP">;
|
|
95
|
-
}>]>;
|
|
96
91
|
}>, t.PartialC<{
|
|
97
|
-
employed_details: t.TypeC<{
|
|
92
|
+
employed_details: t.IntersectionC<[t.TypeC<{
|
|
98
93
|
employer_name: t.StringC;
|
|
99
94
|
main_occupation: t.StringC;
|
|
100
95
|
months_employed: t.NumberC;
|
|
101
|
-
}
|
|
102
|
-
|
|
96
|
+
}>, t.PartialC<{
|
|
97
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
98
|
+
}>]>;
|
|
99
|
+
self_employed_details: t.IntersectionC<[t.TypeC<{
|
|
103
100
|
business_name: t.StringC;
|
|
104
101
|
type_of_business: t.StringC;
|
|
105
102
|
months_self_employed: t.NumberC;
|
|
106
|
-
}
|
|
103
|
+
}>, t.PartialC<{
|
|
104
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
105
|
+
}>]>;
|
|
107
106
|
not_employed_details: t.TypeC<{
|
|
108
107
|
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">]>;
|
|
109
108
|
}>;
|
|
109
|
+
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
110
|
+
amount: t.NumberC;
|
|
111
|
+
}>, t.PartialC<{
|
|
112
|
+
currency: t.LiteralC<"GBP">;
|
|
113
|
+
}>]>;
|
|
110
114
|
}>]>;
|
|
111
115
|
finance_details: t.PartialC<{
|
|
112
116
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
@@ -128,11 +132,13 @@ export declare const ApplicantDetails: t.IntersectionC<[t.TypeC<{
|
|
|
128
132
|
}>>;
|
|
129
133
|
}>;
|
|
130
134
|
}>, t.PartialC<{
|
|
131
|
-
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
135
|
+
additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
132
136
|
employer_name: t.StringC;
|
|
133
137
|
main_occupation: t.StringC;
|
|
134
138
|
months_employed: t.NumberC;
|
|
135
|
-
}
|
|
139
|
+
}>, t.PartialC<{
|
|
140
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
141
|
+
}>]>>;
|
|
136
142
|
}>]>;
|
|
137
143
|
export interface ApplicantDetails {
|
|
138
144
|
bank_account: BankAccount;
|
|
@@ -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
|
|
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"}
|
|
@@ -94,25 +94,29 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
|
|
|
94
94
|
}>, t.PartialC<{
|
|
95
95
|
currency: t.LiteralC<"GBP">;
|
|
96
96
|
}>]>;
|
|
97
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
98
|
-
amount: t.NumberC;
|
|
99
|
-
}>, t.PartialC<{
|
|
100
|
-
currency: t.LiteralC<"GBP">;
|
|
101
|
-
}>]>;
|
|
102
97
|
}>, t.PartialC<{
|
|
103
|
-
employed_details: t.TypeC<{
|
|
98
|
+
employed_details: t.IntersectionC<[t.TypeC<{
|
|
104
99
|
employer_name: t.StringC;
|
|
105
100
|
main_occupation: t.StringC;
|
|
106
101
|
months_employed: t.NumberC;
|
|
107
|
-
}
|
|
108
|
-
|
|
102
|
+
}>, t.PartialC<{
|
|
103
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
104
|
+
}>]>;
|
|
105
|
+
self_employed_details: t.IntersectionC<[t.TypeC<{
|
|
109
106
|
business_name: t.StringC;
|
|
110
107
|
type_of_business: t.StringC;
|
|
111
108
|
months_self_employed: t.NumberC;
|
|
112
|
-
}
|
|
109
|
+
}>, t.PartialC<{
|
|
110
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
111
|
+
}>]>;
|
|
113
112
|
not_employed_details: t.TypeC<{
|
|
114
113
|
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">]>;
|
|
115
114
|
}>;
|
|
115
|
+
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
116
|
+
amount: t.NumberC;
|
|
117
|
+
}>, t.PartialC<{
|
|
118
|
+
currency: t.LiteralC<"GBP">;
|
|
119
|
+
}>]>;
|
|
116
120
|
}>]>;
|
|
117
121
|
}>, t.PartialC<{
|
|
118
122
|
id: t.StringC;
|
|
@@ -135,11 +139,13 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
|
|
|
135
139
|
}>, t.PartialC<{
|
|
136
140
|
currency: t.LiteralC<"GBP">;
|
|
137
141
|
}>]>;
|
|
138
|
-
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
142
|
+
additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
139
143
|
employer_name: t.StringC;
|
|
140
144
|
main_occupation: t.StringC;
|
|
141
145
|
months_employed: t.NumberC;
|
|
142
|
-
}
|
|
146
|
+
}>, t.PartialC<{
|
|
147
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
148
|
+
}>]>>;
|
|
143
149
|
finance_details: t.PartialC<{
|
|
144
150
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
145
151
|
incomes: t.ArrayC<t.PartialC<{
|
|
@@ -243,25 +249,29 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
|
|
|
243
249
|
}>, t.PartialC<{
|
|
244
250
|
currency: t.LiteralC<"GBP">;
|
|
245
251
|
}>]>;
|
|
246
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
247
|
-
amount: t.NumberC;
|
|
248
|
-
}>, t.PartialC<{
|
|
249
|
-
currency: t.LiteralC<"GBP">;
|
|
250
|
-
}>]>;
|
|
251
252
|
}>, t.PartialC<{
|
|
252
|
-
employed_details: t.TypeC<{
|
|
253
|
+
employed_details: t.IntersectionC<[t.TypeC<{
|
|
253
254
|
employer_name: t.StringC;
|
|
254
255
|
main_occupation: t.StringC;
|
|
255
256
|
months_employed: t.NumberC;
|
|
256
|
-
}
|
|
257
|
-
|
|
257
|
+
}>, t.PartialC<{
|
|
258
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
259
|
+
}>]>;
|
|
260
|
+
self_employed_details: t.IntersectionC<[t.TypeC<{
|
|
258
261
|
business_name: t.StringC;
|
|
259
262
|
type_of_business: t.StringC;
|
|
260
263
|
months_self_employed: t.NumberC;
|
|
261
|
-
}
|
|
264
|
+
}>, t.PartialC<{
|
|
265
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
266
|
+
}>]>;
|
|
262
267
|
not_employed_details: t.TypeC<{
|
|
263
268
|
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">]>;
|
|
264
269
|
}>;
|
|
270
|
+
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
271
|
+
amount: t.NumberC;
|
|
272
|
+
}>, t.PartialC<{
|
|
273
|
+
currency: t.LiteralC<"GBP">;
|
|
274
|
+
}>]>;
|
|
265
275
|
}>]>;
|
|
266
276
|
finance_details: t.PartialC<{
|
|
267
277
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
@@ -283,11 +293,13 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
|
|
|
283
293
|
}>>;
|
|
284
294
|
}>;
|
|
285
295
|
}>, t.PartialC<{
|
|
286
|
-
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
296
|
+
additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
287
297
|
employer_name: t.StringC;
|
|
288
298
|
main_occupation: t.StringC;
|
|
289
299
|
months_employed: t.NumberC;
|
|
290
|
-
}
|
|
300
|
+
}>, t.PartialC<{
|
|
301
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
302
|
+
}>]>>;
|
|
291
303
|
}>]>>;
|
|
292
304
|
credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
293
305
|
name: t.StringC;
|
|
@@ -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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1,10 +1,13 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
-
export declare const EmployedDetails: t.TypeC<{
|
|
2
|
+
export declare const EmployedDetails: t.IntersectionC<[t.TypeC<{
|
|
3
3
|
employer_name: t.StringC;
|
|
4
4
|
main_occupation: t.StringC;
|
|
5
5
|
months_employed: t.NumberC;
|
|
6
|
-
}
|
|
6
|
+
}>, t.PartialC<{
|
|
7
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
8
|
+
}>]>;
|
|
7
9
|
export interface EmployedDetails {
|
|
10
|
+
employed_type?: "full_time" | "part_time";
|
|
8
11
|
employer_name: string;
|
|
9
12
|
main_occupation: string;
|
|
10
13
|
months_employed: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmployedDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/EmployedDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"EmployedDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/EmployedDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,eAAe;;;;;;IAS1B,CAAC;AAEH,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -25,8 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.EmployedDetails = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
exports.EmployedDetails = t.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
exports.EmployedDetails = t.intersection([
|
|
29
|
+
t.type({
|
|
30
|
+
employer_name: t.string,
|
|
31
|
+
main_occupation: t.string,
|
|
32
|
+
months_employed: t.number,
|
|
33
|
+
}),
|
|
34
|
+
t.partial({
|
|
35
|
+
employed_type: t.union([t.literal("full_time"), t.literal("part_time")]),
|
|
36
|
+
}),
|
|
37
|
+
]);
|
|
@@ -10,25 +10,29 @@ export declare const EmploymentDetails: t.IntersectionC<[t.TypeC<{
|
|
|
10
10
|
}>, t.PartialC<{
|
|
11
11
|
currency: t.LiteralC<"GBP">;
|
|
12
12
|
}>]>;
|
|
13
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
14
|
-
amount: t.NumberC;
|
|
15
|
-
}>, t.PartialC<{
|
|
16
|
-
currency: t.LiteralC<"GBP">;
|
|
17
|
-
}>]>;
|
|
18
13
|
}>, t.PartialC<{
|
|
19
|
-
employed_details: t.TypeC<{
|
|
14
|
+
employed_details: t.IntersectionC<[t.TypeC<{
|
|
20
15
|
employer_name: t.StringC;
|
|
21
16
|
main_occupation: t.StringC;
|
|
22
17
|
months_employed: t.NumberC;
|
|
23
|
-
}
|
|
24
|
-
|
|
18
|
+
}>, t.PartialC<{
|
|
19
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
20
|
+
}>]>;
|
|
21
|
+
self_employed_details: t.IntersectionC<[t.TypeC<{
|
|
25
22
|
business_name: t.StringC;
|
|
26
23
|
type_of_business: t.StringC;
|
|
27
24
|
months_self_employed: t.NumberC;
|
|
28
|
-
}
|
|
25
|
+
}>, t.PartialC<{
|
|
26
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
27
|
+
}>]>;
|
|
29
28
|
not_employed_details: t.TypeC<{
|
|
30
29
|
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">]>;
|
|
31
30
|
}>;
|
|
31
|
+
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
32
|
+
amount: t.NumberC;
|
|
33
|
+
}>, t.PartialC<{
|
|
34
|
+
currency: t.LiteralC<"GBP">;
|
|
35
|
+
}>]>;
|
|
32
36
|
}>]>;
|
|
33
37
|
export interface EmploymentDetails {
|
|
34
38
|
employment_status: "employed" | "self_employed" | "not_employed" | "retired";
|
|
@@ -36,6 +40,6 @@ export interface EmploymentDetails {
|
|
|
36
40
|
self_employed_details?: SelfEmployedDetails;
|
|
37
41
|
not_employed_details?: NotEmployedDetails;
|
|
38
42
|
gross_annual_income: Money;
|
|
39
|
-
household_annual_income
|
|
43
|
+
household_annual_income?: Money;
|
|
40
44
|
}
|
|
41
45
|
//# sourceMappingURL=EmploymentDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmploymentDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/EmploymentDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"EmploymentDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/EmploymentDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgB5B,CAAC;AAEH,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,UAAU,GAAG,eAAe,GAAG,cAAc,GAAG,SAAS,CAAC;IAC7E,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;IAC5C,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C,mBAAmB,EAAE,KAAK,CAAC;IAC3B,uBAAuB,CAAC,EAAE,KAAK,CAAC;CACjC"}
|
|
@@ -38,11 +38,11 @@ exports.EmploymentDetails = t.intersection([
|
|
|
38
38
|
t.literal("retired"),
|
|
39
39
|
]),
|
|
40
40
|
gross_annual_income: Money_1.Money,
|
|
41
|
-
household_annual_income: Money_1.Money,
|
|
42
41
|
}),
|
|
43
42
|
t.partial({
|
|
44
43
|
employed_details: EmployedDetails_1.EmployedDetails,
|
|
45
44
|
self_employed_details: SelfEmployedDetails_1.SelfEmployedDetails,
|
|
46
45
|
not_employed_details: NotEmployedDetails_1.NotEmployedDetails,
|
|
46
|
+
household_annual_income: Money_1.Money,
|
|
47
47
|
}),
|
|
48
48
|
]);
|
|
@@ -283,25 +283,29 @@ export declare const Entity: t.PartialC<{
|
|
|
283
283
|
}>, t.PartialC<{
|
|
284
284
|
currency: t.LiteralC<"GBP">;
|
|
285
285
|
}>]>;
|
|
286
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
287
|
-
amount: t.NumberC;
|
|
288
|
-
}>, t.PartialC<{
|
|
289
|
-
currency: t.LiteralC<"GBP">;
|
|
290
|
-
}>]>;
|
|
291
286
|
}>, t.PartialC<{
|
|
292
|
-
employed_details: t.TypeC<{
|
|
287
|
+
employed_details: t.IntersectionC<[t.TypeC<{
|
|
293
288
|
employer_name: t.StringC;
|
|
294
289
|
main_occupation: t.StringC;
|
|
295
290
|
months_employed: t.NumberC;
|
|
296
|
-
}
|
|
297
|
-
|
|
291
|
+
}>, t.PartialC<{
|
|
292
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
293
|
+
}>]>;
|
|
294
|
+
self_employed_details: t.IntersectionC<[t.TypeC<{
|
|
298
295
|
business_name: t.StringC;
|
|
299
296
|
type_of_business: t.StringC;
|
|
300
297
|
months_self_employed: t.NumberC;
|
|
301
|
-
}
|
|
298
|
+
}>, t.PartialC<{
|
|
299
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
300
|
+
}>]>;
|
|
302
301
|
not_employed_details: t.TypeC<{
|
|
303
302
|
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">]>;
|
|
304
303
|
}>;
|
|
304
|
+
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
305
|
+
amount: t.NumberC;
|
|
306
|
+
}>, t.PartialC<{
|
|
307
|
+
currency: t.LiteralC<"GBP">;
|
|
308
|
+
}>]>;
|
|
305
309
|
}>]>;
|
|
306
310
|
}>, t.PartialC<{
|
|
307
311
|
id: t.StringC;
|
|
@@ -324,11 +328,13 @@ export declare const Entity: t.PartialC<{
|
|
|
324
328
|
}>, t.PartialC<{
|
|
325
329
|
currency: t.LiteralC<"GBP">;
|
|
326
330
|
}>]>;
|
|
327
|
-
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
331
|
+
additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
328
332
|
employer_name: t.StringC;
|
|
329
333
|
main_occupation: t.StringC;
|
|
330
334
|
months_employed: t.NumberC;
|
|
331
|
-
}
|
|
335
|
+
}>, t.PartialC<{
|
|
336
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
337
|
+
}>]>>;
|
|
332
338
|
finance_details: t.PartialC<{
|
|
333
339
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
334
340
|
incomes: t.ArrayC<t.PartialC<{
|
|
@@ -432,25 +438,29 @@ export declare const Entity: t.PartialC<{
|
|
|
432
438
|
}>, t.PartialC<{
|
|
433
439
|
currency: t.LiteralC<"GBP">;
|
|
434
440
|
}>]>;
|
|
435
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
436
|
-
amount: t.NumberC;
|
|
437
|
-
}>, t.PartialC<{
|
|
438
|
-
currency: t.LiteralC<"GBP">;
|
|
439
|
-
}>]>;
|
|
440
441
|
}>, t.PartialC<{
|
|
441
|
-
employed_details: t.TypeC<{
|
|
442
|
+
employed_details: t.IntersectionC<[t.TypeC<{
|
|
442
443
|
employer_name: t.StringC;
|
|
443
444
|
main_occupation: t.StringC;
|
|
444
445
|
months_employed: t.NumberC;
|
|
445
|
-
}
|
|
446
|
-
|
|
446
|
+
}>, t.PartialC<{
|
|
447
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
448
|
+
}>]>;
|
|
449
|
+
self_employed_details: t.IntersectionC<[t.TypeC<{
|
|
447
450
|
business_name: t.StringC;
|
|
448
451
|
type_of_business: t.StringC;
|
|
449
452
|
months_self_employed: t.NumberC;
|
|
450
|
-
}
|
|
453
|
+
}>, t.PartialC<{
|
|
454
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
455
|
+
}>]>;
|
|
451
456
|
not_employed_details: t.TypeC<{
|
|
452
457
|
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">]>;
|
|
453
458
|
}>;
|
|
459
|
+
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
460
|
+
amount: t.NumberC;
|
|
461
|
+
}>, t.PartialC<{
|
|
462
|
+
currency: t.LiteralC<"GBP">;
|
|
463
|
+
}>]>;
|
|
454
464
|
}>]>;
|
|
455
465
|
finance_details: t.PartialC<{
|
|
456
466
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
@@ -472,11 +482,13 @@ export declare const Entity: t.PartialC<{
|
|
|
472
482
|
}>>;
|
|
473
483
|
}>;
|
|
474
484
|
}>, t.PartialC<{
|
|
475
|
-
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
485
|
+
additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
476
486
|
employer_name: t.StringC;
|
|
477
487
|
main_occupation: t.StringC;
|
|
478
488
|
months_employed: t.NumberC;
|
|
479
|
-
}
|
|
489
|
+
}>, t.PartialC<{
|
|
490
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
491
|
+
}>]>>;
|
|
480
492
|
}>]>>;
|
|
481
493
|
credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
482
494
|
name: t.StringC;
|
|
@@ -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,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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"}
|
|
@@ -290,25 +290,29 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
|
290
290
|
}>, t.PartialC<{
|
|
291
291
|
currency: t.LiteralC<"GBP">;
|
|
292
292
|
}>]>;
|
|
293
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
294
|
-
amount: t.NumberC;
|
|
295
|
-
}>, t.PartialC<{
|
|
296
|
-
currency: t.LiteralC<"GBP">;
|
|
297
|
-
}>]>;
|
|
298
293
|
}>, t.PartialC<{
|
|
299
|
-
employed_details: t.TypeC<{
|
|
294
|
+
employed_details: t.IntersectionC<[t.TypeC<{
|
|
300
295
|
employer_name: t.StringC;
|
|
301
296
|
main_occupation: t.StringC;
|
|
302
297
|
months_employed: t.NumberC;
|
|
303
|
-
}
|
|
304
|
-
|
|
298
|
+
}>, t.PartialC<{
|
|
299
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
300
|
+
}>]>;
|
|
301
|
+
self_employed_details: t.IntersectionC<[t.TypeC<{
|
|
305
302
|
business_name: t.StringC;
|
|
306
303
|
type_of_business: t.StringC;
|
|
307
304
|
months_self_employed: t.NumberC;
|
|
308
|
-
}
|
|
305
|
+
}>, t.PartialC<{
|
|
306
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
307
|
+
}>]>;
|
|
309
308
|
not_employed_details: t.TypeC<{
|
|
310
309
|
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">]>;
|
|
311
310
|
}>;
|
|
311
|
+
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
312
|
+
amount: t.NumberC;
|
|
313
|
+
}>, t.PartialC<{
|
|
314
|
+
currency: t.LiteralC<"GBP">;
|
|
315
|
+
}>]>;
|
|
312
316
|
}>]>;
|
|
313
317
|
}>, t.PartialC<{
|
|
314
318
|
id: t.StringC;
|
|
@@ -331,11 +335,13 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
|
331
335
|
}>, t.PartialC<{
|
|
332
336
|
currency: t.LiteralC<"GBP">;
|
|
333
337
|
}>]>;
|
|
334
|
-
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
338
|
+
additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
335
339
|
employer_name: t.StringC;
|
|
336
340
|
main_occupation: t.StringC;
|
|
337
341
|
months_employed: t.NumberC;
|
|
338
|
-
}
|
|
342
|
+
}>, t.PartialC<{
|
|
343
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
344
|
+
}>]>>;
|
|
339
345
|
finance_details: t.PartialC<{
|
|
340
346
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
341
347
|
incomes: t.ArrayC<t.PartialC<{
|
|
@@ -439,25 +445,29 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
|
439
445
|
}>, t.PartialC<{
|
|
440
446
|
currency: t.LiteralC<"GBP">;
|
|
441
447
|
}>]>;
|
|
442
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
443
|
-
amount: t.NumberC;
|
|
444
|
-
}>, t.PartialC<{
|
|
445
|
-
currency: t.LiteralC<"GBP">;
|
|
446
|
-
}>]>;
|
|
447
448
|
}>, t.PartialC<{
|
|
448
|
-
employed_details: t.TypeC<{
|
|
449
|
+
employed_details: t.IntersectionC<[t.TypeC<{
|
|
449
450
|
employer_name: t.StringC;
|
|
450
451
|
main_occupation: t.StringC;
|
|
451
452
|
months_employed: t.NumberC;
|
|
452
|
-
}
|
|
453
|
-
|
|
453
|
+
}>, t.PartialC<{
|
|
454
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
455
|
+
}>]>;
|
|
456
|
+
self_employed_details: t.IntersectionC<[t.TypeC<{
|
|
454
457
|
business_name: t.StringC;
|
|
455
458
|
type_of_business: t.StringC;
|
|
456
459
|
months_self_employed: t.NumberC;
|
|
457
|
-
}
|
|
460
|
+
}>, t.PartialC<{
|
|
461
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
462
|
+
}>]>;
|
|
458
463
|
not_employed_details: t.TypeC<{
|
|
459
464
|
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">]>;
|
|
460
465
|
}>;
|
|
466
|
+
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
467
|
+
amount: t.NumberC;
|
|
468
|
+
}>, t.PartialC<{
|
|
469
|
+
currency: t.LiteralC<"GBP">;
|
|
470
|
+
}>]>;
|
|
461
471
|
}>]>;
|
|
462
472
|
finance_details: t.PartialC<{
|
|
463
473
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
@@ -479,11 +489,13 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
|
479
489
|
}>>;
|
|
480
490
|
}>;
|
|
481
491
|
}>, t.PartialC<{
|
|
482
|
-
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
492
|
+
additional_employment_details: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
483
493
|
employer_name: t.StringC;
|
|
484
494
|
main_occupation: t.StringC;
|
|
485
495
|
months_employed: t.NumberC;
|
|
486
|
-
}
|
|
496
|
+
}>, t.PartialC<{
|
|
497
|
+
employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
498
|
+
}>]>>;
|
|
487
499
|
}>]>>;
|
|
488
500
|
credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
489
501
|
name: t.StringC;
|
|
@@ -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,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,KAAK
|
|
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,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,KAAK;;;;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,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
-
export declare const SelfEmployedDetails: t.TypeC<{
|
|
2
|
+
export declare const SelfEmployedDetails: t.IntersectionC<[t.TypeC<{
|
|
3
3
|
business_name: t.StringC;
|
|
4
4
|
type_of_business: t.StringC;
|
|
5
5
|
months_self_employed: t.NumberC;
|
|
6
|
-
}
|
|
6
|
+
}>, t.PartialC<{
|
|
7
|
+
self_employed_type: t.UnionC<[t.LiteralC<"full_time">, t.LiteralC<"part_time">]>;
|
|
8
|
+
}>]>;
|
|
7
9
|
export interface SelfEmployedDetails {
|
|
10
|
+
self_employed_type?: "full_time" | "part_time";
|
|
8
11
|
business_name: string;
|
|
9
12
|
type_of_business: string;
|
|
10
13
|
months_self_employed: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelfEmployedDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/SelfEmployedDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"SelfEmployedDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/SelfEmployedDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAE3B,eAAO,MAAM,mBAAmB;;;;;;IAY9B,CAAC;AAEH,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -25,8 +25,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.SelfEmployedDetails = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
exports.SelfEmployedDetails = t.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
exports.SelfEmployedDetails = t.intersection([
|
|
29
|
+
t.type({
|
|
30
|
+
business_name: t.string,
|
|
31
|
+
type_of_business: t.string,
|
|
32
|
+
months_self_employed: t.number,
|
|
33
|
+
}),
|
|
34
|
+
t.partial({
|
|
35
|
+
self_employed_type: t.union([
|
|
36
|
+
t.literal("full_time"),
|
|
37
|
+
t.literal("part_time"),
|
|
38
|
+
]),
|
|
39
|
+
}),
|
|
40
|
+
]);
|