@kanda-libs/ks-component-ts 0.2.247-qa → 0.2.248-qa
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/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js +3 -3
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js.map +3 -3
- package/app/.yalc/@kanda-libs/ks-component-ts/package.json +1 -1
- package/app/.yalc/@kanda-libs/ks-component-ts/yalc.sig +1 -1
- package/app/.yalc/@kanda-libs/ks-design-library/dist/index.d.ts +8 -0
- package/app/.yalc/@kanda-libs/ks-design-library/dist/index.esm.mjs +2 -2
- package/app/.yalc/@kanda-libs/ks-design-library/dist/index.esm.mjs.map +3 -3
- package/app/.yalc/@kanda-libs/ks-design-library/package.json +2 -2
- package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/DesktopLayoutBoxedContent/constants.ts +5 -1
- package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/DesktopLayoutBoxedContent/index.tsx +4 -0
- package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/constants.ts +1 -1
- package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/index.tsx +14 -5
- package/app/.yalc/@kanda-libs/ks-design-library/src/components/DesktopLayout/DesktopLayoutBoxed/useDesktopLayoutBoxedProps.ts +3 -0
- package/app/.yalc/@kanda-libs/ks-design-library/yalc.sig +1 -1
- package/app/yalc.lock +2 -2
- package/dist/index.d.ts +8643 -8535
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/components/schemas/Enterprise.ts +43 -0
- package/src/generated/components/schemas/LeadTrade.ts +2 -6
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/deleteEnterprise.ts +29 -0
- package/src/generated/operations/getEnterprise.ts +29 -0
- package/src/generated/operations/getEnterpriseBranches.ts +30 -0
- package/src/generated/operations/getEnterprises.ts +25 -0
- package/src/generated/operations/index.ts +106 -0
- package/src/generated/operations/infoEnterprise.ts +43 -0
- package/src/generated/operations/postEnterprise.ts +24 -0
- package/src/generated/operations/postEnterpriseBranches.ts +39 -0
- package/src/generated/operations/putEnterprise.ts +35 -0
- package/src/generated/widget/index.tsx +42080 -41640
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Branding } from "./Branding";
|
|
3
|
+
import { ContactInfo } from "./ContactInfo";
|
|
4
|
+
import { Metadata } from "./Metadata";
|
|
5
|
+
|
|
6
|
+
export const Enterprise = t.intersection([
|
|
7
|
+
t.type({
|
|
8
|
+
enterprise_type: t.union([
|
|
9
|
+
t.literal("main_office"),
|
|
10
|
+
t.literal("branch_office"),
|
|
11
|
+
]),
|
|
12
|
+
contact_info: ContactInfo,
|
|
13
|
+
}),
|
|
14
|
+
t.partial({
|
|
15
|
+
id: t.string,
|
|
16
|
+
cid: t.string,
|
|
17
|
+
aid: t.string,
|
|
18
|
+
oid: t.string,
|
|
19
|
+
eid: t.string,
|
|
20
|
+
bid: t.string,
|
|
21
|
+
subdomain: t.string,
|
|
22
|
+
branch_code: t.string,
|
|
23
|
+
emails: t.array(t.string),
|
|
24
|
+
branding: Branding,
|
|
25
|
+
metadata: Metadata,
|
|
26
|
+
}),
|
|
27
|
+
]);
|
|
28
|
+
|
|
29
|
+
export interface Enterprise {
|
|
30
|
+
id?: string;
|
|
31
|
+
cid?: string;
|
|
32
|
+
aid?: string;
|
|
33
|
+
oid?: string;
|
|
34
|
+
eid?: string;
|
|
35
|
+
bid?: string;
|
|
36
|
+
enterprise_type: "main_office" | "branch_office";
|
|
37
|
+
subdomain?: string;
|
|
38
|
+
branch_code?: string;
|
|
39
|
+
emails?: Array<string>;
|
|
40
|
+
contact_info: ContactInfo;
|
|
41
|
+
branding?: Branding;
|
|
42
|
+
metadata?: Metadata;
|
|
43
|
+
}
|
|
@@ -3,22 +3,18 @@ import { Address } from "./Address";
|
|
|
3
3
|
|
|
4
4
|
export const LeadTrade = t.intersection([
|
|
5
5
|
t.type({
|
|
6
|
-
first_name: t.string,
|
|
7
|
-
last_name: t.string,
|
|
8
6
|
email: t.string,
|
|
9
7
|
mobile: t.string,
|
|
8
|
+
trading_name: t.string,
|
|
10
9
|
}),
|
|
11
10
|
t.partial({
|
|
12
|
-
trading_name: t.string,
|
|
13
11
|
address: Address,
|
|
14
12
|
}),
|
|
15
13
|
]);
|
|
16
14
|
|
|
17
15
|
export interface LeadTrade {
|
|
18
|
-
first_name: string;
|
|
19
|
-
last_name: string;
|
|
20
16
|
email: string;
|
|
21
17
|
mobile: string;
|
|
22
|
-
trading_name
|
|
18
|
+
trading_name: string;
|
|
23
19
|
address?: Address;
|
|
24
20
|
}
|
|
@@ -25,6 +25,7 @@ export * from "./DirectorVerification";
|
|
|
25
25
|
export * from "./Document";
|
|
26
26
|
export * from "./EmployedDetails";
|
|
27
27
|
export * from "./EmploymentDetails";
|
|
28
|
+
export * from "./Enterprise";
|
|
28
29
|
export * from "./Error";
|
|
29
30
|
export * from "./Event";
|
|
30
31
|
export * from "./EventOptions";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type DeleteEnterpriseRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const deleteEnterpriseOperation = {
|
|
9
|
+
path: "/api/enterprise/{id}",
|
|
10
|
+
method: "delete",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Enterprise },
|
|
13
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
14
|
+
},
|
|
15
|
+
parameters: [
|
|
16
|
+
{
|
|
17
|
+
_tag: "FormParameter",
|
|
18
|
+
explode: false,
|
|
19
|
+
in: "path",
|
|
20
|
+
name: "id",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export type DeleteEnterpriseRequestFunction = RequestFunction<
|
|
27
|
+
{ params: DeleteEnterpriseRequestParameters },
|
|
28
|
+
schemas.Enterprise
|
|
29
|
+
>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type GetEnterpriseRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const getEnterpriseOperation = {
|
|
9
|
+
path: "/api/enterprise/{id}",
|
|
10
|
+
method: "get",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Enterprise },
|
|
13
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
14
|
+
},
|
|
15
|
+
parameters: [
|
|
16
|
+
{
|
|
17
|
+
_tag: "FormParameter",
|
|
18
|
+
explode: false,
|
|
19
|
+
in: "path",
|
|
20
|
+
name: "id",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export type GetEnterpriseRequestFunction = RequestFunction<
|
|
27
|
+
{ params: GetEnterpriseRequestParameters },
|
|
28
|
+
schemas.Enterprise
|
|
29
|
+
>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as t from "io-ts";
|
|
3
|
+
import * as schemas from "../components/schemas";
|
|
4
|
+
|
|
5
|
+
export type GetEnterpriseBranchesRequestParameters = {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const getEnterpriseBranchesOperation = {
|
|
10
|
+
path: "/api/enterprise/{id}/branch",
|
|
11
|
+
method: "get",
|
|
12
|
+
responses: {
|
|
13
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.Enterprise) },
|
|
14
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
15
|
+
},
|
|
16
|
+
parameters: [
|
|
17
|
+
{
|
|
18
|
+
_tag: "FormParameter",
|
|
19
|
+
explode: false,
|
|
20
|
+
in: "path",
|
|
21
|
+
name: "id",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type GetEnterpriseBranchesRequestFunction = RequestFunction<
|
|
28
|
+
{ params: GetEnterpriseBranchesRequestParameters },
|
|
29
|
+
Array<schemas.Enterprise>
|
|
30
|
+
>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as t from "io-ts";
|
|
3
|
+
import * as parameters from "../components/parameters";
|
|
4
|
+
import * as schemas from "../components/schemas";
|
|
5
|
+
|
|
6
|
+
export type GetEnterprisesRequestParameters = {
|
|
7
|
+
format?: "reduced" | "full";
|
|
8
|
+
q?: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const getEnterprisesOperation = {
|
|
12
|
+
path: "/api/enterprise",
|
|
13
|
+
method: "get",
|
|
14
|
+
responses: {
|
|
15
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.Enterprise) },
|
|
16
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
17
|
+
},
|
|
18
|
+
parameters: [parameters.format, parameters.q],
|
|
19
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
22
|
+
export type GetEnterprisesRequestFunction = RequestFunction<
|
|
23
|
+
{ params: GetEnterprisesRequestParameters },
|
|
24
|
+
Array<schemas.Enterprise>
|
|
25
|
+
>;
|
|
@@ -41,6 +41,10 @@ import {
|
|
|
41
41
|
deleteDocumentOperation,
|
|
42
42
|
DeleteDocumentRequestFunction,
|
|
43
43
|
} from "./deleteDocument";
|
|
44
|
+
import {
|
|
45
|
+
deleteEnterpriseOperation,
|
|
46
|
+
DeleteEnterpriseRequestFunction,
|
|
47
|
+
} from "./deleteEnterprise";
|
|
44
48
|
import { deleteJobOperation, DeleteJobRequestFunction } from "./deleteJob";
|
|
45
49
|
import { deleteLeadOperation, DeleteLeadRequestFunction } from "./deleteLead";
|
|
46
50
|
import {
|
|
@@ -87,6 +91,18 @@ import {
|
|
|
87
91
|
getDocumentsOperation,
|
|
88
92
|
GetDocumentsRequestFunction,
|
|
89
93
|
} from "./getDocuments";
|
|
94
|
+
import {
|
|
95
|
+
getEnterpriseOperation,
|
|
96
|
+
GetEnterpriseRequestFunction,
|
|
97
|
+
} from "./getEnterprise";
|
|
98
|
+
import {
|
|
99
|
+
getEnterpriseBranchesOperation,
|
|
100
|
+
GetEnterpriseBranchesRequestFunction,
|
|
101
|
+
} from "./getEnterpriseBranches";
|
|
102
|
+
import {
|
|
103
|
+
getEnterprisesOperation,
|
|
104
|
+
GetEnterprisesRequestFunction,
|
|
105
|
+
} from "./getEnterprises";
|
|
90
106
|
import {
|
|
91
107
|
getInfoEntityOperation,
|
|
92
108
|
GetInfoEntityRequestFunction,
|
|
@@ -150,6 +166,10 @@ import {
|
|
|
150
166
|
infoDirectorOperation,
|
|
151
167
|
InfoDirectorRequestFunction,
|
|
152
168
|
} from "./infoDirector";
|
|
169
|
+
import {
|
|
170
|
+
infoEnterpriseOperation,
|
|
171
|
+
InfoEnterpriseRequestFunction,
|
|
172
|
+
} from "./infoEnterprise";
|
|
153
173
|
import {
|
|
154
174
|
infoExampleJobOperation,
|
|
155
175
|
InfoExampleJobRequestFunction,
|
|
@@ -229,6 +249,14 @@ import {
|
|
|
229
249
|
postDocumentOperation,
|
|
230
250
|
PostDocumentRequestFunction,
|
|
231
251
|
} from "./postDocument";
|
|
252
|
+
import {
|
|
253
|
+
postEnterpriseOperation,
|
|
254
|
+
PostEnterpriseRequestFunction,
|
|
255
|
+
} from "./postEnterprise";
|
|
256
|
+
import {
|
|
257
|
+
postEnterpriseBranchesOperation,
|
|
258
|
+
PostEnterpriseBranchesRequestFunction,
|
|
259
|
+
} from "./postEnterpriseBranches";
|
|
232
260
|
import { postEventOperation, PostEventRequestFunction } from "./postEvent";
|
|
233
261
|
import { postJobOperation, PostJobRequestFunction } from "./postJob";
|
|
234
262
|
import { postLeadOperation, PostLeadRequestFunction } from "./postLead";
|
|
@@ -280,6 +308,10 @@ import {
|
|
|
280
308
|
putDocumentOperation,
|
|
281
309
|
PutDocumentRequestFunction,
|
|
282
310
|
} from "./putDocument";
|
|
311
|
+
import {
|
|
312
|
+
putEnterpriseOperation,
|
|
313
|
+
PutEnterpriseRequestFunction,
|
|
314
|
+
} from "./putEnterprise";
|
|
283
315
|
import { putJobOperation, PutJobRequestFunction } from "./putJob";
|
|
284
316
|
import { putLeadOperation, PutLeadRequestFunction } from "./putLead";
|
|
285
317
|
import { putMeOperation, PutMeRequestFunction } from "./putMe";
|
|
@@ -351,6 +383,7 @@ export const operations: Operations = {
|
|
|
351
383
|
infoDeleteCache: infoDeleteCacheOperation,
|
|
352
384
|
getInfoEntity: getInfoEntityOperation,
|
|
353
385
|
infoPartnerBranding: infoPartnerBrandingOperation,
|
|
386
|
+
infoEnterprise: infoEnterpriseOperation,
|
|
354
387
|
getPartners: getPartnersOperation,
|
|
355
388
|
postPartner: postPartnerOperation,
|
|
356
389
|
getPartner: getPartnerOperation,
|
|
@@ -363,6 +396,13 @@ export const operations: Operations = {
|
|
|
363
396
|
putOnboarding: putOnboardingOperation,
|
|
364
397
|
deleteOnboarding: deleteOnboardingOperation,
|
|
365
398
|
postOnboardingDecision: postOnboardingDecisionOperation,
|
|
399
|
+
getEnterprises: getEnterprisesOperation,
|
|
400
|
+
postEnterprise: postEnterpriseOperation,
|
|
401
|
+
getEnterprise: getEnterpriseOperation,
|
|
402
|
+
putEnterprise: putEnterpriseOperation,
|
|
403
|
+
deleteEnterprise: deleteEnterpriseOperation,
|
|
404
|
+
getEnterpriseBranches: getEnterpriseBranchesOperation,
|
|
405
|
+
postEnterpriseBranches: postEnterpriseBranchesOperation,
|
|
366
406
|
getCompanies: getCompaniesOperation,
|
|
367
407
|
postCompany: postCompanyOperation,
|
|
368
408
|
getCompany: getCompanyOperation,
|
|
@@ -474,6 +514,7 @@ export interface OperationRequestFunctionMap {
|
|
|
474
514
|
infoDeleteCache: InfoDeleteCacheRequestFunction;
|
|
475
515
|
getInfoEntity: GetInfoEntityRequestFunction;
|
|
476
516
|
infoPartnerBranding: InfoPartnerBrandingRequestFunction;
|
|
517
|
+
infoEnterprise: InfoEnterpriseRequestFunction;
|
|
477
518
|
getPartners: GetPartnersRequestFunction;
|
|
478
519
|
postPartner: PostPartnerRequestFunction;
|
|
479
520
|
getPartner: GetPartnerRequestFunction;
|
|
@@ -486,6 +527,13 @@ export interface OperationRequestFunctionMap {
|
|
|
486
527
|
putOnboarding: PutOnboardingRequestFunction;
|
|
487
528
|
deleteOnboarding: DeleteOnboardingRequestFunction;
|
|
488
529
|
postOnboardingDecision: PostOnboardingDecisionRequestFunction;
|
|
530
|
+
getEnterprises: GetEnterprisesRequestFunction;
|
|
531
|
+
postEnterprise: PostEnterpriseRequestFunction;
|
|
532
|
+
getEnterprise: GetEnterpriseRequestFunction;
|
|
533
|
+
putEnterprise: PutEnterpriseRequestFunction;
|
|
534
|
+
deleteEnterprise: DeleteEnterpriseRequestFunction;
|
|
535
|
+
getEnterpriseBranches: GetEnterpriseBranchesRequestFunction;
|
|
536
|
+
postEnterpriseBranches: PostEnterpriseBranchesRequestFunction;
|
|
489
537
|
getCompanies: GetCompaniesRequestFunction;
|
|
490
538
|
postCompany: PostCompanyRequestFunction;
|
|
491
539
|
getCompany: GetCompanyRequestFunction;
|
|
@@ -623,6 +671,10 @@ export const requestFunctionsBuilder = (
|
|
|
623
671
|
operations.infoPartnerBranding,
|
|
624
672
|
requestAdapter
|
|
625
673
|
),
|
|
674
|
+
infoEnterprise: requestFunctionBuilder(
|
|
675
|
+
operations.infoEnterprise,
|
|
676
|
+
requestAdapter
|
|
677
|
+
),
|
|
626
678
|
getPartners: requestFunctionBuilder(operations.getPartners, requestAdapter),
|
|
627
679
|
postPartner: requestFunctionBuilder(operations.postPartner, requestAdapter),
|
|
628
680
|
getPartner: requestFunctionBuilder(operations.getPartner, requestAdapter),
|
|
@@ -659,6 +711,34 @@ export const requestFunctionsBuilder = (
|
|
|
659
711
|
operations.postOnboardingDecision,
|
|
660
712
|
requestAdapter
|
|
661
713
|
),
|
|
714
|
+
getEnterprises: requestFunctionBuilder(
|
|
715
|
+
operations.getEnterprises,
|
|
716
|
+
requestAdapter
|
|
717
|
+
),
|
|
718
|
+
postEnterprise: requestFunctionBuilder(
|
|
719
|
+
operations.postEnterprise,
|
|
720
|
+
requestAdapter
|
|
721
|
+
),
|
|
722
|
+
getEnterprise: requestFunctionBuilder(
|
|
723
|
+
operations.getEnterprise,
|
|
724
|
+
requestAdapter
|
|
725
|
+
),
|
|
726
|
+
putEnterprise: requestFunctionBuilder(
|
|
727
|
+
operations.putEnterprise,
|
|
728
|
+
requestAdapter
|
|
729
|
+
),
|
|
730
|
+
deleteEnterprise: requestFunctionBuilder(
|
|
731
|
+
operations.deleteEnterprise,
|
|
732
|
+
requestAdapter
|
|
733
|
+
),
|
|
734
|
+
getEnterpriseBranches: requestFunctionBuilder(
|
|
735
|
+
operations.getEnterpriseBranches,
|
|
736
|
+
requestAdapter
|
|
737
|
+
),
|
|
738
|
+
postEnterpriseBranches: requestFunctionBuilder(
|
|
739
|
+
operations.postEnterpriseBranches,
|
|
740
|
+
requestAdapter
|
|
741
|
+
),
|
|
662
742
|
getCompanies: requestFunctionBuilder(operations.getCompanies, requestAdapter),
|
|
663
743
|
postCompany: requestFunctionBuilder(operations.postCompany, requestAdapter),
|
|
664
744
|
getCompany: requestFunctionBuilder(operations.getCompany, requestAdapter),
|
|
@@ -967,6 +1047,12 @@ export const infoPartnerServiceBuilder = (
|
|
|
967
1047
|
infoPartnerBranding: requestFunctions.infoPartnerBranding,
|
|
968
1048
|
});
|
|
969
1049
|
|
|
1050
|
+
export const infoEnterpriseServiceBuilder = (
|
|
1051
|
+
requestFunctions: OperationRequestFunctionMap
|
|
1052
|
+
) => ({
|
|
1053
|
+
infoEnterprise: requestFunctions.infoEnterprise,
|
|
1054
|
+
});
|
|
1055
|
+
|
|
970
1056
|
export const partnerServiceBuilder = (
|
|
971
1057
|
requestFunctions: OperationRequestFunctionMap
|
|
972
1058
|
) => ({
|
|
@@ -989,6 +1075,18 @@ export const onboardingServiceBuilder = (
|
|
|
989
1075
|
postOnboardingDecision: requestFunctions.postOnboardingDecision,
|
|
990
1076
|
});
|
|
991
1077
|
|
|
1078
|
+
export const enterpriseServiceBuilder = (
|
|
1079
|
+
requestFunctions: OperationRequestFunctionMap
|
|
1080
|
+
) => ({
|
|
1081
|
+
getEnterprises: requestFunctions.getEnterprises,
|
|
1082
|
+
postEnterprise: requestFunctions.postEnterprise,
|
|
1083
|
+
getEnterprise: requestFunctions.getEnterprise,
|
|
1084
|
+
putEnterprise: requestFunctions.putEnterprise,
|
|
1085
|
+
deleteEnterprise: requestFunctions.deleteEnterprise,
|
|
1086
|
+
getEnterpriseBranches: requestFunctions.getEnterpriseBranches,
|
|
1087
|
+
postEnterpriseBranches: requestFunctions.postEnterpriseBranches,
|
|
1088
|
+
});
|
|
1089
|
+
|
|
992
1090
|
export const companyServiceBuilder = (
|
|
993
1091
|
requestFunctions: OperationRequestFunctionMap
|
|
994
1092
|
) => ({
|
|
@@ -1109,6 +1207,7 @@ export interface Operations {
|
|
|
1109
1207
|
infoDeleteCache: typeof infoDeleteCacheOperation;
|
|
1110
1208
|
getInfoEntity: typeof getInfoEntityOperation;
|
|
1111
1209
|
infoPartnerBranding: typeof infoPartnerBrandingOperation;
|
|
1210
|
+
infoEnterprise: typeof infoEnterpriseOperation;
|
|
1112
1211
|
getPartners: typeof getPartnersOperation;
|
|
1113
1212
|
postPartner: typeof postPartnerOperation;
|
|
1114
1213
|
getPartner: typeof getPartnerOperation;
|
|
@@ -1121,6 +1220,13 @@ export interface Operations {
|
|
|
1121
1220
|
putOnboarding: typeof putOnboardingOperation;
|
|
1122
1221
|
deleteOnboarding: typeof deleteOnboardingOperation;
|
|
1123
1222
|
postOnboardingDecision: typeof postOnboardingDecisionOperation;
|
|
1223
|
+
getEnterprises: typeof getEnterprisesOperation;
|
|
1224
|
+
postEnterprise: typeof postEnterpriseOperation;
|
|
1225
|
+
getEnterprise: typeof getEnterpriseOperation;
|
|
1226
|
+
putEnterprise: typeof putEnterpriseOperation;
|
|
1227
|
+
deleteEnterprise: typeof deleteEnterpriseOperation;
|
|
1228
|
+
getEnterpriseBranches: typeof getEnterpriseBranchesOperation;
|
|
1229
|
+
postEnterpriseBranches: typeof postEnterpriseBranchesOperation;
|
|
1124
1230
|
getCompanies: typeof getCompaniesOperation;
|
|
1125
1231
|
postCompany: typeof postCompanyOperation;
|
|
1126
1232
|
getCompany: typeof getCompanyOperation;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type InfoEnterpriseRequestParameters = {
|
|
5
|
+
eid?: string;
|
|
6
|
+
bid?: string;
|
|
7
|
+
branch_code?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const infoEnterpriseOperation = {
|
|
11
|
+
path: "/api/info/enterprise",
|
|
12
|
+
method: "get",
|
|
13
|
+
responses: {
|
|
14
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Enterprise },
|
|
15
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
16
|
+
},
|
|
17
|
+
parameters: [
|
|
18
|
+
{
|
|
19
|
+
_tag: "FormParameter",
|
|
20
|
+
explode: true,
|
|
21
|
+
in: "query",
|
|
22
|
+
name: "eid",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
_tag: "FormParameter",
|
|
26
|
+
explode: true,
|
|
27
|
+
in: "query",
|
|
28
|
+
name: "bid",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
_tag: "FormParameter",
|
|
32
|
+
explode: true,
|
|
33
|
+
in: "query",
|
|
34
|
+
name: "branch_code",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
38
|
+
} as const;
|
|
39
|
+
|
|
40
|
+
export type InfoEnterpriseRequestFunction = RequestFunction<
|
|
41
|
+
{ params: InfoEnterpriseRequestParameters },
|
|
42
|
+
schemas.Enterprise
|
|
43
|
+
>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export const postEnterpriseOperation = {
|
|
5
|
+
path: "/api/enterprise",
|
|
6
|
+
method: "post",
|
|
7
|
+
responses: {
|
|
8
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Enterprise },
|
|
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 PostEnterpriseRequestFunction = RequestFunction<
|
|
22
|
+
{ body: schemas.Enterprise },
|
|
23
|
+
schemas.Enterprise
|
|
24
|
+
>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as t from "io-ts";
|
|
3
|
+
import * as schemas from "../components/schemas";
|
|
4
|
+
|
|
5
|
+
export type PostEnterpriseBranchesRequestParameters = {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const postEnterpriseBranchesOperation = {
|
|
10
|
+
path: "/api/enterprise/{id}/branch",
|
|
11
|
+
method: "post",
|
|
12
|
+
responses: {
|
|
13
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.Enterprise) },
|
|
14
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
15
|
+
},
|
|
16
|
+
parameters: [
|
|
17
|
+
{
|
|
18
|
+
_tag: "FormParameter",
|
|
19
|
+
explode: false,
|
|
20
|
+
in: "path",
|
|
21
|
+
name: "id",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
requestDefaultHeaders: {
|
|
25
|
+
"Content-Type": "application/json",
|
|
26
|
+
Accept: "application/json",
|
|
27
|
+
},
|
|
28
|
+
body: {
|
|
29
|
+
_tag: "JsonBody",
|
|
30
|
+
},
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
export type PostEnterpriseBranchesRequestFunction = RequestFunction<
|
|
34
|
+
{
|
|
35
|
+
params: PostEnterpriseBranchesRequestParameters;
|
|
36
|
+
body: Array<schemas.Enterprise>;
|
|
37
|
+
},
|
|
38
|
+
Array<schemas.Enterprise>
|
|
39
|
+
>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type PutEnterpriseRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const putEnterpriseOperation = {
|
|
9
|
+
path: "/api/enterprise/{id}",
|
|
10
|
+
method: "put",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Enterprise },
|
|
13
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
14
|
+
},
|
|
15
|
+
parameters: [
|
|
16
|
+
{
|
|
17
|
+
_tag: "FormParameter",
|
|
18
|
+
explode: false,
|
|
19
|
+
in: "path",
|
|
20
|
+
name: "id",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
requestDefaultHeaders: {
|
|
24
|
+
"Content-Type": "application/json",
|
|
25
|
+
Accept: "application/json",
|
|
26
|
+
},
|
|
27
|
+
body: {
|
|
28
|
+
_tag: "JsonBody",
|
|
29
|
+
},
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
export type PutEnterpriseRequestFunction = RequestFunction<
|
|
33
|
+
{ params: PutEnterpriseRequestParameters; body: schemas.Enterprise },
|
|
34
|
+
schemas.Enterprise
|
|
35
|
+
>;
|