@kanda-libs/ks-component-ts 0.2.419 → 0.2.420
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 +13394 -13373
- 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/LenderImport.ts +17 -0
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/exportFcaApproved.ts +13 -2
- package/src/generated/operations/importFcaApproved.ts +38 -0
- package/src/generated/operations/index.ts +12 -0
- package/src/generated/widget/index.tsx +62820 -62739
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
export const LenderImport = t.intersection([
|
|
4
|
+
t.type({
|
|
5
|
+
ibc_ref: t.string,
|
|
6
|
+
fca_number: t.string,
|
|
7
|
+
}),
|
|
8
|
+
t.partial({
|
|
9
|
+
cid: t.string,
|
|
10
|
+
}),
|
|
11
|
+
]);
|
|
12
|
+
|
|
13
|
+
export interface LenderImport {
|
|
14
|
+
ibc_ref: string;
|
|
15
|
+
cid?: string;
|
|
16
|
+
fca_number: string;
|
|
17
|
+
}
|
|
@@ -76,6 +76,7 @@ export * from "./LeadJobSummary";
|
|
|
76
76
|
export * from "./LeadQuote";
|
|
77
77
|
export * from "./LeadTrade";
|
|
78
78
|
export * from "./LenderConfig";
|
|
79
|
+
export * from "./LenderImport";
|
|
79
80
|
export * from "./LenderRateType";
|
|
80
81
|
export * from "./LimitedCompanyInfo";
|
|
81
82
|
export * from "./Metadata";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
2
|
import * as schemas from "../components/schemas";
|
|
3
3
|
|
|
4
|
+
export type ExportFcaApprovedRequestParameters = {
|
|
5
|
+
lender?: "humm" | "propensio";
|
|
6
|
+
};
|
|
7
|
+
|
|
4
8
|
export const exportFcaApprovedOperation = {
|
|
5
9
|
path: "/api/company/all/export-fca-approved",
|
|
6
10
|
method: "post",
|
|
@@ -8,11 +12,18 @@ export const exportFcaApprovedOperation = {
|
|
|
8
12
|
"200": { _tag: "JsonResponse", decoder: schemas.ExportCSV },
|
|
9
13
|
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
10
14
|
},
|
|
11
|
-
parameters: [
|
|
15
|
+
parameters: [
|
|
16
|
+
{
|
|
17
|
+
_tag: "FormParameter",
|
|
18
|
+
explode: true,
|
|
19
|
+
in: "query",
|
|
20
|
+
name: "lender",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
12
23
|
requestDefaultHeaders: { Accept: "application/json" },
|
|
13
24
|
} as const;
|
|
14
25
|
|
|
15
26
|
export type ExportFcaApprovedRequestFunction = RequestFunction<
|
|
16
|
-
|
|
27
|
+
{ params: ExportFcaApprovedRequestParameters },
|
|
17
28
|
schemas.ExportCSV
|
|
18
29
|
>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type ImportFcaApprovedRequestParameters = {
|
|
5
|
+
lender: "humm" | "propensio";
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const importFcaApprovedOperation = {
|
|
9
|
+
path: "/api/company/all/import-fca-approved",
|
|
10
|
+
method: "post",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.ExportCSV },
|
|
13
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
14
|
+
},
|
|
15
|
+
parameters: [
|
|
16
|
+
{
|
|
17
|
+
_tag: "FormParameter",
|
|
18
|
+
explode: true,
|
|
19
|
+
in: "query",
|
|
20
|
+
name: "lender",
|
|
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 ImportFcaApprovedRequestFunction = RequestFunction<
|
|
33
|
+
{
|
|
34
|
+
params: ImportFcaApprovedRequestParameters;
|
|
35
|
+
body: Array<schemas.LenderImport>;
|
|
36
|
+
},
|
|
37
|
+
schemas.ExportCSV
|
|
38
|
+
>;
|
|
@@ -193,6 +193,10 @@ import {
|
|
|
193
193
|
getTrainingsOperation,
|
|
194
194
|
GetTrainingsRequestFunction,
|
|
195
195
|
} from "./getTrainings";
|
|
196
|
+
import {
|
|
197
|
+
importFcaApprovedOperation,
|
|
198
|
+
ImportFcaApprovedRequestFunction,
|
|
199
|
+
} from "./importFcaApproved";
|
|
196
200
|
import { infoAuthOperation, InfoAuthRequestFunction } from "./infoAuth";
|
|
197
201
|
import {
|
|
198
202
|
infoCheckoutRedirectOperation,
|
|
@@ -525,6 +529,7 @@ export const operations: Operations = {
|
|
|
525
529
|
approveCompany: approveCompanyOperation,
|
|
526
530
|
declineCompany: declineCompanyOperation,
|
|
527
531
|
exportFcaApproved: exportFcaApprovedOperation,
|
|
532
|
+
importFcaApproved: importFcaApprovedOperation,
|
|
528
533
|
getJobs: getJobsOperation,
|
|
529
534
|
postJob: postJobOperation,
|
|
530
535
|
getJob: getJobOperation,
|
|
@@ -685,6 +690,7 @@ export interface OperationRequestFunctionMap {
|
|
|
685
690
|
approveCompany: ApproveCompanyRequestFunction;
|
|
686
691
|
declineCompany: DeclineCompanyRequestFunction;
|
|
687
692
|
exportFcaApproved: ExportFcaApprovedRequestFunction;
|
|
693
|
+
importFcaApproved: ImportFcaApprovedRequestFunction;
|
|
688
694
|
getJobs: GetJobsRequestFunction;
|
|
689
695
|
postJob: PostJobRequestFunction;
|
|
690
696
|
getJob: GetJobRequestFunction;
|
|
@@ -961,6 +967,10 @@ export const requestFunctionsBuilder = (
|
|
|
961
967
|
operations.exportFcaApproved,
|
|
962
968
|
requestAdapter
|
|
963
969
|
),
|
|
970
|
+
importFcaApproved: requestFunctionBuilder(
|
|
971
|
+
operations.importFcaApproved,
|
|
972
|
+
requestAdapter
|
|
973
|
+
),
|
|
964
974
|
getJobs: requestFunctionBuilder(operations.getJobs, requestAdapter),
|
|
965
975
|
postJob: requestFunctionBuilder(operations.postJob, requestAdapter),
|
|
966
976
|
getJob: requestFunctionBuilder(operations.getJob, requestAdapter),
|
|
@@ -1386,6 +1396,7 @@ export const companyServiceBuilder = (
|
|
|
1386
1396
|
approveCompany: requestFunctions.approveCompany,
|
|
1387
1397
|
declineCompany: requestFunctions.declineCompany,
|
|
1388
1398
|
exportFcaApproved: requestFunctions.exportFcaApproved,
|
|
1399
|
+
importFcaApproved: requestFunctions.importFcaApproved,
|
|
1389
1400
|
});
|
|
1390
1401
|
|
|
1391
1402
|
export const paymentServiceBuilder = (
|
|
@@ -1554,6 +1565,7 @@ export interface Operations {
|
|
|
1554
1565
|
approveCompany: typeof approveCompanyOperation;
|
|
1555
1566
|
declineCompany: typeof declineCompanyOperation;
|
|
1556
1567
|
exportFcaApproved: typeof exportFcaApprovedOperation;
|
|
1568
|
+
importFcaApproved: typeof importFcaApprovedOperation;
|
|
1557
1569
|
getJobs: typeof getJobsOperation;
|
|
1558
1570
|
postJob: typeof postJobOperation;
|
|
1559
1571
|
getJob: typeof getJobOperation;
|