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

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.444",
3
+ "version": "0.2.446",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -3,5 +3,5 @@ import { HandleType, HandleProps } from "~/components/Handle/types";
3
3
  export interface FingerprintBooleanInputProps extends HandleProps {
4
4
  name?: string;
5
5
  handle: HandleType;
6
- fieldText?: string;
6
+ fieldText?: string | JSX.Element;
7
7
  }
@@ -7,6 +7,8 @@ export const IntroductionState = t.union([
7
7
  t.literal("consumer_details_provided"),
8
8
  t.literal("consumer_budgets_set"),
9
9
  t.literal("consumer_rejected"),
10
+ t.literal("consumer_is_accepted"),
11
+ t.literal("consumer_is_declined"),
10
12
  t.literal("job_details_provided"),
11
13
  t.literal("trader_sent"),
12
14
  t.literal("trader_viewed"),
@@ -27,6 +29,8 @@ export type IntroductionState =
27
29
  | "consumer_details_provided"
28
30
  | "consumer_budgets_set"
29
31
  | "consumer_rejected"
32
+ | "consumer_is_accepted"
33
+ | "consumer_is_declined"
30
34
  | "job_details_provided"
31
35
  | "trader_sent"
32
36
  | "trader_viewed"
@@ -378,6 +378,10 @@ import {
378
378
  postIntroductionOperation,
379
379
  PostIntroductionRequestFunction,
380
380
  } from "./postIntroduction";
381
+ import {
382
+ postIntroductionConsumerApplyOperation,
383
+ PostIntroductionConsumerApplyRequestFunction,
384
+ } from "./postIntroductionConsumerApply";
381
385
  import {
382
386
  postIntroductionConsumerDetailsOperation,
383
387
  PostIntroductionConsumerDetailsRequestFunction,
@@ -602,6 +606,7 @@ export const operations: Operations = {
602
606
  deleteIntroduction: deleteIntroductionOperation,
603
607
  postIntroductionConsumerSignature: postIntroductionConsumerSignatureOperation,
604
608
  postIntroductionConsumerDetails: postIntroductionConsumerDetailsOperation,
609
+ postIntroductionConsumerApply: postIntroductionConsumerApplyOperation,
605
610
  postIntroductionJobDetails: postIntroductionJobDetailsOperation,
606
611
  postIntroductionTrader: postIntroductionTraderOperation,
607
612
  postIntroductionTraderSignature: postIntroductionTraderSignatureOperation,
@@ -783,6 +788,7 @@ export interface OperationRequestFunctionMap {
783
788
  deleteIntroduction: DeleteIntroductionRequestFunction;
784
789
  postIntroductionConsumerSignature: PostIntroductionConsumerSignatureRequestFunction;
785
790
  postIntroductionConsumerDetails: PostIntroductionConsumerDetailsRequestFunction;
791
+ postIntroductionConsumerApply: PostIntroductionConsumerApplyRequestFunction;
786
792
  postIntroductionJobDetails: PostIntroductionJobDetailsRequestFunction;
787
793
  postIntroductionTrader: PostIntroductionTraderRequestFunction;
788
794
  postIntroductionTraderSignature: PostIntroductionTraderSignatureRequestFunction;
@@ -1068,6 +1074,10 @@ export const requestFunctionsBuilder = (
1068
1074
  operations.postIntroductionConsumerDetails,
1069
1075
  requestAdapter
1070
1076
  ),
1077
+ postIntroductionConsumerApply: requestFunctionBuilder(
1078
+ operations.postIntroductionConsumerApply,
1079
+ requestAdapter
1080
+ ),
1071
1081
  postIntroductionJobDetails: requestFunctionBuilder(
1072
1082
  operations.postIntroductionJobDetails,
1073
1083
  requestAdapter
@@ -1586,6 +1596,7 @@ export const introductionServiceBuilder = (
1586
1596
  requestFunctions.postIntroductionConsumerSignature,
1587
1597
  postIntroductionConsumerDetails:
1588
1598
  requestFunctions.postIntroductionConsumerDetails,
1599
+ postIntroductionConsumerApply: requestFunctions.postIntroductionConsumerApply,
1589
1600
  postIntroductionJobDetails: requestFunctions.postIntroductionJobDetails,
1590
1601
  postIntroductionTrader: requestFunctions.postIntroductionTrader,
1591
1602
  postIntroductionTraderSignature:
@@ -1788,6 +1799,7 @@ export interface Operations {
1788
1799
  deleteIntroduction: typeof deleteIntroductionOperation;
1789
1800
  postIntroductionConsumerSignature: typeof postIntroductionConsumerSignatureOperation;
1790
1801
  postIntroductionConsumerDetails: typeof postIntroductionConsumerDetailsOperation;
1802
+ postIntroductionConsumerApply: typeof postIntroductionConsumerApplyOperation;
1791
1803
  postIntroductionJobDetails: typeof postIntroductionJobDetailsOperation;
1792
1804
  postIntroductionTrader: typeof postIntroductionTraderOperation;
1793
1805
  postIntroductionTraderSignature: typeof postIntroductionTraderSignatureOperation;
@@ -0,0 +1,29 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export type PostIntroductionConsumerApplyRequestParameters = {
5
+ id: string;
6
+ };
7
+
8
+ export const postIntroductionConsumerApplyOperation = {
9
+ path: "/api/introduction/{id}/consumer-apply",
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: { Accept: "application/json" },
24
+ } as const;
25
+
26
+ export type PostIntroductionConsumerApplyRequestFunction = RequestFunction<
27
+ { params: PostIntroductionConsumerApplyRequestParameters },
28
+ schemas.Introduction
29
+ >;