@kanda-libs/ks-component-ts 0.3.3 → 0.3.5
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 +14749 -14707
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/components/parameters/datetime_from.ts +8 -0
- package/src/generated/components/parameters/datetime_to.ts +8 -0
- package/src/generated/components/parameters/index.ts +2 -0
- package/src/generated/components/schemas/IntroductionState.ts +4 -0
- package/src/generated/components/schemas/Job.ts +3 -0
- package/src/generated/components/schemas/JobDetails.ts +3 -0
- package/src/generated/components/schemas/Metarefs.ts +9 -0
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/exportEnterpriseDailyReport.ts +24 -0
- package/src/generated/operations/index.ts +39 -0
- package/src/generated/operations/postIntroductionAmendJobDetails.ts +38 -0
- package/src/generated/operations/postIntroductionTraderApproveAmended.ts +39 -0
- package/src/generated/widget/index.tsx +69358 -69241
package/package.json
CHANGED
|
@@ -10,9 +10,11 @@ export const IntroductionState = t.union([
|
|
|
10
10
|
t.literal("consumer_is_accepted"),
|
|
11
11
|
t.literal("consumer_is_declined"),
|
|
12
12
|
t.literal("job_details_provided"),
|
|
13
|
+
t.literal("job_details_amended"),
|
|
13
14
|
t.literal("trader_sent"),
|
|
14
15
|
t.literal("trader_viewed"),
|
|
15
16
|
t.literal("trader_agreed"),
|
|
17
|
+
t.literal("trader_agreed_amended"),
|
|
16
18
|
t.literal("trader_contact_provided"),
|
|
17
19
|
t.literal("trader_details_provided"),
|
|
18
20
|
t.literal("trader_rejected"),
|
|
@@ -32,9 +34,11 @@ export type IntroductionState =
|
|
|
32
34
|
| "consumer_is_accepted"
|
|
33
35
|
| "consumer_is_declined"
|
|
34
36
|
| "job_details_provided"
|
|
37
|
+
| "job_details_amended"
|
|
35
38
|
| "trader_sent"
|
|
36
39
|
| "trader_viewed"
|
|
37
40
|
| "trader_agreed"
|
|
41
|
+
| "trader_agreed_amended"
|
|
38
42
|
| "trader_contact_provided"
|
|
39
43
|
| "trader_details_provided"
|
|
40
44
|
| "trader_rejected"
|
|
@@ -9,6 +9,7 @@ import { FinanceStatus } from "./FinanceStatus";
|
|
|
9
9
|
import { FlowType } from "./FlowType";
|
|
10
10
|
import { JobItem } from "./JobItem";
|
|
11
11
|
import { Metadata } from "./Metadata";
|
|
12
|
+
import { Metarefs } from "./Metarefs";
|
|
12
13
|
import { Money } from "./Money";
|
|
13
14
|
import { MoneyTotal } from "./MoneyTotal";
|
|
14
15
|
import { Payment } from "./Payment";
|
|
@@ -64,6 +65,7 @@ export const Job = t.intersection([
|
|
|
64
65
|
xid: t.string,
|
|
65
66
|
xref: t.string,
|
|
66
67
|
redirect_urls: RedirectURLs,
|
|
68
|
+
metarefs: Metarefs,
|
|
67
69
|
metadata: Metadata,
|
|
68
70
|
}),
|
|
69
71
|
]);
|
|
@@ -102,5 +104,6 @@ export interface Job {
|
|
|
102
104
|
xid?: string;
|
|
103
105
|
xref?: string;
|
|
104
106
|
redirect_urls?: RedirectURLs;
|
|
107
|
+
metarefs?: Metarefs;
|
|
105
108
|
metadata?: Metadata;
|
|
106
109
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { JobItem } from "./JobItem";
|
|
3
|
+
import { Metarefs } from "./Metarefs";
|
|
3
4
|
import { MoneyTotal } from "./MoneyTotal";
|
|
4
5
|
|
|
5
6
|
export const JobDetails = t.intersection([
|
|
@@ -9,12 +10,14 @@ export const JobDetails = t.intersection([
|
|
|
9
10
|
items: t.array(JobItem),
|
|
10
11
|
}),
|
|
11
12
|
t.partial({
|
|
13
|
+
metarefs: Metarefs,
|
|
12
14
|
total: MoneyTotal,
|
|
13
15
|
}),
|
|
14
16
|
]);
|
|
15
17
|
|
|
16
18
|
export interface JobDetails {
|
|
17
19
|
reference: string;
|
|
20
|
+
metarefs?: Metarefs;
|
|
18
21
|
description: string;
|
|
19
22
|
items: Array<JobItem>;
|
|
20
23
|
total?: MoneyTotal;
|
|
@@ -95,6 +95,7 @@ export * from "./LenderImport";
|
|
|
95
95
|
export * from "./LenderRateType";
|
|
96
96
|
export * from "./LimitedCompanyInfo";
|
|
97
97
|
export * from "./Metadata";
|
|
98
|
+
export * from "./Metarefs";
|
|
98
99
|
export * from "./Money";
|
|
99
100
|
export * from "./MoneyTotal";
|
|
100
101
|
export * from "./Monitor";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as parameters from "../components/parameters";
|
|
3
|
+
import * as schemas from "../components/schemas";
|
|
4
|
+
|
|
5
|
+
export type ExportEnterpriseDailyReportRequestParameters = {
|
|
6
|
+
datetime_from?: string;
|
|
7
|
+
datetime_to?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const exportEnterpriseDailyReportOperation = {
|
|
11
|
+
path: "/api/enterprise/all/export-daily-report",
|
|
12
|
+
method: "post",
|
|
13
|
+
responses: {
|
|
14
|
+
"200": { _tag: "JsonResponse", decoder: schemas.ExportCSV },
|
|
15
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
16
|
+
},
|
|
17
|
+
parameters: [parameters.datetime_from, parameters.datetime_to],
|
|
18
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
19
|
+
} as const;
|
|
20
|
+
|
|
21
|
+
export type ExportEnterpriseDailyReportRequestFunction = RequestFunction<
|
|
22
|
+
{ params: ExportEnterpriseDailyReportRequestParameters },
|
|
23
|
+
schemas.ExportCSV
|
|
24
|
+
>;
|
|
@@ -109,6 +109,10 @@ import {
|
|
|
109
109
|
directorCompanyOperation,
|
|
110
110
|
DirectorCompanyRequestFunction,
|
|
111
111
|
} from "./directorCompany";
|
|
112
|
+
import {
|
|
113
|
+
exportEnterpriseDailyReportOperation,
|
|
114
|
+
ExportEnterpriseDailyReportRequestFunction,
|
|
115
|
+
} from "./exportEnterpriseDailyReport";
|
|
112
116
|
import {
|
|
113
117
|
exportFcaApprovedOperation,
|
|
114
118
|
ExportFcaApprovedRequestFunction,
|
|
@@ -385,6 +389,10 @@ import {
|
|
|
385
389
|
postIntroductionOperation,
|
|
386
390
|
PostIntroductionRequestFunction,
|
|
387
391
|
} from "./postIntroduction";
|
|
392
|
+
import {
|
|
393
|
+
postIntroductionAmendJobDetailsOperation,
|
|
394
|
+
PostIntroductionAmendJobDetailsRequestFunction,
|
|
395
|
+
} from "./postIntroductionAmendJobDetails";
|
|
388
396
|
import {
|
|
389
397
|
postIntroductionConsumerApplyOperation,
|
|
390
398
|
PostIntroductionConsumerApplyRequestFunction,
|
|
@@ -421,6 +429,10 @@ import {
|
|
|
421
429
|
postIntroductionTraderOperation,
|
|
422
430
|
PostIntroductionTraderRequestFunction,
|
|
423
431
|
} from "./postIntroductionTrader";
|
|
432
|
+
import {
|
|
433
|
+
postIntroductionTraderApproveAmendedOperation,
|
|
434
|
+
PostIntroductionTraderApproveAmendedRequestFunction,
|
|
435
|
+
} from "./postIntroductionTraderApproveAmended";
|
|
424
436
|
import {
|
|
425
437
|
postIntroductionTraderDetailsOperation,
|
|
426
438
|
PostIntroductionTraderDetailsRequestFunction,
|
|
@@ -615,6 +627,7 @@ export const operations: Operations = {
|
|
|
615
627
|
deleteEnterprise: deleteEnterpriseOperation,
|
|
616
628
|
getEnterpriseBranches: getEnterpriseBranchesOperation,
|
|
617
629
|
postEnterpriseBranches: postEnterpriseBranchesOperation,
|
|
630
|
+
exportEnterpriseDailyReport: exportEnterpriseDailyReportOperation,
|
|
618
631
|
getIntroductions: getIntroductionsOperation,
|
|
619
632
|
postIntroduction: postIntroductionOperation,
|
|
620
633
|
getIntroduction: getIntroductionOperation,
|
|
@@ -625,8 +638,11 @@ export const operations: Operations = {
|
|
|
625
638
|
postIntroductionConsumerBudgets: postIntroductionConsumerBudgetsOperation,
|
|
626
639
|
postIntroductionConsumerApply: postIntroductionConsumerApplyOperation,
|
|
627
640
|
postIntroductionJobDetails: postIntroductionJobDetailsOperation,
|
|
641
|
+
postIntroductionAmendJobDetails: postIntroductionAmendJobDetailsOperation,
|
|
628
642
|
postIntroductionTrader: postIntroductionTraderOperation,
|
|
629
643
|
postIntroductionTraderSignature: postIntroductionTraderSignatureOperation,
|
|
644
|
+
postIntroductionTraderApproveAmended:
|
|
645
|
+
postIntroductionTraderApproveAmendedOperation,
|
|
630
646
|
postIntroductionTraderDetails: postIntroductionTraderDetailsOperation,
|
|
631
647
|
postIntroductionRejectJob: postIntroductionRejectJobOperation,
|
|
632
648
|
submitIntroductionState: submitIntroductionStateOperation,
|
|
@@ -803,6 +819,7 @@ export interface OperationRequestFunctionMap {
|
|
|
803
819
|
deleteEnterprise: DeleteEnterpriseRequestFunction;
|
|
804
820
|
getEnterpriseBranches: GetEnterpriseBranchesRequestFunction;
|
|
805
821
|
postEnterpriseBranches: PostEnterpriseBranchesRequestFunction;
|
|
822
|
+
exportEnterpriseDailyReport: ExportEnterpriseDailyReportRequestFunction;
|
|
806
823
|
getIntroductions: GetIntroductionsRequestFunction;
|
|
807
824
|
postIntroduction: PostIntroductionRequestFunction;
|
|
808
825
|
getIntroduction: GetIntroductionRequestFunction;
|
|
@@ -813,8 +830,10 @@ export interface OperationRequestFunctionMap {
|
|
|
813
830
|
postIntroductionConsumerBudgets: PostIntroductionConsumerBudgetsRequestFunction;
|
|
814
831
|
postIntroductionConsumerApply: PostIntroductionConsumerApplyRequestFunction;
|
|
815
832
|
postIntroductionJobDetails: PostIntroductionJobDetailsRequestFunction;
|
|
833
|
+
postIntroductionAmendJobDetails: PostIntroductionAmendJobDetailsRequestFunction;
|
|
816
834
|
postIntroductionTrader: PostIntroductionTraderRequestFunction;
|
|
817
835
|
postIntroductionTraderSignature: PostIntroductionTraderSignatureRequestFunction;
|
|
836
|
+
postIntroductionTraderApproveAmended: PostIntroductionTraderApproveAmendedRequestFunction;
|
|
818
837
|
postIntroductionTraderDetails: PostIntroductionTraderDetailsRequestFunction;
|
|
819
838
|
postIntroductionRejectJob: PostIntroductionRejectJobRequestFunction;
|
|
820
839
|
submitIntroductionState: SubmitIntroductionStateRequestFunction;
|
|
@@ -1074,6 +1093,10 @@ export const requestFunctionsBuilder = (
|
|
|
1074
1093
|
operations.postEnterpriseBranches,
|
|
1075
1094
|
requestAdapter
|
|
1076
1095
|
),
|
|
1096
|
+
exportEnterpriseDailyReport: requestFunctionBuilder(
|
|
1097
|
+
operations.exportEnterpriseDailyReport,
|
|
1098
|
+
requestAdapter
|
|
1099
|
+
),
|
|
1077
1100
|
getIntroductions: requestFunctionBuilder(
|
|
1078
1101
|
operations.getIntroductions,
|
|
1079
1102
|
requestAdapter
|
|
@@ -1114,6 +1137,10 @@ export const requestFunctionsBuilder = (
|
|
|
1114
1137
|
operations.postIntroductionJobDetails,
|
|
1115
1138
|
requestAdapter
|
|
1116
1139
|
),
|
|
1140
|
+
postIntroductionAmendJobDetails: requestFunctionBuilder(
|
|
1141
|
+
operations.postIntroductionAmendJobDetails,
|
|
1142
|
+
requestAdapter
|
|
1143
|
+
),
|
|
1117
1144
|
postIntroductionTrader: requestFunctionBuilder(
|
|
1118
1145
|
operations.postIntroductionTrader,
|
|
1119
1146
|
requestAdapter
|
|
@@ -1122,6 +1149,10 @@ export const requestFunctionsBuilder = (
|
|
|
1122
1149
|
operations.postIntroductionTraderSignature,
|
|
1123
1150
|
requestAdapter
|
|
1124
1151
|
),
|
|
1152
|
+
postIntroductionTraderApproveAmended: requestFunctionBuilder(
|
|
1153
|
+
operations.postIntroductionTraderApproveAmended,
|
|
1154
|
+
requestAdapter
|
|
1155
|
+
),
|
|
1125
1156
|
postIntroductionTraderDetails: requestFunctionBuilder(
|
|
1126
1157
|
operations.postIntroductionTraderDetails,
|
|
1127
1158
|
requestAdapter
|
|
@@ -1627,6 +1658,7 @@ export const enterpriseServiceBuilder = (
|
|
|
1627
1658
|
deleteEnterprise: requestFunctions.deleteEnterprise,
|
|
1628
1659
|
getEnterpriseBranches: requestFunctions.getEnterpriseBranches,
|
|
1629
1660
|
postEnterpriseBranches: requestFunctions.postEnterpriseBranches,
|
|
1661
|
+
exportEnterpriseDailyReport: requestFunctions.exportEnterpriseDailyReport,
|
|
1630
1662
|
});
|
|
1631
1663
|
|
|
1632
1664
|
export const introductionServiceBuilder = (
|
|
@@ -1645,9 +1677,13 @@ export const introductionServiceBuilder = (
|
|
|
1645
1677
|
requestFunctions.postIntroductionConsumerBudgets,
|
|
1646
1678
|
postIntroductionConsumerApply: requestFunctions.postIntroductionConsumerApply,
|
|
1647
1679
|
postIntroductionJobDetails: requestFunctions.postIntroductionJobDetails,
|
|
1680
|
+
postIntroductionAmendJobDetails:
|
|
1681
|
+
requestFunctions.postIntroductionAmendJobDetails,
|
|
1648
1682
|
postIntroductionTrader: requestFunctions.postIntroductionTrader,
|
|
1649
1683
|
postIntroductionTraderSignature:
|
|
1650
1684
|
requestFunctions.postIntroductionTraderSignature,
|
|
1685
|
+
postIntroductionTraderApproveAmended:
|
|
1686
|
+
requestFunctions.postIntroductionTraderApproveAmended,
|
|
1651
1687
|
postIntroductionTraderDetails: requestFunctions.postIntroductionTraderDetails,
|
|
1652
1688
|
postIntroductionRejectJob: requestFunctions.postIntroductionRejectJob,
|
|
1653
1689
|
submitIntroductionState: requestFunctions.submitIntroductionState,
|
|
@@ -1849,6 +1885,7 @@ export interface Operations {
|
|
|
1849
1885
|
deleteEnterprise: typeof deleteEnterpriseOperation;
|
|
1850
1886
|
getEnterpriseBranches: typeof getEnterpriseBranchesOperation;
|
|
1851
1887
|
postEnterpriseBranches: typeof postEnterpriseBranchesOperation;
|
|
1888
|
+
exportEnterpriseDailyReport: typeof exportEnterpriseDailyReportOperation;
|
|
1852
1889
|
getIntroductions: typeof getIntroductionsOperation;
|
|
1853
1890
|
postIntroduction: typeof postIntroductionOperation;
|
|
1854
1891
|
getIntroduction: typeof getIntroductionOperation;
|
|
@@ -1859,8 +1896,10 @@ export interface Operations {
|
|
|
1859
1896
|
postIntroductionConsumerBudgets: typeof postIntroductionConsumerBudgetsOperation;
|
|
1860
1897
|
postIntroductionConsumerApply: typeof postIntroductionConsumerApplyOperation;
|
|
1861
1898
|
postIntroductionJobDetails: typeof postIntroductionJobDetailsOperation;
|
|
1899
|
+
postIntroductionAmendJobDetails: typeof postIntroductionAmendJobDetailsOperation;
|
|
1862
1900
|
postIntroductionTrader: typeof postIntroductionTraderOperation;
|
|
1863
1901
|
postIntroductionTraderSignature: typeof postIntroductionTraderSignatureOperation;
|
|
1902
|
+
postIntroductionTraderApproveAmended: typeof postIntroductionTraderApproveAmendedOperation;
|
|
1864
1903
|
postIntroductionTraderDetails: typeof postIntroductionTraderDetailsOperation;
|
|
1865
1904
|
postIntroductionRejectJob: typeof postIntroductionRejectJobOperation;
|
|
1866
1905
|
submitIntroductionState: typeof submitIntroductionStateOperation;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type PostIntroductionAmendJobDetailsRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const postIntroductionAmendJobDetailsOperation = {
|
|
9
|
+
path: "/api/introduction/{id}/amend-job-details",
|
|
10
|
+
method: "post",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Introduction },
|
|
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 PostIntroductionAmendJobDetailsRequestFunction = RequestFunction<
|
|
33
|
+
{
|
|
34
|
+
params: PostIntroductionAmendJobDetailsRequestParameters;
|
|
35
|
+
body: schemas.JobDetails;
|
|
36
|
+
},
|
|
37
|
+
schemas.Introduction
|
|
38
|
+
>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type PostIntroductionTraderApproveAmendedRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const postIntroductionTraderApproveAmendedOperation = {
|
|
9
|
+
path: "/api/introduction/{id}/trader-approve-amended",
|
|
10
|
+
method: "post",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Introduction },
|
|
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 PostIntroductionTraderApproveAmendedRequestFunction =
|
|
33
|
+
RequestFunction<
|
|
34
|
+
{
|
|
35
|
+
params: PostIntroductionTraderApproveAmendedRequestParameters;
|
|
36
|
+
body: schemas.Signature;
|
|
37
|
+
},
|
|
38
|
+
schemas.Introduction
|
|
39
|
+
>;
|