@@ -249,6 +310,7 @@ const WalletSpinup = (props: {
);
-};
+}
+
export default WalletSpinup;
+
diff --git a/src/components/organization/walletCommonComponents/interfaces/index.tsx b/src/components/organization/walletCommonComponents/interfaces/index.tsx
index 0c957f4b0..902913508 100644
--- a/src/components/organization/walletCommonComponents/interfaces/index.tsx
+++ b/src/components/organization/walletCommonComponents/interfaces/index.tsx
@@ -9,7 +9,9 @@ export interface IValues {
export interface IDedicatedAgentForm {
seeds: string;
loading: boolean;
- submitDedicatedWallet: (values: IValues) => void;
+ submitDedicatedWallet: (values: IValuesShared, privatekey: string,
+ domain: string) => void;
+ onConfigureDedicated:() => void,
}
export interface IValuesShared {
@@ -50,4 +52,37 @@ export interface ISharedAgentForm {
) => void;
}
+export interface ILedgerConfigData {
+ indy: {
+ 'did:indy': {
+ [key: string]: string;
+ };
+ };
+ polygon: {
+ 'did:polygon': {
+ [key: string]: string;
+ };
+ };
+ noLedger: {
+ [key: string]: string;
+ };
+}
+export interface ILedgerItem {
+ name: string;
+ details: IDetails;
+}
+interface IDetails {
+ [key: string]: string | { [subKey: string]: string };
+}
+
+export interface IDedicatedAgentData {
+ walletName: string;
+ agentEndpoint: string;
+ apiKey: string;
+ seed:string;
+ keyType:string;
+ method:string;
+ network:string;
+ role:string;
+}
\ No newline at end of file
diff --git a/src/config/apiRoutes.ts b/src/config/apiRoutes.ts
index 1e8f95d11..f2a9b2f33 100644
--- a/src/config/apiRoutes.ts
+++ b/src/config/apiRoutes.ts
@@ -41,7 +41,12 @@ export const apiRoutes = {
editUserROle: '/user-roles',
didList: '/dids',
createDid: '/agents/did',
- primaryDid: '/primary-did'
+ primaryDid: '/primary-did',
+ getOrgReferences:'/activity-count',
+ deleteOrganization:'/organizations/deleteorganizations',
+ deleteVerifications:'/verification-records',
+ deleteIssaunce:'/issuance-records',
+ deleteConnections:'/connections'
},
connection: {
create: '/connections',
@@ -81,7 +86,10 @@ export const apiRoutes = {
agentDedicatedSpinup: '/agents/spinup',
agentSharedSpinup: '/agents/wallet',
getLedgerConfig: '/agents/ledgerConfig',
- createPolygonKeys: '/agents/polygon/create-keys'
+ createPolygonKeys: '/agents/polygon/create-keys',
+ setAgentConfig:'/agents/configure',
+ deleteWallet: '/agents/wallet',
+
},
Platform: {
getAllSchemaFromPlatform: '/platform/schemas',
@@ -106,6 +114,7 @@ export const apiRoutes = {
invitations: '/invitations',
usersInvitation: '/users/invitations',
members: '/members',
+ deleteOrgFromEcosystem:'/member-org'
},
setting:{
setting: '/client_credentials'
diff --git a/src/config/envConfig.ts b/src/config/envConfig.ts
index a8ea0b9b6..0b4ff3061 100644
--- a/src/config/envConfig.ts
+++ b/src/config/envConfig.ts
@@ -17,7 +17,7 @@ if (import.meta.env) {
}
}
-const { PUBLIC_BASE_URL, PUBLIC_POLYGON_TESTNET_URL, PUBLIC_POLYGON_MAINNET_URL, PUBLIC_CRYPTO_PRIVATE_KEY,PUBLIC_SHOW_NAME_AS_LOGO, PUBLIC_PLATFORM_NAME, PUBLIC_PLATFORM_LOGO, PUBLIC_POWERED_BY, PUBLIC_PLATFORM_WEB_URL, PUBLIC_POWERED_BY_URL, PUBLIC_PLATFORM_DOCS_URL, PUBLIC_PLATFORM_GIT, PUBLIC_PLATFORM_SUPPORT_EMAIL, PUBLIC_PLATFORM_TWITTER_URL, PUBLIC_PLATFORM_SUPPORT_INVITE, PUBLIC_PLATFORM_DISCORD_URL, PUBLIC_ALLOW_DOMAIN }: any = envVariables;
+const { PUBLIC_BASE_URL, PUBLIC_POLYGON_TESTNET_URL, PUBLIC_POLYGON_MAINNET_URL, PUBLIC_CRYPTO_PRIVATE_KEY,PUBLIC_SHOW_NAME_AS_LOGO, PUBLIC_PLATFORM_NAME, PUBLIC_PLATFORM_LOGO, PUBLIC_POWERED_BY, PUBLIC_PLATFORM_WEB_URL, PUBLIC_POWERED_BY_URL, PUBLIC_PLATFORM_DOCS_URL, PUBLIC_PLATFORM_GIT, PUBLIC_PLATFORM_SUPPORT_EMAIL, PUBLIC_PLATFORM_TWITTER_URL, PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_ID, PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRETE, PUBLIC_PLATFORM_SUPPORT_INVITE, PUBLIC_PLATFORM_DISCORD_URL, PUBLIC_ALLOW_DOMAIN }: any = envVariables;
export const envConfig = {
PUBLIC_BASE_URL:
@@ -62,6 +62,12 @@ export const envConfig = {
discord:
PUBLIC_PLATFORM_DISCORD_URL ||
import.meta.env.PUBLIC_PLATFORM_DISCORD_URL,
+ clientId:
+ PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_ID ||
+ import.meta.env.PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_ID,
+ clientSecrete:
+ PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRETE ||
+ import.meta.env.PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRETE,
},
PUBLIC_ALLOW_DOMAIN: PUBLIC_ALLOW_DOMAIN || import.meta.env.PUBLIC_ALLOW_DOMAIN
}
\ No newline at end of file
diff --git a/src/config/pathRoutes.ts b/src/config/pathRoutes.ts
index d4df16e15..932ea78a1 100644
--- a/src/config/pathRoutes.ts
+++ b/src/config/pathRoutes.ts
@@ -1,3 +1,4 @@
+import { deleteOrganizationInvitation } from "../api/organization";
import { envConfig } from "./envConfig";
export const pathRoutes = {
@@ -27,6 +28,10 @@ export const pathRoutes = {
issuedCredentials: '/organizations/credentials',
credentials: '/organizations/verification',
createSchema: '/organizations/schemas/create',
+ deleteOrganization:'/organizations/delete-organizations',
+
+
+
viewSchema: '/organizations/schemas/view-schema',
Issuance: {
issue: '/organizations/credentials/issue',
diff --git a/src/pages/organizations/dashboard/index.astro b/src/pages/organizations/dashboard/index.astro
index 3612ea7c9..32d1b96e9 100644
--- a/src/pages/organizations/dashboard/index.astro
+++ b/src/pages/organizations/dashboard/index.astro
@@ -13,4 +13,4 @@ if (!response.authorized) {
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/pages/organizations/delete-organizations.astro b/src/pages/organizations/delete-organizations.astro
new file mode 100644
index 000000000..5c1f69b7e
--- /dev/null
+++ b/src/pages/organizations/delete-organizations.astro
@@ -0,0 +1,16 @@
+---
+import LayoutSidebar from '../../app/LayoutSidebar.astro';
+import { checkUserSession } from '../../utils/check-session';
+import { pathRoutes } from '../../config/pathRoutes';
+import DeleteOrganization from '../../components/organization/DeleteOrganization';
+
+const response = await checkUserSession({cookies: Astro.cookies, currentPath: Astro.url.pathname});
+const route: string = pathRoutes.auth.sinIn
+if (!response.authorized) {
+ return Astro.redirect(response.redirect);
+}
+---
+
+
+
+