@kanda-libs/ks-component-ts 0.3.107 → 0.3.109
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 +14107 -14101
- 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/TradeSummary.ts +2 -0
- package/src/generated/operations/cancelCompany.ts +29 -0
- package/src/generated/operations/index.ts +12 -0
- package/src/generated/operations/providerCheckWebhook.ts +2 -1
- package/src/generated/operations/providerWebhook.ts +2 -1
- package/src/generated/widget/index.tsx +68212 -68164
package/package.json
CHANGED
|
@@ -12,6 +12,7 @@ export const TradeSummary = t.partial({
|
|
|
12
12
|
work_types: t.array(WorkType),
|
|
13
13
|
lat_lng: LatLng,
|
|
14
14
|
distance: t.number,
|
|
15
|
+
landing_url: t.string,
|
|
15
16
|
});
|
|
16
17
|
|
|
17
18
|
export interface TradeSummary {
|
|
@@ -22,4 +23,5 @@ export interface TradeSummary {
|
|
|
22
23
|
work_types?: Array<WorkType>;
|
|
23
24
|
lat_lng?: LatLng;
|
|
24
25
|
distance?: number;
|
|
26
|
+
landing_url?: string;
|
|
25
27
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@kanda-libs/openapi-io-ts-runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type CancelCompanyRequestParameters = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const cancelCompanyOperation = {
|
|
9
|
+
path: "/api/company/{id}/cancel",
|
|
10
|
+
method: "post",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Company },
|
|
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 CancelCompanyRequestFunction = RequestFunction<
|
|
27
|
+
{ params: CancelCompanyRequestParameters },
|
|
28
|
+
schemas.Company
|
|
29
|
+
>;
|
|
@@ -33,6 +33,10 @@ import {
|
|
|
33
33
|
} from "./approveJobSatNote";
|
|
34
34
|
import { archiveJobOperation, ArchiveJobRequestFunction } from "./archiveJob";
|
|
35
35
|
import { budgetLeadOperation, BudgetLeadRequestFunction } from "./budgetLead";
|
|
36
|
+
import {
|
|
37
|
+
cancelCompanyOperation,
|
|
38
|
+
CancelCompanyRequestFunction,
|
|
39
|
+
} from "./cancelCompany";
|
|
36
40
|
import {
|
|
37
41
|
checkCreditOperation,
|
|
38
42
|
CheckCreditRequestFunction,
|
|
@@ -803,6 +807,7 @@ export const operations: Operations = {
|
|
|
803
807
|
postCompanyReferrals: postCompanyReferralsOperation,
|
|
804
808
|
suspendCompany: suspendCompanyOperation,
|
|
805
809
|
reactivateCompany: reactivateCompanyOperation,
|
|
810
|
+
cancelCompany: cancelCompanyOperation,
|
|
806
811
|
approveCompany: approveCompanyOperation,
|
|
807
812
|
declineCompany: declineCompanyOperation,
|
|
808
813
|
exportFcaApproved: exportFcaApprovedOperation,
|
|
@@ -1034,6 +1039,7 @@ export interface OperationRequestFunctionMap {
|
|
|
1034
1039
|
postCompanyReferrals: PostCompanyReferralsRequestFunction;
|
|
1035
1040
|
suspendCompany: SuspendCompanyRequestFunction;
|
|
1036
1041
|
reactivateCompany: ReactivateCompanyRequestFunction;
|
|
1042
|
+
cancelCompany: CancelCompanyRequestFunction;
|
|
1037
1043
|
approveCompany: ApproveCompanyRequestFunction;
|
|
1038
1044
|
declineCompany: DeclineCompanyRequestFunction;
|
|
1039
1045
|
exportFcaApproved: ExportFcaApprovedRequestFunction;
|
|
@@ -1459,6 +1465,10 @@ export const requestFunctionsBuilder = (
|
|
|
1459
1465
|
operations.reactivateCompany,
|
|
1460
1466
|
requestAdapter
|
|
1461
1467
|
),
|
|
1468
|
+
cancelCompany: requestFunctionBuilder(
|
|
1469
|
+
operations.cancelCompany,
|
|
1470
|
+
requestAdapter
|
|
1471
|
+
),
|
|
1462
1472
|
approveCompany: requestFunctionBuilder(
|
|
1463
1473
|
operations.approveCompany,
|
|
1464
1474
|
requestAdapter
|
|
@@ -2081,6 +2091,7 @@ export const companyServiceBuilder = (
|
|
|
2081
2091
|
postCompanyReferrals: requestFunctions.postCompanyReferrals,
|
|
2082
2092
|
suspendCompany: requestFunctions.suspendCompany,
|
|
2083
2093
|
reactivateCompany: requestFunctions.reactivateCompany,
|
|
2094
|
+
cancelCompany: requestFunctions.cancelCompany,
|
|
2084
2095
|
approveCompany: requestFunctions.approveCompany,
|
|
2085
2096
|
declineCompany: requestFunctions.declineCompany,
|
|
2086
2097
|
exportFcaApproved: requestFunctions.exportFcaApproved,
|
|
@@ -2344,6 +2355,7 @@ export interface Operations {
|
|
|
2344
2355
|
postCompanyReferrals: typeof postCompanyReferralsOperation;
|
|
2345
2356
|
suspendCompany: typeof suspendCompanyOperation;
|
|
2346
2357
|
reactivateCompany: typeof reactivateCompanyOperation;
|
|
2358
|
+
cancelCompany: typeof cancelCompanyOperation;
|
|
2347
2359
|
approveCompany: typeof approveCompanyOperation;
|
|
2348
2360
|
declineCompany: typeof declineCompanyOperation;
|
|
2349
2361
|
exportFcaApproved: typeof exportFcaApprovedOperation;
|