@kanda-libs/ks-component-ts 0.2.439 → 0.2.441
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 +14780 -14756
- 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 +3 -0
- 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/index.ts +2 -0
- package/src/generated/operations/index.ts +24 -0
- package/src/generated/operations/postIntroductionRejectJob.ts +29 -0
- package/src/generated/operations/submitIntroductionState.ts +38 -0
- package/src/generated/widget/index.tsx +68739 -68548
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,5 +1,6 @@
|
|
|
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
5
|
import { ContactInfo } from "./ContactInfo";
|
|
5
6
|
import { Customer } from "./Customer";
|
|
@@ -21,6 +22,7 @@ export const Introduction = t.intersection([
|
|
|
21
22
|
eid: t.string,
|
|
22
23
|
bid: t.string,
|
|
23
24
|
tid: t.string,
|
|
25
|
+
archived: Archived,
|
|
24
26
|
consumer_details: ApplicantDetails,
|
|
25
27
|
budgets: Budgets,
|
|
26
28
|
trader: ContactInfo,
|
|
@@ -41,6 +43,7 @@ export interface Introduction {
|
|
|
41
43
|
eid?: string;
|
|
42
44
|
bid?: string;
|
|
43
45
|
tid?: string;
|
|
46
|
+
archived?: Archived;
|
|
44
47
|
consumer: Customer;
|
|
45
48
|
consumer_details?: ApplicantDetails;
|
|
46
49
|
budgets?: Budgets;
|
|
@@ -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
|
}
|
|
@@ -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";
|
|
@@ -390,6 +390,10 @@ import {
|
|
|
390
390
|
postIntroductionJobDetailsOperation,
|
|
391
391
|
PostIntroductionJobDetailsRequestFunction,
|
|
392
392
|
} from "./postIntroductionJobDetails";
|
|
393
|
+
import {
|
|
394
|
+
postIntroductionRejectJobOperation,
|
|
395
|
+
PostIntroductionRejectJobRequestFunction,
|
|
396
|
+
} from "./postIntroductionRejectJob";
|
|
393
397
|
import {
|
|
394
398
|
postIntroductionTraderOperation,
|
|
395
399
|
PostIntroductionTraderRequestFunction,
|
|
@@ -511,6 +515,10 @@ import {
|
|
|
511
515
|
signJobSatNoteOperation,
|
|
512
516
|
SignJobSatNoteRequestFunction,
|
|
513
517
|
} from "./signJobSatNote";
|
|
518
|
+
import {
|
|
519
|
+
submitIntroductionStateOperation,
|
|
520
|
+
SubmitIntroductionStateRequestFunction,
|
|
521
|
+
} from "./submitIntroductionState";
|
|
514
522
|
import { tradeLeadOperation, TradeLeadRequestFunction } from "./tradeLead";
|
|
515
523
|
import {
|
|
516
524
|
tradeQuoteApprovalLeadOperation,
|
|
@@ -588,6 +596,8 @@ export const operations: Operations = {
|
|
|
588
596
|
postIntroductionJobDetails: postIntroductionJobDetailsOperation,
|
|
589
597
|
postIntroductionTrader: postIntroductionTraderOperation,
|
|
590
598
|
postIntroductionTraderDetails: postIntroductionTraderDetailsOperation,
|
|
599
|
+
postIntroductionRejectJob: postIntroductionRejectJobOperation,
|
|
600
|
+
submitIntroductionState: submitIntroductionStateOperation,
|
|
591
601
|
postIntroductionConvertJob: postIntroductionConvertJobOperation,
|
|
592
602
|
getCompanies: getCompaniesOperation,
|
|
593
603
|
postCompany: postCompanyOperation,
|
|
@@ -765,6 +775,8 @@ export interface OperationRequestFunctionMap {
|
|
|
765
775
|
postIntroductionJobDetails: PostIntroductionJobDetailsRequestFunction;
|
|
766
776
|
postIntroductionTrader: PostIntroductionTraderRequestFunction;
|
|
767
777
|
postIntroductionTraderDetails: PostIntroductionTraderDetailsRequestFunction;
|
|
778
|
+
postIntroductionRejectJob: PostIntroductionRejectJobRequestFunction;
|
|
779
|
+
submitIntroductionState: SubmitIntroductionStateRequestFunction;
|
|
768
780
|
postIntroductionConvertJob: PostIntroductionConvertJobRequestFunction;
|
|
769
781
|
getCompanies: GetCompaniesRequestFunction;
|
|
770
782
|
postCompany: PostCompanyRequestFunction;
|
|
@@ -1052,6 +1064,14 @@ export const requestFunctionsBuilder = (
|
|
|
1052
1064
|
operations.postIntroductionTraderDetails,
|
|
1053
1065
|
requestAdapter
|
|
1054
1066
|
),
|
|
1067
|
+
postIntroductionRejectJob: requestFunctionBuilder(
|
|
1068
|
+
operations.postIntroductionRejectJob,
|
|
1069
|
+
requestAdapter
|
|
1070
|
+
),
|
|
1071
|
+
submitIntroductionState: requestFunctionBuilder(
|
|
1072
|
+
operations.submitIntroductionState,
|
|
1073
|
+
requestAdapter
|
|
1074
|
+
),
|
|
1055
1075
|
postIntroductionConvertJob: requestFunctionBuilder(
|
|
1056
1076
|
operations.postIntroductionConvertJob,
|
|
1057
1077
|
requestAdapter
|
|
@@ -1547,6 +1567,8 @@ export const introductionServiceBuilder = (
|
|
|
1547
1567
|
postIntroductionJobDetails: requestFunctions.postIntroductionJobDetails,
|
|
1548
1568
|
postIntroductionTrader: requestFunctions.postIntroductionTrader,
|
|
1549
1569
|
postIntroductionTraderDetails: requestFunctions.postIntroductionTraderDetails,
|
|
1570
|
+
postIntroductionRejectJob: requestFunctions.postIntroductionRejectJob,
|
|
1571
|
+
submitIntroductionState: requestFunctions.submitIntroductionState,
|
|
1550
1572
|
postIntroductionConvertJob: requestFunctions.postIntroductionConvertJob,
|
|
1551
1573
|
});
|
|
1552
1574
|
|
|
@@ -1744,6 +1766,8 @@ export interface Operations {
|
|
|
1744
1766
|
postIntroductionJobDetails: typeof postIntroductionJobDetailsOperation;
|
|
1745
1767
|
postIntroductionTrader: typeof postIntroductionTraderOperation;
|
|
1746
1768
|
postIntroductionTraderDetails: typeof postIntroductionTraderDetailsOperation;
|
|
1769
|
+
postIntroductionRejectJob: typeof postIntroductionRejectJobOperation;
|
|
1770
|
+
submitIntroductionState: typeof submitIntroductionStateOperation;
|
|
1747
1771
|
postIntroductionConvertJob: typeof postIntroductionConvertJobOperation;
|
|
1748
1772
|
getCompanies: typeof getCompaniesOperation;
|
|
1749
1773
|
postCompany: typeof postCompanyOperation;
|
|
@@ -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 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
|
+
>;
|