@kanda-libs/ks-component-ts 0.3.44 → 0.3.46
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 +13143 -12902
- 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/ActionRemark.ts +2 -2
- package/src/generated/components/schemas/InfoWorkType.ts +22 -0
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/index.ts +14 -0
- package/src/generated/operations/infoWorkType.ts +30 -0
- package/src/generated/widget/index.tsx +59087 -58156
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@ import * as t from "io-ts";
|
|
|
2
2
|
import { Archived } from "./Archived";
|
|
3
3
|
|
|
4
4
|
export const ActionRemark = t.type({
|
|
5
|
-
|
|
5
|
+
archive: Archived,
|
|
6
6
|
remark: t.string,
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
export interface ActionRemark {
|
|
10
|
-
|
|
10
|
+
archive: Archived;
|
|
11
11
|
remark: string;
|
|
12
12
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { FinanceProvider } from "./FinanceProvider";
|
|
3
|
+
import { FinanceRate } from "./FinanceRate";
|
|
4
|
+
import { WorkType } from "./WorkType";
|
|
5
|
+
|
|
6
|
+
export const InfoWorkType = t.intersection([
|
|
7
|
+
t.type({
|
|
8
|
+
product: t.string,
|
|
9
|
+
work_type: WorkType,
|
|
10
|
+
rates: t.array(FinanceRate),
|
|
11
|
+
}),
|
|
12
|
+
t.partial({
|
|
13
|
+
primary: FinanceProvider,
|
|
14
|
+
}),
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
export interface InfoWorkType {
|
|
18
|
+
product: string;
|
|
19
|
+
work_type: WorkType;
|
|
20
|
+
primary?: FinanceProvider;
|
|
21
|
+
rates: Array<FinanceRate>;
|
|
22
|
+
}
|
|
@@ -81,6 +81,7 @@ export * from "./InfoSession";
|
|
|
81
81
|
export * from "./InfoStats";
|
|
82
82
|
export * from "./InfoTrade";
|
|
83
83
|
export * from "./InfoValidationEmail";
|
|
84
|
+
export * from "./InfoWorkType";
|
|
84
85
|
export * from "./Introduction";
|
|
85
86
|
export * from "./IntroductionState";
|
|
86
87
|
export * from "./IntroductionStateRequest";
|
|
@@ -326,6 +326,10 @@ import {
|
|
|
326
326
|
InfoValidateEmailRequestFunction,
|
|
327
327
|
} from "./infoValidateEmail";
|
|
328
328
|
import { infoVerifyOperation, InfoVerifyRequestFunction } from "./infoVerify";
|
|
329
|
+
import {
|
|
330
|
+
infoWorkTypeOperation,
|
|
331
|
+
InfoWorkTypeRequestFunction,
|
|
332
|
+
} from "./infoWorkType";
|
|
329
333
|
import {
|
|
330
334
|
jobCheckoutLinkOperation,
|
|
331
335
|
JobCheckoutLinkRequestFunction,
|
|
@@ -605,6 +609,7 @@ export const operations: Operations = {
|
|
|
605
609
|
infoSession: infoSessionOperation,
|
|
606
610
|
infoClaimAccount: infoClaimAccountOperation,
|
|
607
611
|
infoRate: infoRateOperation,
|
|
612
|
+
infoWorkType: infoWorkTypeOperation,
|
|
608
613
|
infoLegacyRedirect: infoLegacyRedirectOperation,
|
|
609
614
|
infoCheckoutRedirect: infoCheckoutRedirectOperation,
|
|
610
615
|
infoIP: infoIPOperation,
|
|
@@ -800,6 +805,7 @@ export interface OperationRequestFunctionMap {
|
|
|
800
805
|
infoSession: InfoSessionRequestFunction;
|
|
801
806
|
infoClaimAccount: InfoClaimAccountRequestFunction;
|
|
802
807
|
infoRate: InfoRateRequestFunction;
|
|
808
|
+
infoWorkType: InfoWorkTypeRequestFunction;
|
|
803
809
|
infoLegacyRedirect: InfoLegacyRedirectRequestFunction;
|
|
804
810
|
infoCheckoutRedirect: InfoCheckoutRedirectRequestFunction;
|
|
805
811
|
infoIP: InfoIPRequestFunction;
|
|
@@ -1008,6 +1014,7 @@ export const requestFunctionsBuilder = (
|
|
|
1008
1014
|
requestAdapter
|
|
1009
1015
|
),
|
|
1010
1016
|
infoRate: requestFunctionBuilder(operations.infoRate, requestAdapter),
|
|
1017
|
+
infoWorkType: requestFunctionBuilder(operations.infoWorkType, requestAdapter),
|
|
1011
1018
|
infoLegacyRedirect: requestFunctionBuilder(
|
|
1012
1019
|
operations.infoLegacyRedirect,
|
|
1013
1020
|
requestAdapter
|
|
@@ -1583,6 +1590,12 @@ export const rateServiceBuilder = (
|
|
|
1583
1590
|
deleteRate: requestFunctions.deleteRate,
|
|
1584
1591
|
});
|
|
1585
1592
|
|
|
1593
|
+
export const infoWorkTypeServiceBuilder = (
|
|
1594
|
+
requestFunctions: OperationRequestFunctionMap
|
|
1595
|
+
) => ({
|
|
1596
|
+
infoWorkType: requestFunctions.infoWorkType,
|
|
1597
|
+
});
|
|
1598
|
+
|
|
1586
1599
|
export const infoRedirectServiceBuilder = (
|
|
1587
1600
|
requestFunctions: OperationRequestFunctionMap
|
|
1588
1601
|
) => ({
|
|
@@ -1891,6 +1904,7 @@ export interface Operations {
|
|
|
1891
1904
|
infoSession: typeof infoSessionOperation;
|
|
1892
1905
|
infoClaimAccount: typeof infoClaimAccountOperation;
|
|
1893
1906
|
infoRate: typeof infoRateOperation;
|
|
1907
|
+
infoWorkType: typeof infoWorkTypeOperation;
|
|
1894
1908
|
infoLegacyRedirect: typeof infoLegacyRedirectOperation;
|
|
1895
1909
|
infoCheckoutRedirect: typeof infoCheckoutRedirectOperation;
|
|
1896
1910
|
infoIP: typeof infoIPOperation;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RequestFunction } from "@kanda-libs/openapi-io-ts-runtime";
|
|
2
|
+
import * as t from "io-ts";
|
|
3
|
+
import * as schemas from "../components/schemas";
|
|
4
|
+
|
|
5
|
+
export type InfoWorkTypeRequestParameters = {
|
|
6
|
+
work_type?: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const infoWorkTypeOperation = {
|
|
10
|
+
path: "/api/info/work-type",
|
|
11
|
+
method: "get",
|
|
12
|
+
responses: {
|
|
13
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.InfoWorkType) },
|
|
14
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
15
|
+
},
|
|
16
|
+
parameters: [
|
|
17
|
+
{
|
|
18
|
+
_tag: "FormParameter",
|
|
19
|
+
explode: true,
|
|
20
|
+
in: "query",
|
|
21
|
+
name: "work_type",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type InfoWorkTypeRequestFunction = RequestFunction<
|
|
28
|
+
{ params: InfoWorkTypeRequestParameters },
|
|
29
|
+
Array<schemas.InfoWorkType>
|
|
30
|
+
>;
|