@kanda-libs/ks-component-ts 0.2.426 → 0.2.428
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 +15101 -12963
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/components/parameters/index.ts +1 -0
- package/src/generated/components/parameters/tier.ts +8 -0
- package/src/generated/components/schemas/Budgets.ts +12 -0
- package/src/generated/components/schemas/Company.ts +3 -0
- package/src/generated/components/schemas/Introduction.ts +50 -0
- package/src/generated/components/schemas/IntroductionState.ts +34 -0
- package/src/generated/components/schemas/JobDetails.ts +5 -0
- package/src/generated/components/schemas/Tier.ts +8 -0
- package/src/generated/components/schemas/TierConfig.ts +13 -0
- package/src/generated/components/schemas/TierEvent.ts +15 -0
- package/src/generated/components/schemas/index.ts +7 -0
- package/src/generated/operations/deleteIntroduction.ts +29 -0
- package/src/generated/operations/getIntroduction.ts +29 -0
- package/src/generated/operations/getIntroductions.ts +25 -0
- package/src/generated/operations/index.ts +114 -0
- package/src/generated/operations/postCompanyBilling.ts +3 -0
- package/src/generated/operations/postCompanyBillingSuccess.ts +3 -0
- package/src/generated/operations/postIntroduction.ts +24 -0
- package/src/generated/operations/postIntroductionConsumerDetails.ts +38 -0
- package/src/generated/operations/postIntroductionConvertJob.ts +29 -0
- package/src/generated/operations/postIntroductionJobDetails.ts +38 -0
- package/src/generated/operations/postIntroductionTrader.ts +38 -0
- package/src/generated/operations/putIntroduction.ts +35 -0
- package/src/generated/widget/index.tsx +69612 -62050
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ import { Metadata } from "./Metadata";
|
|
|
13
13
|
import { RedirectURLs } from "./RedirectURLs";
|
|
14
14
|
import { SolarCompanyInfo } from "./SolarCompanyInfo";
|
|
15
15
|
import { SoleTraderInfo } from "./SoleTraderInfo";
|
|
16
|
+
import { TierConfig } from "./TierConfig";
|
|
16
17
|
import { UserType } from "./UserType";
|
|
17
18
|
import { WelcomeSkipBanner } from "./WelcomeSkipBanner";
|
|
18
19
|
|
|
@@ -77,6 +78,7 @@ export const Company = t.intersection([
|
|
|
77
78
|
lender_configs: t.array(LenderConfig),
|
|
78
79
|
business_type: t.string,
|
|
79
80
|
business_config: BusinessConfig,
|
|
81
|
+
tier_config: TierConfig,
|
|
80
82
|
metadata: Metadata,
|
|
81
83
|
}),
|
|
82
84
|
]);
|
|
@@ -130,5 +132,6 @@ export interface Company {
|
|
|
130
132
|
lender_configs?: Array<LenderConfig>;
|
|
131
133
|
business_type?: string;
|
|
132
134
|
business_config?: BusinessConfig;
|
|
135
|
+
tier_config?: TierConfig;
|
|
133
136
|
metadata?: Metadata;
|
|
134
137
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { ApplicantDetails } from "./ApplicantDetails";
|
|
3
|
+
import { Budgets } from "./Budgets";
|
|
4
|
+
import { ContactInfo } from "./ContactInfo";
|
|
5
|
+
import { FlowType } from "./FlowType";
|
|
6
|
+
import { IntroductionState } from "./IntroductionState";
|
|
7
|
+
import { JobDetails } from "./JobDetails";
|
|
8
|
+
import { Metadata } from "./Metadata";
|
|
9
|
+
|
|
10
|
+
export const Introduction = t.intersection([
|
|
11
|
+
t.type({
|
|
12
|
+
consumer: ContactInfo,
|
|
13
|
+
}),
|
|
14
|
+
t.partial({
|
|
15
|
+
id: t.string,
|
|
16
|
+
cid: t.string,
|
|
17
|
+
oid: t.string,
|
|
18
|
+
aid: t.string,
|
|
19
|
+
eid: t.string,
|
|
20
|
+
bid: t.string,
|
|
21
|
+
tid: t.string,
|
|
22
|
+
consumer_details: ApplicantDetails,
|
|
23
|
+
budgets: Budgets,
|
|
24
|
+
trader: ContactInfo,
|
|
25
|
+
job_details: JobDetails,
|
|
26
|
+
current_state: IntroductionState,
|
|
27
|
+
states: t.array(IntroductionState),
|
|
28
|
+
flow_type: FlowType,
|
|
29
|
+
metadata: Metadata,
|
|
30
|
+
}),
|
|
31
|
+
]);
|
|
32
|
+
|
|
33
|
+
export interface Introduction {
|
|
34
|
+
id?: string;
|
|
35
|
+
cid?: string;
|
|
36
|
+
oid?: string;
|
|
37
|
+
aid?: string;
|
|
38
|
+
eid?: string;
|
|
39
|
+
bid?: string;
|
|
40
|
+
tid?: string;
|
|
41
|
+
consumer: ContactInfo;
|
|
42
|
+
consumer_details?: ApplicantDetails;
|
|
43
|
+
budgets?: Budgets;
|
|
44
|
+
trader?: ContactInfo;
|
|
45
|
+
job_details?: JobDetails;
|
|
46
|
+
current_state?: IntroductionState;
|
|
47
|
+
states?: Array<IntroductionState>;
|
|
48
|
+
flow_type?: FlowType;
|
|
49
|
+
metadata?: Metadata;
|
|
50
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
|
|
3
|
+
export const IntroductionState = t.union([
|
|
4
|
+
t.literal("consumer_sent"),
|
|
5
|
+
t.literal("consumer_viewed"),
|
|
6
|
+
t.literal("consumer_agreed"),
|
|
7
|
+
t.literal("consumer_details_provided"),
|
|
8
|
+
t.literal("consumer_rejected"),
|
|
9
|
+
t.literal("trader_sent"),
|
|
10
|
+
t.literal("trader_viewed"),
|
|
11
|
+
t.literal("trader_agreed"),
|
|
12
|
+
t.literal("trader_rejected"),
|
|
13
|
+
t.literal("trader_details_provided"),
|
|
14
|
+
t.literal("trader_is_reviewed"),
|
|
15
|
+
t.literal("trader_is_verified"),
|
|
16
|
+
t.literal("trader_is_declined"),
|
|
17
|
+
t.literal("job_converted"),
|
|
18
|
+
]);
|
|
19
|
+
|
|
20
|
+
export type IntroductionState =
|
|
21
|
+
| "consumer_sent"
|
|
22
|
+
| "consumer_viewed"
|
|
23
|
+
| "consumer_agreed"
|
|
24
|
+
| "consumer_details_provided"
|
|
25
|
+
| "consumer_rejected"
|
|
26
|
+
| "trader_sent"
|
|
27
|
+
| "trader_viewed"
|
|
28
|
+
| "trader_agreed"
|
|
29
|
+
| "trader_rejected"
|
|
30
|
+
| "trader_details_provided"
|
|
31
|
+
| "trader_is_reviewed"
|
|
32
|
+
| "trader_is_verified"
|
|
33
|
+
| "trader_is_declined"
|
|
34
|
+
| "job_converted";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Tier } from "./Tier";
|
|
3
|
+
import { TierEvent } from "./TierEvent";
|
|
4
|
+
|
|
5
|
+
export const TierConfig = t.type({
|
|
6
|
+
current_tier: Tier,
|
|
7
|
+
tiers: t.array(TierEvent),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export interface TierConfig {
|
|
11
|
+
current_tier: Tier;
|
|
12
|
+
tiers: Array<TierEvent>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { DateFromISOString } from "io-ts-types";
|
|
3
|
+
import { Tier } from "./Tier";
|
|
4
|
+
|
|
5
|
+
export const TierEvent = t.type({
|
|
6
|
+
tier: Tier,
|
|
7
|
+
action: t.union([t.literal("add_tier"), t.literal("remove_tier")]),
|
|
8
|
+
actioned_at: DateFromISOString,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export interface TierEvent {
|
|
12
|
+
tier: Tier;
|
|
13
|
+
action: "add_tier" | "remove_tier";
|
|
14
|
+
actioned_at: Date;
|
|
15
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./Approval";
|
|
|
6
6
|
export * from "./AuthUser";
|
|
7
7
|
export * from "./BankAccount";
|
|
8
8
|
export * from "./Branding";
|
|
9
|
+
export * from "./Budgets";
|
|
9
10
|
export * from "./BusinessConfig";
|
|
10
11
|
export * from "./BusinessSector";
|
|
11
12
|
export * from "./Cache";
|
|
@@ -64,9 +65,12 @@ export * from "./InfoSession";
|
|
|
64
65
|
export * from "./InfoStats";
|
|
65
66
|
export * from "./InfoTrade";
|
|
66
67
|
export * from "./InfoValidationEmail";
|
|
68
|
+
export * from "./Introduction";
|
|
69
|
+
export * from "./IntroductionState";
|
|
67
70
|
export * from "./Job";
|
|
68
71
|
export * from "./JobCompanyInfo";
|
|
69
72
|
export * from "./JobCreditState";
|
|
73
|
+
export * from "./JobDetails";
|
|
70
74
|
export * from "./JobItem";
|
|
71
75
|
export * from "./JobOverride";
|
|
72
76
|
export * from "./LatLng";
|
|
@@ -112,6 +116,9 @@ export * from "./SolarCompanyInfo";
|
|
|
112
116
|
export * from "./SoleTraderInfo";
|
|
113
117
|
export * from "./Subscription";
|
|
114
118
|
export * from "./Tally";
|
|
119
|
+
export * from "./Tier";
|
|
120
|
+
export * from "./TierConfig";
|
|
121
|
+
export * from "./TierEvent";
|
|
115
122
|
export * from "./Title";
|
|
116
123
|
export * from "./TradeFilter";
|
|
117
124
|
export * from "./TradeSummary";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type DeleteIntroductionRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const deleteIntroductionOperation = {
|
|
9
|
+
path: "/api/introduction/{id}",
|
|
10
|
+
method: "delete",
|
|
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 DeleteIntroductionRequestFunction = RequestFunction<
|
|
27
|
+
{ params: DeleteIntroductionRequestParameters },
|
|
28
|
+
schemas.Introduction
|
|
29
|
+
>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type GetIntroductionRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const getIntroductionOperation = {
|
|
9
|
+
path: "/api/introduction/{id}",
|
|
10
|
+
method: "get",
|
|
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 GetIntroductionRequestFunction = RequestFunction<
|
|
27
|
+
{ params: GetIntroductionRequestParameters },
|
|
28
|
+
schemas.Introduction
|
|
29
|
+
>;
|
|
@@ -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 GetIntroductionsRequestParameters = {
|
|
7
|
+
format?: "reduced" | "full";
|
|
8
|
+
q?: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const getIntroductionsOperation = {
|
|
12
|
+
path: "/api/introduction",
|
|
13
|
+
method: "get",
|
|
14
|
+
responses: {
|
|
15
|
+
"200": { _tag: "JsonResponse", decoder: t.array(schemas.Introduction) },
|
|
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 GetIntroductionsRequestFunction = RequestFunction<
|
|
23
|
+
{ params: GetIntroductionsRequestParameters },
|
|
24
|
+
Array<schemas.Introduction>
|
|
25
|
+
>;
|
|
@@ -70,6 +70,10 @@ import {
|
|
|
70
70
|
deleteEnterpriseOperation,
|
|
71
71
|
DeleteEnterpriseRequestFunction,
|
|
72
72
|
} from "./deleteEnterprise";
|
|
73
|
+
import {
|
|
74
|
+
deleteIntroductionOperation,
|
|
75
|
+
DeleteIntroductionRequestFunction,
|
|
76
|
+
} from "./deleteIntroduction";
|
|
73
77
|
import { deleteJobOperation, DeleteJobRequestFunction } from "./deleteJob";
|
|
74
78
|
import { deleteLeadOperation, DeleteLeadRequestFunction } from "./deleteLead";
|
|
75
79
|
import {
|
|
@@ -152,6 +156,14 @@ import {
|
|
|
152
156
|
getInfoEntityOperation,
|
|
153
157
|
GetInfoEntityRequestFunction,
|
|
154
158
|
} from "./getInfoEntity";
|
|
159
|
+
import {
|
|
160
|
+
getIntroductionOperation,
|
|
161
|
+
GetIntroductionRequestFunction,
|
|
162
|
+
} from "./getIntroduction";
|
|
163
|
+
import {
|
|
164
|
+
getIntroductionsOperation,
|
|
165
|
+
GetIntroductionsRequestFunction,
|
|
166
|
+
} from "./getIntroductions";
|
|
155
167
|
import { getJobOperation, GetJobRequestFunction } from "./getJob";
|
|
156
168
|
import { getJobsOperation, GetJobsRequestFunction } from "./getJobs";
|
|
157
169
|
import { getLeadOperation, GetLeadRequestFunction } from "./getLead";
|
|
@@ -362,6 +374,26 @@ import {
|
|
|
362
374
|
PostEnterpriseBranchesRequestFunction,
|
|
363
375
|
} from "./postEnterpriseBranches";
|
|
364
376
|
import { postEventOperation, PostEventRequestFunction } from "./postEvent";
|
|
377
|
+
import {
|
|
378
|
+
postIntroductionOperation,
|
|
379
|
+
PostIntroductionRequestFunction,
|
|
380
|
+
} from "./postIntroduction";
|
|
381
|
+
import {
|
|
382
|
+
postIntroductionConsumerDetailsOperation,
|
|
383
|
+
PostIntroductionConsumerDetailsRequestFunction,
|
|
384
|
+
} from "./postIntroductionConsumerDetails";
|
|
385
|
+
import {
|
|
386
|
+
postIntroductionConvertJobOperation,
|
|
387
|
+
PostIntroductionConvertJobRequestFunction,
|
|
388
|
+
} from "./postIntroductionConvertJob";
|
|
389
|
+
import {
|
|
390
|
+
postIntroductionJobDetailsOperation,
|
|
391
|
+
PostIntroductionJobDetailsRequestFunction,
|
|
392
|
+
} from "./postIntroductionJobDetails";
|
|
393
|
+
import {
|
|
394
|
+
postIntroductionTraderOperation,
|
|
395
|
+
PostIntroductionTraderRequestFunction,
|
|
396
|
+
} from "./postIntroductionTrader";
|
|
365
397
|
import { postJobOperation, PostJobRequestFunction } from "./postJob";
|
|
366
398
|
import { postLeadOperation, PostLeadRequestFunction } from "./postLead";
|
|
367
399
|
import { postMeOperation, PostMeRequestFunction } from "./postMe";
|
|
@@ -424,6 +456,10 @@ import {
|
|
|
424
456
|
putEnterpriseOperation,
|
|
425
457
|
PutEnterpriseRequestFunction,
|
|
426
458
|
} from "./putEnterprise";
|
|
459
|
+
import {
|
|
460
|
+
putIntroductionOperation,
|
|
461
|
+
PutIntroductionRequestFunction,
|
|
462
|
+
} from "./putIntroduction";
|
|
427
463
|
import { putJobOperation, PutJobRequestFunction } from "./putJob";
|
|
428
464
|
import { putLeadOperation, PutLeadRequestFunction } from "./putLead";
|
|
429
465
|
import { putMeOperation, PutMeRequestFunction } from "./putMe";
|
|
@@ -534,6 +570,15 @@ export const operations: Operations = {
|
|
|
534
570
|
deleteEnterprise: deleteEnterpriseOperation,
|
|
535
571
|
getEnterpriseBranches: getEnterpriseBranchesOperation,
|
|
536
572
|
postEnterpriseBranches: postEnterpriseBranchesOperation,
|
|
573
|
+
getIntroductions: getIntroductionsOperation,
|
|
574
|
+
postIntroduction: postIntroductionOperation,
|
|
575
|
+
getIntroduction: getIntroductionOperation,
|
|
576
|
+
putIntroduction: putIntroductionOperation,
|
|
577
|
+
deleteIntroduction: deleteIntroductionOperation,
|
|
578
|
+
postIntroductionConsumerDetails: postIntroductionConsumerDetailsOperation,
|
|
579
|
+
postIntroductionJobDetails: postIntroductionJobDetailsOperation,
|
|
580
|
+
postIntroductionTrader: postIntroductionTraderOperation,
|
|
581
|
+
postIntroductionConvertJob: postIntroductionConvertJobOperation,
|
|
537
582
|
getCompanies: getCompaniesOperation,
|
|
538
583
|
postCompany: postCompanyOperation,
|
|
539
584
|
getCompany: getCompanyOperation,
|
|
@@ -700,6 +745,15 @@ export interface OperationRequestFunctionMap {
|
|
|
700
745
|
deleteEnterprise: DeleteEnterpriseRequestFunction;
|
|
701
746
|
getEnterpriseBranches: GetEnterpriseBranchesRequestFunction;
|
|
702
747
|
postEnterpriseBranches: PostEnterpriseBranchesRequestFunction;
|
|
748
|
+
getIntroductions: GetIntroductionsRequestFunction;
|
|
749
|
+
postIntroduction: PostIntroductionRequestFunction;
|
|
750
|
+
getIntroduction: GetIntroductionRequestFunction;
|
|
751
|
+
putIntroduction: PutIntroductionRequestFunction;
|
|
752
|
+
deleteIntroduction: DeleteIntroductionRequestFunction;
|
|
753
|
+
postIntroductionConsumerDetails: PostIntroductionConsumerDetailsRequestFunction;
|
|
754
|
+
postIntroductionJobDetails: PostIntroductionJobDetailsRequestFunction;
|
|
755
|
+
postIntroductionTrader: PostIntroductionTraderRequestFunction;
|
|
756
|
+
postIntroductionConvertJob: PostIntroductionConvertJobRequestFunction;
|
|
703
757
|
getCompanies: GetCompaniesRequestFunction;
|
|
704
758
|
postCompany: PostCompanyRequestFunction;
|
|
705
759
|
getCompany: GetCompanyRequestFunction;
|
|
@@ -949,6 +1003,42 @@ export const requestFunctionsBuilder = (
|
|
|
949
1003
|
operations.postEnterpriseBranches,
|
|
950
1004
|
requestAdapter
|
|
951
1005
|
),
|
|
1006
|
+
getIntroductions: requestFunctionBuilder(
|
|
1007
|
+
operations.getIntroductions,
|
|
1008
|
+
requestAdapter
|
|
1009
|
+
),
|
|
1010
|
+
postIntroduction: requestFunctionBuilder(
|
|
1011
|
+
operations.postIntroduction,
|
|
1012
|
+
requestAdapter
|
|
1013
|
+
),
|
|
1014
|
+
getIntroduction: requestFunctionBuilder(
|
|
1015
|
+
operations.getIntroduction,
|
|
1016
|
+
requestAdapter
|
|
1017
|
+
),
|
|
1018
|
+
putIntroduction: requestFunctionBuilder(
|
|
1019
|
+
operations.putIntroduction,
|
|
1020
|
+
requestAdapter
|
|
1021
|
+
),
|
|
1022
|
+
deleteIntroduction: requestFunctionBuilder(
|
|
1023
|
+
operations.deleteIntroduction,
|
|
1024
|
+
requestAdapter
|
|
1025
|
+
),
|
|
1026
|
+
postIntroductionConsumerDetails: requestFunctionBuilder(
|
|
1027
|
+
operations.postIntroductionConsumerDetails,
|
|
1028
|
+
requestAdapter
|
|
1029
|
+
),
|
|
1030
|
+
postIntroductionJobDetails: requestFunctionBuilder(
|
|
1031
|
+
operations.postIntroductionJobDetails,
|
|
1032
|
+
requestAdapter
|
|
1033
|
+
),
|
|
1034
|
+
postIntroductionTrader: requestFunctionBuilder(
|
|
1035
|
+
operations.postIntroductionTrader,
|
|
1036
|
+
requestAdapter
|
|
1037
|
+
),
|
|
1038
|
+
postIntroductionConvertJob: requestFunctionBuilder(
|
|
1039
|
+
operations.postIntroductionConvertJob,
|
|
1040
|
+
requestAdapter
|
|
1041
|
+
),
|
|
952
1042
|
getCompanies: requestFunctionBuilder(operations.getCompanies, requestAdapter),
|
|
953
1043
|
postCompany: requestFunctionBuilder(operations.postCompany, requestAdapter),
|
|
954
1044
|
getCompany: requestFunctionBuilder(operations.getCompany, requestAdapter),
|
|
@@ -1426,6 +1516,21 @@ export const enterpriseServiceBuilder = (
|
|
|
1426
1516
|
postEnterpriseBranches: requestFunctions.postEnterpriseBranches,
|
|
1427
1517
|
});
|
|
1428
1518
|
|
|
1519
|
+
export const introductionServiceBuilder = (
|
|
1520
|
+
requestFunctions: OperationRequestFunctionMap
|
|
1521
|
+
) => ({
|
|
1522
|
+
getIntroductions: requestFunctions.getIntroductions,
|
|
1523
|
+
postIntroduction: requestFunctions.postIntroduction,
|
|
1524
|
+
getIntroduction: requestFunctions.getIntroduction,
|
|
1525
|
+
putIntroduction: requestFunctions.putIntroduction,
|
|
1526
|
+
deleteIntroduction: requestFunctions.deleteIntroduction,
|
|
1527
|
+
postIntroductionConsumerDetails:
|
|
1528
|
+
requestFunctions.postIntroductionConsumerDetails,
|
|
1529
|
+
postIntroductionJobDetails: requestFunctions.postIntroductionJobDetails,
|
|
1530
|
+
postIntroductionTrader: requestFunctions.postIntroductionTrader,
|
|
1531
|
+
postIntroductionConvertJob: requestFunctions.postIntroductionConvertJob,
|
|
1532
|
+
});
|
|
1533
|
+
|
|
1429
1534
|
export const companyServiceBuilder = (
|
|
1430
1535
|
requestFunctions: OperationRequestFunctionMap
|
|
1431
1536
|
) => ({
|
|
@@ -1610,6 +1715,15 @@ export interface Operations {
|
|
|
1610
1715
|
deleteEnterprise: typeof deleteEnterpriseOperation;
|
|
1611
1716
|
getEnterpriseBranches: typeof getEnterpriseBranchesOperation;
|
|
1612
1717
|
postEnterpriseBranches: typeof postEnterpriseBranchesOperation;
|
|
1718
|
+
getIntroductions: typeof getIntroductionsOperation;
|
|
1719
|
+
postIntroduction: typeof postIntroductionOperation;
|
|
1720
|
+
getIntroduction: typeof getIntroductionOperation;
|
|
1721
|
+
putIntroduction: typeof putIntroductionOperation;
|
|
1722
|
+
deleteIntroduction: typeof deleteIntroductionOperation;
|
|
1723
|
+
postIntroductionConsumerDetails: typeof postIntroductionConsumerDetailsOperation;
|
|
1724
|
+
postIntroductionJobDetails: typeof postIntroductionJobDetailsOperation;
|
|
1725
|
+
postIntroductionTrader: typeof postIntroductionTraderOperation;
|
|
1726
|
+
postIntroductionConvertJob: typeof postIntroductionConvertJobOperation;
|
|
1613
1727
|
getCompanies: typeof getCompaniesOperation;
|
|
1614
1728
|
postCompany: typeof postCompanyOperation;
|
|
1615
1729
|
getCompany: typeof getCompanyOperation;
|
|
@@ -1,8 +1,10 @@
|
|
|
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 PostCompanyBillingRequestParameters = {
|
|
5
6
|
id: string;
|
|
7
|
+
tier?: "base_rate" | "enterprise_rate";
|
|
6
8
|
};
|
|
7
9
|
|
|
8
10
|
export const postCompanyBillingOperation = {
|
|
@@ -19,6 +21,7 @@ export const postCompanyBillingOperation = {
|
|
|
19
21
|
in: "path",
|
|
20
22
|
name: "id",
|
|
21
23
|
},
|
|
24
|
+
parameters.tier,
|
|
22
25
|
],
|
|
23
26
|
requestDefaultHeaders: { Accept: "application/json" },
|
|
24
27
|
} as const;
|
|
@@ -1,9 +1,11 @@
|
|
|
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 PostCompanyBillingSuccessRequestParameters = {
|
|
5
6
|
id: string;
|
|
6
7
|
provider?: "stripe" | "premium_credit";
|
|
8
|
+
tier?: "base_rate" | "enterprise_rate";
|
|
7
9
|
};
|
|
8
10
|
|
|
9
11
|
export const postCompanyBillingSuccessOperation = {
|
|
@@ -26,6 +28,7 @@ export const postCompanyBillingSuccessOperation = {
|
|
|
26
28
|
in: "query",
|
|
27
29
|
name: "provider",
|
|
28
30
|
},
|
|
31
|
+
parameters.tier,
|
|
29
32
|
],
|
|
30
33
|
requestDefaultHeaders: { Accept: "application/json" },
|
|
31
34
|
} as const;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export const postIntroductionOperation = {
|
|
5
|
+
path: "/api/introduction",
|
|
6
|
+
method: "post",
|
|
7
|
+
responses: {
|
|
8
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Introduction },
|
|
9
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
10
|
+
},
|
|
11
|
+
parameters: [],
|
|
12
|
+
requestDefaultHeaders: {
|
|
13
|
+
"Content-Type": "application/json",
|
|
14
|
+
Accept: "application/json",
|
|
15
|
+
},
|
|
16
|
+
body: {
|
|
17
|
+
_tag: "JsonBody",
|
|
18
|
+
},
|
|
19
|
+
} as const;
|
|
20
|
+
|
|
21
|
+
export type PostIntroductionRequestFunction = RequestFunction<
|
|
22
|
+
{ body: schemas.Introduction },
|
|
23
|
+
schemas.Introduction
|
|
24
|
+
>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type PostIntroductionConsumerDetailsRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const postIntroductionConsumerDetailsOperation = {
|
|
9
|
+
path: "/api/introduction/{id}/consumer-details",
|
|
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 PostIntroductionConsumerDetailsRequestFunction = RequestFunction<
|
|
33
|
+
{
|
|
34
|
+
params: PostIntroductionConsumerDetailsRequestParameters;
|
|
35
|
+
body: schemas.ApplicantDetails;
|
|
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 PostIntroductionConvertJobRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const postIntroductionConvertJobOperation = {
|
|
9
|
+
path: "/api/introduction/{id}/convert-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 PostIntroductionConvertJobRequestFunction = RequestFunction<
|
|
27
|
+
{ params: PostIntroductionConvertJobRequestParameters },
|
|
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 PostIntroductionJobDetailsRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const postIntroductionJobDetailsOperation = {
|
|
9
|
+
path: "/api/introduction/{id}/job-details",
|
|
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 PostIntroductionJobDetailsRequestFunction = RequestFunction<
|
|
33
|
+
{
|
|
34
|
+
params: PostIntroductionJobDetailsRequestParameters;
|
|
35
|
+
body: schemas.JobDetails;
|
|
36
|
+
},
|
|
37
|
+
schemas.Introduction
|
|
38
|
+
>;
|