From bd85ebaef570addf4e36be69fe8e49b98d843b04 Mon Sep 17 00:00:00 2001 From: Dhiraj Bari <82199369+dhiraj0911@users.noreply.github.com> Date: Sun, 7 Jan 2024 00:20:44 +0530 Subject: [PATCH] fix md_mpx_format_adjuster.py script (#1317) * fix md_mpx_format_adjuster.py script * fix path of md_mpx_format_adjuster.py --- .github/workflows/md_mpx_format_adjuster.py | 97 +++++++++++++++++++ .github/workflows/push.yml | 11 ++- CODE_STYLE.md | 6 +- ..._support_services_Plugin_helper.default.md | 12 +-- ..._CheckIn_types.InterfaceAttendeeCheckIn.md | 2 +- ...onents_CheckIn_types.InterfaceModalProp.md | 2 +- ...nts_CheckIn_types.InterfaceTableCheckIn.md | 2 +- ..._LeftDrawerOrg.InterfaceLeftDrawerProps.md | 2 +- ...wer_LeftDrawer.InterfaceLeftDrawerProps.md | 2 +- .../modules/components_AddOn_AddOn.default.md | 8 +- ...ddOn_core_AddOnEntry_AddOnEntry.default.md | 10 +- ...ore_AddOnRegister_AddOnRegister.default.md | 2 +- ...LanguageDropdown_ChangeLanguageDropDown.md | 4 +- .../modules/components_CheckIn_TableRow.md | 2 +- .../modules/components_CheckIn_mocks.md | 6 +- .../components_EventCalendar_EventCalendar.md | 6 +- .../components_TaskModals_UpdateTaskModal.md | 6 +- ...s_UserPasswordUpdate_UserPasswordUpdate.md | 6 +- .../components_UserUpdate_UserUpdate.md | 6 +- ...ens_EventDashboard_EventDashboard_mocks.md | 8 +- .../screens_MemberDetail_MemberDetail.md | 6 +- .../modules/screens_OrgList_OrgListMocks.md | 6 +- ...ionDashboard_OrganizationDashboardMocks.md | 6 +- 23 files changed, 160 insertions(+), 58 deletions(-) create mode 100644 .github/workflows/md_mpx_format_adjuster.py diff --git a/.github/workflows/md_mpx_format_adjuster.py b/.github/workflows/md_mpx_format_adjuster.py new file mode 100644 index 0000000000..e1609b710b --- /dev/null +++ b/.github/workflows/md_mpx_format_adjuster.py @@ -0,0 +1,97 @@ +#!/usr/bin/env python3 +# -*- coding: UTF-8 -*- +""" +Script to make Markdown files MPX compatible. + +This script scans Markdown files and escapes special characters (<, >, {, }) +to make them compatible with the MPX standard used in Docusaurus v3. + +This script complies with: + 1) Pylint + 2) Pydocstyle + 3) Pycodestyle + 4) Flake8 +""" + +import os +import argparse +import re + +def escape_mpx_characters(text): + """ + Escape special characters in a text string for MPX compatibility. + Avoids escaping already escaped characters. + + Args: + text: A string containing the text to be processed. + + Returns: + A string with special characters (<, >, {, }) escaped, avoiding + double escaping. + """ + # Regular expressions to find unescaped special characters + patterns = { + "<": r"(?": r"(?", + "{": r"(? +▸ **fetchInstalled**(): `Promise`\<`any`\> #### Returns -`Promise`<`any`\> +`Promise`\<`any`\> #### Defined in @@ -40,11 +40,11 @@ ___ ### fetchStore -▸ **fetchStore**(): `Promise`<`any`\> +▸ **fetchStore**(): `Promise`\<`any`\> #### Returns -`Promise`<`any`\> +`Promise`\<`any`\> #### Defined in @@ -54,7 +54,7 @@ ___ ### generateLinks -▸ **generateLinks**(`plugins`): { `name`: `string` ; `url`: `string` }[] +▸ **generateLinks**(`plugins`): \{ `name`: `string` ; `url`: `string` \}[] #### Parameters @@ -64,7 +64,7 @@ ___ #### Returns -{ `name`: `string` ; `url`: `string` }[] +\{ `name`: `string` ; `url`: `string` \}[] #### Defined in diff --git a/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceAttendeeCheckIn.md b/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceAttendeeCheckIn.md index b3aff6bcbb..de9645e2ec 100644 --- a/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceAttendeeCheckIn.md +++ b/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceAttendeeCheckIn.md @@ -26,7 +26,7 @@ ___ ### checkIn -• **checkIn**: ``null`` \| { `_id`: `string` ; `allotedRoom`: `string` ; `allotedSeat`: `string` ; `time`: `string` } +• **checkIn**: ``null`` \| \{ `_id`: `string` ; `allotedRoom`: `string` ; `allotedSeat`: `string` ; `time`: `string` \} #### Defined in diff --git a/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceModalProp.md b/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceModalProp.md index 9091e555bb..847ac48bcf 100644 --- a/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceModalProp.md +++ b/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceModalProp.md @@ -26,7 +26,7 @@ ___ ### handleClose -• **handleClose**: () => `void` +• **handleClose**: () =\> `void` #### Type declaration diff --git a/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceTableCheckIn.md b/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceTableCheckIn.md index f44d4747f4..8aaa88f7c8 100644 --- a/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceTableCheckIn.md +++ b/talawa-admin-docs/interfaces/components_CheckIn_types.InterfaceTableCheckIn.md @@ -18,7 +18,7 @@ ### checkIn -• **checkIn**: ``null`` \| { `_id`: `string` ; `allotedRoom`: `string` ; `allotedSeat`: `string` ; `time`: `string` } +• **checkIn**: ``null`` \| \{ `_id`: `string` ; `allotedRoom`: `string` ; `allotedSeat`: `string` ; `time`: `string` \} #### Defined in diff --git a/talawa-admin-docs/interfaces/components_LeftDrawerOrg_LeftDrawerOrg.InterfaceLeftDrawerProps.md b/talawa-admin-docs/interfaces/components_LeftDrawerOrg_LeftDrawerOrg.InterfaceLeftDrawerProps.md index a087afb658..8af04f8ab5 100644 --- a/talawa-admin-docs/interfaces/components_LeftDrawerOrg_LeftDrawerOrg.InterfaceLeftDrawerProps.md +++ b/talawa-admin-docs/interfaces/components_LeftDrawerOrg_LeftDrawerOrg.InterfaceLeftDrawerProps.md @@ -48,7 +48,7 @@ ___ ### setHideDrawer -• **setHideDrawer**: `Dispatch`<`SetStateAction`<``null`` \| `boolean`\>\> +• **setHideDrawer**: `Dispatch`\<`SetStateAction`\<``null`` \| `boolean`\>\> #### Defined in diff --git a/talawa-admin-docs/interfaces/components_LeftDrawer_LeftDrawer.InterfaceLeftDrawerProps.md b/talawa-admin-docs/interfaces/components_LeftDrawer_LeftDrawer.InterfaceLeftDrawerProps.md index 8150b80c64..9a9cc6df87 100644 --- a/talawa-admin-docs/interfaces/components_LeftDrawer_LeftDrawer.InterfaceLeftDrawerProps.md +++ b/talawa-admin-docs/interfaces/components_LeftDrawer_LeftDrawer.InterfaceLeftDrawerProps.md @@ -36,7 +36,7 @@ ___ ### setHideDrawer -• **setHideDrawer**: `Dispatch`<`SetStateAction`<``null`` \| `boolean`\>\> +• **setHideDrawer**: `Dispatch`\<`SetStateAction`\<``null`` \| `boolean`\>\> #### Defined in diff --git a/talawa-admin-docs/modules/components_AddOn_AddOn.default.md b/talawa-admin-docs/modules/components_AddOn_AddOn.default.md index 1ae4e3dd2e..87e082c6a5 100644 --- a/talawa-admin-docs/modules/components_AddOn_AddOn.default.md +++ b/talawa-admin-docs/modules/components_AddOn_AddOn.default.md @@ -22,7 +22,7 @@ | Name | Type | | :------ | :------ | | `children` | ``null`` | -| `extras` | {} | +| `extras` | \{\} | | `name` | `string` | #### Defined in @@ -39,9 +39,9 @@ ___ | Name | Type | | :------ | :------ | -| `children` | `Requireable`<`any`\> | -| `extras` | `Requireable`<`InferProps`<{ `actions`: `Requireable`<`InferProps`<{}\>\> ; `components`: `Requireable`<`InferProps`<{}\>\> }\>\> | -| `name` | `Requireable`<`string`\> | +| `children` | `Requireable`\<`any`\> | +| `extras` | `Requireable`\<`InferProps`\<\{ `actions`: `Requireable`\<`InferProps`\<\{\}\>\> ; `components`: `Requireable`\<`InferProps`\<\{\}\>\> \}\>\> | +| `name` | `Requireable`\<`string`\> | #### Defined in diff --git a/talawa-admin-docs/modules/components_AddOn_core_AddOnEntry_AddOnEntry.default.md b/talawa-admin-docs/modules/components_AddOn_core_AddOnEntry_AddOnEntry.default.md index a0331db813..ec8f804295 100644 --- a/talawa-admin-docs/modules/components_AddOn_core_AddOnEntry_AddOnEntry.default.md +++ b/talawa-admin-docs/modules/components_AddOn_core_AddOnEntry_AddOnEntry.default.md @@ -41,11 +41,11 @@ ___ | Name | Type | | :------ | :------ | -| `configurable` | `Requireable`<`boolean`\> | -| `description` | `Requireable`<`string`\> | -| `enabled` | `Requireable`<`boolean`\> | -| `isInstalled` | `Requireable`<`boolean`\> | -| `title` | `Requireable`<`string`\> | +| `configurable` | `Requireable`\<`boolean`\> | +| `description` | `Requireable`\<`string`\> | +| `enabled` | `Requireable`\<`boolean`\> | +| `isInstalled` | `Requireable`\<`boolean`\> | +| `title` | `Requireable`\<`string`\> | #### Defined in diff --git a/talawa-admin-docs/modules/components_AddOn_core_AddOnRegister_AddOnRegister.default.md b/talawa-admin-docs/modules/components_AddOn_core_AddOnRegister_AddOnRegister.default.md index 07f216c14c..4345c80034 100644 --- a/talawa-admin-docs/modules/components_AddOn_core_AddOnRegister_AddOnRegister.default.md +++ b/talawa-admin-docs/modules/components_AddOn_core_AddOnRegister_AddOnRegister.default.md @@ -37,7 +37,7 @@ ___ | Name | Type | | :------ | :------ | -| `createdBy` | `Requireable`<`string`\> | +| `createdBy` | `Requireable`\<`string`\> | #### Defined in diff --git a/talawa-admin-docs/modules/components_ChangeLanguageDropdown_ChangeLanguageDropDown.md b/talawa-admin-docs/modules/components_ChangeLanguageDropdown_ChangeLanguageDropDown.md index 7ce929fecd..3229fe3ed2 100644 --- a/talawa-admin-docs/modules/components_ChangeLanguageDropdown_ChangeLanguageDropDown.md +++ b/talawa-admin-docs/modules/components_ChangeLanguageDropdown_ChangeLanguageDropDown.md @@ -13,7 +13,7 @@ ### changeLanguage -▸ **changeLanguage**(`languageCode`): `Promise`<`void`\> +▸ **changeLanguage**(`languageCode`): `Promise`\<`void`\> #### Parameters @@ -23,7 +23,7 @@ #### Returns -`Promise`<`void`\> +`Promise`\<`void`\> #### Defined in diff --git a/talawa-admin-docs/modules/components_CheckIn_TableRow.md b/talawa-admin-docs/modules/components_CheckIn_TableRow.md index 34921ffd77..4a61216986 100644 --- a/talawa-admin-docs/modules/components_CheckIn_TableRow.md +++ b/talawa-admin-docs/modules/components_CheckIn_TableRow.md @@ -20,7 +20,7 @@ | :------ | :------ | | `«destructured»` | `Object` | | › `data` | [`InterfaceTableCheckIn`](../interfaces/components_CheckIn_types.InterfaceTableCheckIn.md) | -| › `refetch` | () => `void` | +| › `refetch` | () =\> `void` | #### Returns diff --git a/talawa-admin-docs/modules/components_CheckIn_mocks.md b/talawa-admin-docs/modules/components_CheckIn_mocks.md index 67d7a2b123..24fee2ec60 100644 --- a/talawa-admin-docs/modules/components_CheckIn_mocks.md +++ b/talawa-admin-docs/modules/components_CheckIn_mocks.md @@ -14,7 +14,7 @@ ### checkInMutationSuccess -• `Const` **checkInMutationSuccess**: { `request`: { `query`: `DocumentNode` = MARK\_CHECKIN; `variables`: { `allotedRoom`: `string` = ''; `allotedSeat`: `string` = ''; `eventId`: `string` = 'event123'; `userId`: `string` = 'user123' } } ; `result`: { `data`: { `checkIn`: { `_id`: `string` = '123' } } } }[] +• `Const` **checkInMutationSuccess**: \{ `request`: \{ `query`: `DocumentNode` = MARK\_CHECKIN; `variables`: \{ `allotedRoom`: `string` = ''; `allotedSeat`: `string` = ''; `eventId`: `string` = 'event123'; `userId`: `string` = 'user123' \} \} ; `result`: \{ `data`: \{ `checkIn`: \{ `_id`: `string` = '123' \} \} \} \}[] #### Defined in @@ -24,7 +24,7 @@ ___ ### checkInMutationUnsuccess -• `Const` **checkInMutationUnsuccess**: { `error`: `Error` ; `request`: { `query`: `DocumentNode` = MARK\_CHECKIN; `variables`: { `allotedRoom`: `string` = ''; `allotedSeat`: `string` = ''; `eventId`: `string` = 'event123'; `userId`: `string` = 'user123' } } }[] +• `Const` **checkInMutationUnsuccess**: \{ `error`: `Error` ; `request`: \{ `query`: `DocumentNode` = MARK\_CHECKIN; `variables`: \{ `allotedRoom`: `string` = ''; `allotedSeat`: `string` = ''; `eventId`: `string` = 'event123'; `userId`: `string` = 'user123' \} \} \}[] #### Defined in @@ -34,7 +34,7 @@ ___ ### checkInQueryMock -• `Const` **checkInQueryMock**: { `request`: { `query`: `DocumentNode` = EVENT\_CHECKINS; `variables`: { `id`: `string` = 'event123' } } ; `result`: { `data`: [`InterfaceAttendeeQueryResponse`](../interfaces/components_CheckIn_types.InterfaceAttendeeQueryResponse.md) = checkInQueryData } }[] +• `Const` **checkInQueryMock**: \{ `request`: \{ `query`: `DocumentNode` = EVENT\_CHECKINS; `variables`: \{ `id`: `string` = 'event123' \} \} ; `result`: \{ `data`: [`InterfaceAttendeeQueryResponse`](../interfaces/components_CheckIn_types.InterfaceAttendeeQueryResponse.md) = checkInQueryData \} \}[] #### Defined in diff --git a/talawa-admin-docs/modules/components_EventCalendar_EventCalendar.md b/talawa-admin-docs/modules/components_EventCalendar_EventCalendar.md index a6d00af0cb..b8e0171dc7 100644 --- a/talawa-admin-docs/modules/components_EventCalendar_EventCalendar.md +++ b/talawa-admin-docs/modules/components_EventCalendar_EventCalendar.md @@ -12,18 +12,18 @@ ### default -▸ **default**(`props`, `context?`): ``null`` \| `ReactElement`<`any`, `any`\> +▸ **default**(`props`, `context?`): ``null`` \| `ReactElement`\<`any`, `any`\> #### Parameters | Name | Type | | :------ | :------ | -| `props` | `PropsWithChildren`<`InterfaceCalendarProps`\> | +| `props` | `PropsWithChildren`\<`InterfaceCalendarProps`\> | | `context?` | `any` | #### Returns -``null`` \| `ReactElement`<`any`, `any`\> +``null`` \| `ReactElement`\<`any`, `any`\> #### Defined in diff --git a/talawa-admin-docs/modules/components_TaskModals_UpdateTaskModal.md b/talawa-admin-docs/modules/components_TaskModals_UpdateTaskModal.md index 593edf1a85..1f13fe806c 100644 --- a/talawa-admin-docs/modules/components_TaskModals_UpdateTaskModal.md +++ b/talawa-admin-docs/modules/components_TaskModals_UpdateTaskModal.md @@ -22,11 +22,11 @@ | Name | Type | | :------ | :------ | -| `handleClose` | () => `void` | -| `organization` | { `_id`: `string` ; `members`: `InterfaceUser`[] } | +| `handleClose` | () =\> `void` | +| `organization` | \{ `_id`: `string` ; `members`: `InterfaceUser`[] \} | | `organization._id` | `string` | | `organization.members` | `InterfaceUser`[] | -| `refetchData` | () => `void` | +| `refetchData` | () =\> `void` | | `show` | `boolean` | | `task` | `InterfaceTask` | diff --git a/talawa-admin-docs/modules/components_UserPasswordUpdate_UserPasswordUpdate.md b/talawa-admin-docs/modules/components_UserPasswordUpdate_UserPasswordUpdate.md index 8402744885..08f35fd90b 100644 --- a/talawa-admin-docs/modules/components_UserPasswordUpdate_UserPasswordUpdate.md +++ b/talawa-admin-docs/modules/components_UserPasswordUpdate_UserPasswordUpdate.md @@ -12,18 +12,18 @@ ### default -▸ **default**(`props`, `context?`): ``null`` \| `ReactElement`<`any`, `any`\> +▸ **default**(`props`, `context?`): ``null`` \| `ReactElement`\<`any`, `any`\> #### Parameters | Name | Type | | :------ | :------ | -| `props` | `PropsWithChildren`<`InterfaceUserPasswordUpdateProps`\> | +| `props` | `PropsWithChildren`\<`InterfaceUserPasswordUpdateProps`\> | | `context?` | `any` | #### Returns -``null`` \| `ReactElement`<`any`, `any`\> +``null`` \| `ReactElement`\<`any`, `any`\> #### Defined in diff --git a/talawa-admin-docs/modules/components_UserUpdate_UserUpdate.md b/talawa-admin-docs/modules/components_UserUpdate_UserUpdate.md index 4285a73143..5f7d23b6a0 100644 --- a/talawa-admin-docs/modules/components_UserUpdate_UserUpdate.md +++ b/talawa-admin-docs/modules/components_UserUpdate_UserUpdate.md @@ -12,18 +12,18 @@ ### default -▸ **default**(`props`, `context?`): ``null`` \| `ReactElement`<`any`, `any`\> +▸ **default**(`props`, `context?`): ``null`` \| `ReactElement`\<`any`, `any`\> #### Parameters | Name | Type | | :------ | :------ | -| `props` | `PropsWithChildren`<`InterfaceUserUpdateProps`\> | +| `props` | `PropsWithChildren`\<`InterfaceUserUpdateProps`\> | | `context?` | `any` | #### Returns -``null`` \| `ReactElement`<`any`, `any`\> +``null`` \| `ReactElement`\<`any`, `any`\> #### Defined in diff --git a/talawa-admin-docs/modules/screens_EventDashboard_EventDashboard_mocks.md b/talawa-admin-docs/modules/screens_EventDashboard_EventDashboard_mocks.md index d5ef0c33f7..b8d8d3b320 100644 --- a/talawa-admin-docs/modules/screens_EventDashboard_EventDashboard_mocks.md +++ b/talawa-admin-docs/modules/screens_EventDashboard_EventDashboard_mocks.md @@ -15,7 +15,7 @@ ### queryMockWithProject -• `Const` **queryMockWithProject**: { `request`: { `query`: `DocumentNode` = EVENT\_DETAILS; `variables`: { `id`: `string` = 'event123' } } ; `result`: { `data`: { `event`: { `allDay`: `boolean` = false; `attendees`: { `_id`: `string` = 'user1' }[] ; `description`: `string` = 'Event Description'; `endDate`: `string` = '2/2/23'; `endTime`: `string` = '09:00:00'; `location`: `string` = 'India'; `organization`: { `_id`: `string` = 'org1'; `members`: { `_id`: `string` = 'user1'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' }[] } ; `projects`: { `_id`: `string` = 'project1'; `description`: `string` = 'Project Description 1'; `tasks`: `never`[] = []; `title`: `string` = 'Project 1' }[] ; `startDate`: `string` = '1/1/23'; `startTime`: `string` = '08:00:00'; `title`: `string` = 'Event Title' } } } }[] +• `Const` **queryMockWithProject**: \{ `request`: \{ `query`: `DocumentNode` = EVENT\_DETAILS; `variables`: \{ `id`: `string` = 'event123' \} \} ; `result`: \{ `data`: \{ `event`: \{ `allDay`: `boolean` = false; `attendees`: \{ `_id`: `string` = 'user1' \}[] ; `description`: `string` = 'Event Description'; `endDate`: `string` = '2/2/23'; `endTime`: `string` = '09:00:00'; `location`: `string` = 'India'; `organization`: \{ `_id`: `string` = 'org1'; `members`: \{ `_id`: `string` = 'user1'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \}[] \} ; `projects`: \{ `_id`: `string` = 'project1'; `description`: `string` = 'Project Description 1'; `tasks`: `never`[] = []; `title`: `string` = 'Project 1' \}[] ; `startDate`: `string` = '1/1/23'; `startTime`: `string` = '08:00:00'; `title`: `string` = 'Event Title' \} \} \} \}[] #### Defined in @@ -25,7 +25,7 @@ ___ ### queryMockWithProjectAndTask -• `Const` **queryMockWithProjectAndTask**: { `request`: { `query`: `DocumentNode` = EVENT\_DETAILS; `variables`: { `id`: `string` = 'event123' } } ; `result`: { `data`: { `event`: { `allDay`: `boolean` = false; `attendees`: { `_id`: `string` = 'user1' }[] ; `description`: `string` = 'Event Description'; `endDate`: `string` = '2/2/23'; `endTime`: `string` = '09:00:00'; `location`: `string` = 'India'; `organization`: { `_id`: `string` = 'org1'; `members`: { `_id`: `string` = 'user1'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' }[] } ; `projects`: { `_id`: `string` = 'project1'; `description`: `string` = 'Project Description 1'; `tasks`: { `_id`: `string` = 'task1'; `completed`: `boolean` = false; `deadline`: `string` = '22/12/23'; `description`: `string` = 'Description 1'; `title`: `string` = 'Task 1'; `volunteers`: `never`[] = [] }[] ; `title`: `string` = 'Project 1' }[] ; `startDate`: `string` = '1/1/23'; `startTime`: `string` = '08:00:00'; `title`: `string` = 'Event Title' } } } }[] +• `Const` **queryMockWithProjectAndTask**: \{ `request`: \{ `query`: `DocumentNode` = EVENT\_DETAILS; `variables`: \{ `id`: `string` = 'event123' \} \} ; `result`: \{ `data`: \{ `event`: \{ `allDay`: `boolean` = false; `attendees`: \{ `_id`: `string` = 'user1' \}[] ; `description`: `string` = 'Event Description'; `endDate`: `string` = '2/2/23'; `endTime`: `string` = '09:00:00'; `location`: `string` = 'India'; `organization`: \{ `_id`: `string` = 'org1'; `members`: \{ `_id`: `string` = 'user1'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \}[] \} ; `projects`: \{ `_id`: `string` = 'project1'; `description`: `string` = 'Project Description 1'; `tasks`: \{ `_id`: `string` = 'task1'; `completed`: `boolean` = false; `deadline`: `string` = '22/12/23'; `description`: `string` = 'Description 1'; `title`: `string` = 'Task 1'; `volunteers`: `never`[] = [] \}[] ; `title`: `string` = 'Project 1' \}[] ; `startDate`: `string` = '1/1/23'; `startTime`: `string` = '08:00:00'; `title`: `string` = 'Event Title' \} \} \} \}[] #### Defined in @@ -35,7 +35,7 @@ ___ ### queryMockWithTime -• `Const` **queryMockWithTime**: { `request`: { `query`: `DocumentNode` = EVENT\_DETAILS; `variables`: { `id`: `string` = 'event123' } } ; `result`: { `data`: { `event`: { `allDay`: `boolean` = false; `attendees`: { `_id`: `string` = 'user1' }[] ; `description`: `string` = 'Event Description'; `endDate`: `string` = '2/2/23'; `endTime`: `string` = '09:00:00'; `location`: `string` = 'India'; `organization`: { `_id`: `string` = 'org1'; `members`: { `_id`: `string` = 'user1'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' }[] } ; `projects`: `never`[] = []; `startDate`: `string` = '1/1/23'; `startTime`: `string` = '08:00:00'; `title`: `string` = 'Event Title' } } } }[] +• `Const` **queryMockWithTime**: \{ `request`: \{ `query`: `DocumentNode` = EVENT\_DETAILS; `variables`: \{ `id`: `string` = 'event123' \} \} ; `result`: \{ `data`: \{ `event`: \{ `allDay`: `boolean` = false; `attendees`: \{ `_id`: `string` = 'user1' \}[] ; `description`: `string` = 'Event Description'; `endDate`: `string` = '2/2/23'; `endTime`: `string` = '09:00:00'; `location`: `string` = 'India'; `organization`: \{ `_id`: `string` = 'org1'; `members`: \{ `_id`: `string` = 'user1'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \}[] \} ; `projects`: `never`[] = []; `startDate`: `string` = '1/1/23'; `startTime`: `string` = '08:00:00'; `title`: `string` = 'Event Title' \} \} \} \}[] #### Defined in @@ -45,7 +45,7 @@ ___ ### queryMockWithoutTime -• `Const` **queryMockWithoutTime**: { `request`: { `query`: `DocumentNode` = EVENT\_DETAILS; `variables`: { `id`: `string` = 'event123' } } ; `result`: { `data`: { `event`: { `allDay`: `boolean` = false; `attendees`: { `_id`: `string` = 'user1' }[] ; `description`: `string` = 'Event Description'; `endDate`: `string` = '2/2/23'; `endTime`: ``null`` = null; `location`: `string` = 'India'; `organization`: { `_id`: `string` = 'org1'; `members`: { `_id`: `string` = 'user1'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' }[] } ; `projects`: `never`[] = []; `startDate`: `string` = '1/1/23'; `startTime`: ``null`` = null; `title`: `string` = 'Event Title' } } } }[] +• `Const` **queryMockWithoutTime**: \{ `request`: \{ `query`: `DocumentNode` = EVENT\_DETAILS; `variables`: \{ `id`: `string` = 'event123' \} \} ; `result`: \{ `data`: \{ `event`: \{ `allDay`: `boolean` = false; `attendees`: \{ `_id`: `string` = 'user1' \}[] ; `description`: `string` = 'Event Description'; `endDate`: `string` = '2/2/23'; `endTime`: ``null`` = null; `location`: `string` = 'India'; `organization`: \{ `_id`: `string` = 'org1'; `members`: \{ `_id`: `string` = 'user1'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \}[] \} ; `projects`: `never`[] = []; `startDate`: `string` = '1/1/23'; `startTime`: ``null`` = null; `title`: `string` = 'Event Title' \} \} \} \}[] #### Defined in diff --git a/talawa-admin-docs/modules/screens_MemberDetail_MemberDetail.md b/talawa-admin-docs/modules/screens_MemberDetail_MemberDetail.md index 775b3e0dcd..7c265792b9 100644 --- a/talawa-admin-docs/modules/screens_MemberDetail_MemberDetail.md +++ b/talawa-admin-docs/modules/screens_MemberDetail_MemberDetail.md @@ -14,18 +14,18 @@ ### default -▸ **default**(`props`, `context?`): ``null`` \| `ReactElement`<`any`, `any`\> +▸ **default**(`props`, `context?`): ``null`` \| `ReactElement`\<`any`, `any`\> #### Parameters | Name | Type | | :------ | :------ | -| `props` | `PropsWithChildren`<`MemberDetailProps`\> | +| `props` | `PropsWithChildren`\<`MemberDetailProps`\> | | `context?` | `any` | #### Returns -``null`` \| `ReactElement`<`any`, `any`\> +``null`` \| `ReactElement`\<`any`, `any`\> #### Defined in diff --git a/talawa-admin-docs/modules/screens_OrgList_OrgListMocks.md b/talawa-admin-docs/modules/screens_OrgList_OrgListMocks.md index 3cee071055..c131c3224e 100644 --- a/talawa-admin-docs/modules/screens_OrgList_OrgListMocks.md +++ b/talawa-admin-docs/modules/screens_OrgList_OrgListMocks.md @@ -14,7 +14,7 @@ ### MOCKS -• `Const` **MOCKS**: ({ `request`: { `query`: `DocumentNode` = ORGANIZATION\_CONNECTION\_LIST; `variables?`: `undefined` } ; `result`: { `data`: { `organizationsConnection`: `InterfaceOrgConnectionInfoType`[] = organizations } } } \| { `request`: { `query`: `DocumentNode` = USER\_ORGANIZATION\_LIST; `variables`: { `id`: `string` = '123' } } ; `result`: { `data`: `InterfaceUserType` = superAdminUser } })[] +• `Const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_CONNECTION\_LIST; `variables?`: `undefined` \} ; `result`: \{ `data`: \{ `organizationsConnection`: `InterfaceOrgConnectionInfoType`[] = organizations \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = USER\_ORGANIZATION\_LIST; `variables`: \{ `id`: `string` = '123' \} \} ; `result`: \{ `data`: `InterfaceUserType` = superAdminUser \} \})[] #### Defined in @@ -24,7 +24,7 @@ ___ ### MOCKS\_ADMIN -• `Const` **MOCKS\_ADMIN**: ({ `request`: { `query`: `DocumentNode` = ORGANIZATION\_CONNECTION\_LIST; `variables?`: `undefined` } ; `result`: { `data`: { `organizationsConnection`: `InterfaceOrgConnectionInfoType`[] = organizations } } } \| { `request`: { `query`: `DocumentNode` = USER\_ORGANIZATION\_LIST; `variables`: { `id`: `string` = '123' } } ; `result`: { `data`: `InterfaceUserType` = adminUser } })[] +• `Const` **MOCKS\_ADMIN**: (\{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_CONNECTION\_LIST; `variables?`: `undefined` \} ; `result`: \{ `data`: \{ `organizationsConnection`: `InterfaceOrgConnectionInfoType`[] = organizations \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = USER\_ORGANIZATION\_LIST; `variables`: \{ `id`: `string` = '123' \} \} ; `result`: \{ `data`: `InterfaceUserType` = adminUser \} \})[] #### Defined in @@ -34,7 +34,7 @@ ___ ### MOCKS\_EMPTY -• `Const` **MOCKS\_EMPTY**: ({ `request`: { `query`: `DocumentNode` = ORGANIZATION\_CONNECTION\_LIST; `variables?`: `undefined` } ; `result`: { `data`: { `organizationsConnection`: `never`[] = [] } } } \| { `request`: { `query`: `DocumentNode` = USER\_ORGANIZATION\_LIST; `variables`: { `id`: `string` = '123' } } ; `result`: { `data`: `InterfaceUserType` = superAdminUser } })[] +• `Const` **MOCKS\_EMPTY**: (\{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_CONNECTION\_LIST; `variables?`: `undefined` \} ; `result`: \{ `data`: \{ `organizationsConnection`: `never`[] = [] \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = USER\_ORGANIZATION\_LIST; `variables`: \{ `id`: `string` = '123' \} \} ; `result`: \{ `data`: `InterfaceUserType` = superAdminUser \} \})[] #### Defined in diff --git a/talawa-admin-docs/modules/screens_OrganizationDashboard_OrganizationDashboardMocks.md b/talawa-admin-docs/modules/screens_OrganizationDashboard_OrganizationDashboardMocks.md index eeee46963b..f14ce241a3 100644 --- a/talawa-admin-docs/modules/screens_OrganizationDashboard_OrganizationDashboardMocks.md +++ b/talawa-admin-docs/modules/screens_OrganizationDashboard_OrganizationDashboardMocks.md @@ -14,7 +14,7 @@ ### MOCKS\_NO\_TAGS -• `Const` **MOCKS\_NO\_TAGS**: ({ `request`: { `query`: `DocumentNode` = ORGANIZATIONS\_LIST } ; `result`: { `data`: { `eventsByOrganization?`: `undefined` ; `organizations`: { `_id`: `number` = 1; `admins`: { `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `blockedUsers`: { `_id`: `string` = '789'; `email`: `string` = 'stevesmith@gmail.com'; `firstName`: `string` = 'Steve'; `lastName`: `string` = 'Smith' } ; `creator`: { `email`: `string` = ''; `firstName`: `string` = ''; `lastName`: `string` = '' } ; `description`: `string` = 'This is a Dummy Organization'; `image`: `string` = ''; `location`: `string` = 'New Delhi'; `members`: { `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `membershipRequests`: { `_id`: `string` = '456'; `user`: { `email`: `string` = 'samsmith@gmail.com'; `firstName`: `string` = 'Sam'; `lastName`: `string` = 'Smith' } } ; `name`: `string` = 'Dummy Organization'; `spamCount`: { `_id`: `string` = '6954'; `groupchat`: { `_id`: `string` = '321'; `title`: `string` = 'Dummy' } ; `isReaded`: `boolean` = false; `user`: { `_id`: `string` = '878'; `email`: `string` = 'joeroot@gmail.com'; `firstName`: `string` = 'Joe'; `lastName`: `string` = 'Root' } }[] }[] ; `postsByOrganization?`: `undefined` } } } \| { `request`: { `query`: `DocumentNode` = ORGANIZATION\_POST\_LIST } ; `result`: { `data`: { `eventsByOrganization?`: `undefined` ; `organizations?`: `undefined` ; `postsByOrganization`: { `_id`: `number` = 1; `creator`: { `_id`: `string` = '583'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `imageUrl`: `string` = ''; `text`: `string` = 'Capture Jinchuriki'; `title`: `string` = 'Akatsuki'; `videoUrl`: `string` = '' }[] } } } \| { `request`: { `query`: `DocumentNode` = ORGANIZATION\_EVENT\_LIST } ; `result`: { `data`: { `eventsByOrganization`: { `_id`: `number` = 1; `allDay`: `boolean` = false; `description`: `string` = 'Event Test'; `endDate`: `string` = ''; `endTime`: `string` = '06:00'; `isPublic`: `boolean` = true; `isRegisterable`: `boolean` = true; `location`: `string` = 'New Delhi'; `recurring`: `boolean` = false; `startDate`: `string` = ''; `startTime`: `string` = '02:00'; `title`: `string` = 'Event' }[] ; `organizations?`: `undefined` ; `postsByOrganization?`: `undefined` } } })[] +• `Const` **MOCKS\_NO\_TAGS**: (\{ `request`: \{ `query`: `DocumentNode` = ORGANIZATIONS\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization?`: `undefined` ; `organizations`: \{ `_id`: `number` = 1; `admins`: \{ `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `blockedUsers`: \{ `_id`: `string` = '789'; `email`: `string` = 'stevesmith@gmail.com'; `firstName`: `string` = 'Steve'; `lastName`: `string` = 'Smith' \} ; `creator`: \{ `email`: `string` = ''; `firstName`: `string` = ''; `lastName`: `string` = '' \} ; `description`: `string` = 'This is a Dummy Organization'; `image`: `string` = ''; `location`: `string` = 'New Delhi'; `members`: \{ `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `membershipRequests`: \{ `_id`: `string` = '456'; `user`: \{ `email`: `string` = 'samsmith@gmail.com'; `firstName`: `string` = 'Sam'; `lastName`: `string` = 'Smith' \} \} ; `name`: `string` = 'Dummy Organization'; `spamCount`: \{ `_id`: `string` = '6954'; `groupchat`: \{ `_id`: `string` = '321'; `title`: `string` = 'Dummy' \} ; `isReaded`: `boolean` = false; `user`: \{ `_id`: `string` = '878'; `email`: `string` = 'joeroot@gmail.com'; `firstName`: `string` = 'Joe'; `lastName`: `string` = 'Root' \} \}[] \}[] ; `postsByOrganization?`: `undefined` \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_POST\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization?`: `undefined` ; `organizations?`: `undefined` ; `postsByOrganization`: \{ `_id`: `number` = 1; `creator`: \{ `_id`: `string` = '583'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `imageUrl`: `string` = ''; `text`: `string` = 'Capture Jinchuriki'; `title`: `string` = 'Akatsuki'; `videoUrl`: `string` = '' \}[] \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_EVENT\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization`: \{ `_id`: `number` = 1; `allDay`: `boolean` = false; `description`: `string` = 'Event Test'; `endDate`: `string` = ''; `endTime`: `string` = '06:00'; `isPublic`: `boolean` = true; `isRegisterable`: `boolean` = true; `location`: `string` = 'New Delhi'; `recurring`: `boolean` = false; `startDate`: `string` = ''; `startTime`: `string` = '02:00'; `title`: `string` = 'Event' \}[] ; `organizations?`: `undefined` ; `postsByOrganization?`: `undefined` \} \} \})[] #### Defined in @@ -24,7 +24,7 @@ ___ ### MOCKS\_WITHOUT\_IMAGE -• `Const` **MOCKS\_WITHOUT\_IMAGE**: ({ `request`: { `query`: `DocumentNode` = ORGANIZATIONS\_LIST } ; `result`: { `data`: { `eventsByOrganization?`: `undefined` ; `organizations`: { `_id`: `number` = 1; `admins`: { `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `blockedUsers`: { `_id`: `string` = '789'; `email`: `string` = 'stevesmith@gmail.com'; `firstName`: `string` = 'Steve'; `lastName`: `string` = 'Smith' } ; `creator`: { `email`: `string` = ''; `firstName`: `string` = ''; `lastName`: `string` = '' } ; `description`: `string` = 'This is a Dummy Organization'; `image`: `string` = ''; `location`: `string` = 'New Delhi'; `members`: { `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `membershipRequests`: { `_id`: `string` = '456'; `user`: { `email`: `string` = 'samsmith@gmail.com'; `firstName`: `string` = 'Sam'; `lastName`: `string` = 'Smith' } } ; `name`: `string` = 'Dummy Organization'; `spamCount`: { `_id`: `string` = '6954'; `groupchat`: { `_id`: `string` = '321'; `title`: `string` = 'Dummy' } ; `isReaded`: `boolean` = false; `user`: { `_id`: `string` = '878'; `email`: `string` = 'joeroot@gmail.com'; `firstName`: `string` = 'Joe'; `lastName`: `string` = 'Root' } }[] }[] ; `postsByOrganization?`: `undefined` ; `removeOrganization?`: `undefined` } } } \| { `request`: { `query`: `DocumentNode` = ORGANIZATION\_POST\_LIST } ; `result`: { `data`: { `eventsByOrganization?`: `undefined` ; `organizations?`: `undefined` ; `postsByOrganization`: { `_id`: `number` = 1; `creator`: { `_id`: `string` = '583'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `imageUrl`: `string` = ''; `text`: `string` = 'Capture Jinchuriki'; `title`: `string` = 'Akatsuki'; `videoUrl`: `string` = '' }[] ; `removeOrganization?`: `undefined` } } } \| { `request`: { `query`: `DocumentNode` = DELETE\_ORGANIZATION\_MUTATION } ; `result`: { `data`: { `eventsByOrganization?`: `undefined` ; `organizations?`: `undefined` ; `postsByOrganization?`: `undefined` ; `removeOrganization`: { `_id`: `number` = 1 }[] } } } \| { `request`: { `query`: `DocumentNode` = ORGANIZATION\_EVENT\_LIST } ; `result`: { `data`: { `eventsByOrganization`: { `_id`: `number` = 1; `allDay`: `boolean` = false; `description`: `string` = 'Event Test'; `endDate`: `string` = ''; `endTime`: `string` = '06:00'; `isPublic`: `boolean` = true; `isRegisterable`: `boolean` = true; `location`: `string` = 'New Delhi'; `recurring`: `boolean` = false; `startDate`: `string` = ''; `startTime`: `string` = '02:00'; `title`: `string` = 'Event' }[] ; `organizations?`: `undefined` ; `postsByOrganization?`: `undefined` ; `removeOrganization?`: `undefined` } } })[] +• `Const` **MOCKS\_WITHOUT\_IMAGE**: (\{ `request`: \{ `query`: `DocumentNode` = ORGANIZATIONS\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization?`: `undefined` ; `organizations`: \{ `_id`: `number` = 1; `admins`: \{ `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `blockedUsers`: \{ `_id`: `string` = '789'; `email`: `string` = 'stevesmith@gmail.com'; `firstName`: `string` = 'Steve'; `lastName`: `string` = 'Smith' \} ; `creator`: \{ `email`: `string` = ''; `firstName`: `string` = ''; `lastName`: `string` = '' \} ; `description`: `string` = 'This is a Dummy Organization'; `image`: `string` = ''; `location`: `string` = 'New Delhi'; `members`: \{ `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `membershipRequests`: \{ `_id`: `string` = '456'; `user`: \{ `email`: `string` = 'samsmith@gmail.com'; `firstName`: `string` = 'Sam'; `lastName`: `string` = 'Smith' \} \} ; `name`: `string` = 'Dummy Organization'; `spamCount`: \{ `_id`: `string` = '6954'; `groupchat`: \{ `_id`: `string` = '321'; `title`: `string` = 'Dummy' \} ; `isReaded`: `boolean` = false; `user`: \{ `_id`: `string` = '878'; `email`: `string` = 'joeroot@gmail.com'; `firstName`: `string` = 'Joe'; `lastName`: `string` = 'Root' \} \}[] \}[] ; `postsByOrganization?`: `undefined` ; `removeOrganization?`: `undefined` \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_POST\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization?`: `undefined` ; `organizations?`: `undefined` ; `postsByOrganization`: \{ `_id`: `number` = 1; `creator`: \{ `_id`: `string` = '583'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `imageUrl`: `string` = ''; `text`: `string` = 'Capture Jinchuriki'; `title`: `string` = 'Akatsuki'; `videoUrl`: `string` = '' \}[] ; `removeOrganization?`: `undefined` \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = DELETE\_ORGANIZATION\_MUTATION \} ; `result`: \{ `data`: \{ `eventsByOrganization?`: `undefined` ; `organizations?`: `undefined` ; `postsByOrganization?`: `undefined` ; `removeOrganization`: \{ `_id`: `number` = 1 \}[] \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_EVENT\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization`: \{ `_id`: `number` = 1; `allDay`: `boolean` = false; `description`: `string` = 'Event Test'; `endDate`: `string` = ''; `endTime`: `string` = '06:00'; `isPublic`: `boolean` = true; `isRegisterable`: `boolean` = true; `location`: `string` = 'New Delhi'; `recurring`: `boolean` = false; `startDate`: `string` = ''; `startTime`: `string` = '02:00'; `title`: `string` = 'Event' \}[] ; `organizations?`: `undefined` ; `postsByOrganization?`: `undefined` ; `removeOrganization?`: `undefined` \} \} \})[] #### Defined in @@ -34,7 +34,7 @@ ___ ### MOCKS\_WITH\_IMAGE -• `Const` **MOCKS\_WITH\_IMAGE**: ({ `request`: { `query`: `DocumentNode` = ORGANIZATIONS\_LIST } ; `result`: { `data`: { `eventsByOrganization?`: `undefined` ; `organizations`: { `_id`: `number` = 1; `admins`: { `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `blockedUsers`: { `_id`: `string` = '789'; `email`: `string` = 'stevesmith@gmail.com'; `firstName`: `string` = 'Steve'; `lastName`: `string` = 'Smith' } ; `creator`: { `email`: `string` = ''; `firstName`: `string` = ''; `lastName`: `string` = '' } ; `description`: `string` = 'This is a Dummy Organization'; `image`: `string` = 'https://via.placeholder.com/200x200'; `location`: `string` = 'New Delhi'; `members`: { `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `membershipRequests`: { `_id`: `string` = '456'; `user`: { `email`: `string` = 'samsmith@gmail.com'; `firstName`: `string` = 'Sam'; `lastName`: `string` = 'Smith' } } ; `name`: `string` = 'Dummy Organization'; `spamCount`: { `_id`: `string` = '6954'; `groupchat`: { `_id`: `string` = '321'; `title`: `string` = 'Dummy' } ; `isReaded`: `boolean` = false; `user`: { `_id`: `string` = '878'; `email`: `string` = 'joeroot@gmail.com'; `firstName`: `string` = 'Joe'; `lastName`: `string` = 'Root' } }[] }[] ; `postsByOrganization?`: `undefined` } } } \| { `request`: { `query`: `DocumentNode` = ORGANIZATION\_POST\_LIST } ; `result`: { `data`: { `eventsByOrganization?`: `undefined` ; `organizations?`: `undefined` ; `postsByOrganization`: { `_id`: `number` = 1; `creator`: { `_id`: `string` = '583'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' } ; `imageUrl`: `string` = ''; `text`: `string` = 'Capture Jinchuriki'; `title`: `string` = 'Akatsuki'; `videoUrl`: `string` = '' }[] } } } \| { `request`: { `query`: `DocumentNode` = ORGANIZATION\_EVENT\_LIST } ; `result`: { `data`: { `eventsByOrganization`: { `_id`: `number` = 1; `allDay`: `boolean` = false; `description`: `string` = 'Event Test'; `endDate`: `string` = ''; `endTime`: `string` = '06:00'; `isPublic`: `boolean` = true; `isRegisterable`: `boolean` = true; `location`: `string` = 'New Delhi'; `recurring`: `boolean` = false; `startDate`: `string` = ''; `startTime`: `string` = '02:00'; `title`: `string` = 'Event' }[] ; `organizations?`: `undefined` ; `postsByOrganization?`: `undefined` } } })[] +• `Const` **MOCKS\_WITH\_IMAGE**: (\{ `request`: \{ `query`: `DocumentNode` = ORGANIZATIONS\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization?`: `undefined` ; `organizations`: \{ `_id`: `number` = 1; `admins`: \{ `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `blockedUsers`: \{ `_id`: `string` = '789'; `email`: `string` = 'stevesmith@gmail.com'; `firstName`: `string` = 'Steve'; `lastName`: `string` = 'Smith' \} ; `creator`: \{ `email`: `string` = ''; `firstName`: `string` = ''; `lastName`: `string` = '' \} ; `description`: `string` = 'This is a Dummy Organization'; `image`: `string` = 'https://via.placeholder.com/200x200'; `location`: `string` = 'New Delhi'; `members`: \{ `_id`: `string` = '123'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `membershipRequests`: \{ `_id`: `string` = '456'; `user`: \{ `email`: `string` = 'samsmith@gmail.com'; `firstName`: `string` = 'Sam'; `lastName`: `string` = 'Smith' \} \} ; `name`: `string` = 'Dummy Organization'; `spamCount`: \{ `_id`: `string` = '6954'; `groupchat`: \{ `_id`: `string` = '321'; `title`: `string` = 'Dummy' \} ; `isReaded`: `boolean` = false; `user`: \{ `_id`: `string` = '878'; `email`: `string` = 'joeroot@gmail.com'; `firstName`: `string` = 'Joe'; `lastName`: `string` = 'Root' \} \}[] \}[] ; `postsByOrganization?`: `undefined` \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_POST\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization?`: `undefined` ; `organizations?`: `undefined` ; `postsByOrganization`: \{ `_id`: `number` = 1; `creator`: \{ `_id`: `string` = '583'; `email`: `string` = 'johndoe@gmail.com'; `firstName`: `string` = 'John'; `lastName`: `string` = 'Doe' \} ; `imageUrl`: `string` = ''; `text`: `string` = 'Capture Jinchuriki'; `title`: `string` = 'Akatsuki'; `videoUrl`: `string` = '' \}[] \} \} \} \| \{ `request`: \{ `query`: `DocumentNode` = ORGANIZATION\_EVENT\_LIST \} ; `result`: \{ `data`: \{ `eventsByOrganization`: \{ `_id`: `number` = 1; `allDay`: `boolean` = false; `description`: `string` = 'Event Test'; `endDate`: `string` = ''; `endTime`: `string` = '06:00'; `isPublic`: `boolean` = true; `isRegisterable`: `boolean` = true; `location`: `string` = 'New Delhi'; `recurring`: `boolean` = false; `startDate`: `string` = ''; `startTime`: `string` = '02:00'; `title`: `string` = 'Event' \}[] ; `organizations?`: `undefined` ; `postsByOrganization?`: `undefined` \} \} \})[] #### Defined in