@kanda-libs/ks-component-ts 0.2.276 → 0.2.277
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 +9520 -9343
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/components/schemas/Lead.ts +2 -0
- package/src/generated/components/schemas/LeadApplicant.ts +12 -5
- package/src/generated/components/schemas/LeadJobSummary.ts +38 -0
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/acceptedJobSummaryLead.ts +39 -0
- package/src/generated/operations/index.ts +12 -0
- package/src/generated/widget/index.tsx +48590 -47947
package/package.json
CHANGED
|
@@ -38,6 +38,7 @@ export const Lead = t.intersection([
|
|
|
38
38
|
lead_quote: LeadQuote,
|
|
39
39
|
lead_trade: LeadTrade,
|
|
40
40
|
finance_options: t.array(FinanceRate),
|
|
41
|
+
budget: Money,
|
|
41
42
|
max_credit_amount: Money,
|
|
42
43
|
xid: t.string,
|
|
43
44
|
xref: t.string,
|
|
@@ -59,6 +60,7 @@ export interface Lead {
|
|
|
59
60
|
lead_quote?: LeadQuote;
|
|
60
61
|
lead_trade?: LeadTrade;
|
|
61
62
|
finance_options?: Array<FinanceRate>;
|
|
63
|
+
budget?: Money;
|
|
62
64
|
max_credit_amount?: Money;
|
|
63
65
|
expired_at: Date;
|
|
64
66
|
xid?: string;
|
|
@@ -2,15 +2,22 @@ import * as t from "io-ts";
|
|
|
2
2
|
import { CustomerDetails } from "./CustomerDetails";
|
|
3
3
|
import { EmploymentDetails } from "./EmploymentDetails";
|
|
4
4
|
import { FinanceDetails } from "./FinanceDetails";
|
|
5
|
+
import { Money } from "./Money";
|
|
5
6
|
|
|
6
|
-
export const LeadApplicant = t.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
export const LeadApplicant = t.intersection([
|
|
8
|
+
t.type({
|
|
9
|
+
customer_details: CustomerDetails,
|
|
10
|
+
employment_details: EmploymentDetails,
|
|
11
|
+
finance_details: FinanceDetails,
|
|
12
|
+
}),
|
|
13
|
+
t.partial({
|
|
14
|
+
budget: Money,
|
|
15
|
+
}),
|
|
16
|
+
]);
|
|
11
17
|
|
|
12
18
|
export interface LeadApplicant {
|
|
13
19
|
customer_details: CustomerDetails;
|
|
14
20
|
employment_details: EmploymentDetails;
|
|
15
21
|
finance_details: FinanceDetails;
|
|
22
|
+
budget?: Money;
|
|
16
23
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { MoneyTotal } from "./MoneyTotal";
|
|
3
|
+
|
|
4
|
+
export const LeadJobSummary = t.intersection([
|
|
5
|
+
t.type({
|
|
6
|
+
id: t.string,
|
|
7
|
+
archived: t.string,
|
|
8
|
+
status: t.string,
|
|
9
|
+
finance_status: t.string,
|
|
10
|
+
quoted_to: t.string,
|
|
11
|
+
total: MoneyTotal,
|
|
12
|
+
}),
|
|
13
|
+
t.partial({
|
|
14
|
+
cid: t.string,
|
|
15
|
+
aid: t.string,
|
|
16
|
+
oid: t.string,
|
|
17
|
+
eid: t.string,
|
|
18
|
+
rid: t.string,
|
|
19
|
+
bid: t.string,
|
|
20
|
+
tid: t.string,
|
|
21
|
+
}),
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
export interface LeadJobSummary {
|
|
25
|
+
id: string;
|
|
26
|
+
cid?: string;
|
|
27
|
+
aid?: string;
|
|
28
|
+
oid?: string;
|
|
29
|
+
eid?: string;
|
|
30
|
+
rid?: string;
|
|
31
|
+
bid?: string;
|
|
32
|
+
tid?: string;
|
|
33
|
+
archived: string;
|
|
34
|
+
status: string;
|
|
35
|
+
finance_status: string;
|
|
36
|
+
quoted_to: string;
|
|
37
|
+
total: MoneyTotal;
|
|
38
|
+
}
|
|
@@ -61,6 +61,7 @@ export * from "./JobOverride";
|
|
|
61
61
|
export * from "./LatLng";
|
|
62
62
|
export * from "./Lead";
|
|
63
63
|
export * from "./LeadApplicant";
|
|
64
|
+
export * from "./LeadJobSummary";
|
|
64
65
|
export * from "./LeadQuote";
|
|
65
66
|
export * from "./LeadTrade";
|
|
66
67
|
export * from "./LimitedCompanyInfo";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as t from "io-ts";
|
|
3
|
+
import * as parameters from "../components/parameters";
|
|
4
|
+
import * as schemas from "../components/schemas";
|
|
5
|
+
|
|
6
|
+
export type AcceptedJobSummaryLeadRequestParameters = {
|
|
7
|
+
id: string;
|
|
8
|
+
x_kanda_bid?: string;
|
|
9
|
+
x_kanda_cid?: string;
|
|
10
|
+
x_kanda_eid?: string;
|
|
11
|
+
x_kanda_tid?: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const acceptedJobSummaryLeadOperation = {
|
|
15
|
+
path: "/api/lead/{id}/accepted-job-summary",
|
|
16
|
+
method: "post",
|
|
17
|
+
responses: {
|
|
18
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.LeadJobSummary) },
|
|
19
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
20
|
+
},
|
|
21
|
+
parameters: [
|
|
22
|
+
{
|
|
23
|
+
_tag: "FormParameter",
|
|
24
|
+
explode: false,
|
|
25
|
+
in: "path",
|
|
26
|
+
name: "id",
|
|
27
|
+
},
|
|
28
|
+
parameters.x_kanda_bid,
|
|
29
|
+
parameters.x_kanda_cid,
|
|
30
|
+
parameters.x_kanda_eid,
|
|
31
|
+
parameters.x_kanda_tid,
|
|
32
|
+
],
|
|
33
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
34
|
+
} as const;
|
|
35
|
+
|
|
36
|
+
export type AcceptedJobSummaryLeadRequestFunction = RequestFunction<
|
|
37
|
+
{ params: AcceptedJobSummaryLeadRequestParameters },
|
|
38
|
+
Array<schemas.LeadJobSummary>
|
|
39
|
+
>;
|
|
@@ -2,6 +2,10 @@ import {
|
|
|
2
2
|
HttpRequestAdapter,
|
|
3
3
|
requestFunctionBuilder,
|
|
4
4
|
} from "@openapi-io-ts/runtime";
|
|
5
|
+
import {
|
|
6
|
+
acceptedJobSummaryLeadOperation,
|
|
7
|
+
AcceptedJobSummaryLeadRequestFunction,
|
|
8
|
+
} from "./acceptedJobSummaryLead";
|
|
5
9
|
import {
|
|
6
10
|
applyCreditOperation,
|
|
7
11
|
ApplyCreditRequestFunction,
|
|
@@ -482,6 +486,7 @@ export const operations: Operations = {
|
|
|
482
486
|
tradeQuoteApprovalLead: tradeQuoteApprovalLeadOperation,
|
|
483
487
|
matchTradesLead: matchTradesLeadOperation,
|
|
484
488
|
connectTradesLead: connectTradesLeadOperation,
|
|
489
|
+
acceptedJobSummaryLead: acceptedJobSummaryLeadOperation,
|
|
485
490
|
referLead: referLeadOperation,
|
|
486
491
|
getSubscriptions: getSubscriptionsOperation,
|
|
487
492
|
postSubscription: postSubscriptionOperation,
|
|
@@ -618,6 +623,7 @@ export interface OperationRequestFunctionMap {
|
|
|
618
623
|
tradeQuoteApprovalLead: TradeQuoteApprovalLeadRequestFunction;
|
|
619
624
|
matchTradesLead: MatchTradesLeadRequestFunction;
|
|
620
625
|
connectTradesLead: ConnectTradesLeadRequestFunction;
|
|
626
|
+
acceptedJobSummaryLead: AcceptedJobSummaryLeadRequestFunction;
|
|
621
627
|
referLead: ReferLeadRequestFunction;
|
|
622
628
|
getSubscriptions: GetSubscriptionsRequestFunction;
|
|
623
629
|
postSubscription: PostSubscriptionRequestFunction;
|
|
@@ -879,6 +885,10 @@ export const requestFunctionsBuilder = (
|
|
|
879
885
|
operations.connectTradesLead,
|
|
880
886
|
requestAdapter
|
|
881
887
|
),
|
|
888
|
+
acceptedJobSummaryLead: requestFunctionBuilder(
|
|
889
|
+
operations.acceptedJobSummaryLead,
|
|
890
|
+
requestAdapter
|
|
891
|
+
),
|
|
882
892
|
referLead: requestFunctionBuilder(operations.referLead, requestAdapter),
|
|
883
893
|
getSubscriptions: requestFunctionBuilder(
|
|
884
894
|
operations.getSubscriptions,
|
|
@@ -1189,6 +1199,7 @@ export const leadServiceBuilder = (
|
|
|
1189
1199
|
tradeQuoteApprovalLead: requestFunctions.tradeQuoteApprovalLead,
|
|
1190
1200
|
matchTradesLead: requestFunctions.matchTradesLead,
|
|
1191
1201
|
connectTradesLead: requestFunctions.connectTradesLead,
|
|
1202
|
+
acceptedJobSummaryLead: requestFunctions.acceptedJobSummaryLead,
|
|
1192
1203
|
referLead: requestFunctions.referLead,
|
|
1193
1204
|
});
|
|
1194
1205
|
|
|
@@ -1345,6 +1356,7 @@ export interface Operations {
|
|
|
1345
1356
|
tradeQuoteApprovalLead: typeof tradeQuoteApprovalLeadOperation;
|
|
1346
1357
|
matchTradesLead: typeof matchTradesLeadOperation;
|
|
1347
1358
|
connectTradesLead: typeof connectTradesLeadOperation;
|
|
1359
|
+
acceptedJobSummaryLead: typeof acceptedJobSummaryLeadOperation;
|
|
1348
1360
|
referLead: typeof referLeadOperation;
|
|
1349
1361
|
getSubscriptions: typeof getSubscriptionsOperation;
|
|
1350
1362
|
postSubscription: typeof postSubscriptionOperation;
|