@kanda-libs/ks-component-ts 0.2.415 → 0.2.416
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 +13367 -13367
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/operations/getCompanyReferrals.ts +30 -0
- package/src/generated/operations/index.ts +12 -0
- package/src/generated/widget/index.tsx +62177 -62177
package/package.json
CHANGED
|
@@ -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 GetCompanyReferralsRequestParameters = {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const getCompanyReferralsOperation = {
|
|
10
|
+
path: "/api/company/{id}/referrals",
|
|
11
|
+
method: "get",
|
|
12
|
+
responses: {
|
|
13
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.Referral) },
|
|
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 GetCompanyReferralsRequestFunction = RequestFunction<
|
|
28
|
+
{ params: GetCompanyReferralsRequestParameters },
|
|
29
|
+
Array<schemas.Referral>
|
|
30
|
+
>;
|
|
@@ -118,6 +118,10 @@ import {
|
|
|
118
118
|
getCompanyDirectorVerificationOperation,
|
|
119
119
|
GetCompanyDirectorVerificationRequestFunction,
|
|
120
120
|
} from "./getCompanyDirectorVerification";
|
|
121
|
+
import {
|
|
122
|
+
getCompanyReferralsOperation,
|
|
123
|
+
GetCompanyReferralsRequestFunction,
|
|
124
|
+
} from "./getCompanyReferrals";
|
|
121
125
|
import { getCreditOperation, GetCreditRequestFunction } from "./getCredit";
|
|
122
126
|
import { getCreditsOperation, GetCreditsRequestFunction } from "./getCredits";
|
|
123
127
|
import {
|
|
@@ -516,6 +520,7 @@ export const operations: Operations = {
|
|
|
516
520
|
getCompanyDirectorVerification: getCompanyDirectorVerificationOperation,
|
|
517
521
|
postCompanyDirectorVerification: postCompanyDirectorVerificationOperation,
|
|
518
522
|
directorCompany: directorCompanyOperation,
|
|
523
|
+
getCompanyReferrals: getCompanyReferralsOperation,
|
|
519
524
|
postCompanyReferrals: postCompanyReferralsOperation,
|
|
520
525
|
approveCompany: approveCompanyOperation,
|
|
521
526
|
declineCompany: declineCompanyOperation,
|
|
@@ -675,6 +680,7 @@ export interface OperationRequestFunctionMap {
|
|
|
675
680
|
getCompanyDirectorVerification: GetCompanyDirectorVerificationRequestFunction;
|
|
676
681
|
postCompanyDirectorVerification: PostCompanyDirectorVerificationRequestFunction;
|
|
677
682
|
directorCompany: DirectorCompanyRequestFunction;
|
|
683
|
+
getCompanyReferrals: GetCompanyReferralsRequestFunction;
|
|
678
684
|
postCompanyReferrals: PostCompanyReferralsRequestFunction;
|
|
679
685
|
approveCompany: ApproveCompanyRequestFunction;
|
|
680
686
|
declineCompany: DeclineCompanyRequestFunction;
|
|
@@ -935,6 +941,10 @@ export const requestFunctionsBuilder = (
|
|
|
935
941
|
operations.directorCompany,
|
|
936
942
|
requestAdapter
|
|
937
943
|
),
|
|
944
|
+
getCompanyReferrals: requestFunctionBuilder(
|
|
945
|
+
operations.getCompanyReferrals,
|
|
946
|
+
requestAdapter
|
|
947
|
+
),
|
|
938
948
|
postCompanyReferrals: requestFunctionBuilder(
|
|
939
949
|
operations.postCompanyReferrals,
|
|
940
950
|
requestAdapter
|
|
@@ -1371,6 +1381,7 @@ export const companyServiceBuilder = (
|
|
|
1371
1381
|
postCompanyDirectorVerification:
|
|
1372
1382
|
requestFunctions.postCompanyDirectorVerification,
|
|
1373
1383
|
directorCompany: requestFunctions.directorCompany,
|
|
1384
|
+
getCompanyReferrals: requestFunctions.getCompanyReferrals,
|
|
1374
1385
|
postCompanyReferrals: requestFunctions.postCompanyReferrals,
|
|
1375
1386
|
approveCompany: requestFunctions.approveCompany,
|
|
1376
1387
|
declineCompany: requestFunctions.declineCompany,
|
|
@@ -1538,6 +1549,7 @@ export interface Operations {
|
|
|
1538
1549
|
getCompanyDirectorVerification: typeof getCompanyDirectorVerificationOperation;
|
|
1539
1550
|
postCompanyDirectorVerification: typeof postCompanyDirectorVerificationOperation;
|
|
1540
1551
|
directorCompany: typeof directorCompanyOperation;
|
|
1552
|
+
getCompanyReferrals: typeof getCompanyReferralsOperation;
|
|
1541
1553
|
postCompanyReferrals: typeof postCompanyReferralsOperation;
|
|
1542
1554
|
approveCompany: typeof approveCompanyOperation;
|
|
1543
1555
|
declineCompany: typeof declineCompanyOperation;
|