@kanda-libs/ks-component-ts 0.2.273 → 0.2.275

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.273",
3
+ "version": "0.2.275",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -5,7 +5,7 @@ import { LatLng } from "./LatLng";
5
5
  import { WorkType } from "./WorkType";
6
6
 
7
7
  export const TradeSummary = t.partial({
8
- cid: t.string,
8
+ id: t.string,
9
9
  contact_info: ContactInfo,
10
10
  trading_type: t.string,
11
11
  company_logo: Document,
@@ -15,7 +15,7 @@ export const TradeSummary = t.partial({
15
15
  });
16
16
 
17
17
  export interface TradeSummary {
18
- cid?: string;
18
+ id?: string;
19
19
  contact_info?: ContactInfo;
20
20
  trading_type?: string;
21
21
  company_logo?: Document;
@@ -212,6 +212,10 @@ import {
212
212
  infoSessionOperation,
213
213
  InfoSessionRequestFunction,
214
214
  } from "./infoSession";
215
+ import {
216
+ infoTradeSummaryOperation,
217
+ InfoTradeSummaryRequestFunction,
218
+ } from "./infoTradeSummary";
215
219
  import {
216
220
  infoValidateEmailOperation,
217
221
  InfoValidateEmailRequestFunction,
@@ -373,6 +377,7 @@ export const operations: Operations = {
373
377
  infoHealth: infoHealthOperation,
374
378
  infoGhost: infoGhostOperation,
375
379
  infoQuery: infoQueryOperation,
380
+ infoTradeSummary: infoTradeSummaryOperation,
376
381
  infoCompany: infoCompanyOperation,
377
382
  infoOnboarding: infoOnboardingOperation,
378
383
  infoDirector: infoDirectorOperation,
@@ -508,6 +513,7 @@ export interface OperationRequestFunctionMap {
508
513
  infoHealth: InfoHealthRequestFunction;
509
514
  infoGhost: InfoGhostRequestFunction;
510
515
  infoQuery: InfoQueryRequestFunction;
516
+ infoTradeSummary: InfoTradeSummaryRequestFunction;
511
517
  infoCompany: InfoCompanyRequestFunction;
512
518
  infoOnboarding: InfoOnboardingRequestFunction;
513
519
  infoDirector: InfoDirectorRequestFunction;
@@ -645,6 +651,10 @@ export const requestFunctionsBuilder = (
645
651
  infoHealth: requestFunctionBuilder(operations.infoHealth, requestAdapter),
646
652
  infoGhost: requestFunctionBuilder(operations.infoGhost, requestAdapter),
647
653
  infoQuery: requestFunctionBuilder(operations.infoQuery, requestAdapter),
654
+ infoTradeSummary: requestFunctionBuilder(
655
+ operations.infoTradeSummary,
656
+ requestAdapter
657
+ ),
648
658
  infoCompany: requestFunctionBuilder(operations.infoCompany, requestAdapter),
649
659
  infoOnboarding: requestFunctionBuilder(
650
660
  operations.infoOnboarding,
@@ -949,6 +959,12 @@ export const infoQueryServiceBuilder = (
949
959
  infoQuery: requestFunctions.infoQuery,
950
960
  });
951
961
 
962
+ export const tradeSummaryServiceBuilder = (
963
+ requestFunctions: OperationRequestFunctionMap
964
+ ) => ({
965
+ infoTradeSummary: requestFunctions.infoTradeSummary,
966
+ });
967
+
952
968
  export const infoCompanyServiceBuilder = (
953
969
  requestFunctions: OperationRequestFunctionMap
954
970
  ) => ({
@@ -1224,6 +1240,7 @@ export interface Operations {
1224
1240
  infoHealth: typeof infoHealthOperation;
1225
1241
  infoGhost: typeof infoGhostOperation;
1226
1242
  infoQuery: typeof infoQueryOperation;
1243
+ infoTradeSummary: typeof infoTradeSummaryOperation;
1227
1244
  infoCompany: typeof infoCompanyOperation;
1228
1245
  infoOnboarding: typeof infoOnboardingOperation;
1229
1246
  infoDirector: typeof infoDirectorOperation;
@@ -0,0 +1,30 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as t from "io-ts";
3
+ import * as schemas from "../components/schemas";
4
+
5
+ export type InfoTradeSummaryRequestParameters = {
6
+ id?: string;
7
+ };
8
+
9
+ export const infoTradeSummaryOperation = {
10
+ path: "/api/info/trade-summary",
11
+ method: "get",
12
+ responses: {
13
+ "200": { _tag: "JsonResponse", decoder: t.array(schemas.TradeSummary) },
14
+ default: { _tag: "JsonResponse", decoder: schemas.Error },
15
+ },
16
+ parameters: [
17
+ {
18
+ _tag: "FormParameter",
19
+ explode: true,
20
+ in: "query",
21
+ name: "id",
22
+ },
23
+ ],
24
+ requestDefaultHeaders: { Accept: "application/json" },
25
+ } as const;
26
+
27
+ export type InfoTradeSummaryRequestFunction = RequestFunction<
28
+ { params: InfoTradeSummaryRequestParameters },
29
+ Array<schemas.TradeSummary>
30
+ >;