@kanda-libs/ks-component-ts 0.2.240-qa → 0.2.240-qa3
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/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js +3 -3
- package/app/.yalc/@kanda-libs/ks-component-ts/dist/index.esm.js.map +3 -3
- package/app/.yalc/@kanda-libs/ks-component-ts/package.json +2 -2
- package/app/.yalc/@kanda-libs/ks-component-ts/yalc.sig +1 -1
- package/app/yalc.lock +1 -1
- package/dist/index.d.ts +7268 -10040
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +2 -2
- package/src/field/types.d.ts +2 -2
- package/src/generated/components/schemas/FinanceRate.ts +0 -2
- package/src/generated/components/schemas/index.ts +0 -3
- package/src/generated/operations/index.ts +0 -41
- package/src/generated/widget/index.tsx +34423 -44142
- package/yarn.lock +64 -0
- package/src/generated/components/schemas/Lead.ts +0 -61
- package/src/generated/components/schemas/LeadApplicant.ts +0 -16
- package/src/generated/components/schemas/LeadQuote.ts +0 -39
- package/src/generated/operations/deleteLead.ts +0 -29
- package/src/generated/operations/getLead.ts +0 -29
- package/src/generated/operations/getLeads.ts +0 -25
- package/src/generated/operations/postLead.ts +0 -24
- package/src/generated/operations/putLead.ts +0 -35
- package/src/generated/operations/quoteLead.ts +0 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanda-libs/ks-component-ts",
|
|
3
|
-
"version": "0.2.240-
|
|
3
|
+
"version": "0.2.240-qa3",
|
|
4
4
|
"description": "Kanda form component library",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"author": "rob@kanda.co.uk",
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@kanda-libs/ks-amplitude-provider": "
|
|
41
|
+
"@kanda-libs/ks-amplitude-provider": "0.0.17-qa2",
|
|
42
42
|
"@kanda-libs/ks-design-library": "0.2.70",
|
|
43
43
|
"@kanda-libs/ks-frontend-services": "0.2.140",
|
|
44
44
|
"@types/browser-image-compression": "^1.0.9",
|
package/src/field/types.d.ts
CHANGED
|
@@ -114,9 +114,9 @@ export type ValidationValue =
|
|
|
114
114
|
| string
|
|
115
115
|
| number
|
|
116
116
|
| RegExp
|
|
117
|
-
| ((value?: boolean) => boolean)
|
|
117
|
+
| ((value?: boolean | string | number) => boolean)
|
|
118
118
|
| {
|
|
119
|
-
|
|
119
|
+
[key: string]: (value: boolean | string | number) => boolean;
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
export type ValidationError = string | StringIndexedObject<string>;
|
|
@@ -13,7 +13,6 @@ export const FinanceRate = t.intersection([
|
|
|
13
13
|
provider: FinanceProvider,
|
|
14
14
|
}),
|
|
15
15
|
t.partial({
|
|
16
|
-
credit_line: t.number,
|
|
17
16
|
min_charge: t.number,
|
|
18
17
|
apr_type: t.union([
|
|
19
18
|
t.literal("INTEREST_FREE"),
|
|
@@ -35,7 +34,6 @@ export const FinanceRate = t.intersection([
|
|
|
35
34
|
|
|
36
35
|
export interface FinanceRate {
|
|
37
36
|
name: string;
|
|
38
|
-
credit_line?: number;
|
|
39
37
|
fee: number;
|
|
40
38
|
charge: number;
|
|
41
39
|
min_charge?: number;
|
|
@@ -56,9 +56,6 @@ export * from "./JobCompanyInfo";
|
|
|
56
56
|
export * from "./JobCreditState";
|
|
57
57
|
export * from "./JobItem";
|
|
58
58
|
export * from "./JobOverride";
|
|
59
|
-
export * from "./Lead";
|
|
60
|
-
export * from "./LeadApplicant";
|
|
61
|
-
export * from "./LeadQuote";
|
|
62
59
|
export * from "./LimitedCompanyInfo";
|
|
63
60
|
export * from "./Metadata";
|
|
64
61
|
export * from "./Money";
|
|
@@ -42,7 +42,6 @@ import {
|
|
|
42
42
|
DeleteDocumentRequestFunction,
|
|
43
43
|
} from "./deleteDocument";
|
|
44
44
|
import { deleteJobOperation, DeleteJobRequestFunction } from "./deleteJob";
|
|
45
|
-
import { deleteLeadOperation, DeleteLeadRequestFunction } from "./deleteLead";
|
|
46
45
|
import {
|
|
47
46
|
deleteMonitorOperation,
|
|
48
47
|
DeleteMonitorRequestFunction,
|
|
@@ -93,8 +92,6 @@ import {
|
|
|
93
92
|
} from "./getInfoEntity";
|
|
94
93
|
import { getJobOperation, GetJobRequestFunction } from "./getJob";
|
|
95
94
|
import { getJobsOperation, GetJobsRequestFunction } from "./getJobs";
|
|
96
|
-
import { getLeadOperation, GetLeadRequestFunction } from "./getLead";
|
|
97
|
-
import { getLeadsOperation, GetLeadsRequestFunction } from "./getLeads";
|
|
98
95
|
import { getMonitorOperation, GetMonitorRequestFunction } from "./getMonitor";
|
|
99
96
|
import {
|
|
100
97
|
getMonitorsOperation,
|
|
@@ -231,7 +228,6 @@ import {
|
|
|
231
228
|
} from "./postDocument";
|
|
232
229
|
import { postEventOperation, PostEventRequestFunction } from "./postEvent";
|
|
233
230
|
import { postJobOperation, PostJobRequestFunction } from "./postJob";
|
|
234
|
-
import { postLeadOperation, PostLeadRequestFunction } from "./postLead";
|
|
235
231
|
import { postMeOperation, PostMeRequestFunction } from "./postMe";
|
|
236
232
|
import {
|
|
237
233
|
postMonitorOperation,
|
|
@@ -281,7 +277,6 @@ import {
|
|
|
281
277
|
PutDocumentRequestFunction,
|
|
282
278
|
} from "./putDocument";
|
|
283
279
|
import { putJobOperation, PutJobRequestFunction } from "./putJob";
|
|
284
|
-
import { putLeadOperation, PutLeadRequestFunction } from "./putLead";
|
|
285
280
|
import { putMeOperation, PutMeRequestFunction } from "./putMe";
|
|
286
281
|
import { putMonitorOperation, PutMonitorRequestFunction } from "./putMonitor";
|
|
287
282
|
import {
|
|
@@ -299,7 +294,6 @@ import {
|
|
|
299
294
|
quoteCreditOperation,
|
|
300
295
|
QuoteCreditRequestFunction,
|
|
301
296
|
} from "./quoteCredit";
|
|
302
|
-
import { quoteLeadOperation, QuoteLeadRequestFunction } from "./quoteLead";
|
|
303
297
|
import { reapplyJobOperation, ReapplyJobRequestFunction } from "./reapplyJob";
|
|
304
298
|
import { resendJobOperation, ResendJobRequestFunction } from "./resendJob";
|
|
305
299
|
import { runnerOperation, RunnerRequestFunction } from "./runner";
|
|
@@ -409,12 +403,6 @@ export const operations: Operations = {
|
|
|
409
403
|
getDocument: getDocumentOperation,
|
|
410
404
|
putDocument: putDocumentOperation,
|
|
411
405
|
deleteDocument: deleteDocumentOperation,
|
|
412
|
-
getLeads: getLeadsOperation,
|
|
413
|
-
postLead: postLeadOperation,
|
|
414
|
-
getLead: getLeadOperation,
|
|
415
|
-
putLead: putLeadOperation,
|
|
416
|
-
deleteLead: deleteLeadOperation,
|
|
417
|
-
quoteLead: quoteLeadOperation,
|
|
418
406
|
getSubscriptions: getSubscriptionsOperation,
|
|
419
407
|
postSubscription: postSubscriptionOperation,
|
|
420
408
|
getSubscription: getSubscriptionOperation,
|
|
@@ -529,12 +517,6 @@ export interface OperationRequestFunctionMap {
|
|
|
529
517
|
getDocument: GetDocumentRequestFunction;
|
|
530
518
|
putDocument: PutDocumentRequestFunction;
|
|
531
519
|
deleteDocument: DeleteDocumentRequestFunction;
|
|
532
|
-
getLeads: GetLeadsRequestFunction;
|
|
533
|
-
postLead: PostLeadRequestFunction;
|
|
534
|
-
getLead: GetLeadRequestFunction;
|
|
535
|
-
putLead: PutLeadRequestFunction;
|
|
536
|
-
deleteLead: DeleteLeadRequestFunction;
|
|
537
|
-
quoteLead: QuoteLeadRequestFunction;
|
|
538
520
|
getSubscriptions: GetSubscriptionsRequestFunction;
|
|
539
521
|
postSubscription: PostSubscriptionRequestFunction;
|
|
540
522
|
getSubscription: GetSubscriptionRequestFunction;
|
|
@@ -738,12 +720,6 @@ export const requestFunctionsBuilder = (
|
|
|
738
720
|
operations.deleteDocument,
|
|
739
721
|
requestAdapter
|
|
740
722
|
),
|
|
741
|
-
getLeads: requestFunctionBuilder(operations.getLeads, requestAdapter),
|
|
742
|
-
postLead: requestFunctionBuilder(operations.postLead, requestAdapter),
|
|
743
|
-
getLead: requestFunctionBuilder(operations.getLead, requestAdapter),
|
|
744
|
-
putLead: requestFunctionBuilder(operations.putLead, requestAdapter),
|
|
745
|
-
deleteLead: requestFunctionBuilder(operations.deleteLead, requestAdapter),
|
|
746
|
-
quoteLead: requestFunctionBuilder(operations.quoteLead, requestAdapter),
|
|
747
723
|
getSubscriptions: requestFunctionBuilder(
|
|
748
724
|
operations.getSubscriptions,
|
|
749
725
|
requestAdapter
|
|
@@ -1009,17 +985,6 @@ export const documentServiceBuilder = (
|
|
|
1009
985
|
deleteDocument: requestFunctions.deleteDocument,
|
|
1010
986
|
});
|
|
1011
987
|
|
|
1012
|
-
export const leadServiceBuilder = (
|
|
1013
|
-
requestFunctions: OperationRequestFunctionMap
|
|
1014
|
-
) => ({
|
|
1015
|
-
getLeads: requestFunctions.getLeads,
|
|
1016
|
-
postLead: requestFunctions.postLead,
|
|
1017
|
-
getLead: requestFunctions.getLead,
|
|
1018
|
-
putLead: requestFunctions.putLead,
|
|
1019
|
-
deleteLead: requestFunctions.deleteLead,
|
|
1020
|
-
quoteLead: requestFunctions.quoteLead,
|
|
1021
|
-
});
|
|
1022
|
-
|
|
1023
988
|
export const subscriptionServiceBuilder = (
|
|
1024
989
|
requestFunctions: OperationRequestFunctionMap
|
|
1025
990
|
) => ({
|
|
@@ -1152,12 +1117,6 @@ export interface Operations {
|
|
|
1152
1117
|
getDocument: typeof getDocumentOperation;
|
|
1153
1118
|
putDocument: typeof putDocumentOperation;
|
|
1154
1119
|
deleteDocument: typeof deleteDocumentOperation;
|
|
1155
|
-
getLeads: typeof getLeadsOperation;
|
|
1156
|
-
postLead: typeof postLeadOperation;
|
|
1157
|
-
getLead: typeof getLeadOperation;
|
|
1158
|
-
putLead: typeof putLeadOperation;
|
|
1159
|
-
deleteLead: typeof deleteLeadOperation;
|
|
1160
|
-
quoteLead: typeof quoteLeadOperation;
|
|
1161
1120
|
getSubscriptions: typeof getSubscriptionsOperation;
|
|
1162
1121
|
postSubscription: typeof postSubscriptionOperation;
|
|
1163
1122
|
getSubscription: typeof getSubscriptionOperation;
|