@kanda-libs/ks-component-ts 0.3.24 → 0.3.26
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 +13492 -13486
- 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/EnterpriseUserType.ts +2 -1
- package/src/generated/components/schemas/Trader.ts +15 -9
- package/src/generated/widget/index.tsx +61286 -61239
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export const EnterpriseUserType = t.intersection([
|
|
|
6
6
|
role: t.union([
|
|
7
7
|
t.literal("enterprise-admin"),
|
|
8
8
|
t.literal("enterprise-user"),
|
|
9
|
+
t.literal("enterprise-trainee"),
|
|
9
10
|
]),
|
|
10
11
|
name: t.string,
|
|
11
12
|
email: t.string,
|
|
@@ -19,7 +20,7 @@ export const EnterpriseUserType = t.intersection([
|
|
|
19
20
|
|
|
20
21
|
export interface EnterpriseUserType {
|
|
21
22
|
uid?: string;
|
|
22
|
-
role: "enterprise-admin" | "enterprise-user";
|
|
23
|
+
role: "enterprise-admin" | "enterprise-user" | "enterprise-trainee";
|
|
23
24
|
name: string;
|
|
24
25
|
email: string;
|
|
25
26
|
mobile?: string;
|
|
@@ -3,15 +3,20 @@ import { Address } from "./Address";
|
|
|
3
3
|
import { CompanyType } from "./CompanyType";
|
|
4
4
|
import { VatNumber } from "./VatNumber";
|
|
5
5
|
|
|
6
|
-
export const Trader = t.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
export const Trader = t.intersection([
|
|
7
|
+
t.type({
|
|
8
|
+
trading_type: CompanyType,
|
|
9
|
+
trading_name: t.string,
|
|
10
|
+
trading_address: Address,
|
|
11
|
+
vat_number: VatNumber,
|
|
12
|
+
contact_name: t.string,
|
|
13
|
+
contact_email: t.string,
|
|
14
|
+
contact_mobile: t.string,
|
|
15
|
+
}),
|
|
16
|
+
t.partial({
|
|
17
|
+
reference: t.string,
|
|
18
|
+
}),
|
|
19
|
+
]);
|
|
15
20
|
|
|
16
21
|
export interface Trader {
|
|
17
22
|
trading_type: CompanyType;
|
|
@@ -21,4 +26,5 @@ export interface Trader {
|
|
|
21
26
|
contact_name: string;
|
|
22
27
|
contact_email: string;
|
|
23
28
|
contact_mobile: string;
|
|
29
|
+
reference?: string;
|
|
24
30
|
}
|