@kanda-libs/ks-component-ts 0.2.454 → 0.2.456
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/index.d.ts +13969 -13879
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/components/schemas/LimitedCompanyInfo.ts +3 -2
- package/src/generated/components/schemas/SoleTraderInfo.ts +3 -0
- package/src/generated/components/schemas/Trader.ts +3 -2
- package/src/generated/components/schemas/VatNumber.ts +5 -0
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/connectTradesLead.ts +1 -1
- package/src/generated/widget/index.tsx +66942 -66743
package/package.json
CHANGED
|
@@ -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:
|
|
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?:
|
|
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:
|
|
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:
|
|
20
|
+
vat_number: VatNumber;
|
|
20
21
|
contact_name: string;
|
|
21
22
|
contact_email: string;
|
|
22
23
|
contact_mobile: 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";
|
|
@@ -40,6 +40,6 @@ export const connectTradesLeadOperation = {
|
|
|
40
40
|
} as const;
|
|
41
41
|
|
|
42
42
|
export type ConnectTradesLeadRequestFunction = RequestFunction<
|
|
43
|
-
{ params: ConnectTradesLeadRequestParameters; body: Array<
|
|
43
|
+
{ params: ConnectTradesLeadRequestParameters; body: Array<string> },
|
|
44
44
|
Array<schemas.TradeSummary>
|
|
45
45
|
>;
|