@kanda-libs/ks-component-ts 0.2.450 → 0.2.452

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.450",
3
+ "version": "0.2.452",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -2,6 +2,7 @@ import * as t from "io-ts";
2
2
  import { ApplicantDetails } from "./ApplicantDetails";
3
3
  import { Archived } from "./Archived";
4
4
  import { Budgets } from "./Budgets";
5
+ import { ConsumerSignature } from "./ConsumerSignature";
5
6
  import { Customer } from "./Customer";
6
7
  import { FlowType } from "./FlowType";
7
8
  import { IntroductionState } from "./IntroductionState";
@@ -24,7 +25,7 @@ export const Introduction = t.intersection([
24
25
  bid: t.string,
25
26
  tid: t.string,
26
27
  archived: Archived,
27
- consumer_signature: Signature,
28
+ consumer_signature: ConsumerSignature,
28
29
  consumer_details: ApplicantDetails,
29
30
  budgets: Budgets,
30
31
  trader: Trader,
@@ -48,7 +49,7 @@ export interface Introduction {
48
49
  tid?: string;
49
50
  archived?: Archived;
50
51
  consumer: Customer;
51
- consumer_signature?: Signature;
52
+ consumer_signature?: ConsumerSignature;
52
53
  consumer_details?: ApplicantDetails;
53
54
  budgets?: Budgets;
54
55
  trader?: Trader;
@@ -402,6 +402,10 @@ import {
402
402
  postIntroductionJobDetailsOperation,
403
403
  PostIntroductionJobDetailsRequestFunction,
404
404
  } from "./postIntroductionJobDetails";
405
+ import {
406
+ postIntroductionNotificationOperation,
407
+ PostIntroductionNotificationRequestFunction,
408
+ } from "./postIntroductionNotification";
405
409
  import {
406
410
  postIntroductionRejectJobOperation,
407
411
  PostIntroductionRejectJobRequestFunction,
@@ -619,6 +623,7 @@ export const operations: Operations = {
619
623
  postIntroductionRejectJob: postIntroductionRejectJobOperation,
620
624
  submitIntroductionState: submitIntroductionStateOperation,
621
625
  postIntroductionConvertJob: postIntroductionConvertJobOperation,
626
+ postIntroductionNotification: postIntroductionNotificationOperation,
622
627
  getCompanies: getCompaniesOperation,
623
628
  postCompany: postCompanyOperation,
624
629
  getCompany: getCompanyOperation,
@@ -802,6 +807,7 @@ export interface OperationRequestFunctionMap {
802
807
  postIntroductionRejectJob: PostIntroductionRejectJobRequestFunction;
803
808
  submitIntroductionState: SubmitIntroductionStateRequestFunction;
804
809
  postIntroductionConvertJob: PostIntroductionConvertJobRequestFunction;
810
+ postIntroductionNotification: PostIntroductionNotificationRequestFunction;
805
811
  getCompanies: GetCompaniesRequestFunction;
806
812
  postCompany: PostCompanyRequestFunction;
807
813
  getCompany: GetCompanyRequestFunction;
@@ -1116,6 +1122,10 @@ export const requestFunctionsBuilder = (
1116
1122
  operations.postIntroductionConvertJob,
1117
1123
  requestAdapter
1118
1124
  ),
1125
+ postIntroductionNotification: requestFunctionBuilder(
1126
+ operations.postIntroductionNotification,
1127
+ requestAdapter
1128
+ ),
1119
1129
  getCompanies: requestFunctionBuilder(operations.getCompanies, requestAdapter),
1120
1130
  postCompany: requestFunctionBuilder(operations.postCompany, requestAdapter),
1121
1131
  getCompany: requestFunctionBuilder(operations.getCompany, requestAdapter),
@@ -1617,6 +1627,7 @@ export const introductionServiceBuilder = (
1617
1627
  postIntroductionRejectJob: requestFunctions.postIntroductionRejectJob,
1618
1628
  submitIntroductionState: requestFunctions.submitIntroductionState,
1619
1629
  postIntroductionConvertJob: requestFunctions.postIntroductionConvertJob,
1630
+ postIntroductionNotification: requestFunctions.postIntroductionNotification,
1620
1631
  });
1621
1632
 
1622
1633
  export const companyServiceBuilder = (
@@ -1820,6 +1831,7 @@ export interface Operations {
1820
1831
  postIntroductionRejectJob: typeof postIntroductionRejectJobOperation;
1821
1832
  submitIntroductionState: typeof submitIntroductionStateOperation;
1822
1833
  postIntroductionConvertJob: typeof postIntroductionConvertJobOperation;
1834
+ postIntroductionNotification: typeof postIntroductionNotificationOperation;
1823
1835
  getCompanies: typeof getCompaniesOperation;
1824
1836
  postCompany: typeof postCompanyOperation;
1825
1837
  getCompany: typeof getCompanyOperation;
@@ -0,0 +1,29 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export type PostIntroductionNotificationRequestParameters = {
5
+ id: string;
6
+ };
7
+
8
+ export const postIntroductionNotificationOperation = {
9
+ path: "/api/introduction/{id}/notification",
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 PostIntroductionNotificationRequestFunction = RequestFunction<
27
+ { params: PostIntroductionNotificationRequestParameters },
28
+ schemas.Introduction
29
+ >;