@kanda-libs/ks-component-ts 0.2.230 → 0.2.232
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 +7373 -7371
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/generated/components/schemas/Credit.ts +3 -0
- package/src/generated/components/schemas/FlowType.ts +5 -0
- package/src/generated/components/schemas/Job.ts +3 -0
- package/src/generated/components/schemas/Payment.ts +3 -0
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/index.ts +153 -28
- package/src/generated/operations/infoExampleJob.ts +18 -0
- package/src/generated/widget/index.tsx +33346 -33341
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import { EmploymentDetails } from "./EmploymentDetails";
|
|
|
7
7
|
import { FinanceDetails } from "./FinanceDetails";
|
|
8
8
|
import { FinanceProvider } from "./FinanceProvider";
|
|
9
9
|
import { FinanceRate } from "./FinanceRate";
|
|
10
|
+
import { FlowType } from "./FlowType";
|
|
10
11
|
import { Metadata } from "./Metadata";
|
|
11
12
|
import { Money } from "./Money";
|
|
12
13
|
import { Signature } from "./Signature";
|
|
@@ -46,6 +47,7 @@ export const Credit = t.intersection([
|
|
|
46
47
|
extra_applicants: t.array(ApplicantDetails),
|
|
47
48
|
credit_documents: t.array(Document),
|
|
48
49
|
signature: Signature,
|
|
50
|
+
flow_type: FlowType,
|
|
49
51
|
metadata: Metadata,
|
|
50
52
|
}),
|
|
51
53
|
]);
|
|
@@ -81,5 +83,6 @@ export interface Credit {
|
|
|
81
83
|
extra_applicants?: Array<ApplicantDetails>;
|
|
82
84
|
credit_documents?: Array<Document>;
|
|
83
85
|
signature?: Signature;
|
|
86
|
+
flow_type?: FlowType;
|
|
84
87
|
metadata?: Metadata;
|
|
85
88
|
}
|
|
@@ -5,6 +5,7 @@ import { CustomerOptions } from "./CustomerOptions";
|
|
|
5
5
|
import { Document } from "./Document";
|
|
6
6
|
import { FinanceRate } from "./FinanceRate";
|
|
7
7
|
import { FinanceStatus } from "./FinanceStatus";
|
|
8
|
+
import { FlowType } from "./FlowType";
|
|
8
9
|
import { JobItem } from "./JobItem";
|
|
9
10
|
import { Metadata } from "./Metadata";
|
|
10
11
|
import { Money } from "./Money";
|
|
@@ -52,6 +53,7 @@ export const Job = t.intersection([
|
|
|
52
53
|
sat_note_timeline: SatNoteTimeline,
|
|
53
54
|
sat_note: SatNote,
|
|
54
55
|
job_type: t.union([t.literal("standard"), t.literal("solar")]),
|
|
56
|
+
flow_type: FlowType,
|
|
55
57
|
job_documents: t.array(Document),
|
|
56
58
|
xid: t.string,
|
|
57
59
|
xref: t.string,
|
|
@@ -84,6 +86,7 @@ export interface Job {
|
|
|
84
86
|
sat_note_timeline?: SatNoteTimeline;
|
|
85
87
|
sat_note?: SatNote;
|
|
86
88
|
job_type?: "standard" | "solar";
|
|
89
|
+
flow_type?: FlowType;
|
|
87
90
|
job_documents?: Array<Document>;
|
|
88
91
|
xid?: string;
|
|
89
92
|
xref?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
+
import { FlowType } from "./FlowType";
|
|
2
3
|
import { Metadata } from "./Metadata";
|
|
3
4
|
import { PaymentOption } from "./PaymentOption";
|
|
4
5
|
|
|
@@ -23,6 +24,7 @@ export const Payment = t.intersection([
|
|
|
23
24
|
t.literal("cancelled"),
|
|
24
25
|
t.literal("refunded"),
|
|
25
26
|
]),
|
|
27
|
+
flow_type: FlowType,
|
|
26
28
|
metadata: Metadata,
|
|
27
29
|
}),
|
|
28
30
|
]);
|
|
@@ -44,5 +46,6 @@ export interface Payment {
|
|
|
44
46
|
| "disputed"
|
|
45
47
|
| "cancelled"
|
|
46
48
|
| "refunded";
|
|
49
|
+
flow_type?: FlowType;
|
|
47
50
|
metadata?: Metadata;
|
|
48
51
|
}
|
|
@@ -147,6 +147,10 @@ import {
|
|
|
147
147
|
infoDirectorOperation,
|
|
148
148
|
InfoDirectorRequestFunction,
|
|
149
149
|
} from "./infoDirector";
|
|
150
|
+
import {
|
|
151
|
+
infoExampleJobOperation,
|
|
152
|
+
InfoExampleJobRequestFunction,
|
|
153
|
+
} from "./infoExampleJob";
|
|
150
154
|
import {
|
|
151
155
|
infoGetCacheOperation,
|
|
152
156
|
InfoGetCacheRequestFunction,
|
|
@@ -308,7 +312,7 @@ import {
|
|
|
308
312
|
ViewJobSatNoteRequestFunction,
|
|
309
313
|
} from "./viewJobSatNote";
|
|
310
314
|
|
|
311
|
-
export const operations = {
|
|
315
|
+
export const operations: Operations = {
|
|
312
316
|
me: meOperation,
|
|
313
317
|
postMe: postMeOperation,
|
|
314
318
|
putMe: putMeOperation,
|
|
@@ -319,6 +323,7 @@ export const operations = {
|
|
|
319
323
|
infoOnboarding: infoOnboardingOperation,
|
|
320
324
|
infoDirector: infoDirectorOperation,
|
|
321
325
|
infoCustomer: infoCustomerOperation,
|
|
326
|
+
infoExampleJob: infoExampleJobOperation,
|
|
322
327
|
infoCredit: infoCreditOperation,
|
|
323
328
|
infoAuth: infoAuthOperation,
|
|
324
329
|
infoVerify: infoVerifyOperation,
|
|
@@ -432,6 +437,7 @@ export interface OperationRequestFunctionMap {
|
|
|
432
437
|
infoOnboarding: InfoOnboardingRequestFunction;
|
|
433
438
|
infoDirector: InfoDirectorRequestFunction;
|
|
434
439
|
infoCustomer: InfoCustomerRequestFunction;
|
|
440
|
+
infoExampleJob: InfoExampleJobRequestFunction;
|
|
435
441
|
infoCredit: InfoCreditRequestFunction;
|
|
436
442
|
infoAuth: InfoAuthRequestFunction;
|
|
437
443
|
infoVerify: InfoVerifyRequestFunction;
|
|
@@ -550,6 +556,10 @@ export const requestFunctionsBuilder = (
|
|
|
550
556
|
),
|
|
551
557
|
infoDirector: requestFunctionBuilder(operations.infoDirector, requestAdapter),
|
|
552
558
|
infoCustomer: requestFunctionBuilder(operations.infoCustomer, requestAdapter),
|
|
559
|
+
infoExampleJob: requestFunctionBuilder(
|
|
560
|
+
operations.infoExampleJob,
|
|
561
|
+
requestAdapter
|
|
562
|
+
),
|
|
553
563
|
infoCredit: requestFunctionBuilder(operations.infoCredit, requestAdapter),
|
|
554
564
|
infoAuth: requestFunctionBuilder(operations.infoAuth, requestAdapter),
|
|
555
565
|
infoVerify: requestFunctionBuilder(operations.infoVerify, requestAdapter),
|
|
@@ -813,6 +823,34 @@ export const infoCustomerServiceBuilder = (
|
|
|
813
823
|
infoCustomer: requestFunctions.infoCustomer,
|
|
814
824
|
});
|
|
815
825
|
|
|
826
|
+
export const jobServiceBuilder = (
|
|
827
|
+
requestFunctions: OperationRequestFunctionMap
|
|
828
|
+
) => ({
|
|
829
|
+
infoExampleJob: requestFunctions.infoExampleJob,
|
|
830
|
+
getJobs: requestFunctions.getJobs,
|
|
831
|
+
postJob: requestFunctions.postJob,
|
|
832
|
+
getJob: requestFunctions.getJob,
|
|
833
|
+
putJob: requestFunctions.putJob,
|
|
834
|
+
deleteJob: requestFunctions.deleteJob,
|
|
835
|
+
sendJob: requestFunctions.sendJob,
|
|
836
|
+
resendJob: requestFunctions.resendJob,
|
|
837
|
+
checkJob: requestFunctions.checkJob,
|
|
838
|
+
completeJob: requestFunctions.completeJob,
|
|
839
|
+
archiveJob: requestFunctions.archiveJob,
|
|
840
|
+
unarchiveJob: requestFunctions.unarchiveJob,
|
|
841
|
+
applyJob: requestFunctions.applyJob,
|
|
842
|
+
reapplyJob: requestFunctions.reapplyJob,
|
|
843
|
+
payJob: requestFunctions.payJob,
|
|
844
|
+
viewJobSatNote: requestFunctions.viewJobSatNote,
|
|
845
|
+
signJobSateNote: requestFunctions.signJobSateNote,
|
|
846
|
+
approveJobSatNote: requestFunctions.approveJobSatNote,
|
|
847
|
+
payoutJob: requestFunctions.payoutJob,
|
|
848
|
+
payoutsJob: requestFunctions.payoutsJob,
|
|
849
|
+
overrideJob: requestFunctions.overrideJob,
|
|
850
|
+
jobCheckoutLink: requestFunctions.jobCheckoutLink,
|
|
851
|
+
jobCompanyInfo: requestFunctions.jobCompanyInfo,
|
|
852
|
+
});
|
|
853
|
+
|
|
816
854
|
export const creditServiceBuilder = (
|
|
817
855
|
requestFunctions: OperationRequestFunctionMap
|
|
818
856
|
) => ({
|
|
@@ -926,33 +964,6 @@ export const companyServiceBuilder = (
|
|
|
926
964
|
declineCompany: requestFunctions.declineCompany,
|
|
927
965
|
});
|
|
928
966
|
|
|
929
|
-
export const jobServiceBuilder = (
|
|
930
|
-
requestFunctions: OperationRequestFunctionMap
|
|
931
|
-
) => ({
|
|
932
|
-
getJobs: requestFunctions.getJobs,
|
|
933
|
-
postJob: requestFunctions.postJob,
|
|
934
|
-
getJob: requestFunctions.getJob,
|
|
935
|
-
putJob: requestFunctions.putJob,
|
|
936
|
-
deleteJob: requestFunctions.deleteJob,
|
|
937
|
-
sendJob: requestFunctions.sendJob,
|
|
938
|
-
resendJob: requestFunctions.resendJob,
|
|
939
|
-
checkJob: requestFunctions.checkJob,
|
|
940
|
-
completeJob: requestFunctions.completeJob,
|
|
941
|
-
archiveJob: requestFunctions.archiveJob,
|
|
942
|
-
unarchiveJob: requestFunctions.unarchiveJob,
|
|
943
|
-
applyJob: requestFunctions.applyJob,
|
|
944
|
-
reapplyJob: requestFunctions.reapplyJob,
|
|
945
|
-
payJob: requestFunctions.payJob,
|
|
946
|
-
viewJobSatNote: requestFunctions.viewJobSatNote,
|
|
947
|
-
signJobSateNote: requestFunctions.signJobSateNote,
|
|
948
|
-
approveJobSatNote: requestFunctions.approveJobSatNote,
|
|
949
|
-
payoutJob: requestFunctions.payoutJob,
|
|
950
|
-
payoutsJob: requestFunctions.payoutsJob,
|
|
951
|
-
overrideJob: requestFunctions.overrideJob,
|
|
952
|
-
jobCheckoutLink: requestFunctions.jobCheckoutLink,
|
|
953
|
-
jobCompanyInfo: requestFunctions.jobCompanyInfo,
|
|
954
|
-
});
|
|
955
|
-
|
|
956
967
|
export const paymentServiceBuilder = (
|
|
957
968
|
requestFunctions: OperationRequestFunctionMap
|
|
958
969
|
) => ({
|
|
@@ -1014,3 +1025,117 @@ export const taskServiceBuilder = (
|
|
|
1014
1025
|
) => ({
|
|
1015
1026
|
runner: requestFunctions.runner,
|
|
1016
1027
|
});
|
|
1028
|
+
|
|
1029
|
+
export interface Operations {
|
|
1030
|
+
me: typeof meOperation;
|
|
1031
|
+
postMe: typeof postMeOperation;
|
|
1032
|
+
putMe: typeof putMeOperation;
|
|
1033
|
+
infoHealth: typeof infoHealthOperation;
|
|
1034
|
+
infoGhost: typeof infoGhostOperation;
|
|
1035
|
+
infoQuery: typeof infoQueryOperation;
|
|
1036
|
+
infoCompany: typeof infoCompanyOperation;
|
|
1037
|
+
infoOnboarding: typeof infoOnboardingOperation;
|
|
1038
|
+
infoDirector: typeof infoDirectorOperation;
|
|
1039
|
+
infoCustomer: typeof infoCustomerOperation;
|
|
1040
|
+
infoExampleJob: typeof infoExampleJobOperation;
|
|
1041
|
+
infoCredit: typeof infoCreditOperation;
|
|
1042
|
+
infoAuth: typeof infoAuthOperation;
|
|
1043
|
+
infoVerify: typeof infoVerifyOperation;
|
|
1044
|
+
infoPassword: typeof infoPasswordOperation;
|
|
1045
|
+
infoSession: typeof infoSessionOperation;
|
|
1046
|
+
infoClaimAccount: typeof infoClaimAccountOperation;
|
|
1047
|
+
infoRate: typeof infoRateOperation;
|
|
1048
|
+
infoLegacyRedirect: typeof infoLegacyRedirectOperation;
|
|
1049
|
+
infoIP: typeof infoIPOperation;
|
|
1050
|
+
infoValidateEmail: typeof infoValidateEmailOperation;
|
|
1051
|
+
infoGetCache: typeof infoGetCacheOperation;
|
|
1052
|
+
infoPutCache: typeof infoPutCacheOperation;
|
|
1053
|
+
infoDeleteCache: typeof infoDeleteCacheOperation;
|
|
1054
|
+
getInfoEntity: typeof getInfoEntityOperation;
|
|
1055
|
+
infoPartnerBranding: typeof infoPartnerBrandingOperation;
|
|
1056
|
+
getPartners: typeof getPartnersOperation;
|
|
1057
|
+
postPartner: typeof postPartnerOperation;
|
|
1058
|
+
getPartner: typeof getPartnerOperation;
|
|
1059
|
+
putPartner: typeof putPartnerOperation;
|
|
1060
|
+
deletePartner: typeof deletePartnerOperation;
|
|
1061
|
+
postPartnerReferrals: typeof postPartnerReferralsOperation;
|
|
1062
|
+
getOnboardings: typeof getOnboardingsOperation;
|
|
1063
|
+
postOnboarding: typeof postOnboardingOperation;
|
|
1064
|
+
getOnboarding: typeof getOnboardingOperation;
|
|
1065
|
+
putOnboarding: typeof putOnboardingOperation;
|
|
1066
|
+
deleteOnboarding: typeof deleteOnboardingOperation;
|
|
1067
|
+
postOnboardingDecision: typeof postOnboardingDecisionOperation;
|
|
1068
|
+
getCompanies: typeof getCompaniesOperation;
|
|
1069
|
+
postCompany: typeof postCompanyOperation;
|
|
1070
|
+
getCompany: typeof getCompanyOperation;
|
|
1071
|
+
putCompany: typeof putCompanyOperation;
|
|
1072
|
+
deleteCompany: typeof deleteCompanyOperation;
|
|
1073
|
+
getCompanyDirectorVerification: typeof getCompanyDirectorVerificationOperation;
|
|
1074
|
+
postCompanyDirectorVerification: typeof postCompanyDirectorVerificationOperation;
|
|
1075
|
+
directorCompany: typeof directorCompanyOperation;
|
|
1076
|
+
approveCompany: typeof approveCompanyOperation;
|
|
1077
|
+
declineCompany: typeof declineCompanyOperation;
|
|
1078
|
+
getJobs: typeof getJobsOperation;
|
|
1079
|
+
postJob: typeof postJobOperation;
|
|
1080
|
+
getJob: typeof getJobOperation;
|
|
1081
|
+
putJob: typeof putJobOperation;
|
|
1082
|
+
deleteJob: typeof deleteJobOperation;
|
|
1083
|
+
sendJob: typeof sendJobOperation;
|
|
1084
|
+
resendJob: typeof resendJobOperation;
|
|
1085
|
+
checkJob: typeof checkJobOperation;
|
|
1086
|
+
completeJob: typeof completeJobOperation;
|
|
1087
|
+
archiveJob: typeof archiveJobOperation;
|
|
1088
|
+
unarchiveJob: typeof unarchiveJobOperation;
|
|
1089
|
+
applyJob: typeof applyJobOperation;
|
|
1090
|
+
reapplyJob: typeof reapplyJobOperation;
|
|
1091
|
+
payJob: typeof payJobOperation;
|
|
1092
|
+
viewJobSatNote: typeof viewJobSatNoteOperation;
|
|
1093
|
+
signJobSateNote: typeof signJobSateNoteOperation;
|
|
1094
|
+
approveJobSatNote: typeof approveJobSatNoteOperation;
|
|
1095
|
+
payoutJob: typeof payoutJobOperation;
|
|
1096
|
+
payoutsJob: typeof payoutsJobOperation;
|
|
1097
|
+
overrideJob: typeof overrideJobOperation;
|
|
1098
|
+
jobCheckoutLink: typeof jobCheckoutLinkOperation;
|
|
1099
|
+
jobCompanyInfo: typeof jobCompanyInfoOperation;
|
|
1100
|
+
getPayments: typeof getPaymentsOperation;
|
|
1101
|
+
postPayment: typeof postPaymentOperation;
|
|
1102
|
+
getPayment: typeof getPaymentOperation;
|
|
1103
|
+
putPayment: typeof putPaymentOperation;
|
|
1104
|
+
deletePayment: typeof deletePaymentOperation;
|
|
1105
|
+
markPayment: typeof markPaymentOperation;
|
|
1106
|
+
getCredits: typeof getCreditsOperation;
|
|
1107
|
+
postCredit: typeof postCreditOperation;
|
|
1108
|
+
getCredit: typeof getCreditOperation;
|
|
1109
|
+
putCredit: typeof putCreditOperation;
|
|
1110
|
+
deleteCredit: typeof deleteCreditOperation;
|
|
1111
|
+
quoteCredit: typeof quoteCreditOperation;
|
|
1112
|
+
applyCredit: typeof applyCreditOperation;
|
|
1113
|
+
checkCredit: typeof checkCreditOperation;
|
|
1114
|
+
signCredit: typeof signCreditOperation;
|
|
1115
|
+
getDocuments: typeof getDocumentsOperation;
|
|
1116
|
+
postDocument: typeof postDocumentOperation;
|
|
1117
|
+
getDocument: typeof getDocumentOperation;
|
|
1118
|
+
putDocument: typeof putDocumentOperation;
|
|
1119
|
+
deleteDocument: typeof deleteDocumentOperation;
|
|
1120
|
+
getSubscriptions: typeof getSubscriptionsOperation;
|
|
1121
|
+
postSubscription: typeof postSubscriptionOperation;
|
|
1122
|
+
getSubscription: typeof getSubscriptionOperation;
|
|
1123
|
+
putSubscription: typeof putSubscriptionOperation;
|
|
1124
|
+
deleteSubscription: typeof deleteSubscriptionOperation;
|
|
1125
|
+
pendingSubscription: typeof pendingSubscriptionOperation;
|
|
1126
|
+
getRates: typeof getRatesOperation;
|
|
1127
|
+
postRate: typeof postRateOperation;
|
|
1128
|
+
getRate: typeof getRateOperation;
|
|
1129
|
+
putRate: typeof putRateOperation;
|
|
1130
|
+
deleteRate: typeof deleteRateOperation;
|
|
1131
|
+
getMonitors: typeof getMonitorsOperation;
|
|
1132
|
+
postMonitor: typeof postMonitorOperation;
|
|
1133
|
+
getMonitor: typeof getMonitorOperation;
|
|
1134
|
+
putMonitor: typeof putMonitorOperation;
|
|
1135
|
+
deleteMonitor: typeof deleteMonitorOperation;
|
|
1136
|
+
postMonitorFlag: typeof postMonitorFlagOperation;
|
|
1137
|
+
providerCheckWebhook: typeof providerCheckWebhookOperation;
|
|
1138
|
+
providerWebhook: typeof providerWebhookOperation;
|
|
1139
|
+
postEvent: typeof postEventOperation;
|
|
1140
|
+
runner: typeof runnerOperation;
|
|
1141
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export const infoExampleJobOperation = {
|
|
5
|
+
path: "/api/info/example-job",
|
|
6
|
+
method: "put",
|
|
7
|
+
responses: {
|
|
8
|
+
"200": { _tag: "JsonResponse", decoder: schemas.Job },
|
|
9
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
10
|
+
},
|
|
11
|
+
parameters: [],
|
|
12
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
export type InfoExampleJobRequestFunction = RequestFunction<
|
|
16
|
+
undefined,
|
|
17
|
+
schemas.Job
|
|
18
|
+
>;
|