Function useKycManagement

  • Parameters

    • Optional queryParams: {
          id?: string;
          limit?: number;
          offset?: number;
      }
      • Optional id?: string
      • Optional limit?: number
      • Optional offset?: number

    Returns {
        acceptRequest: ((requestId: string) => Promise<void>);
        dropRequest: ((requestId: string) => Promise<void>);
        filters: {
            id: string;
            limit: number;
            offset: number;
        };
        isLoadFailed: Ref<boolean>;
        isLoaded: Ref<boolean>;
        isSubmitting: Ref<boolean>;
        kycList: Ref<{
            address: string;
            avatar?: { id?: string | undefined; file?: File | undefined; name?: string | undefined; mimeType?: string | undefined; link?: string | undefined; uploadSelf: () => Promise<void>; load: () => Promise<...>; };
            documents?: ({ id?: string | undefined; file?: File | undefined; name?: string | undefined; mimeType?: string | undefined; link?: string | undefined; uploadSelf: () => Promise<void>; load: () => Promise<...>; })[];
            firstName?: string;
            id: string;
            lastName?: string;
            rejectReason?: string;
            status: REQUEST_STATUSES;
            timestamp: number;
        }[]>;
        loadKycRequestById: (() => Promise<void>);
        loadKycRequests: (() => Promise<void>);
        rejectRequest: ((requestId: string, reason: string) => Promise<void>);
        selectedKyc: Ref<undefined | Kyc>;
    }

    • acceptRequest: ((requestId: string) => Promise<void>)
        • (requestId: string): Promise<void>
        • Parameters

          • requestId: string

          Returns Promise<void>

    • dropRequest: ((requestId: string) => Promise<void>)
        • (requestId: string): Promise<void>
        • Parameters

          • requestId: string

          Returns Promise<void>

    • filters: {
          id: string;
          limit: number;
          offset: number;
      }
      • id: string
      • limit: number
      • offset: number
    • isLoadFailed: Ref<boolean>
    • isLoaded: Ref<boolean>
    • isSubmitting: Ref<boolean>
    • kycList: Ref<{
          address: string;
          avatar?: { id?: string | undefined; file?: File | undefined; name?: string | undefined; mimeType?: string | undefined; link?: string | undefined; uploadSelf: () => Promise<void>; load: () => Promise<...>; };
          documents?: ({ id?: string | undefined; file?: File | undefined; name?: string | undefined; mimeType?: string | undefined; link?: string | undefined; uploadSelf: () => Promise<void>; load: () => Promise<...>; })[];
          firstName?: string;
          id: string;
          lastName?: string;
          rejectReason?: string;
          status: REQUEST_STATUSES;
          timestamp: number;
      }[]>
    • loadKycRequestById: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • loadKycRequests: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • rejectRequest: ((requestId: string, reason: string) => Promise<void>)
        • (requestId: string, reason: string): Promise<void>
        • Parameters

          • requestId: string
          • reason: string

          Returns Promise<void>

    • selectedKyc: Ref<undefined | Kyc>

Generated using TypeDoc