@kanda-libs/ks-component-ts 0.2.255 → 0.2.256
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 +8893 -8893
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/operations/index.ts +11 -0
- package/src/generated/operations/infoLead.ts +24 -0
- package/src/generated/widget/index.tsx +46257 -46257
package/package.json
CHANGED
|
@@ -181,6 +181,7 @@ import {
|
|
|
181
181
|
import { infoGhostOperation, InfoGhostRequestFunction } from "./infoGhost";
|
|
182
182
|
import { infoHealthOperation, InfoHealthRequestFunction } from "./infoHealth";
|
|
183
183
|
import { infoIPOperation, InfoIPRequestFunction } from "./infoIP";
|
|
184
|
+
import { infoLeadOperation, InfoLeadRequestFunction } from "./infoLead";
|
|
184
185
|
import {
|
|
185
186
|
infoLegacyRedirectOperation,
|
|
186
187
|
InfoLegacyRedirectRequestFunction,
|
|
@@ -384,6 +385,7 @@ export const operations: Operations = {
|
|
|
384
385
|
getInfoEntity: getInfoEntityOperation,
|
|
385
386
|
infoPartnerBranding: infoPartnerBrandingOperation,
|
|
386
387
|
infoEnterprise: infoEnterpriseOperation,
|
|
388
|
+
infoLead: infoLeadOperation,
|
|
387
389
|
getPartners: getPartnersOperation,
|
|
388
390
|
postPartner: postPartnerOperation,
|
|
389
391
|
getPartner: getPartnerOperation,
|
|
@@ -515,6 +517,7 @@ export interface OperationRequestFunctionMap {
|
|
|
515
517
|
getInfoEntity: GetInfoEntityRequestFunction;
|
|
516
518
|
infoPartnerBranding: InfoPartnerBrandingRequestFunction;
|
|
517
519
|
infoEnterprise: InfoEnterpriseRequestFunction;
|
|
520
|
+
infoLead: InfoLeadRequestFunction;
|
|
518
521
|
getPartners: GetPartnersRequestFunction;
|
|
519
522
|
postPartner: PostPartnerRequestFunction;
|
|
520
523
|
getPartner: GetPartnerRequestFunction;
|
|
@@ -675,6 +678,7 @@ export const requestFunctionsBuilder = (
|
|
|
675
678
|
operations.infoEnterprise,
|
|
676
679
|
requestAdapter
|
|
677
680
|
),
|
|
681
|
+
infoLead: requestFunctionBuilder(operations.infoLead, requestAdapter),
|
|
678
682
|
getPartners: requestFunctionBuilder(operations.getPartners, requestAdapter),
|
|
679
683
|
postPartner: requestFunctionBuilder(operations.postPartner, requestAdapter),
|
|
680
684
|
getPartner: requestFunctionBuilder(operations.getPartner, requestAdapter),
|
|
@@ -1053,6 +1057,12 @@ export const infoEnterpriseServiceBuilder = (
|
|
|
1053
1057
|
infoEnterprise: requestFunctions.infoEnterprise,
|
|
1054
1058
|
});
|
|
1055
1059
|
|
|
1060
|
+
export const infoLeadServiceBuilder = (
|
|
1061
|
+
requestFunctions: OperationRequestFunctionMap
|
|
1062
|
+
) => ({
|
|
1063
|
+
infoLead: requestFunctions.infoLead,
|
|
1064
|
+
});
|
|
1065
|
+
|
|
1056
1066
|
export const partnerServiceBuilder = (
|
|
1057
1067
|
requestFunctions: OperationRequestFunctionMap
|
|
1058
1068
|
) => ({
|
|
@@ -1208,6 +1218,7 @@ export interface Operations {
|
|
|
1208
1218
|
getInfoEntity: typeof getInfoEntityOperation;
|
|
1209
1219
|
infoPartnerBranding: typeof infoPartnerBrandingOperation;
|
|
1210
1220
|
infoEnterprise: typeof infoEnterpriseOperation;
|
|
1221
|
+
infoLead: typeof infoLeadOperation;
|
|
1211
1222
|
getPartners: typeof getPartnersOperation;
|
|
1212
1223
|
postPartner: typeof postPartnerOperation;
|
|
1213
1224
|
getPartner: typeof getPartnerOperation;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export const infoLeadOperation = {
|
|
5
|
+
path: "/api/info/lead",
|
|
6
|
+
method: "put",
|
|
7
|
+
responses: {
|
|
8
|
+
"200": { _tag: "JsonResponse", decoder: schemas.ContactInfo },
|
|
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 InfoLeadRequestFunction = RequestFunction<
|
|
22
|
+
{ body: schemas.ContactInfo },
|
|
23
|
+
schemas.ContactInfo
|
|
24
|
+
>;
|