@kanda-libs/ks-component-ts 0.2.430 → 0.2.432

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-component-ts",
3
- "version": "0.2.430",
3
+ "version": "0.2.432",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -7,16 +7,36 @@ import { Transaction } from "./Transaction";
7
7
 
8
8
  export const SearchHits = t.type({
9
9
  company: t.array(Company),
10
+ company_hits: t.number,
11
+ company_returned: t.number,
10
12
  credit: t.array(Credit),
13
+ credit_hits: t.number,
14
+ credit_returned: t.number,
11
15
  enterprise: t.array(Enterprise),
16
+ enterprise_hits: t.number,
17
+ enterprise_returned: t.number,
12
18
  job: t.array(Job),
19
+ job_hits: t.number,
20
+ job_returned: t.number,
13
21
  transaction: t.array(Transaction),
22
+ transaction_hits: t.number,
23
+ transaction_returned: t.number,
14
24
  });
15
25
 
16
26
  export interface SearchHits {
17
27
  company: Array<Company>;
28
+ company_hits: number;
29
+ company_returned: number;
18
30
  credit: Array<Credit>;
31
+ credit_hits: number;
32
+ credit_returned: number;
19
33
  enterprise: Array<Enterprise>;
34
+ enterprise_hits: number;
35
+ enterprise_returned: number;
20
36
  job: Array<Job>;
37
+ job_hits: number;
38
+ job_returned: number;
21
39
  transaction: Array<Transaction>;
40
+ transaction_hits: number;
41
+ transaction_returned: number;
22
42
  }
@@ -456,6 +456,10 @@ import {
456
456
  putEnterpriseOperation,
457
457
  PutEnterpriseRequestFunction,
458
458
  } from "./putEnterprise";
459
+ import {
460
+ putInfoStatsOperation,
461
+ PutInfoStatsRequestFunction,
462
+ } from "./putInfoStats";
459
463
  import {
460
464
  putIntroductionOperation,
461
465
  PutIntroductionRequestFunction,
@@ -551,6 +555,7 @@ export const operations: Operations = {
551
555
  infoEnterpriseRole: infoEnterpriseRoleOperation,
552
556
  infoLead: infoLeadOperation,
553
557
  infoStats: infoStatsOperation,
558
+ putInfoStats: putInfoStatsOperation,
554
559
  getPartners: getPartnersOperation,
555
560
  postPartner: postPartnerOperation,
556
561
  getPartner: getPartnerOperation,
@@ -726,6 +731,7 @@ export interface OperationRequestFunctionMap {
726
731
  infoEnterpriseRole: InfoEnterpriseRoleRequestFunction;
727
732
  infoLead: InfoLeadRequestFunction;
728
733
  infoStats: InfoStatsRequestFunction;
734
+ putInfoStats: PutInfoStatsRequestFunction;
729
735
  getPartners: GetPartnersRequestFunction;
730
736
  postPartner: PostPartnerRequestFunction;
731
737
  getPartner: GetPartnerRequestFunction;
@@ -939,6 +945,7 @@ export const requestFunctionsBuilder = (
939
945
  ),
940
946
  infoLead: requestFunctionBuilder(operations.infoLead, requestAdapter),
941
947
  infoStats: requestFunctionBuilder(operations.infoStats, requestAdapter),
948
+ putInfoStats: requestFunctionBuilder(operations.putInfoStats, requestAdapter),
942
949
  getPartners: requestFunctionBuilder(operations.getPartners, requestAdapter),
943
950
  postPartner: requestFunctionBuilder(operations.postPartner, requestAdapter),
944
951
  getPartner: requestFunctionBuilder(operations.getPartner, requestAdapter),
@@ -1480,6 +1487,7 @@ export const infoStatsServiceBuilder = (
1480
1487
  requestFunctions: OperationRequestFunctionMap
1481
1488
  ) => ({
1482
1489
  infoStats: requestFunctions.infoStats,
1490
+ putInfoStats: requestFunctions.putInfoStats,
1483
1491
  });
1484
1492
 
1485
1493
  export const partnerServiceBuilder = (
@@ -1696,6 +1704,7 @@ export interface Operations {
1696
1704
  infoEnterpriseRole: typeof infoEnterpriseRoleOperation;
1697
1705
  infoLead: typeof infoLeadOperation;
1698
1706
  infoStats: typeof infoStatsOperation;
1707
+ putInfoStats: typeof putInfoStatsOperation;
1699
1708
  getPartners: typeof getPartnersOperation;
1700
1709
  postPartner: typeof postPartnerOperation;
1701
1710
  getPartner: typeof getPartnerOperation;
@@ -0,0 +1,24 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export const putInfoStatsOperation = {
5
+ path: "/api/info/stats",
6
+ method: "put",
7
+ responses: {
8
+ "200": { _tag: "JsonResponse", decoder: schemas.InfoStats },
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 PutInfoStatsRequestFunction = RequestFunction<
22
+ { body: schemas.InfoSearch },
23
+ schemas.InfoStats
24
+ >;