@kanda-libs/ks-component-ts 0.2.344 → 0.2.346
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 +11800 -11758
- 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/EnterpriseUserRole.ts +27 -0
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/index.ts +12 -0
- package/src/generated/operations/infoEnterpriseRole.ts +24 -0
- package/src/generated/widget/index.tsx +53867 -53749
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
export const EnterpriseUserRole = t.intersection([
|
|
4
|
+
t.type({
|
|
5
|
+
email: t.string,
|
|
6
|
+
role: t.string,
|
|
7
|
+
groups: t.array(t.string),
|
|
8
|
+
departments: t.array(t.string),
|
|
9
|
+
branches: t.array(t.string),
|
|
10
|
+
}),
|
|
11
|
+
t.partial({
|
|
12
|
+
id: t.string,
|
|
13
|
+
eid: t.string,
|
|
14
|
+
bid: t.string,
|
|
15
|
+
}),
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
export interface EnterpriseUserRole {
|
|
19
|
+
id?: string;
|
|
20
|
+
eid?: string;
|
|
21
|
+
bid?: string;
|
|
22
|
+
email: string;
|
|
23
|
+
role: string;
|
|
24
|
+
groups: Array<string>;
|
|
25
|
+
departments: Array<string>;
|
|
26
|
+
branches: Array<string>;
|
|
27
|
+
}
|
|
@@ -28,6 +28,7 @@ export * from "./Document";
|
|
|
28
28
|
export * from "./EmployedDetails";
|
|
29
29
|
export * from "./EmploymentDetails";
|
|
30
30
|
export * from "./Enterprise";
|
|
31
|
+
export * from "./EnterpriseUserRole";
|
|
31
32
|
export * from "./Error";
|
|
32
33
|
export * from "./Event";
|
|
33
34
|
export * from "./EventOptions";
|
|
@@ -199,6 +199,10 @@ import {
|
|
|
199
199
|
infoEnterpriseOperation,
|
|
200
200
|
InfoEnterpriseRequestFunction,
|
|
201
201
|
} from "./infoEnterprise";
|
|
202
|
+
import {
|
|
203
|
+
infoEnterpriseRoleOperation,
|
|
204
|
+
InfoEnterpriseRoleRequestFunction,
|
|
205
|
+
} from "./infoEnterpriseRole";
|
|
202
206
|
import {
|
|
203
207
|
infoExampleJobOperation,
|
|
204
208
|
InfoExampleJobRequestFunction,
|
|
@@ -449,6 +453,7 @@ export const operations: Operations = {
|
|
|
449
453
|
getInfoEntity: getInfoEntityOperation,
|
|
450
454
|
infoPartnerBranding: infoPartnerBrandingOperation,
|
|
451
455
|
infoEnterprise: infoEnterpriseOperation,
|
|
456
|
+
infoEnterpriseRole: infoEnterpriseRoleOperation,
|
|
452
457
|
infoLead: infoLeadOperation,
|
|
453
458
|
getPartners: getPartnersOperation,
|
|
454
459
|
postPartner: postPartnerOperation,
|
|
@@ -598,6 +603,7 @@ export interface OperationRequestFunctionMap {
|
|
|
598
603
|
getInfoEntity: GetInfoEntityRequestFunction;
|
|
599
604
|
infoPartnerBranding: InfoPartnerBrandingRequestFunction;
|
|
600
605
|
infoEnterprise: InfoEnterpriseRequestFunction;
|
|
606
|
+
infoEnterpriseRole: InfoEnterpriseRoleRequestFunction;
|
|
601
607
|
infoLead: InfoLeadRequestFunction;
|
|
602
608
|
getPartners: GetPartnersRequestFunction;
|
|
603
609
|
postPartner: PostPartnerRequestFunction;
|
|
@@ -782,6 +788,10 @@ export const requestFunctionsBuilder = (
|
|
|
782
788
|
operations.infoEnterprise,
|
|
783
789
|
requestAdapter
|
|
784
790
|
),
|
|
791
|
+
infoEnterpriseRole: requestFunctionBuilder(
|
|
792
|
+
operations.infoEnterpriseRole,
|
|
793
|
+
requestAdapter
|
|
794
|
+
),
|
|
785
795
|
infoLead: requestFunctionBuilder(operations.infoLead, requestAdapter),
|
|
786
796
|
getPartners: requestFunctionBuilder(operations.getPartners, requestAdapter),
|
|
787
797
|
postPartner: requestFunctionBuilder(operations.postPartner, requestAdapter),
|
|
@@ -1211,6 +1221,7 @@ export const infoEnterpriseServiceBuilder = (
|
|
|
1211
1221
|
export const infoLeadServiceBuilder = (
|
|
1212
1222
|
requestFunctions: OperationRequestFunctionMap
|
|
1213
1223
|
) => ({
|
|
1224
|
+
infoEnterpriseRole: requestFunctions.infoEnterpriseRole,
|
|
1214
1225
|
infoLead: requestFunctions.infoLead,
|
|
1215
1226
|
});
|
|
1216
1227
|
|
|
@@ -1390,6 +1401,7 @@ export interface Operations {
|
|
|
1390
1401
|
getInfoEntity: typeof getInfoEntityOperation;
|
|
1391
1402
|
infoPartnerBranding: typeof infoPartnerBrandingOperation;
|
|
1392
1403
|
infoEnterprise: typeof infoEnterpriseOperation;
|
|
1404
|
+
infoEnterpriseRole: typeof infoEnterpriseRoleOperation;
|
|
1393
1405
|
infoLead: typeof infoLeadOperation;
|
|
1394
1406
|
getPartners: typeof getPartnersOperation;
|
|
1395
1407
|
postPartner: typeof postPartnerOperation;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export const infoEnterpriseRoleOperation = {
|
|
5
|
+
path: "/api/info/enterprise-role",
|
|
6
|
+
method: "put",
|
|
7
|
+
responses: {
|
|
8
|
+
"200": { _tag: "JsonResponse", decoder: schemas.EnterpriseUserRole },
|
|
9
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
10
|
+
},
|
|
11
|
+
parameters: [],
|
|
12
|
+
requestDefaultHeaders: {
|
|
13
|
+
"Content-Type": "application/json",
|
|
14
|
+
Accept: "application/json",
|
|
15
|
+
},
|
|
16
|
+
body: {
|
|
17
|
+
_tag: "JsonBody",
|
|
18
|
+
},
|
|
19
|
+
} as const;
|
|
20
|
+
|
|
21
|
+
export type InfoEnterpriseRoleRequestFunction = RequestFunction<
|
|
22
|
+
{ body: schemas.EnterpriseUserRole },
|
|
23
|
+
schemas.EnterpriseUserRole
|
|
24
|
+
>;
|