@kanda-libs/ks-component-ts 0.2.441 → 0.2.442

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.441",
3
+ "version": "0.2.442",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -2,12 +2,13 @@ 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 { ContactInfo } from "./ContactInfo";
6
5
  import { Customer } from "./Customer";
7
6
  import { FlowType } from "./FlowType";
8
7
  import { IntroductionState } from "./IntroductionState";
9
8
  import { JobDetails } from "./JobDetails";
10
9
  import { Metadata } from "./Metadata";
10
+ import { Signature } from "./Signature";
11
+ import { Trader } from "./Trader";
11
12
  import { TraderDetails } from "./TraderDetails";
12
13
 
13
14
  export const Introduction = t.intersection([
@@ -23,9 +24,11 @@ export const Introduction = t.intersection([
23
24
  bid: t.string,
24
25
  tid: t.string,
25
26
  archived: Archived,
27
+ consumer_signature: Signature,
26
28
  consumer_details: ApplicantDetails,
27
29
  budgets: Budgets,
28
- trader: ContactInfo,
30
+ trader: Trader,
31
+ trader_signature: Signature,
29
32
  trader_details: TraderDetails,
30
33
  job_details: JobDetails,
31
34
  current_state: IntroductionState,
@@ -45,9 +48,11 @@ export interface Introduction {
45
48
  tid?: string;
46
49
  archived?: Archived;
47
50
  consumer: Customer;
51
+ consumer_signature?: Signature;
48
52
  consumer_details?: ApplicantDetails;
49
53
  budgets?: Budgets;
50
- trader?: ContactInfo;
54
+ trader?: Trader;
55
+ trader_signature?: Signature;
51
56
  trader_details?: TraderDetails;
52
57
  job_details?: JobDetails;
53
58
  current_state?: IntroductionState;
@@ -0,0 +1,14 @@
1
+ import * as t from "io-ts";
2
+ import { Address } from "./Address";
3
+
4
+ export const Trader = t.type({
5
+ trading_name: t.string,
6
+ trading_address: Address,
7
+ vat_number: t.string,
8
+ });
9
+
10
+ export interface Trader {
11
+ trading_name: string;
12
+ trading_address: Address;
13
+ vat_number: string;
14
+ }
@@ -125,6 +125,7 @@ export * from "./TierConfig";
125
125
  export * from "./TierEvent";
126
126
  export * from "./Title";
127
127
  export * from "./TradeFilter";
128
+ export * from "./Trader";
128
129
  export * from "./TraderDetails";
129
130
  export * from "./TradeSummary";
130
131
  export * from "./TradeType";
@@ -382,6 +382,10 @@ import {
382
382
  postIntroductionConsumerDetailsOperation,
383
383
  PostIntroductionConsumerDetailsRequestFunction,
384
384
  } from "./postIntroductionConsumerDetails";
385
+ import {
386
+ postIntroductionConsumerSignatureOperation,
387
+ PostIntroductionConsumerSignatureRequestFunction,
388
+ } from "./postIntroductionConsumerSignature";
385
389
  import {
386
390
  postIntroductionConvertJobOperation,
387
391
  PostIntroductionConvertJobRequestFunction,
@@ -402,6 +406,10 @@ import {
402
406
  postIntroductionTraderDetailsOperation,
403
407
  PostIntroductionTraderDetailsRequestFunction,
404
408
  } from "./postIntroductionTraderDetails";
409
+ import {
410
+ postIntroductionTraderSignatureOperation,
411
+ PostIntroductionTraderSignatureRequestFunction,
412
+ } from "./postIntroductionTraderSignature";
405
413
  import { postJobOperation, PostJobRequestFunction } from "./postJob";
406
414
  import { postLeadOperation, PostLeadRequestFunction } from "./postLead";
407
415
  import { postMeOperation, PostMeRequestFunction } from "./postMe";
@@ -592,9 +600,11 @@ export const operations: Operations = {
592
600
  getIntroduction: getIntroductionOperation,
593
601
  putIntroduction: putIntroductionOperation,
594
602
  deleteIntroduction: deleteIntroductionOperation,
603
+ postIntroductionConsumerSignature: postIntroductionConsumerSignatureOperation,
595
604
  postIntroductionConsumerDetails: postIntroductionConsumerDetailsOperation,
596
605
  postIntroductionJobDetails: postIntroductionJobDetailsOperation,
597
606
  postIntroductionTrader: postIntroductionTraderOperation,
607
+ postIntroductionTraderSignature: postIntroductionTraderSignatureOperation,
598
608
  postIntroductionTraderDetails: postIntroductionTraderDetailsOperation,
599
609
  postIntroductionRejectJob: postIntroductionRejectJobOperation,
600
610
  submitIntroductionState: submitIntroductionStateOperation,
@@ -771,9 +781,11 @@ export interface OperationRequestFunctionMap {
771
781
  getIntroduction: GetIntroductionRequestFunction;
772
782
  putIntroduction: PutIntroductionRequestFunction;
773
783
  deleteIntroduction: DeleteIntroductionRequestFunction;
784
+ postIntroductionConsumerSignature: PostIntroductionConsumerSignatureRequestFunction;
774
785
  postIntroductionConsumerDetails: PostIntroductionConsumerDetailsRequestFunction;
775
786
  postIntroductionJobDetails: PostIntroductionJobDetailsRequestFunction;
776
787
  postIntroductionTrader: PostIntroductionTraderRequestFunction;
788
+ postIntroductionTraderSignature: PostIntroductionTraderSignatureRequestFunction;
777
789
  postIntroductionTraderDetails: PostIntroductionTraderDetailsRequestFunction;
778
790
  postIntroductionRejectJob: PostIntroductionRejectJobRequestFunction;
779
791
  submitIntroductionState: SubmitIntroductionStateRequestFunction;
@@ -1048,6 +1060,10 @@ export const requestFunctionsBuilder = (
1048
1060
  operations.deleteIntroduction,
1049
1061
  requestAdapter
1050
1062
  ),
1063
+ postIntroductionConsumerSignature: requestFunctionBuilder(
1064
+ operations.postIntroductionConsumerSignature,
1065
+ requestAdapter
1066
+ ),
1051
1067
  postIntroductionConsumerDetails: requestFunctionBuilder(
1052
1068
  operations.postIntroductionConsumerDetails,
1053
1069
  requestAdapter
@@ -1060,6 +1076,10 @@ export const requestFunctionsBuilder = (
1060
1076
  operations.postIntroductionTrader,
1061
1077
  requestAdapter
1062
1078
  ),
1079
+ postIntroductionTraderSignature: requestFunctionBuilder(
1080
+ operations.postIntroductionTraderSignature,
1081
+ requestAdapter
1082
+ ),
1063
1083
  postIntroductionTraderDetails: requestFunctionBuilder(
1064
1084
  operations.postIntroductionTraderDetails,
1065
1085
  requestAdapter
@@ -1562,10 +1582,14 @@ export const introductionServiceBuilder = (
1562
1582
  getIntroduction: requestFunctions.getIntroduction,
1563
1583
  putIntroduction: requestFunctions.putIntroduction,
1564
1584
  deleteIntroduction: requestFunctions.deleteIntroduction,
1585
+ postIntroductionConsumerSignature:
1586
+ requestFunctions.postIntroductionConsumerSignature,
1565
1587
  postIntroductionConsumerDetails:
1566
1588
  requestFunctions.postIntroductionConsumerDetails,
1567
1589
  postIntroductionJobDetails: requestFunctions.postIntroductionJobDetails,
1568
1590
  postIntroductionTrader: requestFunctions.postIntroductionTrader,
1591
+ postIntroductionTraderSignature:
1592
+ requestFunctions.postIntroductionTraderSignature,
1569
1593
  postIntroductionTraderDetails: requestFunctions.postIntroductionTraderDetails,
1570
1594
  postIntroductionRejectJob: requestFunctions.postIntroductionRejectJob,
1571
1595
  submitIntroductionState: requestFunctions.submitIntroductionState,
@@ -1762,9 +1786,11 @@ export interface Operations {
1762
1786
  getIntroduction: typeof getIntroductionOperation;
1763
1787
  putIntroduction: typeof putIntroductionOperation;
1764
1788
  deleteIntroduction: typeof deleteIntroductionOperation;
1789
+ postIntroductionConsumerSignature: typeof postIntroductionConsumerSignatureOperation;
1765
1790
  postIntroductionConsumerDetails: typeof postIntroductionConsumerDetailsOperation;
1766
1791
  postIntroductionJobDetails: typeof postIntroductionJobDetailsOperation;
1767
1792
  postIntroductionTrader: typeof postIntroductionTraderOperation;
1793
+ postIntroductionTraderSignature: typeof postIntroductionTraderSignatureOperation;
1768
1794
  postIntroductionTraderDetails: typeof postIntroductionTraderDetailsOperation;
1769
1795
  postIntroductionRejectJob: typeof postIntroductionRejectJobOperation;
1770
1796
  submitIntroductionState: typeof submitIntroductionStateOperation;
@@ -0,0 +1,38 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export type PostIntroductionConsumerSignatureRequestParameters = {
5
+ id: string;
6
+ };
7
+
8
+ export const postIntroductionConsumerSignatureOperation = {
9
+ path: "/api/introduction/{id}/consumer-signature",
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 PostIntroductionConsumerSignatureRequestFunction = RequestFunction<
33
+ {
34
+ params: PostIntroductionConsumerSignatureRequestParameters;
35
+ body: schemas.Signature;
36
+ },
37
+ schemas.Introduction
38
+ >;
@@ -0,0 +1,38 @@
1
+ import type { RequestFunction } from "@openapi-io-ts/runtime";
2
+ import * as schemas from "../components/schemas";
3
+
4
+ export type PostIntroductionTraderSignatureRequestParameters = {
5
+ id: string;
6
+ };
7
+
8
+ export const postIntroductionTraderSignatureOperation = {
9
+ path: "/api/introduction/{id}/trader-signature",
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 PostIntroductionTraderSignatureRequestFunction = RequestFunction<
33
+ {
34
+ params: PostIntroductionTraderSignatureRequestParameters;
35
+ body: schemas.Signature;
36
+ },
37
+ schemas.Introduction
38
+ >;