@kanda-libs/ks-component-ts 0.2.326 → 0.2.328

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.326",
3
+ "version": "0.2.328",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -11,6 +11,7 @@ import { RedirectURLs } from "./RedirectURLs";
11
11
  import { SolarCompanyInfo } from "./SolarCompanyInfo";
12
12
  import { SoleTraderInfo } from "./SoleTraderInfo";
13
13
  import { UserType } from "./UserType";
14
+ import { WelcomeSkipBanner } from "./WelcomeSkipBanner";
14
15
 
15
16
  export const Company = t.intersection([
16
17
  t.type({
@@ -68,6 +69,7 @@ export const Company = t.intersection([
68
69
  contact_info: ContactInfo,
69
70
  redirect_urls: RedirectURLs,
70
71
  fca_number: t.string,
72
+ welcome_pack: WelcomeSkipBanner,
71
73
  metadata: Metadata,
72
74
  }),
73
75
  ]);
@@ -116,5 +118,6 @@ export interface Company {
116
118
  contact_info?: ContactInfo;
117
119
  redirect_urls?: RedirectURLs;
118
120
  fca_number?: string;
121
+ welcome_pack?: WelcomeSkipBanner;
119
122
  metadata?: Metadata;
120
123
  }
@@ -0,0 +1,15 @@
1
+ import * as t from "io-ts";
2
+
3
+ export const WelcomeSkipBanner = t.partial({
4
+ director_verification: t.union([t.literal("yes"), t.literal("no")]),
5
+ invite_team_member: t.union([t.literal("yes"), t.literal("no")]),
6
+ update_website: t.union([t.literal("yes"), t.literal("no")]),
7
+ advert_finance_calculator: t.union([t.literal("yes"), t.literal("no")]),
8
+ });
9
+
10
+ export interface WelcomeSkipBanner {
11
+ director_verification?: "yes" | "no";
12
+ invite_team_member?: "yes" | "no";
13
+ update_website?: "yes" | "no";
14
+ advert_finance_calculator?: "yes" | "no";
15
+ }
@@ -102,4 +102,5 @@ export * from "./TradeSummary";
102
102
  export * from "./UserEvent";
103
103
  export * from "./UserType";
104
104
  export * from "./UTM";
105
+ export * from "./WelcomeSkipBanner";
105
106
  export * from "./WorkType";