@kanda-libs/ks-component-ts 0.2.410 → 0.2.411
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 +12219 -12219
- 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/AuthUser.ts +2 -0
- package/src/generated/components/schemas/InfoSearch.ts +31 -0
- package/src/generated/components/schemas/PaymentOption.ts +2 -1
- package/src/generated/components/schemas/SearchHits.ts +19 -0
- package/src/generated/components/schemas/index.ts +2 -0
- package/src/generated/operations/index.ts +11 -0
- package/src/generated/operations/infoSearch.ts +24 -0
- package/src/generated/widget/index.tsx +62119 -62113
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ export const AuthUser = t.intersection([
|
|
|
23
23
|
phone: t.string,
|
|
24
24
|
photoURL: t.string,
|
|
25
25
|
disabled: t.boolean,
|
|
26
|
+
authorisation_url: t.string,
|
|
26
27
|
}),
|
|
27
28
|
]);
|
|
28
29
|
|
|
@@ -46,4 +47,5 @@ export interface AuthUser {
|
|
|
46
47
|
audience: string;
|
|
47
48
|
issuer: string;
|
|
48
49
|
verified: boolean;
|
|
50
|
+
authorisation_url?: string;
|
|
49
51
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { SearchHits } from "./SearchHits";
|
|
3
|
+
|
|
4
|
+
export const InfoSearch = t.intersection([
|
|
5
|
+
t.type({
|
|
6
|
+
q: t.string,
|
|
7
|
+
}),
|
|
8
|
+
t.partial({
|
|
9
|
+
index: t.union([
|
|
10
|
+
t.literal("company"),
|
|
11
|
+
t.literal("credit"),
|
|
12
|
+
t.literal("enterprise"),
|
|
13
|
+
t.literal("job"),
|
|
14
|
+
]),
|
|
15
|
+
sort: t.array(t.string),
|
|
16
|
+
offset: t.number,
|
|
17
|
+
limit: t.number,
|
|
18
|
+
total: t.number,
|
|
19
|
+
hits: SearchHits,
|
|
20
|
+
}),
|
|
21
|
+
]);
|
|
22
|
+
|
|
23
|
+
export interface InfoSearch {
|
|
24
|
+
index?: "company" | "credit" | "enterprise" | "job";
|
|
25
|
+
q: string;
|
|
26
|
+
sort?: Array<string>;
|
|
27
|
+
offset?: number;
|
|
28
|
+
limit?: number;
|
|
29
|
+
total?: number;
|
|
30
|
+
hits?: SearchHits;
|
|
31
|
+
}
|
|
@@ -8,6 +8,7 @@ export const PaymentOption = t.intersection([
|
|
|
8
8
|
t.literal("cash"),
|
|
9
9
|
t.literal("card"),
|
|
10
10
|
t.literal("loan"),
|
|
11
|
+
t.literal("external"),
|
|
11
12
|
]),
|
|
12
13
|
amount: Money,
|
|
13
14
|
}),
|
|
@@ -17,7 +18,7 @@ export const PaymentOption = t.intersection([
|
|
|
17
18
|
]);
|
|
18
19
|
|
|
19
20
|
export interface PaymentOption {
|
|
20
|
-
payment_method: "cash" | "card" | "loan";
|
|
21
|
+
payment_method: "cash" | "card" | "loan" | "external";
|
|
21
22
|
amount: Money;
|
|
22
23
|
provider?: FinanceProvider;
|
|
23
24
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Company } from "./Company";
|
|
3
|
+
import { Credit } from "./Credit";
|
|
4
|
+
import { Enterprise } from "./Enterprise";
|
|
5
|
+
import { Job } from "./Job";
|
|
6
|
+
|
|
7
|
+
export const SearchHits = t.type({
|
|
8
|
+
company: t.array(Company),
|
|
9
|
+
credit: t.array(Credit),
|
|
10
|
+
enterprise: t.array(Enterprise),
|
|
11
|
+
job: t.array(Job),
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export interface SearchHits {
|
|
15
|
+
company: Array<Company>;
|
|
16
|
+
credit: Array<Credit>;
|
|
17
|
+
enterprise: Array<Enterprise>;
|
|
18
|
+
job: Array<Job>;
|
|
19
|
+
}
|
|
@@ -59,6 +59,7 @@ export * from "./InfoMe";
|
|
|
59
59
|
export * from "./InfoOnboarding";
|
|
60
60
|
export * from "./InfoPartnerBranding";
|
|
61
61
|
export * from "./InfoQuery";
|
|
62
|
+
export * from "./InfoSearch";
|
|
62
63
|
export * from "./InfoSession";
|
|
63
64
|
export * from "./InfoStats";
|
|
64
65
|
export * from "./InfoTrade";
|
|
@@ -101,6 +102,7 @@ export * from "./RetiredDetails";
|
|
|
101
102
|
export * from "./Reward";
|
|
102
103
|
export * from "./SatNote";
|
|
103
104
|
export * from "./SatNoteTimeline";
|
|
105
|
+
export * from "./SearchHits";
|
|
104
106
|
export * from "./SelfEmployedDetails";
|
|
105
107
|
export * from "./Signature";
|
|
106
108
|
export * from "./SignDocument";
|
|
@@ -257,6 +257,7 @@ import {
|
|
|
257
257
|
} from "./infoPutCache";
|
|
258
258
|
import { infoQueryOperation, InfoQueryRequestFunction } from "./infoQuery";
|
|
259
259
|
import { infoRateOperation, InfoRateRequestFunction } from "./infoRate";
|
|
260
|
+
import { infoSearchOperation, InfoSearchRequestFunction } from "./infoSearch";
|
|
260
261
|
import {
|
|
261
262
|
infoSessionOperation,
|
|
262
263
|
InfoSessionRequestFunction,
|
|
@@ -480,6 +481,7 @@ export const operations: Operations = {
|
|
|
480
481
|
infoPutCache: infoPutCacheOperation,
|
|
481
482
|
infoDeleteCache: infoDeleteCacheOperation,
|
|
482
483
|
getInfoEntity: getInfoEntityOperation,
|
|
484
|
+
infoSearch: infoSearchOperation,
|
|
483
485
|
infoPartnerBranding: infoPartnerBrandingOperation,
|
|
484
486
|
infoEnterprise: infoEnterpriseOperation,
|
|
485
487
|
infoEnterpriseRole: infoEnterpriseRoleOperation,
|
|
@@ -638,6 +640,7 @@ export interface OperationRequestFunctionMap {
|
|
|
638
640
|
infoPutCache: InfoPutCacheRequestFunction;
|
|
639
641
|
infoDeleteCache: InfoDeleteCacheRequestFunction;
|
|
640
642
|
getInfoEntity: GetInfoEntityRequestFunction;
|
|
643
|
+
infoSearch: InfoSearchRequestFunction;
|
|
641
644
|
infoPartnerBranding: InfoPartnerBrandingRequestFunction;
|
|
642
645
|
infoEnterprise: InfoEnterpriseRequestFunction;
|
|
643
646
|
infoEnterpriseRole: InfoEnterpriseRoleRequestFunction;
|
|
@@ -825,6 +828,7 @@ export const requestFunctionsBuilder = (
|
|
|
825
828
|
operations.getInfoEntity,
|
|
826
829
|
requestAdapter
|
|
827
830
|
),
|
|
831
|
+
infoSearch: requestFunctionBuilder(operations.infoSearch, requestAdapter),
|
|
828
832
|
infoPartnerBranding: requestFunctionBuilder(
|
|
829
833
|
operations.infoPartnerBranding,
|
|
830
834
|
requestAdapter
|
|
@@ -1282,6 +1286,12 @@ export const infoEntityServiceBuilder = (
|
|
|
1282
1286
|
getInfoEntity: requestFunctions.getInfoEntity,
|
|
1283
1287
|
});
|
|
1284
1288
|
|
|
1289
|
+
export const infoSearchServiceBuilder = (
|
|
1290
|
+
requestFunctions: OperationRequestFunctionMap
|
|
1291
|
+
) => ({
|
|
1292
|
+
infoSearch: requestFunctions.infoSearch,
|
|
1293
|
+
});
|
|
1294
|
+
|
|
1285
1295
|
export const infoPartnerServiceBuilder = (
|
|
1286
1296
|
requestFunctions: OperationRequestFunctionMap
|
|
1287
1297
|
) => ({
|
|
@@ -1493,6 +1503,7 @@ export interface Operations {
|
|
|
1493
1503
|
infoPutCache: typeof infoPutCacheOperation;
|
|
1494
1504
|
infoDeleteCache: typeof infoDeleteCacheOperation;
|
|
1495
1505
|
getInfoEntity: typeof getInfoEntityOperation;
|
|
1506
|
+
infoSearch: typeof infoSearchOperation;
|
|
1496
1507
|
infoPartnerBranding: typeof infoPartnerBrandingOperation;
|
|
1497
1508
|
infoEnterprise: typeof infoEnterpriseOperation;
|
|
1498
1509
|
infoEnterpriseRole: typeof infoEnterpriseRoleOperation;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export const infoSearchOperation = {
|
|
5
|
+
path: "/api/info/search",
|
|
6
|
+
method: "put",
|
|
7
|
+
responses: {
|
|
8
|
+
"200": { _tag: "JsonResponse", decoder: schemas.InfoSearch },
|
|
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 InfoSearchRequestFunction = RequestFunction<
|
|
22
|
+
{ body: schemas.InfoSearch },
|
|
23
|
+
schemas.InfoSearch
|
|
24
|
+
>;
|