@@ -4,10 +4,12 @@ import { storageKeys } from '../config/CommonConstant';
44import { getHeaderConfigs } from '../config/GetHeaderConfigs' ;
55import { axiosGet , axiosPost } from '../services/apiRequests' ;
66import { getFromLocalStorage } from './Auth' ;
7+ import type { IConnectionListAPIParameter } from './connection' ;
78
89export const verifyCredential = async ( payload : any ) => {
910 const orgId = await getFromLocalStorage ( storageKeys . ORG_ID ) ;
10- const url = `${ apiRoutes . organizations . root } /${ orgId } ${ apiRoutes . Verification . verifyCredential } ` ; const axiosPayload = {
11+ const url = `${ apiRoutes . organizations . root } /${ orgId } ${ apiRoutes . Verification . verifyCredential } ` ;
12+ const axiosPayload = {
1113 url,
1214 payload,
1315 config : await getHeaderConfigs ( ) ,
@@ -37,10 +39,16 @@ export const getVerificationCredential = async (state: IssueCredential) => {
3739 }
3840} ;
3941
40- export const getVerificationList = async ( ) => {
42+ export const getVerificationList = async ( {
43+ page,
44+ itemPerPage,
45+ search,
46+ sortBy,
47+ sortingOrder,
48+ } : IConnectionListAPIParameter ) => {
4149 const orgId = await getFromLocalStorage ( storageKeys . ORG_ID ) ;
42- const url = `${ apiRoutes . organizations . root } /${ orgId } ${ apiRoutes . Verification . verifyCredential } `
43-
50+ const url = `${ apiRoutes . organizations . root } /${ orgId } ${ apiRoutes . Verification . verifyCredential } ?pageSize= ${ itemPerPage } &pageNumber= ${ page } &searchByText= ${ search } &sortByValue= ${ sortingOrder } &sorting= ${ sortBy } ` ;
51+
4452 const axiosPayload = {
4553 url,
4654 config : await getHeaderConfigs ( ) ,
@@ -71,8 +79,7 @@ export const verifyPresentation = async (proofId:string) => {
7179} ;
7280
7381
74- export const getProofAttributes = async ( proofId :string ) => {
75- const orgId = await getFromLocalStorage ( storageKeys . ORG_ID ) ;
82+ export const getProofAttributes = async ( proofId :string , orgId : string ) => {
7683 const url = `${ apiRoutes . organizations . root } /${ orgId } ${ apiRoutes . Verification . proofRequestAttributesVerification } /${ proofId } /form` ;
7784 const axiosPayload = {
7885 url,
0 commit comments