@kanda-libs/ks-component-ts 0.2.247 → 0.2.248-qa.2
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/.DS_Store +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueBlackItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueBoldItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueExtraBoldItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueExtraLightItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueHeavyItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueLightItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueMediumItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueRegularItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueSemiBoldItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/italic/GalanoGrotesqueThinItalic.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueBlack.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueBold.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueExtraBold.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueExtraLight.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueHeavy.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueLight.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueMedium.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueRegular.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueSemiBold.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/fonts/GalanoGrotesque/regular/GalanoGrotesqueThin.woff +0 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js +4 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js.map +7 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/library.css +4445 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/package.json +96 -0
- package/app/.yalc/@kanda-libs/ks-component-ts/yalc.sig +1 -0
- package/app/yalc.lock +9 -0
- package/dist/index.d.ts +10229 -9615
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/field/.DS_Store +0 -0
- package/src/field/components/.DS_Store +0 -0
- package/src/generated/components/parameters/index.ts +4 -0
- package/src/generated/components/parameters/xKandaBid.ts +8 -0
- package/src/generated/components/parameters/xKandaCid.ts +8 -0
- package/src/generated/components/parameters/xKandaEid.ts +8 -0
- package/src/generated/components/parameters/xKandaTid.ts +8 -0
- package/src/generated/components/schemas/AuthUser.ts +6 -0
- package/src/generated/components/schemas/Credit.ts +6 -0
- package/src/generated/components/schemas/Document.ts +6 -0
- package/src/generated/components/schemas/Enterprise.ts +43 -0
- package/src/generated/components/schemas/Job.ts +6 -0
- package/src/generated/components/schemas/Lead.ts +11 -0
- package/src/generated/components/schemas/LeadQuote.ts +6 -7
- package/src/generated/components/schemas/LeadTrade.ts +20 -0
- package/src/generated/components/schemas/index.ts +2 -0
- package/src/generated/operations/deleteEnterprise.ts +29 -0
- package/src/generated/operations/deleteLead.ts +9 -0
- package/src/generated/operations/getEnterprise.ts +29 -0
- package/src/generated/operations/getEnterpriseBranches.ts +30 -0
- package/src/generated/operations/getEnterprises.ts +25 -0
- package/src/generated/operations/getLead.ts +9 -0
- package/src/generated/operations/getLeads.ts +12 -1
- package/src/generated/operations/index.ts +124 -0
- package/src/generated/operations/infoEnterprise.ts +51 -0
- package/src/generated/operations/postEnterprise.ts +24 -0
- package/src/generated/operations/postEnterpriseBranches.ts +39 -0
- package/src/generated/operations/postLead.ts +15 -2
- package/src/generated/operations/putEnterprise.ts +35 -0
- package/src/generated/operations/putLead.ts +9 -0
- package/src/generated/operations/quoteLead.ts +9 -0
- package/src/generated/operations/referLead.ts +9 -0
- package/src/generated/operations/tradeLead.ts +44 -0
- package/src/generated/operations/tradeQuoteApprovalLead.ts +38 -0
- package/src/generated/widget/index.tsx +49269 -47344
package/package.json
CHANGED
package/src/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -13,6 +13,9 @@ export const AuthUser = t.intersection([
|
|
|
13
13
|
verified: t.boolean,
|
|
14
14
|
}),
|
|
15
15
|
t.partial({
|
|
16
|
+
cid: t.string,
|
|
17
|
+
eid: t.string,
|
|
18
|
+
bid: t.string,
|
|
16
19
|
role: t.string,
|
|
17
20
|
phone: t.string,
|
|
18
21
|
photoURL: t.string,
|
|
@@ -22,6 +25,9 @@ export const AuthUser = t.intersection([
|
|
|
22
25
|
|
|
23
26
|
export interface AuthUser {
|
|
24
27
|
id: string;
|
|
28
|
+
cid?: string;
|
|
29
|
+
eid?: string;
|
|
30
|
+
bid?: string;
|
|
25
31
|
token: string;
|
|
26
32
|
name: string;
|
|
27
33
|
email: string;
|
|
@@ -24,6 +24,9 @@ export const Credit = t.intersection([
|
|
|
24
24
|
cid: t.string,
|
|
25
25
|
oid: t.string,
|
|
26
26
|
aid: t.string,
|
|
27
|
+
eid: t.string,
|
|
28
|
+
bid: t.string,
|
|
29
|
+
tid: t.string,
|
|
27
30
|
kid: t.string,
|
|
28
31
|
kind: t.union([t.literal("job"), t.literal("charge")]),
|
|
29
32
|
provider: FinanceProvider,
|
|
@@ -58,6 +61,9 @@ export interface Credit {
|
|
|
58
61
|
cid?: string;
|
|
59
62
|
oid?: string;
|
|
60
63
|
aid?: string;
|
|
64
|
+
eid?: string;
|
|
65
|
+
bid?: string;
|
|
66
|
+
tid?: string;
|
|
61
67
|
kid?: string;
|
|
62
68
|
kind?: "job" | "charge";
|
|
63
69
|
provider?: FinanceProvider;
|
|
@@ -10,6 +10,9 @@ export const Document = t.intersection([
|
|
|
10
10
|
cid: t.string,
|
|
11
11
|
oid: t.string,
|
|
12
12
|
aid: t.string,
|
|
13
|
+
eid: t.string,
|
|
14
|
+
bid: t.string,
|
|
15
|
+
tid: t.string,
|
|
13
16
|
expiry: t.string,
|
|
14
17
|
content: t.string,
|
|
15
18
|
mimetype: t.string,
|
|
@@ -22,6 +25,9 @@ export interface Document {
|
|
|
22
25
|
cid?: string;
|
|
23
26
|
oid?: string;
|
|
24
27
|
aid?: string;
|
|
28
|
+
eid?: string;
|
|
29
|
+
bid?: string;
|
|
30
|
+
tid?: string;
|
|
25
31
|
name: string;
|
|
26
32
|
expiry?: string;
|
|
27
33
|
content?: string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Branding } from "./Branding";
|
|
3
|
+
import { ContactInfo } from "./ContactInfo";
|
|
4
|
+
import { Metadata } from "./Metadata";
|
|
5
|
+
|
|
6
|
+
export const Enterprise = t.intersection([
|
|
7
|
+
t.type({
|
|
8
|
+
enterprise_type: t.union([
|
|
9
|
+
t.literal("main_office"),
|
|
10
|
+
t.literal("branch_office"),
|
|
11
|
+
]),
|
|
12
|
+
contact_info: ContactInfo,
|
|
13
|
+
}),
|
|
14
|
+
t.partial({
|
|
15
|
+
id: t.string,
|
|
16
|
+
cid: t.string,
|
|
17
|
+
aid: t.string,
|
|
18
|
+
oid: t.string,
|
|
19
|
+
eid: t.string,
|
|
20
|
+
bid: t.string,
|
|
21
|
+
subdomain: t.string,
|
|
22
|
+
branch_code: t.string,
|
|
23
|
+
emails: t.array(t.string),
|
|
24
|
+
branding: Branding,
|
|
25
|
+
metadata: Metadata,
|
|
26
|
+
}),
|
|
27
|
+
]);
|
|
28
|
+
|
|
29
|
+
export interface Enterprise {
|
|
30
|
+
id?: string;
|
|
31
|
+
cid?: string;
|
|
32
|
+
aid?: string;
|
|
33
|
+
oid?: string;
|
|
34
|
+
eid?: string;
|
|
35
|
+
bid?: string;
|
|
36
|
+
enterprise_type: "main_office" | "branch_office";
|
|
37
|
+
subdomain?: string;
|
|
38
|
+
branch_code?: string;
|
|
39
|
+
emails?: Array<string>;
|
|
40
|
+
contact_info: ContactInfo;
|
|
41
|
+
branding?: Branding;
|
|
42
|
+
metadata?: Metadata;
|
|
43
|
+
}
|
|
@@ -32,6 +32,9 @@ export const Job = t.intersection([
|
|
|
32
32
|
cid: t.string,
|
|
33
33
|
oid: t.string,
|
|
34
34
|
aid: t.string,
|
|
35
|
+
eid: t.string,
|
|
36
|
+
bid: t.string,
|
|
37
|
+
tid: t.string,
|
|
35
38
|
description: t.string,
|
|
36
39
|
customer: Customer,
|
|
37
40
|
total: MoneyTotal,
|
|
@@ -68,6 +71,9 @@ export interface Job {
|
|
|
68
71
|
cid?: string;
|
|
69
72
|
oid?: string;
|
|
70
73
|
aid?: string;
|
|
74
|
+
eid?: string;
|
|
75
|
+
bid?: string;
|
|
76
|
+
tid?: string;
|
|
71
77
|
title: string;
|
|
72
78
|
description?: string;
|
|
73
79
|
deposit_type: "no_deposit" | "partial_deposit" | "fixed_deposit";
|
|
@@ -4,6 +4,7 @@ import { FinanceRate } from "./FinanceRate";
|
|
|
4
4
|
import { FlowType } from "./FlowType";
|
|
5
5
|
import { LeadApplicant } from "./LeadApplicant";
|
|
6
6
|
import { LeadQuote } from "./LeadQuote";
|
|
7
|
+
import { LeadTrade } from "./LeadTrade";
|
|
7
8
|
import { Metadata } from "./Metadata";
|
|
8
9
|
import { Money } from "./Money";
|
|
9
10
|
|
|
@@ -15,6 +16,7 @@ export const Lead = t.intersection([
|
|
|
15
16
|
t.literal("open"),
|
|
16
17
|
t.literal("credit_declined"),
|
|
17
18
|
t.literal("quote_declined"),
|
|
19
|
+
t.literal("trade_notified"),
|
|
18
20
|
t.literal("trade_accepted"),
|
|
19
21
|
t.literal("trade_declined"),
|
|
20
22
|
t.literal("expired"),
|
|
@@ -26,8 +28,12 @@ export const Lead = t.intersection([
|
|
|
26
28
|
cid: t.string,
|
|
27
29
|
oid: t.string,
|
|
28
30
|
aid: t.string,
|
|
31
|
+
eid: t.string,
|
|
32
|
+
bid: t.string,
|
|
33
|
+
tid: t.string,
|
|
29
34
|
lead_applicant: LeadApplicant,
|
|
30
35
|
lead_quote: LeadQuote,
|
|
36
|
+
lead_trade: LeadTrade,
|
|
31
37
|
finance_options: t.array(FinanceRate),
|
|
32
38
|
max_credit_amount: Money,
|
|
33
39
|
xid: t.string,
|
|
@@ -42,8 +48,12 @@ export interface Lead {
|
|
|
42
48
|
cid?: string;
|
|
43
49
|
oid?: string;
|
|
44
50
|
aid?: string;
|
|
51
|
+
eid?: string;
|
|
52
|
+
bid?: string;
|
|
53
|
+
tid?: string;
|
|
45
54
|
lead_applicant?: LeadApplicant;
|
|
46
55
|
lead_quote?: LeadQuote;
|
|
56
|
+
lead_trade?: LeadTrade;
|
|
47
57
|
finance_options?: Array<FinanceRate>;
|
|
48
58
|
max_credit_amount?: Money;
|
|
49
59
|
expired_at: Date;
|
|
@@ -54,6 +64,7 @@ export interface Lead {
|
|
|
54
64
|
| "open"
|
|
55
65
|
| "credit_declined"
|
|
56
66
|
| "quote_declined"
|
|
67
|
+
| "trade_notified"
|
|
57
68
|
| "trade_accepted"
|
|
58
69
|
| "trade_declined"
|
|
59
70
|
| "expired"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { FinanceRate } from "./FinanceRate";
|
|
3
|
-
import {
|
|
3
|
+
import { JobItem } from "./JobItem";
|
|
4
|
+
import { MoneyTotal } from "./MoneyTotal";
|
|
4
5
|
import { WorkType } from "./WorkType";
|
|
5
6
|
|
|
6
7
|
export const LeadQuote = t.intersection([
|
|
@@ -17,18 +18,14 @@ export const LeadQuote = t.intersection([
|
|
|
17
18
|
}),
|
|
18
19
|
t.partial({
|
|
19
20
|
finance_option: FinanceRate,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
budget: Money,
|
|
21
|
+
job_items: t.array(JobItem),
|
|
22
|
+
total: MoneyTotal,
|
|
23
23
|
}),
|
|
24
24
|
]);
|
|
25
25
|
|
|
26
26
|
export interface LeadQuote {
|
|
27
27
|
finance_option?: FinanceRate;
|
|
28
28
|
work_type: WorkType;
|
|
29
|
-
cash_amount?: Money;
|
|
30
|
-
credit_amount?: Money;
|
|
31
|
-
budget?: Money;
|
|
32
29
|
work_finished_by:
|
|
33
30
|
| "as soon as possible"
|
|
34
31
|
| "within 1 month"
|
|
@@ -36,4 +33,6 @@ export interface LeadQuote {
|
|
|
36
33
|
| "within 6 months"
|
|
37
34
|
| "over 6 months";
|
|
38
35
|
description: string;
|
|
36
|
+
job_items?: Array<JobItem>;
|
|
37
|
+
total?: MoneyTotal;
|
|
39
38
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Address } from "./Address";
|
|
3
|
+
|
|
4
|
+
export const LeadTrade = t.intersection([
|
|
5
|
+
t.type({
|
|
6
|
+
email: t.string,
|
|
7
|
+
mobile: t.string,
|
|
8
|
+
trading_name: t.string,
|
|
9
|
+
}),
|
|
10
|
+
t.partial({
|
|
11
|
+
address: Address,
|
|
12
|
+
}),
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export interface LeadTrade {
|
|
16
|
+
email: string;
|
|
17
|
+
mobile: string;
|
|
18
|
+
trading_name: string;
|
|
19
|
+
address?: Address;
|
|
20
|
+
}
|
|
@@ -25,6 +25,7 @@ export * from "./DirectorVerification";
|
|
|
25
25
|
export * from "./Document";
|
|
26
26
|
export * from "./EmployedDetails";
|
|
27
27
|
export * from "./EmploymentDetails";
|
|
28
|
+
export * from "./Enterprise";
|
|
28
29
|
export * from "./Error";
|
|
29
30
|
export * from "./Event";
|
|
30
31
|
export * from "./EventOptions";
|
|
@@ -59,6 +60,7 @@ export * from "./JobOverride";
|
|
|
59
60
|
export * from "./Lead";
|
|
60
61
|
export * from "./LeadApplicant";
|
|
61
62
|
export * from "./LeadQuote";
|
|
63
|
+
export * from "./LeadTrade";
|
|
62
64
|
export * from "./LimitedCompanyInfo";
|
|
63
65
|
export * from "./Metadata";
|
|
64
66
|
export * from "./Money";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type DeleteEnterpriseRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const deleteEnterpriseOperation = {
|
|
9
|
+
path: "/api/enterprise/{id}",
|
|
10
|
+
method: "delete",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Enterprise },
|
|
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 DeleteEnterpriseRequestFunction = RequestFunction<
|
|
27
|
+
{ params: DeleteEnterpriseRequestParameters },
|
|
28
|
+
schemas.Enterprise
|
|
29
|
+
>;
|
|
@@ -1,8 +1,13 @@
|
|
|
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 DeleteLeadRequestParameters = {
|
|
5
6
|
id: string;
|
|
7
|
+
xKandaBid?: string;
|
|
8
|
+
xKandaCid?: string;
|
|
9
|
+
xKandaEid?: string;
|
|
10
|
+
xKandaTid?: string;
|
|
6
11
|
};
|
|
7
12
|
|
|
8
13
|
export const deleteLeadOperation = {
|
|
@@ -19,6 +24,10 @@ export const deleteLeadOperation = {
|
|
|
19
24
|
in: "path",
|
|
20
25
|
name: "id",
|
|
21
26
|
},
|
|
27
|
+
parameters.xKandaBid,
|
|
28
|
+
parameters.xKandaCid,
|
|
29
|
+
parameters.xKandaEid,
|
|
30
|
+
parameters.xKandaTid,
|
|
22
31
|
],
|
|
23
32
|
requestDefaultHeaders: { Accept: "application/json" },
|
|
24
33
|
} as const;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type GetEnterpriseRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const getEnterpriseOperation = {
|
|
9
|
+
path: "/api/enterprise/{id}",
|
|
10
|
+
method: "get",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Enterprise },
|
|
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 GetEnterpriseRequestFunction = RequestFunction<
|
|
27
|
+
{ params: GetEnterpriseRequestParameters },
|
|
28
|
+
schemas.Enterprise
|
|
29
|
+
>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as t from "io-ts";
|
|
3
|
+
import * as schemas from "../components/schemas";
|
|
4
|
+
|
|
5
|
+
export type GetEnterpriseBranchesRequestParameters = {
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const getEnterpriseBranchesOperation = {
|
|
10
|
+
path: "/api/enterprise/{id}/branch",
|
|
11
|
+
method: "get",
|
|
12
|
+
responses: {
|
|
13
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.Enterprise) },
|
|
14
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
15
|
+
},
|
|
16
|
+
parameters: [
|
|
17
|
+
{
|
|
18
|
+
_tag: "FormParameter",
|
|
19
|
+
explode: false,
|
|
20
|
+
in: "path",
|
|
21
|
+
name: "id",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type GetEnterpriseBranchesRequestFunction = RequestFunction<
|
|
28
|
+
{ params: GetEnterpriseBranchesRequestParameters },
|
|
29
|
+
Array<schemas.Enterprise>
|
|
30
|
+
>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 GetEnterprisesRequestParameters = {
|
|
7
|
+
format?: "reduced" | "full";
|
|
8
|
+
q?: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const getEnterprisesOperation = {
|
|
12
|
+
path: "/api/enterprise",
|
|
13
|
+
method: "get",
|
|
14
|
+
responses: {
|
|
15
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.Enterprise) },
|
|
16
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
17
|
+
},
|
|
18
|
+
parameters: [parameters.format, parameters.q],
|
|
19
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
20
|
+
} as const;
|
|
21
|
+
|
|
22
|
+
export type GetEnterprisesRequestFunction = RequestFunction<
|
|
23
|
+
{ params: GetEnterprisesRequestParameters },
|
|
24
|
+
Array<schemas.Enterprise>
|
|
25
|
+
>;
|
|
@@ -1,8 +1,13 @@
|
|
|
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 GetLeadRequestParameters = {
|
|
5
6
|
id: string;
|
|
7
|
+
xKandaBid?: string;
|
|
8
|
+
xKandaCid?: string;
|
|
9
|
+
xKandaEid?: string;
|
|
10
|
+
xKandaTid?: string;
|
|
6
11
|
};
|
|
7
12
|
|
|
8
13
|
export const getLeadOperation = {
|
|
@@ -19,6 +24,10 @@ export const getLeadOperation = {
|
|
|
19
24
|
in: "path",
|
|
20
25
|
name: "id",
|
|
21
26
|
},
|
|
27
|
+
parameters.xKandaBid,
|
|
28
|
+
parameters.xKandaCid,
|
|
29
|
+
parameters.xKandaEid,
|
|
30
|
+
parameters.xKandaTid,
|
|
22
31
|
],
|
|
23
32
|
requestDefaultHeaders: { Accept: "application/json" },
|
|
24
33
|
} as const;
|
|
@@ -6,6 +6,10 @@ import * as schemas from "../components/schemas";
|
|
|
6
6
|
export type GetLeadsRequestParameters = {
|
|
7
7
|
format?: "reduced" | "full";
|
|
8
8
|
q?: string;
|
|
9
|
+
xKandaBid?: string;
|
|
10
|
+
xKandaCid?: string;
|
|
11
|
+
xKandaEid?: string;
|
|
12
|
+
xKandaTid?: string;
|
|
9
13
|
};
|
|
10
14
|
|
|
11
15
|
export const getLeadsOperation = {
|
|
@@ -15,7 +19,14 @@ export const getLeadsOperation = {
|
|
|
15
19
|
"200": { _tag: "JsonResponse", decoder: t.array(schemas.Lead) },
|
|
16
20
|
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
17
21
|
},
|
|
18
|
-
parameters: [
|
|
22
|
+
parameters: [
|
|
23
|
+
parameters.format,
|
|
24
|
+
parameters.q,
|
|
25
|
+
parameters.xKandaBid,
|
|
26
|
+
parameters.xKandaCid,
|
|
27
|
+
parameters.xKandaEid,
|
|
28
|
+
parameters.xKandaTid,
|
|
29
|
+
],
|
|
19
30
|
requestDefaultHeaders: { Accept: "application/json" },
|
|
20
31
|
} as const;
|
|
21
32
|
|