@kanda-libs/ks-component-ts 0.2.341 → 0.2.343
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 +11319 -11215
- 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/Category.ts +13 -1
- package/src/generated/components/schemas/Lead.ts +3 -0
- package/src/generated/operations/applyInviteLead.ts +44 -0
- package/src/generated/operations/budgetLead.ts +44 -0
- package/src/generated/operations/index.ts +18 -0
- package/src/generated/operations/postLead.ts +5 -24
- package/src/generated/widget/index.tsx +47179 -46726
package/package.json
CHANGED
|
@@ -5,6 +5,12 @@ export const Category = t.type({
|
|
|
5
5
|
t.literal("what_can_an_iar_do"),
|
|
6
6
|
t.literal("advertising_and_promotions"),
|
|
7
7
|
t.literal("vulnerable_customers_and_complaints"),
|
|
8
|
+
t.literal("howdens__the_basics_of_offering_finance"),
|
|
9
|
+
t.literal("howdens__what_is_an_iar_and_what_can_it_do"),
|
|
10
|
+
t.literal("howdens__senior_management_responsibilities"),
|
|
11
|
+
t.literal("howdens__advertising_finance"),
|
|
12
|
+
t.literal("howdens__fighting_financial_crime"),
|
|
13
|
+
t.literal("howdens__treating_customers_fairly"),
|
|
8
14
|
]),
|
|
9
15
|
number_of_quizzes: t.number,
|
|
10
16
|
});
|
|
@@ -13,6 +19,12 @@ export interface Category {
|
|
|
13
19
|
section:
|
|
14
20
|
| "what_can_an_iar_do"
|
|
15
21
|
| "advertising_and_promotions"
|
|
16
|
-
| "vulnerable_customers_and_complaints"
|
|
22
|
+
| "vulnerable_customers_and_complaints"
|
|
23
|
+
| "howdens__the_basics_of_offering_finance"
|
|
24
|
+
| "howdens__what_is_an_iar_and_what_can_it_do"
|
|
25
|
+
| "howdens__senior_management_responsibilities"
|
|
26
|
+
| "howdens__advertising_finance"
|
|
27
|
+
| "howdens__fighting_financial_crime"
|
|
28
|
+
| "howdens__treating_customers_fairly";
|
|
17
29
|
number_of_quizzes: number;
|
|
18
30
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { DateFromISOString } from "io-ts-types/DateFromISOString";
|
|
3
|
+
import { ContactInfo } from "./ContactInfo";
|
|
3
4
|
import { FinanceRate } from "./FinanceRate";
|
|
4
5
|
import { FlowType } from "./FlowType";
|
|
5
6
|
import { LeadApplicant } from "./LeadApplicant";
|
|
@@ -34,6 +35,7 @@ export const Lead = t.intersection([
|
|
|
34
35
|
eid: t.string,
|
|
35
36
|
bid: t.string,
|
|
36
37
|
tid: t.string,
|
|
38
|
+
invite_info: ContactInfo,
|
|
37
39
|
lead_applicant: LeadApplicant,
|
|
38
40
|
lead_quote: LeadQuote,
|
|
39
41
|
lead_trade: LeadTrade,
|
|
@@ -56,6 +58,7 @@ export interface Lead {
|
|
|
56
58
|
eid?: string;
|
|
57
59
|
bid?: string;
|
|
58
60
|
tid?: string;
|
|
61
|
+
invite_info?: ContactInfo;
|
|
59
62
|
lead_applicant?: LeadApplicant;
|
|
60
63
|
lead_quote?: LeadQuote;
|
|
61
64
|
lead_trade?: LeadTrade;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as parameters from "../components/parameters";
|
|
3
|
+
import * as schemas from "../components/schemas";
|
|
4
|
+
|
|
5
|
+
export type ApplyInviteLeadRequestParameters = {
|
|
6
|
+
id: string;
|
|
7
|
+
x_kanda_bid?: string;
|
|
8
|
+
x_kanda_cid?: string;
|
|
9
|
+
x_kanda_eid?: string;
|
|
10
|
+
x_kanda_tid?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const applyInviteLeadOperation = {
|
|
14
|
+
path: "/api/lead/{id}/apply-invite",
|
|
15
|
+
method: "post",
|
|
16
|
+
responses: {
|
|
17
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Lead },
|
|
18
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
19
|
+
},
|
|
20
|
+
parameters: [
|
|
21
|
+
{
|
|
22
|
+
_tag: "FormParameter",
|
|
23
|
+
explode: false,
|
|
24
|
+
in: "path",
|
|
25
|
+
name: "id",
|
|
26
|
+
},
|
|
27
|
+
parameters.x_kanda_bid,
|
|
28
|
+
parameters.x_kanda_cid,
|
|
29
|
+
parameters.x_kanda_eid,
|
|
30
|
+
parameters.x_kanda_tid,
|
|
31
|
+
],
|
|
32
|
+
requestDefaultHeaders: {
|
|
33
|
+
"Content-Type": "application/json",
|
|
34
|
+
Accept: "application/json",
|
|
35
|
+
},
|
|
36
|
+
body: {
|
|
37
|
+
_tag: "JsonBody",
|
|
38
|
+
},
|
|
39
|
+
} as const;
|
|
40
|
+
|
|
41
|
+
export type ApplyInviteLeadRequestFunction = RequestFunction<
|
|
42
|
+
{ params: ApplyInviteLeadRequestParameters; body: schemas.LeadApplicant },
|
|
43
|
+
schemas.Lead
|
|
44
|
+
>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as parameters from "../components/parameters";
|
|
3
|
+
import * as schemas from "../components/schemas";
|
|
4
|
+
|
|
5
|
+
export type BudgetLeadRequestParameters = {
|
|
6
|
+
id: string;
|
|
7
|
+
x_kanda_bid?: string;
|
|
8
|
+
x_kanda_cid?: string;
|
|
9
|
+
x_kanda_eid?: string;
|
|
10
|
+
x_kanda_tid?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const budgetLeadOperation = {
|
|
14
|
+
path: "/api/lead/{id}/budget",
|
|
15
|
+
method: "post",
|
|
16
|
+
responses: {
|
|
17
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Lead },
|
|
18
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
19
|
+
},
|
|
20
|
+
parameters: [
|
|
21
|
+
{
|
|
22
|
+
_tag: "FormParameter",
|
|
23
|
+
explode: false,
|
|
24
|
+
in: "path",
|
|
25
|
+
name: "id",
|
|
26
|
+
},
|
|
27
|
+
parameters.x_kanda_bid,
|
|
28
|
+
parameters.x_kanda_cid,
|
|
29
|
+
parameters.x_kanda_eid,
|
|
30
|
+
parameters.x_kanda_tid,
|
|
31
|
+
],
|
|
32
|
+
requestDefaultHeaders: {
|
|
33
|
+
"Content-Type": "application/json",
|
|
34
|
+
Accept: "application/json",
|
|
35
|
+
},
|
|
36
|
+
body: {
|
|
37
|
+
_tag: "JsonBody",
|
|
38
|
+
},
|
|
39
|
+
} as const;
|
|
40
|
+
|
|
41
|
+
export type BudgetLeadRequestFunction = RequestFunction<
|
|
42
|
+
{ params: BudgetLeadRequestParameters; body: schemas.Money },
|
|
43
|
+
schemas.Lead
|
|
44
|
+
>;
|
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
applyCreditOperation,
|
|
11
11
|
ApplyCreditRequestFunction,
|
|
12
12
|
} from "./applyCredit";
|
|
13
|
+
import {
|
|
14
|
+
applyInviteLeadOperation,
|
|
15
|
+
ApplyInviteLeadRequestFunction,
|
|
16
|
+
} from "./applyInviteLead";
|
|
13
17
|
import { applyJobOperation, ApplyJobRequestFunction } from "./applyJob";
|
|
14
18
|
import {
|
|
15
19
|
approveCompanyOperation,
|
|
@@ -20,6 +24,7 @@ import {
|
|
|
20
24
|
ApproveJobSatNoteRequestFunction,
|
|
21
25
|
} from "./approveJobSatNote";
|
|
22
26
|
import { archiveJobOperation, ArchiveJobRequestFunction } from "./archiveJob";
|
|
27
|
+
import { budgetLeadOperation, BudgetLeadRequestFunction } from "./budgetLead";
|
|
23
28
|
import {
|
|
24
29
|
checkCreditOperation,
|
|
25
30
|
CheckCreditRequestFunction,
|
|
@@ -525,6 +530,8 @@ export const operations: Operations = {
|
|
|
525
530
|
getLead: getLeadOperation,
|
|
526
531
|
putLead: putLeadOperation,
|
|
527
532
|
deleteLead: deleteLeadOperation,
|
|
533
|
+
applyInviteLead: applyInviteLeadOperation,
|
|
534
|
+
budgetLead: budgetLeadOperation,
|
|
528
535
|
quoteLead: quoteLeadOperation,
|
|
529
536
|
sendLeadJob: sendLeadJobOperation,
|
|
530
537
|
tradeLead: tradeLeadOperation,
|
|
@@ -672,6 +679,8 @@ export interface OperationRequestFunctionMap {
|
|
|
672
679
|
getLead: GetLeadRequestFunction;
|
|
673
680
|
putLead: PutLeadRequestFunction;
|
|
674
681
|
deleteLead: DeleteLeadRequestFunction;
|
|
682
|
+
applyInviteLead: ApplyInviteLeadRequestFunction;
|
|
683
|
+
budgetLead: BudgetLeadRequestFunction;
|
|
675
684
|
quoteLead: QuoteLeadRequestFunction;
|
|
676
685
|
sendLeadJob: SendLeadJobRequestFunction;
|
|
677
686
|
tradeLead: TradeLeadRequestFunction;
|
|
@@ -947,6 +956,11 @@ export const requestFunctionsBuilder = (
|
|
|
947
956
|
getLead: requestFunctionBuilder(operations.getLead, requestAdapter),
|
|
948
957
|
putLead: requestFunctionBuilder(operations.putLead, requestAdapter),
|
|
949
958
|
deleteLead: requestFunctionBuilder(operations.deleteLead, requestAdapter),
|
|
959
|
+
applyInviteLead: requestFunctionBuilder(
|
|
960
|
+
operations.applyInviteLead,
|
|
961
|
+
requestAdapter
|
|
962
|
+
),
|
|
963
|
+
budgetLead: requestFunctionBuilder(operations.budgetLead, requestAdapter),
|
|
950
964
|
quoteLead: requestFunctionBuilder(operations.quoteLead, requestAdapter),
|
|
951
965
|
sendLeadJob: requestFunctionBuilder(operations.sendLeadJob, requestAdapter),
|
|
952
966
|
tradeLead: requestFunctionBuilder(operations.tradeLead, requestAdapter),
|
|
@@ -1283,6 +1297,8 @@ export const leadServiceBuilder = (
|
|
|
1283
1297
|
getLead: requestFunctions.getLead,
|
|
1284
1298
|
putLead: requestFunctions.putLead,
|
|
1285
1299
|
deleteLead: requestFunctions.deleteLead,
|
|
1300
|
+
applyInviteLead: requestFunctions.applyInviteLead,
|
|
1301
|
+
budgetLead: requestFunctions.budgetLead,
|
|
1286
1302
|
quoteLead: requestFunctions.quoteLead,
|
|
1287
1303
|
sendLeadJob: requestFunctions.sendLeadJob,
|
|
1288
1304
|
tradeLead: requestFunctions.tradeLead,
|
|
@@ -1455,6 +1471,8 @@ export interface Operations {
|
|
|
1455
1471
|
getLead: typeof getLeadOperation;
|
|
1456
1472
|
putLead: typeof putLeadOperation;
|
|
1457
1473
|
deleteLead: typeof deleteLeadOperation;
|
|
1474
|
+
applyInviteLead: typeof applyInviteLeadOperation;
|
|
1475
|
+
budgetLead: typeof budgetLeadOperation;
|
|
1458
1476
|
quoteLead: typeof quoteLeadOperation;
|
|
1459
1477
|
sendLeadJob: typeof sendLeadJobOperation;
|
|
1460
1478
|
tradeLead: typeof tradeLeadOperation;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as parameters from "../components/parameters";
|
|
2
3
|
import * as schemas from "../components/schemas";
|
|
3
4
|
|
|
4
5
|
export type PostLeadRequestParameters = {
|
|
@@ -16,30 +17,10 @@ export const postLeadOperation = {
|
|
|
16
17
|
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
17
18
|
},
|
|
18
19
|
parameters: [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
name: "x_kanda_bid",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
_tag: "FormParameter",
|
|
27
|
-
explode: false,
|
|
28
|
-
in: "header",
|
|
29
|
-
name: "x_kanda_cid",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
_tag: "FormParameter",
|
|
33
|
-
explode: false,
|
|
34
|
-
in: "header",
|
|
35
|
-
name: "x_kanda_eid",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
_tag: "FormParameter",
|
|
39
|
-
explode: false,
|
|
40
|
-
in: "header",
|
|
41
|
-
name: "x_kanda_tid",
|
|
42
|
-
},
|
|
20
|
+
parameters.x_kanda_bid,
|
|
21
|
+
parameters.x_kanda_cid,
|
|
22
|
+
parameters.x_kanda_eid,
|
|
23
|
+
parameters.x_kanda_tid,
|
|
43
24
|
],
|
|
44
25
|
requestDefaultHeaders: {
|
|
45
26
|
"Content-Type": "application/json",
|