Skip to content

Commit

Permalink
feat: conversion of id's into uuid
Browse files Browse the repository at this point in the history
Signed-off-by: bhavanakarwade <[email protected]>
  • Loading branch information
bhavanakarwade committed Oct 27, 2023
1 parent 102c2b3 commit 3c1af34
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/api/invitations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export const acceptRejectInvitations = async (invitationId: string, orgId: strin
}
}

export const deleteEcosystemInvitations = async (invitationId: number) => {
export const deleteEcosystemInvitations = async (invitationId: string) => {

const ecosystemId = await getFromLocalStorage(storageKeys.ECOSYSTEM_ID);
const orgId = await getFromLocalStorage(storageKeys.ORG_ID)
Expand Down
4 changes: 2 additions & 2 deletions src/components/Ecosystem/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export interface IEcosystem {
export interface Ecosystem {
id: string
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
name: string
description: string
logoUrl: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export interface EcosystemInvitation {
ecosystem: []
id: string
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
deletedAt: any
userId: string
orgId: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/EcosystemInvite/SentInvitations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const SentInvitations = () => {
setLoading(false);
};

const deletInvitations = async (invitationId: number) => {
const deletInvitations = async (invitationId: string) => {
const response = await deleteEcosystemInvitations(invitationId);
const { data } = response as AxiosResponse;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Profile/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface UserEmail {
}

export interface UserProfile {
id: number
id: string
profileImg?: string
username?: string
email: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/Resources/Schema/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type DataItem = {
version: string;
attributes: string[];
schemaLedgerId: string;
createdBy: number;
createdBy: string;
publisherDid: string;
orgId: string;
issuerId: string;
Expand Down
4 changes: 2 additions & 2 deletions src/components/User/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export interface UserActivity {
action: string
details: string
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
deletedAt: any
}
29 changes: 14 additions & 15 deletions src/components/organization/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export interface Organisation {
logoFile: string
id: string
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
name: string
description: string
logoUrl: string
Expand All @@ -29,18 +29,18 @@ export interface OrgRole {
name: string
description: string
createDateTime?: string
createdBy?: number
createdBy?: string
lastChangedDateTime?: string
lastChangedBy?: number
lastChangedBy?: string
deletedAt?: any
}

export interface OrgAgent {
id: string
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
orgDid: string
verkey: string
agentEndPoint: string
Expand All @@ -61,28 +61,28 @@ export interface OrgAgent {
export interface AgentsType {
id: string
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
agent: string
}

export interface org_agent_type{
id: string
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
agent: string

}

export interface ledgers{
createDateTime: string
createdBy: number
createdBy: string
id: string
isActive: boolean
lastChangedBy: number
lastChangedBy: string
lastChangedDateTime: string
name: string
networkString: string
Expand All @@ -104,17 +104,16 @@ export interface Connection {
connectionInvitation: string
multiUse: boolean
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
}

export interface EcosystemDashboard {
membersCount: number
endorsementsCount: number
}


export interface OrgInterface {
name: string;
website: string;
Expand Down
4 changes: 2 additions & 2 deletions src/components/organization/interfaces/invitations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export interface Invitation {
ecosystem: any
id: string
createDateTime: string
createdBy: number
createdBy: string
lastChangedDateTime: string
lastChangedBy: number
lastChangedBy: string
deletedAt: any
userId: string
orgId: string
Expand Down

0 comments on commit 3c1af34

Please sign in to comment.