@kanda-libs/ks-schema 1.0.143 → 1.0.145
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 +14 -25
- package/dist/components/schemas/ApplicantDetails.d.ts.map +1 -1
- package/dist/components/schemas/ApplicantDetails.js +12 -6
- package/dist/components/schemas/Credit.d.ts +23 -48
- package/dist/components/schemas/Credit.d.ts.map +1 -1
- package/dist/components/schemas/Credit.js +2 -0
- package/dist/components/schemas/Entity.d.ts +21 -48
- package/dist/components/schemas/Entity.d.ts.map +1 -1
- package/dist/components/schemas/Event.d.ts +21 -48
- package/dist/components/schemas/Event.d.ts.map +1 -1
- package/dist/components/schemas/FinanceDetails.d.ts +6 -25
- package/dist/components/schemas/FinanceDetails.d.ts.map +1 -1
- package/dist/components/schemas/FinanceDetails.js +2 -2
- package/dist/components/schemas/Income.d.ts +15 -0
- package/dist/components/schemas/Income.d.ts.map +1 -0
- package/dist/components/schemas/Income.js +37 -0
- package/dist/components/schemas/index.d.ts +1 -0
- package/dist/components/schemas/index.d.ts.map +1 -1
- package/dist/components/schemas/index.js +1 -0
- package/dist/operations/applyCredit.d.ts +21 -48
- package/dist/operations/applyCredit.d.ts.map +1 -1
- package/dist/operations/checkCredit.d.ts +21 -48
- package/dist/operations/checkCredit.d.ts.map +1 -1
- package/dist/operations/deleteCredit.d.ts +21 -48
- package/dist/operations/deleteCredit.d.ts.map +1 -1
- package/dist/operations/getCredit.d.ts +21 -48
- package/dist/operations/getCredit.d.ts.map +1 -1
- package/dist/operations/getCredits.d.ts +21 -48
- package/dist/operations/getCredits.d.ts.map +1 -1
- package/dist/operations/index.d.ts +189 -432
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/postCredit.d.ts +21 -48
- package/dist/operations/postCredit.d.ts.map +1 -1
- package/dist/operations/putCredit.d.ts +21 -48
- package/dist/operations/putCredit.d.ts.map +1 -1
- package/dist/operations/quoteCredit.d.ts +21 -48
- package/dist/operations/quoteCredit.d.ts.map +1 -1
- package/dist/operations/signCredit.d.ts +21 -48
- package/dist/operations/signCredit.d.ts.map +1 -1
- package/dist/schema.json +1 -1
- package/dist/widget/index.d.ts +6690 -7221
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +13083 -13570
- package/package.json +1 -1
- package/schema.yaml +29 -3
|
@@ -1,9 +1,10 @@
|
|
|
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";
|
|
4
5
|
import { EmploymentDetails } from "./EmploymentDetails";
|
|
5
6
|
import { FinanceDetails } from "./FinanceDetails";
|
|
6
|
-
export declare const ApplicantDetails: t.TypeC<{
|
|
7
|
+
export declare const ApplicantDetails: t.IntersectionC<[t.TypeC<{
|
|
7
8
|
bank_account: t.IntersectionC<[t.TypeC<{
|
|
8
9
|
account_name: t.StringC;
|
|
9
10
|
account_number: t.StringC;
|
|
@@ -109,33 +110,14 @@ export declare const ApplicantDetails: t.TypeC<{
|
|
|
109
110
|
}>]>;
|
|
110
111
|
finance_details: t.PartialC<{
|
|
111
112
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
amount: t.NumberC;
|
|
116
|
-
}>, t.PartialC<{
|
|
117
|
-
currency: t.LiteralC<"GBP">;
|
|
118
|
-
}>]>;
|
|
119
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
113
|
+
incomes: t.ArrayC<t.PartialC<{
|
|
114
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
115
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
120
116
|
amount: t.NumberC;
|
|
121
117
|
}>, t.PartialC<{
|
|
122
118
|
currency: t.LiteralC<"GBP">;
|
|
123
119
|
}>]>;
|
|
124
|
-
}
|
|
125
|
-
employed_details: t.TypeC<{
|
|
126
|
-
employer_name: t.StringC;
|
|
127
|
-
main_occupation: t.StringC;
|
|
128
|
-
months_employed: t.NumberC;
|
|
129
|
-
}>;
|
|
130
|
-
self_employed_details: t.TypeC<{
|
|
131
|
-
business_name: t.StringC;
|
|
132
|
-
type_of_business: t.StringC;
|
|
133
|
-
months_self_employed: t.NumberC;
|
|
134
|
-
}>;
|
|
135
|
-
not_employed_details: t.TypeC<{
|
|
136
|
-
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">]>;
|
|
137
|
-
}>;
|
|
138
|
-
}>]>>;
|
|
120
|
+
}>>;
|
|
139
121
|
expenditures: t.ArrayC<t.PartialC<{
|
|
140
122
|
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
123
|
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
@@ -145,11 +127,18 @@ export declare const ApplicantDetails: t.TypeC<{
|
|
|
145
127
|
}>]>;
|
|
146
128
|
}>>;
|
|
147
129
|
}>;
|
|
148
|
-
}
|
|
130
|
+
}>, t.PartialC<{
|
|
131
|
+
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
132
|
+
employer_name: t.StringC;
|
|
133
|
+
main_occupation: t.StringC;
|
|
134
|
+
months_employed: t.NumberC;
|
|
135
|
+
}>>;
|
|
136
|
+
}>]>;
|
|
149
137
|
export interface ApplicantDetails {
|
|
150
138
|
bank_account: BankAccount;
|
|
151
139
|
customer_details: CustomerDetails;
|
|
152
140
|
employment_details: EmploymentDetails;
|
|
141
|
+
additional_employment_details?: Array<EmployedDetails>;
|
|
153
142
|
finance_details: FinanceDetails;
|
|
154
143
|
}
|
|
155
144
|
//# 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,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"}
|
|
@@ -27,11 +27,17 @@ 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");
|
|
30
31
|
const EmploymentDetails_1 = require("./EmploymentDetails");
|
|
31
32
|
const FinanceDetails_1 = require("./FinanceDetails");
|
|
32
|
-
exports.ApplicantDetails = t.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
exports.ApplicantDetails = t.intersection([
|
|
34
|
+
t.type({
|
|
35
|
+
bank_account: BankAccount_1.BankAccount,
|
|
36
|
+
customer_details: CustomerDetails_1.CustomerDetails,
|
|
37
|
+
employment_details: EmploymentDetails_1.EmploymentDetails,
|
|
38
|
+
finance_details: FinanceDetails_1.FinanceDetails,
|
|
39
|
+
}),
|
|
40
|
+
t.partial({
|
|
41
|
+
additional_employment_details: t.array(EmployedDetails_1.EmployedDetails),
|
|
42
|
+
}),
|
|
43
|
+
]);
|
|
@@ -3,6 +3,7 @@ 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";
|
|
6
7
|
import { EmploymentDetails } from "./EmploymentDetails";
|
|
7
8
|
import { FinanceDetails } from "./FinanceDetails";
|
|
8
9
|
import { Metadata } from "./Metadata";
|
|
@@ -134,35 +135,21 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
|
|
|
134
135
|
}>, t.PartialC<{
|
|
135
136
|
currency: t.LiteralC<"GBP">;
|
|
136
137
|
}>]>;
|
|
138
|
+
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
139
|
+
employer_name: t.StringC;
|
|
140
|
+
main_occupation: t.StringC;
|
|
141
|
+
months_employed: t.NumberC;
|
|
142
|
+
}>>;
|
|
137
143
|
finance_details: t.PartialC<{
|
|
138
144
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
amount: t.NumberC;
|
|
143
|
-
}>, t.PartialC<{
|
|
144
|
-
currency: t.LiteralC<"GBP">;
|
|
145
|
-
}>]>;
|
|
146
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
145
|
+
incomes: t.ArrayC<t.PartialC<{
|
|
146
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
147
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
147
148
|
amount: t.NumberC;
|
|
148
149
|
}>, t.PartialC<{
|
|
149
150
|
currency: t.LiteralC<"GBP">;
|
|
150
151
|
}>]>;
|
|
151
|
-
}
|
|
152
|
-
employed_details: t.TypeC<{
|
|
153
|
-
employer_name: t.StringC;
|
|
154
|
-
main_occupation: t.StringC;
|
|
155
|
-
months_employed: t.NumberC;
|
|
156
|
-
}>;
|
|
157
|
-
self_employed_details: t.TypeC<{
|
|
158
|
-
business_name: t.StringC;
|
|
159
|
-
type_of_business: t.StringC;
|
|
160
|
-
months_self_employed: t.NumberC;
|
|
161
|
-
}>;
|
|
162
|
-
not_employed_details: t.TypeC<{
|
|
163
|
-
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">]>;
|
|
164
|
-
}>;
|
|
165
|
-
}>]>>;
|
|
152
|
+
}>>;
|
|
166
153
|
expenditures: t.ArrayC<t.PartialC<{
|
|
167
154
|
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">]>;
|
|
168
155
|
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
@@ -172,7 +159,7 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
|
|
|
172
159
|
}>]>;
|
|
173
160
|
}>>;
|
|
174
161
|
}>;
|
|
175
|
-
extra_applicants: t.ArrayC<t.TypeC<{
|
|
162
|
+
extra_applicants: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
176
163
|
bank_account: t.IntersectionC<[t.TypeC<{
|
|
177
164
|
account_name: t.StringC;
|
|
178
165
|
account_number: t.StringC;
|
|
@@ -278,33 +265,14 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
|
|
|
278
265
|
}>]>;
|
|
279
266
|
finance_details: t.PartialC<{
|
|
280
267
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
amount: t.NumberC;
|
|
285
|
-
}>, t.PartialC<{
|
|
286
|
-
currency: t.LiteralC<"GBP">;
|
|
287
|
-
}>]>;
|
|
288
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
268
|
+
incomes: t.ArrayC<t.PartialC<{
|
|
269
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
270
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
289
271
|
amount: t.NumberC;
|
|
290
272
|
}>, t.PartialC<{
|
|
291
273
|
currency: t.LiteralC<"GBP">;
|
|
292
274
|
}>]>;
|
|
293
|
-
}
|
|
294
|
-
employed_details: t.TypeC<{
|
|
295
|
-
employer_name: t.StringC;
|
|
296
|
-
main_occupation: t.StringC;
|
|
297
|
-
months_employed: t.NumberC;
|
|
298
|
-
}>;
|
|
299
|
-
self_employed_details: t.TypeC<{
|
|
300
|
-
business_name: t.StringC;
|
|
301
|
-
type_of_business: t.StringC;
|
|
302
|
-
months_self_employed: t.NumberC;
|
|
303
|
-
}>;
|
|
304
|
-
not_employed_details: t.TypeC<{
|
|
305
|
-
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">]>;
|
|
306
|
-
}>;
|
|
307
|
-
}>]>>;
|
|
275
|
+
}>>;
|
|
308
276
|
expenditures: t.ArrayC<t.PartialC<{
|
|
309
277
|
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">]>;
|
|
310
278
|
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
@@ -314,7 +282,13 @@ export declare const Credit: t.IntersectionC<[t.TypeC<{
|
|
|
314
282
|
}>]>;
|
|
315
283
|
}>>;
|
|
316
284
|
}>;
|
|
317
|
-
}
|
|
285
|
+
}>, t.PartialC<{
|
|
286
|
+
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
287
|
+
employer_name: t.StringC;
|
|
288
|
+
main_occupation: t.StringC;
|
|
289
|
+
months_employed: t.NumberC;
|
|
290
|
+
}>>;
|
|
291
|
+
}>]>>;
|
|
318
292
|
credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
319
293
|
name: t.StringC;
|
|
320
294
|
}>, t.PartialC<{
|
|
@@ -357,6 +331,7 @@ export interface Credit {
|
|
|
357
331
|
bank_account: BankAccount;
|
|
358
332
|
customer_details: CustomerDetails;
|
|
359
333
|
employment_details: EmploymentDetails;
|
|
334
|
+
additional_employment_details?: Array<EmployedDetails>;
|
|
360
335
|
finance_details?: FinanceDetails;
|
|
361
336
|
extra_applicants?: Array<ApplicantDetails>;
|
|
362
337
|
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,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;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,MAAM
|
|
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;AAC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f,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,eAAe,CAAC,CAAC;IACvD,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,6 +29,7 @@ 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");
|
|
32
33
|
const EmploymentDetails_1 = require("./EmploymentDetails");
|
|
33
34
|
const FinanceDetails_1 = require("./FinanceDetails");
|
|
34
35
|
const Metadata_1 = require("./Metadata");
|
|
@@ -64,6 +65,7 @@ exports.Credit = t.intersection([
|
|
|
64
65
|
]),
|
|
65
66
|
amount: Money_1.Money,
|
|
66
67
|
deposit_value: Money_1.Money,
|
|
68
|
+
additional_employment_details: t.array(EmployedDetails_1.EmployedDetails),
|
|
67
69
|
finance_details: FinanceDetails_1.FinanceDetails,
|
|
68
70
|
extra_applicants: t.array(ApplicantDetails_1.ApplicantDetails),
|
|
69
71
|
credit_documents: t.array(Document_1.Document),
|
|
@@ -324,35 +324,21 @@ export declare const Entity: t.PartialC<{
|
|
|
324
324
|
}>, t.PartialC<{
|
|
325
325
|
currency: t.LiteralC<"GBP">;
|
|
326
326
|
}>]>;
|
|
327
|
+
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
328
|
+
employer_name: t.StringC;
|
|
329
|
+
main_occupation: t.StringC;
|
|
330
|
+
months_employed: t.NumberC;
|
|
331
|
+
}>>;
|
|
327
332
|
finance_details: t.PartialC<{
|
|
328
333
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
amount: t.NumberC;
|
|
333
|
-
}>, t.PartialC<{
|
|
334
|
-
currency: t.LiteralC<"GBP">;
|
|
335
|
-
}>]>;
|
|
336
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
334
|
+
incomes: t.ArrayC<t.PartialC<{
|
|
335
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
336
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
337
337
|
amount: t.NumberC;
|
|
338
338
|
}>, t.PartialC<{
|
|
339
339
|
currency: t.LiteralC<"GBP">;
|
|
340
340
|
}>]>;
|
|
341
|
-
}
|
|
342
|
-
employed_details: t.TypeC<{
|
|
343
|
-
employer_name: t.StringC;
|
|
344
|
-
main_occupation: t.StringC;
|
|
345
|
-
months_employed: t.NumberC;
|
|
346
|
-
}>;
|
|
347
|
-
self_employed_details: t.TypeC<{
|
|
348
|
-
business_name: t.StringC;
|
|
349
|
-
type_of_business: t.StringC;
|
|
350
|
-
months_self_employed: t.NumberC;
|
|
351
|
-
}>;
|
|
352
|
-
not_employed_details: t.TypeC<{
|
|
353
|
-
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">]>;
|
|
354
|
-
}>;
|
|
355
|
-
}>]>>;
|
|
341
|
+
}>>;
|
|
356
342
|
expenditures: t.ArrayC<t.PartialC<{
|
|
357
343
|
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">]>;
|
|
358
344
|
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
@@ -362,7 +348,7 @@ export declare const Entity: t.PartialC<{
|
|
|
362
348
|
}>]>;
|
|
363
349
|
}>>;
|
|
364
350
|
}>;
|
|
365
|
-
extra_applicants: t.ArrayC<t.TypeC<{
|
|
351
|
+
extra_applicants: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
366
352
|
bank_account: t.IntersectionC<[t.TypeC<{
|
|
367
353
|
account_name: t.StringC;
|
|
368
354
|
account_number: t.StringC;
|
|
@@ -468,33 +454,14 @@ export declare const Entity: t.PartialC<{
|
|
|
468
454
|
}>]>;
|
|
469
455
|
finance_details: t.PartialC<{
|
|
470
456
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
amount: t.NumberC;
|
|
475
|
-
}>, t.PartialC<{
|
|
476
|
-
currency: t.LiteralC<"GBP">;
|
|
477
|
-
}>]>;
|
|
478
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
457
|
+
incomes: t.ArrayC<t.PartialC<{
|
|
458
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
459
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
479
460
|
amount: t.NumberC;
|
|
480
461
|
}>, t.PartialC<{
|
|
481
462
|
currency: t.LiteralC<"GBP">;
|
|
482
463
|
}>]>;
|
|
483
|
-
}
|
|
484
|
-
employed_details: t.TypeC<{
|
|
485
|
-
employer_name: t.StringC;
|
|
486
|
-
main_occupation: t.StringC;
|
|
487
|
-
months_employed: t.NumberC;
|
|
488
|
-
}>;
|
|
489
|
-
self_employed_details: t.TypeC<{
|
|
490
|
-
business_name: t.StringC;
|
|
491
|
-
type_of_business: t.StringC;
|
|
492
|
-
months_self_employed: t.NumberC;
|
|
493
|
-
}>;
|
|
494
|
-
not_employed_details: t.TypeC<{
|
|
495
|
-
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">]>;
|
|
496
|
-
}>;
|
|
497
|
-
}>]>>;
|
|
464
|
+
}>>;
|
|
498
465
|
expenditures: t.ArrayC<t.PartialC<{
|
|
499
466
|
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">]>;
|
|
500
467
|
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
@@ -504,7 +471,13 @@ export declare const Entity: t.PartialC<{
|
|
|
504
471
|
}>]>;
|
|
505
472
|
}>>;
|
|
506
473
|
}>;
|
|
507
|
-
}
|
|
474
|
+
}>, t.PartialC<{
|
|
475
|
+
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
476
|
+
employer_name: t.StringC;
|
|
477
|
+
main_occupation: t.StringC;
|
|
478
|
+
months_employed: t.NumberC;
|
|
479
|
+
}>>;
|
|
480
|
+
}>]>>;
|
|
508
481
|
credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
509
482
|
name: t.StringC;
|
|
510
483
|
}>, t.PartialC<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Entity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,C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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"}
|
|
@@ -331,35 +331,21 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
|
331
331
|
}>, t.PartialC<{
|
|
332
332
|
currency: t.LiteralC<"GBP">;
|
|
333
333
|
}>]>;
|
|
334
|
+
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
335
|
+
employer_name: t.StringC;
|
|
336
|
+
main_occupation: t.StringC;
|
|
337
|
+
months_employed: t.NumberC;
|
|
338
|
+
}>>;
|
|
334
339
|
finance_details: t.PartialC<{
|
|
335
340
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
amount: t.NumberC;
|
|
340
|
-
}>, t.PartialC<{
|
|
341
|
-
currency: t.LiteralC<"GBP">;
|
|
342
|
-
}>]>;
|
|
343
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
341
|
+
incomes: t.ArrayC<t.PartialC<{
|
|
342
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
343
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
344
344
|
amount: t.NumberC;
|
|
345
345
|
}>, t.PartialC<{
|
|
346
346
|
currency: t.LiteralC<"GBP">;
|
|
347
347
|
}>]>;
|
|
348
|
-
}
|
|
349
|
-
employed_details: t.TypeC<{
|
|
350
|
-
employer_name: t.StringC;
|
|
351
|
-
main_occupation: t.StringC;
|
|
352
|
-
months_employed: t.NumberC;
|
|
353
|
-
}>;
|
|
354
|
-
self_employed_details: t.TypeC<{
|
|
355
|
-
business_name: t.StringC;
|
|
356
|
-
type_of_business: t.StringC;
|
|
357
|
-
months_self_employed: t.NumberC;
|
|
358
|
-
}>;
|
|
359
|
-
not_employed_details: t.TypeC<{
|
|
360
|
-
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">]>;
|
|
361
|
-
}>;
|
|
362
|
-
}>]>>;
|
|
348
|
+
}>>;
|
|
363
349
|
expenditures: t.ArrayC<t.PartialC<{
|
|
364
350
|
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">]>;
|
|
365
351
|
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
@@ -369,7 +355,7 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
|
369
355
|
}>]>;
|
|
370
356
|
}>>;
|
|
371
357
|
}>;
|
|
372
|
-
extra_applicants: t.ArrayC<t.TypeC<{
|
|
358
|
+
extra_applicants: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
373
359
|
bank_account: t.IntersectionC<[t.TypeC<{
|
|
374
360
|
account_name: t.StringC;
|
|
375
361
|
account_number: t.StringC;
|
|
@@ -475,33 +461,14 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
|
475
461
|
}>]>;
|
|
476
462
|
finance_details: t.PartialC<{
|
|
477
463
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
amount: t.NumberC;
|
|
482
|
-
}>, t.PartialC<{
|
|
483
|
-
currency: t.LiteralC<"GBP">;
|
|
484
|
-
}>]>;
|
|
485
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
464
|
+
incomes: t.ArrayC<t.PartialC<{
|
|
465
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
466
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
486
467
|
amount: t.NumberC;
|
|
487
468
|
}>, t.PartialC<{
|
|
488
469
|
currency: t.LiteralC<"GBP">;
|
|
489
470
|
}>]>;
|
|
490
|
-
}
|
|
491
|
-
employed_details: t.TypeC<{
|
|
492
|
-
employer_name: t.StringC;
|
|
493
|
-
main_occupation: t.StringC;
|
|
494
|
-
months_employed: t.NumberC;
|
|
495
|
-
}>;
|
|
496
|
-
self_employed_details: t.TypeC<{
|
|
497
|
-
business_name: t.StringC;
|
|
498
|
-
type_of_business: t.StringC;
|
|
499
|
-
months_self_employed: t.NumberC;
|
|
500
|
-
}>;
|
|
501
|
-
not_employed_details: t.TypeC<{
|
|
502
|
-
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">]>;
|
|
503
|
-
}>;
|
|
504
|
-
}>]>>;
|
|
471
|
+
}>>;
|
|
505
472
|
expenditures: t.ArrayC<t.PartialC<{
|
|
506
473
|
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">]>;
|
|
507
474
|
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
@@ -511,7 +478,13 @@ export declare const Event: t.IntersectionC<[t.TypeC<{
|
|
|
511
478
|
}>]>;
|
|
512
479
|
}>>;
|
|
513
480
|
}>;
|
|
514
|
-
}
|
|
481
|
+
}>, t.PartialC<{
|
|
482
|
+
additional_employment_details: t.ArrayC<t.TypeC<{
|
|
483
|
+
employer_name: t.StringC;
|
|
484
|
+
main_occupation: t.StringC;
|
|
485
|
+
months_employed: t.NumberC;
|
|
486
|
+
}>>;
|
|
487
|
+
}>]>>;
|
|
515
488
|
credit_documents: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
516
489
|
name: t.StringC;
|
|
517
490
|
}>, t.PartialC<{
|
|
@@ -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,CA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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"}
|
|
@@ -1,35 +1,16 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
-
import { EmploymentDetails } from "./EmploymentDetails";
|
|
3
2
|
import { Expenditure } from "./Expenditure";
|
|
3
|
+
import { Income } from "./Income";
|
|
4
4
|
export declare const FinanceDetails: t.PartialC<{
|
|
5
5
|
bankrupcy_or_iva_in_last_5_years: t.UnionC<[t.LiteralC<"yes">, t.LiteralC<"no">]>;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
amount: t.NumberC;
|
|
10
|
-
}>, t.PartialC<{
|
|
11
|
-
currency: t.LiteralC<"GBP">;
|
|
12
|
-
}>]>;
|
|
13
|
-
household_annual_income: t.IntersectionC<[t.TypeC<{
|
|
6
|
+
incomes: t.ArrayC<t.PartialC<{
|
|
7
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
8
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
14
9
|
amount: t.NumberC;
|
|
15
10
|
}>, t.PartialC<{
|
|
16
11
|
currency: t.LiteralC<"GBP">;
|
|
17
12
|
}>]>;
|
|
18
|
-
}
|
|
19
|
-
employed_details: t.TypeC<{
|
|
20
|
-
employer_name: t.StringC;
|
|
21
|
-
main_occupation: t.StringC;
|
|
22
|
-
months_employed: t.NumberC;
|
|
23
|
-
}>;
|
|
24
|
-
self_employed_details: t.TypeC<{
|
|
25
|
-
business_name: t.StringC;
|
|
26
|
-
type_of_business: t.StringC;
|
|
27
|
-
months_self_employed: t.NumberC;
|
|
28
|
-
}>;
|
|
29
|
-
not_employed_details: t.TypeC<{
|
|
30
|
-
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
|
-
}>;
|
|
32
|
-
}>]>>;
|
|
13
|
+
}>>;
|
|
33
14
|
expenditures: t.ArrayC<t.PartialC<{
|
|
34
15
|
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">]>;
|
|
35
16
|
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
@@ -41,7 +22,7 @@ export declare const FinanceDetails: t.PartialC<{
|
|
|
41
22
|
}>;
|
|
42
23
|
export interface FinanceDetails {
|
|
43
24
|
bankrupcy_or_iva_in_last_5_years?: "yes" | "no";
|
|
44
|
-
|
|
25
|
+
incomes?: Array<Income>;
|
|
45
26
|
expenditures?: Array<Expenditure>;
|
|
46
27
|
}
|
|
47
28
|
//# sourceMappingURL=FinanceDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FinanceDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/FinanceDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"FinanceDetails.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/FinanceDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,gCAAgC,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CACnC"}
|
|
@@ -25,13 +25,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.FinanceDetails = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const EmploymentDetails_1 = require("./EmploymentDetails");
|
|
29
28
|
const Expenditure_1 = require("./Expenditure");
|
|
29
|
+
const Income_1 = require("./Income");
|
|
30
30
|
exports.FinanceDetails = t.partial({
|
|
31
31
|
bankrupcy_or_iva_in_last_5_years: t.union([
|
|
32
32
|
t.literal("yes"),
|
|
33
33
|
t.literal("no"),
|
|
34
34
|
]),
|
|
35
|
-
|
|
35
|
+
incomes: t.array(Income_1.Income),
|
|
36
36
|
expenditures: t.array(Expenditure_1.Expenditure),
|
|
37
37
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Money } from "./Money";
|
|
3
|
+
export declare const Income: t.PartialC<{
|
|
4
|
+
income_type: t.UnionC<[t.LiteralC<"benefits">, t.LiteralC<"other_sources_of_income">, t.LiteralC<"pensions">, t.LiteralC<"earning_after_tax">]>;
|
|
5
|
+
monthly_amount: t.IntersectionC<[t.TypeC<{
|
|
6
|
+
amount: t.NumberC;
|
|
7
|
+
}>, t.PartialC<{
|
|
8
|
+
currency: t.LiteralC<"GBP">;
|
|
9
|
+
}>]>;
|
|
10
|
+
}>;
|
|
11
|
+
export interface Income {
|
|
12
|
+
income_type?: "benefits" | "other_sources_of_income" | "pensions" | "earning_after_tax";
|
|
13
|
+
monthly_amount?: Money;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Income.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Income.d.ts","sourceRoot":"","sources":["../../../frontend/generated/components/schemas/Income.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,eAAO,MAAM,MAAM;;;;;;;EAQjB,CAAC;AAEH,MAAM,WAAW,MAAM;IACrB,WAAW,CAAC,EACR,UAAU,GACV,yBAAyB,GACzB,UAAU,GACV,mBAAmB,CAAC;IACxB,cAAc,CAAC,EAAE,KAAK,CAAC;CACxB"}
|
|
@@ -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.Income = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const Money_1 = require("./Money");
|
|
29
|
+
exports.Income = t.partial({
|
|
30
|
+
income_type: t.union([
|
|
31
|
+
t.literal("benefits"),
|
|
32
|
+
t.literal("other_sources_of_income"),
|
|
33
|
+
t.literal("pensions"),
|
|
34
|
+
t.literal("earning_after_tax"),
|
|
35
|
+
]),
|
|
36
|
+
monthly_amount: Money_1.Money,
|
|
37
|
+
});
|