@kanda-libs/ks-component-ts 0.2.453 → 0.2.455

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.453",
3
+ "version": "0.2.455",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,5 +1,6 @@
1
1
  import * as t from "io-ts";
2
2
  import { Address } from "./Address";
3
+ import { VatNumber } from "./VatNumber";
3
4
 
4
5
  export const LimitedCompanyInfo = t.intersection([
5
6
  t.type({
@@ -9,7 +10,7 @@ export const LimitedCompanyInfo = t.intersection([
9
10
  }),
10
11
  t.partial({
11
12
  trading_address: Address,
12
- vat_number: t.string,
13
+ vat_number: VatNumber,
13
14
  }),
14
15
  ]);
15
16
 
@@ -18,5 +19,5 @@ export interface LimitedCompanyInfo {
18
19
  company_address: Address;
19
20
  trading_address?: Address;
20
21
  company_number: string;
21
- vat_number?: string;
22
+ vat_number?: VatNumber;
22
23
  }
@@ -1,5 +1,6 @@
1
1
  import * as t from "io-ts";
2
2
  import { Address } from "./Address";
3
+ import { VatNumber } from "./VatNumber";
3
4
 
4
5
  export const SoleTraderInfo = t.intersection([
5
6
  t.type({
@@ -8,6 +9,7 @@ export const SoleTraderInfo = t.intersection([
8
9
  }),
9
10
  t.partial({
10
11
  national_insurance_number: t.string,
12
+ vat_number: VatNumber,
11
13
  }),
12
14
  ]);
13
15
 
@@ -15,4 +17,5 @@ export interface SoleTraderInfo {
15
17
  national_insurance_number?: string;
16
18
  trading_name: string;
17
19
  trading_address: Address;
20
+ vat_number?: VatNumber;
18
21
  }
@@ -1,12 +1,13 @@
1
1
  import * as t from "io-ts";
2
2
  import { Address } from "./Address";
3
3
  import { CompanyType } from "./CompanyType";
4
+ import { VatNumber } from "./VatNumber";
4
5
 
5
6
  export const Trader = t.type({
6
7
  trading_type: CompanyType,
7
8
  trading_name: t.string,
8
9
  trading_address: Address,
9
- vat_number: t.string,
10
+ vat_number: VatNumber,
10
11
  contact_name: t.string,
11
12
  contact_email: t.string,
12
13
  contact_mobile: t.string,
@@ -16,7 +17,7 @@ export interface Trader {
16
17
  trading_type: CompanyType;
17
18
  trading_name: string;
18
19
  trading_address: Address;
19
- vat_number: string;
20
+ vat_number: VatNumber;
20
21
  contact_name: string;
21
22
  contact_email: string;
22
23
  contact_mobile: string;
@@ -0,0 +1,5 @@
1
+ import * as t from "io-ts";
2
+
3
+ export const VatNumber = t.string;
4
+
5
+ export type VatNumber = string;
@@ -135,6 +135,7 @@ export * from "./Transaction";
135
135
  export * from "./UserEvent";
136
136
  export * from "./UserType";
137
137
  export * from "./UTM";
138
+ export * from "./VatNumber";
138
139
  export * from "./VerificationStatus";
139
140
  export * from "./WelcomeSkipBanner";
140
141
  export * from "./WorkType";
@@ -30,9 +30,6 @@ export const postIntroductionTraderOperation = {
30
30
  } as const;
31
31
 
32
32
  export type PostIntroductionTraderRequestFunction = RequestFunction<
33
- {
34
- params: PostIntroductionTraderRequestParameters;
35
- body: schemas.ContactInfo;
36
- },
33
+ { params: PostIntroductionTraderRequestParameters; body: schemas.Trader },
37
34
  schemas.Introduction
38
35
  >;