@kanda-libs/ks-component-ts 0.2.377 → 0.2.378

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-component-ts",
3
- "version": "0.2.377",
3
+ "version": "0.2.378",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -5,6 +5,7 @@ import { CompanyInfo } from "./CompanyInfo";
5
5
  import { ContactInfo } from "./ContactInfo";
6
6
  import { Document } from "./Document";
7
7
  import { FinanceRate } from "./FinanceRate";
8
+ import { LenderConfig } from "./LenderConfig";
8
9
  import { LimitedCompanyInfo } from "./LimitedCompanyInfo";
9
10
  import { Metadata } from "./Metadata";
10
11
  import { RedirectURLs } from "./RedirectURLs";
@@ -70,6 +71,7 @@ export const Company = t.intersection([
70
71
  redirect_urls: RedirectURLs,
71
72
  fca_number: t.string,
72
73
  welcome_pack: WelcomeSkipBanner,
74
+ lender_configs: t.array(LenderConfig),
73
75
  metadata: Metadata,
74
76
  }),
75
77
  ]);
@@ -119,5 +121,6 @@ export interface Company {
119
121
  redirect_urls?: RedirectURLs;
120
122
  fca_number?: string;
121
123
  welcome_pack?: WelcomeSkipBanner;
124
+ lender_configs?: Array<LenderConfig>;
122
125
  metadata?: Metadata;
123
126
  }
@@ -0,0 +1,12 @@
1
+ import * as t from "io-ts";
2
+ import { FinanceProvider } from "./FinanceProvider";
3
+
4
+ export const LenderConfig = t.type({
5
+ provider: FinanceProvider,
6
+ xid: t.string,
7
+ });
8
+
9
+ export interface LenderConfig {
10
+ provider: FinanceProvider;
11
+ xid: string;
12
+ }
@@ -71,6 +71,7 @@ export * from "./LeadApplicant";
71
71
  export * from "./LeadJobSummary";
72
72
  export * from "./LeadQuote";
73
73
  export * from "./LeadTrade";
74
+ export * from "./LenderConfig";
74
75
  export * from "./LimitedCompanyInfo";
75
76
  export * from "./Metadata";
76
77
  export * from "./Money";