@kanda-libs/ks-component-ts 0.2.440 → 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/dist/index.d.ts +14614 -14444
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/components/schemas/Archived.ts +5 -0
- package/src/generated/components/schemas/Credit.ts +2 -0
- package/src/generated/components/schemas/Introduction.ts +11 -3
- package/src/generated/components/schemas/IntroductionState.ts +4 -2
- package/src/generated/components/schemas/IntroductionStateRequest.ts +10 -0
- package/src/generated/components/schemas/Job.ts +5 -2
- package/src/generated/components/schemas/Payment.ts +2 -0
- package/src/generated/components/schemas/Trader.ts +14 -0
- package/src/generated/components/schemas/index.ts +3 -0
- package/src/generated/operations/index.ts +50 -0
- package/src/generated/operations/postIntroductionConsumerSignature.ts +38 -0
- package/src/generated/operations/postIntroductionRejectJob.ts +29 -0
- package/src/generated/operations/postIntroductionTraderSignature.ts +38 -0
- package/src/generated/operations/submitIntroductionState.ts +38 -0
- package/src/generated/widget/index.tsx +68220 -67642
package/package.json
CHANGED
|
@@ -53,6 +53,7 @@ export const Credit = t.intersection([
|
|
|
53
53
|
signature: Signature,
|
|
54
54
|
flow_type: FlowType,
|
|
55
55
|
quoted_to: t.string,
|
|
56
|
+
introduced_to: t.string,
|
|
56
57
|
metadata: Metadata,
|
|
57
58
|
}),
|
|
58
59
|
]);
|
|
@@ -94,5 +95,6 @@ export interface Credit {
|
|
|
94
95
|
signature?: Signature;
|
|
95
96
|
flow_type?: FlowType;
|
|
96
97
|
quoted_to?: string;
|
|
98
|
+
introduced_to?: string;
|
|
97
99
|
metadata?: Metadata;
|
|
98
100
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { ApplicantDetails } from "./ApplicantDetails";
|
|
3
|
+
import { Archived } from "./Archived";
|
|
3
4
|
import { Budgets } from "./Budgets";
|
|
4
|
-
import { ContactInfo } from "./ContactInfo";
|
|
5
5
|
import { Customer } from "./Customer";
|
|
6
6
|
import { FlowType } from "./FlowType";
|
|
7
7
|
import { IntroductionState } from "./IntroductionState";
|
|
8
8
|
import { JobDetails } from "./JobDetails";
|
|
9
9
|
import { Metadata } from "./Metadata";
|
|
10
|
+
import { Signature } from "./Signature";
|
|
11
|
+
import { Trader } from "./Trader";
|
|
10
12
|
import { TraderDetails } from "./TraderDetails";
|
|
11
13
|
|
|
12
14
|
export const Introduction = t.intersection([
|
|
@@ -21,9 +23,12 @@ export const Introduction = t.intersection([
|
|
|
21
23
|
eid: t.string,
|
|
22
24
|
bid: t.string,
|
|
23
25
|
tid: t.string,
|
|
26
|
+
archived: Archived,
|
|
27
|
+
consumer_signature: Signature,
|
|
24
28
|
consumer_details: ApplicantDetails,
|
|
25
29
|
budgets: Budgets,
|
|
26
|
-
trader:
|
|
30
|
+
trader: Trader,
|
|
31
|
+
trader_signature: Signature,
|
|
27
32
|
trader_details: TraderDetails,
|
|
28
33
|
job_details: JobDetails,
|
|
29
34
|
current_state: IntroductionState,
|
|
@@ -41,10 +46,13 @@ export interface Introduction {
|
|
|
41
46
|
eid?: string;
|
|
42
47
|
bid?: string;
|
|
43
48
|
tid?: string;
|
|
49
|
+
archived?: Archived;
|
|
44
50
|
consumer: Customer;
|
|
51
|
+
consumer_signature?: Signature;
|
|
45
52
|
consumer_details?: ApplicantDetails;
|
|
46
53
|
budgets?: Budgets;
|
|
47
|
-
trader?:
|
|
54
|
+
trader?: Trader;
|
|
55
|
+
trader_signature?: Signature;
|
|
48
56
|
trader_details?: TraderDetails;
|
|
49
57
|
job_details?: JobDetails;
|
|
50
58
|
current_state?: IntroductionState;
|
|
@@ -5,13 +5,14 @@ export const IntroductionState = t.union([
|
|
|
5
5
|
t.literal("consumer_viewed"),
|
|
6
6
|
t.literal("consumer_agreed"),
|
|
7
7
|
t.literal("consumer_details_provided"),
|
|
8
|
+
t.literal("consumer_budgets_set"),
|
|
8
9
|
t.literal("consumer_rejected"),
|
|
9
10
|
t.literal("trader_sent"),
|
|
10
11
|
t.literal("trader_viewed"),
|
|
11
12
|
t.literal("trader_agreed"),
|
|
12
|
-
t.literal("trader_rejected"),
|
|
13
13
|
t.literal("trader_contact_provided"),
|
|
14
14
|
t.literal("trader_details_provided"),
|
|
15
|
+
t.literal("trader_rejected"),
|
|
15
16
|
t.literal("trader_is_reviewed"),
|
|
16
17
|
t.literal("trader_is_verified"),
|
|
17
18
|
t.literal("trader_is_declined"),
|
|
@@ -23,13 +24,14 @@ export type IntroductionState =
|
|
|
23
24
|
| "consumer_viewed"
|
|
24
25
|
| "consumer_agreed"
|
|
25
26
|
| "consumer_details_provided"
|
|
27
|
+
| "consumer_budgets_set"
|
|
26
28
|
| "consumer_rejected"
|
|
27
29
|
| "trader_sent"
|
|
28
30
|
| "trader_viewed"
|
|
29
31
|
| "trader_agreed"
|
|
30
|
-
| "trader_rejected"
|
|
31
32
|
| "trader_contact_provided"
|
|
32
33
|
| "trader_details_provided"
|
|
34
|
+
| "trader_rejected"
|
|
33
35
|
| "trader_is_reviewed"
|
|
34
36
|
| "trader_is_verified"
|
|
35
37
|
| "trader_is_declined"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
+
import { Archived } from "./Archived";
|
|
2
3
|
import { CheckoutOption } from "./CheckoutOption";
|
|
3
4
|
import { Customer } from "./Customer";
|
|
4
5
|
import { CustomerOptions } from "./CustomerOptions";
|
|
@@ -39,7 +40,7 @@ export const Job = t.intersection([
|
|
|
39
40
|
customer: Customer,
|
|
40
41
|
total: MoneyTotal,
|
|
41
42
|
notes: t.array(t.string),
|
|
42
|
-
archived:
|
|
43
|
+
archived: Archived,
|
|
43
44
|
status: t.union([
|
|
44
45
|
t.literal("draft"),
|
|
45
46
|
t.literal("sent"),
|
|
@@ -58,6 +59,7 @@ export const Job = t.intersection([
|
|
|
58
59
|
job_type: t.union([t.literal("standard"), t.literal("solar")]),
|
|
59
60
|
flow_type: FlowType,
|
|
60
61
|
quoted_to: t.string,
|
|
62
|
+
introduced_to: t.string,
|
|
61
63
|
job_documents: t.array(Document),
|
|
62
64
|
xid: t.string,
|
|
63
65
|
xref: t.string,
|
|
@@ -82,7 +84,7 @@ export interface Job {
|
|
|
82
84
|
job_items: Array<JobItem>;
|
|
83
85
|
total?: MoneyTotal;
|
|
84
86
|
notes?: Array<string>;
|
|
85
|
-
archived?:
|
|
87
|
+
archived?: Archived;
|
|
86
88
|
status?: "draft" | "sent" | "accepted" | "declined" | "finished";
|
|
87
89
|
finance_status?: FinanceStatus;
|
|
88
90
|
work_type?: WorkType;
|
|
@@ -95,6 +97,7 @@ export interface Job {
|
|
|
95
97
|
job_type?: "standard" | "solar";
|
|
96
98
|
flow_type?: FlowType;
|
|
97
99
|
quoted_to?: string;
|
|
100
|
+
introduced_to?: string;
|
|
98
101
|
job_documents?: Array<Document>;
|
|
99
102
|
xid?: string;
|
|
100
103
|
xref?: string;
|
|
@@ -29,6 +29,7 @@ export const Payment = t.intersection([
|
|
|
29
29
|
]),
|
|
30
30
|
flow_type: FlowType,
|
|
31
31
|
quoted_to: t.string,
|
|
32
|
+
introduced_to: t.string,
|
|
32
33
|
metadata: Metadata,
|
|
33
34
|
}),
|
|
34
35
|
]);
|
|
@@ -55,5 +56,6 @@ export interface Payment {
|
|
|
55
56
|
| "refunded";
|
|
56
57
|
flow_type?: FlowType;
|
|
57
58
|
quoted_to?: string;
|
|
59
|
+
introduced_to?: string;
|
|
58
60
|
metadata?: Metadata;
|
|
59
61
|
}
|
|
@@ -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
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./Analytics";
|
|
|
3
3
|
export * from "./ApiEvent";
|
|
4
4
|
export * from "./ApplicantDetails";
|
|
5
5
|
export * from "./Approval";
|
|
6
|
+
export * from "./Archived";
|
|
6
7
|
export * from "./AuthUser";
|
|
7
8
|
export * from "./BankAccount";
|
|
8
9
|
export * from "./BankAccountType";
|
|
@@ -69,6 +70,7 @@ export * from "./InfoTrade";
|
|
|
69
70
|
export * from "./InfoValidationEmail";
|
|
70
71
|
export * from "./Introduction";
|
|
71
72
|
export * from "./IntroductionState";
|
|
73
|
+
export * from "./IntroductionStateRequest";
|
|
72
74
|
export * from "./Job";
|
|
73
75
|
export * from "./JobCompanyInfo";
|
|
74
76
|
export * from "./JobCreditState";
|
|
@@ -123,6 +125,7 @@ export * from "./TierConfig";
|
|
|
123
125
|
export * from "./TierEvent";
|
|
124
126
|
export * from "./Title";
|
|
125
127
|
export * from "./TradeFilter";
|
|
128
|
+
export * from "./Trader";
|
|
126
129
|
export * from "./TraderDetails";
|
|
127
130
|
export * from "./TradeSummary";
|
|
128
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,
|
|
@@ -390,6 +394,10 @@ import {
|
|
|
390
394
|
postIntroductionJobDetailsOperation,
|
|
391
395
|
PostIntroductionJobDetailsRequestFunction,
|
|
392
396
|
} from "./postIntroductionJobDetails";
|
|
397
|
+
import {
|
|
398
|
+
postIntroductionRejectJobOperation,
|
|
399
|
+
PostIntroductionRejectJobRequestFunction,
|
|
400
|
+
} from "./postIntroductionRejectJob";
|
|
393
401
|
import {
|
|
394
402
|
postIntroductionTraderOperation,
|
|
395
403
|
PostIntroductionTraderRequestFunction,
|
|
@@ -398,6 +406,10 @@ import {
|
|
|
398
406
|
postIntroductionTraderDetailsOperation,
|
|
399
407
|
PostIntroductionTraderDetailsRequestFunction,
|
|
400
408
|
} from "./postIntroductionTraderDetails";
|
|
409
|
+
import {
|
|
410
|
+
postIntroductionTraderSignatureOperation,
|
|
411
|
+
PostIntroductionTraderSignatureRequestFunction,
|
|
412
|
+
} from "./postIntroductionTraderSignature";
|
|
401
413
|
import { postJobOperation, PostJobRequestFunction } from "./postJob";
|
|
402
414
|
import { postLeadOperation, PostLeadRequestFunction } from "./postLead";
|
|
403
415
|
import { postMeOperation, PostMeRequestFunction } from "./postMe";
|
|
@@ -511,6 +523,10 @@ import {
|
|
|
511
523
|
signJobSatNoteOperation,
|
|
512
524
|
SignJobSatNoteRequestFunction,
|
|
513
525
|
} from "./signJobSatNote";
|
|
526
|
+
import {
|
|
527
|
+
submitIntroductionStateOperation,
|
|
528
|
+
SubmitIntroductionStateRequestFunction,
|
|
529
|
+
} from "./submitIntroductionState";
|
|
514
530
|
import { tradeLeadOperation, TradeLeadRequestFunction } from "./tradeLead";
|
|
515
531
|
import {
|
|
516
532
|
tradeQuoteApprovalLeadOperation,
|
|
@@ -584,10 +600,14 @@ export const operations: Operations = {
|
|
|
584
600
|
getIntroduction: getIntroductionOperation,
|
|
585
601
|
putIntroduction: putIntroductionOperation,
|
|
586
602
|
deleteIntroduction: deleteIntroductionOperation,
|
|
603
|
+
postIntroductionConsumerSignature: postIntroductionConsumerSignatureOperation,
|
|
587
604
|
postIntroductionConsumerDetails: postIntroductionConsumerDetailsOperation,
|
|
588
605
|
postIntroductionJobDetails: postIntroductionJobDetailsOperation,
|
|
589
606
|
postIntroductionTrader: postIntroductionTraderOperation,
|
|
607
|
+
postIntroductionTraderSignature: postIntroductionTraderSignatureOperation,
|
|
590
608
|
postIntroductionTraderDetails: postIntroductionTraderDetailsOperation,
|
|
609
|
+
postIntroductionRejectJob: postIntroductionRejectJobOperation,
|
|
610
|
+
submitIntroductionState: submitIntroductionStateOperation,
|
|
591
611
|
postIntroductionConvertJob: postIntroductionConvertJobOperation,
|
|
592
612
|
getCompanies: getCompaniesOperation,
|
|
593
613
|
postCompany: postCompanyOperation,
|
|
@@ -761,10 +781,14 @@ export interface OperationRequestFunctionMap {
|
|
|
761
781
|
getIntroduction: GetIntroductionRequestFunction;
|
|
762
782
|
putIntroduction: PutIntroductionRequestFunction;
|
|
763
783
|
deleteIntroduction: DeleteIntroductionRequestFunction;
|
|
784
|
+
postIntroductionConsumerSignature: PostIntroductionConsumerSignatureRequestFunction;
|
|
764
785
|
postIntroductionConsumerDetails: PostIntroductionConsumerDetailsRequestFunction;
|
|
765
786
|
postIntroductionJobDetails: PostIntroductionJobDetailsRequestFunction;
|
|
766
787
|
postIntroductionTrader: PostIntroductionTraderRequestFunction;
|
|
788
|
+
postIntroductionTraderSignature: PostIntroductionTraderSignatureRequestFunction;
|
|
767
789
|
postIntroductionTraderDetails: PostIntroductionTraderDetailsRequestFunction;
|
|
790
|
+
postIntroductionRejectJob: PostIntroductionRejectJobRequestFunction;
|
|
791
|
+
submitIntroductionState: SubmitIntroductionStateRequestFunction;
|
|
768
792
|
postIntroductionConvertJob: PostIntroductionConvertJobRequestFunction;
|
|
769
793
|
getCompanies: GetCompaniesRequestFunction;
|
|
770
794
|
postCompany: PostCompanyRequestFunction;
|
|
@@ -1036,6 +1060,10 @@ export const requestFunctionsBuilder = (
|
|
|
1036
1060
|
operations.deleteIntroduction,
|
|
1037
1061
|
requestAdapter
|
|
1038
1062
|
),
|
|
1063
|
+
postIntroductionConsumerSignature: requestFunctionBuilder(
|
|
1064
|
+
operations.postIntroductionConsumerSignature,
|
|
1065
|
+
requestAdapter
|
|
1066
|
+
),
|
|
1039
1067
|
postIntroductionConsumerDetails: requestFunctionBuilder(
|
|
1040
1068
|
operations.postIntroductionConsumerDetails,
|
|
1041
1069
|
requestAdapter
|
|
@@ -1048,10 +1076,22 @@ export const requestFunctionsBuilder = (
|
|
|
1048
1076
|
operations.postIntroductionTrader,
|
|
1049
1077
|
requestAdapter
|
|
1050
1078
|
),
|
|
1079
|
+
postIntroductionTraderSignature: requestFunctionBuilder(
|
|
1080
|
+
operations.postIntroductionTraderSignature,
|
|
1081
|
+
requestAdapter
|
|
1082
|
+
),
|
|
1051
1083
|
postIntroductionTraderDetails: requestFunctionBuilder(
|
|
1052
1084
|
operations.postIntroductionTraderDetails,
|
|
1053
1085
|
requestAdapter
|
|
1054
1086
|
),
|
|
1087
|
+
postIntroductionRejectJob: requestFunctionBuilder(
|
|
1088
|
+
operations.postIntroductionRejectJob,
|
|
1089
|
+
requestAdapter
|
|
1090
|
+
),
|
|
1091
|
+
submitIntroductionState: requestFunctionBuilder(
|
|
1092
|
+
operations.submitIntroductionState,
|
|
1093
|
+
requestAdapter
|
|
1094
|
+
),
|
|
1055
1095
|
postIntroductionConvertJob: requestFunctionBuilder(
|
|
1056
1096
|
operations.postIntroductionConvertJob,
|
|
1057
1097
|
requestAdapter
|
|
@@ -1542,11 +1582,17 @@ export const introductionServiceBuilder = (
|
|
|
1542
1582
|
getIntroduction: requestFunctions.getIntroduction,
|
|
1543
1583
|
putIntroduction: requestFunctions.putIntroduction,
|
|
1544
1584
|
deleteIntroduction: requestFunctions.deleteIntroduction,
|
|
1585
|
+
postIntroductionConsumerSignature:
|
|
1586
|
+
requestFunctions.postIntroductionConsumerSignature,
|
|
1545
1587
|
postIntroductionConsumerDetails:
|
|
1546
1588
|
requestFunctions.postIntroductionConsumerDetails,
|
|
1547
1589
|
postIntroductionJobDetails: requestFunctions.postIntroductionJobDetails,
|
|
1548
1590
|
postIntroductionTrader: requestFunctions.postIntroductionTrader,
|
|
1591
|
+
postIntroductionTraderSignature:
|
|
1592
|
+
requestFunctions.postIntroductionTraderSignature,
|
|
1549
1593
|
postIntroductionTraderDetails: requestFunctions.postIntroductionTraderDetails,
|
|
1594
|
+
postIntroductionRejectJob: requestFunctions.postIntroductionRejectJob,
|
|
1595
|
+
submitIntroductionState: requestFunctions.submitIntroductionState,
|
|
1550
1596
|
postIntroductionConvertJob: requestFunctions.postIntroductionConvertJob,
|
|
1551
1597
|
});
|
|
1552
1598
|
|
|
@@ -1740,10 +1786,14 @@ export interface Operations {
|
|
|
1740
1786
|
getIntroduction: typeof getIntroductionOperation;
|
|
1741
1787
|
putIntroduction: typeof putIntroductionOperation;
|
|
1742
1788
|
deleteIntroduction: typeof deleteIntroductionOperation;
|
|
1789
|
+
postIntroductionConsumerSignature: typeof postIntroductionConsumerSignatureOperation;
|
|
1743
1790
|
postIntroductionConsumerDetails: typeof postIntroductionConsumerDetailsOperation;
|
|
1744
1791
|
postIntroductionJobDetails: typeof postIntroductionJobDetailsOperation;
|
|
1745
1792
|
postIntroductionTrader: typeof postIntroductionTraderOperation;
|
|
1793
|
+
postIntroductionTraderSignature: typeof postIntroductionTraderSignatureOperation;
|
|
1746
1794
|
postIntroductionTraderDetails: typeof postIntroductionTraderDetailsOperation;
|
|
1795
|
+
postIntroductionRejectJob: typeof postIntroductionRejectJobOperation;
|
|
1796
|
+
submitIntroductionState: typeof submitIntroductionStateOperation;
|
|
1747
1797
|
postIntroductionConvertJob: typeof postIntroductionConvertJobOperation;
|
|
1748
1798
|
getCompanies: typeof getCompaniesOperation;
|
|
1749
1799
|
postCompany: typeof postCompanyOperation;
|
|
@@ -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,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type PostIntroductionRejectJobRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const postIntroductionRejectJobOperation = {
|
|
9
|
+
path: "/api/introduction/{id}/reject-job",
|
|
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 PostIntroductionRejectJobRequestFunction = RequestFunction<
|
|
27
|
+
{ params: PostIntroductionRejectJobRequestParameters },
|
|
28
|
+
schemas.Introduction
|
|
29
|
+
>;
|
|
@@ -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
|
+
>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type SubmitIntroductionStateRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const submitIntroductionStateOperation = {
|
|
9
|
+
path: "/api/introduction/{id}/state",
|
|
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 SubmitIntroductionStateRequestFunction = RequestFunction<
|
|
33
|
+
{
|
|
34
|
+
params: SubmitIntroductionStateRequestParameters;
|
|
35
|
+
body: schemas.IntroductionStateRequest;
|
|
36
|
+
},
|
|
37
|
+
schemas.Introduction
|
|
38
|
+
>;
|