@kanda-libs/ks-component-ts 0.2.198 → 0.2.200
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 +7946 -7885
- 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/Approval.ts +2 -0
- package/src/generated/components/schemas/InfoOnboarding.ts +20 -0
- package/src/generated/components/schemas/index.ts +1 -0
- package/src/generated/operations/index.ts +16 -0
- package/src/generated/operations/infoOnboarding.ts +18 -0
- package/src/generated/widget/index.tsx +41105 -40767
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export const Approval = t.intersection([
|
|
|
14
14
|
t.literal("invalid_details"),
|
|
15
15
|
t.literal("mismatched_details"),
|
|
16
16
|
t.literal("investigation_required"),
|
|
17
|
+
t.literal("manual_review_required"),
|
|
17
18
|
t.literal("not_approved"),
|
|
18
19
|
]),
|
|
19
20
|
}),
|
|
@@ -32,6 +33,7 @@ export interface Approval {
|
|
|
32
33
|
| "invalid_details"
|
|
33
34
|
| "mismatched_details"
|
|
34
35
|
| "investigation_required"
|
|
36
|
+
| "manual_review_required"
|
|
35
37
|
| "not_approved";
|
|
36
38
|
reason_note?: string;
|
|
37
39
|
report_raw?: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { Approval } from "./Approval";
|
|
3
|
+
import { Metadata } from "./Metadata";
|
|
4
|
+
import { OnboardingStage } from "./OnboardingStage";
|
|
5
|
+
|
|
6
|
+
export const InfoOnboarding = t.partial({
|
|
7
|
+
id: t.string,
|
|
8
|
+
cid: t.string,
|
|
9
|
+
current_stage: OnboardingStage,
|
|
10
|
+
current_approval: Approval,
|
|
11
|
+
metadata: Metadata,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export interface InfoOnboarding {
|
|
15
|
+
id?: string;
|
|
16
|
+
cid?: string;
|
|
17
|
+
current_stage?: OnboardingStage;
|
|
18
|
+
current_approval?: Approval;
|
|
19
|
+
metadata?: Metadata;
|
|
20
|
+
}
|
|
@@ -43,6 +43,7 @@ export * from "./InfoGhost";
|
|
|
43
43
|
export * from "./InfoIP";
|
|
44
44
|
export * from "./InfoLegacyRedirect";
|
|
45
45
|
export * from "./InfoMe";
|
|
46
|
+
export * from "./InfoOnboarding";
|
|
46
47
|
export * from "./InfoPartnerBranding";
|
|
47
48
|
export * from "./InfoQuery";
|
|
48
49
|
export * from "./InfoSession";
|
|
@@ -158,6 +158,10 @@ import {
|
|
|
158
158
|
infoLegacyRedirectOperation,
|
|
159
159
|
InfoLegacyRedirectRequestFunction,
|
|
160
160
|
} from "./infoLegacyRedirect";
|
|
161
|
+
import {
|
|
162
|
+
infoOnboardingOperation,
|
|
163
|
+
InfoOnboardingRequestFunction,
|
|
164
|
+
} from "./infoOnboarding";
|
|
161
165
|
import {
|
|
162
166
|
infoPartnerBrandingOperation,
|
|
163
167
|
InfoPartnerBrandingRequestFunction,
|
|
@@ -312,6 +316,7 @@ export const operations = {
|
|
|
312
316
|
infoGhost: infoGhostOperation,
|
|
313
317
|
infoQuery: infoQueryOperation,
|
|
314
318
|
infoCompany: infoCompanyOperation,
|
|
319
|
+
infoOnboarding: infoOnboardingOperation,
|
|
315
320
|
infoDirector: infoDirectorOperation,
|
|
316
321
|
infoCustomer: infoCustomerOperation,
|
|
317
322
|
infoCredit: infoCreditOperation,
|
|
@@ -424,6 +429,7 @@ export interface OperationRequestFunctionMap {
|
|
|
424
429
|
infoGhost: InfoGhostRequestFunction;
|
|
425
430
|
infoQuery: InfoQueryRequestFunction;
|
|
426
431
|
infoCompany: InfoCompanyRequestFunction;
|
|
432
|
+
infoOnboarding: InfoOnboardingRequestFunction;
|
|
427
433
|
infoDirector: InfoDirectorRequestFunction;
|
|
428
434
|
infoCustomer: InfoCustomerRequestFunction;
|
|
429
435
|
infoCredit: InfoCreditRequestFunction;
|
|
@@ -538,6 +544,10 @@ export const requestFunctionsBuilder = (
|
|
|
538
544
|
infoGhost: requestFunctionBuilder(operations.infoGhost, requestAdapter),
|
|
539
545
|
infoQuery: requestFunctionBuilder(operations.infoQuery, requestAdapter),
|
|
540
546
|
infoCompany: requestFunctionBuilder(operations.infoCompany, requestAdapter),
|
|
547
|
+
infoOnboarding: requestFunctionBuilder(
|
|
548
|
+
operations.infoOnboarding,
|
|
549
|
+
requestAdapter
|
|
550
|
+
),
|
|
541
551
|
infoDirector: requestFunctionBuilder(operations.infoDirector, requestAdapter),
|
|
542
552
|
infoCustomer: requestFunctionBuilder(operations.infoCustomer, requestAdapter),
|
|
543
553
|
infoCredit: requestFunctionBuilder(operations.infoCredit, requestAdapter),
|
|
@@ -785,6 +795,12 @@ export const infoCompanyServiceBuilder = (
|
|
|
785
795
|
infoCompany: requestFunctions.infoCompany,
|
|
786
796
|
});
|
|
787
797
|
|
|
798
|
+
export const infoOnboardingServiceBuilder = (
|
|
799
|
+
requestFunctions: OperationRequestFunctionMap
|
|
800
|
+
) => ({
|
|
801
|
+
infoOnboarding: requestFunctions.infoOnboarding,
|
|
802
|
+
});
|
|
803
|
+
|
|
788
804
|
export const infoDirectorServiceBuilder = (
|
|
789
805
|
requestFunctions: OperationRequestFunctionMap
|
|
790
806
|
) => ({
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export const infoOnboardingOperation = {
|
|
5
|
+
path: "/api/info/onboarding",
|
|
6
|
+
method: "get",
|
|
7
|
+
responses: {
|
|
8
|
+
"200": { _tag: "JsonResponse", decoder: schemas.InfoOnboarding },
|
|
9
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
10
|
+
},
|
|
11
|
+
parameters: [],
|
|
12
|
+
requestDefaultHeaders: { Accept: "application/json" },
|
|
13
|
+
} as const;
|
|
14
|
+
|
|
15
|
+
export type InfoOnboardingRequestFunction = RequestFunction<
|
|
16
|
+
undefined,
|
|
17
|
+
schemas.InfoOnboarding
|
|
18
|
+
>;
|