@kanda-libs/ks-component-ts 0.2.446 → 0.2.448

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.446",
3
+ "version": "0.2.448",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -382,6 +382,10 @@ import {
382
382
  postIntroductionConsumerApplyOperation,
383
383
  PostIntroductionConsumerApplyRequestFunction,
384
384
  } from "./postIntroductionConsumerApply";
385
+ import {
386
+ postIntroductionConsumerBudgetsOperation,
387
+ PostIntroductionConsumerBudgetsRequestFunction,
388
+ } from "./postIntroductionConsumerBudgets";
385
389
  import {
386
390
  postIntroductionConsumerDetailsOperation,
387
391
  PostIntroductionConsumerDetailsRequestFunction,
@@ -606,6 +610,7 @@ export const operations: Operations = {
606
610
  deleteIntroduction: deleteIntroductionOperation,
607
611
  postIntroductionConsumerSignature: postIntroductionConsumerSignatureOperation,
608
612
  postIntroductionConsumerDetails: postIntroductionConsumerDetailsOperation,
613
+ postIntroductionConsumerBudgets: postIntroductionConsumerBudgetsOperation,
609
614
  postIntroductionConsumerApply: postIntroductionConsumerApplyOperation,
610
615
  postIntroductionJobDetails: postIntroductionJobDetailsOperation,
611
616
  postIntroductionTrader: postIntroductionTraderOperation,
@@ -788,6 +793,7 @@ export interface OperationRequestFunctionMap {
788
793
  deleteIntroduction: DeleteIntroductionRequestFunction;
789
794
  postIntroductionConsumerSignature: PostIntroductionConsumerSignatureRequestFunction;
790
795
  postIntroductionConsumerDetails: PostIntroductionConsumerDetailsRequestFunction;
796
+ postIntroductionConsumerBudgets: PostIntroductionConsumerBudgetsRequestFunction;
791
797
  postIntroductionConsumerApply: PostIntroductionConsumerApplyRequestFunction;
792
798
  postIntroductionJobDetails: PostIntroductionJobDetailsRequestFunction;
793
799
  postIntroductionTrader: PostIntroductionTraderRequestFunction;
@@ -1074,6 +1080,10 @@ export const requestFunctionsBuilder = (
1074
1080
  operations.postIntroductionConsumerDetails,
1075
1081
  requestAdapter
1076
1082
  ),
1083
+ postIntroductionConsumerBudgets: requestFunctionBuilder(
1084
+ operations.postIntroductionConsumerBudgets,
1085
+ requestAdapter
1086
+ ),
1077
1087
  postIntroductionConsumerApply: requestFunctionBuilder(
1078
1088
  operations.postIntroductionConsumerApply,
1079
1089
  requestAdapter
@@ -1596,6 +1606,8 @@ export const introductionServiceBuilder = (
1596
1606
  requestFunctions.postIntroductionConsumerSignature,
1597
1607
  postIntroductionConsumerDetails:
1598
1608
  requestFunctions.postIntroductionConsumerDetails,
1609
+ postIntroductionConsumerBudgets:
1610
+ requestFunctions.postIntroductionConsumerBudgets,
1599
1611
  postIntroductionConsumerApply: requestFunctions.postIntroductionConsumerApply,
1600
1612
  postIntroductionJobDetails: requestFunctions.postIntroductionJobDetails,
1601
1613
  postIntroductionTrader: requestFunctions.postIntroductionTrader,
@@ -1799,6 +1811,7 @@ export interface Operations {
1799
1811
  deleteIntroduction: typeof deleteIntroductionOperation;
1800
1812
  postIntroductionConsumerSignature: typeof postIntroductionConsumerSignatureOperation;
1801
1813
  postIntroductionConsumerDetails: typeof postIntroductionConsumerDetailsOperation;
1814
+ postIntroductionConsumerBudgets: typeof postIntroductionConsumerBudgetsOperation;
1802
1815
  postIntroductionConsumerApply: typeof postIntroductionConsumerApplyOperation;
1803
1816
  postIntroductionJobDetails: typeof postIntroductionJobDetailsOperation;
1804
1817
  postIntroductionTrader: typeof postIntroductionTraderOperation;
@@ -0,0 +1,38 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export type PostIntroductionConsumerBudgetsRequestParameters = {
5
+ id: string;
6
+ };
7
+
8
+ export const postIntroductionConsumerBudgetsOperation = {
9
+ path: "/api/introduction/{id}/consumer-budgets",
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 PostIntroductionConsumerBudgetsRequestFunction = RequestFunction<
33
+ {
34
+ params: PostIntroductionConsumerBudgetsRequestParameters;
35
+ body: schemas.Budgets;
36
+ },
37
+ schemas.Introduction
38
+ >;