diff --git a/.eslintignore b/.eslintignore index ee98c5bdb0..6aa531a34c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,6 +3,10 @@ src/components/CheckIn/tagTemplate.ts package.json package-lock.json tsconfig.json - +fix-readme-links.js +fix-repo-url.js # Ignore the Docusaurus website subdirectory -docs/** \ No newline at end of file +docs/** + +#Ignore markdown files from linting +*.md diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4dfefe6e77..047da22865 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -38,7 +38,7 @@ jobs: - name: Count number of lines run: | chmod +x ./.github/workflows/scripts/countline.py - ./.github/workflows/scripts/countline.py --lines 600 --exclude_files src/screens/LoginPage/LoginPage.tsx src/GraphQl/Queries/Queries.ts src/screens/OrgList/OrgList.tsx src/GraphQl/Mutations/mutations.ts src/components/EventListCard/EventListCardModals.tsx src/components/TagActions/TagActionsMocks.ts src/utils/interfaces.ts src/screens/MemberDetail/MemberDetail.tsx + ./.github/workflows/scripts/countline.py --lines 600 --exclude_files src/screens/LoginPage/LoginPage.tsx src/GraphQl/Queries/Queries.ts src/screens/OrgList/OrgList.tsx src/GraphQl/Mutations/mutations.ts src/components/EventListCard/EventListCardModals.tsx src/components/TagActions/TagActionsMocks.ts src/utils/interfaces.ts src/screens/MemberDetail/MemberDetail.tsx src/components/OrgPostCard/OrgPostCard.tsx /src/components/UsersTableItem/UsersTableItem.tsx - name: Get changed TypeScript files id: changed-files @@ -204,7 +204,6 @@ jobs: run: | python .github/workflows/scripts/eslint_disable_check.py --files ${{ steps.changed-files.outputs.all_changed_files }} - Check-Code-Coverage-Disable: name: Check for code coverage disable runs-on: ubuntu-latest @@ -303,7 +302,7 @@ jobs: uses: VeryGoodOpenSource/very_good_coverage@v3 with: path: "./coverage/lcov.info" - min_coverage: 0.0 + min_coverage: 0 # Graphql-Inspector: # if: ${{ github.actor != 'dependabot[bot]' }} @@ -416,27 +415,30 @@ jobs: run: | docker stop talawa-admin-app-container docker rm talawa-admin-app-container + Test-Docusaurus-Deployment: name: Test Deployment to https://docs-admin.talawa.io runs-on: ubuntu-latest needs: [Docker-Start-Check, Start-App-Without-Docker] - # Run only if the develop-postgres branch and not dependabot + # Run only if the develop-postgres branch and not dependabot if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.base.ref == 'develop-postgres' }} steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Checkout the Repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: - node-version: '22.x' - cache: yarn - cache-dependency-path: 'docs/' - # Run Docusaurus in the ./docs directory + node-version: '20.x' + - name: Install dependencies working-directory: ./docs - run: yarn install --frozen-lockfile + run: npm install + - name: Test building the website working-directory: ./docs - run: yarn build + run: npm run build Check-Target-Branch: if: ${{ github.actor != 'dependabot[bot]' }} @@ -449,6 +451,35 @@ jobs: echo "Error: Pull request target branch must be 'develop-postgres'. Please refer PR_GUIDELINES.md" echo "Error: Close this PR and try again." exit 1 + + Generate-Docs: + name: Generate Documentation + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + + - name: Install dependencies + run: npm install + + - name: Generate documentation + run: typedoc --out docs/docs/auto-docs --plugin typedoc-plugin-markdown --theme markdown --tsconfig tsconfig.docs.json --excludePrivate --excludeProtected --excludeExternals --hideGenerator --categorizeByGroup true --entryPointStrategy expand --entryPoints \"src\" --exclude \"src/vite-env.d.ts\" --exclude \"**/*.spec.{ts,tsx}\" --exclude \"**/*.test.{ts,tsx}\" --exclude \"**/__tests__/**\" --exclude \"**/__mocks__/**\" --skipErrorChecking --logLevel Warn" + + - name: Clean up documentation + run: | + find docs/docs/auto-docs -name 'README.md' -delete + + - name: Commit and push changes + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Auto-generate documentation" + git push origin ${{ github.head_ref }} Validate-Coderabbit: name: Validate CodeRabbit Approval @@ -460,14 +491,13 @@ jobs: uses: actions/checkout@v4 - name: Validate CodeRabbit.ai Approval run: | - chmod +x $GITHUB_WORKSPACE/.github/workflows/scripts/validate-coderabbit.sh - $GITHUB_WORKSPACE/.github/workflows/scripts/validate-coderabbit.sh + chmod +x .github/workflows/scripts/validate-coderabbit.sh + .github/workflows/scripts/validate-coderabbit.sh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.pull_request.number }} GITHUB_REPOSITORY: ${{ github.repository }} - - + Python-Compliance: name: Check Python Code Style runs-on: ubuntu-latest @@ -516,4 +546,4 @@ jobs: - name: Run docstring compliance check run: | source venv/bin/activate - python .github/workflows/scripts/check_docstrings.py --directories .github + python .github/workflows/scripts/check_docstrings.py --directories .github \ No newline at end of file diff --git a/.github/workflows/push-deploy-website.yml b/.github/workflows/push-deploy-website.yml index 5af7c90094..b90927503f 100644 --- a/.github/workflows/push-deploy-website.yml +++ b/.github/workflows/push-deploy-website.yml @@ -24,7 +24,7 @@ jobs: name: Deploy https://docs-admin.talawa.io website runs-on: ubuntu-latest # Run only if the develop-postgres branch and not dependabot - if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.base.ref == 'develop-postgres' }} + if: ${{ github.actor != 'dependabot[bot]' }} environment: # This "name" has to be the repos' branch that contains # the current active website. There must be an entry for @@ -38,9 +38,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 - cache: yarn - cache-dependency-path: 'docs/' + node-version: '20.x' - uses: webfactory/ssh-agent@v0.9.0 with: ssh-private-key: ${{ secrets.DEPLOY_GITHUB_PAGES }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7f7328b38c..500078c1a8 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -14,8 +14,8 @@ name: PUSH Workflow - All Branches on: push: branches: - - '**' - + - '**' + env: CODECOV_UNIQUE_NAME: CODECOV_UNIQUE_NAME-${{ github.run_id }}-${{ github.run_number }} diff --git a/.gitignore b/.gitignore index 1bd6f0deb1..8b262f4bc1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # Docusaurus related .docusaurus +# generated docs using husky pre-commit hook +# /docs/docs/auto-docs + # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # files that interfere with YARN diff --git a/.husky/pre-commit b/.husky/pre-commit index 8a0ce26aa2..5f91e7075c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,5 @@ +npm run generate-docs npm run format:fix # npm run lint:fix npm run lint-staged diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbe448c807..1f68ebef12 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,6 +17,12 @@ If you are new to contributing to open source, please read the Open Source Guide - [Branching Strategy](#branching-strategy) - [Conflict Resolution](#conflict-resolution) - [Contributing Code](#contributing-code) + - [General:](#general) + - [Testing:](#testing) + - [Jest Testing](#jest-testing) + - [Vitest Testing](#vitest-testing) + - [Combined testing and coverage](#combined-testing-and-coverage) + - [Test Code Coverage:](#test-code-coverage) - [Internships](#internships) - [Community](#community) @@ -92,60 +98,94 @@ The process of proposing a change to Talawa Admin can be summarized as: 1. Run the app and test your changes. 1. If you've added code, then test suites must be added. - 1. **_General_:** + ### General: - 1. We need to get to 100% test coverage for the app. We periodically increase the desired test coverage for our pull requests to meet this goal. - 1. Pull requests that don't meet the minimum test coverage levels will not be accepted. This may mean that you will have to create tests for code you did not write. You can decide which part of the code base needs additional tests if this happens to you. + - We need to get to 100% test coverage for the app. We periodically increase the desired test coverage for our pull requests to meet this goal. + - Pull requests that don't meet the minimum test coverage levels will not be accepted. This may mean that you will have to create tests for code you did not write. You can decide which part of the code base needs additional tests if this happens to you. - 2. **_Testing_:** - - 1. Test using this set of commands: + ### Testing: + This section outlines the different testing strategies and tools used in this project. It includes instructions on running tests, viewing code coverage, and debugging using Jest and Vitest. Following these guidelines ensures code reliability and maintains the project's high standards for quality. + #### Jest Testing + - Running a single test: + ``` + npm run test path/to/test/file + ``` + - Running all tests: + ``` + npm run test --watchAll=false + ``` + - Viewing the code coverage of a single test file: + ``` + npm run test --watchAll=false --coverage /path/to/test/file + ``` + - Viewing the code coverage of all test files: ``` - npm install npm run test --watchAll=false --coverage ``` - - 2. Debug tests in browser - + - Debug tests in browser You can see the output of failing tests in broswer by running `jest-preview` package before running your tests - ``` - npm install npm run jest-preview npm run test --watchAll=false --coverage ``` - You don't need to re-run the `npm run jest-preview` command each time, simply run the `npm run test` command if the Jest Preview server is already running in the background, it'll automatically detect any failing tests and show the preview at `http://localhost:3336` as shown in this screenshot - ![Debugging Test Demo](./public/images/jest-preview.webp) + #### Vitest Testing + - Running a single test: + ``` + npm run test:vitest /path/to/test/file + ``` + - Running all tests: + ``` + npm run test:vitest + ``` + - Viewing the code coverage of a single test file: + ``` + npm run test:vitest:coverage /path/to/test/file + ``` + - Viewing the code coverage of all test files: + ``` + npm run test:vitest:coverage + ``` + + #### Combined testing and coverage + - Running all tests: + ``` + npm run test && npm run test:vitest + ``` + - Viewing combined code coverage: + ``` + npm run test --watchAll=false --coverage && npm run test:vitest:coverage + ``` - 3. **_Test Code Coverage_:** + #### Test Code Coverage: 1. _General Information_ - 1. The current code coverage of the repo is: [![codecov](https://codecov.io/gh/PalisadoesFoundation/talawa-admin/branch/develop/graph/badge.svg?token=II0R0RREES)](https://codecov.io/gh/PalisadoesFoundation/talawa-admin) - 2. You can determine the percentage test coverage of your code by running these two commands in sequence: + - The current code coverage of the repo is: [![codecov](https://codecov.io/gh/PalisadoesFoundation/talawa-admin/branch/develop/graph/badge.svg?token=II0R0RREES)](https://codecov.io/gh/PalisadoesFoundation/talawa-admin) + - You can determine the percentage test coverage of your code by running these two commands in sequence: ``` npm install npm run test --watchAll=false --coverage genhtml coverage/lcov.info -o coverage ``` - 3. The output of the `npm run test` command will give you a tablular coverage report per file - 4. The overall coverage rate will be visible on the penultimate line of the `genhtml` command's output. - 5. The `genhtml` command is part of the Linux `lcov` package. Similar packages can be found for Windows and MacOS. - 6. The currently acceptable coverage rate can be found in the [GitHub Pull Request file](.github/workflows/pull-requests.yml). Search for the value below the line containing `min_coverage`. + - The output of the `npm run test` command will give you a tablular coverage report per file + - The overall coverage rate will be visible on the penultimate line of the `genhtml` command's output. + - The `genhtml` command is part of the Linux `lcov` package. Similar packages can be found for Windows and MacOS. + - The currently acceptable coverage rate can be found in the [GitHub Pull Request file](.github/workflows/pull-requests.yml). Search for the value below the line containing `min_coverage`. 2. _Testing Individual Files_ - 1. You can test an individual file by running this command: + - You can test an individual file by running this command: ``` npm run test --watchAll=false /path/to/test/file ``` - 2. You can get the test coverage report for that file by running this command. The report will list all tests in the suite. Those tests that are not run will have zero values. You will need to look for the output line relevant to your test file. + - You can get the test coverage report for that file by running this command. The report will list all tests in the suite. Those tests that are not run will have zero values. You will need to look for the output line relevant to your test file. ``` npm run test --watchAll=false --coverage /path/to/test/file ``` 3. _Creating your code coverage account_ - 1. You can also see your code coverage online for your fork of the repo. This is provided by `codecov.io` + - You can also see your code coverage online for your fork of the repo. This is provided by `codecov.io` 1. Go to this link: `https://app.codecov.io/gh/XXXX/YYYY` where XXXX is your GitHub account username and YYYY is the name of the repository 2. Login to `codecov.io` using your GitHub account, and add your **repo** and **branches** to the `codecov.io` dashboard. diff --git a/docs/docs/CONFIGURING.md b/docs/docs/CONFIGURING.md new file mode 100644 index 0000000000..e8a147f722 --- /dev/null +++ b/docs/docs/CONFIGURING.md @@ -0,0 +1 @@ +CONFIGURING GUIDE FOR DEVELOPERS diff --git a/docs/docs/INSTALLATION.md b/docs/docs/INSTALLATION.md new file mode 100644 index 0000000000..c3b2484c8b --- /dev/null +++ b/docs/docs/INSTALLATION.md @@ -0,0 +1 @@ +INSTALLATION GUIDE FOR USERS diff --git a/docs/docs/auto-docs/App/functions/default.md b/docs/docs/auto-docs/App/functions/default.md new file mode 100644 index 0000000000..3678b5e827 --- /dev/null +++ b/docs/docs/auto-docs/App/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/App.tsx:74](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/App.tsx#L74) + +This is the main function for our application. It sets up all the routes and components, +defining how the user can navigate through the app. The function uses React Router's `Routes` +and `Route` components to map different URL paths to corresponding screens and components. + +## Important Details +- **UseEffect Hook**: This hook checks user authentication status using the `CHECK_AUTH` GraphQL query. +- **Plugins**: It dynamically loads additional routes for any installed plugins. +- **Routes**: + - The root route ("/") takes the user to the `LoginPage`. + - Protected routes are wrapped with the `SecuredRoute` component to ensure they are only accessible to authenticated users. + - Admin and Super Admin routes allow access to organization and user management screens. + - User portal routes allow end-users to interact with organizations, settings, chat, events, etc. + +## Returns + +`JSX.Element` + +The rendered routes and components of the application. diff --git a/docs/docs/auto-docs/Constant/constant/variables/AUTH_TOKEN.md b/docs/docs/auto-docs/Constant/constant/variables/AUTH_TOKEN.md new file mode 100644 index 0000000000..b3382262ba --- /dev/null +++ b/docs/docs/auto-docs/Constant/constant/variables/AUTH_TOKEN.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: AUTH\_TOKEN + +> `const` **AUTH\_TOKEN**: `""` = `''` + +Defined in: [src/Constant/constant.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/Constant/constant.ts#L1) diff --git a/docs/docs/auto-docs/Constant/constant/variables/BACKEND_URL.md b/docs/docs/auto-docs/Constant/constant/variables/BACKEND_URL.md new file mode 100644 index 0000000000..15e9c8e608 --- /dev/null +++ b/docs/docs/auto-docs/Constant/constant/variables/BACKEND_URL.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: BACKEND\_URL + +> `const` **BACKEND\_URL**: `string` = `process.env.REACT_APP_TALAWA_URL` + +Defined in: [src/Constant/constant.ts:2](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/Constant/constant.ts#L2) diff --git a/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_BACKEND_WEBSOCKET_URL.md b/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_BACKEND_WEBSOCKET_URL.md new file mode 100644 index 0000000000..129669361a --- /dev/null +++ b/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_BACKEND_WEBSOCKET_URL.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REACT\_APP\_BACKEND\_WEBSOCKET\_URL + +> `const` **REACT\_APP\_BACKEND\_WEBSOCKET\_URL**: `string` + +Defined in: [src/Constant/constant.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/Constant/constant.ts#L6) diff --git a/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_CUSTOM_PORT.md b/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_CUSTOM_PORT.md new file mode 100644 index 0000000000..a8d71db631 --- /dev/null +++ b/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_CUSTOM_PORT.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REACT\_APP\_CUSTOM\_PORT + +> `const` **REACT\_APP\_CUSTOM\_PORT**: `string` = `process.env.PORT` + +Defined in: [src/Constant/constant.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/Constant/constant.ts#L5) diff --git a/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_USE_RECAPTCHA.md b/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_USE_RECAPTCHA.md new file mode 100644 index 0000000000..82466a8625 --- /dev/null +++ b/docs/docs/auto-docs/Constant/constant/variables/REACT_APP_USE_RECAPTCHA.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REACT\_APP\_USE\_RECAPTCHA + +> `const` **REACT\_APP\_USE\_RECAPTCHA**: `string` = `process.env.REACT_APP_USE_RECAPTCHA` + +Defined in: [src/Constant/constant.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/Constant/constant.ts#L4) diff --git a/docs/docs/auto-docs/Constant/constant/variables/RECAPTCHA_SITE_KEY.md b/docs/docs/auto-docs/Constant/constant/variables/RECAPTCHA_SITE_KEY.md new file mode 100644 index 0000000000..0167a08018 --- /dev/null +++ b/docs/docs/auto-docs/Constant/constant/variables/RECAPTCHA_SITE_KEY.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: RECAPTCHA\_SITE\_KEY + +> `const` **RECAPTCHA\_SITE\_KEY**: `string` = `process.env.REACT_APP_RECAPTCHA_SITE_KEY` + +Defined in: [src/Constant/constant.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/Constant/constant.ts#L3) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/ActionItemCategoryMutations/variables/CREATE_ACTION_ITEM_CATEGORY_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemCategoryMutations/variables/CREATE_ACTION_ITEM_CATEGORY_MUTATION.md new file mode 100644 index 0000000000..e94e8c8611 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemCategoryMutations/variables/CREATE_ACTION_ITEM_CATEGORY_MUTATION.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_ACTION\_ITEM\_CATEGORY\_MUTATION + +> `const` **CREATE\_ACTION\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/ActionItemCategoryMutations.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/ActionItemCategoryMutations.ts#L11) + +GraphQL mutation to create an action item category. + +## Param + +Name of the ActionItemCategory. + +## Param + +Disabled status of the ActionItemCategory. + +## Param + +Organization to which the ActionItemCategory belongs. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/ActionItemCategoryMutations/variables/UPDATE_ACTION_ITEM_CATEGORY_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemCategoryMutations/variables/UPDATE_ACTION_ITEM_CATEGORY_MUTATION.md new file mode 100644 index 0000000000..c4d3ecea37 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemCategoryMutations/variables/UPDATE_ACTION_ITEM_CATEGORY_MUTATION.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_ACTION\_ITEM\_CATEGORY\_MUTATION + +> `const` **UPDATE\_ACTION\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/ActionItemCategoryMutations.ts:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/ActionItemCategoryMutations.ts#L35) + +GraphQL mutation to update an action item category. + +## Param + +The id of the ActionItemCategory to be updated. + +## Param + +Updated name of the ActionItemCategory. + +## Param + +Updated disabled status of the ActionItemCategory. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/CREATE_ACTION_ITEM_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/CREATE_ACTION_ITEM_MUTATION.md new file mode 100644 index 0000000000..c5d7479a32 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/CREATE_ACTION_ITEM_MUTATION.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_ACTION\_ITEM\_MUTATION + +> `const` **CREATE\_ACTION\_ITEM\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/ActionItemMutations.ts:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/ActionItemMutations.ts#L14) + +GraphQL mutation to create an action item. + +## Param + +ActionItemCategory to which the ActionItem is related. + +## Param + +User to whom the ActionItem is assigned. + +## Param + +Notes prior to completion. + +## Param + +Due date. + +## Param + +Event to which the ActionItem is related. + +## Param + +Hours allotted for the ActionItem. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/DELETE_ACTION_ITEM_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/DELETE_ACTION_ITEM_MUTATION.md new file mode 100644 index 0000000000..ff323ab9ae --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/DELETE_ACTION_ITEM_MUTATION.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_ACTION\_ITEM\_MUTATION + +> `const` **DELETE\_ACTION\_ITEM\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/ActionItemMutations.ts:88](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/ActionItemMutations.ts#L88) + +GraphQL mutation to delete an action item. + +## Param + +Id of the ActionItem to be updated. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/UPDATE_ACTION_ITEM_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/UPDATE_ACTION_ITEM_MUTATION.md new file mode 100644 index 0000000000..ce46f6bc24 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/ActionItemMutations/variables/UPDATE_ACTION_ITEM_MUTATION.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_ACTION\_ITEM\_MUTATION + +> `const` **UPDATE\_ACTION\_ITEM\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/ActionItemMutations.ts:52](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/ActionItemMutations.ts#L52) + +GraphQL mutation to update an action item. + +## Param + +Id of the ActionItem to be updated. + +## Param + +User to whom the ActionItem is assigned. + +## Param + +Notes prior to completion. + +## Param + +Notes on completion. + +## Param + +Due date. + +## Param + +Completion date. + +## Param + +Whether the ActionItem has been completed. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/CREATE_AGENDA_ITEM_CATEGORY_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/CREATE_AGENDA_ITEM_CATEGORY_MUTATION.md new file mode 100644 index 0000000000..cd384efc03 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/CREATE_AGENDA_ITEM_CATEGORY_MUTATION.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_AGENDA\_ITEM\_CATEGORY\_MUTATION + +> `const` **CREATE\_AGENDA\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/AgendaCategoryMutations.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/AgendaCategoryMutations.ts#L9) + +GraphQL mutation to create an agenda category. + +## Param + +Name, Description, OrganizationID of the AgendaCategory. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/DELETE_AGENDA_ITEM_CATEGORY_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/DELETE_AGENDA_ITEM_CATEGORY_MUTATION.md new file mode 100644 index 0000000000..316e8e8651 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/DELETE_AGENDA_ITEM_CATEGORY_MUTATION.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_AGENDA\_ITEM\_CATEGORY\_MUTATION + +> `const` **DELETE\_AGENDA\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/AgendaCategoryMutations.ts:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/AgendaCategoryMutations.ts#L23) + +GraphQL mutation to delete an agenda category. + +## Param + +The ID of the AgendaCategory to be deleted. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/UPDATE_AGENDA_ITEM_CATEGORY_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/UPDATE_AGENDA_ITEM_CATEGORY_MUTATION.md new file mode 100644 index 0000000000..81d02a798f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/AgendaCategoryMutations/variables/UPDATE_AGENDA_ITEM_CATEGORY_MUTATION.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_AGENDA\_ITEM\_CATEGORY\_MUTATION + +> `const` **UPDATE\_AGENDA\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/AgendaCategoryMutations.ts:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/AgendaCategoryMutations.ts#L36) + +GraphQL mutation to update an agenda category. + +## Param + +The ID of the AgendaCategory to be updated. + +## Param + +Updated Name, Description, OrganizationID of the AgendaCategory. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/CREATE_AGENDA_ITEM_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/CREATE_AGENDA_ITEM_MUTATION.md new file mode 100644 index 0000000000..f0c618917a --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/CREATE_AGENDA_ITEM_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_AGENDA\_ITEM\_MUTATION + +> `const` **CREATE\_AGENDA\_ITEM\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/AgendaItemMutations.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/AgendaItemMutations.ts#L3) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/DELETE_AGENDA_ITEM_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/DELETE_AGENDA_ITEM_MUTATION.md new file mode 100644 index 0000000000..947c11e217 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/DELETE_AGENDA_ITEM_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_AGENDA\_ITEM\_MUTATION + +> `const` **DELETE\_AGENDA\_ITEM\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/AgendaItemMutations.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/AgendaItemMutations.ts#L12) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/UPDATE_AGENDA_ITEM_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/UPDATE_AGENDA_ITEM_MUTATION.md new file mode 100644 index 0000000000..c609a8316d --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/AgendaItemMutations/variables/UPDATE_AGENDA_ITEM_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_AGENDA\_ITEM\_MUTATION + +> `const` **UPDATE\_AGENDA\_ITEM\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/AgendaItemMutations.ts:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/AgendaItemMutations.ts#L20) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/CampaignMutation/variables/CREATE_CAMPAIGN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/CampaignMutation/variables/CREATE_CAMPAIGN_MUTATION.md new file mode 100644 index 0000000000..035fa1cfbf --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/CampaignMutation/variables/CREATE_CAMPAIGN_MUTATION.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_CAMPAIGN\_MUTATION + +> `const` **CREATE\_CAMPAIGN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/CampaignMutation.ts:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/CampaignMutation.ts#L15) + +GraphQL mutation to create a new fund Campaign. + +## Param + +The name of the fund. + +## Param + +The fund ID the campaign is associated with. + +## Param + +The funding goal of the campaign. + +## Param + +The start date of the campaign. + +## Param + +The end date of the campaign. + +## Param + +The currency of the campaign. + +## Returns + +The ID of the created campaign. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/CampaignMutation/variables/UPDATE_CAMPAIGN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/CampaignMutation/variables/UPDATE_CAMPAIGN_MUTATION.md new file mode 100644 index 0000000000..7e80464b0e --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/CampaignMutation/variables/UPDATE_CAMPAIGN_MUTATION.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_CAMPAIGN\_MUTATION + +> `const` **UPDATE\_CAMPAIGN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/CampaignMutation.ts:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/CampaignMutation.ts#L53) + +GraphQL mutation to update a fund Campaign. + +## Param + +The ID of the campaign being updated. + +## Param + +The name of the campaign. + +## Param + +The funding goal of the campaign. + +## Param + +The start date of the campaign. + +## Param + +The end date of the campaign. + +## Param + +The currency of the campaign. + +## Returns + +The ID of the updated campaign. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/CREATE_COMMENT_POST.md b/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/CREATE_COMMENT_POST.md new file mode 100644 index 0000000000..57fcee8394 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/CREATE_COMMENT_POST.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_COMMENT\_POST + +> `const` **CREATE\_COMMENT\_POST**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/CommentMutations.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/CommentMutations.ts#L11) + +GraphQL mutation to create a new comment on a post. + +## Param + +The text content of the comment. + +## Param + +The ID of the post to which the comment is being added. + +## Returns + +The created comment object. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/LIKE_COMMENT.md b/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/LIKE_COMMENT.md new file mode 100644 index 0000000000..0e8c91104b --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/LIKE_COMMENT.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: LIKE\_COMMENT + +> `const` **LIKE\_COMMENT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/CommentMutations.ts:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/CommentMutations.ts#L37) + +GraphQL mutation to like a comment. + +## Param + +The ID of the comment to be liked. + +## Returns + +The liked comment object. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/UNLIKE_COMMENT.md b/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/UNLIKE_COMMENT.md new file mode 100644 index 0000000000..d7c95e75c0 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/CommentMutations/variables/UNLIKE_COMMENT.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: UNLIKE\_COMMENT + +> `const` **UNLIKE\_COMMENT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/CommentMutations.ts:52](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/CommentMutations.ts#L52) + +GraphQL mutation to unlike a comment. + +## Param + +The ID of the comment to be unliked. + +## Returns + +The unliked comment object. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/ADD_EVENT_ATTENDEE.md b/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/ADD_EVENT_ATTENDEE.md new file mode 100644 index 0000000000..2f54333486 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/ADD_EVENT_ATTENDEE.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_EVENT\_ATTENDEE + +> `const` **ADD\_EVENT\_ATTENDEE**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventAttendeeMutations.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventAttendeeMutations.ts#L11) + +GraphQL mutation to add an attendee to an event. + +## Param + +The ID of the user being added as an attendee. + +## Param + +The ID of the event to which the user is being added as an attendee. + +## Returns + +The updated event object with the added attendee. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/MARK_CHECKIN.md b/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/MARK_CHECKIN.md new file mode 100644 index 0000000000..835c6ee86f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/MARK_CHECKIN.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: MARK\_CHECKIN + +> `const` **MARK\_CHECKIN**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventAttendeeMutations.ts:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventAttendeeMutations.ts#L43) + +GraphQL mutation to mark a user's check-in at an event. + +## Param + +The ID of the user checking in. + +## Param + +The ID of the event at which the user is checking in. + +## Returns + +The updated event object with the user's check-in information. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/REMOVE_EVENT_ATTENDEE.md b/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/REMOVE_EVENT_ATTENDEE.md new file mode 100644 index 0000000000..60e690b476 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventAttendeeMutations/variables/REMOVE_EVENT_ATTENDEE.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: REMOVE\_EVENT\_ATTENDEE + +> `const` **REMOVE\_EVENT\_ATTENDEE**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventAttendeeMutations.ts:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventAttendeeMutations.ts#L27) + +GraphQL mutation to remove an attendee from an event. + +## Param + +The ID of the user being removed as an attendee. + +## Param + +The ID of the event from which the user is being removed as an attendee. + +## Returns + +The updated event object without the removed attendee. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/ADD_VOLUNTEER.md b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/ADD_VOLUNTEER.md new file mode 100644 index 0000000000..b766ad37ae --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/ADD_VOLUNTEER.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_VOLUNTEER + +> `const` **ADD\_VOLUNTEER**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventVolunteerMutation.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventVolunteerMutation.ts#L11) + +GraphQL mutation to create an event volunteer. + +## Param + +The data required to create an event volunteer. + +## Returns + +The ID of the created event volunteer. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/CREATE_VOLUNTEER_GROUP.md b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/CREATE_VOLUNTEER_GROUP.md new file mode 100644 index 0000000000..f609d7e332 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/CREATE_VOLUNTEER_GROUP.md @@ -0,0 +1,26 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_VOLUNTEER\_GROUP + +> `const` **CREATE\_VOLUNTEER\_GROUP**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventVolunteerMutation.ts:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventVolunteerMutation.ts#L48) + +GraphQL mutation to create an event volunteer group. + +## Param + +The data required to create an event volunteer group. + - data contains following fileds: + - eventId: string + - leaderId: string + - name: string + - description?: string + - volunteers: [string] + - volunteersRequired?: number + +## Returns + +The ID of the created event volunteer group. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/CREATE_VOLUNTEER_MEMBERSHIP.md b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/CREATE_VOLUNTEER_MEMBERSHIP.md new file mode 100644 index 0000000000..419952b031 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/CREATE_VOLUNTEER_MEMBERSHIP.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_VOLUNTEER\_MEMBERSHIP + +> `const` **CREATE\_VOLUNTEER\_MEMBERSHIP**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventVolunteerMutation.ts:90](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventVolunteerMutation.ts#L90) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/DELETE_VOLUNTEER.md b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/DELETE_VOLUNTEER.md new file mode 100644 index 0000000000..f0994626c3 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/DELETE_VOLUNTEER.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_VOLUNTEER + +> `const` **DELETE\_VOLUNTEER**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventVolunteerMutation.ts:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventVolunteerMutation.ts#L26) + +GraphQL mutation to delete an event volunteer. + +## Param + +The ID of the event volunteer being deleted. + +## Returns + +The ID of the deleted event volunteer. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/DELETE_VOLUNTEER_GROUP.md b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/DELETE_VOLUNTEER_GROUP.md new file mode 100644 index 0000000000..687e99ae81 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/DELETE_VOLUNTEER_GROUP.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_VOLUNTEER\_GROUP + +> `const` **DELETE\_VOLUNTEER\_GROUP**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventVolunteerMutation.ts:82](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventVolunteerMutation.ts#L82) + +GraphQL mutation to delete an event volunteer group. + +## Param + +The ID of the event volunteer group being deleted. + +## Returns + +The ID of the deleted event volunteer group. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/UPDATE_VOLUNTEER_GROUP.md b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/UPDATE_VOLUNTEER_GROUP.md new file mode 100644 index 0000000000..315d2489df --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/UPDATE_VOLUNTEER_GROUP.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_VOLUNTEER\_GROUP + +> `const` **UPDATE\_VOLUNTEER\_GROUP**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventVolunteerMutation.ts:64](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventVolunteerMutation.ts#L64) + +GraphQL mutation to update an event volunteer group. + +## Param + +The ID of the event volunteer group being updated. + +## Param + +The data required to update an event volunteer group. + +## Returns + +The ID of the updated event volunteer group. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/UPDATE_VOLUNTEER_MEMBERSHIP.md b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/UPDATE_VOLUNTEER_MEMBERSHIP.md new file mode 100644 index 0000000000..db4429efb7 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/EventVolunteerMutation/variables/UPDATE_VOLUNTEER_MEMBERSHIP.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_VOLUNTEER\_MEMBERSHIP + +> `const` **UPDATE\_VOLUNTEER\_MEMBERSHIP**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/EventVolunteerMutation.ts:106](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/EventVolunteerMutation.ts#L106) + +GraphQL mutation to update an event volunteer group. + +## Param + +The ID of the event volunteer group being updated. + +## Param + +The data required to update an event volunteer group. + +## Returns + +The ID of the updated event volunteer group. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/FundMutation/variables/CREATE_FUND_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/FundMutation/variables/CREATE_FUND_MUTATION.md new file mode 100644 index 0000000000..12e0e0e4aa --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/FundMutation/variables/CREATE_FUND_MUTATION.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_FUND\_MUTATION + +> `const` **CREATE\_FUND\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/FundMutation.ts:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/FundMutation.ts#L14) + +GraphQL mutation to create a new fund. + +## Param + +The name of the fund. + +## Param + +The organization ID the fund is associated with. + +## Param + +The reference number of the fund. + +## Param + +Whether the fund is tax deductible. + +## Param + +Whether the fund is archived. + +## Param + +Whether the fund is the default. + +## Returns + +The ID of the created fund. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/FundMutation/variables/UPDATE_FUND_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/FundMutation/variables/UPDATE_FUND_MUTATION.md new file mode 100644 index 0000000000..361bc6a391 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/FundMutation/variables/UPDATE_FUND_MUTATION.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_FUND\_MUTATION + +> `const` **UPDATE\_FUND\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/FundMutation.ts:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/FundMutation.ts#L49) + +GraphQL mutation to update a fund. + +## Param + +The ID of the fund being updated. + +## Param + +The name of the fund. + +## Param + +The reference number of the fund. + +## Param + +Whether the fund is tax deductible. + +## Param + +Whether the fund is archived. + +## Param + +Whether the fund is the default. + +## Returns + +The ID of the updated fund. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/ADD_CUSTOM_FIELD.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/ADD_CUSTOM_FIELD.md new file mode 100644 index 0000000000..cf23f703d1 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/ADD_CUSTOM_FIELD.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_CUSTOM\_FIELD + +> `const` **ADD\_CUSTOM\_FIELD**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:237](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L237) + +GraphQL mutation to add a custom field to an organization. + +## Param + +The ID of the organization where the custom field is being added. + +## Param + +The type of the custom field (e.g., String, Number). + +## Param + +The name of the custom field. + +## Returns + +The added organization custom field object. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/ADD_USER_TO_GROUP_CHAT.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/ADD_USER_TO_GROUP_CHAT.md new file mode 100644 index 0000000000..d9e83bd1da --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/ADD_USER_TO_GROUP_CHAT.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_USER\_TO\_GROUP\_CHAT + +> `const` **ADD\_USER\_TO\_GROUP\_CHAT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:82](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L82) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CANCEL_MEMBERSHIP_REQUEST.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CANCEL_MEMBERSHIP_REQUEST.md new file mode 100644 index 0000000000..beb12afca0 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CANCEL_MEMBERSHIP_REQUEST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CANCEL\_MEMBERSHIP\_REQUEST + +> `const` **CANCEL\_MEMBERSHIP\_REQUEST**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:295](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L295) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CREATE_CHAT.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CREATE_CHAT.md new file mode 100644 index 0000000000..8c91a805e2 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CREATE_CHAT.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_CHAT + +> `const` **CREATE\_CHAT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L60) + +GraphQL mutation to create a chat between users in an organization. + +## Param + +An array of user IDs participating in the direct chat. + +## Param + +The ID of the organization where the direct chat is created. + +## Returns + +The created direct chat object. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CREATE_SAMPLE_ORGANIZATION_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CREATE_SAMPLE_ORGANIZATION_MUTATION.md new file mode 100644 index 0000000000..4598b2a404 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/CREATE_SAMPLE_ORGANIZATION_MUTATION.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_SAMPLE\_ORGANIZATION\_MUTATION + +> `const` **CREATE\_SAMPLE\_ORGANIZATION\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L34) + +GraphQL mutation to create a sample organization. + +## Returns + +The created sample organization object. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/EDIT_CHAT_MESSAGE.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/EDIT_CHAT_MESSAGE.md new file mode 100644 index 0000000000..8348ccccb1 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/EDIT_CHAT_MESSAGE.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EDIT\_CHAT\_MESSAGE + +> `const` **EDIT\_CHAT\_MESSAGE**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:106](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L106) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/JOIN_PUBLIC_ORGANIZATION.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/JOIN_PUBLIC_ORGANIZATION.md new file mode 100644 index 0000000000..e3e8aa1cf5 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/JOIN_PUBLIC_ORGANIZATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: JOIN\_PUBLIC\_ORGANIZATION + +> `const` **JOIN\_PUBLIC\_ORGANIZATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:287](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L287) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/MARK_CHAT_MESSAGES_AS_READ.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/MARK_CHAT_MESSAGES_AS_READ.md new file mode 100644 index 0000000000..824d190918 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/MARK_CHAT_MESSAGES_AS_READ.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MARK\_CHAT\_MESSAGES\_AS\_READ + +> `const` **MARK\_CHAT\_MESSAGES\_AS\_READ**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:90](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L90) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/MESSAGE_SENT_TO_CHAT.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/MESSAGE_SENT_TO_CHAT.md new file mode 100644 index 0000000000..0c2d9db76d --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/MESSAGE_SENT_TO_CHAT.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MESSAGE\_SENT\_TO\_CHAT + +> `const` **MESSAGE\_SENT\_TO\_CHAT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:164](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L164) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/PLUGIN_SUBSCRIPTION.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/PLUGIN_SUBSCRIPTION.md new file mode 100644 index 0000000000..4559827dd9 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/PLUGIN_SUBSCRIPTION.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: PLUGIN\_SUBSCRIPTION + +> `const` **PLUGIN\_SUBSCRIPTION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:202](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L202) + +GraphQL subscription to listen for updates on plugins. + +## Returns + +An object containing information about the updated plugin. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/REMOVE_CUSTOM_FIELD.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/REMOVE_CUSTOM_FIELD.md new file mode 100644 index 0000000000..5d0e685dba --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/REMOVE_CUSTOM_FIELD.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: REMOVE\_CUSTOM\_FIELD + +> `const` **REMOVE\_CUSTOM\_FIELD**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:260](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L260) + +GraphQL mutation to remove a custom field from an organization. + +## Param + +The ID of the organization from which the custom field is being removed. + +## Param + +The ID of the custom field to be removed. + +## Returns + +The removed organization custom field object. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/REMOVE_SAMPLE_ORGANIZATION_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/REMOVE_SAMPLE_ORGANIZATION_MUTATION.md new file mode 100644 index 0000000000..edf58357bb --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/REMOVE_SAMPLE_ORGANIZATION_MUTATION.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: REMOVE\_SAMPLE\_ORGANIZATION\_MUTATION + +> `const` **REMOVE\_SAMPLE\_ORGANIZATION\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L46) + +GraphQL mutation to remove a sample organization. + +## Returns + +The removed sample organization object. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/SEND_MEMBERSHIP_REQUEST.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/SEND_MEMBERSHIP_REQUEST.md new file mode 100644 index 0000000000..060320382e --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/SEND_MEMBERSHIP_REQUEST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: SEND\_MEMBERSHIP\_REQUEST + +> `const` **SEND\_MEMBERSHIP\_REQUEST**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:272](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L272) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/SEND_MESSAGE_TO_CHAT.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/SEND_MESSAGE_TO_CHAT.md new file mode 100644 index 0000000000..1d84679224 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/SEND_MESSAGE_TO_CHAT.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: SEND\_MESSAGE\_TO\_CHAT + +> `const` **SEND\_MESSAGE\_TO\_CHAT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:126](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L126) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/TOGGLE_PINNED_POST.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/TOGGLE_PINNED_POST.md new file mode 100644 index 0000000000..83a9d3af72 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/TOGGLE_PINNED_POST.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: TOGGLE\_PINNED\_POST + +> `const` **TOGGLE\_PINNED\_POST**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:220](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L220) + +GraphQL mutation to toggle the pinned status of a post. + +## Param + +The ID of the post to be toggled. + +## Returns + +The updated post object with the new pinned status. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/UPDATE_CHAT.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/UPDATE_CHAT.md new file mode 100644 index 0000000000..c83f996500 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/UPDATE_CHAT.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_CHAT + +> `const` **UPDATE\_CHAT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:98](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L98) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/UPDATE_USER_ROLE_IN_ORG_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/UPDATE_USER_ROLE_IN_ORG_MUTATION.md new file mode 100644 index 0000000000..5b78307890 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/OrganizationMutations/variables/UPDATE_USER_ROLE_IN_ORG_MUTATION.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_USER\_ROLE\_IN\_ORG\_MUTATION + +> `const` **UPDATE\_USER\_ROLE\_IN\_ORG\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/OrganizationMutations.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/OrganizationMutations.ts#L12) + +GraphQL mutation to update the role of a user in an organization. + +## Param + +The ID of the organization in which the user's role is being updated. + +## Param + +The ID of the user whose role is being updated. + +## Param + +The new role to be assigned to the user in the organization. + +## Returns + +The updated user object with the new role in the organization. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/CREATE_PlEDGE.md b/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/CREATE_PlEDGE.md new file mode 100644 index 0000000000..6237e1b592 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/CREATE_PlEDGE.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_PlEDGE + +> `const` **CREATE\_PlEDGE**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/PledgeMutation.ts:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/PledgeMutation.ts#L14) + +GraphQL mutation to create a pledge. + +## Param + +The ID of the campaign the pledge is associated with. + +## Param + +The amount of the pledge. + +## Param + +The currency of the pledge. + +## Param + +The start date of the pledge. + +## Param + +The end date of the pledge. + +## Param + +The IDs of the users associated with the pledge. + +## Returns + +The ID of the created pledge. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/DELETE_PLEDGE.md b/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/DELETE_PLEDGE.md new file mode 100644 index 0000000000..01a358cf20 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/DELETE_PLEDGE.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_PLEDGE + +> `const` **DELETE\_PLEDGE**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/PledgeMutation.ts:78](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/PledgeMutation.ts#L78) + +GraphQL mutation to delete a pledge. + +## Param + +The ID of the pledge being deleted. + +## Returns + +Whether the pledge was successfully deleted. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/UPDATE_PLEDGE.md b/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/UPDATE_PLEDGE.md new file mode 100644 index 0000000000..a3752c425c --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/PledgeMutation/variables/UPDATE_PLEDGE.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_PLEDGE + +> `const` **UPDATE\_PLEDGE**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/PledgeMutation.ts:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/PledgeMutation.ts#L48) + +GraphQL mutation to update a pledge. + +## Param + +The ID of the pledge being updated. + +## Param + +The amount of the pledge. + +## Param + +The currency of the pledge. + +## Param + +The start date of the pledge. + +## Param + +The end date of the pledge. + +## Returns + +The ID of the updated pledge. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/ADD_PEOPLE_TO_TAG.md b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/ADD_PEOPLE_TO_TAG.md new file mode 100644 index 0000000000..0d4105b6a7 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/ADD_PEOPLE_TO_TAG.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_PEOPLE\_TO\_TAG + +> `const` **ADD\_PEOPLE\_TO\_TAG**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/TagMutations.ts:83](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/TagMutations.ts#L83) + +GraphQL mutation to add people to tag. + +## Param + +Id of the tag to be assigned. + +## Param + +Ids of the users to assign to. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/ASSIGN_TO_TAGS.md b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/ASSIGN_TO_TAGS.md new file mode 100644 index 0000000000..48f9a59e19 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/ASSIGN_TO_TAGS.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: ASSIGN\_TO\_TAGS + +> `const` **ASSIGN\_TO\_TAGS**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/TagMutations.ts:98](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/TagMutations.ts#L98) + +GraphQL mutation to assign people to multiple tags. + +## Param + +Id of the current tag. + +## Param + +Ids of the selected tags to be assined. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/CREATE_USER_TAG.md b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/CREATE_USER_TAG.md new file mode 100644 index 0000000000..8ae1664825 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/CREATE_USER_TAG.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_USER\_TAG + +> `const` **CREATE\_USER\_TAG**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/TagMutations.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/TagMutations.ts#L12) + +GraphQL mutation to create a user tag. + +## Param + +Name of the tag. + +## Param + +Color of the tag. + +## Param + +Id of the parent tag. + +## Param + +Organization to which the tag belongs. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/REMOVE_FROM_TAGS.md b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/REMOVE_FROM_TAGS.md new file mode 100644 index 0000000000..3b2803276c --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/REMOVE_FROM_TAGS.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: REMOVE\_FROM\_TAGS + +> `const` **REMOVE\_FROM\_TAGS**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/TagMutations.ts:115](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/TagMutations.ts#L115) + +GraphQL mutation to remove people from multiple tags. + +## Param + +Id of the current tag. + +## Param + +Ids of the selected tags to be removed from. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/REMOVE_USER_TAG.md b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/REMOVE_USER_TAG.md new file mode 100644 index 0000000000..66cabe5c4e --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/REMOVE_USER_TAG.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: REMOVE\_USER\_TAG + +> `const` **REMOVE\_USER\_TAG**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/TagMutations.ts:68](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/TagMutations.ts#L68) + +GraphQL mutation to remove a user tag. + +## Param + +Id of the tag to be removed . diff --git a/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/UNASSIGN_USER_TAG.md b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/UNASSIGN_USER_TAG.md new file mode 100644 index 0000000000..545e6b2692 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/UNASSIGN_USER_TAG.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: UNASSIGN\_USER\_TAG + +> `const` **UNASSIGN\_USER\_TAG**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/TagMutations.ts:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/TagMutations.ts#L39) + +GraphQL mutation to unsssign a user tag from a user. + +## Param + +Id the tag. + +## Param + +Id of the user to be unassigned. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/UPDATE_USER_TAG.md b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/UPDATE_USER_TAG.md new file mode 100644 index 0000000000..4abf882b77 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/TagMutations/variables/UPDATE_USER_TAG.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_USER\_TAG + +> `const` **UPDATE\_USER\_TAG**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/TagMutations.ts:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/TagMutations.ts#L54) + +GraphQL mutation to update a user tag. + +## Param + +Id the tag. + +## Param + +Updated name of the tag. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/CREATE_VENUE_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/CREATE_VENUE_MUTATION.md new file mode 100644 index 0000000000..60060aff33 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/CREATE_VENUE_MUTATION.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_VENUE\_MUTATION + +> `const` **CREATE\_VENUE\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/VenueMutations.ts:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/VenueMutations.ts#L13) + +GraphQL mutation to create a venue. + +## Param + +Name of the venue. + +## Param + +Ineteger representing capacity of venue. + +## Param + +Description of the venue. + +## Param + +Image file for the venue. + +## Param + +Organization to which the ActionItemCategory belongs. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/DELETE_VENUE_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/DELETE_VENUE_MUTATION.md new file mode 100644 index 0000000000..05c2425f5a --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/DELETE_VENUE_MUTATION.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_VENUE\_MUTATION + +> `const` **DELETE\_VENUE\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/VenueMutations.ts:73](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/VenueMutations.ts#L73) + +GraphQL mutation to delete a venue. + +## Param + +The id of the Venue to be deleted. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/UPDATE_VENUE_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/UPDATE_VENUE_MUTATION.md new file mode 100644 index 0000000000..b297c97f11 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/VenueMutations/variables/UPDATE_VENUE_MUTATION.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_VENUE\_MUTATION + +> `const` **UPDATE\_VENUE\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/VenueMutations.ts:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/VenueMutations.ts#L45) + +GraphQL mutation to update a venue. + +## Param + +The id of the Venue to be updated. + +## Param + +Ineteger representing capacity of venue. + +## Param + +Description of the venue. + +## Param + +Image file for the venue. + +## Param + +Name of the venue. diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ACCEPT_ORGANIZATION_REQUEST_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ACCEPT_ORGANIZATION_REQUEST_MUTATION.md new file mode 100644 index 0000000000..d4155ec836 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ACCEPT_ORGANIZATION_REQUEST_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ACCEPT\_ORGANIZATION\_REQUEST\_MUTATION + +> `const` **ACCEPT\_ORGANIZATION\_REQUEST\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L33) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADDRESS_DETAILS_FRAGMENT.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADDRESS_DETAILS_FRAGMENT.md new file mode 100644 index 0000000000..3843d13bcd --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADDRESS_DETAILS_FRAGMENT.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ADDRESS\_DETAILS\_FRAGMENT + +> `const` **ADDRESS\_DETAILS\_FRAGMENT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:70](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L70) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_ADMIN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_ADMIN_MUTATION.md new file mode 100644 index 0000000000..083e3de63d --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_ADMIN_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_ADMIN\_MUTATION + +> `const` **ADD\_ADMIN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:351](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L351) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_ADVERTISEMENT_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_ADVERTISEMENT_MUTATION.md new file mode 100644 index 0000000000..ed293629a9 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_ADVERTISEMENT_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_ADVERTISEMENT\_MUTATION + +> `const` **ADD\_ADVERTISEMENT\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:486](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L486) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_MEMBER_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_MEMBER_MUTATION.md new file mode 100644 index 0000000000..b4087e790a --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_MEMBER_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_MEMBER\_MUTATION + +> `const` **ADD\_MEMBER\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:361](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L361) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_PLUGIN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_PLUGIN_MUTATION.md new file mode 100644 index 0000000000..e60fc3d095 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/ADD_PLUGIN_MUTATION.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_PLUGIN\_MUTATION + +> `const` **ADD\_PLUGIN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:468](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L468) + +## Remarks + +used `createPlugin` to add new Plugin in database diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/BLOCK_USER_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/BLOCK_USER_MUTATION.md new file mode 100644 index 0000000000..9f44a5375c --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/BLOCK_USER_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: BLOCK\_USER\_MUTATION + +> `const` **BLOCK\_USER\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L13) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_EVENT_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_EVENT_MUTATION.md new file mode 100644 index 0000000000..6be8bf0750 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_EVENT_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_EVENT\_MUTATION + +> `const` **CREATE\_EVENT\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:265](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L265) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_ORGANIZATION_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_ORGANIZATION_MUTATION.md new file mode 100644 index 0000000000..5ec9601ca2 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_ORGANIZATION_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_ORGANIZATION\_MUTATION + +> `const` **CREATE\_ORGANIZATION\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:227](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L227) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_POST_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_POST_MUTATION.md new file mode 100644 index 0000000000..d9f159e0f9 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/CREATE_POST_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_POST\_MUTATION + +> `const` **CREATE\_POST\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:371](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L371) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_ADVERTISEMENT_BY_ID.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_ADVERTISEMENT_BY_ID.md new file mode 100644 index 0000000000..cb4dd14d0e --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_ADVERTISEMENT_BY_ID.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_ADVERTISEMENT\_BY\_ID + +> `const` **DELETE\_ADVERTISEMENT\_BY\_ID**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:536](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L536) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_EVENT_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_EVENT_MUTATION.md new file mode 100644 index 0000000000..a66eb9ddac --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_EVENT_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_EVENT\_MUTATION + +> `const` **DELETE\_EVENT\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:321](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L321) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_ORGANIZATION_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_ORGANIZATION_MUTATION.md new file mode 100644 index 0000000000..5ffd5c21fc --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_ORGANIZATION_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_ORGANIZATION\_MUTATION + +> `const` **DELETE\_ORGANIZATION\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:253](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L253) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_POST_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_POST_MUTATION.md new file mode 100644 index 0000000000..aeff2c39a4 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DELETE_POST_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: DELETE\_POST\_MUTATION + +> `const` **DELETE\_POST\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:397](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L397) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DONATE_TO_ORGANIZATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DONATE_TO_ORGANIZATION.md new file mode 100644 index 0000000000..cdb5361b35 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/DONATE_TO_ORGANIZATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: DONATE\_TO\_ORGANIZATION + +> `const` **DONATE\_TO\_ORGANIZATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:663](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L663) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/FORGOT_PASSWORD_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/FORGOT_PASSWORD_MUTATION.md new file mode 100644 index 0000000000..52d64c0298 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/FORGOT_PASSWORD_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: FORGOT\_PASSWORD\_MUTATION + +> `const` **FORGOT\_PASSWORD\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:413](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L413) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/GENERATE_OTP_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/GENERATE_OTP_MUTATION.md new file mode 100644 index 0000000000..cf77ebe1b1 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/GENERATE_OTP_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: GENERATE\_OTP\_MUTATION + +> `const` **GENERATE\_OTP\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:405](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L405) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/LIKE_POST.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/LIKE_POST.md new file mode 100644 index 0000000000..5eb02eeeff --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/LIKE_POST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: LIKE\_POST + +> `const` **LIKE\_POST**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:621](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L621) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/LOGIN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/LOGIN_MUTATION.md new file mode 100644 index 0000000000..78c780b315 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/LOGIN_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: LOGIN\_MUTATION + +> `const` **LOGIN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:175](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L175) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/RECAPTCHA_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/RECAPTCHA_MUTATION.md new file mode 100644 index 0000000000..dd8d6b25a8 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/RECAPTCHA_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: RECAPTCHA\_MUTATION + +> `const` **RECAPTCHA\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:219](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L219) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REFRESH_TOKEN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REFRESH_TOKEN_MUTATION.md new file mode 100644 index 0000000000..0b51e6631f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REFRESH_TOKEN_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REFRESH\_TOKEN\_MUTATION + +> `const` **REFRESH\_TOKEN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:200](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L200) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REGISTER_EVENT.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REGISTER_EVENT.md new file mode 100644 index 0000000000..976bd18f9c --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REGISTER_EVENT.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REGISTER\_EVENT + +> `const` **REGISTER\_EVENT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:637](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L637) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REJECT_ORGANIZATION_REQUEST_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REJECT_ORGANIZATION_REQUEST_MUTATION.md new file mode 100644 index 0000000000..82c5ab7f82 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REJECT_ORGANIZATION_REQUEST_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REJECT\_ORGANIZATION\_REQUEST\_MUTATION + +> `const` **REJECT\_ORGANIZATION\_REQUEST\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L23) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REMOVE_ADMIN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REMOVE_ADMIN_MUTATION.md new file mode 100644 index 0000000000..460547fa64 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REMOVE_ADMIN_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REMOVE\_ADMIN\_MUTATION + +> `const` **REMOVE\_ADMIN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:333](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L333) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REMOVE_MEMBER_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REMOVE_MEMBER_MUTATION.md new file mode 100644 index 0000000000..5a27bc8fc1 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REMOVE_MEMBER_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REMOVE\_MEMBER\_MUTATION + +> `const` **REMOVE\_MEMBER\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:342](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L342) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/RESET_COMMUNITY.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/RESET_COMMUNITY.md new file mode 100644 index 0000000000..2aaa83a80d --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/RESET_COMMUNITY.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: RESET\_COMMUNITY + +> `const` **RESET\_COMMUNITY**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:657](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L657) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REVOKE_REFRESH_TOKEN.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REVOKE_REFRESH_TOKEN.md new file mode 100644 index 0000000000..5afdb06c14 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/REVOKE_REFRESH_TOKEN.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REVOKE\_REFRESH\_TOKEN + +> `const` **REVOKE\_REFRESH\_TOKEN**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:211](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L211) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/SIGNUP_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/SIGNUP_MUTATION.md new file mode 100644 index 0000000000..b06ad6a101 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/SIGNUP_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: SIGNUP\_MUTATION + +> `const` **SIGNUP\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:147](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L147) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UNBLOCK_USER_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UNBLOCK_USER_MUTATION.md new file mode 100644 index 0000000000..d76db5990e --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UNBLOCK_USER_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UNBLOCK\_USER\_MUTATION + +> `const` **UNBLOCK\_USER\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L3) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UNLIKE_POST.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UNLIKE_POST.md new file mode 100644 index 0000000000..19bcfd95f6 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UNLIKE_POST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UNLIKE\_POST + +> `const` **UNLIKE\_POST**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:629](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L629) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ADVERTISEMENT_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ADVERTISEMENT_MUTATION.md new file mode 100644 index 0000000000..972d6a7f1f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ADVERTISEMENT_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_ADVERTISEMENT\_MUTATION + +> `const` **UPDATE\_ADVERTISEMENT\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:511](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L511) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_COMMUNITY.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_COMMUNITY.md new file mode 100644 index 0000000000..e8231bb6f2 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_COMMUNITY.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_COMMUNITY + +> `const` **UPDATE\_COMMUNITY**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:645](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L645) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_EVENT_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_EVENT_MUTATION.md new file mode 100644 index 0000000000..d4539390a2 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_EVENT_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_EVENT\_MUTATION + +> `const` **UPDATE\_EVENT\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:567](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L567) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_INSTALL_STATUS_PLUGIN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_INSTALL_STATUS_PLUGIN_MUTATION.md new file mode 100644 index 0000000000..f82633e1be --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_INSTALL_STATUS_PLUGIN_MUTATION.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_INSTALL\_STATUS\_PLUGIN\_MUTATION + +> `const` **UPDATE\_INSTALL\_STATUS\_PLUGIN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:434](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L434) + +## Remarks + +used to toggle `installStatus` (boolean value) of a Plugin diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ORGANIZATION_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ORGANIZATION_MUTATION.md new file mode 100644 index 0000000000..31e023b9f2 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ORGANIZATION_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_ORGANIZATION\_MUTATION + +> `const` **UPDATE\_ORGANIZATION\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L43) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ORG_STATUS_PLUGIN_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ORG_STATUS_PLUGIN_MUTATION.md new file mode 100644 index 0000000000..8a01473093 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_ORG_STATUS_PLUGIN_MUTATION.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_ORG\_STATUS\_PLUGIN\_MUTATION + +> `const` **UPDATE\_ORG\_STATUS\_PLUGIN\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:451](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L451) + +## Remarks + +used `updatePluginStatus`to add or remove the current Organization the in the plugin list `uninstalledOrgs` diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_POST_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_POST_MUTATION.md new file mode 100644 index 0000000000..3cb45932d7 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_POST_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_POST\_MUTATION + +> `const` **UPDATE\_POST\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:545](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L545) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_SESSION_TIMEOUT.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_SESSION_TIMEOUT.md new file mode 100644 index 0000000000..4efa3bdc4a --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_SESSION_TIMEOUT.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_SESSION\_TIMEOUT + +> `const` **UPDATE\_SESSION\_TIMEOUT**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:651](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L651) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_USER_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_USER_MUTATION.md new file mode 100644 index 0000000000..f6a4bd4cdd --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_USER_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_USER\_MUTATION + +> `const` **UPDATE\_USER\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:85](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L85) diff --git a/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_USER_PASSWORD_MUTATION.md b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_USER_PASSWORD_MUTATION.md new file mode 100644 index 0000000000..b511d94461 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Mutations/mutations/variables/UPDATE_USER_PASSWORD_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_USER\_PASSWORD\_MUTATION + +> `const` **UPDATE\_USER\_PASSWORD\_MUTATION**: `DocumentNode` + +Defined in: [src/GraphQl/Mutations/mutations.ts:125](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Mutations/mutations.ts#L125) diff --git a/docs/docs/auto-docs/GraphQl/Queries/ActionItemCategoryQueries/variables/ACTION_ITEM_CATEGORY_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/ActionItemCategoryQueries/variables/ACTION_ITEM_CATEGORY_LIST.md new file mode 100644 index 0000000000..a8e525e1ad --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/ActionItemCategoryQueries/variables/ACTION_ITEM_CATEGORY_LIST.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: ACTION\_ITEM\_CATEGORY\_LIST + +> `const` **ACTION\_ITEM\_CATEGORY\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/ActionItemCategoryQueries.ts:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/ActionItemCategoryQueries.ts#L10) + +GraphQL query to retrieve action item categories by organization. + +## Param + +The ID of the organization for which action item categories are being retrieved. + +## Returns + +The list of action item categories associated with the organization. diff --git a/docs/docs/auto-docs/GraphQl/Queries/ActionItemQueries/variables/ACTION_ITEMS_BY_USER.md b/docs/docs/auto-docs/GraphQl/Queries/ActionItemQueries/variables/ACTION_ITEMS_BY_USER.md new file mode 100644 index 0000000000..6596a8dd48 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/ActionItemQueries/variables/ACTION_ITEMS_BY_USER.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ACTION\_ITEMS\_BY\_USER + +> `const` **ACTION\_ITEMS\_BY\_USER**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/ActionItemQueries.ts:78](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/ActionItemQueries.ts#L78) diff --git a/docs/docs/auto-docs/GraphQl/Queries/ActionItemQueries/variables/ACTION_ITEM_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/ActionItemQueries/variables/ACTION_ITEM_LIST.md new file mode 100644 index 0000000000..59eb096538 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/ActionItemQueries/variables/ACTION_ITEM_LIST.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: ACTION\_ITEM\_LIST + +> `const` **ACTION\_ITEM\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/ActionItemQueries.ts:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/ActionItemQueries.ts#L14) + +GraphQL query to retrieve action item categories by organization. + +## Param + +The ID of the organization for which action item categories are being retrieved. + +## Param + +Sort action items Latest/Earliest first. + +## Param + +Filter action items belonging to an action item category. + +## Param + +Filter action items belonging to an event. + +## Param + +Filter all the completed action items. + +## Returns + +The list of action item categories associated with the organization. diff --git a/docs/docs/auto-docs/GraphQl/Queries/AgendaCategoryQueries/variables/AGENDA_ITEM_CATEGORY_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/AgendaCategoryQueries/variables/AGENDA_ITEM_CATEGORY_LIST.md new file mode 100644 index 0000000000..1c41b763c3 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/AgendaCategoryQueries/variables/AGENDA_ITEM_CATEGORY_LIST.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: AGENDA\_ITEM\_CATEGORY\_LIST + +> `const` **AGENDA\_ITEM\_CATEGORY\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/AgendaCategoryQueries.ts:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/AgendaCategoryQueries.ts#L10) + +GraphQL query to retrieve agenda category by id. + +## Param + +The ID of the category which is being retrieved. + +## Returns + +Agenda category associated with the id. diff --git a/docs/docs/auto-docs/GraphQl/Queries/AgendaItemQueries/variables/AgendaItemByEvent.md b/docs/docs/auto-docs/GraphQl/Queries/AgendaItemQueries/variables/AgendaItemByEvent.md new file mode 100644 index 0000000000..bd3fc4d6cf --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/AgendaItemQueries/variables/AgendaItemByEvent.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: AgendaItemByEvent + +> `const` **AgendaItemByEvent**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/AgendaItemQueries.ts:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/AgendaItemQueries.ts#L39) diff --git a/docs/docs/auto-docs/GraphQl/Queries/AgendaItemQueries/variables/AgendaItemByOrganization.md b/docs/docs/auto-docs/GraphQl/Queries/AgendaItemQueries/variables/AgendaItemByOrganization.md new file mode 100644 index 0000000000..ebb3025965 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/AgendaItemQueries/variables/AgendaItemByOrganization.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: AgendaItemByOrganization + +> `const` **AgendaItemByOrganization**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/AgendaItemQueries.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/AgendaItemQueries.ts#L3) diff --git a/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/EVENT_VOLUNTEER_GROUP_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/EVENT_VOLUNTEER_GROUP_LIST.md new file mode 100644 index 0000000000..5ba899d80d --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/EVENT_VOLUNTEER_GROUP_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EVENT\_VOLUNTEER\_GROUP\_LIST + +> `const` **EVENT\_VOLUNTEER\_GROUP\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/EventVolunteerQueries.ts:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/EventVolunteerQueries.ts#L41) diff --git a/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/EVENT_VOLUNTEER_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/EVENT_VOLUNTEER_LIST.md new file mode 100644 index 0000000000..d3158faaab --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/EVENT_VOLUNTEER_LIST.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: EVENT\_VOLUNTEER\_LIST + +> `const` **EVENT\_VOLUNTEER\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/EventVolunteerQueries.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/EventVolunteerQueries.ts#L12) + +GraphQL query to retrieve event volunteers. + +## Param + +The filter to apply to the query. + +## Param + +The order in which to return the results. + +## Returns + +The list of event volunteers. diff --git a/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/USER_VOLUNTEER_MEMBERSHIP.md b/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/USER_VOLUNTEER_MEMBERSHIP.md new file mode 100644 index 0000000000..2193ac5684 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/USER_VOLUNTEER_MEMBERSHIP.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_VOLUNTEER\_MEMBERSHIP + +> `const` **USER\_VOLUNTEER\_MEMBERSHIP**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/EventVolunteerQueries.ts:89](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/EventVolunteerQueries.ts#L89) diff --git a/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/VOLUNTEER_RANKING.md b/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/VOLUNTEER_RANKING.md new file mode 100644 index 0000000000..83a9630c61 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/EventVolunteerQueries/variables/VOLUNTEER_RANKING.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: VOLUNTEER\_RANKING + +> `const` **VOLUNTEER\_RANKING**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/EventVolunteerQueries.ts:120](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/EventVolunteerQueries.ts#L120) diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_ADMINS_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_ADMINS_LIST.md new file mode 100644 index 0000000000..d8931808b7 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_ADMINS_LIST.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_ADMINS\_LIST + +> `const` **ORGANIZATION\_ADMINS\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:314](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L314) + +GraphQL query to retrieve the list of admins for a specific organization. + +## Param + +The ID of the organization for which admins are being retrieved. + +## Returns + +The list of admins associated with the organization. diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_ADVERTISEMENT_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_ADVERTISEMENT_LIST.md new file mode 100644 index 0000000000..5cf6bad715 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_ADVERTISEMENT_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_ADVERTISEMENT\_LIST + +> `const` **ORGANIZATION\_ADVERTISEMENT\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:134](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L134) diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_FUNDS.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_FUNDS.md new file mode 100644 index 0000000000..f4eb197586 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_FUNDS.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_FUNDS + +> `const` **ORGANIZATION\_FUNDS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:335](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L335) + +GraphQL query to retrieve the list of members for a specific organization. + +## Param + +The ID of the organization for which members are being retrieved. + +## Returns + +The list of members associated with the organization. diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_POST_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_POST_LIST.md new file mode 100644 index 0000000000..ed9e5d4686 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_POST_LIST.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_POST\_LIST + +> `const` **ORGANIZATION\_POST\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L15) + +GraphQL query to retrieve the list of organizations. + +## Param + +Optional. Number of organizations to retrieve in the first batch. + +## Param + +Optional. Number of organizations to skip before starting to collect the result set. + +## Param + +Optional. Filter organizations by a specified string. + +## Param + +Optional. The ID of a specific organization to retrieve. + +## Returns + +The list of organizations based on the applied filters. diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_USER_TAGS_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_USER_TAGS_LIST.md new file mode 100644 index 0000000000..31b37c2145 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/ORGANIZATION_USER_TAGS_LIST.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_USER\_TAGS\_LIST + +> `const` **ORGANIZATION\_USER\_TAGS\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:83](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L83) + +GraphQL query to retrieve the list of user tags belonging to an organization. + +## Param + +ID of the organization. + +## Param + +Number of tags to retrieve "after" (if provided) a certain tag. + +## Param + +Id of the last tag on the current page. + +## Param + +Number of tags to retrieve "before" (if provided) a certain tag. + +## Param + +Id of the first tag on the current page. + +## Returns + +The list of organizations based on the applied filters. diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_CREATED_ORGANIZATIONS.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_CREATED_ORGANIZATIONS.md new file mode 100644 index 0000000000..915a0f255b --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_CREATED_ORGANIZATIONS.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_CREATED\_ORGANIZATIONS + +> `const` **USER\_CREATED\_ORGANIZATIONS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:276](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L276) + +GraphQL query to retrieve organizations created by a user. + +## Param + +The ID of the user for which created organizations are being retrieved. + +## Returns + +The list of organizations created by the user. diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_JOINED_ORGANIZATIONS.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_JOINED_ORGANIZATIONS.md new file mode 100644 index 0000000000..d4a23f33a5 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_JOINED_ORGANIZATIONS.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_JOINED\_ORGANIZATIONS + +> `const` **USER\_JOINED\_ORGANIZATIONS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:238](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L238) + +GraphQL query to retrieve organizations joined by a user. + +## Param + +The ID of the user for which joined organizations are being retrieved. + +## Returns + +The list of organizations joined by the user. diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_ORGANIZATION_CONNECTION.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_ORGANIZATION_CONNECTION.md new file mode 100644 index 0000000000..28a1e325c6 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/USER_ORGANIZATION_CONNECTION.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_ORGANIZATION\_CONNECTION + +> `const` **USER\_ORGANIZATION\_CONNECTION**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:182](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L182) + +GraphQL query to retrieve organizations based on user connection. + +## Param + +Optional. Number of organizations to retrieve in the first batch. + +## Param + +Optional. Number of organizations to skip before starting to collect the result set. + +## Param + +Optional. Filter organizations by a specified string. + +## Param + +Optional. The ID of a specific organization to retrieve. + +## Returns + +The list of organizations based on the applied filters. diff --git a/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/VENUE_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/VENUE_LIST.md new file mode 100644 index 0000000000..d47928373d --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/OrganizationQueries/variables/VENUE_LIST.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: VENUE\_LIST + +> `const` **VENUE\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/OrganizationQueries.ts:357](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/OrganizationQueries.ts#L357) + +GraphQL query to retrieve the list of venues for a specific organization. + +## Param + +The ID of the organization for which venues are being retrieved. + +## Returns + +The list of venues associated with the organization. diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ADVERTISEMENTS_GET.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ADVERTISEMENTS_GET.md new file mode 100644 index 0000000000..5c072ee77f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ADVERTISEMENTS_GET.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: ADVERTISEMENTS\_GET + +> `const` **ADVERTISEMENTS\_GET**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L27) + +GraphQL query to retrieve a list of advertisements. + +## Returns + +The list of advertisements with details such as ID, name, type, organization ID, link, start date, and end date. diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/CHATS_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/CHATS_LIST.md new file mode 100644 index 0000000000..2f67aaa1f1 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/CHATS_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CHATS\_LIST + +> `const` **CHATS\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:304](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L304) diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/CHAT_BY_ID.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/CHAT_BY_ID.md new file mode 100644 index 0000000000..8b008f7d90 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/CHAT_BY_ID.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: CHAT\_BY\_ID + +> `const` **CHAT\_BY\_ID**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:156](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L156) + +GraphQL query to retrieve a list of chats based on user ID. + +## Param + +The ID of the user for which chats are being retrieved. + +## Returns + +The list of chats associated with the user, including details such as ID, creator, messages, organization, and participating users. diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/GROUP_CHAT_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/GROUP_CHAT_LIST.md new file mode 100644 index 0000000000..dc33cfb69f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/GROUP_CHAT_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: GROUP\_CHAT\_LIST + +> `const` **GROUP\_CHAT\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:210](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L210) diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/IS_SAMPLE_ORGANIZATION_QUERY.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/IS_SAMPLE_ORGANIZATION_QUERY.md new file mode 100644 index 0000000000..308c42db16 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/IS_SAMPLE_ORGANIZATION_QUERY.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: IS\_SAMPLE\_ORGANIZATION\_QUERY + +> `const` **IS\_SAMPLE\_ORGANIZATION\_QUERY**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:366](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L366) + +GraphQL query to check if an organization is a sample organization. + +## Param + +The ID of the organization being checked. + +## Returns + +A boolean indicating whether the organization is a sample organization. diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ORGANIZATION_CUSTOM_FIELDS.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ORGANIZATION_CUSTOM_FIELDS.md new file mode 100644 index 0000000000..a809893762 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ORGANIZATION_CUSTOM_FIELDS.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_CUSTOM\_FIELDS + +> `const` **ORGANIZATION\_CUSTOM\_FIELDS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:379](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L379) + +GraphQL query to retrieve custom fields for a specific organization. + +## Param + +The ID of the organization for which custom fields are being retrieved. + +## Returns + +The list of custom fields associated with the organization, including details such as ID, type, and name. diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ORGANIZATION_EVENTS_CONNECTION.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ORGANIZATION_EVENTS_CONNECTION.md new file mode 100644 index 0000000000..b26f098561 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/ORGANIZATION_EVENTS_CONNECTION.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_EVENTS\_CONNECTION + +> `const` **ORGANIZATION\_EVENTS\_CONNECTION**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L59) + +GraphQL query to retrieve a list of events based on organization connection. + +## Param + +The ID of the organization for which events are being retrieved. + +## Param + +Optional. Filter events by title containing a specified string. + +## Param + +Optional. Filter events by description containing a specified string. + +## Param + +Optional. Filter events by location containing a specified string. + +## Param + +Optional. Number of events to retrieve in the first batch. + +## Param + +Optional. Number of events to skip before starting to collect the result set. + +## Returns + +The list of events associated with the organization based on the applied filters. diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/PLUGIN_GET.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/PLUGIN_GET.md new file mode 100644 index 0000000000..3e65fa1913 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/PLUGIN_GET.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Variable: PLUGIN\_GET + +> `const` **PLUGIN\_GET**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L9) + +GraphQL query to retrieve a list of plugins. + +## Returns + +The list of plugins with details such as ID, name, creator, description, and uninstalled organizations. diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/UNREAD_CHAT_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/UNREAD_CHAT_LIST.md new file mode 100644 index 0000000000..d008f36192 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/UNREAD_CHAT_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UNREAD\_CHAT\_LIST + +> `const` **UNREAD\_CHAT\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:257](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L257) diff --git a/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/USER_EVENTS_VOLUNTEER.md b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/USER_EVENTS_VOLUNTEER.md new file mode 100644 index 0000000000..13be5c41dd --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/PlugInQueries/variables/USER_EVENTS_VOLUNTEER.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_EVENTS\_VOLUNTEER + +> `const` **USER\_EVENTS\_VOLUNTEER**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/PlugInQueries.ts:102](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/PlugInQueries.ts#L102) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ADMIN_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ADMIN_LIST.md new file mode 100644 index 0000000000..8c617220d6 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ADMIN_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ADMIN\_LIST + +> `const` **ADMIN\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:707](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L707) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/BLOCK_PAGE_MEMBER_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/BLOCK_PAGE_MEMBER_LIST.md new file mode 100644 index 0000000000..da210cc22b --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/BLOCK_PAGE_MEMBER_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: BLOCK\_PAGE\_MEMBER\_LIST + +> `const` **BLOCK\_PAGE\_MEMBER\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:451](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L451) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/CHECK_AUTH.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/CHECK_AUTH.md new file mode 100644 index 0000000000..77f5b7819b --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/CHECK_AUTH.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CHECK\_AUTH + +> `const` **CHECK\_AUTH**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L5) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_ATTENDEES.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_ATTENDEES.md new file mode 100644 index 0000000000..7d74c2bf6b --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_ATTENDEES.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EVENT\_ATTENDEES + +> `const` **EVENT\_ATTENDEES**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:313](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L313) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_CHECKINS.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_CHECKINS.md new file mode 100644 index 0000000000..3c969bd1d5 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_CHECKINS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EVENT\_CHECKINS + +> `const` **EVENT\_CHECKINS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:341](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L341) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_DETAILS.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_DETAILS.md new file mode 100644 index 0000000000..cd6dc1d150 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_DETAILS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EVENT\_DETAILS + +> `const` **EVENT\_DETAILS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:268](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L268) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_FEEDBACKS.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_FEEDBACKS.md new file mode 100644 index 0000000000..379b21dc26 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_FEEDBACKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EVENT\_FEEDBACKS + +> `const` **EVENT\_FEEDBACKS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:361](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L361) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_REGISTRANTS.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_REGISTRANTS.md new file mode 100644 index 0000000000..c31c282270 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/EVENT_REGISTRANTS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EVENT\_REGISTRANTS + +> `const` **EVENT\_REGISTRANTS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:331](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L331) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/GET_COMMUNITY_DATA.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/GET_COMMUNITY_DATA.md new file mode 100644 index 0000000000..0d2f47aa40 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/GET_COMMUNITY_DATA.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: GET\_COMMUNITY\_DATA + +> `const` **GET\_COMMUNITY\_DATA**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:839](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L839) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/GET_COMMUNITY_SESSION_TIMEOUT_DATA.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/GET_COMMUNITY_SESSION_TIMEOUT_DATA.md new file mode 100644 index 0000000000..6b9749297f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/GET_COMMUNITY_SESSION_TIMEOUT_DATA.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: GET\_COMMUNITY\_SESSION\_TIMEOUT\_DATA + +> `const` **GET\_COMMUNITY\_SESSION\_TIMEOUT\_DATA**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:860](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L860) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/MEMBERSHIP_REQUEST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/MEMBERSHIP_REQUEST.md new file mode 100644 index 0000000000..2cb135e6b3 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/MEMBERSHIP_REQUEST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MEMBERSHIP\_REQUEST + +> `const` **MEMBERSHIP\_REQUEST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:724](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L724) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/MEMBERS_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/MEMBERS_LIST.md new file mode 100644 index 0000000000..6f5bf3323e --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/MEMBERS_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MEMBERS\_LIST + +> `const` **MEMBERS\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:432](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L432) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATIONS_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATIONS_LIST.md new file mode 100644 index 0000000000..2feeac046a --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATIONS_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATIONS\_LIST + +> `const` **ORGANIZATIONS\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:376](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L376) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATIONS_MEMBER_CONNECTION_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATIONS_MEMBER_CONNECTION_LIST.md new file mode 100644 index 0000000000..3ebd01c06d --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATIONS_MEMBER_CONNECTION_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATIONS\_MEMBER\_CONNECTION\_LIST + +> `const` **ORGANIZATIONS\_MEMBER\_CONNECTION\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:478](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L478) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_CONNECTION_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_CONNECTION_LIST.md new file mode 100644 index 0000000000..f439cfcc6d --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_CONNECTION_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_CONNECTION\_LIST + +> `const` **ORGANIZATION\_CONNECTION\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:67](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L67) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_DONATION_CONNECTION_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_DONATION_CONNECTION_LIST.md new file mode 100644 index 0000000000..b81e1203de --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_DONATION_CONNECTION_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_DONATION\_CONNECTION\_LIST + +> `const` **ORGANIZATION\_DONATION\_CONNECTION\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:686](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L686) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_EVENT_CONNECTION_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_EVENT_CONNECTION_LIST.md new file mode 100644 index 0000000000..0b9d57cb15 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_EVENT_CONNECTION_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_EVENT\_CONNECTION\_LIST + +> `const` **ORGANIZATION\_EVENT\_CONNECTION\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:630](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L630) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_EVENT_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_EVENT_LIST.md new file mode 100644 index 0000000000..3d61032105 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_EVENT_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_EVENT\_LIST + +> `const` **ORGANIZATION\_EVENT\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:611](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L611) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_LIST.md new file mode 100644 index 0000000000..111eff9a3e --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/ORGANIZATION_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ORGANIZATION\_LIST + +> `const` **ORGANIZATION\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L35) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/RECURRING_EVENTS.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/RECURRING_EVENTS.md new file mode 100644 index 0000000000..287683559a --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/RECURRING_EVENTS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: RECURRING\_EVENTS + +> `const` **RECURRING\_EVENTS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:299](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L299) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USERS_CONNECTION_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USERS_CONNECTION_LIST.md new file mode 100644 index 0000000000..259df21ced --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USERS_CONNECTION_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USERS\_CONNECTION\_LIST + +> `const` **USERS\_CONNECTION\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:750](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L750) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_DETAILS.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_DETAILS.md new file mode 100644 index 0000000000..21c5e0d2b9 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_DETAILS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_DETAILS + +> `const` **USER\_DETAILS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:522](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L522) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST.md new file mode 100644 index 0000000000..3a8870fe3f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_LIST + +> `const` **USER\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:109](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L109) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST_FOR_TABLE.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST_FOR_TABLE.md new file mode 100644 index 0000000000..0df8540eea --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST_FOR_TABLE.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_LIST\_FOR\_TABLE + +> `const` **USER\_LIST\_FOR\_TABLE**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:205](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L205) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST_REQUEST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST_REQUEST.md new file mode 100644 index 0000000000..fc3dab2f59 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_LIST_REQUEST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_LIST\_REQUEST + +> `const` **USER\_LIST\_REQUEST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:225](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L225) diff --git a/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_ORGANIZATION_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_ORGANIZATION_LIST.md new file mode 100644 index 0000000000..570b9cd415 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/Queries/variables/USER_ORGANIZATION_LIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_ORGANIZATION\_LIST + +> `const` **USER\_ORGANIZATION\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/Queries.ts:508](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/Queries.ts#L508) diff --git a/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_CAMPAIGN.md b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_CAMPAIGN.md new file mode 100644 index 0000000000..053fe41f2b --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_CAMPAIGN.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: FUND\_CAMPAIGN + +> `const` **FUND\_CAMPAIGN**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/fundQueries.ts:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/fundQueries.ts#L39) diff --git a/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_CAMPAIGN_PLEDGE.md b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_CAMPAIGN_PLEDGE.md new file mode 100644 index 0000000000..ffa35ad3f5 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_CAMPAIGN_PLEDGE.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: FUND\_CAMPAIGN\_PLEDGE + +> `const` **FUND\_CAMPAIGN\_PLEDGE**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/fundQueries.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/fundQueries.ts#L60) diff --git a/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_LIST.md b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_LIST.md new file mode 100644 index 0000000000..3cddfd05c9 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/FUND_LIST.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: FUND\_LIST + +> `const` **FUND\_LIST**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/fundQueries.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/fundQueries.ts#L11) + +GraphQL query to retrieve the list of members for a specific organization. + +## Param + +The ID of the organization for which members are being retrieved. + +## Param + +The filter to search for a specific member. + +## Returns + +The list of members associated with the organization. diff --git a/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/USER_FUND_CAMPAIGNS.md b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/USER_FUND_CAMPAIGNS.md new file mode 100644 index 0000000000..bfe5f1412e --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/USER_FUND_CAMPAIGNS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_FUND\_CAMPAIGNS + +> `const` **USER\_FUND\_CAMPAIGNS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/fundQueries.ts:91](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/fundQueries.ts#L91) diff --git a/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/USER_PLEDGES.md b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/USER_PLEDGES.md new file mode 100644 index 0000000000..41b17a516f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/fundQueries/variables/USER_PLEDGES.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_PLEDGES + +> `const` **USER\_PLEDGES**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/fundQueries.ts:107](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/fundQueries.ts#L107) diff --git a/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAGS_ASSIGNED_MEMBERS.md b/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAGS_ASSIGNED_MEMBERS.md new file mode 100644 index 0000000000..dee4ba6231 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAGS_ASSIGNED_MEMBERS.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_TAGS\_ASSIGNED\_MEMBERS + +> `const` **USER\_TAGS\_ASSIGNED\_MEMBERS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/userTagQueries.ts:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/userTagQueries.ts#L10) + +GraphQL query to retrieve organization members assigned a certain tag. + +## Param + +The ID of the tag that is assigned. + +## Returns + +The list of organization members. diff --git a/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAGS_MEMBERS_TO_ASSIGN_TO.md b/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAGS_MEMBERS_TO_ASSIGN_TO.md new file mode 100644 index 0000000000..c86b481a1f --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAGS_MEMBERS_TO_ASSIGN_TO.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_TAGS\_MEMBERS\_TO\_ASSIGN\_TO + +> `const` **USER\_TAGS\_MEMBERS\_TO\_ASSIGN\_TO**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/userTagQueries.ts:119](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/userTagQueries.ts#L119) + +GraphQL query to retrieve organization members that aren't assigned a certain tag. + +## Param + +The ID of the tag. + +## Returns + +The list of organization members. diff --git a/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAG_SUB_TAGS.md b/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAG_SUB_TAGS.md new file mode 100644 index 0000000000..bdc17f3960 --- /dev/null +++ b/docs/docs/auto-docs/GraphQl/Queries/userTagQueries/variables/USER_TAG_SUB_TAGS.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_TAG\_SUB\_TAGS + +> `const` **USER\_TAG\_SUB\_TAGS**: `DocumentNode` + +Defined in: [src/GraphQl/Queries/userTagQueries.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/GraphQl/Queries/userTagQueries.ts#L60) + +GraphQL query to retrieve the sub tags of a certain tag. + +## Param + +The ID of the parent tag. + +## Returns + +The list of sub tags. diff --git a/docs/docs/auto-docs/components/AddOn/AddOn/functions/default.md b/docs/docs/auto-docs/components/AddOn/AddOn/functions/default.md new file mode 100644 index 0000000000..f02c6f0b09 --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/AddOn/functions/default.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/AddOn/AddOn.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/AddOn.tsx#L22) + +The AddOn component is used to wrap children within a plugin container. +It also accepts additional properties (`extras` and `name`) to allow for +extensibility and custom naming. + +## Parameters + +### \_\_namedParameters + +`InterfaceAddOnProps` + +## Returns + +`JSX.Element` + +The JSX element representing the AddOn component. diff --git a/docs/docs/auto-docs/components/AddOn/core/AddOnEntry/AddOnEntry/functions/default.md b/docs/docs/auto-docs/components/AddOn/core/AddOnEntry/AddOnEntry/functions/default.md new file mode 100644 index 0000000000..48ef39f1cb --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/core/AddOnEntry/AddOnEntry/functions/default.md @@ -0,0 +1,58 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx:63](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx#L63) + +A React component that represents an add-on entry, displaying its details and allowing installation or uninstallation. + +## Parameters + +### props + +`InterfaceAddOnEntryProps` + +The properties for the component. + +## Returns + +`JSX.Element` + +A JSX element containing the add-on entry. + +## Example + +```tsx + {}} +/> +``` +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.addButton` +- `.removeButton` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/components/AddOn/core/AddOnEntry/AddOnEntryMocks/variables/ADD_ON_ENTRY_MOCK.md b/docs/docs/auto-docs/components/AddOn/core/AddOnEntry/AddOnEntryMocks/variables/ADD_ON_ENTRY_MOCK.md new file mode 100644 index 0000000000..e1d06babbb --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/core/AddOnEntry/AddOnEntryMocks/variables/ADD_ON_ENTRY_MOCK.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Variable: ADD\_ON\_ENTRY\_MOCK + +> `const` **ADD\_ON\_ENTRY\_MOCK**: `object`[] + +Defined in: [src/components/AddOn/core/AddOnEntry/AddOnEntryMocks.ts:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/core/AddOnEntry/AddOnEntryMocks.ts#L13) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `UPDATE_INSTALL_STATUS_PLUGIN_MUTATION` + +#### request.variables + +> **variables**: `object` + +#### request.variables.id + +> **id**: `string` = `'1'` + +#### request.variables.orgId + +> **orgId**: `string` = `'undefined'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.updatePluginStatus + +> **updatePluginStatus**: `object` = `updatePluginStatus` + +#### result.data.updatePluginStatus.\_id + +> **\_id**: `string` = `'123'` + +#### result.data.updatePluginStatus.pluginCreatedBy + +> **pluginCreatedBy**: `string` = `'John Doe'` + +#### result.data.updatePluginStatus.pluginDesc + +> **pluginDesc**: `string` = `'This is a sample plugin description.'` + +#### result.data.updatePluginStatus.pluginName + +> **pluginName**: `string` = `'Sample Plugin'` + +#### result.data.updatePluginStatus.uninstalledOrgs + +> **uninstalledOrgs**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/components/AddOn/core/AddOnRegister/AddOnRegister/functions/default.md b/docs/docs/auto-docs/components/AddOn/core/AddOnRegister/AddOnRegister/functions/default.md new file mode 100644 index 0000000000..9e7691f283 --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/core/AddOnRegister/AddOnRegister/functions/default.md @@ -0,0 +1,30 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/AddOn/core/AddOnRegister/AddOnRegister.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/core/AddOnRegister/AddOnRegister.tsx#L38) + +A React component for registering a new add-on plugin. + +This component: +- Displays a button to open a modal for plugin registration. +- Contains a form in the modal for entering plugin details. +- Uses GraphQL mutation to register the plugin. +- Uses `react-i18next` for localization and `react-toastify` for notifications. +- Redirects to the organization list page if no `orgId` is found in the URL. + +## Parameters + +### \_\_namedParameters + +`InterfaceAddOnRegisterProps` + +## Returns + +`JSX.Element` + +A JSX element containing the button and modal for plugin registration. diff --git a/docs/docs/auto-docs/components/AddOn/core/AddOnStore/AddOnStore/functions/default.md b/docs/docs/auto-docs/components/AddOn/core/AddOnStore/AddOnStore/functions/default.md new file mode 100644 index 0000000000..d43b1b4554 --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/core/AddOnStore/AddOnStore/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/AddOn/core/AddOnStore/AddOnStore.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/core/AddOnStore/AddOnStore.tsx#L37) + +Component for managing and displaying plugins in the store. + +This component: +- Displays a search input and filter options. +- Uses tabs to switch between available and installed plugins. +- Fetches plugins from a GraphQL endpoint and filters them based on search criteria. +- Utilizes Redux store to manage plugin data. + +## Returns + +`JSX.Element` + +A JSX element containing the UI for the add-on store. diff --git a/docs/docs/auto-docs/components/AddOn/support/components/Action/Action/functions/default.md b/docs/docs/auto-docs/components/AddOn/support/components/Action/Action/functions/default.md new file mode 100644 index 0000000000..06473fe3e1 --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/support/components/Action/Action/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/AddOn/support/components/Action/Action.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/support/components/Action/Action.tsx#L29) + +A React component that renders a labeled container for embedded actions. + +## Parameters + +### props + +`InterfaceActionProps` + +The properties for the component. + +## Returns + +`JSX.Element` + +A JSX element containing the label and child elements. + +## Example + +```ts + + + +``` diff --git a/docs/docs/auto-docs/components/AddOn/support/components/MainContent/MainContent/functions/default.md b/docs/docs/auto-docs/components/AddOn/support/components/MainContent/MainContent/functions/default.md new file mode 100644 index 0000000000..7b540b2bbf --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/support/components/MainContent/MainContent/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/AddOn/support/components/MainContent/MainContent.tsx:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/support/components/MainContent/MainContent.tsx#L25) + +A React component that renders a main content container with additional styles. + +## Parameters + +### props + +`InterfaceMainContentProps` + +The properties for the component. + +## Returns + +`JSX.Element` + +A JSX element containing the main content container with the provided child elements. + +## Example + +```ts + +

Main content goes here

+
+``` diff --git a/docs/docs/auto-docs/components/AddOn/support/components/SidePanel/SidePanel/functions/default.md b/docs/docs/auto-docs/components/AddOn/support/components/SidePanel/SidePanel/functions/default.md new file mode 100644 index 0000000000..56393085ed --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/support/components/SidePanel/SidePanel/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/AddOn/support/components/SidePanel/SidePanel.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/support/components/SidePanel/SidePanel.tsx#L30) + +A React component that renders a side panel with an optional collapse state. + +## Parameters + +### props + +`InterfaceSidePanelProps` + +The properties for the component. + +## Returns + +`JSX.Element` + +A JSX element containing the side panel with the provided child elements. + +## Example + +```ts + +

Side panel content

+
+``` diff --git a/docs/docs/auto-docs/components/AddOn/support/services/Plugin.helper/classes/default.md b/docs/docs/auto-docs/components/AddOn/support/services/Plugin.helper/classes/default.md new file mode 100644 index 0000000000..28fa9d3a9a --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/support/services/Plugin.helper/classes/default.md @@ -0,0 +1,75 @@ +[Admin Docs](/) + +*** + +# Class: default + +Defined in: [src/components/AddOn/support/services/Plugin.helper.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/support/services/Plugin.helper.ts#L5) + +Helper class for managing plugin-related tasks such as fetching store data, installed plugins, and generating plugin links. + +## Constructors + +### new default() + +> **new default**(): [`default`](default.md) + +#### Returns + +[`default`](default.md) + +## Methods + +### fetchInstalled() + +> **fetchInstalled**(): `Promise`\<`any`\> + +Defined in: [src/components/AddOn/support/services/Plugin.helper.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/support/services/Plugin.helper.ts#L21) + +Fetches the list of installed plugins from a local server. + +#### Returns + +`Promise`\<`any`\> + +A promise that resolves to the installed plugins data in JSON format. + +*** + +### fetchStore() + +> **fetchStore**(): `Promise`\<`any`\> + +Defined in: [src/components/AddOn/support/services/Plugin.helper.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/support/services/Plugin.helper.ts#L11) + +Fetches the store data from a local server. + +#### Returns + +`Promise`\<`any`\> + +A promise that resolves to the store data in JSON format. + +*** + +### generateLinks() + +> **generateLinks**(`plugins`): `object`[] + +Defined in: [src/components/AddOn/support/services/Plugin.helper.ts:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/support/services/Plugin.helper.ts#L32) + +Generates an array of links for the enabled plugins. + +#### Parameters + +##### plugins + +`any`[] + +An array of plugin objects. + +#### Returns + +`object`[] + +An array of objects containing the name and URL of each enabled plugin. diff --git a/docs/docs/auto-docs/components/AddOn/support/services/Render.helper/classes/default.md b/docs/docs/auto-docs/components/AddOn/support/services/Render.helper/classes/default.md new file mode 100644 index 0000000000..79eb0f64cd --- /dev/null +++ b/docs/docs/auto-docs/components/AddOn/support/services/Render.helper/classes/default.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Class: default + +Defined in: [src/components/AddOn/support/services/Render.helper.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddOn/support/services/Render.helper.ts#L1) + +## Constructors + +### new default() + +> **new default**(): [`default`](default.md) + +#### Returns + +[`default`](default.md) diff --git a/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTag/functions/default.md b/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTag/functions/default.md new file mode 100644 index 0000000000..e6b51b1791 --- /dev/null +++ b/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTag/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTag.tsx:63](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTag.tsx#L63) + +## Parameters + +### props + +[`InterfaceAddPeopleToTagProps`](../interfaces/InterfaceAddPeopleToTagProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTag/interfaces/InterfaceAddPeopleToTagProps.md b/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTag/interfaces/InterfaceAddPeopleToTagProps.md new file mode 100644 index 0000000000..725cc64e7a --- /dev/null +++ b/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTag/interfaces/InterfaceAddPeopleToTagProps.md @@ -0,0 +1,78 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAddPeopleToTagProps + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTag.tsx:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTag.tsx#L49) + +Props for the `AddPeopleToTag` component. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.editButton` +- `.modalHeader` +- `.inputField` +- `.addButton` +- `.removeButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Properties + +### addPeopleToTagModalIsOpen + +> **addPeopleToTagModalIsOpen**: `boolean` + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTag.tsx:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTag.tsx#L50) + +*** + +### hideAddPeopleToTagModal() + +> **hideAddPeopleToTagModal**: () => `void` + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTag.tsx:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTag.tsx#L51) + +#### Returns + +`void` + +*** + +### refetchAssignedMembersData() + +> **refetchAssignedMembersData**: () => `void` + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTag.tsx:52](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTag.tsx#L52) + +#### Returns + +`void` + +*** + +### t + +> **t**: `TFunction`\<`"manageTag"`\> + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTag.tsx:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTag.tsx#L53) + +*** + +### tCommon + +> **tCommon**: `TFunction`\<`"common"`\> + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTag.tsx:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTag.tsx#L54) diff --git a/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..d46097782f --- /dev/null +++ b/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; `tagId`: `undefined`; `userIds`: `undefined`; `where`: \{ `firstName`: \{ `starts_with`: `string`; \}; `lastName`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `addPeopleToUserTag`: `undefined`; `getUsersToAssignTo`: \{ `name`: `string`; `usersToAssignTo`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `first`: `number`; `id`: `string`; `tagId`: `undefined`; `userIds`: `undefined`; `where`: \{ `firstName`: \{ `starts_with`: `string`; \}; `lastName`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `addPeopleToUserTag`: `undefined`; `getUsersToAssignTo`: \{ `name`: `string`; `usersToAssignTo`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `undefined`; `id`: `undefined`; `tagId`: `string`; `userIds`: `string`[]; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `addPeopleToUserTag`: \{ `_id`: `string`; \}; `getUsersToAssignTo`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts#L5) diff --git a/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..2fabcc4de5 --- /dev/null +++ b/docs/docs/auto-docs/components/AddPeopleToTag/AddPeopleToTagsMocks/variables/MOCKS_ERROR.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: `object`[] + +Defined in: [src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts:277](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AddPeopleToTag/AddPeopleToTagsMocks.ts#L277) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_TAGS_MEMBERS_TO_ASSIGN_TO` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'1'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.firstName + +> **firstName**: `object` + +#### request.variables.where.firstName.starts\_with + +> **starts\_with**: `string` = `''` + +#### request.variables.where.lastName + +> **lastName**: `object` + +#### request.variables.where.lastName.starts\_with + +> **starts\_with**: `string` = `''` diff --git a/docs/docs/auto-docs/components/Advertisements/Advertisements/functions/default.md b/docs/docs/auto-docs/components/Advertisements/Advertisements/functions/default.md new file mode 100644 index 0000000000..6e8011f189 --- /dev/null +++ b/docs/docs/auto-docs/components/Advertisements/Advertisements/functions/default.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/Advertisements/Advertisements.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Advertisements/Advertisements.tsx#L14) + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry/functions/default.md b/docs/docs/auto-docs/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry/functions/default.md new file mode 100644 index 0000000000..9766195e1d --- /dev/null +++ b/docs/docs/auto-docs/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry/functions/default.md @@ -0,0 +1,44 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx#L49) + +Component for displaying an advertisement entry. +Allows viewing, editing, and deleting of the advertisement. + +## Parameters + +### props + +`InterfaceAddOnEntryProps` + +Component properties + +## Returns + +`JSX.Element` + +The rendered component + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.addButton` +- `.removeButton` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister/functions/default.md b/docs/docs/auto-docs/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister/functions/default.md new file mode 100644 index 0000000000..66be13b7ff --- /dev/null +++ b/docs/docs/auto-docs/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister/functions/default.md @@ -0,0 +1,34 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx:79](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx#L79) + +Component for registering or editing an advertisement. + +## Parameters + +### props + +`InterfaceAddOnRegisterProps` + +Contains form status, advertisement details, and a function to update parent state. + +## Returns + +`JSX.Element` + +A JSX element that renders a form inside a modal for creating or editing an advertisement. + +## Example + +```tsx + console.log(value)} +/> +``` diff --git a/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainer/functions/default.md b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainer/functions/default.md new file mode 100644 index 0000000000..12a24ac766 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainer/functions/default.md @@ -0,0 +1,45 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/AgendaCategory/AgendaCategoryContainer.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaCategory/AgendaCategoryContainer.tsx#L34) + +Component for displaying and managing agenda item categories. + +## Parameters + +### props + +Contains agenda category data and functions for data management. + +#### agendaCategoryConnection + +`"Organization"` + +#### agendaCategoryData + +[`InterfaceAgendaItemCategoryInfo`](../../../../utils/interfaces/interfaces/InterfaceAgendaItemCategoryInfo.md)[] + +#### agendaCategoryRefetch + +() => `void` + +## Returns + +`JSX.Element` + +A JSX element that renders agenda item categories with options to preview, edit, and delete. + +## Example + +```tsx + +``` diff --git a/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerMocks/variables/MOCKS.md new file mode 100644 index 0000000000..61e8e0e987 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `deleteAgendaCategoryId`: `undefined`; `input`: \{ `description`: `string`; `name`: `string`; \}; `updateAgendaCategoryId`: `string`; \}; \}; `result`: \{ `data`: \{ `deleteAgendaCategory`: `undefined`; `updateAgendaCategory`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `deleteAgendaCategoryId`: `string`; `input`: `undefined`; `updateAgendaCategoryId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `deleteAgendaCategory`: \{ `_id`: `string`; \}; `updateAgendaCategory`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/AgendaCategory/AgendaCategoryContainerMocks.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaCategory/AgendaCategoryContainerMocks.ts#L6) diff --git a/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerMocks/variables/MOCKS_ERROR_MUTATIONS.md b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerMocks/variables/MOCKS_ERROR_MUTATIONS.md new file mode 100644 index 0000000000..3ebffacbef --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerMocks/variables/MOCKS_ERROR_MUTATIONS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_MUTATIONS + +> `const` **MOCKS\_ERROR\_MUTATIONS**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `deleteAgendaCategoryId`: `undefined`; `input`: \{ `description`: `string`; `name`: `string`; \}; `updateAgendaCategoryId`: `string`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `deleteAgendaCategoryId`: `string`; `input`: `undefined`; `updateAgendaCategoryId`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/AgendaCategory/AgendaCategoryContainerMocks.ts:81](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaCategory/AgendaCategoryContainerMocks.ts#L81) diff --git a/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerProps/variables/props.md b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerProps/variables/props.md new file mode 100644 index 0000000000..2d1193aa36 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerProps/variables/props.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: props + +> `const` **props**: `object` + +Defined in: [src/components/AgendaCategory/AgendaCategoryContainerProps.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaCategory/AgendaCategoryContainerProps.ts#L4) + +## Type declaration + +### agendaCategoryConnection + +> **agendaCategoryConnection**: `"Organization"` + +### agendaCategoryData + +> **agendaCategoryData**: `object`[] + +### agendaCategoryRefetch + +> **agendaCategoryRefetch**: `Mock` diff --git a/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerProps/variables/props2.md b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerProps/variables/props2.md new file mode 100644 index 0000000000..a6f2019fc9 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaCategory/AgendaCategoryContainerProps/variables/props2.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: props2 + +> `const` **props2**: `object` + +Defined in: [src/components/AgendaCategory/AgendaCategoryContainerProps.ts:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaCategory/AgendaCategoryContainerProps.ts#L31) + +## Type declaration + +### agendaCategoryConnection + +> **agendaCategoryConnection**: `"Organization"` + +### agendaCategoryData + +> **agendaCategoryData**: `any`[] = `[]` + +### agendaCategoryRefetch + +> **agendaCategoryRefetch**: `Mock` diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainer/functions/default.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainer/functions/default.md new file mode 100644 index 0000000000..3c05f0960c --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainer/functions/default.md @@ -0,0 +1,41 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/AgendaItems/AgendaItemsContainer.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsContainer.tsx#L32) + +Component for displaying and managing agenda items. +Supports drag-and-drop functionality, and includes modals for previewing, +updating, and deleting agenda items. + +## Parameters + +### props + +The props for the component. + +#### agendaItemCategories + +[`InterfaceAgendaItemCategoryInfo`](../../../../utils/interfaces/interfaces/InterfaceAgendaItemCategoryInfo.md)[] + +#### agendaItemConnection + +`"Event"` + +#### agendaItemData + +[`InterfaceAgendaItemInfo`](../../../../utils/interfaces/interfaces/InterfaceAgendaItemInfo.md)[] + +#### agendaItemRefetch + +() => `void` + +## Returns + +`JSX.Element` + +JSX.Element diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerMocks/variables/MOCKS.md new file mode 100644 index 0000000000..bcbc733733 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: \{ `description`: `string`; `title`: `string`; \}; `removeAgendaItemId`: `undefined`; `updateAgendaItemId`: `string`; \}; \}; `result`: \{ `data`: \{ `removeAgendaItem`: `undefined`; `updateAgendaItem`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: `undefined`; `removeAgendaItemId`: `string`; `updateAgendaItemId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `removeAgendaItem`: \{ `_id`: `string`; \}; `updateAgendaItem`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/AgendaItems/AgendaItemsContainerMocks.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsContainerMocks.ts#L6) diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerMocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerMocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..b8f06ef939 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerMocks/variables/MOCKS_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: \{ `description`: `string`; `title`: `string`; \}; `removeAgendaItemId`: `undefined`; `updateAgendaItemId`: `string`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: `undefined`; `removeAgendaItemId`: `string`; `updateAgendaItemId`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/AgendaItems/AgendaItemsContainerMocks.ts:96](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsContainerMocks.ts#L96) diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerProps/variables/props.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerProps/variables/props.md new file mode 100644 index 0000000000..4f865890f2 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerProps/variables/props.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Variable: props + +> `const` **props**: `object` + +Defined in: [src/components/AgendaItems/AgendaItemsContainerProps.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsContainerProps.ts#L4) + +## Type declaration + +### agendaItemCategories + +> **agendaItemCategories**: `object`[] + +### agendaItemConnection + +> **agendaItemConnection**: `"Event"` + +### agendaItemData + +> **agendaItemData**: `object`[] + +### agendaItemRefetch + +> **agendaItemRefetch**: `Mock` diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerProps/variables/props2.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerProps/variables/props2.md new file mode 100644 index 0000000000..d183744cd1 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsContainerProps/variables/props2.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Variable: props2 + +> `const` **props2**: `object` + +Defined in: [src/components/AgendaItems/AgendaItemsContainerProps.ts:97](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsContainerProps.ts#L97) + +## Type declaration + +### agendaItemCategories + +> **agendaItemCategories**: `any`[] = `[]` + +### agendaItemConnection + +> **agendaItemConnection**: `"Event"` + +### agendaItemData + +> **agendaItemData**: `any`[] = `[]` + +### agendaItemRefetch + +> **agendaItemRefetch**: `Mock` diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsCreateModal/functions/default.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsCreateModal/functions/default.md new file mode 100644 index 0000000000..b76deee04e --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsCreateModal/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/AgendaItems/AgendaItemsCreateModal.tsx:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsCreateModal.tsx#L43) + +Component for creating a new agenda item. +Displays a modal form where users can input details for a new agenda item, including title, description, duration, categories, URLs, and attachments. + +## Parameters + +### props + +`InterfaceAgendaItemsCreateModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsDeleteModal/functions/default.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsDeleteModal/functions/default.md new file mode 100644 index 0000000000..8657261827 --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsDeleteModal/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/AgendaItems/AgendaItemsDeleteModal.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsDeleteModal.tsx#L23) + +Modal component for confirming the deletion of an agenda item. +Displays a confirmation dialog when a user attempts to delete an agenda item. + +## Parameters + +### props + +`InterfaceAgendaItemsDeleteModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsPreviewModal/functions/default.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsPreviewModal/functions/default.md new file mode 100644 index 0000000000..cac219b1ab --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsPreviewModal/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/AgendaItems/AgendaItemsPreviewModal.tsx:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsPreviewModal.tsx#L41) + +Modal component for previewing details of an agenda item. +Displays the details of the selected agenda item, including its categories, title, description, duration, creator, URLs, and attachments. +Also provides options to update or delete the agenda item. + +## Parameters + +### props + +`InterfaceAgendaItemsPreviewModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/AgendaItems/AgendaItemsUpdateModal/functions/default.md b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsUpdateModal/functions/default.md new file mode 100644 index 0000000000..81e7b5548a --- /dev/null +++ b/docs/docs/auto-docs/components/AgendaItems/AgendaItemsUpdateModal/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/AgendaItems/AgendaItemsUpdateModal.tsx:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/AgendaItems/AgendaItemsUpdateModal.tsx#L49) + +Modal component for updating details of an agenda item. +Provides a form to update the agenda item's title, description, duration, categories, URLs, and attachments. +Also includes functionality to add, remove URLs and attachments. + +## Parameters + +### props + +`InterfaceAgendaItemsUpdateModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/Avatar/Avatar/functions/default.md b/docs/docs/auto-docs/components/Avatar/Avatar/functions/default.md new file mode 100644 index 0000000000..ff8b1a579a --- /dev/null +++ b/docs/docs/auto-docs/components/Avatar/Avatar/functions/default.md @@ -0,0 +1,24 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/Avatar/Avatar.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Avatar/Avatar.tsx#L29) + +A component that generates and displays an avatar based on the provided name. +The avatar is generated using the DiceBear library with the initials style. + +## Parameters + +### \_\_namedParameters + +`InterfaceAvatarProps` + +## Returns + +`Element` + +JSX.Element - The rendered avatar image component. diff --git a/docs/docs/auto-docs/components/ChangeLanguageDropdown/ChangeLanguageDropDown/functions/default.md b/docs/docs/auto-docs/components/ChangeLanguageDropdown/ChangeLanguageDropDown/functions/default.md new file mode 100644 index 0000000000..1f367307bd --- /dev/null +++ b/docs/docs/auto-docs/components/ChangeLanguageDropdown/ChangeLanguageDropDown/functions/default.md @@ -0,0 +1,26 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/ChangeLanguageDropdown/ChangeLanguageDropDown.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/ChangeLanguageDropdown/ChangeLanguageDropDown.tsx#L29) + +A dropdown component that allows users to change the application's language. +It updates the user's language preference in the backend and stores the selection in cookies. + +## Parameters + +### props + +`InterfaceChangeLanguageDropDownProps` + +The properties for customizing the dropdown component. + +## Returns + +`Element` + +JSX.Element - The rendered dropdown component for changing languages. diff --git a/docs/docs/auto-docs/components/CheckIn/CheckInModal/functions/CheckInModal.md b/docs/docs/auto-docs/components/CheckIn/CheckInModal/functions/CheckInModal.md new file mode 100644 index 0000000000..b839cf4399 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/CheckInModal/functions/CheckInModal.md @@ -0,0 +1,24 @@ +[Admin Docs](/) + +*** + +# Function: CheckInModal() + +> **CheckInModal**(`__namedParameters`): `Element` + +Defined in: [src/components/CheckIn/CheckInModal.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/CheckInModal.tsx#L26) + +Modal component for managing event check-ins. Displays a list of attendees +and their check-in statuses, allowing for filtering by user name. + +## Parameters + +### \_\_namedParameters + +[`InterfaceModalProp`](../../types/interfaces/InterfaceModalProp.md) + +## Returns + +`Element` + +JSX.Element - The rendered modal component. diff --git a/docs/docs/auto-docs/components/CheckIn/CheckInWrapper/functions/CheckInWrapper.md b/docs/docs/auto-docs/components/CheckIn/CheckInWrapper/functions/CheckInWrapper.md new file mode 100644 index 0000000000..9fb1081a55 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/CheckInWrapper/functions/CheckInWrapper.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: CheckInWrapper() + +> **CheckInWrapper**(`eventId`): `Element` + +Defined in: [src/components/CheckIn/CheckInWrapper.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/CheckInWrapper.tsx#L17) + +Wrapper component that displays a button to open the CheckInModal. + +## Parameters + +### eventId + +`PropType` + +The ID of the event for which check-in management is being handled. + +## Returns + +`Element` + +JSX.Element - The rendered CheckInWrapper component. diff --git a/docs/docs/auto-docs/components/CheckIn/TableRow/functions/TableRow.md b/docs/docs/auto-docs/components/CheckIn/TableRow/functions/TableRow.md new file mode 100644 index 0000000000..86f5030b1b --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/TableRow/functions/TableRow.md @@ -0,0 +1,30 @@ +[Admin Docs](/) + +*** + +# Function: TableRow() + +> **TableRow**(`__namedParameters`): `Element` + +Defined in: [src/components/CheckIn/TableRow.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/TableRow.tsx#L19) + +Component that represents a single row in the check-in table. +Allows users to mark themselves as checked in and download a tag if they are already checked in. + +## Parameters + +### \_\_namedParameters + +#### data + +[`InterfaceTableCheckIn`](../../types/interfaces/InterfaceTableCheckIn.md) + +#### refetch + +() => `void` + +## Returns + +`Element` + +JSX.Element - The rendered TableRow component. diff --git a/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInMutationSuccess.md b/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInMutationSuccess.md new file mode 100644 index 0000000000..1be41d1243 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInMutationSuccess.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Variable: checkInMutationSuccess + +> `const` **checkInMutationSuccess**: `object`[] + +Defined in: [src/components/CheckIn/mocks.ts:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/mocks.ts#L46) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `MARK_CHECKIN` + +#### request.variables + +> **variables**: `object` + +#### request.variables.eventId + +> **eventId**: `string` = `'event123'` + +#### request.variables.userId + +> **userId**: `string` = `'user123'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.checkIn + +> **checkIn**: `object` + +#### result.data.checkIn.\_id + +> **\_id**: `string` = `'123'` diff --git a/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInMutationUnsuccess.md b/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInMutationUnsuccess.md new file mode 100644 index 0000000000..658f352ced --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInMutationUnsuccess.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: checkInMutationUnsuccess + +> `const` **checkInMutationUnsuccess**: `object`[] + +Defined in: [src/components/CheckIn/mocks.ts:65](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/mocks.ts#L65) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `MARK_CHECKIN` + +#### request.variables + +> **variables**: `object` + +#### request.variables.eventId + +> **eventId**: `string` = `'event123'` + +#### request.variables.userId + +> **userId**: `string` = `'user123'` diff --git a/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInQueryMock.md b/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInQueryMock.md new file mode 100644 index 0000000000..674eaa2751 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/mocks/variables/checkInQueryMock.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: checkInQueryMock + +> `const` **checkInQueryMock**: `object`[] + +Defined in: [src/components/CheckIn/mocks.ts:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/mocks.ts#L34) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_CHECKINS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.id + +> **id**: `string` = `'event123'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: [`InterfaceAttendeeQueryResponse`](../../types/interfaces/InterfaceAttendeeQueryResponse.md) = `checkInQueryData` diff --git a/docs/docs/auto-docs/components/CheckIn/tagTemplate/variables/tagTemplate.md b/docs/docs/auto-docs/components/CheckIn/tagTemplate/variables/tagTemplate.md new file mode 100644 index 0000000000..e01884afef --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/tagTemplate/variables/tagTemplate.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: tagTemplate + +> `const` **tagTemplate**: `Template` + +Defined in: [src/components/CheckIn/tagTemplate.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/tagTemplate.ts#L4) diff --git a/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceAttendeeCheckIn.md b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceAttendeeCheckIn.md new file mode 100644 index 0000000000..5d72320957 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceAttendeeCheckIn.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAttendeeCheckIn + +Defined in: [src/components/CheckIn/types.ts:7](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L7) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/components/CheckIn/types.ts:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L8) + +*** + +### checkIn + +> **checkIn**: `object` + +Defined in: [src/components/CheckIn/types.ts:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L10) + +#### \_id + +> **\_id**: `string` + +#### time + +> **time**: `string` + +*** + +### user + +> **user**: [`InterfaceUser`](InterfaceUser.md) + +Defined in: [src/components/CheckIn/types.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L9) diff --git a/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceAttendeeQueryResponse.md b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceAttendeeQueryResponse.md new file mode 100644 index 0000000000..9b60353d71 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceAttendeeQueryResponse.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAttendeeQueryResponse + +Defined in: [src/components/CheckIn/types.ts:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L16) + +## Properties + +### event + +> **event**: `object` + +Defined in: [src/components/CheckIn/types.ts:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L17) + +#### \_id + +> **\_id**: `string` + +#### attendeesCheckInStatus + +> **attendeesCheckInStatus**: [`InterfaceAttendeeCheckIn`](InterfaceAttendeeCheckIn.md)[] diff --git a/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceModalProp.md b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceModalProp.md new file mode 100644 index 0000000000..5d225d7855 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceModalProp.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceModalProp + +Defined in: [src/components/CheckIn/types.ts:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L23) + +## Properties + +### eventId + +> **eventId**: `string` + +Defined in: [src/components/CheckIn/types.ts:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L25) + +*** + +### handleClose() + +> **handleClose**: () => `void` + +Defined in: [src/components/CheckIn/types.ts:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L26) + +#### Returns + +`void` + +*** + +### show + +> **show**: `boolean` + +Defined in: [src/components/CheckIn/types.ts:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L24) diff --git a/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceTableCheckIn.md b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceTableCheckIn.md new file mode 100644 index 0000000000..04f7c57591 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceTableCheckIn.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceTableCheckIn + +Defined in: [src/components/CheckIn/types.ts:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L29) + +## Properties + +### checkIn + +> **checkIn**: `object` + +Defined in: [src/components/CheckIn/types.ts:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L33) + +#### \_id + +> **\_id**: `string` + +#### time + +> **time**: `string` + +*** + +### eventId + +> **eventId**: `string` + +Defined in: [src/components/CheckIn/types.ts:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L37) + +*** + +### id + +> **id**: `string` + +Defined in: [src/components/CheckIn/types.ts:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L30) + +*** + +### name + +> **name**: `string` + +Defined in: [src/components/CheckIn/types.ts:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L31) + +*** + +### userId + +> **userId**: `string` + +Defined in: [src/components/CheckIn/types.ts:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L32) diff --git a/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceTableData.md b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceTableData.md new file mode 100644 index 0000000000..87b6ad6223 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceTableData.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceTableData + +Defined in: [src/components/CheckIn/types.ts:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L40) + +## Properties + +### checkInData + +> **checkInData**: [`InterfaceTableCheckIn`](InterfaceTableCheckIn.md) + +Defined in: [src/components/CheckIn/types.ts:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L43) + +*** + +### id + +> **id**: `string` + +Defined in: [src/components/CheckIn/types.ts:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L42) + +*** + +### userName + +> **userName**: `string` + +Defined in: [src/components/CheckIn/types.ts:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L41) diff --git a/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceUser.md b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceUser.md new file mode 100644 index 0000000000..46ab382288 --- /dev/null +++ b/docs/docs/auto-docs/components/CheckIn/types/interfaces/InterfaceUser.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceUser + +Defined in: [src/components/CheckIn/types.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L1) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/components/CheckIn/types.ts:2](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L2) + +*** + +### firstName + +> **firstName**: `string` + +Defined in: [src/components/CheckIn/types.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L3) + +*** + +### lastName + +> **lastName**: `string` + +Defined in: [src/components/CheckIn/types.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CheckIn/types.ts#L4) diff --git a/docs/docs/auto-docs/components/CollapsibleDropdown/CollapsibleDropdown/functions/default.md b/docs/docs/auto-docs/components/CollapsibleDropdown/CollapsibleDropdown/functions/default.md new file mode 100644 index 0000000000..e0ba82cd13 --- /dev/null +++ b/docs/docs/auto-docs/components/CollapsibleDropdown/CollapsibleDropdown/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/CollapsibleDropdown/CollapsibleDropdown.tsx:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CollapsibleDropdown/CollapsibleDropdown.tsx#L24) + +A collapsible dropdown component that toggles visibility of sub-targets. + +## Parameters + +### \_\_namedParameters + +[`InterfaceCollapsibleDropdown`](../interfaces/InterfaceCollapsibleDropdown.md) + +## Returns + +`Element` + +JSX.Element - The rendered CollapsibleDropdown component. diff --git a/docs/docs/auto-docs/components/CollapsibleDropdown/CollapsibleDropdown/interfaces/InterfaceCollapsibleDropdown.md b/docs/docs/auto-docs/components/CollapsibleDropdown/CollapsibleDropdown/interfaces/InterfaceCollapsibleDropdown.md new file mode 100644 index 0000000000..bbf3fcd5ed --- /dev/null +++ b/docs/docs/auto-docs/components/CollapsibleDropdown/CollapsibleDropdown/interfaces/InterfaceCollapsibleDropdown.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCollapsibleDropdown + +Defined in: [src/components/CollapsibleDropdown/CollapsibleDropdown.tsx:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CollapsibleDropdown/CollapsibleDropdown.tsx#L9) + +## Properties + +### setShowDropdown + +> **setShowDropdown**: `Dispatch`\<`SetStateAction`\<`boolean`\>\> + +Defined in: [src/components/CollapsibleDropdown/CollapsibleDropdown.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CollapsibleDropdown/CollapsibleDropdown.tsx#L12) + +*** + +### showDropdown + +> **showDropdown**: `boolean` + +Defined in: [src/components/CollapsibleDropdown/CollapsibleDropdown.tsx:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CollapsibleDropdown/CollapsibleDropdown.tsx#L10) + +*** + +### target + +> **target**: [`TargetsType`](../../../../state/reducers/routesReducer/type-aliases/TargetsType.md) + +Defined in: [src/components/CollapsibleDropdown/CollapsibleDropdown.tsx:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CollapsibleDropdown/CollapsibleDropdown.tsx#L11) diff --git a/docs/docs/auto-docs/components/ContriStats/ContriStats/functions/default.md b/docs/docs/auto-docs/components/ContriStats/ContriStats/functions/default.md new file mode 100644 index 0000000000..62c8d516d5 --- /dev/null +++ b/docs/docs/auto-docs/components/ContriStats/ContriStats/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/ContriStats/ContriStats.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/ContriStats/ContriStats.tsx#L22) + +A component that displays contribution statistics. + +## Parameters + +### \_\_namedParameters + +`InterfaceContriStatsProps` + +## Returns + +`JSX.Element` + +JSX.Element - The rendered component displaying the contribution stats. diff --git a/docs/docs/auto-docs/components/CurrentHourIndicator/CurrentHourIndicator/functions/default.md b/docs/docs/auto-docs/components/CurrentHourIndicator/CurrentHourIndicator/functions/default.md new file mode 100644 index 0000000000..8514b0c501 --- /dev/null +++ b/docs/docs/auto-docs/components/CurrentHourIndicator/CurrentHourIndicator/functions/default.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/CurrentHourIndicator/CurrentHourIndicator.tsx:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/CurrentHourIndicator/CurrentHourIndicator.tsx#L9) + +A component that displays an indicator for the current hour. + +## Returns + +`Element` + +JSX.Element - The rendered component showing the current hour indicator. diff --git a/docs/docs/auto-docs/components/DynamicDropDown/DynamicDropDown/functions/default.md b/docs/docs/auto-docs/components/DynamicDropDown/DynamicDropDown/functions/default.md new file mode 100644 index 0000000000..0239654094 --- /dev/null +++ b/docs/docs/auto-docs/components/DynamicDropDown/DynamicDropDown/functions/default.md @@ -0,0 +1,30 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**\<`T`\>(`__namedParameters`): `Element` + +Defined in: [src/components/DynamicDropDown/DynamicDropDown.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/DynamicDropDown/DynamicDropDown.tsx#L34) + +A dynamic dropdown component that allows users to select an option. + +This component renders a dropdown with a toggle button. Clicking the button +opens a menu with options. When an option is selected, it updates the form state. + +## Type Parameters + +• **T** *extends* `Record`\<`string`, `unknown`\> + +## Parameters + +### \_\_namedParameters + +`InterfaceChangeDropDownProps`\<`T`\> + +## Returns + +`Element` + +JSX.Element - The rendered dropdown component. diff --git a/docs/docs/auto-docs/components/EditCustomFieldDropDown/EditCustomFieldDropDown/functions/default.md b/docs/docs/auto-docs/components/EditCustomFieldDropDown/EditCustomFieldDropDown/functions/default.md new file mode 100644 index 0000000000..8b49db08e7 --- /dev/null +++ b/docs/docs/auto-docs/components/EditCustomFieldDropDown/EditCustomFieldDropDown/functions/default.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/EditCustomFieldDropDown/EditCustomFieldDropDown.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EditCustomFieldDropDown/EditCustomFieldDropDown.tsx#L33) + +A dropdown component for editing custom field types. + +This component displays a dropdown menu that allows users to select a custom field type. +It shows the current type of the field and provides a list of available types to choose from. +When a new type is selected, it updates the custom field data. + +## Parameters + +### \_\_namedParameters + +`InterfaceEditCustomFieldDropDownProps` + +## Returns + +`Element` + +JSX.Element - The rendered dropdown component. diff --git a/docs/docs/auto-docs/components/EventCalendar/EventCalendar/functions/default.md b/docs/docs/auto-docs/components/EventCalendar/EventCalendar/functions/default.md new file mode 100644 index 0000000000..de0a200cfe --- /dev/null +++ b/docs/docs/auto-docs/components/EventCalendar/EventCalendar/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/EventCalendar/EventCalendar.tsx:78](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventCalendar/EventCalendar.tsx#L78) + +## Parameters + +### props + +`InterfaceCalendarProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/EventCalendar/EventHeader/functions/default.md b/docs/docs/auto-docs/components/EventCalendar/EventHeader/functions/default.md new file mode 100644 index 0000000000..a88539f0fb --- /dev/null +++ b/docs/docs/auto-docs/components/EventCalendar/EventHeader/functions/default.md @@ -0,0 +1,41 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/EventCalendar/EventHeader.tsx:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventCalendar/EventHeader.tsx#L45) + +EventHeader component displays the header for the event calendar. +It includes a search field, view type dropdown, event type dropdown, and a button to create an event. + +## Parameters + +### \_\_namedParameters + +`InterfaceEventHeaderProps` + +## Returns + +`JSX.Element` + +JSX.Element - The rendered EventHeader component. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.dropdown` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/components/EventCalendar/YearlyEventCalender/functions/default.md b/docs/docs/auto-docs/components/EventCalendar/YearlyEventCalender/functions/default.md new file mode 100644 index 0000000000..7b8b823262 --- /dev/null +++ b/docs/docs/auto-docs/components/EventCalendar/YearlyEventCalender/functions/default.md @@ -0,0 +1,36 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/EventCalendar/YearlyEventCalender.tsx:95](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventCalendar/YearlyEventCalender.tsx#L95) + +Calendar component to display events for a selected year. + +This component renders a yearly calendar with navigation to view previous and next years. +It displays events for each day, with functionality to expand and view details of events. + +## Parameters + +### props + +`InterfaceCalendarProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +JSX.Element - The rendered calendar component. diff --git a/docs/docs/auto-docs/components/EventCalendar/constants/variables/holidays.md b/docs/docs/auto-docs/components/EventCalendar/constants/variables/holidays.md new file mode 100644 index 0000000000..b3f2404324 --- /dev/null +++ b/docs/docs/auto-docs/components/EventCalendar/constants/variables/holidays.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: holidays + +> `const` **holidays**: `object`[] + +Defined in: [src/components/EventCalendar/constants.js:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventCalendar/constants.js#L1) + +## Type declaration + +### date + +> **date**: `string` = `'05-01'` + +### month + +> **month**: `string` = `'May'` + +### name + +> **name**: `string` = `'May Day / Labour Day'` diff --git a/docs/docs/auto-docs/components/EventCalendar/constants/variables/hours.md b/docs/docs/auto-docs/components/EventCalendar/constants/variables/hours.md new file mode 100644 index 0000000000..17e0850647 --- /dev/null +++ b/docs/docs/auto-docs/components/EventCalendar/constants/variables/hours.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: hours + +> `const` **hours**: `string`[] + +Defined in: [src/components/EventCalendar/constants.js:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventCalendar/constants.js#L39) diff --git a/docs/docs/auto-docs/components/EventCalendar/constants/variables/months.md b/docs/docs/auto-docs/components/EventCalendar/constants/variables/months.md new file mode 100644 index 0000000000..0a4aa59493 --- /dev/null +++ b/docs/docs/auto-docs/components/EventCalendar/constants/variables/months.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: months + +> `const` **months**: `string`[] + +Defined in: [src/components/EventCalendar/constants.js:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventCalendar/constants.js#L25) diff --git a/docs/docs/auto-docs/components/EventCalendar/constants/variables/weekdays.md b/docs/docs/auto-docs/components/EventCalendar/constants/variables/weekdays.md new file mode 100644 index 0000000000..b153e3b3c9 --- /dev/null +++ b/docs/docs/auto-docs/components/EventCalendar/constants/variables/weekdays.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: weekdays + +> `const` **weekdays**: `string`[] + +Defined in: [src/components/EventCalendar/constants.js:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventCalendar/constants.js#L16) diff --git a/docs/docs/auto-docs/components/EventDashboardScreen/EventDashboardScreen/functions/default.md b/docs/docs/auto-docs/components/EventDashboardScreen/EventDashboardScreen/functions/default.md new file mode 100644 index 0000000000..a6a8af6c89 --- /dev/null +++ b/docs/docs/auto-docs/components/EventDashboardScreen/EventDashboardScreen/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/EventDashboardScreen/EventDashboardScreen.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventDashboardScreen/EventDashboardScreen.tsx#L21) + +The EventDashboardScreen component is the main dashboard view for event management. +It includes navigation, a sidebar, and a profile dropdown. + +## Returns + +`Element` + +JSX.Element - The rendered EventDashboardScreen component. diff --git a/docs/docs/auto-docs/components/EventListCard/EventListCard/functions/default.md b/docs/docs/auto-docs/components/EventListCard/EventListCard/functions/default.md new file mode 100644 index 0000000000..c81bd391c0 --- /dev/null +++ b/docs/docs/auto-docs/components/EventListCard/EventListCard/functions/default.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/EventListCard/EventListCard.tsx:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L45) + +Component that displays an event card with a modal for event details. + +## Parameters + +### props + +[`InterfaceEventListCardProps`](../interfaces/InterfaceEventListCardProps.md) + +The props for the EventListCard component. + +## Returns + +`JSX.Element` + +The rendered EventListCard component. diff --git a/docs/docs/auto-docs/components/EventListCard/EventListCard/interfaces/InterfaceEventListCardProps.md b/docs/docs/auto-docs/components/EventListCard/EventListCard/interfaces/InterfaceEventListCardProps.md new file mode 100644 index 0000000000..4db4fa46fd --- /dev/null +++ b/docs/docs/auto-docs/components/EventListCard/EventListCard/interfaces/InterfaceEventListCardProps.md @@ -0,0 +1,181 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceEventListCardProps + +Defined in: [src/components/EventListCard/EventListCard.tsx:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L11) + +Props for the EventListCard component. + +## Properties + +### allDay + +> **allDay**: `boolean` + +Defined in: [src/components/EventListCard/EventListCard.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L23) + +*** + +### creator? + +> `optional` **creator**: `object` + +Defined in: [src/components/EventListCard/EventListCard.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L32) + +#### \_id + +> **\_id**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### endDate + +> **endDate**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L20) + +*** + +### endTime + +> **endTime**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L22) + +*** + +### eventDescription + +> **eventDescription**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L18) + +*** + +### eventLocation + +> **eventLocation**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L16) + +*** + +### eventName + +> **eventName**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L17) + +*** + +### id + +> **id**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L15) + +*** + +### isPublic + +> **isPublic**: `boolean` + +Defined in: [src/components/EventListCard/EventListCard.tsx:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L27) + +*** + +### isRecurringEventException + +> **isRecurringEventException**: `boolean` + +Defined in: [src/components/EventListCard/EventListCard.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L26) + +*** + +### isRegisterable + +> **isRegisterable**: `boolean` + +Defined in: [src/components/EventListCard/EventListCard.tsx:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L28) + +*** + +### key + +> **key**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L14) + +*** + +### recurrenceRule + +> **recurrenceRule**: [`InterfaceRecurrenceRule`](../../../../utils/recurrenceUtils/recurrenceTypes/interfaces/InterfaceRecurrenceRule.md) + +Defined in: [src/components/EventListCard/EventListCard.tsx:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L25) + +*** + +### recurring + +> **recurring**: `boolean` + +Defined in: [src/components/EventListCard/EventListCard.tsx:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L24) + +*** + +### refetchEvents()? + +> `optional` **refetchEvents**: () => `void` + +Defined in: [src/components/EventListCard/EventListCard.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L12) + +#### Returns + +`void` + +*** + +### registrants? + +> `optional` **registrants**: `object`[] + +Defined in: [src/components/EventListCard/EventListCard.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L29) + +#### \_id + +> **\_id**: `string` + +*** + +### startDate + +> **startDate**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L19) + +*** + +### startTime + +> **startTime**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L21) + +*** + +### userRole? + +> `optional` **userRole**: `string` + +Defined in: [src/components/EventListCard/EventListCard.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCard.tsx#L13) diff --git a/docs/docs/auto-docs/components/EventListCard/EventListCardMocks/variables/ERROR_MOCKS.md b/docs/docs/auto-docs/components/EventListCard/EventListCardMocks/variables/ERROR_MOCKS.md new file mode 100644 index 0000000000..dac303dad1 --- /dev/null +++ b/docs/docs/auto-docs/components/EventListCard/EventListCardMocks/variables/ERROR_MOCKS.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Variable: ERROR\_MOCKS + +> `const` **ERROR\_MOCKS**: `object`[] + +Defined in: [src/components/EventListCard/EventListCardMocks.ts:191](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCardMocks.ts#L191) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `DELETE_EVENT_MUTATION` + +#### request.variables + +> **variables**: `object` + +#### request.variables.id + +> **id**: `string` = `'1'` diff --git a/docs/docs/auto-docs/components/EventListCard/EventListCardMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/EventListCard/EventListCardMocks/variables/MOCKS.md new file mode 100644 index 0000000000..33074373a9 --- /dev/null +++ b/docs/docs/auto-docs/components/EventListCard/EventListCardMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `undefined`; `description`: `undefined`; `endDate`: `undefined`; `endTime`: `undefined`; `eventId`: `undefined`; `frequency`: `undefined`; `id`: `string`; `interval`: `undefined`; `isPublic`: `undefined`; `isRegisterable`: `undefined`; `location`: `undefined`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `undefined`; `recurringEventDeleteType`: `undefined`; `recurringEventUpdateType`: `undefined`; `startDate`: `undefined`; `startTime`: `undefined`; `title`: `undefined`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `registerForEvent`: `undefined`; `removeEvent`: \{ `_id`: `string`; \}; `updateEvent`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `undefined`; `description`: `undefined`; `endDate`: `undefined`; `endTime`: `undefined`; `eventId`: `undefined`; `frequency`: `undefined`; `id`: `string`; `interval`: `undefined`; `isPublic`: `undefined`; `isRegisterable`: `undefined`; `location`: `undefined`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `undefined`; `recurringEventDeleteType`: `string`; `recurringEventUpdateType`: `undefined`; `startDate`: `undefined`; `startTime`: `undefined`; `title`: `undefined`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `registerForEvent`: `undefined`; `removeEvent`: \{ `_id`: `string`; \}; `updateEvent`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `description`: `string`; `endDate`: `string`; `endTime`: `undefined`; `eventId`: `undefined`; `frequency`: `undefined`; `id`: `string`; `interval`: `undefined`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `boolean`; `recurringEventDeleteType`: `undefined`; `recurringEventUpdateType`: `undefined`; `startDate`: `string`; `startTime`: `undefined`; `title`: `string`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `registerForEvent`: `undefined`; `removeEvent`: `undefined`; `updateEvent`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `description`: `string`; `endDate`: `string`; `endTime`: `string`; `eventId`: `undefined`; `frequency`: `undefined`; `id`: `string`; `interval`: `undefined`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `boolean`; `recurringEventDeleteType`: `undefined`; `recurringEventUpdateType`: `undefined`; `startDate`: `string`; `startTime`: `string`; `title`: `string`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `registerForEvent`: `undefined`; `removeEvent`: `undefined`; `updateEvent`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `description`: `string`; `endDate`: `string`; `endTime`: `undefined`; `eventId`: `undefined`; `frequency`: `string`; `id`: `string`; `interval`: `number`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `recurrenceEndDate`: `any`; `recurrenceStartDate`: `string`; `recurring`: `boolean`; `recurringEventDeleteType`: `undefined`; `recurringEventUpdateType`: `string`; `startDate`: `string`; `startTime`: `undefined`; `title`: `string`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `string`[]; \}; \}; `result`: \{ `data`: \{ `registerForEvent`: `undefined`; `removeEvent`: `undefined`; `updateEvent`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `description`: `string`; `endDate`: `string`; `endTime`: `undefined`; `eventId`: `undefined`; `frequency`: `string`; `id`: `string`; `interval`: `number`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `recurrenceEndDate`: `string`; `recurrenceStartDate`: `string`; `recurring`: `boolean`; `recurringEventDeleteType`: `undefined`; `recurringEventUpdateType`: `string`; `startDate`: `string`; `startTime`: `undefined`; `title`: `string`; `weekDayOccurenceInMonth`: `number`; `weekDays`: `string`[]; \}; \}; `result`: \{ `data`: \{ `registerForEvent`: `undefined`; `removeEvent`: `undefined`; `updateEvent`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `description`: `string`; `endDate`: `string`; `endTime`: `undefined`; `eventId`: `undefined`; `frequency`: `string`; `id`: `string`; `interval`: `number`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `recurrenceEndDate`: `any`; `recurrenceStartDate`: `string`; `recurring`: `boolean`; `recurringEventDeleteType`: `undefined`; `recurringEventUpdateType`: `string`; `startDate`: `string`; `startTime`: `undefined`; `title`: `string`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `registerForEvent`: `undefined`; `removeEvent`: `undefined`; `updateEvent`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `undefined`; `description`: `undefined`; `endDate`: `undefined`; `endTime`: `undefined`; `eventId`: `string`; `frequency`: `undefined`; `id`: `undefined`; `interval`: `undefined`; `isPublic`: `undefined`; `isRegisterable`: `undefined`; `location`: `undefined`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `undefined`; `recurringEventDeleteType`: `undefined`; `recurringEventUpdateType`: `undefined`; `startDate`: `undefined`; `startTime`: `undefined`; `title`: `undefined`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `registerForEvent`: `object`[]; `removeEvent`: `undefined`; `updateEvent`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/EventListCard/EventListCardMocks.ts:7](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCardMocks.ts#L7) diff --git a/docs/docs/auto-docs/components/EventListCard/EventListCardModals/functions/default.md b/docs/docs/auto-docs/components/EventListCard/EventListCardModals/functions/default.md new file mode 100644 index 0000000000..60f0890294 --- /dev/null +++ b/docs/docs/auto-docs/components/EventListCard/EventListCardModals/functions/default.md @@ -0,0 +1,26 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/EventListCard/EventListCardModals.tsx:93](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCardModals.tsx#L93) + +The `EventListCardModals` component displays the modals related to events, such as viewing, +updating, and deleting events. + +## Parameters + +### props + +`InterfaceEventListCardModalProps` + +The properties for the component. + +## Returns + +`JSX.Element` + +A JSX element containing the event modals. diff --git a/docs/docs/auto-docs/components/EventListCard/EventListCardProps/variables/props.md b/docs/docs/auto-docs/components/EventListCard/EventListCardProps/variables/props.md new file mode 100644 index 0000000000..4b2fff081d --- /dev/null +++ b/docs/docs/auto-docs/components/EventListCard/EventListCardProps/variables/props.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: props + +> `const` **props**: [`InterfaceEventListCardProps`](../../EventListCard/interfaces/InterfaceEventListCardProps.md)[] + +Defined in: [src/components/EventListCard/EventListCardProps.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventListCard/EventListCardProps.ts#L4) diff --git a/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard.mocks/variables/MOCKS_WITHOUT_TIME.md b/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard.mocks/variables/MOCKS_WITHOUT_TIME.md new file mode 100644 index 0000000000..5c09916288 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard.mocks/variables/MOCKS_WITHOUT_TIME.md @@ -0,0 +1,99 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_WITHOUT\_TIME + +> `const` **MOCKS\_WITHOUT\_TIME**: `object`[] + +Defined in: [src/components/EventManagement/Dashboard/EventDashboard.mocks.ts:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/Dashboard/EventDashboard.mocks.ts#L34) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_DETAILS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.id + +> **id**: `string` = `'event123'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.event + +> **event**: `object` + +#### result.data.event.\_id + +> **\_id**: `string` = `'event123'` + +#### result.data.event.allDay + +> **allDay**: `boolean` = `true` + +#### result.data.event.attendees + +> **attendees**: `object`[] + +#### result.data.event.creator + +> **creator**: `object` + +#### result.data.event.creator.\_id + +> **\_id**: `string` = `'creator1'` + +#### result.data.event.creator.firstName + +> **firstName**: `string` = `'John'` + +#### result.data.event.creator.lastName + +> **lastName**: `string` = `'Doe'` + +#### result.data.event.description + +> **description**: `string` = `'Test Description'` + +#### result.data.event.endDate + +> **endDate**: `string` = `'2024-01-02'` + +#### result.data.event.endTime + +> **endTime**: `any` = `null` + +#### result.data.event.location + +> **location**: `string` = `'India'` + +#### result.data.event.recurring + +> **recurring**: `boolean` = `false` + +#### result.data.event.startDate + +> **startDate**: `string` = `'2024-01-01'` + +#### result.data.event.startTime + +> **startTime**: `any` = `null` + +#### result.data.event.title + +> **title**: `string` = `'Test Event'` diff --git a/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard.mocks/variables/MOCKS_WITH_TIME.md b/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard.mocks/variables/MOCKS_WITH_TIME.md new file mode 100644 index 0000000000..9ec1c831e4 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard.mocks/variables/MOCKS_WITH_TIME.md @@ -0,0 +1,99 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_WITH\_TIME + +> `const` **MOCKS\_WITH\_TIME**: `object`[] + +Defined in: [src/components/EventManagement/Dashboard/EventDashboard.mocks.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/Dashboard/EventDashboard.mocks.ts#L3) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_DETAILS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.id + +> **id**: `string` = `'event123'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.event + +> **event**: `object` + +#### result.data.event.\_id + +> **\_id**: `string` = `'event123'` + +#### result.data.event.allDay + +> **allDay**: `boolean` = `false` + +#### result.data.event.attendees + +> **attendees**: `object`[] + +#### result.data.event.creator + +> **creator**: `object` + +#### result.data.event.creator.\_id + +> **\_id**: `string` = `'creator1'` + +#### result.data.event.creator.firstName + +> **firstName**: `string` = `'John'` + +#### result.data.event.creator.lastName + +> **lastName**: `string` = `'Doe'` + +#### result.data.event.description + +> **description**: `string` = `'Test Description'` + +#### result.data.event.endDate + +> **endDate**: `string` = `'2024-01-02'` + +#### result.data.event.endTime + +> **endTime**: `string` = `'17:00:00'` + +#### result.data.event.location + +> **location**: `string` = `'India'` + +#### result.data.event.recurring + +> **recurring**: `boolean` = `false` + +#### result.data.event.startDate + +> **startDate**: `string` = `'2024-01-01'` + +#### result.data.event.startTime + +> **startTime**: `string` = `'09:00:00'` + +#### result.data.event.title + +> **title**: `string` = `'Test Event'` diff --git a/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard/functions/default.md b/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard/functions/default.md new file mode 100644 index 0000000000..207c0f114c --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/Dashboard/EventDashboard/functions/default.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/EventManagement/Dashboard/EventDashboard.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/Dashboard/EventDashboard.tsx#L20) + +Component that displays event details. + +## Parameters + +### props + +The props for the EventDashboard component. + +#### eventId + +`string` + +## Returns + +`Element` + +The rendered EventDashboard component. diff --git a/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItems/functions/default.md b/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItems/functions/default.md new file mode 100644 index 0000000000..378e5642d1 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItems/functions/default.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/EventManagement/EventAgendaItems/EventAgendaItems.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAgendaItems/EventAgendaItems.tsx#L33) + +Component to manage and display agenda items for a specific event. + +## Parameters + +### props + +The component props. + +#### eventId + +`string` + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..5f20cbdc54 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: `undefined`; `organizationId`: `string`; `relatedEventId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `agendaItemByEvent`: `undefined`; `agendaItemCategoriesByOrganization`: `object`[]; `createAgendaItem`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: `undefined`; `organizationId`: `undefined`; `relatedEventId`: `string`; \}; \}; `result`: \{ `data`: \{ `agendaItemByEvent`: `object`[]; `agendaItemCategoriesByOrganization`: `undefined`; `createAgendaItem`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: \{ `attachments`: `any`[]; `categories`: `string`[]; `description`: `string`; `duration`: `string`; `organizationId`: `string`; `relatedEventId`: `string`; `sequence`: `number`; `title`: `string`; `urls`: `any`[]; \}; `organizationId`: `undefined`; `relatedEventId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `agendaItemByEvent`: `undefined`; `agendaItemCategoriesByOrganization`: `undefined`; `createAgendaItem`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks.ts#L6) diff --git a/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS_ERROR_MUTATION.md b/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS_ERROR_MUTATION.md new file mode 100644 index 0000000000..9882b70565 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS_ERROR_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_MUTATION + +> `const` **MOCKS\_ERROR\_MUTATION**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: \{ `attachments`: `any`[]; `categories`: `string`[]; `description`: `string`; `duration`: `string`; `organizationId`: `string`; `relatedEventId`: `string`; `sequence`: `number`; `title`: `string`; `urls`: `any`[]; \}; `organizationId`: `undefined`; `relatedEventId`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: `undefined`; `organizationId`: `undefined`; `relatedEventId`: `string`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: `undefined`; `organizationId`: `string`; `relatedEventId`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks.ts:97](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks.ts#L97) diff --git a/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS_ERROR_QUERY.md b/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS_ERROR_QUERY.md new file mode 100644 index 0000000000..12272b7823 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks/variables/MOCKS_ERROR_QUERY.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_QUERY + +> `const` **MOCKS\_ERROR\_QUERY**: `any`[] = `[]` + +Defined in: [src/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks.ts:133](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAgendaItems/EventAgendaItemsMocks.ts#L133) diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/Attendance.mocks/variables/MOCKS.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/Attendance.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..894a6ef91e --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/Attendance.mocks/variables/MOCKS.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: `object`[] + +Defined in: [src/components/EventManagement/EventAttendance/Attendance.mocks.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/Attendance.mocks.ts#L3) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_ATTENDEES` + +#### request.variables + +> **variables**: `object` = `{}` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.event + +> **event**: `object` + +#### result.data.event.attendees + +> **attendees**: `object`[] diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/Attendance.mocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/Attendance.mocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..919ba88bd8 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/Attendance.mocks/variables/MOCKS_ERROR.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: `object`[] + +Defined in: [src/components/EventManagement/EventAttendance/Attendance.mocks.ts:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/Attendance.mocks.ts#L54) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_ATTENDEES` + +#### request.variables + +> **variables**: `object` = `{}` diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/AttendedEventList/functions/default.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/AttendedEventList/functions/default.md new file mode 100644 index 0000000000..77edc420dd --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/AttendedEventList/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/EventManagement/EventAttendance/AttendedEventList.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/AttendedEventList.tsx#L16) + +Component to display a list of events attended by a member + +## Parameters + +### props + +`InterfaceEventsAttended` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +A table row containing event details with a link to the event diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/EventAttendance/functions/default.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/EventAttendance/functions/default.md new file mode 100644 index 0000000000..da5a44d71f --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/EventAttendance/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/EventManagement/EventAttendance/EventAttendance.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/EventAttendance.tsx#L34) + +Component to manage and display event attendance information +Includes filtering and sorting functionality for attendees + +## Returns + +`JSX.Element` + +JSX element containing the event attendance interface diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/EventStatistics/functions/AttendanceStatisticsModal.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/EventStatistics/functions/AttendanceStatisticsModal.md new file mode 100644 index 0000000000..9bb688a1bd --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/EventStatistics/functions/AttendanceStatisticsModal.md @@ -0,0 +1,34 @@ +[Admin Docs](/) + +*** + +# Function: AttendanceStatisticsModal() + +> **AttendanceStatisticsModal**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/EventManagement/EventAttendance/EventStatistics.tsx:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/EventStatistics.tsx#L50) + +Component to display statistical information about event attendance +Shows metrics like total attendees, filtering options, and attendance trends + +## Parameters + +### props + +[`InterfaceAttendanceStatisticsModalProps`](../../InterfaceEvents/interfaces/InterfaceAttendanceStatisticsModalProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +JSX element with event statistics dashboard diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceAttendanceStatisticsModalProps.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceAttendanceStatisticsModalProps.md new file mode 100644 index 0000000000..6d5d0b3c25 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceAttendanceStatisticsModalProps.md @@ -0,0 +1,73 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAttendanceStatisticsModalProps + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L1) + +## Properties + +### handleClose() + +> **handleClose**: () => `void` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L3) + +#### Returns + +`void` + +*** + +### memberData + +> **memberData**: [`InterfaceMember`](InterfaceMember.md)[] + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L9) + +*** + +### show + +> **show**: `boolean` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:2](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L2) + +*** + +### statistics + +> **statistics**: `object` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L4) + +#### attendanceRate + +> **attendanceRate**: `number` + +#### membersAttended + +> **membersAttended**: `number` + +#### totalMembers + +> **totalMembers**: `number` + +*** + +### t() + +> **t**: (`key`) => `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L10) + +#### Parameters + +##### key + +`string` + +#### Returns + +`string` diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceEvent.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceEvent.md new file mode 100644 index 0000000000..3f11aa691c --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceEvent.md @@ -0,0 +1,187 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceEvent + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L35) + +## Properties + +### \_\_typename + +> **\_\_typename**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:66](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L66) + +*** + +### \_id + +> **\_id**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L36) + +*** + +### allDay + +> **allDay**: `boolean` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L44) + +*** + +### attendees + +> **attendees**: `object`[] + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L58) + +#### \_id + +> **\_id**: `string` + +#### birthDate + +> **birthDate**: `string` + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### gender + +> **gender**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### description + +> **description**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L38) + +*** + +### endDate + +> **endDate**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L40) + +*** + +### endTime + +> **endTime**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L43) + +*** + +### isPublic + +> **isPublic**: `boolean` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:56](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L56) + +*** + +### isRecurringEventException + +> **isRecurringEventException**: `boolean` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L55) + +*** + +### isRegisterable + +> **isRegisterable**: `boolean` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:57](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L57) + +*** + +### location + +> **location**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L41) + +*** + +### recurrenceRule + +> **recurrenceRule**: `object` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L46) + +#### count? + +> `optional` **count**: `number` + +#### frequency + +> **frequency**: `string` + +#### interval + +> **interval**: `number` + +#### recurrenceEndDate? + +> `optional` **recurrenceEndDate**: `string` + +#### recurrenceStartDate + +> **recurrenceStartDate**: `string` + +#### weekDayOccurenceInMonth? + +> `optional` **weekDayOccurenceInMonth**: `number` + +#### weekDays + +> **weekDays**: `string`[] + +*** + +### recurring + +> **recurring**: `boolean` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L45) + +*** + +### startDate + +> **startDate**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L39) + +*** + +### startTime + +> **startTime**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L42) + +*** + +### title + +> **title**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L37) diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceMember.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceMember.md new file mode 100644 index 0000000000..942b4cfb70 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceMember.md @@ -0,0 +1,95 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceMember + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L13) + +## Properties + +### \_\_typename + +> **\_\_typename**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L23) + +*** + +### \_id + +> **\_id**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L24) + +*** + +### birthDate + +> **birthDate**: `Date` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L22) + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L14) + +*** + +### email + +> **email**: `` `${string}@${string}.${string}` `` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L17) + +*** + +### eventsAttended? + +> `optional` **eventsAttended**: `object`[] + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L19) + +#### \_id + +> **\_id**: `string` + +*** + +### firstName + +> **firstName**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L15) + +*** + +### gender + +> **gender**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L18) + +*** + +### lastName + +> **lastName**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L16) + +*** + +### tagsAssignedWith + +> **tagsAssignedWith**: `object` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L25) + +#### edges + +> **edges**: `object`[] diff --git a/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceRecurringEvent.md b/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceRecurringEvent.md new file mode 100644 index 0000000000..4eb1836556 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventAttendance/InterfaceEvents/interfaces/InterfaceRecurringEvent.md @@ -0,0 +1,87 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceRecurringEvent + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:69](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L69) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:70](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L70) + +*** + +### attendees + +> **attendees**: `object`[] + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:76](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L76) + +#### \_id + +> **\_id**: `string` + +#### gender + +> **gender**: `"MALE"` \| `"FEMALE"` \| `"OTHER"` \| `"PREFER_NOT_TO_SAY"` + +*** + +### endDate + +> **endDate**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:73](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L73) + +*** + +### frequency + +> **frequency**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:74](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L74) + +*** + +### interval + +> **interval**: `number` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:75](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L75) + +*** + +### isPublic + +> **isPublic**: `boolean` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:80](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L80) + +*** + +### isRegisterable + +> **isRegisterable**: `boolean` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:81](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L81) + +*** + +### startDate + +> **startDate**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:72](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L72) + +*** + +### title + +> **title**: `string` + +Defined in: [src/components/EventManagement/EventAttendance/InterfaceEvents.ts:71](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventAttendance/InterfaceEvents.ts#L71) diff --git a/docs/docs/auto-docs/components/EventManagement/EventRegistrant/EventRegistrants/functions/default.md b/docs/docs/auto-docs/components/EventManagement/EventRegistrant/EventRegistrants/functions/default.md new file mode 100644 index 0000000000..0f46085dd9 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventRegistrant/EventRegistrants/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/EventManagement/EventRegistrant/EventRegistrants.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventRegistrant/EventRegistrants.tsx#L34) + +Component to manage and display event registrant information +Includes adding new registrants and check-in functionality for registrants + +## Returns + +`JSX.Element` + +JSX element containing the event attendance interface diff --git a/docs/docs/auto-docs/components/EventManagement/EventRegistrant/Registrations.mocks/variables/REGISTRANTS_MOCKS.md b/docs/docs/auto-docs/components/EventManagement/EventRegistrant/Registrations.mocks/variables/REGISTRANTS_MOCKS.md new file mode 100644 index 0000000000..c10d67ee4c --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventRegistrant/Registrations.mocks/variables/REGISTRANTS_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: REGISTRANTS\_MOCKS + +> `const` **REGISTRANTS\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `eventId`: `string`; `id`: `undefined`; \}; \}; `result`: \{ `data`: \{ `event`: `undefined`; `getEventAttendeesByEventId`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `eventId`: `undefined`; `id`: `string`; \}; \}; `result`: \{ `data`: \{ `event`: \{ `attendees`: `object`[]; \}; `getEventAttendeesByEventId`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/EventManagement/EventRegistrant/Registrations.mocks.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventRegistrant/Registrations.mocks.ts#L3) diff --git a/docs/docs/auto-docs/components/EventManagement/EventRegistrant/Registrations.mocks/variables/REGISTRANTS_MOCKS_ERROR.md b/docs/docs/auto-docs/components/EventManagement/EventRegistrant/Registrations.mocks/variables/REGISTRANTS_MOCKS_ERROR.md new file mode 100644 index 0000000000..8c5acd3148 --- /dev/null +++ b/docs/docs/auto-docs/components/EventManagement/EventRegistrant/Registrations.mocks/variables/REGISTRANTS_MOCKS_ERROR.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Variable: REGISTRANTS\_MOCKS\_ERROR + +> `const` **REGISTRANTS\_MOCKS\_ERROR**: `object`[] + +Defined in: [src/components/EventManagement/EventRegistrant/Registrations.mocks.ts:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventManagement/EventRegistrant/Registrations.mocks.ts#L58) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_REGISTRANTS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.eventId + +> **eventId**: `string` = `'event123'` diff --git a/docs/docs/auto-docs/components/EventRegistrantsModal/AddOnSpotAttendee/functions/default.md b/docs/docs/auto-docs/components/EventRegistrantsModal/AddOnSpotAttendee/functions/default.md new file mode 100644 index 0000000000..4e9ddf3e00 --- /dev/null +++ b/docs/docs/auto-docs/components/EventRegistrantsModal/AddOnSpotAttendee/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/EventRegistrantsModal/AddOnSpotAttendee.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventRegistrantsModal/AddOnSpotAttendee.tsx#L21) + +Modal component for adding on-spot attendees to an event + +## Parameters + +### props + +[`InterfaceAddOnSpotAttendeeProps`](../../../../utils/interfaces/interfaces/InterfaceAddOnSpotAttendeeProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +Modal component with form for adding new attendee diff --git a/docs/docs/auto-docs/components/EventRegistrantsModal/EventRegistrantsModal/functions/EventRegistrantsModal.md b/docs/docs/auto-docs/components/EventRegistrantsModal/EventRegistrantsModal/functions/EventRegistrantsModal.md new file mode 100644 index 0000000000..8644dcecc7 --- /dev/null +++ b/docs/docs/auto-docs/components/EventRegistrantsModal/EventRegistrantsModal/functions/EventRegistrantsModal.md @@ -0,0 +1,24 @@ +[Admin Docs](/) + +*** + +# Function: EventRegistrantsModal() + +> **EventRegistrantsModal**(`props`): `Element` + +Defined in: [src/components/EventRegistrantsModal/EventRegistrantsModal.tsx:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventRegistrantsModal/EventRegistrantsModal.tsx#L44) + +Modal component for managing event registrants. +Allows adding and removing attendees from an event. + +## Parameters + +### props + +`ModalPropType` + +## Returns + +`Element` + +JSX element representing the modal. diff --git a/docs/docs/auto-docs/components/EventRegistrantsModal/EventRegistrantsWrapper/functions/EventRegistrantsWrapper.md b/docs/docs/auto-docs/components/EventRegistrantsModal/EventRegistrantsWrapper/functions/EventRegistrantsWrapper.md new file mode 100644 index 0000000000..73b0b42b73 --- /dev/null +++ b/docs/docs/auto-docs/components/EventRegistrantsModal/EventRegistrantsWrapper/functions/EventRegistrantsWrapper.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: EventRegistrantsWrapper() + +> **EventRegistrantsWrapper**(`__namedParameters`): `Element` + +Defined in: [src/components/EventRegistrantsModal/EventRegistrantsWrapper.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventRegistrantsModal/EventRegistrantsWrapper.tsx#L20) + +Wrapper component that displays a button to show the event registrants modal. + +## Parameters + +### \_\_namedParameters + +`PropType` + +## Returns + +`Element` + +JSX element representing the wrapper with a button to show the modal. diff --git a/docs/docs/auto-docs/components/EventStats/EventStats/functions/EventStats.md b/docs/docs/auto-docs/components/EventStats/EventStats/functions/EventStats.md new file mode 100644 index 0000000000..010833eb8f --- /dev/null +++ b/docs/docs/auto-docs/components/EventStats/EventStats/functions/EventStats.md @@ -0,0 +1,24 @@ +[Admin Docs](/) + +*** + +# Function: EventStats() + +> **EventStats**(`__namedParameters`): `Element` + +Defined in: [src/components/EventStats/EventStats.tsx:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventStats/EventStats.tsx#L27) + +Component that displays event statistics in a modal. +Shows feedback, reviews, and average rating for the event. + +## Parameters + +### \_\_namedParameters + +`ModalPropType` + +## Returns + +`Element` + +JSX element representing the event statistics modal. diff --git a/docs/docs/auto-docs/components/EventStats/EventStatsWrapper/functions/EventStatsWrapper.md b/docs/docs/auto-docs/components/EventStats/EventStatsWrapper/functions/EventStatsWrapper.md new file mode 100644 index 0000000000..5c30504e34 --- /dev/null +++ b/docs/docs/auto-docs/components/EventStats/EventStatsWrapper/functions/EventStatsWrapper.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: EventStatsWrapper() + +> **EventStatsWrapper**(`eventId`): `Element` + +Defined in: [src/components/EventStats/EventStatsWrapper.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventStats/EventStatsWrapper.tsx#L18) + +Wrapper component that displays a button to show event statistics. + +## Parameters + +### eventId + +`PropType` + +The ID of the event. + +## Returns + +`Element` + +JSX element representing the wrapper with a button to view event statistics. diff --git a/docs/docs/auto-docs/components/EventStats/Statistics/AverageRating/functions/AverageRating.md b/docs/docs/auto-docs/components/EventStats/Statistics/AverageRating/functions/AverageRating.md new file mode 100644 index 0000000000..3e0261cd1a --- /dev/null +++ b/docs/docs/auto-docs/components/EventStats/Statistics/AverageRating/functions/AverageRating.md @@ -0,0 +1,26 @@ +[Admin Docs](/) + +*** + +# Function: AverageRating() + +> **AverageRating**(`data`): `Element` + +Defined in: [src/components/EventStats/Statistics/AverageRating.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventStats/Statistics/AverageRating.tsx#L33) + +Component that displays the average rating for an event. +Shows a rating value and a star rating icon. + +## Parameters + +### data + +`ModalPropType` + +Data containing the average feedback score to be displayed. + +## Returns + +`Element` + +JSX element representing the average rating card with a star rating. diff --git a/docs/docs/auto-docs/components/EventStats/Statistics/Feedback/functions/FeedbackStats.md b/docs/docs/auto-docs/components/EventStats/Statistics/Feedback/functions/FeedbackStats.md new file mode 100644 index 0000000000..7cd8e8c07c --- /dev/null +++ b/docs/docs/auto-docs/components/EventStats/Statistics/Feedback/functions/FeedbackStats.md @@ -0,0 +1,26 @@ +[Admin Docs](/) + +*** + +# Function: FeedbackStats() + +> **FeedbackStats**(`data`): `Element` + +Defined in: [src/components/EventStats/Statistics/Feedback.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventStats/Statistics/Feedback.tsx#L34) + +Component that displays a pie chart of feedback ratings for an event. +Shows how many people gave each rating. + +## Parameters + +### data + +`ModalPropType` + +Data containing event feedback to be displayed in the chart. + +## Returns + +`Element` + +JSX element representing the feedback analysis card with a pie chart. diff --git a/docs/docs/auto-docs/components/EventStats/Statistics/Review/functions/ReviewStats.md b/docs/docs/auto-docs/components/EventStats/Statistics/Review/functions/ReviewStats.md new file mode 100644 index 0000000000..8f249a6a01 --- /dev/null +++ b/docs/docs/auto-docs/components/EventStats/Statistics/Review/functions/ReviewStats.md @@ -0,0 +1,26 @@ +[Admin Docs](/) + +*** + +# Function: ReviewStats() + +> **ReviewStats**(`data`): `Element` + +Defined in: [src/components/EventStats/Statistics/Review.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/EventStats/Statistics/Review.tsx#L30) + +Component that displays reviews for an event. +Shows a list of reviews with ratings and text. + +## Parameters + +### data + +`ModalPropType` + +Data containing event feedback to be displayed. + +## Returns + +`Element` + +JSX element representing the reviews card. diff --git a/docs/docs/auto-docs/components/GroupChatDetails/GroupChatDetails/functions/default.md b/docs/docs/auto-docs/components/GroupChatDetails/GroupChatDetails/functions/default.md new file mode 100644 index 0000000000..6d760d0921 --- /dev/null +++ b/docs/docs/auto-docs/components/GroupChatDetails/GroupChatDetails/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/GroupChatDetails/GroupChatDetails.tsx:120](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/GroupChatDetails/GroupChatDetails.tsx#L120) + +Component for displaying and managing group chat details. + +## Parameters + +### \_\_namedParameters + +`InterfaceGoroupChatDetailsProps` + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/components/HolidayCards/HolidayCard/functions/default.md b/docs/docs/auto-docs/components/HolidayCards/HolidayCard/functions/default.md new file mode 100644 index 0000000000..e28ab34632 --- /dev/null +++ b/docs/docs/auto-docs/components/HolidayCards/HolidayCard/functions/default.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/HolidayCards/HolidayCard.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/HolidayCards/HolidayCard.tsx#L15) + +Component that displays a card with the name of a holiday. + +## Parameters + +### props + +`InterfaceHolidayList` + +Contains the holidayName to be displayed on the card. + +## Returns + +`Element` + +JSX element representing a card with the holiday name. diff --git a/docs/docs/auto-docs/components/IconComponent/IconComponent/functions/default.md b/docs/docs/auto-docs/components/IconComponent/IconComponent/functions/default.md new file mode 100644 index 0000000000..48d3187173 --- /dev/null +++ b/docs/docs/auto-docs/components/IconComponent/IconComponent/functions/default.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/IconComponent/IconComponent.tsx:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/IconComponent/IconComponent.tsx#L39) + +Renders an icon based on the provided name. + +## Parameters + +### props + +[`InterfaceIconComponent`](../interfaces/InterfaceIconComponent.md) + +Contains the name of the icon and optional styles (fill, height, width). + +## Returns + +`Element` + +JSX element representing the icon. diff --git a/docs/docs/auto-docs/components/IconComponent/IconComponent/interfaces/InterfaceIconComponent.md b/docs/docs/auto-docs/components/IconComponent/IconComponent/interfaces/InterfaceIconComponent.md new file mode 100644 index 0000000000..16c5f8f615 --- /dev/null +++ b/docs/docs/auto-docs/components/IconComponent/IconComponent/interfaces/InterfaceIconComponent.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceIconComponent + +Defined in: [src/components/IconComponent/IconComponent.tsx:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/IconComponent/IconComponent.tsx#L27) + +## Properties + +### fill? + +> `optional` **fill**: `string` + +Defined in: [src/components/IconComponent/IconComponent.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/IconComponent/IconComponent.tsx#L29) + +*** + +### height? + +> `optional` **height**: `string` + +Defined in: [src/components/IconComponent/IconComponent.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/IconComponent/IconComponent.tsx#L30) + +*** + +### name + +> **name**: `string` + +Defined in: [src/components/IconComponent/IconComponent.tsx:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/IconComponent/IconComponent.tsx#L28) + +*** + +### width? + +> `optional` **width**: `string` + +Defined in: [src/components/IconComponent/IconComponent.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/IconComponent/IconComponent.tsx#L31) diff --git a/docs/docs/auto-docs/components/InfiniteScrollLoader/InfiniteScrollLoader/functions/default.md b/docs/docs/auto-docs/components/InfiniteScrollLoader/InfiniteScrollLoader/functions/default.md new file mode 100644 index 0000000000..119193e89c --- /dev/null +++ b/docs/docs/auto-docs/components/InfiniteScrollLoader/InfiniteScrollLoader/functions/default.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/InfiniteScrollLoader/InfiniteScrollLoader.tsx:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/InfiniteScrollLoader/InfiniteScrollLoader.tsx#L8) + +A Loader for infinite scroll. + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/components/LeftDrawer/LeftDrawer/functions/default.md b/docs/docs/auto-docs/components/LeftDrawer/LeftDrawer/functions/default.md new file mode 100644 index 0000000000..5a74576457 --- /dev/null +++ b/docs/docs/auto-docs/components/LeftDrawer/LeftDrawer/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/LeftDrawer/LeftDrawer.tsx:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawer/LeftDrawer.tsx#L24) + +LeftDrawer component for displaying navigation options. + +## Parameters + +### \_\_namedParameters + +[`InterfaceLeftDrawerProps`](../interfaces/InterfaceLeftDrawerProps.md) + +## Returns + +`Element` + +JSX element for the left navigation drawer. diff --git a/docs/docs/auto-docs/components/LeftDrawer/LeftDrawer/interfaces/InterfaceLeftDrawerProps.md b/docs/docs/auto-docs/components/LeftDrawer/LeftDrawer/interfaces/InterfaceLeftDrawerProps.md new file mode 100644 index 0000000000..a1be16ca7c --- /dev/null +++ b/docs/docs/auto-docs/components/LeftDrawer/LeftDrawer/interfaces/InterfaceLeftDrawerProps.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceLeftDrawerProps + +Defined in: [src/components/LeftDrawer/LeftDrawer.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawer/LeftDrawer.tsx#L12) + +## Properties + +### hideDrawer + +> **hideDrawer**: `boolean` + +Defined in: [src/components/LeftDrawer/LeftDrawer.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawer/LeftDrawer.tsx#L13) + +*** + +### setHideDrawer + +> **setHideDrawer**: `Dispatch`\<`SetStateAction`\<`boolean`\>\> + +Defined in: [src/components/LeftDrawer/LeftDrawer.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawer/LeftDrawer.tsx#L14) diff --git a/docs/docs/auto-docs/components/LeftDrawerOrg/LeftDrawerOrg/functions/default.md b/docs/docs/auto-docs/components/LeftDrawerOrg/LeftDrawerOrg/functions/default.md new file mode 100644 index 0000000000..34a21e1837 --- /dev/null +++ b/docs/docs/auto-docs/components/LeftDrawerOrg/LeftDrawerOrg/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/LeftDrawerOrg/LeftDrawerOrg.tsx:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx#L35) + +LeftDrawerOrg component for displaying organization details and navigation options. + +## Parameters + +### \_\_namedParameters + +[`InterfaceLeftDrawerProps`](../interfaces/InterfaceLeftDrawerProps.md) + +## Returns + +`Element` + +JSX element for the left navigation drawer with organization details. diff --git a/docs/docs/auto-docs/components/LeftDrawerOrg/LeftDrawerOrg/interfaces/InterfaceLeftDrawerProps.md b/docs/docs/auto-docs/components/LeftDrawerOrg/LeftDrawerOrg/interfaces/InterfaceLeftDrawerProps.md new file mode 100644 index 0000000000..ce801156d0 --- /dev/null +++ b/docs/docs/auto-docs/components/LeftDrawerOrg/LeftDrawerOrg/interfaces/InterfaceLeftDrawerProps.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceLeftDrawerProps + +Defined in: [src/components/LeftDrawerOrg/LeftDrawerOrg.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx#L18) + +## Properties + +### hideDrawer + +> **hideDrawer**: `boolean` + +Defined in: [src/components/LeftDrawerOrg/LeftDrawerOrg.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx#L21) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/components/LeftDrawerOrg/LeftDrawerOrg.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx#L19) + +*** + +### setHideDrawer + +> **setHideDrawer**: `Dispatch`\<`SetStateAction`\<`boolean`\>\> + +Defined in: [src/components/LeftDrawerOrg/LeftDrawerOrg.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx#L22) + +*** + +### targets + +> **targets**: [`TargetsType`](../../../../state/reducers/routesReducer/type-aliases/TargetsType.md)[] + +Defined in: [src/components/LeftDrawerOrg/LeftDrawerOrg.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LeftDrawerOrg/LeftDrawerOrg.tsx#L20) diff --git a/docs/docs/auto-docs/components/Loader/Loader/functions/default.md b/docs/docs/auto-docs/components/Loader/Loader/functions/default.md new file mode 100644 index 0000000000..5db0ccc088 --- /dev/null +++ b/docs/docs/auto-docs/components/Loader/Loader/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/Loader/Loader.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Loader/Loader.tsx#L17) + +Loader component for displaying a loading spinner. + +## Parameters + +### props + +`InterfaceLoaderProps` + +## Returns + +`Element` + +JSX element for a loading spinner. diff --git a/docs/docs/auto-docs/components/LoginPortalToggle/LoginPortalToggle/functions/default.md b/docs/docs/auto-docs/components/LoginPortalToggle/LoginPortalToggle/functions/default.md new file mode 100644 index 0000000000..78abe51e19 --- /dev/null +++ b/docs/docs/auto-docs/components/LoginPortalToggle/LoginPortalToggle/functions/default.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`onToggle`): `JSX.Element` + +Defined in: [src/components/LoginPortalToggle/LoginPortalToggle.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/LoginPortalToggle/LoginPortalToggle.tsx#L18) + +Component for toggling between admin and user login portals. + +## Parameters + +### onToggle + +`InterfaceLoginPortalToggleProps` + +Callback function to handle role changes ('admin' or 'user'). + +## Returns + +`JSX.Element` + +JSX element for login portal toggle. diff --git a/docs/docs/auto-docs/components/MemberDetail/EventsAttendedByMember/functions/default.md b/docs/docs/auto-docs/components/MemberDetail/EventsAttendedByMember/functions/default.md new file mode 100644 index 0000000000..44479bae34 --- /dev/null +++ b/docs/docs/auto-docs/components/MemberDetail/EventsAttendedByMember/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/MemberDetail/EventsAttendedByMember.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedByMember.tsx#L15) + +## Parameters + +### \_\_namedParameters + +`InterfaceEventsAttendedByMember` + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/MemberDetail/EventsAttendedCardItem/functions/default.md b/docs/docs/auto-docs/components/MemberDetail/EventsAttendedCardItem/functions/default.md new file mode 100644 index 0000000000..2b37c74a77 --- /dev/null +++ b/docs/docs/auto-docs/components/MemberDetail/EventsAttendedCardItem/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L26) + +## Parameters + +### props + +[`InterfaceCardItem`](../interfaces/InterfaceCardItem.md) + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/components/MemberDetail/EventsAttendedCardItem/interfaces/InterfaceCardItem.md b/docs/docs/auto-docs/components/MemberDetail/EventsAttendedCardItem/interfaces/InterfaceCardItem.md new file mode 100644 index 0000000000..dd6aced8f7 --- /dev/null +++ b/docs/docs/auto-docs/components/MemberDetail/EventsAttendedCardItem/interfaces/InterfaceCardItem.md @@ -0,0 +1,86 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCardItem + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L16) + +Card component to display individual event attendance information +Shows event details including title, date, location and organization + +## Param + +Organization ID + +## Param + +Event ID + +## Param + +Event start date + +## Param + +Event title + +## Param + +Event location + +## Properties + +### creator? + +> `optional` **creator**: `string` + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L20) + +*** + +### eventId? + +> `optional` **eventId**: `string` + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L22) + +*** + +### location? + +> `optional` **location**: `string` + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L21) + +*** + +### orgId? + +> `optional` **orgId**: `string` + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L23) + +*** + +### startdate? + +> `optional` **startdate**: `string` + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L19) + +*** + +### time? + +> `optional` **time**: `string` + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L18) + +*** + +### title + +> **title**: `string` + +Defined in: [src/components/MemberDetail/EventsAttendedCardItem.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedCardItem.tsx#L17) diff --git a/docs/docs/auto-docs/components/MemberDetail/EventsAttendedMemberModal/functions/default.md b/docs/docs/auto-docs/components/MemberDetail/EventsAttendedMemberModal/functions/default.md new file mode 100644 index 0000000000..f5f5aed6ef --- /dev/null +++ b/docs/docs/auto-docs/components/MemberDetail/EventsAttendedMemberModal/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/MemberDetail/EventsAttendedMemberModal.tsx:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/EventsAttendedMemberModal.tsx#L39) + +## Parameters + +### props + +`InterfaceEventsAttendedMemberModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/MemberDetail/customTableCell/functions/CustomTableCell.md b/docs/docs/auto-docs/components/MemberDetail/customTableCell/functions/CustomTableCell.md new file mode 100644 index 0000000000..5864ffde36 --- /dev/null +++ b/docs/docs/auto-docs/components/MemberDetail/customTableCell/functions/CustomTableCell.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: CustomTableCell() + +> **CustomTableCell**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/MemberDetail/customTableCell.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberDetail/customTableCell.tsx#L13) + +Custom table cell component to display event details + +## Parameters + +### props + +#### eventId + +`string` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +TableRow component with event information diff --git a/docs/docs/auto-docs/components/MemberRequestCard/MemberRequestCard/functions/default.md b/docs/docs/auto-docs/components/MemberRequestCard/MemberRequestCard/functions/default.md new file mode 100644 index 0000000000..e6705a54c6 --- /dev/null +++ b/docs/docs/auto-docs/components/MemberRequestCard/MemberRequestCard/functions/default.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/MemberRequestCard/MemberRequestCard.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/MemberRequestCard/MemberRequestCard.tsx#L31) + +Component for displaying and managing member requests. + +## Parameters + +### props + +`InterfaceMemberRequestCardProps` + +Properties for the member request card. + +## Returns + +`JSX.Element` + +JSX element for member request card. diff --git a/docs/docs/auto-docs/components/NotFound/NotFound/functions/default.md b/docs/docs/auto-docs/components/NotFound/NotFound/functions/default.md new file mode 100644 index 0000000000..d8d786dd48 --- /dev/null +++ b/docs/docs/auto-docs/components/NotFound/NotFound/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/NotFound/NotFound.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/NotFound/NotFound.tsx#L18) + +Component to display a "Not Found" message. + +## Parameters + +### props + +`InterfaceNotFoundProps` + +## Returns + +`JSX.Element` + +JSX element for the "Not Found" page. diff --git a/docs/docs/auto-docs/components/OrgAdminListCard/OrgAdminListCard/functions/default.md b/docs/docs/auto-docs/components/OrgAdminListCard/OrgAdminListCard/functions/default.md new file mode 100644 index 0000000000..4d01581988 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgAdminListCard/OrgAdminListCard/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/OrgAdminListCard/OrgAdminListCard.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgAdminListCard/OrgAdminListCard.tsx#L22) + +Component to confirm and handle the removal of an admin. + +## Parameters + +### props + +`InterfaceOrgPeopleListCardProps` + +## Returns + +`JSX.Element` + +JSX element for the removal confirmation modal. diff --git a/docs/docs/auto-docs/components/OrgContriCards/OrgContriCards/functions/default.md b/docs/docs/auto-docs/components/OrgContriCards/OrgContriCards/functions/default.md new file mode 100644 index 0000000000..b890243d55 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgContriCards/OrgContriCards/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/OrgContriCards/OrgContriCards.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgContriCards/OrgContriCards.tsx#L30) + +Component to display organization contribution cards + +This component shows the contribution details of a user in a card format. It includes +the user's name, email, contribution date, transaction ID, and the contribution amount. + +## Parameters + +### props + +`InterfaceOrgContriCardsProps` + +The properties passed to the component + +## Returns + +`JSX.Element` + +JSX.Element representing a contribution card diff --git a/docs/docs/auto-docs/components/OrgDelete/OrgDelete/functions/default.md b/docs/docs/auto-docs/components/OrgDelete/OrgDelete/functions/default.md new file mode 100644 index 0000000000..293b8ec3e9 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgDelete/OrgDelete/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/OrgDelete/OrgDelete.tsx:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgDelete/OrgDelete.tsx#L11) + +Component for displaying organization deletion message + +This component renders a message related to deleting an organization. + +## Returns + +`JSX.Element` + +JSX.Element representing the organization deletion message diff --git a/docs/docs/auto-docs/components/OrgListCard/OrgListCard/functions/default.md b/docs/docs/auto-docs/components/OrgListCard/OrgListCard/functions/default.md new file mode 100644 index 0000000000..1b38f4d6e7 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgListCard/OrgListCard/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/OrgListCard/OrgListCard.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgListCard/OrgListCard.tsx#L38) + +Component for displaying a list card for an organization + +This component renders a card that displays information about an organization, +including its name, address, members, and admins. It also provides a button +to manage the organization, navigating to the organization's dashboard. + +## Parameters + +### props + +[`InterfaceOrgListCardProps`](../interfaces/InterfaceOrgListCardProps.md) + +The properties passed to the component + +## Returns + +`JSX.Element` + +JSX.Element representing an organization list card diff --git a/docs/docs/auto-docs/components/OrgListCard/OrgListCard/interfaces/InterfaceOrgListCardProps.md b/docs/docs/auto-docs/components/OrgListCard/OrgListCard/interfaces/InterfaceOrgListCardProps.md new file mode 100644 index 0000000000..7713ac5664 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgListCard/OrgListCard/interfaces/InterfaceOrgListCardProps.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceOrgListCardProps + +Defined in: [src/components/OrgListCard/OrgListCard.tsx:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgListCard/OrgListCard.tsx#L24) + +Props for the OrgListCard component + +## Properties + +### data + +> **data**: [`InterfaceOrgConnectionInfoType`](../../../../utils/interfaces/interfaces/InterfaceOrgConnectionInfoType.md) + +Defined in: [src/components/OrgListCard/OrgListCard.tsx:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgListCard/OrgListCard.tsx#L25) diff --git a/docs/docs/auto-docs/components/OrgListCard/TruncatedText/functions/default.md b/docs/docs/auto-docs/components/OrgListCard/TruncatedText/functions/default.md new file mode 100644 index 0000000000..0520106ebe --- /dev/null +++ b/docs/docs/auto-docs/components/OrgListCard/TruncatedText/functions/default.md @@ -0,0 +1,45 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgListCard/TruncatedText.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgListCard/TruncatedText.tsx#L31) + +A React functional component that displays text and truncates it with an ellipsis (`...`) +if the text exceeds the available width or the `maxWidthOverride` value. + +The component adjusts the truncation dynamically based on the available space +or the `maxWidthOverride` value. It also listens for window resize events to reapply truncation. + +## Parameters + +### props + +`InterfaceTruncatedTextProps` + +The props for the component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +A heading element (`
`) containing the truncated or full text. + +## Example + +```tsx + +``` diff --git a/docs/docs/auto-docs/components/OrgListCard/useDebounce/functions/default.md b/docs/docs/auto-docs/components/OrgListCard/useDebounce/functions/default.md new file mode 100644 index 0000000000..3cc0197682 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgListCard/useDebounce/functions/default.md @@ -0,0 +1,59 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**\<`T`\>(`callback`, `delay`): `object` + +Defined in: [src/components/OrgListCard/useDebounce.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgListCard/useDebounce.tsx#L12) + +A custom React hook for debouncing a callback function. +It delays the execution of the callback until after a specified delay has elapsed +since the last time the debounced function was invoked. + +## Type Parameters + +• **T** *extends* (...`args`) => `void` + +## Parameters + +### callback + +`T` + +The function to debounce. + +### delay + +`number` + +The delay in milliseconds to wait before invoking the callback. + +## Returns + +`object` + +An object with the `debouncedCallback` function and a `cancel` method to clear the timeout. + +### cancel() + +> **cancel**: () => `void` + +#### Returns + +`void` + +### debouncedCallback() + +> **debouncedCallback**: (...`args`) => `void` + +#### Parameters + +##### args + +...`Parameters`\<`T`\> + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/components/OrgPeopleListCard/OrgPeopleListCard/functions/default.md b/docs/docs/auto-docs/components/OrgPeopleListCard/OrgPeopleListCard/functions/default.md new file mode 100644 index 0000000000..6949351c6f --- /dev/null +++ b/docs/docs/auto-docs/components/OrgPeopleListCard/OrgPeopleListCard/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/OrgPeopleListCard/OrgPeopleListCard.tsx:47](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx#L47) + +Component for displaying a modal to remove a member from an organization + +This component shows a modal that confirms the removal of a member from the organization. +It performs the removal action and displays success or error messages. + +## Parameters + +### props + +`InterfaceOrgPeopleListCardProps` + +The properties passed to the component + +## Returns + +`JSX.Element` + +JSX.Element representing the organization people list card modal diff --git a/docs/docs/auto-docs/components/OrgPostCard/DeletePostModal/functions/default.md b/docs/docs/auto-docs/components/OrgPostCard/DeletePostModal/functions/default.md new file mode 100644 index 0000000000..05c967e241 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgPostCard/DeletePostModal/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgPostCard/DeletePostModal.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgPostCard/DeletePostModal.tsx#L38) + +## Parameters + +### props + +`InterfaceDeletePostModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/OrgPostCard/OrgPostCard/functions/default.md b/docs/docs/auto-docs/components/OrgPostCard/OrgPostCard/functions/default.md new file mode 100644 index 0000000000..dd48b4d5fb --- /dev/null +++ b/docs/docs/auto-docs/components/OrgPostCard/OrgPostCard/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/OrgPostCard/OrgPostCard.tsx:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgPostCard/OrgPostCard.tsx#L53) + +## Parameters + +### props + +`InterfaceOrgPostCardProps` + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/CategoryModal/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/CategoryModal/functions/default.md new file mode 100644 index 0000000000..05b497cedc --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/CategoryModal/functions/default.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx#L41) + +A modal component for creating and editing action item categories. + +## Parameters + +### props + +[`InterfaceActionItemCategoryModal`](../interfaces/InterfaceActionItemCategoryModal.md) + +The properties passed to the component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The `CategoryModal` component. diff --git a/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/CategoryModal/interfaces/InterfaceActionItemCategoryModal.md b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/CategoryModal/interfaces/InterfaceActionItemCategoryModal.md new file mode 100644 index 0000000000..bad9b2f1df --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/CategoryModal/interfaces/InterfaceActionItemCategoryModal.md @@ -0,0 +1,72 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceActionItemCategoryModal + +Defined in: [src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx#L26) + +Props for the `CategoryModal` component. + +isOpen - The state of the modal. +hide - The function to hide the modal. +refetchCategories - The function to refetch the categories. +orgId - The organization ID. +category - The category to be edited. +mode - The mode of the modal. + +## Properties + +### category + +> **category**: [`InterfaceActionItemCategoryInfo`](../../../../../utils/interfaces/interfaces/InterfaceActionItemCategoryInfo.md) + +Defined in: [src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx#L31) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx#L28) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx#L27) + +*** + +### mode + +> **mode**: `"create"` \| `"edit"` + +Defined in: [src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx#L32) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx#L30) + +*** + +### refetchCategories() + +> **refetchCategories**: () => `void` + +Defined in: [src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/CategoryModal.tsx#L29) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategories/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategories/functions/default.md new file mode 100644 index 0000000000..d6b2e4aa22 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategories/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgSettings/ActionItemCategories/OrgActionItemCategories.tsx:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/OrgActionItemCategories.tsx#L61) + +Represents the component for managing organization action item categories. +This component allows creating, updating, enabling, and disabling action item categories. + +## Parameters + +### props + +`InterfaceActionItemCategoryProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS.md new file mode 100644 index 0000000000..2325e2bf44 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `isDisabled`: `undefined`; `name`: `undefined`; `orderBy`: `string`; `organizationId`: `string`; `where`: \{ `is_disabled`: `undefined`; `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `object`[]; `createActionItemCategory`: `undefined`; `updateActionItemCategory`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `isDisabled`: `undefined`; `name`: `undefined`; `orderBy`: `string`; `organizationId`: `string`; `where`: \{ `is_disabled`: `boolean`; `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `object`[]; `createActionItemCategory`: `undefined`; `updateActionItemCategory`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `isDisabled`: `boolean`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `undefined`; `createActionItemCategory`: \{ `_id`: `string`; \}; `updateActionItemCategory`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `string`; `isDisabled`: `boolean`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `undefined`; `createActionItemCategory`: `undefined`; `updateActionItemCategory`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks.ts:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks.ts#L8) diff --git a/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS_EMPTY.md b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS_EMPTY.md new file mode 100644 index 0000000000..6c20240235 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS_EMPTY.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_EMPTY + +> `const` **MOCKS\_EMPTY**: `object`[] + +Defined in: [src/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks.ts:236](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks.ts#L236) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ACTION_ITEM_CATEGORY_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orderBy + +> **orderBy**: `string` = `'createdAt_DESC'` + +#### request.variables.organizationId + +> **organizationId**: `string` = `'orgId'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.name\_contains + +> **name\_contains**: `string` = `''` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.actionItemCategoriesByOrganization + +> **actionItemCategoriesByOrganization**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..2e501c9758 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks/variables/MOCKS_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `isDisabled`: `undefined`; `name`: `undefined`; `orderBy`: `string`; `organizationId`: `string`; `where`: \{ `name_contains`: `string`; \}; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `isDisabled`: `boolean`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `string`; `where`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `string`; `isDisabled`: `boolean`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `undefined`; `where`: `undefined`; \}; \}; \})[] + +Defined in: [src/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks.ts:254](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/ActionItemCategories/OrgActionItemCategoryMocks.ts#L254) diff --git a/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryCreateModal/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryCreateModal/functions/default.md new file mode 100644 index 0000000000..fb5a0bfe49 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryCreateModal/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgSettings/AgendaItemCategories/AgendaCategoryCreateModal.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/AgendaItemCategories/AgendaCategoryCreateModal.tsx#L38) + +AgendaCategoryCreateModal component is used to create the agenda category details like name, description + +## Parameters + +### props + +`InterfaceAgendaCategoryCreateModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +returns the AgendaCategoryCreateModal component diff --git a/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryDeleteModal/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryDeleteModal/functions/default.md new file mode 100644 index 0000000000..869eaa651b --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryDeleteModal/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgSettings/AgendaItemCategories/AgendaCategoryDeleteModal.tsx:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/AgendaItemCategories/AgendaCategoryDeleteModal.tsx#L25) + +AgendaCategoryDeleteModal component is used to delete the agenda category + +## Parameters + +### props + +`InterfaceAgendaCategoryDeleteModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +returns the AgendaCategoryDeleteModal component diff --git a/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryPreviewModal/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryPreviewModal/functions/default.md new file mode 100644 index 0000000000..93963148fb --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryPreviewModal/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgSettings/AgendaItemCategories/AgendaCategoryPreviewModal.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/AgendaItemCategories/AgendaCategoryPreviewModal.tsx#L38) + +AgendaCategoryPreviewModal component is used to preview the agenda category details like name, description, createdBy + +## Parameters + +### props + +`InterfaceAgendaCategoryPreviewModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +returns the AgendaCategoryPreviewModal component diff --git a/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryUpdateModal/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryUpdateModal/functions/default.md new file mode 100644 index 0000000000..fb9ab6867c --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/AgendaCategoryUpdateModal/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgSettings/AgendaItemCategories/AgendaCategoryUpdateModal.tsx:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/AgendaItemCategories/AgendaCategoryUpdateModal.tsx#L40) + +AgendaCategoryUpdateModal component is used to update the agenda category details like name, description + +## Parameters + +### props + +`InterfaceAgendaCategoryUpdateModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +returns the AgendaCategoryUpdateModal component diff --git a/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategory/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategory/functions/default.md new file mode 100644 index 0000000000..21ec54c72d --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategory/functions/default.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategory.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategory.tsx#L31) + +Component for managing and displaying agenda item categories within an organization. + +This component allows users to view, create, and manage agenda item categories. It includes functionality for displaying categories, handling creation, and managing modal visibility. + +## Parameters + +### props + +`InterfaceAgendaCategoryProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered component. diff --git a/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks/variables/MOCKS_ERROR_AGENDA_ITEM_CATEGORY_LIST_QUERY.md b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks/variables/MOCKS_ERROR_AGENDA_ITEM_CATEGORY_LIST_QUERY.md new file mode 100644 index 0000000000..09da67500b --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks/variables/MOCKS_ERROR_AGENDA_ITEM_CATEGORY_LIST_QUERY.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_AGENDA\_ITEM\_CATEGORY\_LIST\_QUERY + +> `const` **MOCKS\_ERROR\_AGENDA\_ITEM\_CATEGORY\_LIST\_QUERY**: `object`[] + +Defined in: [src/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks.ts#L5) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `AGENDA_ITEM_CATEGORY_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.organizationId + +> **organizationId**: `string` = `'123'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.name\_contains + +> **name\_contains**: `string` = `''` diff --git a/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks/variables/MOCKS_ERROR_MUTATION.md b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks/variables/MOCKS_ERROR_MUTATION.md new file mode 100644 index 0000000000..c6dce6c817 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks/variables/MOCKS_ERROR_MUTATION.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_MUTATION + +> `const` **MOCKS\_ERROR\_MUTATION**: (\{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: `undefined`; `organizationId`: `string`; `where`: \{ `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `agendaItemCategoriesByOrganization`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: \{ `description`: `string`; `name`: `string`; `organizationId`: `string`; \}; `organizationId`: `undefined`; `where`: `undefined`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks.ts:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryErrorMocks.ts#L20) diff --git a/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryMocks/variables/MOCKS.md new file mode 100644 index 0000000000..11966bb546 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: `undefined`; `organizationId`: `string`; `where`: \{ `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `agendaItemCategoriesByOrganization`: `object`[]; `createAgendaCategory`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `input`: \{ `description`: `string`; `name`: `string`; `organizationId`: `string`; \}; `organizationId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `agendaItemCategoriesByOrganization`: `undefined`; `createAgendaCategory`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryMocks.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/AgendaItemCategories/OrganizationAgendaCategoryMocks.ts#L5) diff --git a/docs/docs/auto-docs/components/OrgSettings/General/DeleteOrg/DeleteOrg/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/General/DeleteOrg/DeleteOrg/functions/default.md new file mode 100644 index 0000000000..7b9a138313 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/General/DeleteOrg/DeleteOrg/functions/default.md @@ -0,0 +1,22 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/OrgSettings/General/DeleteOrg/DeleteOrg.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/General/DeleteOrg/DeleteOrg.tsx#L26) + +A component for deleting an organization. + +It displays a card with a delete button. When the delete button is clicked, +a modal appears asking for confirmation. Depending on the type of organization +(sample or regular), it performs the delete operation and shows appropriate +success or error messages. + +## Returns + +`JSX.Element` + +JSX.Element - The rendered component with delete functionality. diff --git a/docs/docs/auto-docs/components/OrgSettings/General/GeneralSettings/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/General/GeneralSettings/functions/default.md new file mode 100644 index 0000000000..25959fa359 --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/General/GeneralSettings/functions/default.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/OrgSettings/General/GeneralSettings.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/General/GeneralSettings.tsx#L23) + +A component for displaying general settings for an organization. + +## Parameters + +### props + +`InterfaceGeneralSettingsProps` + +The properties passed to the component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The `GeneralSettings` component. diff --git a/docs/docs/auto-docs/components/OrgSettings/General/OrgProfileFieldSettings/OrgProfileFieldSettings/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/General/OrgProfileFieldSettings/OrgProfileFieldSettings/functions/default.md new file mode 100644 index 0000000000..955a6bae8d --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/General/OrgProfileFieldSettings/OrgProfileFieldSettings/functions/default.md @@ -0,0 +1,20 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/OrgSettings/General/OrgProfileFieldSettings/OrgProfileFieldSettings.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/General/OrgProfileFieldSettings/OrgProfileFieldSettings.tsx#L26) + +Component for managing organization profile field settings + +This component allows adding and removing custom fields for an organization. +It displays existing custom fields and provides a form to add new fields. + +## Returns + +`Element` + +JSX.Element representing the organization profile field settings diff --git a/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdate/functions/default.md b/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdate/functions/default.md new file mode 100644 index 0000000000..63cbeffbcf --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdate/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx#L36) + +Component for updating organization details. + +This component allows users to update the organization's name, description, address, +visibility settings, and upload an image. It uses GraphQL mutations and queries to +fetch and update data. + +## Parameters + +### props + +`InterfaceOrgUpdateProps` + +Component props containing the organization ID. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS.md new file mode 100644 index 0000000000..3b86dffe5b --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `address`: `undefined`; `description`: `undefined`; `id`: `string`; `image`: `undefined`; `name`: `undefined`; `userRegistrationRequired`: `undefined`; `visibleInSearch`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; `updateOrganization`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `address`: \{ `city`: `string`; `countryCode`: `string`; `dependentLocality`: `string`; `line1`: `string`; `line2`: `string`; `postalCode`: `string`; `sortingCode`: `string`; `state`: `string`; \}; `description`: `string`; `id`: `string`; `image`: `File`; `name`: `string`; `userRegistrationRequired`: `boolean`; `visibleInSearch`: `boolean`; \}; \}; `result`: \{ `data`: \{ `organizations`: `undefined`; `updateOrganization`: \{ `_id`: `string`; `address`: \{ `city`: `string`; `countryCode`: `string`; `dependentLocality`: `string`; `line1`: `string`; `line2`: `string`; `postalCode`: `string`; `sortingCode`: `string`; `state`: `string`; \}; `description`: `string`; `name`: `string`; `userRegistrationRequired`: `boolean`; `visibleInSearch`: `boolean`; \}; \}; \}; \})[] + +Defined in: [src/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks.ts#L4) diff --git a/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS_ERROR_ORGLIST.md b/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS_ERROR_ORGLIST.md new file mode 100644 index 0000000000..144a218cfd --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS_ERROR_ORGLIST.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_ORGLIST + +> `const` **MOCKS\_ERROR\_ORGLIST**: `object`[] + +Defined in: [src/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks.ts:110](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks.ts#L110) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ORGANIZATIONS_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.id + +> **id**: `string` = `'123'` diff --git a/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS_ERROR_UPDATE_ORGLIST.md b/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS_ERROR_UPDATE_ORGLIST.md new file mode 100644 index 0000000000..aafa1020ad --- /dev/null +++ b/docs/docs/auto-docs/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks/variables/MOCKS_ERROR_UPDATE_ORGLIST.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_UPDATE\_ORGLIST + +> `const` **MOCKS\_ERROR\_UPDATE\_ORGLIST**: (\{ `erorr`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `address`: `undefined`; `description`: `undefined`; `id`: `string`; `image`: `undefined`; `name`: `undefined`; `userRegistrationRequired`: `undefined`; `visibleInSearch`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `erorr`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `address`: \{ `city`: `string`; `countryCode`: `string`; `dependentLocality`: `string`; `line1`: `string`; `line2`: `string`; `postalCode`: `string`; `sortingCode`: `string`; `state`: `string`; \}; `description`: `string`; `id`: `string`; `image`: `File`; `name`: `string`; `userRegistrationRequired`: `boolean`; `visibleInSearch`: `boolean`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks.ts:120](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrgSettings/General/OrgUpdate/OrgUpdateMocks.ts#L120) diff --git a/docs/docs/auto-docs/components/OrganizationCard/OrganizationCard/functions/default.md b/docs/docs/auto-docs/components/OrganizationCard/OrganizationCard/functions/default.md new file mode 100644 index 0000000000..5a31c3d42f --- /dev/null +++ b/docs/docs/auto-docs/components/OrganizationCard/OrganizationCard/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/OrganizationCard/OrganizationCard.tsx:73](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationCard/OrganizationCard.tsx#L73) + +Component to display an organization's card with its image and owner details. +Displays an organization card with options to join or manage membership. + +Shows the organization's name, image, description, address, number of admins and members, +and provides buttons for joining, withdrawing membership requests, or visiting the organization page. + +## Parameters + +### \_\_namedParameters + +`InterfaceOrganizationCardProps` + +## Returns + +`JSX.Element` + +JSX element representing the organization card. + +The organization card component. diff --git a/docs/docs/auto-docs/components/OrganizationCardStart/OrganizationCardStart/functions/default.md b/docs/docs/auto-docs/components/OrganizationCardStart/OrganizationCardStart/functions/default.md new file mode 100644 index 0000000000..7de7d98414 --- /dev/null +++ b/docs/docs/auto-docs/components/OrganizationCardStart/OrganizationCardStart/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/OrganizationCardStart/OrganizationCardStart.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationCardStart/OrganizationCardStart.tsx#L18) + +Component to display a simplified card for an organization. + +## Parameters + +### props + +`InterfaceOrganizationCardStartProps` + +## Returns + +`JSX.Element` + +JSX element representing the organization card. diff --git a/docs/docs/auto-docs/components/OrganizationDashCards/CardItem/functions/default.md b/docs/docs/auto-docs/components/OrganizationDashCards/CardItem/functions/default.md new file mode 100644 index 0000000000..790b34aaf7 --- /dev/null +++ b/docs/docs/auto-docs/components/OrganizationDashCards/CardItem/functions/default.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L35) + +Component to display a card item with various types such as Event, Post, or MembershipRequest. + +## Parameters + +### props + +[`InterfaceCardItem`](../interfaces/InterfaceCardItem.md) + +Props for the CardItem component. + +## Returns + +`Element` + +JSX element representing the card item. diff --git a/docs/docs/auto-docs/components/OrganizationDashCards/CardItem/interfaces/InterfaceCardItem.md b/docs/docs/auto-docs/components/OrganizationDashCards/CardItem/interfaces/InterfaceCardItem.md new file mode 100644 index 0000000000..580e6b1245 --- /dev/null +++ b/docs/docs/auto-docs/components/OrganizationDashCards/CardItem/interfaces/InterfaceCardItem.md @@ -0,0 +1,81 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCardItem + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L14) + +Interface for the CardItem component's props. + +## Properties + +### creator? + +> `optional` **creator**: `object` + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L20) + +#### \_id + +> **\_id**: `string` + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### enddate? + +> `optional` **enddate**: `string` + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L19) + +*** + +### location? + +> `optional` **location**: `string` + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L26) + +*** + +### startdate? + +> `optional` **startdate**: `string` + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L18) + +*** + +### time? + +> `optional` **time**: `string` + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L17) + +*** + +### title + +> **title**: `string` + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L16) + +*** + +### type + +> **type**: `"Event"` \| `"Post"` \| `"MembershipRequest"` + +Defined in: [src/components/OrganizationDashCards/CardItem.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItem.tsx#L15) diff --git a/docs/docs/auto-docs/components/OrganizationDashCards/CardItemLoading/functions/default.md b/docs/docs/auto-docs/components/OrganizationDashCards/CardItemLoading/functions/default.md new file mode 100644 index 0000000000..7a32225085 --- /dev/null +++ b/docs/docs/auto-docs/components/OrganizationDashCards/CardItemLoading/functions/default.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/OrganizationDashCards/CardItemLoading.tsx:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/CardItemLoading.tsx#L8) + +CardItemLoading component is a loading state for the card item. It is used when the data is being fetched. + +## Returns + +`Element` + +JSX.Element diff --git a/docs/docs/auto-docs/components/OrganizationDashCards/DashboardCard/functions/default.md b/docs/docs/auto-docs/components/OrganizationDashCards/DashboardCard/functions/default.md new file mode 100644 index 0000000000..37be9213a5 --- /dev/null +++ b/docs/docs/auto-docs/components/OrganizationDashCards/DashboardCard/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/OrganizationDashCards/DashboardCard.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/DashboardCard.tsx#L13) + +Dashboard card component is used to display the card with icon, title and count. + +## Parameters + +### props + +#### count + +`number` + +#### icon + +`ReactNode` + +#### title + +`string` + +## Returns + +`Element` + +Dashboard card component diff --git a/docs/docs/auto-docs/components/OrganizationDashCards/DashboardCardLoading/functions/default.md b/docs/docs/auto-docs/components/OrganizationDashCards/DashboardCardLoading/functions/default.md new file mode 100644 index 0000000000..4df321a1c1 --- /dev/null +++ b/docs/docs/auto-docs/components/OrganizationDashCards/DashboardCardLoading/functions/default.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/OrganizationDashCards/DashboardCardLoading.tsx:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationDashCards/DashboardCardLoading.tsx#L10) + +Dashboard card loading component is a loading state for the dashboard card. It is used when the data is being fetched. + +## Returns + +`Element` + +JSX.Element diff --git a/docs/docs/auto-docs/components/OrganizationScreen/OrganizationScreen/functions/default.md b/docs/docs/auto-docs/components/OrganizationScreen/OrganizationScreen/functions/default.md new file mode 100644 index 0000000000..b5aff33087 --- /dev/null +++ b/docs/docs/auto-docs/components/OrganizationScreen/OrganizationScreen/functions/default.md @@ -0,0 +1,22 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/OrganizationScreen/OrganizationScreen.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/OrganizationScreen/OrganizationScreen.tsx#L37) + +Component for the organization screen + +This component displays the organization screen and handles the layout +including a side drawer, header, and main content area. It adjusts +the layout based on the screen size and shows the appropriate content +based on the route. + +## Returns + +`Element` + +JSX.Element representing the organization screen diff --git a/docs/docs/auto-docs/components/Pagination/Pagination/functions/default.md b/docs/docs/auto-docs/components/Pagination/Pagination/functions/default.md new file mode 100644 index 0000000000..095ccee953 --- /dev/null +++ b/docs/docs/auto-docs/components/Pagination/Pagination/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/Pagination/Pagination.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Pagination/Pagination.tsx#L30) + +Pagination component for navigating between pages in a table. + +This component provides buttons to navigate to the first page, previous page, +next page, and last page of a table. The visibility and functionality of the +buttons are controlled based on the current page and the total number of items. + +## Parameters + +### props + +`InterfaceTablePaginationActionsProps` + +Component properties. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/components/PaginationList/PaginationList/functions/default.md b/docs/docs/auto-docs/components/PaginationList/PaginationList/functions/default.md new file mode 100644 index 0000000000..b9713a16d1 --- /dev/null +++ b/docs/docs/auto-docs/components/PaginationList/PaginationList/functions/default.md @@ -0,0 +1,22 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/PaginationList/PaginationList.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/PaginationList/PaginationList.tsx#L31) + +A component that provides pagination controls for a table. +It uses different pagination styles based on screen size. + +## Parameters + +### \_\_namedParameters + +`InterfacePropsInterface` + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/components/ProfileDropdown/ProfileDropdown/functions/default.md b/docs/docs/auto-docs/components/ProfileDropdown/ProfileDropdown/functions/default.md new file mode 100644 index 0000000000..b6d66bad21 --- /dev/null +++ b/docs/docs/auto-docs/components/ProfileDropdown/ProfileDropdown/functions/default.md @@ -0,0 +1,24 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/ProfileDropdown/ProfileDropdown.tsx:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/ProfileDropdown/ProfileDropdown.tsx#L24) + +Renders a profile dropdown menu for the user. + +This component displays the user's profile picture or an avatar, their name (truncated if necessary), +and their role (SuperAdmin, Admin, or User). It provides options to view the profile or log out. + +- If a user image is available, it displays that; otherwise, it shows an avatar. +- The displayed name is truncated if it exceeds a specified length. +- The logout function revokes the refresh token and clears local storage before redirecting to the home page. + +## Returns + +`Element` + +JSX.Element - The profile dropdown menu. diff --git a/docs/docs/auto-docs/components/RecurrenceOptions/CustomRecurrenceModal/functions/default.md b/docs/docs/auto-docs/components/RecurrenceOptions/CustomRecurrenceModal/functions/default.md new file mode 100644 index 0000000000..03ab0fbf82 --- /dev/null +++ b/docs/docs/auto-docs/components/RecurrenceOptions/CustomRecurrenceModal/functions/default.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/RecurrenceOptions/CustomRecurrenceModal.tsx:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/RecurrenceOptions/CustomRecurrenceModal.tsx#L54) + +A modal for setting up custom recurrence rules. + +This component allows users to configure how often an event should repeat, and +when it should end. It includes options for daily, weekly, monthly, and yearly +recurrence, as well as specific end options. + +## Parameters + +### props + +`InterfaceCustomRecurrenceModalProps` + +The props object containing various configurations and state management functions. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The JSX element representing the CustomRecurrenceModal. diff --git a/docs/docs/auto-docs/components/RecurrenceOptions/RecurrenceOptions/functions/default.md b/docs/docs/auto-docs/components/RecurrenceOptions/RecurrenceOptions/functions/default.md new file mode 100644 index 0000000000..f40fbcc6fb --- /dev/null +++ b/docs/docs/auto-docs/components/RecurrenceOptions/RecurrenceOptions/functions/default.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/RecurrenceOptions/RecurrenceOptions.tsx:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/RecurrenceOptions/RecurrenceOptions.tsx#L49) + +Renders a dropdown menu for selecting recurrence options. + +This component allows users to choose various recurrence rules (daily, weekly, monthly, yearly) for a given event. +It displays the current recurrence rule text and provides options to modify it, including a custom recurrence modal. + +The dropdown menu includes options for: +- Daily recurrence +- Weekly recurrence (including a specific day of the week or Monday to Friday) +- Monthly recurrence (on a specific day or occurrence) +- Yearly recurrence +- Custom recurrence (opens a modal for advanced settings) + +The displayed recurrence rule text is truncated if it exceeds a specified length, with an overlay showing the full text on hover. + +## Parameters + +### props + +`InterfaceRecurrenceOptionsProps` + +The properties to configure the recurrence options dropdown. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +JSX.Element - The recurrence options dropdown and the custom recurrence modal. diff --git a/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItem/functions/default.md b/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItem/functions/default.md new file mode 100644 index 0000000000..541f96cd3e --- /dev/null +++ b/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItem/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/RequestsTableItem/RequestsTableItem.tsx:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/RequestsTableItem/RequestsTableItem.tsx#L45) + +Renders a table row item for a membership request. + +This component displays user details and provides buttons to accept or reject +the membership request. It also handles showing success or error messages using +toast notifications. + +## Parameters + +### props + +`Props` + +The props object containing request details, index, and state reset function. + +## Returns + +`Element` + +The JSX element representing the RequestsTableItem. diff --git a/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItem/interfaces/InterfaceRequestsListItem.md b/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItem/interfaces/InterfaceRequestsListItem.md new file mode 100644 index 0000000000..ddf79933bf --- /dev/null +++ b/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItem/interfaces/InterfaceRequestsListItem.md @@ -0,0 +1,37 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceRequestsListItem + +Defined in: [src/components/RequestsTableItem/RequestsTableItem.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/RequestsTableItem/RequestsTableItem.tsx#L16) + +Represents a membership request in the requests table. + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/components/RequestsTableItem/RequestsTableItem.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/RequestsTableItem/RequestsTableItem.tsx#L17) + +*** + +### user + +> **user**: `object` + +Defined in: [src/components/RequestsTableItem/RequestsTableItem.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/RequestsTableItem/RequestsTableItem.tsx#L18) + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` diff --git a/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItemMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItemMocks/variables/MOCKS.md new file mode 100644 index 0000000000..e9ba426960 --- /dev/null +++ b/docs/docs/auto-docs/components/RequestsTableItem/RequestsTableItemMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `acceptMembershipRequest`: \{ `_id`: `string`; \}; `rejectMembershipRequest`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `acceptMembershipRequest`: `undefined`; `rejectMembershipRequest`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/components/RequestsTableItem/RequestsTableItemMocks.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/RequestsTableItem/RequestsTableItemMocks.ts#L6) diff --git a/docs/docs/auto-docs/components/SecuredRoute/SecuredRoute/functions/default.md b/docs/docs/auto-docs/components/SecuredRoute/SecuredRoute/functions/default.md new file mode 100644 index 0000000000..16ae1e8403 --- /dev/null +++ b/docs/docs/auto-docs/components/SecuredRoute/SecuredRoute/functions/default.md @@ -0,0 +1,20 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/SecuredRoute/SecuredRoute.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/SecuredRoute/SecuredRoute.tsx#L16) + +A route guard that checks if the user is logged in and has the necessary permissions. + +If the user is logged in and has an admin role set, it renders the child routes. +Otherwise, it redirects to the home page or shows a 404 page if admin role is not set. + +## Returns + +`Element` + +The JSX element representing the secured route. diff --git a/docs/docs/auto-docs/components/SuperAdminScreen/SuperAdminScreen/functions/default.md b/docs/docs/auto-docs/components/SuperAdminScreen/SuperAdminScreen/functions/default.md new file mode 100644 index 0000000000..31b98bab95 --- /dev/null +++ b/docs/docs/auto-docs/components/SuperAdminScreen/SuperAdminScreen/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/SuperAdminScreen/SuperAdminScreen.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/SuperAdminScreen/SuperAdminScreen.tsx#L15) + +The SuperAdminScreen component manages the layout for the Super Admin screen, +including handling the sidebar visibility and page title based on the current route. + +## Returns + +`Element` + +The JSX element representing the Super Admin screen layout. diff --git a/docs/docs/auto-docs/components/TableLoader/TableLoader/functions/default.md b/docs/docs/auto-docs/components/TableLoader/TableLoader/functions/default.md new file mode 100644 index 0000000000..136e50ad13 --- /dev/null +++ b/docs/docs/auto-docs/components/TableLoader/TableLoader/functions/default.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/TableLoader/TableLoader.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TableLoader/TableLoader.tsx#L23) + +The TableLoader component displays a loading skeleton for tables. +It shows a specified number of rows and columns as placeholders +with a shimmering effect to indicate loading content. + +## Parameters + +### props + +[`InterfaceTableLoader`](../interfaces/InterfaceTableLoader.md) + +The properties for the TableLoader component. + +## Returns + +`Element` + +The JSX element representing the table loader. diff --git a/docs/docs/auto-docs/components/TableLoader/TableLoader/interfaces/InterfaceTableLoader.md b/docs/docs/auto-docs/components/TableLoader/TableLoader/interfaces/InterfaceTableLoader.md new file mode 100644 index 0000000000..52ef3fa29b --- /dev/null +++ b/docs/docs/auto-docs/components/TableLoader/TableLoader/interfaces/InterfaceTableLoader.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceTableLoader + +Defined in: [src/components/TableLoader/TableLoader.tsx:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TableLoader/TableLoader.tsx#L5) + +## Properties + +### headerTitles? + +> `optional` **headerTitles**: `string`[] + +Defined in: [src/components/TableLoader/TableLoader.tsx:7](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TableLoader/TableLoader.tsx#L7) + +*** + +### noOfCols? + +> `optional` **noOfCols**: `number` + +Defined in: [src/components/TableLoader/TableLoader.tsx:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TableLoader/TableLoader.tsx#L8) + +*** + +### noOfRows + +> **noOfRows**: `number` + +Defined in: [src/components/TableLoader/TableLoader.tsx:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TableLoader/TableLoader.tsx#L6) diff --git a/docs/docs/auto-docs/components/TagActions/TagActions/functions/default.md b/docs/docs/auto-docs/components/TagActions/TagActions/functions/default.md new file mode 100644 index 0000000000..14fd6494ed --- /dev/null +++ b/docs/docs/auto-docs/components/TagActions/TagActions/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/TagActions/TagActions.tsx:64](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActions.tsx#L64) + +## Parameters + +### props + +[`InterfaceTagActionsProps`](../interfaces/InterfaceTagActionsProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/TagActions/TagActions/interfaces/InterfaceTagActionsProps.md b/docs/docs/auto-docs/components/TagActions/TagActions/interfaces/InterfaceTagActionsProps.md new file mode 100644 index 0000000000..4fd7418c8e --- /dev/null +++ b/docs/docs/auto-docs/components/TagActions/TagActions/interfaces/InterfaceTagActionsProps.md @@ -0,0 +1,73 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceTagActionsProps + +Defined in: [src/components/TagActions/TagActions.tsx:56](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActions.tsx#L56) + +Props for the `AssignToTags` component. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.modalHeader` +- `.inputField` +- `.removeButton` +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Properties + +### hideTagActionsModal() + +> **hideTagActionsModal**: () => `void` + +Defined in: [src/components/TagActions/TagActions.tsx:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActions.tsx#L58) + +#### Returns + +`void` + +*** + +### t + +> **t**: `TFunction`\<`"manageTag"`\> + +Defined in: [src/components/TagActions/TagActions.tsx:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActions.tsx#L60) + +*** + +### tagActionsModalIsOpen + +> **tagActionsModalIsOpen**: `boolean` + +Defined in: [src/components/TagActions/TagActions.tsx:57](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActions.tsx#L57) + +*** + +### tagActionType + +> **tagActionType**: [`TagActionType`](../../../../utils/organizationTagsUtils/type-aliases/TagActionType.md) + +Defined in: [src/components/TagActions/TagActions.tsx:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActions.tsx#L59) + +*** + +### tCommon + +> **tCommon**: `TFunction`\<`"common"`\> + +Defined in: [src/components/TagActions/TagActions.tsx:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActions.tsx#L61) diff --git a/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..a897b815ce --- /dev/null +++ b/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `currentTagId`: `undefined`; `first`: `number`; `id`: `string`; `selectedTagIds`: `undefined`; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `assignToUserTags`: `undefined`; `getChildTags`: `undefined`; `organizations`: `object`[]; `removeFromUserTags`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `currentTagId`: `undefined`; `first`: `number`; `id`: `string`; `selectedTagIds`: `undefined`; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `assignToUserTags`: `undefined`; `getChildTags`: `undefined`; `organizations`: `object`[]; `removeFromUserTags`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `currentTagId`: `undefined`; `first`: `number`; `id`: `string`; `selectedTagIds`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `assignToUserTags`: `undefined`; `getChildTags`: \{ `ancestorTags`: `any`[]; `childTags`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; `name`: `string`; \}; `organizations`: `undefined`; `removeFromUserTags`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `currentTagId`: `undefined`; `first`: `number`; `id`: `string`; `selectedTagIds`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `assignToUserTags`: `undefined`; `getChildTags`: \{ `ancestorTags`: `any`[]; `childTags`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; `name`: `string`; \}; `organizations`: `undefined`; `removeFromUserTags`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `currentTagId`: `string`; `first`: `undefined`; `id`: `undefined`; `selectedTagIds`: `string`[]; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `assignToUserTags`: \{ `_id`: `string`; \}; `getChildTags`: `undefined`; `organizations`: `undefined`; `removeFromUserTags`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `currentTagId`: `string`; `first`: `undefined`; `id`: `undefined`; `selectedTagIds`: `string`[]; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `assignToUserTags`: `undefined`; `getChildTags`: `undefined`; `organizations`: `undefined`; `removeFromUserTags`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/components/TagActions/TagActionsMocks.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActionsMocks.ts#L9) diff --git a/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS_ERROR_ORGANIZATION_TAGS_QUERY.md b/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS_ERROR_ORGANIZATION_TAGS_QUERY.md new file mode 100644 index 0000000000..5c6fd3b667 --- /dev/null +++ b/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS_ERROR_ORGANIZATION_TAGS_QUERY.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_ORGANIZATION\_TAGS\_QUERY + +> `const` **MOCKS\_ERROR\_ORGANIZATION\_TAGS\_QUERY**: `object`[] + +Defined in: [src/components/TagActions/TagActionsMocks.ts:622](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActionsMocks.ts#L622) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ORGANIZATION_USER_TAGS_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'123'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.name + +> **name**: `object` + +#### request.variables.where.name.starts\_with + +> **starts\_with**: `string` = `''` diff --git a/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS_ERROR_SUBTAGS_QUERY.md b/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS_ERROR_SUBTAGS_QUERY.md new file mode 100644 index 0000000000..a232a27660 --- /dev/null +++ b/docs/docs/auto-docs/components/TagActions/TagActionsMocks/variables/MOCKS_ERROR_SUBTAGS_QUERY.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_SUBTAGS\_QUERY + +> `const` **MOCKS\_ERROR\_SUBTAGS\_QUERY**: (\{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `id`: `string`; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `id`: `string`; `where`: `undefined`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/components/TagActions/TagActionsMocks.ts:636](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagActionsMocks.ts#L636) diff --git a/docs/docs/auto-docs/components/TagActions/TagNode/functions/default.md b/docs/docs/auto-docs/components/TagActions/TagNode/functions/default.md new file mode 100644 index 0000000000..4da8fcd2b1 --- /dev/null +++ b/docs/docs/auto-docs/components/TagActions/TagNode/functions/default.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/TagActions/TagNode.tsx:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagNode.tsx#L45) + +Renders the Tags which can be expanded to list subtags. + +## Parameters + +### props + +`InterfaceTagNodeProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/TagActions/TagNodeMocks/variables/MOCKS1.md b/docs/docs/auto-docs/components/TagActions/TagNodeMocks/variables/MOCKS1.md new file mode 100644 index 0000000000..aefecb0541 --- /dev/null +++ b/docs/docs/auto-docs/components/TagActions/TagNodeMocks/variables/MOCKS1.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS1 + +> `const` **MOCKS1**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; \}; \}; `result`: \{ `data`: \{ `getChildTags`: \{ `__typename`: `string`; `childTags`: \{ `__typename`: `string`; `edges`: `object`[]; `pageInfo`: \{ `__typename`: `string`; `endCursor`: `string`; `hasNextPage`: `boolean`; \}; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `first`: `number`; `id`: `string`; \}; \}; `result`: \{ `data`: \{ `getChildTags`: \{ `__typename`: `string`; `childTags`: \{ `__typename`: `string`; `edges`: `object`[]; `pageInfo`: \{ `__typename`: `string`; `endCursor`: `string`; `hasNextPage`: `boolean`; \}; \}; \}; \}; \}; \})[] + +Defined in: [src/components/TagActions/TagNodeMocks.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagNodeMocks.ts#L3) diff --git a/docs/docs/auto-docs/components/TagActions/TagNodeMocks/variables/MOCKS_ERROR_SUBTAGS_QUERY1.md b/docs/docs/auto-docs/components/TagActions/TagNodeMocks/variables/MOCKS_ERROR_SUBTAGS_QUERY1.md new file mode 100644 index 0000000000..d172c75fd6 --- /dev/null +++ b/docs/docs/auto-docs/components/TagActions/TagNodeMocks/variables/MOCKS_ERROR_SUBTAGS_QUERY1.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_SUBTAGS\_QUERY1 + +> `const` **MOCKS\_ERROR\_SUBTAGS\_QUERY1**: `object`[] + +Defined in: [src/components/TagActions/TagNodeMocks.ts:64](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/TagActions/TagNodeMocks.ts#L64) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_TAG_SUB_TAGS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `10` + +#### request.variables.id + +> **id**: `string` = `'1'` diff --git a/docs/docs/auto-docs/components/UpdateSession/UpdateSession/functions/default.md b/docs/docs/auto-docs/components/UpdateSession/UpdateSession/functions/default.md new file mode 100644 index 0000000000..3fc817ab7c --- /dev/null +++ b/docs/docs/auto-docs/components/UpdateSession/UpdateSession/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/UpdateSession/UpdateSession.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UpdateSession/UpdateSession.tsx#L29) + +## Parameters + +### props + +`TestInterfaceUpdateTimeoutProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/UserListCard/UserListCard/functions/default.md b/docs/docs/auto-docs/components/UserListCard/UserListCard/functions/default.md new file mode 100644 index 0000000000..a1df2001f9 --- /dev/null +++ b/docs/docs/auto-docs/components/UserListCard/UserListCard/functions/default.md @@ -0,0 +1,26 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserListCard/UserListCard.tsx:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserListCard/UserListCard.tsx#L27) + +The UserListCard component allows for adding a user as an admin in a specific organization. +It uses a button to trigger a mutation for updating the user's role. + +## Parameters + +### props + +`InterfaceUserListCardProps` + +The properties for the UserListCard component. + +## Returns + +`JSX.Element` + +The JSX element representing the user list card. diff --git a/docs/docs/auto-docs/components/UserPasswordUpdate/UserPasswordUpdate/functions/default.md b/docs/docs/auto-docs/components/UserPasswordUpdate/UserPasswordUpdate/functions/default.md new file mode 100644 index 0000000000..44b9dbb4dc --- /dev/null +++ b/docs/docs/auto-docs/components/UserPasswordUpdate/UserPasswordUpdate/functions/default.md @@ -0,0 +1,36 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/UserPasswordUpdate/UserPasswordUpdate.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPasswordUpdate/UserPasswordUpdate.tsx#L23) + +UserUpdate component allows users to update their passwords. +It handles form submission and communicates with the backend to update the user's password. + +## Parameters + +### props + +`InterfaceUserPasswordUpdateProps` + +The properties for the UserUpdate component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The JSX element for updating user password. diff --git a/docs/docs/auto-docs/components/UserPasswordUpdate/UserPasswordUpdateMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/UserPasswordUpdate/UserPasswordUpdateMocks/variables/MOCKS.md new file mode 100644 index 0000000000..87b68756ae --- /dev/null +++ b/docs/docs/auto-docs/components/UserPasswordUpdate/UserPasswordUpdateMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `confirmNewPassword`: `string`; `newPassword`: `string`; `previousPassword`: `string`; \}; \}; `result`: \{ `data`: \{ `users`: `object`[]; \}; `errors`: `undefined`; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `confirmNewPassword`: `string`; `newPassword`: `string`; `previousPassword`: `string`; \}; \}; `result`: \{ `data`: `undefined`; `errors`: `object`[]; \}; \})[] + +Defined in: [src/components/UserPasswordUpdate/UserPasswordUpdateMocks.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPasswordUpdate/UserPasswordUpdateMocks.ts#L3) diff --git a/docs/docs/auto-docs/components/UserPortal/ChatRoom/ChatRoom/functions/default.md b/docs/docs/auto-docs/components/UserPortal/ChatRoom/ChatRoom/functions/default.md new file mode 100644 index 0000000000..7a492d9d8e --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/ChatRoom/ChatRoom/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/ChatRoom/ChatRoom.tsx:100](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/ChatRoom/ChatRoom.tsx#L100) + +## Parameters + +### props + +`InterfaceChatRoomProps` + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/UserPortal/CommentCard/CommentCard/functions/default.md b/docs/docs/auto-docs/components/UserPortal/CommentCard/CommentCard/functions/default.md new file mode 100644 index 0000000000..47ca3ea78f --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/CommentCard/CommentCard/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/CommentCard/CommentCard.tsx:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/CommentCard/CommentCard.tsx#L51) + +Displays a card for a single comment with options to like or dislike the comment. + +Shows the commenter's name, the comment text, and the number of likes. +Allows the user to like or dislike the comment. The button icon changes based on whether the comment is liked by the user. + +## Parameters + +### props + +`InterfaceCommentCardProps` + +The properties passed to the component. + +## Returns + +`JSX.Element` + +The rendered comment card component. diff --git a/docs/docs/auto-docs/components/UserPortal/ContactCard/ContactCard/functions/default.md b/docs/docs/auto-docs/components/UserPortal/ContactCard/ContactCard/functions/default.md new file mode 100644 index 0000000000..eeb799c5f9 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/ContactCard/ContactCard/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/ContactCard/ContactCard.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/ContactCard/ContactCard.tsx#L36) + +Displays a card for a contact in a contact list. + +Shows the contact's name, email, and an image or avatar. +The card changes background color based on whether it is selected. +Clicking on the card sets it as the selected contact and updates the contact name. + +## Parameters + +### props + +`InterfaceContactCardProps` + +The properties passed to the component. + +## Returns + +`JSX.Element` + +The rendered contact card component. diff --git a/docs/docs/auto-docs/components/UserPortal/CreateDirectChat/CreateDirectChat/functions/default.md b/docs/docs/auto-docs/components/UserPortal/CreateDirectChat/CreateDirectChat/functions/default.md new file mode 100644 index 0000000000..30289de648 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/CreateDirectChat/CreateDirectChat/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/UserPortal/CreateDirectChat/CreateDirectChat.tsx:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/CreateDirectChat/CreateDirectChat.tsx#L60) + +## Parameters + +### \_\_namedParameters + +`InterfaceCreateDirectChatProps` + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/UserPortal/CreateGroupChat/CreateGroupChat/functions/default.md b/docs/docs/auto-docs/components/UserPortal/CreateGroupChat/CreateGroupChat/functions/default.md new file mode 100644 index 0000000000..ed94b1b811 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/CreateGroupChat/CreateGroupChat/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `JSX.Element` + +Defined in: [src/components/UserPortal/CreateGroupChat/CreateGroupChat.tsx:63](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/CreateGroupChat/CreateGroupChat.tsx#L63) + +## Parameters + +### \_\_namedParameters + +`InterfaceCreateGroupChatProps` + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/UserPortal/DonationCard/DonationCard/functions/default.md b/docs/docs/auto-docs/components/UserPortal/DonationCard/DonationCard/functions/default.md new file mode 100644 index 0000000000..47f7453082 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/DonationCard/DonationCard/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/DonationCard/DonationCard.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/DonationCard/DonationCard.tsx#L19) + +Displays a card with details about a donation. + +Shows the donor's name, the amount donated, and the date of the donation. +Includes a button to view more details about the donation. + +## Parameters + +### props + +[`InterfaceDonationCardProps`](../../../../../screens/UserPortal/Donate/Donate/interfaces/InterfaceDonationCardProps.md) + +The properties passed to the component. + +## Returns + +`JSX.Element` + +The rendered donation card component. diff --git a/docs/docs/auto-docs/components/UserPortal/EventCard/EventCard/functions/default.md b/docs/docs/auto-docs/components/UserPortal/EventCard/EventCard/functions/default.md new file mode 100644 index 0000000000..3e94eee3f6 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/EventCard/EventCard/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/EventCard/EventCard.tsx:63](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/EventCard/EventCard.tsx#L63) + +Displays information about an event and provides an option to register for it. + +Shows the event's title, description, location, start and end dates and times, +creator's name, and registration status. Includes a button to register for the event +if the user is not already registered. + +## Parameters + +### props + +`InterfaceEventCardProps` + +The properties for the event card. + +## Returns + +`JSX.Element` + +The event card component. diff --git a/docs/docs/auto-docs/components/UserPortal/OrganizationCard/OrganizationCard/functions/default.md b/docs/docs/auto-docs/components/UserPortal/OrganizationCard/OrganizationCard/functions/default.md new file mode 100644 index 0000000000..2bb28b58f7 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/OrganizationCard/OrganizationCard/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/OrganizationCard/OrganizationCard.tsx:73](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/OrganizationCard/OrganizationCard.tsx#L73) + +## Parameters + +### props + +`InterfaceOrganizationCardProps` + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/UserPortal/OrganizationNavbar/OrganizationNavbar/functions/default.md b/docs/docs/auto-docs/components/UserPortal/OrganizationNavbar/OrganizationNavbar/functions/default.md new file mode 100644 index 0000000000..dfb5b3382c --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/OrganizationNavbar/OrganizationNavbar/functions/default.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/OrganizationNavbar/OrganizationNavbar.tsx:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/OrganizationNavbar/OrganizationNavbar.tsx#L44) + +Displays the organization navbar with navigation options, user settings, and language selection. + +The navbar includes: +- Organization branding and name. +- Navigation links for various plugins based on user permissions. +- Language dropdown for changing the interface language. +- User dropdown for accessing settings and logging out. + +## Parameters + +### props + +`InterfaceNavbarProps` + +The properties for the navbar. + +## Returns + +`JSX.Element` + +The organization navbar component. diff --git a/docs/docs/auto-docs/components/UserPortal/OrganizationSidebar/OrganizationSidebar/functions/default.md b/docs/docs/auto-docs/components/UserPortal/OrganizationSidebar/OrganizationSidebar/functions/default.md new file mode 100644 index 0000000000..08bec007bf --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/OrganizationSidebar/OrganizationSidebar/functions/default.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/UserPortal/OrganizationSidebar/OrganizationSidebar.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/OrganizationSidebar/OrganizationSidebar.tsx#L36) + +OrganizationSidebar displays the sidebar for an organization, showing a list of members and events. + +This component fetches and displays: +- The top 3 members of the organization with their images and names. +- The top 3 upcoming events for the organization with their titles, start, and end dates. + +It includes: +- A link to view all members. +- A link to view all events. + +The sidebar handles loading states and displays appropriate messages while data is being fetched. + +## Returns + +`JSX.Element` + +JSX.Element representing the organization sidebar. diff --git a/docs/docs/auto-docs/components/UserPortal/PeopleCard/PeopleCard/functions/default.md b/docs/docs/auto-docs/components/UserPortal/PeopleCard/PeopleCard/functions/default.md new file mode 100644 index 0000000000..e92c253cf8 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/PeopleCard/PeopleCard/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/PeopleCard/PeopleCard.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/PeopleCard/PeopleCard.tsx#L30) + +PeopleCard component displays information about a person within an organization. + +It includes: +- An image of the person or a default image if none is provided. +- The serial number of the person. +- The person's name. +- The person's email address. +- The person's role within the organization, styled with a border. + +## Parameters + +### props + +`InterfaceOrganizationCardProps` + +The properties passed to the component. + +## Returns + +`JSX.Element` + +JSX.Element representing a card with the person's details. diff --git a/docs/docs/auto-docs/components/UserPortal/PostCard/PostCard/functions/default.md b/docs/docs/auto-docs/components/UserPortal/PostCard/PostCard/functions/default.md new file mode 100644 index 0000000000..0aed4adc94 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/PostCard/PostCard/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/PostCard/PostCard.tsx:69](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/PostCard/PostCard.tsx#L69) + +PostCard component displays an individual post, including its details, interactions, and comments. + +The component allows users to: +- View the post's details in a modal. +- Edit or delete the post. +- Like or unlike the post. +- Add comments to the post. +- Like or dislike individual comments. + +## Parameters + +### props + +[`InterfacePostCard`](../../../../../utils/interfaces/interfaces/InterfacePostCard.md) + +The properties passed to the component including post details, comments, and related actions. + +## Returns + +`JSX.Element` + +JSX.Element representing a post card with interactive features. diff --git a/docs/docs/auto-docs/components/UserPortal/PromotedPost/PromotedPost/functions/default.md b/docs/docs/auto-docs/components/UserPortal/PromotedPost/PromotedPost/functions/default.md new file mode 100644 index 0000000000..edbb93f267 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/PromotedPost/PromotedPost/functions/default.md @@ -0,0 +1,30 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/PromotedPost/PromotedPost.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/PromotedPost/PromotedPost.tsx#L23) + +PromotedPost component displays a card representing promoted content. + +This component includes: +- A header with a star icon indicating the content is promoted. +- A title and description of the promoted content. +- An optional image associated with the promoted content. + +## Parameters + +### props + +`InterfacePostCardProps` + +Properties passed to the component including an image, title, and ID. + +## Returns + +`JSX.Element` + +JSX.Element representing a card with promoted content. diff --git a/docs/docs/auto-docs/components/UserPortal/Register/Register/functions/default.md b/docs/docs/auto-docs/components/UserPortal/Register/Register/functions/default.md new file mode 100644 index 0000000000..14511f1f28 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/Register/Register/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `JSX.Element` + +Defined in: [src/components/UserPortal/Register/Register.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/Register/Register.tsx#L22) + +## Parameters + +### props + +`InterfaceRegisterProps` + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser/functions/default.md b/docs/docs/auto-docs/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser/functions/default.md new file mode 100644 index 0000000000..013e34b300 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser/functions/default.md @@ -0,0 +1,20 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser.tsx#L14) + +A component that guards routes by checking if the user is logged in. +If the user is logged in and does not have 'AdminFor' set, the child routes are rendered. +If the user is not logged in, they are redirected to the homepage. +If the user is logged in but has 'AdminFor' set, a 404 page is shown. + +## Returns + +`Element` + +JSX.Element - Rendered component based on user authentication and role. diff --git a/docs/docs/auto-docs/components/UserPortal/StartPostModal/StartPostModal/functions/default.md b/docs/docs/auto-docs/components/UserPortal/StartPostModal/StartPostModal/functions/default.md new file mode 100644 index 0000000000..7a7042df57 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/StartPostModal/StartPostModal/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/UserPortal/StartPostModal/StartPostModal.tsx:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/StartPostModal/StartPostModal.tsx#L40) + +A modal component for creating a new post. + +This modal includes: +- A form where users can input the content of the post. +- A preview of the image if provided. +- User's profile image and name displayed in the modal header. + +## Parameters + +### \_\_namedParameters + +`InterfaceStartPostModalProps` + +## Returns + +`Element` + +JSX.Element - The rendered modal component. diff --git a/docs/docs/auto-docs/components/UserPortal/UserNavbar/UserNavbar/functions/default.md b/docs/docs/auto-docs/components/UserPortal/UserNavbar/UserNavbar/functions/default.md new file mode 100644 index 0000000000..4b38d9bb4f --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/UserNavbar/UserNavbar/functions/default.md @@ -0,0 +1,22 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/UserPortal/UserNavbar/UserNavbar.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserNavbar/UserNavbar.tsx#L26) + +Navbar component for user-specific actions and settings. + +This component provides: +- A branding image and name. +- A dropdown for language selection. +- A dropdown for user actions including profile settings and logout. + +## Returns + +`JSX.Element` + +JSX.Element - The rendered Navbar component. diff --git a/docs/docs/auto-docs/components/UserPortal/UserProfile/EventsAttendedByUser/functions/EventsAttendedByUser.md b/docs/docs/auto-docs/components/UserPortal/UserProfile/EventsAttendedByUser/functions/EventsAttendedByUser.md new file mode 100644 index 0000000000..7feb080980 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/UserProfile/EventsAttendedByUser/functions/EventsAttendedByUser.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: EventsAttendedByUser() + +> **EventsAttendedByUser**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/UserPortal/UserProfile/EventsAttendedByUser.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserProfile/EventsAttendedByUser.tsx#L31) + +## Parameters + +### props + +`InterfaceUser` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/components/UserPortal/UserProfile/UserAddressFields/functions/UserAddressFields.md b/docs/docs/auto-docs/components/UserPortal/UserProfile/UserAddressFields/functions/UserAddressFields.md new file mode 100644 index 0000000000..0318d6f501 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/UserProfile/UserAddressFields/functions/UserAddressFields.md @@ -0,0 +1,36 @@ +[Admin Docs](/) + +*** + +# Function: UserAddressFields() + +> **UserAddressFields**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/UserPortal/UserProfile/UserAddressFields.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserProfile/UserAddressFields.tsx#L26) + +Form component containing address-related input fields for user profile +Includes fields for address, city, state, and country + +## Parameters + +### props + +`InterfaceUserAddressFieldsProps` + +Component props + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +Form group with address input fields diff --git a/docs/docs/auto-docs/components/UserPortal/UserSidebar/UserSidebar/functions/default.md b/docs/docs/auto-docs/components/UserPortal/UserSidebar/UserSidebar/functions/default.md new file mode 100644 index 0000000000..eb891bb0c9 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/UserSidebar/UserSidebar/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/UserPortal/UserSidebar/UserSidebar.tsx:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebar/UserSidebar.tsx#L28) + +Sidebar component for user navigation, including links to organizations and settings. + +Provides: +- A logo and title for the sidebar. +- Navigation buttons for "My Organizations" and "Settings". +- Dynamic styling based on the active route. + +## Parameters + +### \_\_namedParameters + +[`InterfaceUserSidebarProps`](../interfaces/InterfaceUserSidebarProps.md) + +## Returns + +`Element` + +JSX.Element - The rendered sidebar component. diff --git a/docs/docs/auto-docs/components/UserPortal/UserSidebar/UserSidebar/interfaces/InterfaceUserSidebarProps.md b/docs/docs/auto-docs/components/UserPortal/UserSidebar/UserSidebar/interfaces/InterfaceUserSidebarProps.md new file mode 100644 index 0000000000..e8b93fe25a --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/UserSidebar/UserSidebar/interfaces/InterfaceUserSidebarProps.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceUserSidebarProps + +Defined in: [src/components/UserPortal/UserSidebar/UserSidebar.tsx:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebar/UserSidebar.tsx#L10) + +## Properties + +### hideDrawer + +> **hideDrawer**: `boolean` + +Defined in: [src/components/UserPortal/UserSidebar/UserSidebar.tsx:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebar/UserSidebar.tsx#L11) + +*** + +### setHideDrawer + +> **setHideDrawer**: `Dispatch`\<`SetStateAction`\<`boolean`\>\> + +Defined in: [src/components/UserPortal/UserSidebar/UserSidebar.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebar/UserSidebar.tsx#L12) diff --git a/docs/docs/auto-docs/components/UserPortal/UserSidebarOrg/UserSidebarOrg/functions/default.md b/docs/docs/auto-docs/components/UserPortal/UserSidebarOrg/UserSidebarOrg/functions/default.md new file mode 100644 index 0000000000..23457e64bb --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/UserSidebarOrg/UserSidebarOrg/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx#L39) + +Sidebar component for user navigation within an organization. + +Provides: +- Branding with the Talawa logo. +- Displays the current organization's details. +- Navigation options with links and collapsible dropdowns. + +## Parameters + +### \_\_namedParameters + +[`InterfaceUserSidebarOrgProps`](../interfaces/InterfaceUserSidebarOrgProps.md) + +## Returns + +`Element` + +JSX.Element - The rendered sidebar component. diff --git a/docs/docs/auto-docs/components/UserPortal/UserSidebarOrg/UserSidebarOrg/interfaces/InterfaceUserSidebarOrgProps.md b/docs/docs/auto-docs/components/UserPortal/UserSidebarOrg/UserSidebarOrg/interfaces/InterfaceUserSidebarOrgProps.md new file mode 100644 index 0000000000..f390e29f24 --- /dev/null +++ b/docs/docs/auto-docs/components/UserPortal/UserSidebarOrg/UserSidebarOrg/interfaces/InterfaceUserSidebarOrgProps.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceUserSidebarOrgProps + +Defined in: [src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx#L17) + +## Properties + +### hideDrawer + +> **hideDrawer**: `boolean` + +Defined in: [src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx#L20) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx#L18) + +*** + +### setHideDrawer + +> **setHideDrawer**: `Dispatch`\<`SetStateAction`\<`boolean`\>\> + +Defined in: [src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx#L21) + +*** + +### targets + +> **targets**: [`TargetsType`](../../../../../state/reducers/routesReducer/type-aliases/TargetsType.md)[] + +Defined in: [src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/UserSidebarOrg/UserSidebarOrg.tsx#L19) diff --git a/docs/docs/auto-docs/components/UserProfileSettings/DeleteUser/functions/default.md b/docs/docs/auto-docs/components/UserProfileSettings/DeleteUser/functions/default.md new file mode 100644 index 0000000000..a626211853 --- /dev/null +++ b/docs/docs/auto-docs/components/UserProfileSettings/DeleteUser/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/UserProfileSettings/DeleteUser.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserProfileSettings/DeleteUser.tsx#L12) + +DeleteUser component displays a card with a button to delete a user. +It includes a message and a button to trigger the delete action. + +## Parameters + +### props + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The JSX element for the delete user card. diff --git a/docs/docs/auto-docs/components/UserProfileSettings/OtherSettings/functions/default.md b/docs/docs/auto-docs/components/UserProfileSettings/OtherSettings/functions/default.md new file mode 100644 index 0000000000..8a7f5fe610 --- /dev/null +++ b/docs/docs/auto-docs/components/UserProfileSettings/OtherSettings/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/UserProfileSettings/OtherSettings.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserProfileSettings/OtherSettings.tsx#L13) + +OtherSettings component displays a card with settings options such as changing the language. +It includes a label and a dropdown for selecting a different language. + +## Parameters + +### props + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The JSX element for the other settings card. diff --git a/docs/docs/auto-docs/components/UserProfileSettings/UserProfile/functions/default.md b/docs/docs/auto-docs/components/UserProfileSettings/UserProfile/functions/default.md new file mode 100644 index 0000000000..4e70c1eee3 --- /dev/null +++ b/docs/docs/auto-docs/components/UserProfileSettings/UserProfile/functions/default.md @@ -0,0 +1,36 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/components/UserProfileSettings/UserProfile.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserProfileSettings/UserProfile.tsx#L38) + +UserProfile component displays user profile details including an avatar or profile image, name, email, and join date. +It also provides a button to copy the profile link. + +## Parameters + +### props + +`InterfaceUserProfile` + +The properties to be passed into the component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The JSX element for the user profile card. diff --git a/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS.md b/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS.md new file mode 100644 index 0000000000..d486ed5cf9 --- /dev/null +++ b/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `organizationId`: `undefined`; `orgid`: `string`; `role`: `undefined`; `userid`: `string`; `userId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `removeMember`: \{ `_id`: `string`; \}; `updateUserRoleInOrganization`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `organizationId`: `string`; `orgid`: `undefined`; `role`: `string`; `userid`: `undefined`; `userId`: `string`; \}; \}; `result`: \{ `data`: \{ `removeMember`: `undefined`; `updateUserRoleInOrganization`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/components/UsersTableItem/UserTableItemMocks.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UsersTableItem/UserTableItemMocks.ts#L6) diff --git a/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS2.md b/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS2.md new file mode 100644 index 0000000000..4fc2fe1858 --- /dev/null +++ b/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS2.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS2 + +> `const` **MOCKS2**: `object`[] + +Defined in: [src/components/UsersTableItem/UserTableItemMocks.ts:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UsersTableItem/UserTableItemMocks.ts#L42) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `REMOVE_MEMBER_MUTATION` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orgid + +> **orgid**: `string` = `'abc'` + +#### request.variables.userid + +> **userid**: `string` = `'123'` diff --git a/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS_UPDATE.md b/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS_UPDATE.md new file mode 100644 index 0000000000..169e2277a0 --- /dev/null +++ b/docs/docs/auto-docs/components/UsersTableItem/UserTableItemMocks/variables/MOCKS_UPDATE.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_UPDATE + +> `const` **MOCKS\_UPDATE**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `organizationId`: `string`; `role`: `string`; `userId`: `string`; \}; \}; `result`: `undefined`; \} \| \{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `organizationId`: `string`; `role`: `string`; `userId`: `string`; \}; \}; `result`: \{ `data`: \{ `updateUserRoleInOrganization`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/components/UsersTableItem/UserTableItemMocks.ts:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UsersTableItem/UserTableItemMocks.ts#L55) diff --git a/docs/docs/auto-docs/components/UsersTableItem/UsersTableItem/functions/default.md b/docs/docs/auto-docs/components/UsersTableItem/UsersTableItem/functions/default.md new file mode 100644 index 0000000000..2e092f61a8 --- /dev/null +++ b/docs/docs/auto-docs/components/UsersTableItem/UsersTableItem/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`): `Element` + +Defined in: [src/components/UsersTableItem/UsersTableItem.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UsersTableItem/UsersTableItem.tsx#L23) + +## Parameters + +### props + +`Props` + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/components/Venues/VenueCard/functions/default.md b/docs/docs/auto-docs/components/Venues/VenueCard/functions/default.md new file mode 100644 index 0000000000..87ed043920 --- /dev/null +++ b/docs/docs/auto-docs/components/Venues/VenueCard/functions/default.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/Venues/VenueCard.tsx:57](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueCard.tsx#L57) + +Represents a card component displaying venue information. + +This component renders a card with the venue's image, name, capacity, and description. +It also provides buttons to edit or delete the venue. + +## Parameters + +### \_\_namedParameters + +`InterfaceVenueCardProps` + +## Returns + +`Element` + +JSX.Element - The `VenueCard` component. + +## Example + +```tsx + +``` + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.addButton` +- `.removeButton` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/components/Venues/VenueModal/functions/default.md b/docs/docs/auto-docs/components/Venues/VenueModal/functions/default.md new file mode 100644 index 0000000000..64e42a3b7c --- /dev/null +++ b/docs/docs/auto-docs/components/Venues/VenueModal/functions/default.md @@ -0,0 +1,43 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`__namedParameters`): `Element` + +Defined in: [src/components/Venues/VenueModal.tsx:56](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueModal.tsx#L56) + +A modal component for creating or updating venue information. + +This component displays a modal window where users can enter details for a venue, such as name, description, capacity, and an image. +It also handles submitting the form data to create or update a venue based on whether the `edit` prop is true or false. + +## Parameters + +### \_\_namedParameters + +[`InterfaceVenueModalProps`](../interfaces/InterfaceVenueModalProps.md) + +## Returns + +`Element` + +The rendered modal component. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.inputField` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/components/Venues/VenueModal/interfaces/InterfaceVenueModalProps.md b/docs/docs/auto-docs/components/Venues/VenueModal/interfaces/InterfaceVenueModalProps.md new file mode 100644 index 0000000000..cab6f3554c --- /dev/null +++ b/docs/docs/auto-docs/components/Venues/VenueModal/interfaces/InterfaceVenueModalProps.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceVenueModalProps + +Defined in: [src/components/Venues/VenueModal.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueModal.tsx#L15) + +## Properties + +### edit + +> **edit**: `boolean` + +Defined in: [src/components/Venues/VenueModal.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueModal.tsx#L21) + +*** + +### onHide() + +> **onHide**: () => `void` + +Defined in: [src/components/Venues/VenueModal.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueModal.tsx#L17) + +#### Returns + +`void` + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/components/Venues/VenueModal.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueModal.tsx#L19) + +*** + +### refetchVenues() + +> **refetchVenues**: () => `void` + +Defined in: [src/components/Venues/VenueModal.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueModal.tsx#L18) + +#### Returns + +`void` + +*** + +### show + +> **show**: `boolean` + +Defined in: [src/components/Venues/VenueModal.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueModal.tsx#L16) + +*** + +### venueData? + +> `optional` **venueData**: [`InterfaceQueryVenueListItem`](../../../../utils/interfaces/interfaces/InterfaceQueryVenueListItem.md) + +Defined in: [src/components/Venues/VenueModal.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Venues/VenueModal.tsx#L20) diff --git a/docs/docs/auto-docs/components/plugins/DummyPlugin/DummyPlugin/functions/default.md b/docs/docs/auto-docs/components/plugins/DummyPlugin/DummyPlugin/functions/default.md new file mode 100644 index 0000000000..69e02fa81f --- /dev/null +++ b/docs/docs/auto-docs/components/plugins/DummyPlugin/DummyPlugin/functions/default.md @@ -0,0 +1,20 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/plugins/DummyPlugin/DummyPlugin.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/plugins/DummyPlugin/DummyPlugin.tsx#L12) + +A dummy plugin component that renders a welcome message inside an `AddOn` component. + +This component is used for demonstration or testing purposes and does not have any +additional functionality or properties. + +## Returns + +`JSX.Element` + +JSX.Element - Renders the `AddOn` component containing a welcome message. diff --git a/docs/docs/auto-docs/components/plugins/DummyPlugin2/DummyPlugin2/functions/default.md b/docs/docs/auto-docs/components/plugins/DummyPlugin2/DummyPlugin2/functions/default.md new file mode 100644 index 0000000000..9d397e615c --- /dev/null +++ b/docs/docs/auto-docs/components/plugins/DummyPlugin2/DummyPlugin2/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/components/plugins/DummyPlugin2/DummyPlugin2.tsx:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/plugins/DummyPlugin2/DummyPlugin2.tsx#L10) + +A placeholder component for demonstration or testing purposes. +It renders an empty `div` element. + +This component currently does not have any additional functionality +or properties. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/components/test-utils/TestWrapper/functions/TestWrapper.md b/docs/docs/auto-docs/components/test-utils/TestWrapper/functions/TestWrapper.md new file mode 100644 index 0000000000..5d4d23cbb2 --- /dev/null +++ b/docs/docs/auto-docs/components/test-utils/TestWrapper/functions/TestWrapper.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Function: TestWrapper() + +> **TestWrapper**(`__namedParameters`): `Element` + +Defined in: [src/components/test-utils/TestWrapper.tsx:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/test-utils/TestWrapper.tsx#L42) + +A wrapper component for testing React components that require Apollo Client, i18n, and Router contexts. +Provides the necessary provider context for testing components that use GraphQL, translations, and routing. + +## Parameters + +### \_\_namedParameters + +`InterfaceTestWrapperProps` + +## Returns + +`Element` + +A JSX element with all required providers wrapped around the children + +## Example + +```tsx +const mocks = [{ + request: { query: TEST_QUERY }, + result: { data: { test: 'data' } } +}]; + +render( + + + +); +``` diff --git a/docs/docs/auto-docs/constants/variables/socialMediaLinks.md b/docs/docs/auto-docs/constants/variables/socialMediaLinks.md new file mode 100644 index 0000000000..c0ce7db93c --- /dev/null +++ b/docs/docs/auto-docs/constants/variables/socialMediaLinks.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: socialMediaLinks + +> `const` **socialMediaLinks**: `object`[] + +Defined in: [src/constants.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/constants.ts#L12) + +## Type declaration + +### href + +> **href**: `string` = `'https://www.facebook.com/palisadoesproject'` + +### logo + +> **logo**: `string` = `FacebookLogo` + +### tag + +> **tag**: `string` = `'facebook'` diff --git a/docs/docs/auto-docs/reportWebVitals/functions/default.md b/docs/docs/auto-docs/reportWebVitals/functions/default.md new file mode 100644 index 0000000000..aadb8694ac --- /dev/null +++ b/docs/docs/auto-docs/reportWebVitals/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`onPerfEntry`?): `void` + +Defined in: [src/reportWebVitals.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/reportWebVitals.ts#L4) + +## Parameters + +### onPerfEntry? + +(`metric`) => `void` + +## Returns + +`void` diff --git a/docs/docs/auto-docs/screens/BlockUser/BlockUser/functions/default.md b/docs/docs/auto-docs/screens/BlockUser/BlockUser/functions/default.md new file mode 100644 index 0000000000..2aa9ed9be3 --- /dev/null +++ b/docs/docs/auto-docs/screens/BlockUser/BlockUser/functions/default.md @@ -0,0 +1,48 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/BlockUser/BlockUser.tsx:67](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/BlockUser/BlockUser.tsx#L67) + +Requests component displays and manages a list of users that can be blocked or unblocked. + +This component allows users to search for members by their first name or last name, +toggle between viewing blocked and all members, and perform block/unblock operations. + +## Returns + +`Element` + +JSX.Element - The `Requests` component. + +## Example + +```tsx + +``` + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.head` +- `.btnsContainer` +- `.input` +- `.inputField` +- `.searchButton` +- `.btnsBlock` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/screens/CommunityProfile/CommunityProfile/functions/default.md b/docs/docs/auto-docs/screens/CommunityProfile/CommunityProfile/functions/default.md new file mode 100644 index 0000000000..ce686e3f5e --- /dev/null +++ b/docs/docs/auto-docs/screens/CommunityProfile/CommunityProfile/functions/default.md @@ -0,0 +1,28 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/CommunityProfile/CommunityProfile.tsx:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/CommunityProfile/CommunityProfile.tsx#L40) + +`CommunityProfile` component allows users to view and update their community profile details. + +It includes functionalities to: +- Display current community profile information +- Update profile details including social media links and logo +- Reset profile changes to the initial state + +## Returns + +`Element` + +JSX.Element - The `CommunityProfile` component. + +## Example + +```tsx + +``` diff --git a/docs/docs/auto-docs/screens/EventManagement/EventManagement/functions/default.md b/docs/docs/auto-docs/screens/EventManagement/EventManagement/functions/default.md new file mode 100644 index 0000000000..c3ebddbbe5 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventManagement/EventManagement/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/EventManagement/EventManagement.tsx:91](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventManagement/EventManagement.tsx#L91) + +`EventManagement` component handles the display and navigation of different event management sections. + +It provides a tabbed interface for: +- Viewing event dashboard +- Managing event registrants +- Handling event actions +- Reviewing event agendas +- Viewing event statistics +- Managing event volunteers +- Managing event attendance + +## Returns + +`Element` + +JSX.Element - The `EventManagement` component. + +## Example + +```tsx + +``` diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..76d78f682e --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: `object`[] + +Defined in: [src/screens/EventVolunteers/Requests/Requests.mocks.ts:148](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Requests/Requests.mocks.ts#L148) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_VOLUNTEER_MEMBERSHIP` + +#### request.variables + +> **variables**: `object` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.eventId + +> **eventId**: `string` = `'eventId'` + +#### request.variables.where.status + +> **status**: `string` = `'requested'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.getVolunteerMembership + +> **getVolunteerMembership**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/ERROR_MOCKS.md b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/ERROR_MOCKS.md new file mode 100644 index 0000000000..238dacb1c3 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/ERROR_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ERROR\_MOCKS + +> `const` **ERROR\_MOCKS**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `any`; `status`: `undefined`; `where`: \{ `eventId`: `string`; `status`: `string`; `userName`: `any`; \}; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; `orderBy`: `undefined`; `status`: `string`; `where`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/EventVolunteers/Requests/Requests.mocks.ts:167](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Requests/Requests.mocks.ts#L167) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..de302a0d5a --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `undefined`; `status`: `undefined`; `where`: \{ `eventId`: `string`; `status`: `string`; `userName`: `undefined`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `object`[]; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `string`; `status`: `undefined`; `where`: \{ `eventId`: `string`; `status`: `string`; `userName`: `undefined`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `object`[]; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `undefined`; `status`: `undefined`; `where`: \{ `eventId`: `string`; `status`: `string`; `userName`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `object`[]; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; `orderBy`: `undefined`; `status`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `undefined`; `updateVolunteerMembership`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/EventVolunteers/Requests/Requests.mocks.ts:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Requests/Requests.mocks.ts#L46) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/UPDATE_ERROR_MOCKS.md b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/UPDATE_ERROR_MOCKS.md new file mode 100644 index 0000000000..78dc32d47e --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests.mocks/variables/UPDATE_ERROR_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_ERROR\_MOCKS + +> `const` **UPDATE\_ERROR\_MOCKS**: (\{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `status`: `undefined`; `where`: \{ `eventId`: `string`; `status`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; `status`: `string`; `where`: `undefined`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/screens/EventVolunteers/Requests/Requests.mocks.ts:194](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Requests/Requests.mocks.ts#L194) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests/functions/default.md new file mode 100644 index 0000000000..dfe1df6c20 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Requests/Requests/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/EventVolunteers/Requests/Requests.tsx:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Requests/Requests.tsx#L53) + +Component for managing and displaying Volunteer Membership requests for an event. + +This component allows users to view, filter, sort, and create action items. It also allows users to accept or reject volunteer membership requests. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerContainer/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerContainer/functions/default.md new file mode 100644 index 0000000000..eb34e331e5 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerContainer/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/EventVolunteers/VolunteerContainer.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerContainer.tsx#L18) + +Container Component for Volunteer or VolunteerGroups as per selection. + +This component allows users switch between Volunteers and VolunteerGroups. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal/functions/default.md new file mode 100644 index 0000000000..73ae447dca --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal/functions/default.md @@ -0,0 +1,46 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx#L42) + +A modal dialog for confirming the deletion of a volunteer group. + +## Parameters + +### props + +[`InterfaceDeleteVolunteerGroupModal`](../interfaces/InterfaceDeleteVolunteerGroupModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `VolunteerGroupDeleteModal` component displays a confirmation dialog when a user attempts to delete a volunteer group. +It allows the user to either confirm or cancel the deletion. +On confirmation, the `deleteVolunteerGroup` mutation is called to remove the volunteer group from the database, +and the `refetchGroups` function is invoked to update the list of volunteer groups. +A success or error toast notification is shown based on the result of the deletion operation. + +The modal includes: +- A header with a title and a close button. +- A body with a message asking for confirmation. +- A footer with "Yes" and "No" buttons to confirm or cancel the deletion. + +The `deleteVolunteerGroup` mutation is used to perform the deletion operation. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal/interfaces/InterfaceDeleteVolunteerGroupModal.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal/interfaces/InterfaceDeleteVolunteerGroupModal.md new file mode 100644 index 0000000000..8f4ced8c42 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal/interfaces/InterfaceDeleteVolunteerGroupModal.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceDeleteVolunteerGroupModal + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx#L10) + +## Properties + +### group + +> **group**: [`InterfaceVolunteerGroupInfo`](../../../../../utils/interfaces/interfaces/InterfaceVolunteerGroupInfo.md) + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx#L13) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx#L12) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx#L11) + +*** + +### refetchGroups() + +> **refetchGroups**: () => `void` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupDeleteModal.tsx#L14) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal/functions/default.md new file mode 100644 index 0000000000..1174816bc4 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal/functions/default.md @@ -0,0 +1,52 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:63](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L63) + +A modal dialog for creating or editing a volunteer group. + +## Parameters + +### props + +[`InterfaceVolunteerGroupModal`](../interfaces/InterfaceVolunteerGroupModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `VolunteerGroupModal` component displays a form within a modal dialog for creating or editing a Volunteer Group. +It includes fields for entering the group name, description, volunteersRequired, and selecting volunteers/leaders. + +The modal includes: +- A header with a title indicating the current mode (create or edit) and a close button. +- A form with: + - An input field for entering the group name. + - A textarea for entering the group description. + - A multi-select dropdown for selecting leader. + - A multi-select dropdown for selecting volunteers. + - An input field for entering the number of volunteers required. +- A submit button to create or update the pledge. + +On form submission, the component either: +- Calls `updatePledge` mutation to update an existing pledge, or +- Calls `createPledge` mutation to create a new pledge. + +Success or error messages are displayed using toast notifications based on the result of the mutation. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal/interfaces/InterfaceVolunteerGroupModal.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal/interfaces/InterfaceVolunteerGroupModal.md new file mode 100644 index 0000000000..e9623e26d8 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal/interfaces/InterfaceVolunteerGroupModal.md @@ -0,0 +1,71 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceVolunteerGroupModal + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L21) + +## Properties + +### eventId + +> **eventId**: `string` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L24) + +*** + +### group + +> **group**: [`InterfaceVolunteerGroupInfo`](../../../../../utils/interfaces/interfaces/InterfaceVolunteerGroupInfo.md) + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L26) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L23) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L22) + +*** + +### mode + +> **mode**: `"create"` \| `"edit"` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L28) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L25) + +*** + +### refetchGroups() + +> **refetchGroups**: () => `void` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupModal.tsx#L27) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal/functions/default.md new file mode 100644 index 0000000000..9ed53ed74f --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal/functions/default.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx#L41) + +A modal dialog for viewing volunteer group information for an event. + +## Parameters + +### props + +[`InterfaceVolunteerGroupViewModal`](../interfaces/InterfaceVolunteerGroupViewModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `VolunteerGroupViewModal` component displays all the fields of a volunteer group in a modal dialog. + +The modal includes: +- A header with a title and a close button. +- fields for volunteer name, status, hours volunteered, groups, and assignments. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal/interfaces/InterfaceVolunteerGroupViewModal.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal/interfaces/InterfaceVolunteerGroupViewModal.md new file mode 100644 index 0000000000..2563014933 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal/interfaces/InterfaceVolunteerGroupViewModal.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceVolunteerGroupViewModal + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx#L19) + +## Properties + +### group + +> **group**: [`InterfaceVolunteerGroupInfo`](../../../../../utils/interfaces/interfaces/InterfaceVolunteerGroupInfo.md) + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx#L22) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx#L21) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroupViewModal.tsx#L20) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..265d65e45d --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `string`; `where`: \{ `eventId`: `string`; `leaderName`: `any`; `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `createEventVolunteerGroup`: `undefined`; `getEventVolunteerGroups`: `object`[]; `organizations`: `undefined`; `removeEventVolunteerGroup`: `undefined`; `updateEventVolunteerGroup`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `any`; `where`: \{ `eventId`: `string`; `leaderName`: `string`; `name_contains`: `any`; \}; \}; \}; `result`: \{ `data`: \{ `createEventVolunteerGroup`: `undefined`; `getEventVolunteerGroups`: `object`[]; `organizations`: `undefined`; `removeEventVolunteerGroup`: `undefined`; `updateEventVolunteerGroup`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEventVolunteerGroup`: `undefined`; `getEventVolunteerGroups`: `undefined`; `organizations`: `object`[]; `removeEventVolunteerGroup`: `undefined`; `updateEventVolunteerGroup`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `description`: `string`; `eventId`: `string`; `leaderId`: `string`; `name`: `string`; `volunteersRequired`: `number`; `volunteerUserIds`: `string`[]; \}; `id`: `undefined`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEventVolunteerGroup`: \{ `_id`: `string`; \}; `getEventVolunteerGroups`: `undefined`; `organizations`: `undefined`; `removeEventVolunteerGroup`: `undefined`; `updateEventVolunteerGroup`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEventVolunteerGroup`: `undefined`; `getEventVolunteerGroups`: `undefined`; `organizations`: `undefined`; `removeEventVolunteerGroup`: \{ `_id`: `string`; \}; `updateEventVolunteerGroup`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `description`: `string`; `eventId`: `string`; `leaderId`: `undefined`; `name`: `string`; `volunteersRequired`: `number`; `volunteerUserIds`: `undefined`; \}; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEventVolunteerGroup`: `undefined`; `getEventVolunteerGroups`: `undefined`; `organizations`: `undefined`; `removeEventVolunteerGroup`: `undefined`; `updateEventVolunteerGroup`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `description`: `undefined`; `eventId`: `string`; `leaderId`: `undefined`; `name`: `undefined`; `volunteersRequired`: `undefined`; `volunteerUserIds`: `undefined`; \}; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEventVolunteerGroup`: `undefined`; `getEventVolunteerGroups`: `undefined`; `organizations`: `undefined`; `removeEventVolunteerGroup`: `undefined`; `updateEventVolunteerGroup`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks.ts:114](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks.ts#L114) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS_EMPTY.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS_EMPTY.md new file mode 100644 index 0000000000..87382c516b --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS_EMPTY.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_EMPTY + +> `const` **MOCKS\_EMPTY**: `object`[] + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks.ts:339](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks.ts#L339) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_VOLUNTEER_GROUP_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orderBy + +> **orderBy**: `any` = `null` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.eventId + +> **eventId**: `string` = `'eventId'` + +#### request.variables.where.leaderName + +> **leaderName**: `any` = `null` + +#### request.variables.where.name\_contains + +> **name\_contains**: `string` = `''` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.getEventVolunteerGroups + +> **getEventVolunteerGroups**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..1aeb3f13ec --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks/variables/MOCKS_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `any`; `where`: \{ `eventId`: `string`; `leaderName`: `any`; `name_contains`: `string`; \}; \}; \}; `result`: `undefined`; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: `undefined`; \} \| \{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `description`: `string`; `eventId`: `string`; `leaderId`: `string`; `name`: `string`; `volunteersRequired`: `number`; `volunteerUserIds`: `string`[]; \}; `id`: `undefined`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: `undefined`; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `description`: `string`; `eventId`: `string`; `leaderId`: `undefined`; `name`: `string`; `volunteersRequired`: `number`; `volunteerUserIds`: `undefined`; \}; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks.ts:360](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.mocks.ts#L360) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups/functions/default.md new file mode 100644 index 0000000000..443a2be39a --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/VolunteerGroups/VolunteerGroups/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.tsx:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/VolunteerGroups/VolunteerGroups.tsx#L58) + +Component for managing volunteer groups for an event. +This component allows users to view, filter, sort, and create action items. It also provides a modal for creating and editing action items. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerCreateModal/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerCreateModal/functions/default.md new file mode 100644 index 0000000000..62d89a7aed --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerCreateModal/functions/default.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx#L48) + +A modal dialog for add a volunteer for an event. + +## Parameters + +### props + +[`InterfaceVolunteerCreateModal`](../interfaces/InterfaceVolunteerCreateModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `VolunteerCreateModal` component displays a form within a modal dialog for adding a volunteer. +It includes fields for selecting user. + +The modal includes: +- A header with a title and a close button. +- A form with: +- A multi-select dropdown for selecting user be added as volunteer. +- A submit button to create or update the pledge. + +On form submission, the component: +- Calls `addVolunteer` mutation to add a new Volunteer. + +Success or error messages are displayed using toast notifications based on the result of the mutation. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerCreateModal/interfaces/InterfaceVolunteerCreateModal.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerCreateModal/interfaces/InterfaceVolunteerCreateModal.md new file mode 100644 index 0000000000..ef9d03f19b --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerCreateModal/interfaces/InterfaceVolunteerCreateModal.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceVolunteerCreateModal + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx#L14) + +## Properties + +### eventId + +> **eventId**: `string` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx#L17) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx#L16) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx#L15) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx#L18) + +*** + +### refetchVolunteers() + +> **refetchVolunteers**: () => `void` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerCreateModal.tsx#L19) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerDeleteModal/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerDeleteModal/functions/default.md new file mode 100644 index 0000000000..82a9b693dc --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerDeleteModal/functions/default.md @@ -0,0 +1,46 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx#L42) + +A modal dialog for confirming the deletion of a volunteer. + +## Parameters + +### props + +[`InterfaceDeleteVolunteerModal`](../interfaces/InterfaceDeleteVolunteerModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `VolunteerDeleteModal` component displays a confirmation dialog when a user attempts to delete a volunteer. +It allows the user to either confirm or cancel the deletion. +On confirmation, the `deleteVolunteer` mutation is called to remove the pledge from the database, +and the `refetchVolunteers` function is invoked to update the list of volunteers. +A success or error toast notification is shown based on the result of the deletion operation. + +The modal includes: +- A header with a title and a close button. +- A body with a message asking for confirmation. +- A footer with "Yes" and "No" buttons to confirm or cancel the deletion. + +The `deleteVolunteer` mutation is used to perform the deletion operation. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerDeleteModal/interfaces/InterfaceDeleteVolunteerModal.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerDeleteModal/interfaces/InterfaceDeleteVolunteerModal.md new file mode 100644 index 0000000000..e88376d4ab --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerDeleteModal/interfaces/InterfaceDeleteVolunteerModal.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceDeleteVolunteerModal + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx#L10) + +## Properties + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx#L12) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx#L11) + +*** + +### refetchVolunteers() + +> **refetchVolunteers**: () => `void` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx#L14) + +#### Returns + +`void` + +*** + +### volunteer + +> **volunteer**: [`InterfaceEventVolunteerInfo`](../../../../../utils/interfaces/interfaces/InterfaceEventVolunteerInfo.md) + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerDeleteModal.tsx#L13) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerViewModal/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerViewModal/functions/default.md new file mode 100644 index 0000000000..31a8d82c46 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerViewModal/functions/default.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx#L42) + +A modal dialog for viewing volunteer information for an event. + +## Parameters + +### props + +[`InterfaceVolunteerViewModal`](../interfaces/InterfaceVolunteerViewModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `VolunteerViewModal` component displays all the fields of a volunteer in a modal dialog. + +The modal includes: +- A header with a title and a close button. +- fields for volunteer name, status, hours volunteered, groups, and assignments. diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerViewModal/interfaces/InterfaceVolunteerViewModal.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerViewModal/interfaces/InterfaceVolunteerViewModal.md new file mode 100644 index 0000000000..000f57ed96 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/VolunteerViewModal/interfaces/InterfaceVolunteerViewModal.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceVolunteerViewModal + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx#L20) + +## Properties + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx#L22) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx#L21) + +*** + +### volunteer + +> **volunteer**: [`InterfaceEventVolunteerInfo`](../../../../../utils/interfaces/interfaces/InterfaceEventVolunteerInfo.md) + +Defined in: [src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/VolunteerViewModal.tsx#L23) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..d8870d8fb6 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `string`; `where`: \{ `eventId`: `string`; `hasAccepted`: `undefined`; `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `createEventVolunteer`: `undefined`; `getEventVolunteers`: (\{ `_id`: `string`; `assignments`: `any`[]; `groups`: `object`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \} \| \{ `_id`: `string`; `assignments`: `any`[]; `groups`: `any`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `any`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `string`; `lastName`: `string`; \}; \})[]; `organizations`: `undefined`; `removeEventVolunteer`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `any`; `where`: \{ `eventId`: `string`; `hasAccepted`: `boolean`; `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `createEventVolunteer`: `undefined`; `getEventVolunteers`: `object`[]; `organizations`: `undefined`; `removeEventVolunteer`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `any`; `where`: \{ `eventId`: `string`; `hasAccepted`: `boolean`; `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `createEventVolunteer`: `undefined`; `getEventVolunteers`: `object`[]; `organizations`: `undefined`; `removeEventVolunteer`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEventVolunteer`: `undefined`; `getEventVolunteers`: `undefined`; `organizations`: `undefined`; `removeEventVolunteer`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEventVolunteer`: `undefined`; `getEventVolunteers`: `undefined`; `organizations`: `object`[]; `removeEventVolunteer`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `eventId`: `string`; `userId`: `string`; \}; `id`: `undefined`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEventVolunteer`: \{ `_id`: `string`; \}; `getEventVolunteers`: `undefined`; `organizations`: `undefined`; `removeEventVolunteer`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/EventVolunteers/Volunteers/Volunteers.mocks.ts:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/Volunteers.mocks.ts#L46) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS_EMPTY.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS_EMPTY.md new file mode 100644 index 0000000000..dcd94ef56d --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS_EMPTY.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_EMPTY + +> `const` **MOCKS\_EMPTY**: `object`[] + +Defined in: [src/screens/EventVolunteers/Volunteers/Volunteers.mocks.ts:288](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/Volunteers.mocks.ts#L288) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_VOLUNTEER_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orderBy + +> **orderBy**: `any` = `null` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.eventId + +> **eventId**: `string` = `'eventId'` + +#### request.variables.where.name\_contains + +> **name\_contains**: `string` = `''` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.getEventVolunteers + +> **getEventVolunteers**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..e8c62235c7 --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers.mocks/variables/MOCKS_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `any`; `where`: \{ `eventId`: `string`; `name_contains`: `string`; \}; \}; \}; `result`: `undefined`; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: `undefined`; \} \| \{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `eventId`: `string`; `userId`: `string`; \}; `id`: `undefined`; `orderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/screens/EventVolunteers/Volunteers/Volunteers.mocks.ts:217](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/Volunteers.mocks.ts#L217) diff --git a/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers/functions/default.md b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers/functions/default.md new file mode 100644 index 0000000000..fddd2b6d7a --- /dev/null +++ b/docs/docs/auto-docs/screens/EventVolunteers/Volunteers/Volunteers/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/EventVolunteers/Volunteers/Volunteers.tsx:65](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/EventVolunteers/Volunteers/Volunteers.tsx#L65) + +Component for managing and displaying event volunteers related to an event. + +This component allows users to view, filter, sort, and create volunteers. It also handles fetching and displaying related data such as volunteer acceptance status, etc. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/ForgotPassword/ForgotPassword/functions/default.md b/docs/docs/auto-docs/screens/ForgotPassword/ForgotPassword/functions/default.md new file mode 100644 index 0000000000..7531a5d4a6 --- /dev/null +++ b/docs/docs/auto-docs/screens/ForgotPassword/ForgotPassword/functions/default.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/ForgotPassword/ForgotPassword.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ForgotPassword/ForgotPassword.tsx#L36) + +`ForgotPassword` component allows users to reset their password. + +It provides two stages: +1. Entering the registered email to receive an OTP. +2. Entering the OTP and new password to reset the password. + +## Returns + +`Element` + +JSX.Element - The `ForgotPassword` component. + +## Example + +```tsx + +``` diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/FundCampaignPledge/functions/default.md b/docs/docs/auto-docs/screens/FundCampaignPledge/FundCampaignPledge/functions/default.md new file mode 100644 index 0000000000..caee00758e --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/FundCampaignPledge/functions/default.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/FundCampaignPledge/FundCampaignPledge.tsx:85](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/FundCampaignPledge.tsx#L85) + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeDeleteModal/functions/default.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeDeleteModal/functions/default.md new file mode 100644 index 0000000000..53f94fbf78 --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeDeleteModal/functions/default.md @@ -0,0 +1,46 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/FundCampaignPledge/PledgeDeleteModal.tsx:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeDeleteModal.tsx#L42) + +A modal dialog for confirming the deletion of a pledge. + +## Parameters + +### props + +[`InterfaceDeletePledgeModal`](../interfaces/InterfaceDeletePledgeModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `PledgeDeleteModal` component displays a confirmation dialog when a user attempts to delete a pledge. +It allows the user to either confirm or cancel the deletion. +On confirmation, the `deletePledge` mutation is called to remove the pledge from the database, +and the `refetchPledge` function is invoked to update the list of pledges. +A success or error toast notification is shown based on the result of the deletion operation. + +The modal includes: +- A header with a title and a close button. +- A body with a message asking for confirmation. +- A footer with "Yes" and "No" buttons to confirm or cancel the deletion. + +The `deletePledge` mutation is used to perform the deletion operation. diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeDeleteModal/interfaces/InterfaceDeletePledgeModal.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeDeleteModal/interfaces/InterfaceDeletePledgeModal.md new file mode 100644 index 0000000000..5f2ff3ef32 --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeDeleteModal/interfaces/InterfaceDeletePledgeModal.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceDeletePledgeModal + +Defined in: [src/screens/FundCampaignPledge/PledgeDeleteModal.tsx:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeDeleteModal.tsx#L10) + +## Properties + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/FundCampaignPledge/PledgeDeleteModal.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeDeleteModal.tsx#L12) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/FundCampaignPledge/PledgeDeleteModal.tsx:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeDeleteModal.tsx#L11) + +*** + +### pledge + +> **pledge**: [`InterfacePledgeInfo`](../../../../utils/interfaces/interfaces/InterfacePledgeInfo.md) + +Defined in: [src/screens/FundCampaignPledge/PledgeDeleteModal.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeDeleteModal.tsx#L13) + +*** + +### refetchPledge() + +> **refetchPledge**: () => `void` + +Defined in: [src/screens/FundCampaignPledge/PledgeDeleteModal.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeDeleteModal.tsx#L14) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeModal/functions/default.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeModal/functions/default.md new file mode 100644 index 0000000000..366542c940 --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeModal/functions/default.md @@ -0,0 +1,68 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:89](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L89) + +A modal dialog for creating or editing a pledge. + +## Parameters + +### props + +[`InterfacePledgeModal`](../interfaces/InterfacePledgeModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `PledgeModal` component displays a form within a modal dialog for creating or editing a pledge. +It includes fields for selecting users, entering an amount, choosing a currency, and setting start and end dates for the pledge. + +The modal includes: +- A header with a title indicating the current mode (create or edit) and a close button. +- A form with: + - A multi-select dropdown for selecting users to participate in the pledge. + - Date pickers for selecting the start and end dates of the pledge. + - A dropdown for selecting the currency of the pledge amount. + - An input field for entering the pledge amount. +- A submit button to create or update the pledge. + +On form submission, the component either: +- Calls `updatePledge` mutation to update an existing pledge, or +- Calls `createPledge` mutation to create a new pledge. + +Success or error messages are displayed using toast notifications based on the result of the mutation. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeModal/interfaces/InterfacePledgeModal.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeModal/interfaces/InterfacePledgeModal.md new file mode 100644 index 0000000000..2b28d9bff4 --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgeModal/interfaces/InterfacePledgeModal.md @@ -0,0 +1,79 @@ +[Admin Docs](/) + +*** + +# Interface: InterfacePledgeModal + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L28) + +## Properties + +### campaignId + +> **campaignId**: `string` + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L31) + +*** + +### endDate + +> **endDate**: `Date` + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L35) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L30) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L29) + +*** + +### mode + +> **mode**: `"create"` \| `"edit"` + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L36) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L32) + +*** + +### pledge + +> **pledge**: [`InterfacePledgeInfo`](../../../../utils/interfaces/interfaces/InterfacePledgeInfo.md) + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L33) + +*** + +### refetchPledge() + +> **refetchPledge**: () => `void` + +Defined in: [src/screens/FundCampaignPledge/PledgeModal.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgeModal.tsx#L34) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..b73a0f2664 --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `pledgeOrderBy`: `string`; `where`: \{ `id`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getFundraisingCampaigns`: `object`[]; \}; \}; \})[] + +Defined in: [src/screens/FundCampaignPledge/PledgesMocks.ts:387](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgesMocks.ts#L387) diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS.md new file mode 100644 index 0000000000..c860d064c8 --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `pledgeOrderBy`: `string`; `where`: \{ `id`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getFundraisingCampaigns`: `object`[]; `removeFundraisingCampaignPledge`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; `pledgeOrderBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getFundraisingCampaigns`: `undefined`; `removeFundraisingCampaignPledge`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/FundCampaignPledge/PledgesMocks.ts:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgesMocks.ts#L49) diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS_DELETE_PLEDGE_ERROR.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS_DELETE_PLEDGE_ERROR.md new file mode 100644 index 0000000000..efd24cd140 --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS_DELETE_PLEDGE_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_DELETE\_PLEDGE\_ERROR + +> `const` **MOCKS\_DELETE\_PLEDGE\_ERROR**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; \})[] + +Defined in: [src/screens/FundCampaignPledge/PledgesMocks.ts:374](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgesMocks.ts#L374) diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS_FUND_CAMPAIGN_PLEDGE_ERROR.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS_FUND_CAMPAIGN_PLEDGE_ERROR.md new file mode 100644 index 0000000000..1b11df238c --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/MOCKS_FUND_CAMPAIGN_PLEDGE_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_FUND\_CAMPAIGN\_PLEDGE\_ERROR + +> `const` **MOCKS\_FUND\_CAMPAIGN\_PLEDGE\_ERROR**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `pledgeOrderBy`: `string`; `where`: \{ `id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/FundCampaignPledge/PledgesMocks.ts:358](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgesMocks.ts#L358) diff --git a/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/PLEDGE_MODAL_MOCKS.md b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/PLEDGE_MODAL_MOCKS.md new file mode 100644 index 0000000000..34a2699f10 --- /dev/null +++ b/docs/docs/auto-docs/screens/FundCampaignPledge/PledgesMocks/variables/PLEDGE_MODAL_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: PLEDGE\_MODAL\_MOCKS + +> `const` **PLEDGE\_MODAL\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `amount`: `number`; `campaignId`: `undefined`; `currency`: `undefined`; `endDate`: `undefined`; `id`: `string`; `startDate`: `undefined`; `userIds`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createFundraisingCampaignPledge`: `undefined`; `updateFundraisingCampaignPledge`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `amount`: `number`; `campaignId`: `string`; `currency`: `string`; `endDate`: `string`; `id`: `undefined`; `startDate`: `string`; `userIds`: `string`[]; \}; \}; `result`: \{ `data`: \{ `createFundraisingCampaignPledge`: \{ `_id`: `string`; \}; `updateFundraisingCampaignPledge`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/FundCampaignPledge/PledgesMocks.ts:419](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/FundCampaignPledge/PledgesMocks.ts#L419) diff --git a/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..1c51462f7a --- /dev/null +++ b/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: `object`[] + +Defined in: [src/screens/Leaderboard/Leaderboard.mocks.ts:162](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Leaderboard/Leaderboard.mocks.ts#L162) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `VOLUNTEER_RANKING` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orgId + +> **orgId**: `string` = `'orgId'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.nameContains + +> **nameContains**: `string` = `''` + +#### request.variables.where.orderBy + +> **orderBy**: `string` = `'hours_DESC'` + +#### request.variables.where.timeFrame + +> **timeFrame**: `string` = `'allTime'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.getVolunteerRanks + +> **getVolunteerRanks**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/ERROR_MOCKS.md b/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/ERROR_MOCKS.md new file mode 100644 index 0000000000..fb2a292fee --- /dev/null +++ b/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/ERROR_MOCKS.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Variable: ERROR\_MOCKS + +> `const` **ERROR\_MOCKS**: `object`[] + +Defined in: [src/screens/Leaderboard/Leaderboard.mocks.ts:183](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Leaderboard/Leaderboard.mocks.ts#L183) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `VOLUNTEER_RANKING` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orgId + +> **orgId**: `string` = `'orgId'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.nameContains + +> **nameContains**: `string` = `''` + +#### request.variables.where.orderBy + +> **orderBy**: `string` = `'hours_DESC'` + +#### request.variables.where.timeFrame + +> **timeFrame**: `string` = `'allTime'` diff --git a/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..3f00fc5939 --- /dev/null +++ b/docs/docs/auto-docs/screens/Leaderboard/Leaderboard.mocks/variables/MOCKS.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: `object`[] + +Defined in: [src/screens/Leaderboard/Leaderboard.mocks.ts:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Leaderboard/Leaderboard.mocks.ts#L51) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `VOLUNTEER_RANKING` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orgId + +> **orgId**: `string` = `'orgId'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.nameContains + +> **nameContains**: `string` = `''` + +#### request.variables.where.orderBy + +> **orderBy**: `string` = `'hours_DESC'` + +#### request.variables.where.timeFrame + +> **timeFrame**: `string` = `'allTime'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.getVolunteerRanks + +> **getVolunteerRanks**: `object`[] diff --git a/docs/docs/auto-docs/screens/Leaderboard/Leaderboard/functions/default.md b/docs/docs/auto-docs/screens/Leaderboard/Leaderboard/functions/default.md new file mode 100644 index 0000000000..57977ff100 --- /dev/null +++ b/docs/docs/auto-docs/screens/Leaderboard/Leaderboard/functions/default.md @@ -0,0 +1,21 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/Leaderboard/Leaderboard.tsx:62](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Leaderboard/Leaderboard.tsx#L62) + +Component to display the leaderboard of volunteers. + +This component shows a leaderboard of volunteers ranked by hours contributed, +with features for filtering by time frame and sorting by hours. It displays +volunteer details including rank, name, email, and hours volunteered. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/LoginPage/LoginPage/functions/default.md b/docs/docs/auto-docs/screens/LoginPage/LoginPage/functions/default.md new file mode 100644 index 0000000000..0945bded4d --- /dev/null +++ b/docs/docs/auto-docs/screens/LoginPage/LoginPage/functions/default.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/LoginPage/LoginPage.tsx:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/LoginPage/LoginPage.tsx#L46) + +LoginPage component is used to render the login page of the application where user can login or register +to the application using email and password. The component also provides the functionality to switch between login and +register form. + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/screens/ManageTag/EditUserTagModal/functions/default.md b/docs/docs/auto-docs/screens/ManageTag/EditUserTagModal/functions/default.md new file mode 100644 index 0000000000..b14eea6b63 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/EditUserTagModal/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L41) + +## Parameters + +### props + +[`InterfaceEditUserTagModalProps`](../interfaces/InterfaceEditUserTagModalProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/screens/ManageTag/EditUserTagModal/interfaces/InterfaceEditUserTagModalProps.md b/docs/docs/auto-docs/screens/ManageTag/EditUserTagModal/interfaces/InterfaceEditUserTagModalProps.md new file mode 100644 index 0000000000..debc2e3038 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/EditUserTagModal/interfaces/InterfaceEditUserTagModalProps.md @@ -0,0 +1,109 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceEditUserTagModalProps + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L31) + +Edit UserTag Modal component for the Manage Tag screen. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.modalHeader` +- `.inputField` +- `.removeButton` +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Properties + +### editUserTagModalIsOpen + +> **editUserTagModalIsOpen**: `boolean` + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L32) + +*** + +### handleEditUserTag() + +> **handleEditUserTag**: (`e`) => `Promise`\<`void`\> + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L36) + +#### Parameters + +##### e + +`FormEvent`\<`HTMLFormElement`\> + +#### Returns + +`Promise`\<`void`\> + +*** + +### hideEditUserTagModal() + +> **hideEditUserTagModal**: () => `void` + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L33) + +#### Returns + +`void` + +*** + +### newTagName + +> **newTagName**: `string` + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L34) + +*** + +### setNewTagName() + +> **setNewTagName**: (`state`) => `void` + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L35) + +#### Parameters + +##### state + +`SetStateAction`\<`string`\> + +#### Returns + +`void` + +*** + +### t + +> **t**: `TFunction`\<`"manageTag"`\> + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L37) + +*** + +### tCommon + +> **tCommon**: `TFunction`\<`"common"`\> + +Defined in: [src/screens/ManageTag/EditUserTagModal.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/EditUserTagModal.tsx#L38) diff --git a/docs/docs/auto-docs/screens/ManageTag/ManageTag/functions/default.md b/docs/docs/auto-docs/screens/ManageTag/ManageTag/functions/default.md new file mode 100644 index 0000000000..8231604592 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/ManageTag/functions/default.md @@ -0,0 +1,33 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/ManageTag/ManageTag.tsx:64](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/ManageTag.tsx#L64) + +Component that renders the Manage Tag screen when the app navigates to '/orgtags/:orgId/manageTag/:tagId'. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.tableHeader` +- `.editButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/ManageTag/ManageTagMockComponents/MockAddPeopleToTag/functions/default.md b/docs/docs/auto-docs/screens/ManageTag/ManageTagMockComponents/MockAddPeopleToTag/functions/default.md new file mode 100644 index 0000000000..744e3d7b87 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/ManageTagMockComponents/MockAddPeopleToTag/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/ManageTag/ManageTagMockComponents/MockAddPeopleToTag.tsx:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/ManageTagMockComponents/MockAddPeopleToTag.tsx#L12) + +## Parameters + +### props + +[`InterfaceAddPeopleToTagProps`](../../../../../components/AddPeopleToTag/AddPeopleToTag/interfaces/InterfaceAddPeopleToTagProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/screens/ManageTag/ManageTagMockComponents/MockTagActions/functions/default.md b/docs/docs/auto-docs/screens/ManageTag/ManageTagMockComponents/MockTagActions/functions/default.md new file mode 100644 index 0000000000..dfe85c5573 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/ManageTagMockComponents/MockTagActions/functions/default.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/ManageTag/ManageTagMockComponents/MockTagActions.tsx:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/ManageTagMockComponents/MockTagActions.tsx#L8) + +Component that mocks the TagActions component for the Manage Tag screen. + +## Parameters + +### props + +[`InterfaceTagActionsProps`](../../../../../components/TagActions/TagActions/interfaces/InterfaceTagActionsProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/screens/ManageTag/ManageTagMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/ManageTag/ManageTagMocks/variables/MOCKS.md new file mode 100644 index 0000000000..71d01622c3 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/ManageTagMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; `name`: `undefined`; `sortedBy`: \{ `id`: `string`; \}; `tagId`: `undefined`; `userId`: `undefined`; `where`: \{ `firstName`: \{ `starts_with`: `string`; \}; `lastName`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `getAssignedUsers`: \{ `ancestorTags`: `any`[]; `name`: `string`; `usersAssignedTo`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; \}; `removeUserTag`: `undefined`; `unassignUserTag`: `undefined`; `updateUserTag`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `first`: `number`; `id`: `string`; `name`: `undefined`; `sortedBy`: \{ `id`: `string`; \}; `tagId`: `undefined`; `userId`: `undefined`; `where`: \{ `firstName`: \{ `starts_with`: `string`; \}; `lastName`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `getAssignedUsers`: \{ `ancestorTags`: `any`[]; `name`: `string`; `usersAssignedTo`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; \}; `removeUserTag`: `undefined`; `unassignUserTag`: `undefined`; `updateUserTag`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `undefined`; `id`: `undefined`; `name`: `undefined`; `sortedBy`: `undefined`; `tagId`: `string`; `userId`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getAssignedUsers`: `undefined`; `removeUserTag`: `undefined`; `unassignUserTag`: \{ `_id`: `string`; \}; `updateUserTag`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `undefined`; `id`: `undefined`; `name`: `string`; `sortedBy`: `undefined`; `tagId`: `string`; `userId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getAssignedUsers`: `undefined`; `removeUserTag`: `undefined`; `unassignUserTag`: `undefined`; `updateUserTag`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `undefined`; `id`: `string`; `name`: `undefined`; `sortedBy`: `undefined`; `tagId`: `undefined`; `userId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getAssignedUsers`: `undefined`; `removeUserTag`: \{ `_id`: `string`; \}; `unassignUserTag`: `undefined`; `updateUserTag`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/ManageTag/ManageTagMocks.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/ManageTagMocks.ts#L9) diff --git a/docs/docs/auto-docs/screens/ManageTag/ManageTagMocks/variables/MOCKS_ERROR_ASSIGNED_MEMBERS.md b/docs/docs/auto-docs/screens/ManageTag/ManageTagMocks/variables/MOCKS_ERROR_ASSIGNED_MEMBERS.md new file mode 100644 index 0000000000..9202078d03 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/ManageTagMocks/variables/MOCKS_ERROR_ASSIGNED_MEMBERS.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_ASSIGNED\_MEMBERS + +> `const` **MOCKS\_ERROR\_ASSIGNED\_MEMBERS**: `object`[] + +Defined in: [src/screens/ManageTag/ManageTagMocks.ts:320](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/ManageTagMocks.ts#L320) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_TAGS_ASSIGNED_MEMBERS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'1'` + +#### request.variables.sortedBy + +> **sortedBy**: `object` + +#### request.variables.sortedBy.id + +> **id**: `string` = `'DESCENDING'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.firstName + +> **firstName**: `object` + +#### request.variables.where.firstName.starts\_with + +> **starts\_with**: `string` = `''` + +#### request.variables.where.lastName + +> **lastName**: `object` + +#### request.variables.where.lastName.starts\_with + +> **starts\_with**: `string` = `''` diff --git a/docs/docs/auto-docs/screens/ManageTag/RemoveUserTagModal/functions/default.md b/docs/docs/auto-docs/screens/ManageTag/RemoveUserTagModal/functions/default.md new file mode 100644 index 0000000000..3b09a70d58 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/RemoveUserTagModal/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/ManageTag/RemoveUserTagModal.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/RemoveUserTagModal.tsx#L37) + +## Parameters + +### props + +[`InterfaceRemoveUserTagModalProps`](../interfaces/InterfaceRemoveUserTagModalProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/screens/ManageTag/RemoveUserTagModal/interfaces/InterfaceRemoveUserTagModalProps.md b/docs/docs/auto-docs/screens/ManageTag/RemoveUserTagModal/interfaces/InterfaceRemoveUserTagModalProps.md new file mode 100644 index 0000000000..60810160fc --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/RemoveUserTagModal/interfaces/InterfaceRemoveUserTagModalProps.md @@ -0,0 +1,76 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceRemoveUserTagModalProps + +Defined in: [src/screens/ManageTag/RemoveUserTagModal.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/RemoveUserTagModal.tsx#L29) + +Remove UserTag Modal component for the Manage Tag screen. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.modalHeader` +- `.removeButton` +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Properties + +### handleRemoveUserTag() + +> **handleRemoveUserTag**: () => `Promise`\<`void`\> + +Defined in: [src/screens/ManageTag/RemoveUserTagModal.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/RemoveUserTagModal.tsx#L32) + +#### Returns + +`Promise`\<`void`\> + +*** + +### removeUserTagModalIsOpen + +> **removeUserTagModalIsOpen**: `boolean` + +Defined in: [src/screens/ManageTag/RemoveUserTagModal.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/RemoveUserTagModal.tsx#L30) + +*** + +### t + +> **t**: `TFunction`\<`"manageTag"`\> + +Defined in: [src/screens/ManageTag/RemoveUserTagModal.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/RemoveUserTagModal.tsx#L33) + +*** + +### tCommon + +> **tCommon**: `TFunction`\<`"common"`\> + +Defined in: [src/screens/ManageTag/RemoveUserTagModal.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/RemoveUserTagModal.tsx#L34) + +*** + +### toggleRemoveUserTagModal() + +> **toggleRemoveUserTagModal**: () => `void` + +Defined in: [src/screens/ManageTag/RemoveUserTagModal.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/RemoveUserTagModal.tsx#L31) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/ManageTag/UnassignUserTagModal/functions/default.md b/docs/docs/auto-docs/screens/ManageTag/UnassignUserTagModal/functions/default.md new file mode 100644 index 0000000000..5317868ce4 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/UnassignUserTagModal/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/ManageTag/UnassignUserTagModal.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/UnassignUserTagModal.tsx#L36) + +## Parameters + +### props + +[`InterfaceUnassignUserTagModalProps`](../interfaces/InterfaceUnassignUserTagModalProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/screens/ManageTag/UnassignUserTagModal/interfaces/InterfaceUnassignUserTagModalProps.md b/docs/docs/auto-docs/screens/ManageTag/UnassignUserTagModal/interfaces/InterfaceUnassignUserTagModalProps.md new file mode 100644 index 0000000000..80ded011c7 --- /dev/null +++ b/docs/docs/auto-docs/screens/ManageTag/UnassignUserTagModal/interfaces/InterfaceUnassignUserTagModalProps.md @@ -0,0 +1,76 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceUnassignUserTagModalProps + +Defined in: [src/screens/ManageTag/UnassignUserTagModal.tsx:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/UnassignUserTagModal.tsx#L28) + +Unassign UserTag Modal component for the Manage Tag screen. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.modalHeader` +- `.removeButton` +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Properties + +### handleUnassignUserTag() + +> **handleUnassignUserTag**: () => `Promise`\<`void`\> + +Defined in: [src/screens/ManageTag/UnassignUserTagModal.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/UnassignUserTagModal.tsx#L31) + +#### Returns + +`Promise`\<`void`\> + +*** + +### t + +> **t**: `TFunction`\<`"manageTag"` \| `"memberDetail"`\> + +Defined in: [src/screens/ManageTag/UnassignUserTagModal.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/UnassignUserTagModal.tsx#L32) + +*** + +### tCommon + +> **tCommon**: `TFunction`\<`"common"`\> + +Defined in: [src/screens/ManageTag/UnassignUserTagModal.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/UnassignUserTagModal.tsx#L33) + +*** + +### toggleUnassignUserTagModal() + +> **toggleUnassignUserTagModal**: () => `void` + +Defined in: [src/screens/ManageTag/UnassignUserTagModal.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/UnassignUserTagModal.tsx#L30) + +#### Returns + +`void` + +*** + +### unassignUserTagModalIsOpen + +> **unassignUserTagModalIsOpen**: `boolean` + +Defined in: [src/screens/ManageTag/UnassignUserTagModal.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/ManageTag/UnassignUserTagModal.tsx#L29) diff --git a/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/default.md b/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/default.md new file mode 100644 index 0000000000..b1850d81d7 --- /dev/null +++ b/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/default.md @@ -0,0 +1,36 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/MemberDetail/MemberDetail.tsx:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/MemberDetail/MemberDetail.tsx#L51) + +MemberDetail component is used to display the details of a user. +It also allows the user to update the details. It uses the UPDATE_USER_MUTATION to update the user details. +It uses the USER_DETAILS query to get the user details. It uses the useLocalStorage hook to store the user + details in the local storage. + +## Parameters + +### props + +`MemberDetailProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +React component diff --git a/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/getLanguageName.md b/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/getLanguageName.md new file mode 100644 index 0000000000..8a27bbbc45 --- /dev/null +++ b/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/getLanguageName.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: getLanguageName() + +> **getLanguageName**(`code`): `string` + +Defined in: [src/screens/MemberDetail/MemberDetail.tsx:752](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/MemberDetail/MemberDetail.tsx#L752) + +## Parameters + +### code + +`string` + +## Returns + +`string` diff --git a/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/prettyDate.md b/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/prettyDate.md new file mode 100644 index 0000000000..052e79fb72 --- /dev/null +++ b/docs/docs/auto-docs/screens/MemberDetail/MemberDetail/functions/prettyDate.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: prettyDate() + +> **prettyDate**(`param`): `string` + +Defined in: [src/screens/MemberDetail/MemberDetail.tsx:742](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/MemberDetail/MemberDetail.tsx#L742) + +## Parameters + +### param + +`string` + +## Returns + +`string` diff --git a/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS1.md b/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS1.md new file mode 100644 index 0000000000..91385d9df3 --- /dev/null +++ b/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS1.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS1 + +> `const` **MOCKS1**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; `tagId`: `undefined`; `userId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `unassignUserTag`: `undefined`; `user`: \{ `__typename`: `string`; `appUserProfile`: \{ `__typename`: `string`; `_id`: `string`; `adminFor`: `object`[]; `appLanguageCode`: `string`; `createdEvents`: `object`[]; `createdOrganizations`: `object`[]; `eventAdmin`: `object`[]; `isSuperAdmin`: `boolean`; `pluginCreationAllowed`: `boolean`; \}; `user`: \{ `__typename`: `string`; `_id`: `string`; `address`: \{ `city`: `string`; `countryCode`: `string`; `line1`: `string`; `state`: `string`; \}; `birthDate`: `string`; `createdAt`: `string`; `educationGrade`: `string`; `email`: `string`; `employmentStatus`: `string`; `eventsAttended`: `any`[]; `firstName`: `string`; `gender`: `string`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `maritalStatus`: `string`; `membershipRequests`: `any`[]; `organizationsBlockedBy`: `any`[]; `phone`: \{ `mobile`: `string`; \}; `registeredEvents`: `object`[]; `tagsAssignedWith`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `first`: `number`; `id`: `string`; `tagId`: `undefined`; `userId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `unassignUserTag`: `undefined`; `user`: \{ `__typename`: `string`; `appUserProfile`: \{ `__typename`: `string`; `_id`: `string`; `adminFor`: `object`[]; `appLanguageCode`: `string`; `createdEvents`: `object`[]; `createdOrganizations`: `object`[]; `eventAdmin`: `object`[]; `isSuperAdmin`: `boolean`; `pluginCreationAllowed`: `boolean`; \}; `user`: \{ `__typename`: `string`; `_id`: `string`; `address`: \{ `city`: `string`; `countryCode`: `string`; `line1`: `string`; `state`: `string`; \}; `birthDate`: `string`; `createdAt`: `string`; `educationGrade`: `string`; `email`: `string`; `employmentStatus`: `string`; `eventsAttended`: `any`[]; `firstName`: `string`; `gender`: `string`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `maritalStatus`: `string`; `membershipRequests`: `any`[]; `organizationsBlockedBy`: `any`[]; `phone`: \{ `mobile`: `string`; \}; `registeredEvents`: `object`[]; `tagsAssignedWith`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `undefined`; `id`: `undefined`; `tagId`: `string`; `userId`: `string`; \}; \}; `result`: \{ `data`: \{ `unassignUserTag`: \{ `_id`: `string`; \}; `user`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/MemberDetail/MemberDetailMocks.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/MemberDetail/MemberDetailMocks.ts#L5) diff --git a/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS2.md b/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS2.md new file mode 100644 index 0000000000..7dc494ddc8 --- /dev/null +++ b/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS2.md @@ -0,0 +1,219 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS2 + +> `const` **MOCKS2**: `object`[] + +Defined in: [src/screens/MemberDetail/MemberDetailMocks.ts:337](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/MemberDetail/MemberDetailMocks.ts#L337) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_DETAILS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'rishav-jha-mech'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.user + +> **user**: `object` + +#### result.data.user.\_\_typename + +> **\_\_typename**: `string` = `'UserData'` + +#### result.data.user.appUserProfile + +> **appUserProfile**: `object` + +#### result.data.user.appUserProfile.\_\_typename + +> **\_\_typename**: `string` = `'AppUserProfile'` + +#### result.data.user.appUserProfile.\_id + +> **\_id**: `string` = `'1'` + +#### result.data.user.appUserProfile.adminFor + +> **adminFor**: `any`[] = `[]` + +#### result.data.user.appUserProfile.appLanguageCode + +> **appLanguageCode**: `string` = `'en'` + +#### result.data.user.appUserProfile.createdEvents + +> **createdEvents**: `object`[] + +#### result.data.user.appUserProfile.createdOrganizations + +> **createdOrganizations**: `object`[] + +#### result.data.user.appUserProfile.eventAdmin + +> **eventAdmin**: `object`[] + +#### result.data.user.appUserProfile.isSuperAdmin + +> **isSuperAdmin**: `boolean` = `false` + +#### result.data.user.appUserProfile.pluginCreationAllowed + +> **pluginCreationAllowed**: `boolean` = `true` + +#### result.data.user.user + +> **user**: `object` + +#### result.data.user.user.\_\_typename + +> **\_\_typename**: `string` = `'User'` + +#### result.data.user.user.\_id + +> **\_id**: `string` = `'1'` + +#### result.data.user.user.address + +> **address**: `object` + +#### result.data.user.user.address.city + +> **city**: `string` = `''` + +#### result.data.user.user.address.countryCode + +> **countryCode**: `string` = `''` + +#### result.data.user.user.address.line1 + +> **line1**: `string` = `''` + +#### result.data.user.user.address.state + +> **state**: `string` = `''` + +#### result.data.user.user.birthDate + +> **birthDate**: `string` = `'2024-03-14'` + +#### result.data.user.user.createdAt + +> **createdAt**: `string` = `'2024-02-26T10:36:33.098Z'` + +#### result.data.user.user.educationGrade + +> **educationGrade**: `string` = `''` + +#### result.data.user.user.email + +> **email**: `string` = `'adi790u@gmail.com'` + +#### result.data.user.user.employmentStatus + +> **employmentStatus**: `string` = `''` + +#### result.data.user.user.eventsAttended + +> **eventsAttended**: `object`[] + +#### result.data.user.user.firstName + +> **firstName**: `string` = `'Aditya'` + +#### result.data.user.user.gender + +> **gender**: `string` = `''` + +#### result.data.user.user.image + +> **image**: `string` = `'https://placeholder.com/200x200'` + +#### result.data.user.user.joinedOrganizations + +> **joinedOrganizations**: `object`[] + +#### result.data.user.user.lastName + +> **lastName**: `string` = `'Agarwal'` + +#### result.data.user.user.maritalStatus + +> **maritalStatus**: `string` = `''` + +#### result.data.user.user.membershipRequests + +> **membershipRequests**: `any`[] = `[]` + +#### result.data.user.user.organizationsBlockedBy + +> **organizationsBlockedBy**: `any`[] = `[]` + +#### result.data.user.user.phone + +> **phone**: `object` + +#### result.data.user.user.phone.mobile + +> **mobile**: `string` = `''` + +#### result.data.user.user.registeredEvents + +> **registeredEvents**: `object`[] + +#### result.data.user.user.tagsAssignedWith + +> **tagsAssignedWith**: `object` + +#### result.data.user.user.tagsAssignedWith.edges + +> **edges**: `any`[] = `[]` + +#### result.data.user.user.tagsAssignedWith.pageInfo + +> **pageInfo**: `object` + +#### result.data.user.user.tagsAssignedWith.pageInfo.endCursor + +> **endCursor**: `any` = `null` + +#### result.data.user.user.tagsAssignedWith.pageInfo.hasNextPage + +> **hasNextPage**: `boolean` = `false` + +#### result.data.user.user.tagsAssignedWith.pageInfo.hasPreviousPage + +> **hasPreviousPage**: `boolean` = `false` + +#### result.data.user.user.tagsAssignedWith.pageInfo.startCursor + +> **startCursor**: `any` = `null` + +#### result.data.user.user.tagsAssignedWith.totalCount + +> **totalCount**: `number` = `0` diff --git a/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS3.md b/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS3.md new file mode 100644 index 0000000000..1a5093e305 --- /dev/null +++ b/docs/docs/auto-docs/screens/MemberDetail/MemberDetailMocks/variables/MOCKS3.md @@ -0,0 +1,219 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS3 + +> `const` **MOCKS3**: `object`[] + +Defined in: [src/screens/MemberDetail/MemberDetailMocks.ts:437](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/MemberDetail/MemberDetailMocks.ts#L437) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_DETAILS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'rishav-jha-mech'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.user + +> **user**: `object` + +#### result.data.user.\_\_typename + +> **\_\_typename**: `string` = `'UserData'` + +#### result.data.user.appUserProfile + +> **appUserProfile**: `object` + +#### result.data.user.appUserProfile.\_\_typename + +> **\_\_typename**: `string` = `'AppUserProfile'` + +#### result.data.user.appUserProfile.\_id + +> **\_id**: `string` = `'1'` + +#### result.data.user.appUserProfile.adminFor + +> **adminFor**: `any`[] = `[]` + +#### result.data.user.appUserProfile.appLanguageCode + +> **appLanguageCode**: `string` = `'en'` + +#### result.data.user.appUserProfile.createdEvents + +> **createdEvents**: `object`[] + +#### result.data.user.appUserProfile.createdOrganizations + +> **createdOrganizations**: `object`[] + +#### result.data.user.appUserProfile.eventAdmin + +> **eventAdmin**: `object`[] + +#### result.data.user.appUserProfile.isSuperAdmin + +> **isSuperAdmin**: `boolean` = `true` + +#### result.data.user.appUserProfile.pluginCreationAllowed + +> **pluginCreationAllowed**: `boolean` = `true` + +#### result.data.user.user + +> **user**: `object` + +#### result.data.user.user.\_\_typename + +> **\_\_typename**: `string` = `'User'` + +#### result.data.user.user.\_id + +> **\_id**: `string` = `'1'` + +#### result.data.user.user.address + +> **address**: `object` + +#### result.data.user.user.address.city + +> **city**: `string` = `''` + +#### result.data.user.user.address.countryCode + +> **countryCode**: `string` = `''` + +#### result.data.user.user.address.line1 + +> **line1**: `string` = `''` + +#### result.data.user.user.address.state + +> **state**: `string` = `''` + +#### result.data.user.user.birthDate + +> **birthDate**: `string` = `'2024-03-14'` + +#### result.data.user.user.createdAt + +> **createdAt**: `string` = `'2024-02-26T10:36:33.098Z'` + +#### result.data.user.user.educationGrade + +> **educationGrade**: `string` = `''` + +#### result.data.user.user.email + +> **email**: `string` = `'adi790u@gmail.com'` + +#### result.data.user.user.employmentStatus + +> **employmentStatus**: `string` = `''` + +#### result.data.user.user.eventsAttended + +> **eventsAttended**: `any`[] = `[]` + +#### result.data.user.user.firstName + +> **firstName**: `string` = `'Aditya'` + +#### result.data.user.user.gender + +> **gender**: `string` = `''` + +#### result.data.user.user.image + +> **image**: `string` = `'https://placeholder.com/200x200'` + +#### result.data.user.user.joinedOrganizations + +> **joinedOrganizations**: `object`[] + +#### result.data.user.user.lastName + +> **lastName**: `string` = `'Agarwal'` + +#### result.data.user.user.maritalStatus + +> **maritalStatus**: `string` = `''` + +#### result.data.user.user.membershipRequests + +> **membershipRequests**: `any`[] = `[]` + +#### result.data.user.user.organizationsBlockedBy + +> **organizationsBlockedBy**: `any`[] = `[]` + +#### result.data.user.user.phone + +> **phone**: `object` + +#### result.data.user.user.phone.mobile + +> **mobile**: `string` = `''` + +#### result.data.user.user.registeredEvents + +> **registeredEvents**: `object`[] + +#### result.data.user.user.tagsAssignedWith + +> **tagsAssignedWith**: `object` + +#### result.data.user.user.tagsAssignedWith.edges + +> **edges**: `any`[] = `[]` + +#### result.data.user.user.tagsAssignedWith.pageInfo + +> **pageInfo**: `object` + +#### result.data.user.user.tagsAssignedWith.pageInfo.endCursor + +> **endCursor**: `any` = `null` + +#### result.data.user.user.tagsAssignedWith.pageInfo.hasNextPage + +> **hasNextPage**: `boolean` = `false` + +#### result.data.user.user.tagsAssignedWith.pageInfo.hasPreviousPage + +> **hasPreviousPage**: `boolean` = `false` + +#### result.data.user.user.tagsAssignedWith.pageInfo.startCursor + +> **startCursor**: `any` = `null` + +#### result.data.user.user.tagsAssignedWith.totalCount + +> **totalCount**: `number` = `0` diff --git a/docs/docs/auto-docs/screens/OrgContribution/OrgContribution/functions/default.md b/docs/docs/auto-docs/screens/OrgContribution/OrgContribution/functions/default.md new file mode 100644 index 0000000000..de4e86a486 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgContribution/OrgContribution/functions/default.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrgContribution/OrgContribution.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgContribution/OrgContribution.tsx#L16) + +The `orgContribution` component displays the contributions to an organization. +It includes a sidebar for filtering contributions by organization name and transaction ID. +Additionally, it shows recent contribution statistics and a list of contribution cards. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/OrgList/OrgList/functions/default.md b/docs/docs/auto-docs/screens/OrgList/OrgList/functions/default.md new file mode 100644 index 0000000000..6a0ea9ce43 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgList/OrgList/functions/default.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrgList/OrgList.tsx:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgList/OrgList.tsx#L53) + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.inputField` +- `.searchButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS.md new file mode 100644 index 0000000000..186da86e69 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `notifyOnNetworkStatusChange`: `boolean`; `query`: `DocumentNode`; `variables`: \{ `address`: `undefined`; `description`: `undefined`; `filter`: `string`; `first`: `number`; `image`: `undefined`; `name`: `undefined`; `orderBy`: `string`; `skip`: `number`; `userId`: `undefined`; `userRegistrationRequired`: `undefined`; `visibleInSearch`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createOrganization`: `undefined`; `createSampleOrganization`: `undefined`; `organizationsConnection`: [`InterfaceOrgConnectionInfoType`](../../../../utils/interfaces/interfaces/InterfaceOrgConnectionInfoType.md)[]; `user`: `undefined`; \}; \}; \} \| \{ `request`: \{ `notifyOnNetworkStatusChange`: `undefined`; `query`: `DocumentNode`; `variables`: \{ `address`: `undefined`; `description`: `undefined`; `filter`: `undefined`; `first`: `undefined`; `image`: `undefined`; `name`: `undefined`; `orderBy`: `undefined`; `skip`: `undefined`; `userId`: `string`; `userRegistrationRequired`: `undefined`; `visibleInSearch`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createOrganization`: `undefined`; `createSampleOrganization`: `undefined`; `organizationsConnection`: `undefined`; `user`: [`InterfaceUserType`](../../../../utils/interfaces/interfaces/InterfaceUserType.md); \}; \}; \} \| \{ `request`: \{ `notifyOnNetworkStatusChange`: `undefined`; `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `createOrganization`: `undefined`; `createSampleOrganization`: \{ `id`: `string`; `name`: `string`; \}; `organizationsConnection`: `undefined`; `user`: `undefined`; \}; \}; \} \| \{ `request`: \{ `notifyOnNetworkStatusChange`: `undefined`; `query`: `DocumentNode`; `variables`: \{ `address`: \{ `city`: `string`; `countryCode`: `string`; `dependentLocality`: `string`; `line1`: `string`; `line2`: `string`; `postalCode`: `string`; `sortingCode`: `string`; `state`: `string`; \}; `description`: `string`; `filter`: `undefined`; `first`: `undefined`; `image`: `string`; `name`: `string`; `orderBy`: `undefined`; `skip`: `undefined`; `userId`: `undefined`; `userRegistrationRequired`: `boolean`; `visibleInSearch`: `boolean`; \}; \}; `result`: \{ `data`: \{ `createOrganization`: \{ `_id`: `string`; \}; `createSampleOrganization`: `undefined`; `organizationsConnection`: `undefined`; `user`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrgList/OrgListMocks.ts:94](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgList/OrgListMocks.ts#L94) diff --git a/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_ADMIN.md b/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_ADMIN.md new file mode 100644 index 0000000000..0c8f8ba0b1 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_ADMIN.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ADMIN + +> `const` **MOCKS\_ADMIN**: (\{ `request`: \{ `notifyOnNetworkStatusChange`: `boolean`; `query`: `DocumentNode`; `variables`: \{ `filter`: `string`; `first`: `number`; `orderBy`: `string`; `skip`: `number`; `userId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: [`InterfaceOrgConnectionInfoType`](../../../../utils/interfaces/interfaces/InterfaceOrgConnectionInfoType.md)[]; `user`: `undefined`; \}; \}; \} \| \{ `request`: \{ `notifyOnNetworkStatusChange`: `undefined`; `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `first`: `undefined`; `orderBy`: `undefined`; `skip`: `undefined`; `userId`: `string`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `user`: [`InterfaceUserType`](../../../../utils/interfaces/interfaces/InterfaceUserType.md); \}; \}; \})[] + +Defined in: [src/screens/OrgList/OrgListMocks.ts:228](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgList/OrgListMocks.ts#L228) diff --git a/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_EMPTY.md b/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_EMPTY.md new file mode 100644 index 0000000000..5b7125b9bc --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_EMPTY.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_EMPTY + +> `const` **MOCKS\_EMPTY**: (\{ `request`: \{ `notifyOnNetworkStatusChange`: `boolean`; `query`: `DocumentNode`; `variables`: \{ `filter`: `string`; `first`: `number`; `orderBy`: `string`; `skip`: `number`; `userId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `any`[]; `user`: `undefined`; \}; \}; \} \| \{ `request`: \{ `notifyOnNetworkStatusChange`: `undefined`; `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `first`: `undefined`; `orderBy`: `undefined`; `skip`: `undefined`; `userId`: `string`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `user`: [`InterfaceUserType`](../../../../utils/interfaces/interfaces/InterfaceUserType.md); \}; \}; \})[] + +Defined in: [src/screens/OrgList/OrgListMocks.ts:164](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgList/OrgListMocks.ts#L164) diff --git a/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_WITH_ERROR.md b/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_WITH_ERROR.md new file mode 100644 index 0000000000..5e5246f536 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgList/OrgListMocks/variables/MOCKS_WITH_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_WITH\_ERROR + +> `const` **MOCKS\_WITH\_ERROR**: (\{ `error`: `undefined`; `request`: \{ `notifyOnNetworkStatusChange`: `boolean`; `query`: `DocumentNode`; `variables`: \{ `filter`: `string`; `first`: `number`; `orderBy`: `string`; `skip`: `number`; `userId`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: [`InterfaceOrgConnectionInfoType`](../../../../utils/interfaces/interfaces/InterfaceOrgConnectionInfoType.md)[]; `user`: `undefined`; \}; \}; \} \| \{ `error`: `undefined`; `request`: \{ `notifyOnNetworkStatusChange`: `undefined`; `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `first`: `undefined`; `orderBy`: `undefined`; `skip`: `undefined`; `userId`: `string`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `user`: [`InterfaceUserType`](../../../../utils/interfaces/interfaces/InterfaceUserType.md); \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `notifyOnNetworkStatusChange`: `undefined`; `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: `undefined`; \})[] + +Defined in: [src/screens/OrgList/OrgListMocks.ts:192](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgList/OrgListMocks.ts#L192) diff --git a/docs/docs/auto-docs/screens/OrgList/OrganizationModal/functions/default.md b/docs/docs/auto-docs/screens/OrgList/OrganizationModal/functions/default.md new file mode 100644 index 0000000000..fbcd5db831 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgList/OrganizationModal/functions/default.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/OrgList/OrganizationModal.tsx:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgList/OrganizationModal.tsx#L55) + +Represents the organization modal component. + +## Parameters + +### props + +`InterfaceOrganizationModalProps` + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/screens/OrgPost/OrgPost/functions/default.md b/docs/docs/auto-docs/screens/OrgPost/OrgPost/functions/default.md new file mode 100644 index 0000000000..62c0eb7190 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgPost/OrgPost/functions/default.md @@ -0,0 +1,38 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrgPost/OrgPost.tsx:70](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgPost/OrgPost.tsx#L70) + +This function is used to display the posts of the organization. It displays the posts in a card format. +It also provides the functionality to create a new post. The user can also sort the posts based on the date of creation. +The user can also search for a post based on the title of the post. + +## Returns + +`JSX.Element` + +JSX.Element which contains the posts of the organization. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.inputField` +- `.removeButton` +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/screens/OrgSettings/OrgSettings.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/OrgSettings/OrgSettings.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..2ce3f7d3a6 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgSettings/OrgSettings.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `customFieldsByOrganizationId`: `undefined`; `id`: `string`; `isSampleOrganizationId`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `undefined`; `agendaItemCategoriesByOrganization`: `undefined`; `customFieldsByOrganization`: `undefined`; `isSampleOrganization`: `undefined`; `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `customFieldsByOrganizationId`: `string`; `id`: `undefined`; `isSampleOrganizationId`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `undefined`; `agendaItemCategoriesByOrganization`: `undefined`; `customFieldsByOrganization`: `object`[]; `isSampleOrganization`: `undefined`; `organizations`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `customFieldsByOrganizationId`: `undefined`; `id`: `undefined`; `isSampleOrganizationId`: `string`; `orderBy`: `undefined`; `organizationId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `undefined`; `agendaItemCategoriesByOrganization`: `undefined`; `customFieldsByOrganization`: `undefined`; `isSampleOrganization`: `boolean`; `organizations`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `customFieldsByOrganizationId`: `undefined`; `id`: `undefined`; `isSampleOrganizationId`: `undefined`; `orderBy`: `undefined`; `organizationId`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `undefined`; `agendaItemCategoriesByOrganization`: `any`[]; `customFieldsByOrganization`: `undefined`; `isSampleOrganization`: `undefined`; `organizations`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `customFieldsByOrganizationId`: `undefined`; `id`: `undefined`; `isSampleOrganizationId`: `undefined`; `orderBy`: `string`; `organizationId`: `string`; `where`: \{ `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: `object`[]; `agendaItemCategoriesByOrganization`: `undefined`; `customFieldsByOrganization`: `undefined`; `isSampleOrganization`: `undefined`; `organizations`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrgSettings/OrgSettings.mocks.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgSettings/OrgSettings.mocks.ts#L9) diff --git a/docs/docs/auto-docs/screens/OrgSettings/OrgSettings/functions/default.md b/docs/docs/auto-docs/screens/OrgSettings/OrgSettings/functions/default.md new file mode 100644 index 0000000000..fbc44bcc95 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrgSettings/OrgSettings/functions/default.md @@ -0,0 +1,21 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrgSettings/OrgSettings.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrgSettings/OrgSettings.tsx#L29) + +The `orgSettings` component provides a user interface for managing various settings related to an organization. +It includes options for updating organization details, deleting the organization, changing language preferences, +and managing custom fields and action item categories. + +The component renders different settings sections based on the user's selection from the tabs or dropdown menu. + +## Returns + +`JSX.Element` + +The rendered component displaying the organization settings. diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/ItemDeleteModal/functions/default.md b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemDeleteModal/functions/default.md new file mode 100644 index 0000000000..0f8354c732 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemDeleteModal/functions/default.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/OrganizationActionItems/ItemDeleteModal.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemDeleteModal.tsx#L26) + +A modal component for confirming the deletion of an action item. + +## Parameters + +### props + +[`InterfaceItemDeleteModalProps`](../interfaces/InterfaceItemDeleteModalProps.md) + +The properties passed to the component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The `ItemDeleteModal` component. diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/ItemDeleteModal/interfaces/InterfaceItemDeleteModalProps.md b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemDeleteModal/interfaces/InterfaceItemDeleteModalProps.md new file mode 100644 index 0000000000..eed758ea71 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemDeleteModal/interfaces/InterfaceItemDeleteModalProps.md @@ -0,0 +1,49 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceItemDeleteModalProps + +Defined in: [src/screens/OrganizationActionItems/ItemDeleteModal.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemDeleteModal.tsx#L13) + +Props for the `ItemDeleteModal` component. + +## Properties + +### actionItem + +> **actionItem**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/ItemDeleteModal.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemDeleteModal.tsx#L16) + +*** + +### actionItemsRefetch() + +> **actionItemsRefetch**: () => `void` + +Defined in: [src/screens/OrganizationActionItems/ItemDeleteModal.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemDeleteModal.tsx#L17) + +#### Returns + +`void` + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/OrganizationActionItems/ItemDeleteModal.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemDeleteModal.tsx#L15) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/OrganizationActionItems/ItemDeleteModal.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemDeleteModal.tsx#L14) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/ItemModal/functions/default.md b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemModal/functions/default.md new file mode 100644 index 0000000000..2555108fb9 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemModal/functions/default.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:92](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L92) + +A modal component for creating action items. + +## Parameters + +### props + +[`InterfaceItemModalProps`](../interfaces/InterfaceItemModalProps.md) + +The properties passed to the component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The `ItemModal` component. diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/ItemModal/interfaces/InterfaceItemModalProps.md b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemModal/interfaces/InterfaceItemModalProps.md new file mode 100644 index 0000000000..f04d3936aa --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemModal/interfaces/InterfaceItemModalProps.md @@ -0,0 +1,73 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceItemModalProps + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:52](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L52) + +Props for the `ItemModal` component. + +## Properties + +### actionItem + +> **actionItem**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L58) + +*** + +### actionItemsRefetch() + +> **actionItemsRefetch**: () => `void` + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:57](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L57) + +#### Returns + +`void` + +*** + +### editMode + +> **editMode**: `boolean` + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L59) + +*** + +### eventId + +> **eventId**: `string` + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:56](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L56) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L54) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L53) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/screens/OrganizationActionItems/ItemModal.tsx:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemModal.tsx#L55) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/ItemUpdateStatusModal/functions/default.md b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemUpdateStatusModal/functions/default.md new file mode 100644 index 0000000000..ac27a50803 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemUpdateStatusModal/functions/default.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx#L38) + +## Parameters + +### props + +[`InterfaceItemUpdateStatusModalProps`](../interfaces/InterfaceItemUpdateStatusModalProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/ItemUpdateStatusModal/interfaces/InterfaceItemUpdateStatusModalProps.md b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemUpdateStatusModal/interfaces/InterfaceItemUpdateStatusModalProps.md new file mode 100644 index 0000000000..a04a18e146 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemUpdateStatusModal/interfaces/InterfaceItemUpdateStatusModalProps.md @@ -0,0 +1,65 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceItemUpdateStatusModalProps + +Defined in: [src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx#L31) + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.addButton` +- `.removeButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Properties + +### actionItem + +> **actionItem**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx#L35) + +*** + +### actionItemsRefetch() + +> **actionItemsRefetch**: () => `void` + +Defined in: [src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx#L34) + +#### Returns + +`void` + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx#L33) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx#L32) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/ItemViewModal/functions/default.md b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemViewModal/functions/default.md new file mode 100644 index 0000000000..1972f15750 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemViewModal/functions/default.md @@ -0,0 +1,36 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/OrganizationActionItems/ItemViewModal.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemViewModal.tsx#L32) + +A modal dialog for viewing action item details. + +## Parameters + +### props + +[`InterfaceViewModalProps`](../interfaces/InterfaceViewModalProps.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `ItemViewModal` component displays all the fields of an action item in a modal dialog. +It includes fields for assignee, assigner, category, pre and post completion notes, assignment date, due date, completion date, and event. diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/ItemViewModal/interfaces/InterfaceViewModalProps.md b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemViewModal/interfaces/InterfaceViewModalProps.md new file mode 100644 index 0000000000..0c8471d11c --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/ItemViewModal/interfaces/InterfaceViewModalProps.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceViewModalProps + +Defined in: [src/screens/OrganizationActionItems/ItemViewModal.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemViewModal.tsx#L13) + +## Properties + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/OrganizationActionItems/ItemViewModal.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemViewModal.tsx#L15) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/OrganizationActionItems/ItemViewModal.tsx:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemViewModal.tsx#L14) + +*** + +### item + +> **item**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/ItemViewModal.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/ItemViewModal.tsx#L16) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..320ce712e4 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `organizationId`: `string`; `where`: \{ `is_disabled`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: (\{ `_id`: `string`; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `isDisabled`: `boolean`; `name`: `string`; \} \| \{ `_id`: `undefined`; `createdAt`: `string`; `creator`: \{ `_id`: `undefined`; `firstName`: `string`; `lastName`: `string`; \}; `isDisabled`: `boolean`; `name`: `string`; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `string`; `hasAccepted`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteers`: (\{ `_id`: `string`; `assignments`: `any`[]; `groups`: `object`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \} \| \{ `_id`: `undefined`; `assignments`: `any`[]; `groups`: `any`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `undefined`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `undefined`; `hasAccepted`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteers`: `any`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: (\{ `_id`: `string`; `assignments`: `any`[]; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `description`: `string`; `event`: \{ `_id`: `string`; \}; `leader`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `name`: `string`; `volunteers`: `object`[]; `volunteersRequired`: `number`; \} \| \{ `_id`: `undefined`; `assignments`: `any`[]; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `description`: `string`; `event`: \{ `_id`: `string`; \}; `leader`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `name`: `string`; `volunteers`: `any`[]; `volunteersRequired`: `number`; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `actionItemId`: `undefined`; `allottedHours`: `undefined`; `assigneeId`: `undefined`; `assigneeType`: `undefined`; `dDate`: `undefined`; `dueDate`: `undefined`; `eventId`: `string`; `isCompleted`: `undefined`; `orderBy`: `any`; `organizationId`: `string`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `undefined`; `where`: \{ `assigneeName`: `undefined`; `categoryName`: `string`; `is_completed`: `undefined`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md)[]; `createActionItem`: `undefined`; `removeActionItem`: `undefined`; `updateActionItem`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `actionItemId`: `undefined`; `allottedHours`: `undefined`; `assigneeId`: `undefined`; `assigneeType`: `undefined`; `dDate`: `undefined`; `dueDate`: `undefined`; `eventId`: `string`; `isCompleted`: `undefined`; `orderBy`: `string`; `organizationId`: `string`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `undefined`; `where`: \{ `assigneeName`: `string`; `categoryName`: `undefined`; `is_completed`: `undefined`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md)[]; `createActionItem`: `undefined`; `removeActionItem`: `undefined`; `updateActionItem`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `actionItemId`: `undefined`; `allottedHours`: `undefined`; `assigneeId`: `undefined`; `assigneeType`: `undefined`; `dDate`: `undefined`; `dueDate`: `undefined`; `eventId`: `string`; `isCompleted`: `undefined`; `orderBy`: `any`; `organizationId`: `string`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `undefined`; `where`: \{ `assigneeName`: `string`; `categoryName`: `undefined`; `is_completed`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md)[]; `createActionItem`: `undefined`; `removeActionItem`: `undefined`; `updateActionItem`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `actionItemId`: `string`; `allottedHours`: `undefined`; `assigneeId`: `undefined`; `assigneeType`: `undefined`; `dDate`: `undefined`; `dueDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `undefined`; `createActionItem`: `undefined`; `removeActionItem`: \{ `_id`: `string`; \}; `updateActionItem`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `actionItemId`: `string`; `allottedHours`: `undefined`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `undefined`; `dueDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `boolean`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `string`; `preCompletionNotes`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `undefined`; `createActionItem`: `undefined`; `removeActionItem`: `undefined`; `updateActionItem`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `string`; `actionItemId`: `string`; `allottedHours`: `number`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `undefined`; `dueDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `string`; `preCompletionNotes`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `undefined`; `createActionItem`: `undefined`; `removeActionItem`: `undefined`; `updateActionItem`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `string`; `actionItemId`: `string`; `allottedHours`: `number`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `undefined`; `dueDate`: `string`; `eventId`: `undefined`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `undefined`; `createActionItem`: `undefined`; `removeActionItem`: `undefined`; `updateActionItem`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `undefined`; `actionItemId`: `string`; `allottedHours`: `undefined`; `assigneeId`: `string`; `assigneeType`: `undefined`; `dDate`: `undefined`; `dueDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `boolean`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `string`; `preCompletionNotes`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `undefined`; `createActionItem`: `undefined`; `removeActionItem`: `undefined`; `updateActionItem`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `string`; `actionItemId`: `string`; `allottedHours`: `number`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `undefined`; `dueDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `undefined`; `createActionItem`: `undefined`; `removeActionItem`: `undefined`; `updateActionItem`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `string`; `actionItemId`: `undefined`; `allottedHours`: `number`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `string`; `dueDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `undefined`; `createActionItem`: \{ `_id`: `string`; \}; `removeActionItem`: `undefined`; `updateActionItem`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemCategoryId`: `string`; `actionItemId`: `undefined`; `allottedHours`: `number`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `string`; `dueDate`: `undefined`; `eventId`: `string`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `undefined`; `createActionItem`: \{ `_id`: `string`; \}; `removeActionItem`: `undefined`; `updateActionItem`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrganizationActionItems/OrganizationActionItem.mocks.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/OrganizationActionItem.mocks.ts#L21) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS_EMPTY.md b/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS_EMPTY.md new file mode 100644 index 0000000000..cd5dbe8b9f --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS_EMPTY.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_EMPTY + +> `const` **MOCKS\_EMPTY**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `organizationId`: `string`; `where`: \{ `is_disabled`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: (\{ `_id`: `string`; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `isDisabled`: `boolean`; `name`: `string`; \} \| \{ `_id`: `undefined`; `createdAt`: `string`; `creator`: \{ `_id`: `undefined`; `firstName`: `string`; `lastName`: `string`; \}; `isDisabled`: `boolean`; `name`: `string`; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `string`; `hasAccepted`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteers`: (\{ `_id`: `string`; `assignments`: `any`[]; `groups`: `object`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \} \| \{ `_id`: `undefined`; `assignments`: `any`[]; `groups`: `any`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `undefined`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `undefined`; `hasAccepted`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteers`: `any`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: (\{ `_id`: `string`; `assignments`: `any`[]; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `description`: `string`; `event`: \{ `_id`: `string`; \}; `leader`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `name`: `string`; `volunteers`: `object`[]; `volunteersRequired`: `number`; \} \| \{ `_id`: `undefined`; `assignments`: `any`[]; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `description`: `string`; `event`: \{ `_id`: `string`; \}; `leader`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `name`: `string`; `volunteers`: `any`[]; `volunteersRequired`: `number`; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `eventId`: `string`; `orderBy`: `any`; `organizationId`: `string`; `where`: \{ `assigneeName`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemsByOrganization`: `any`[]; \}; \}; \})[] + +Defined in: [src/screens/OrganizationActionItems/OrganizationActionItem.mocks.ts:480](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/OrganizationActionItem.mocks.ts#L480) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..ab3b8fd514 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItem.mocks/variables/MOCKS_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `organizationId`: `string`; `where`: \{ `is_disabled`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemCategoriesByOrganization`: (\{ `_id`: `string`; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `isDisabled`: `boolean`; `name`: `string`; \} \| \{ `_id`: `undefined`; `createdAt`: `string`; `creator`: \{ `_id`: `undefined`; `firstName`: `string`; `lastName`: `string`; \}; `isDisabled`: `boolean`; `name`: `string`; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `string`; `hasAccepted`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteers`: (\{ `_id`: `string`; `assignments`: `any`[]; `groups`: `object`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \} \| \{ `_id`: `undefined`; `assignments`: `any`[]; `groups`: `any`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `undefined`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `undefined`; `hasAccepted`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteers`: `any`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: (\{ `_id`: `string`; `assignments`: `any`[]; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `description`: `string`; `event`: \{ `_id`: `string`; \}; `leader`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `name`: `string`; `volunteers`: `object`[]; `volunteersRequired`: `number`; \} \| \{ `_id`: `undefined`; `assignments`: `any`[]; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `description`: `string`; `event`: \{ `_id`: `string`; \}; `leader`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `name`: `string`; `volunteers`: `any`[]; `volunteersRequired`: `number`; \})[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemId`: `undefined`; `allottedHours`: `undefined`; `assigneeId`: `undefined`; `assigneeType`: `undefined`; `dDate`: `undefined`; `eventId`: `string`; `isCompleted`: `undefined`; `orderBy`: `any`; `organizationId`: `string`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `undefined`; `where`: \{ `assigneeName`: `string`; \}; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemId`: `string`; `allottedHours`: `undefined`; `assigneeId`: `undefined`; `assigneeType`: `undefined`; `dDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `undefined`; `where`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemId`: `string`; `allottedHours`: `undefined`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `boolean`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `string`; `preCompletionNotes`: `undefined`; `where`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemId`: `undefined`; `allottedHours`: `any`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `string`; `eventId`: `undefined`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `undefined`; `preCompletionNotes`: `string`; `where`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `actionItemId`: `string`; `allottedHours`: `undefined`; `assigneeId`: `string`; `assigneeType`: `string`; `dDate`: `undefined`; `eventId`: `undefined`; `isCompleted`: `undefined`; `orderBy`: `undefined`; `organizationId`: `undefined`; `postCompletionNotes`: `string`; `preCompletionNotes`: `undefined`; `where`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrganizationActionItems/OrganizationActionItem.mocks.ts:412](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/OrganizationActionItem.mocks.ts#L412) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItems/functions/default.md b/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItems/functions/default.md new file mode 100644 index 0000000000..b5fa8f5e0d --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/OrganizationActionItems/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrganizationActionItems/OrganizationActionItems.tsx:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/OrganizationActionItems.tsx#L51) + +Component for managing and displaying action items within an organization. + +This component allows users to view, filter, sort, and create action items. It also handles fetching and displaying related data such as action item categories and members. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategory1.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategory1.md new file mode 100644 index 0000000000..05a31d8574 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategory1.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: actionItemCategory1 + +> `const` **actionItemCategory1**: `object` + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L11) + +## Type declaration + +### \_id + +> **\_id**: `string` = `'actionItemCategoryId1'` + +### name + +> **name**: `string` = `'Category 1'` diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategory2.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategory2.md new file mode 100644 index 0000000000..8212d1eb0b --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategory2.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: actionItemCategory2 + +> `const` **actionItemCategory2**: `object` + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L16) + +## Type declaration + +### \_id + +> **\_id**: `string` = `'actionItemCategoryId2'` + +### name + +> **name**: `string` = `'Category 2'` diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategoryListQuery.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategoryListQuery.md new file mode 100644 index 0000000000..5bc4e6f692 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/actionItemCategoryListQuery.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Variable: actionItemCategoryListQuery + +> `const` **actionItemCategoryListQuery**: `object` + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:408](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L408) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ACTION_ITEM_CATEGORY_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.organizationId + +> **organizationId**: `string` = `'orgId'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.is\_disabled + +> **is\_disabled**: `boolean` = `false` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.actionItemCategoriesByOrganization + +> **actionItemCategoriesByOrganization**: (\{ `_id`: `string`; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `isDisabled`: `boolean`; `name`: `string`; \} \| \{ `_id`: `undefined`; `createdAt`: `string`; `creator`: \{ `_id`: `undefined`; `firstName`: `string`; `lastName`: `string`; \}; `isDisabled`: `boolean`; `name`: `string`; \})[] diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/baseActionItem.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/baseActionItem.md new file mode 100644 index 0000000000..10801ad93e --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/baseActionItem.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Variable: baseActionItem + +> `const` **baseActionItem**: `object` + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L21) + +## Type declaration + +### assigner + +> **assigner**: `object` + +#### assigner.\_id + +> **\_id**: `string` = `'userId'` + +#### assigner.firstName + +> **firstName**: `string` = `'Wilt'` + +#### assigner.image + +> **image**: `any` = `null` + +#### assigner.lastName + +> **lastName**: `string` = `'Shepherd'` + +### creator + +> **creator**: `object` + +#### creator.\_\_typename + +> **\_\_typename**: `string` = `'User'` + +#### creator.\_id + +> **\_id**: `string` = `'userId'` + +#### creator.firstName + +> **firstName**: `string` = `'Wilt'` + +#### creator.image + +> **image**: `any` = `null` + +#### creator.lastName + +> **lastName**: `string` = `'Shepherd'` diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/groupListQuery.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/groupListQuery.md new file mode 100644 index 0000000000..24d358bf04 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/groupListQuery.md @@ -0,0 +1,43 @@ +[Admin Docs](/) + +*** + +# Variable: groupListQuery + +> `const` **groupListQuery**: `object`[] + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:301](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L301) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_VOLUNTEER_GROUP_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.eventId + +> **eventId**: `string` = `'eventId'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.getEventVolunteerGroups + +> **getEventVolunteerGroups**: (\{ `_id`: `string`; `assignments`: `any`[]; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `description`: `string`; `event`: \{ `_id`: `string`; \}; `leader`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `name`: `string`; `volunteers`: `object`[]; `volunteersRequired`: `number`; \} \| \{ `_id`: `undefined`; `assignments`: `any`[]; `createdAt`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `description`: `string`; `event`: \{ `_id`: `string`; \}; `leader`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `name`: `string`; `volunteers`: `any`[]; `volunteersRequired`: `number`; \})[] diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithGroup.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithGroup.md new file mode 100644 index 0000000000..913b6a07e5 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithGroup.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: itemWithGroup + +> `const` **itemWithGroup**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:143](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L143) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithUser.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithUser.md new file mode 100644 index 0000000000..ac854baf0c --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithUser.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: itemWithUser + +> `const` **itemWithUser**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:97](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L97) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithUserImage.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithUserImage.md new file mode 100644 index 0000000000..6bf1a8f49f --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithUserImage.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: itemWithUserImage + +> `const` **itemWithUserImage**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:120](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L120) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithVolunteer.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithVolunteer.md new file mode 100644 index 0000000000..c3288487c2 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithVolunteer.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: itemWithVolunteer + +> `const` **itemWithVolunteer**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L37) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithVolunteerImage.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithVolunteerImage.md new file mode 100644 index 0000000000..e2b80a1fd2 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/itemWithVolunteerImage.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: itemWithVolunteerImage + +> `const` **itemWithVolunteerImage**: [`InterfaceActionItemInfo`](../../../../utils/interfaces/interfaces/InterfaceActionItemInfo.md) + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:67](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L67) diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/memberListQuery.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/memberListQuery.md new file mode 100644 index 0000000000..cc62b0b630 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/memberListQuery.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: memberListQuery + +> `const` **memberListQuery**: `object` + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:184](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L184) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `MEMBERS_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.id + +> **id**: `string` = `'orgId'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.organizations + +> **organizations**: `object`[] diff --git a/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/volunteerListQuery.md b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/volunteerListQuery.md new file mode 100644 index 0000000000..66d4b799d6 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationActionItems/testObject.mocks/variables/volunteerListQuery.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: volunteerListQuery + +> `const` **volunteerListQuery**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `string`; `hasAccepted`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteers`: (\{ `_id`: `string`; `assignments`: `any`[]; `groups`: `object`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \} \| \{ `_id`: `undefined`; `assignments`: `any`[]; `groups`: `any`[]; `hasAccepted`: `boolean`; `hoursVolunteered`: `number`; `user`: \{ `_id`: `undefined`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `where`: \{ `eventId`: `undefined`; `hasAccepted`: `boolean`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteers`: `any`[]; \}; \}; \})[] + +Defined in: [src/screens/OrganizationActionItems/testObject.mocks.ts:228](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationActionItems/testObject.mocks.ts#L228) diff --git a/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboard/functions/default.md b/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboard/functions/default.md new file mode 100644 index 0000000000..4d1caf680e --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboard/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrganizationDashboard/OrganizationDashboard.tsx:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationDashboard/OrganizationDashboard.tsx#L44) + +Component for displaying the organization dashboard. + +This component provides an overview of various statistics and information related to an organization, including members, admins, posts, events, blocked users, and membership requests. It also displays upcoming events and latest posts. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..4eab32da02 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `string`; `organization_id`: `undefined`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `undefined`; `getVolunteerRanks`: `undefined`; `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `id`: `string`; `organization_id`: `undefined`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `undefined`; `getVolunteerRanks`: `undefined`; `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `undefined`; `organization_id`: `string`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `any`[]; `getVolunteerRanks`: `undefined`; `organizations`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `undefined`; `organization_id`: `undefined`; `orgId`: `string`; `where`: \{ `limit`: `number`; `orderBy`: `string`; `timeFrame`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `undefined`; `getVolunteerRanks`: `any`[]; `organizations`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts:329](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts#L329) diff --git a/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/ERROR_MOCKS.md b/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/ERROR_MOCKS.md new file mode 100644 index 0000000000..c99d42ffaf --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/ERROR_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ERROR\_MOCKS + +> `const` **ERROR\_MOCKS**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `string`; `organization_id`: `undefined`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `id`: `string`; `organization_id`: `undefined`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `undefined`; `organization_id`: `string`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `undefined`; `organization_id`: `undefined`; `orgId`: `string`; `where`: \{ `limit`: `number`; `orderBy`: `string`; `timeFrame`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts:448](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts#L448) diff --git a/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/MOCKS.md new file mode 100644 index 0000000000..ad8fbffa55 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationDashboard/OrganizationDashboardMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `string`; `organization_id`: `undefined`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `undefined`; `getVolunteerRanks`: `undefined`; `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `id`: `string`; `organization_id`: `undefined`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `undefined`; `getVolunteerRanks`: `undefined`; `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `undefined`; `organization_id`: `string`; `orgId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `object`[]; `getVolunteerRanks`: `undefined`; `organizations`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `id`: `undefined`; `organization_id`: `undefined`; `orgId`: `string`; `where`: \{ `limit`: `number`; `orderBy`: `string`; `timeFrame`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `undefined`; `getVolunteerRanks`: `object`[]; `organizations`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationDashboard/OrganizationDashboardMocks.ts#L8) diff --git a/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEvents/enumerations/ViewType.md b/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEvents/enumerations/ViewType.md new file mode 100644 index 0000000000..d98e4de3c0 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEvents/enumerations/ViewType.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Enumeration: ViewType + +Defined in: [src/screens/OrganizationEvents/OrganizationEvents.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationEvents/OrganizationEvents.tsx#L37) + +## Enumeration Members + +### DAY + +> **DAY**: `"Day"` + +Defined in: [src/screens/OrganizationEvents/OrganizationEvents.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationEvents/OrganizationEvents.tsx#L38) + +*** + +### MONTH + +> **MONTH**: `"Month View"` + +Defined in: [src/screens/OrganizationEvents/OrganizationEvents.tsx:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationEvents/OrganizationEvents.tsx#L39) + +*** + +### YEAR + +> **YEAR**: `"Year View"` + +Defined in: [src/screens/OrganizationEvents/OrganizationEvents.tsx:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationEvents/OrganizationEvents.tsx#L40) diff --git a/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEvents/functions/default.md b/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEvents/functions/default.md new file mode 100644 index 0000000000..4bb2cabc5d --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEvents/functions/default.md @@ -0,0 +1,44 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrganizationEvents/OrganizationEvents.tsx:75](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationEvents/OrganizationEvents.tsx#L75) + +Organization Events Page Component to display the events of an organization +and create new events for the organization by the admin or superadmin user. +The component uses the EventCalendar component to display the events and EventHeader component + to display the view type and create event button. + The component uses the RecurrenceOptions component to display the recurrence options for the event. + The component uses the CREATE_EVENT_MUTATION mutation to create a new event for the organization. + The component uses the ORGANIZATION_EVENT_CONNECTION_LIST and ORGANIZATIONS_LIST queries to fetch the events + and organization details. + The component uses the useLocalStorage hook to get the user details from the local storage. + +## Returns + +`JSX.Element` + +JSX.Element to display the Organization Events Page + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.inputField` +- `.switch` +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEventsMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEventsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..883f4511f6 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationEvents/OrganizationEventsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `undefined`; `count`: `undefined`; `description`: `undefined`; `description_contains`: `string`; `endDate`: `undefined`; `endTime`: `undefined`; `frequency`: `undefined`; `interval`: `undefined`; `isPublic`: `undefined`; `isRegisterable`: `undefined`; `location`: `undefined`; `location_contains`: `string`; `organization_id`: `any`; `organizationId`: `undefined`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `undefined`; `startDate`: `undefined`; `startTime`: `undefined`; `title`: `undefined`; `title_contains`: `string`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEvent`: `undefined`; `eventsByOrganizationConnection`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `undefined`; `count`: `undefined`; `description`: `undefined`; `description_contains`: `string`; `endDate`: `undefined`; `endTime`: `undefined`; `frequency`: `undefined`; `interval`: `undefined`; `isPublic`: `undefined`; `isRegisterable`: `undefined`; `location`: `undefined`; `location_contains`: `string`; `organization_id`: `any`; `organizationId`: `undefined`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `undefined`; `startDate`: `undefined`; `startTime`: `undefined`; `title`: `undefined`; `title_contains`: `string`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEvent`: `undefined`; `eventsByOrganizationConnection`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `count`: `undefined`; `description`: `string`; `description_contains`: `undefined`; `endDate`: `string`; `endTime`: `undefined`; `frequency`: `undefined`; `interval`: `undefined`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `location_contains`: `undefined`; `organization_id`: `undefined`; `organizationId`: `any`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `boolean`; `startDate`: `string`; `startTime`: `undefined`; `title`: `string`; `title_contains`: `undefined`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEvent`: \{ `_id`: `string`; \}; `eventsByOrganizationConnection`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `count`: `undefined`; `description`: `string`; `description_contains`: `undefined`; `endDate`: `string`; `endTime`: `string`; `frequency`: `undefined`; `interval`: `undefined`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `location_contains`: `undefined`; `organization_id`: `undefined`; `organizationId`: `any`; `recurrenceEndDate`: `undefined`; `recurrenceStartDate`: `undefined`; `recurring`: `boolean`; `startDate`: `string`; `startTime`: `string`; `title`: `string`; `title_contains`: `undefined`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEvent`: \{ `_id`: `string`; \}; `eventsByOrganizationConnection`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `count`: `undefined`; `description`: `string`; `description_contains`: `undefined`; `endDate`: `string`; `endTime`: `string`; `frequency`: `string`; `interval`: `number`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `location_contains`: `undefined`; `organization_id`: `undefined`; `organizationId`: `any`; `recurrenceEndDate`: `any`; `recurrenceStartDate`: `string`; `recurring`: `boolean`; `startDate`: `string`; `startTime`: `string`; `title`: `string`; `title_contains`: `undefined`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEvent`: \{ `_id`: `string`; \}; `eventsByOrganizationConnection`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `count`: `undefined`; `description`: `string`; `description_contains`: `undefined`; `endDate`: `string`; `endTime`: `string`; `frequency`: `string`; `interval`: `number`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `location_contains`: `undefined`; `organization_id`: `undefined`; `organizationId`: `any`; `recurrenceEndDate`: `any`; `recurrenceStartDate`: `string`; `recurring`: `boolean`; `startDate`: `string`; `startTime`: `string`; `title`: `string`; `title_contains`: `undefined`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `string`[]; \}; \}; `result`: \{ `data`: \{ `createEvent`: \{ `_id`: `string`; \}; `eventsByOrganizationConnection`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `count`: `undefined`; `description`: `string`; `description_contains`: `undefined`; `endDate`: `string`; `endTime`: `undefined`; `frequency`: `string`; `interval`: `number`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `location_contains`: `undefined`; `organization_id`: `undefined`; `organizationId`: `any`; `recurrenceEndDate`: `string`; `recurrenceStartDate`: `string`; `recurring`: `boolean`; `startDate`: `string`; `startTime`: `undefined`; `title`: `string`; `title_contains`: `undefined`; `weekDayOccurenceInMonth`: `number`; `weekDays`: `string`[]; \}; \}; `result`: \{ `data`: \{ `createEvent`: \{ `_id`: `string`; \}; `eventsByOrganizationConnection`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `allDay`: `boolean`; `count`: `number`; `description`: `string`; `description_contains`: `undefined`; `endDate`: `string`; `endTime`: `undefined`; `frequency`: `string`; `interval`: `number`; `isPublic`: `boolean`; `isRegisterable`: `boolean`; `location`: `string`; `location_contains`: `undefined`; `organization_id`: `undefined`; `organizationId`: `any`; `recurrenceEndDate`: `any`; `recurrenceStartDate`: `string`; `recurring`: `boolean`; `startDate`: `string`; `startTime`: `undefined`; `title`: `string`; `title_contains`: `undefined`; `weekDayOccurenceInMonth`: `undefined`; `weekDays`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createEvent`: \{ `_id`: `string`; \}; `eventsByOrganizationConnection`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrganizationEvents/OrganizationEventsMocks.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationEvents/OrganizationEventsMocks.ts#L4) diff --git a/docs/docs/auto-docs/screens/OrganizationFundCampaign/CampaignModal/functions/default.md b/docs/docs/auto-docs/screens/OrganizationFundCampaign/CampaignModal/functions/default.md new file mode 100644 index 0000000000..70f8457448 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFundCampaign/CampaignModal/functions/default.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L61) + +Modal component for creating or editing a campaign. + +## Parameters + +### props + +[`InterfaceCampaignModal`](../interfaces/InterfaceCampaignModal.md) + +The props for the CampaignModal component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +JSX.Element diff --git a/docs/docs/auto-docs/screens/OrganizationFundCampaign/CampaignModal/interfaces/InterfaceCampaignModal.md b/docs/docs/auto-docs/screens/OrganizationFundCampaign/CampaignModal/interfaces/InterfaceCampaignModal.md new file mode 100644 index 0000000000..9caf63ebd9 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFundCampaign/CampaignModal/interfaces/InterfaceCampaignModal.md @@ -0,0 +1,90 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCampaignModal + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L45) + +Props for the CampaignModal component. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Properties + +### campaign + +> **campaign**: [`InterfaceCampaignInfo`](../../../../utils/interfaces/interfaces/InterfaceCampaignInfo.md) + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L50) + +*** + +### fundId + +> **fundId**: `string` + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L48) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:47](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L47) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L46) + +*** + +### mode + +> **mode**: `"create"` \| `"edit"` + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:52](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L52) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L49) + +*** + +### refetchCampaign() + +> **refetchCampaign**: () => `void` + +Defined in: [src/screens/OrganizationFundCampaign/CampaignModal.tsx:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/CampaignModal.tsx#L51) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampagins/functions/default.md b/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampagins/functions/default.md new file mode 100644 index 0000000000..09506dd442 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampagins/functions/default.md @@ -0,0 +1,67 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/OrganizationFundCampaign/OrganizationFundCampagins.tsx:102](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/OrganizationFundCampagins.tsx#L102) + +`orgFundCampaign` component displays a list of fundraising campaigns for a specific fund within an organization. +It allows users to search, sort, view and edit campaigns. + +### Functionality +- Displays a data grid with campaigns information, including their names, start and end dates, funding goals, and actions. +- Provides search functionality to filter campaigns by name. +- Offers sorting options based on funding goal and end date. +- Opens modals for creating or editing campaigns. + +### State +- `campaign`: The current campaign being edited or deleted. +- `searchTerm`: The term used for searching campaigns by name. +- `sortBy`: The current sorting criteria for campaigns. +- `modalState`: An object indicating the visibility of different modals (`same` for create/edit). +- `campaignModalMode`: Determines if the modal is in 'edit' or 'create' mode. + +### Methods +- `handleOpenModal(campaign: InterfaceCampaignInfo | null, mode: 'edit' | 'create')`: Opens the modal for creating or editing a campaign. +- `handleClick(campaignId: string)`: Navigates to the pledge details page for a specific campaign. + +### GraphQL Queries +- Uses `FUND_CAMPAIGN` query to fetch the list of campaigns based on the provided fund ID, search term, and sorting criteria. + +### Rendering +- Renders a `DataGrid` component with campaigns information. +- Displays modals for creating and editing campaigns. +- Shows error and loading states using `Loader` and error message components. + +## Returns + +`Element` + +The rendered component including breadcrumbs, search and filter controls, data grid, and modals. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.editButton` +- `.head` +- `.btnsContainer` +- `.input` +- `.inputField` +- `.searchButon` +- `.btnsBlock` +- `.dropdown` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..8b5155e3d2 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: `object`[] + +Defined in: [src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.ts:300](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.ts#L300) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `FUND_CAMPAIGN` + +#### request.variables + +> **variables**: `object` + +#### request.variables.id + +> **id**: `string` = `'fundId'` + +#### request.variables.orderBy + +> **orderBy**: `any` = `null` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.name\_contains + +> **name\_contains**: `string` = `''` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.getFundById + +> **getFundById**: `object` + +#### result.data.getFundById.campaigns + +> **campaigns**: `any`[] = `[]` + +#### result.data.getFundById.isArchived + +> **isArchived**: `boolean` = `false` + +#### result.data.getFundById.name + +> **name**: `string` = `'Fund 1'` diff --git a/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/MOCKS.md new file mode 100644 index 0000000000..d5110bd753 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `currency`: `undefined`; `endDate`: `undefined`; `fundId`: `undefined`; `fundingGoal`: `undefined`; `id`: `string`; `name`: `undefined`; `orderBy`: `string`; `organizationId`: `undefined`; `startDate`: `undefined`; `where`: \{ `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `createFundraisingCampaign`: `undefined`; `getFundById`: \{ `campaigns`: `object`[]; `isArchived`: `boolean`; `name`: `string`; \}; `updateFundraisingCampaign`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `currency`: `string`; `endDate`: `string`; `fundId`: `string`; `fundingGoal`: `number`; `id`: `undefined`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `string`; `startDate`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createFundraisingCampaign`: \{ `_id`: `string`; \}; `getFundById`: `undefined`; `updateFundraisingCampaign`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `currency`: `undefined`; `endDate`: `string`; `fundId`: `undefined`; `fundingGoal`: `number`; `id`: `string`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `undefined`; `startDate`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createFundraisingCampaign`: `undefined`; `getFundById`: `undefined`; `updateFundraisingCampaign`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.ts:7](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.ts#L7) diff --git a/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/MOCK_ERROR.md b/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/MOCK_ERROR.md new file mode 100644 index 0000000000..5bc54011a3 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks/variables/MOCK_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCK\_ERROR + +> `const` **MOCK\_ERROR**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `currency`: `undefined`; `endDate`: `undefined`; `fundId`: `undefined`; `fundingGoal`: `undefined`; `id`: `string`; `name`: `undefined`; `orderBy`: `any`; `organizationId`: `undefined`; `startDate`: `undefined`; `where`: \{ `name_contains`: `string`; \}; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `currency`: `string`; `endDate`: `string`; `fundId`: `string`; `fundingGoal`: `number`; `id`: `undefined`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `string`; `startDate`: `string`; `where`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `currency`: `undefined`; `endDate`: `string`; `fundId`: `undefined`; `fundingGoal`: `number`; `id`: `string`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `undefined`; `startDate`: `string`; `where`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.ts:258](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFundCampaign/OrganizationFundCampaignMocks.ts#L258) diff --git a/docs/docs/auto-docs/screens/OrganizationFunds/FundModal/functions/default.md b/docs/docs/auto-docs/screens/OrganizationFunds/FundModal/functions/default.md new file mode 100644 index 0000000000..426de2f469 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFunds/FundModal/functions/default.md @@ -0,0 +1,74 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/OrganizationFunds/FundModal.tsx:69](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/FundModal.tsx#L69) + +`FundModal` component provides a modal dialog for creating or editing a fund. +It allows users to input fund details and submit them to the server. + +This component handles both the creation of new funds and the editing of existing funds, +based on the `mode` prop. It displays a form with fields for the fund's name, description, +and other relevant details. Upon submission, it interacts with the GraphQL API to save +or update the fund details and triggers a refetch of the fund data. + +### Props +- `isOpen`: A boolean indicating whether the modal is open or closed. +- `hide`: A function to close the modal. +- `refetchFunds`: A function to refetch the fund list after a successful operation. +- `fund`: The current fund object being edited or `null` if creating a new fund. +- `orgId`: The ID of the organization to which the fund belongs. +- `mode`: The mode of the modal, either 'edit' or 'create'. + +### State +- `name`: The name of the fund. +- `description`: The description of the fund. +- `amount`: The amount associated with the fund. +- `status`: The status of the fund (e.g., active, archived). + +### Methods +- `handleSubmit()`: Handles form submission, creates or updates the fund, and triggers a refetch of the fund list. +- `handleChange(event: React.ChangeEvent)`: Updates the state based on user input. + +## Parameters + +### props + +[`InterfaceFundModal`](../interfaces/InterfaceFundModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal dialog. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.switch` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/screens/OrganizationFunds/FundModal/interfaces/InterfaceFundModal.md b/docs/docs/auto-docs/screens/OrganizationFunds/FundModal/interfaces/InterfaceFundModal.md new file mode 100644 index 0000000000..12b18cc7d6 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFunds/FundModal/interfaces/InterfaceFundModal.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceFundModal + +Defined in: [src/screens/OrganizationFunds/FundModal.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/FundModal.tsx#L15) + +## Properties + +### fund + +> **fund**: [`InterfaceFundInfo`](../../../../utils/interfaces/interfaces/InterfaceFundInfo.md) + +Defined in: [src/screens/OrganizationFunds/FundModal.tsx:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/FundModal.tsx#L19) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/OrganizationFunds/FundModal.tsx:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/FundModal.tsx#L17) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/OrganizationFunds/FundModal.tsx:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/FundModal.tsx#L16) + +*** + +### mode + +> **mode**: `"create"` \| `"edit"` + +Defined in: [src/screens/OrganizationFunds/FundModal.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/FundModal.tsx#L21) + +*** + +### orgId + +> **orgId**: `string` + +Defined in: [src/screens/OrganizationFunds/FundModal.tsx:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/FundModal.tsx#L20) + +*** + +### refetchFunds() + +> **refetchFunds**: () => `void` + +Defined in: [src/screens/OrganizationFunds/FundModal.tsx:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/FundModal.tsx#L18) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFunds/functions/default.md b/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFunds/functions/default.md new file mode 100644 index 0000000000..c2864ed258 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFunds/functions/default.md @@ -0,0 +1,69 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/OrganizationFunds/OrganizationFunds.tsx:102](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/OrganizationFunds.tsx#L102) + +`organizationFunds` component displays a list of funds for a specific organization, +allowing users to search, sort, view and edit funds. + +This component utilizes the `DataGrid` from Material-UI to present the list of funds in a tabular format, +and includes functionality for filtering and sorting. It also handles the opening and closing of modals +for creating and editing. + +It includes: +- A search input field to filter funds by name. +- A dropdown menu to sort funds by creation date. +- A button to create a new fund. +- A table to display the list of funds with columns for fund details and actions. +- Modals for creating and editing funds. + +### GraphQL Queries +- `FUND_LIST`: Fetches a list of funds for the given organization, filtered and sorted based on the provided parameters. + +### Props +- `orgId`: The ID of the organization whose funds are being managed. + +### State +- `fund`: The currently selected fund for editing or deletion. +- `searchTerm`: The current search term used for filtering funds. +- `sortBy`: The current sorting order for funds. +- `modalState`: The state of the modals (edit/create). +- `fundModalMode`: The mode of the fund modal (edit or create). + +### Methods +- `handleOpenModal(fund: InterfaceFundInfo | null, mode: 'edit' | 'create')`: Opens the fund modal with the given fund and mode. +- `handleClick(fundId: string)`: Navigates to the campaign page for the specified fund. + +## Returns + +`Element` + +The rendered component. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.tableHeader` +- `.subtleBlueGrey` +- `.head` +- `.btnsContainer` +- `.input` +- `.inputField` +- `.searchButton` + +For more details on the reusable classes, refer to the global CSS file. diff --git a/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..d24ac9caef --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `string`; `id`: `undefined`; `isArchived`: `undefined`; `isDefault`: `undefined`; `name`: `undefined`; `orderBy`: `string`; `organizationId`: `string`; `refrenceNumber`: `undefined`; `taxDeductible`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createFund`: `undefined`; `fundsByOrganization`: `object`[]; `updateFund`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `id`: `undefined`; `isArchived`: `boolean`; `isDefault`: `boolean`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `string`; `refrenceNumber`: `string`; `taxDeductible`: `boolean`; \}; \}; `result`: \{ `data`: \{ `createFund`: \{ `_id`: `string`; \}; `fundsByOrganization`: `undefined`; `updateFund`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `id`: `string`; `isArchived`: `boolean`; `isDefault`: `boolean`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `undefined`; `refrenceNumber`: `string`; `taxDeductible`: `boolean`; \}; \}; `result`: \{ `data`: \{ `createFund`: `undefined`; `fundsByOrganization`: `undefined`; `updateFund`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/OrganizationFunds/OrganizationFundsMocks.ts:7](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/OrganizationFundsMocks.ts#L7) diff --git a/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..f0b057b76a --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/MOCKS_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `string`; `id`: `undefined`; `isArchived`: `undefined`; `isDefault`: `undefined`; `name`: `undefined`; `orderBy`: `string`; `organizationId`: `string`; `refrenceNumber`: `undefined`; `taxDeductible`: `undefined`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `id`: `undefined`; `isArchived`: `boolean`; `isDefault`: `boolean`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `string`; `refrenceNumber`: `string`; `taxDeductible`: `boolean`; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `id`: `string`; `isArchived`: `boolean`; `isDefault`: `boolean`; `name`: `string`; `orderBy`: `undefined`; `organizationId`: `undefined`; `refrenceNumber`: `string`; `taxDeductible`: `boolean`; \}; \}; \})[] + +Defined in: [src/screens/OrganizationFunds/OrganizationFundsMocks.ts:191](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/OrganizationFundsMocks.ts#L191) diff --git a/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/NO_FUNDS.md b/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/NO_FUNDS.md new file mode 100644 index 0000000000..8827b3d2ab --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationFunds/OrganizationFundsMocks/variables/NO_FUNDS.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Variable: NO\_FUNDS + +> `const` **NO\_FUNDS**: `object`[] + +Defined in: [src/screens/OrganizationFunds/OrganizationFundsMocks.ts:173](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationFunds/OrganizationFundsMocks.ts#L173) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `FUND_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.filter + +> **filter**: `string` = `''` + +#### request.variables.orderBy + +> **orderBy**: `string` = `'createdAt_DESC'` + +#### request.variables.organizationId + +> **organizationId**: `string` = `'orgId'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.fundsByOrganization + +> **fundsByOrganization**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/OrganizationPeople/AddMember/functions/default.md b/docs/docs/auto-docs/screens/OrganizationPeople/AddMember/functions/default.md new file mode 100644 index 0000000000..80dbd08295 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationPeople/AddMember/functions/default.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrganizationPeople/AddMember.tsx:80](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationPeople/AddMember.tsx#L80) + +AddMember component is used to add new members to the organization by selecting from +the existing users or creating a new user. +It uses the following queries and mutations: + ORGANIZATIONS_LIST, + ORGANIZATIONS_MEMBER_CONNECTION_LIST, + USERS_CONNECTION_LIST, + ADD_MEMBER_MUTATION,SIGNUP_MUTATION. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.removeButton` +- `.addButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/OrganizationPeople/MockDataTypes/type-aliases/TestMock.md b/docs/docs/auto-docs/screens/OrganizationPeople/MockDataTypes/type-aliases/TestMock.md new file mode 100644 index 0000000000..1eb6728e97 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationPeople/MockDataTypes/type-aliases/TestMock.md @@ -0,0 +1,151 @@ +[Admin Docs](/) + +*** + +# Type Alias: TestMock + +> **TestMock**: `object` + +Defined in: [src/screens/OrganizationPeople/MockDataTypes.ts:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationPeople/MockDataTypes.ts#L34) + +## Type declaration + +### newData()? + +> `optional` **newData**: () => [`TestMock`](TestMock.md)\[`"result"`\] + +#### Returns + +[`TestMock`](TestMock.md)\[`"result"`\] + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` + +#### request.variables + +> **variables**: `object` + +#### request.variables.email? + +> `optional` **email**: `string` + +#### request.variables.firstName? + +> `optional` **firstName**: `string` + +#### request.variables.firstName\_contains? + +> `optional` **firstName\_contains**: `string` + +#### request.variables.firstNameContains? + +> `optional` **firstNameContains**: `string` + +#### request.variables.id? + +> `optional` **id**: `string` + +#### request.variables.id\_not\_in? + +> `optional` **id\_not\_in**: `string`[] + +#### request.variables.lastName? + +> `optional` **lastName**: `string` + +#### request.variables.lastName\_contains? + +> `optional` **lastName\_contains**: `string` + +#### request.variables.lastNameContains? + +> `optional` **lastNameContains**: `string` + +#### request.variables.orgid? + +> `optional` **orgid**: `string` + +#### request.variables.orgId? + +> `optional` **orgId**: `string` + +#### request.variables.password? + +> `optional` **password**: `string` + +#### request.variables.userid? + +> `optional` **userid**: `string` + +### result + +> **result**: `object` + +#### result.\_\_typename? + +> `optional` **\_\_typename**: `string` + +#### result.data + +> **data**: `object` + +#### result.data.\_\_typename? + +> `optional` **\_\_typename**: `string` + +#### result.data.createMember? + +> `optional` **createMember**: `object` + +#### result.data.createMember.\_\_typename + +> **\_\_typename**: `string` + +#### result.data.createMember.\_id + +> **\_id**: `string` + +#### result.data.organizations? + +> `optional` **organizations**: [`InterfaceQueryOrganizationsListObject`](../../../../utils/interfaces/interfaces/InterfaceQueryOrganizationsListObject.md)[] + +#### result.data.organizationsMemberConnection? + +> `optional` **organizationsMemberConnection**: `object` + +#### result.data.organizationsMemberConnection.edges? + +> `optional` **edges**: `Edge`[] + +#### result.data.organizationsMemberConnection.user? + +> `optional` **user**: `Edge`[] + +#### result.data.signUp? + +> `optional` **signUp**: `object` + +#### result.data.signUp.accessToken? + +> `optional` **accessToken**: `string` + +#### result.data.signUp.refreshToken? + +> `optional` **refreshToken**: `string` + +#### result.data.signUp.user? + +> `optional` **user**: `object` + +#### result.data.signUp.user.\_id + +> **\_id**: `string` + +#### result.data.users? + +> `optional` **users**: `object`[] diff --git a/docs/docs/auto-docs/screens/OrganizationPeople/OrganizationPeople/functions/default.md b/docs/docs/auto-docs/screens/OrganizationPeople/OrganizationPeople/functions/default.md new file mode 100644 index 0000000000..8e07685e93 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationPeople/OrganizationPeople/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrganizationPeople/OrganizationPeople.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationPeople/OrganizationPeople.tsx#L31) + +OrganizationPeople component is used to display the list of members, admins and users of the organization. +It also provides the functionality to search the members, admins and users by their full name. +It also provides the functionality to remove the members and admins from the organization. + +## Returns + +`JSX.Element` + +JSX.Element which contains the list of members, admins and users of the organization. diff --git a/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTags/functions/default.md b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTags/functions/default.md new file mode 100644 index 0000000000..08b0d5303f --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTags/functions/default.md @@ -0,0 +1,37 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrganizationTags/OrganizationTags.tsx:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationTags/OrganizationTags.tsx#L58) + +Component that renders the Organization Tags screen when the app navigates to '/orgtags/:orgId'. + +This component does not accept any props and is responsible for displaying +the content associated with the corresponding route. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.editButton` +- `.inputField` +- `.removeButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..adef069b5d --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `first`: `number`; `id`: `string`; `name`: `undefined`; `organizationId`: `undefined`; `sortedBy`: \{ `id`: `string`; \}; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `createUserTag`: `undefined`; `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; `name`: `undefined`; `organizationId`: `undefined`; `sortedBy`: \{ `id`: `string`; \}; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `createUserTag`: `undefined`; `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `undefined`; `id`: `undefined`; `name`: `string`; `organizationId`: `string`; `sortedBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createUserTag`: \{ `_id`: `string`; \}; `organizations`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/OrganizationTags/OrganizationTagsMocks.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationTags/OrganizationTagsMocks.ts#L5) diff --git a/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_EMPTY.md b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_EMPTY.md new file mode 100644 index 0000000000..d56cf22f94 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_EMPTY.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_EMPTY + +> `const` **MOCKS\_EMPTY**: `object`[] + +Defined in: [src/screens/OrganizationTags/OrganizationTagsMocks.ts:344](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationTags/OrganizationTagsMocks.ts#L344) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ORGANIZATION_USER_TAGS_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'orgId'` + +#### request.variables.sortedBy + +> **sortedBy**: `object` + +#### request.variables.sortedBy.id + +> **id**: `string` = `'DESCENDING'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.name + +> **name**: `object` + +#### request.variables.where.name.starts\_with + +> **starts\_with**: `string` = `''` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.organizations + +> **organizations**: `object`[] diff --git a/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_ERROR.md b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_ERROR.md new file mode 100644 index 0000000000..85692fe00e --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_ERROR.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR + +> `const` **MOCKS\_ERROR**: `object`[] + +Defined in: [src/screens/OrganizationTags/OrganizationTagsMocks.ts:319](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationTags/OrganizationTagsMocks.ts#L319) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ORGANIZATION_USER_TAGS_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'orgIdError'` + +#### request.variables.sortedBy + +> **sortedBy**: `object` + +#### request.variables.sortedBy.id + +> **id**: `string` = `'DESCENDING'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.name + +> **name**: `object` + +#### request.variables.where.name.starts\_with + +> **starts\_with**: `string` = `''` diff --git a/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_ERROR_ERROR_TAG.md b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_ERROR_ERROR_TAG.md new file mode 100644 index 0000000000..823edeaf2d --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_ERROR_ERROR_TAG.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_ERROR\_TAG + +> `const` **MOCKS\_ERROR\_ERROR\_TAG**: `object`[] + +Defined in: [src/screens/OrganizationTags/OrganizationTagsMocks.ts:334](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationTags/OrganizationTagsMocks.ts#L334) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `CREATE_USER_TAG` + +#### request.variables + +> **variables**: `object` + +#### request.variables.name + +> **name**: `string` = `'userTagE'` + +#### request.variables.organizationId + +> **organizationId**: `string` = `'orgId'` diff --git a/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_NO_MORE_PAGES.md b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_NO_MORE_PAGES.md new file mode 100644 index 0000000000..0004623929 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_NO_MORE_PAGES.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_NO\_MORE\_PAGES + +> `const` **MOCKS\_NO\_MORE\_PAGES**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; `sortedBy`: \{ `id`: `string`; \}; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `first`: `number`; `id`: `string`; `sortedBy`: \{ `id`: `string`; \}; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: `any`; \}; \})[] + +Defined in: [src/screens/OrganizationTags/OrganizationTagsMocks.ts:477](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationTags/OrganizationTagsMocks.ts#L477) diff --git a/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_NULL_END_CURSOR.md b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_NULL_END_CURSOR.md new file mode 100644 index 0000000000..a4d9a79a7a --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_NULL_END_CURSOR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_NULL\_END\_CURSOR + +> `const` **MOCKS\_NULL\_END\_CURSOR**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; `sortedBy`: \{ `id`: `string`; \}; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `any`; `first`: `number`; `id`: `string`; `sortedBy`: \{ `id`: `string`; \}; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; \}; \}; \})[] + +Defined in: [src/screens/OrganizationTags/OrganizationTagsMocks.ts:391](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationTags/OrganizationTagsMocks.ts#L391) diff --git a/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_UNDEFINED_USER_TAGS.md b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_UNDEFINED_USER_TAGS.md new file mode 100644 index 0000000000..f41ce5d255 --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationTags/OrganizationTagsMocks/variables/MOCKS_UNDEFINED_USER_TAGS.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_UNDEFINED\_USER\_TAGS + +> `const` **MOCKS\_UNDEFINED\_USER\_TAGS**: `object`[] + +Defined in: [src/screens/OrganizationTags/OrganizationTagsMocks.ts:376](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationTags/OrganizationTagsMocks.ts#L376) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ORGANIZATION_USER_TAGS_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'orgId'` + +#### request.variables.sortedBy + +> **sortedBy**: `object` + +#### request.variables.sortedBy.id + +> **id**: `string` = `'DESCENDING'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.name + +> **name**: `object` + +#### request.variables.where.name.starts\_with + +> **starts\_with**: `string` = `''` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.organizations + +> **organizations**: `object`[] diff --git a/docs/docs/auto-docs/screens/OrganizationVenues/OrganizationVenues/functions/default.md b/docs/docs/auto-docs/screens/OrganizationVenues/OrganizationVenues/functions/default.md new file mode 100644 index 0000000000..6c4c969b3d --- /dev/null +++ b/docs/docs/auto-docs/screens/OrganizationVenues/OrganizationVenues/functions/default.md @@ -0,0 +1,16 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/OrganizationVenues/OrganizationVenues.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/OrganizationVenues/OrganizationVenues.tsx#L23) + +Component to manage and display the list of organization venues. +Handles searching, sorting, and CRUD operations for venues. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/PageNotFound/PageNotFound/functions/default.md b/docs/docs/auto-docs/screens/PageNotFound/PageNotFound/functions/default.md new file mode 100644 index 0000000000..6c44b9bc7b --- /dev/null +++ b/docs/docs/auto-docs/screens/PageNotFound/PageNotFound/functions/default.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/PageNotFound/PageNotFound.tsx:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/PageNotFound/PageNotFound.tsx#L15) + +The `PageNotFound` component displays a 404 error page when a user navigates to a non-existent route. +It shows a message indicating that the page was not found and provides a link to redirect users back +to the appropriate home page based on their admin status. + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/screens/Requests/Requests/functions/default.md b/docs/docs/auto-docs/screens/Requests/Requests/functions/default.md new file mode 100644 index 0000000000..e22f7adfc1 --- /dev/null +++ b/docs/docs/auto-docs/screens/Requests/Requests/functions/default.md @@ -0,0 +1,16 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/Requests/Requests.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Requests/Requests.tsx#L34) + +The `Requests` component fetches and displays a paginated list of membership requests +for an organization, with functionality for searching, filtering, and infinite scrolling. + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..982e32798f --- /dev/null +++ b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; `organizationsConnection`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizations`: `undefined`; `organizationsConnection`: `any`[]; \}; \}; \})[] + +Defined in: [src/screens/Requests/RequestsMocks.ts:522](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Requests/RequestsMocks.ts#L522) diff --git a/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/EMPTY_REQUEST_MOCKS.md b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/EMPTY_REQUEST_MOCKS.md new file mode 100644 index 0000000000..53c8c8105f --- /dev/null +++ b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/EMPTY_REQUEST_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_REQUEST\_MOCKS + +> `const` **EMPTY\_REQUEST\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizations`: `undefined`; `organizationsConnection`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; `organizationsConnection`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Requests/RequestsMocks.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Requests/RequestsMocks.ts#L6) diff --git a/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..094b2d9f29 --- /dev/null +++ b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizations`: `undefined`; `organizationsConnection`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; `organizationsConnection`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Requests/RequestsMocks.ts:71](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Requests/RequestsMocks.ts#L71) diff --git a/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS2.md b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS2.md new file mode 100644 index 0000000000..8dfb0553cf --- /dev/null +++ b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS2.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS2 + +> `const` **MOCKS2**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizations`: `undefined`; `organizationsConnection`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; `organizationsConnection`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Requests/RequestsMocks.ts:387](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Requests/RequestsMocks.ts#L387) diff --git a/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS3.md b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS3.md new file mode 100644 index 0000000000..647d458ef3 --- /dev/null +++ b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS3.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS3 + +> `const` **MOCKS3**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizations`: `undefined`; `organizationsConnection`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizations`: `any`[]; `organizationsConnection`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Requests/RequestsMocks.ts:462](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Requests/RequestsMocks.ts#L462) diff --git a/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS4.md b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS4.md new file mode 100644 index 0000000000..eff0aeaec8 --- /dev/null +++ b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS4.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS4 + +> `const` **MOCKS4**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizations`: `undefined`; `organizationsConnection`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizations`: `object`[]; `organizationsConnection`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Requests/RequestsMocks.ts:155](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Requests/RequestsMocks.ts#L155) diff --git a/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS_WITH_ERROR.md b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS_WITH_ERROR.md new file mode 100644 index 0000000000..b201219017 --- /dev/null +++ b/docs/docs/auto-docs/screens/Requests/RequestsMocks/variables/MOCKS_WITH_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_WITH\_ERROR + +> `const` **MOCKS\_WITH\_ERROR**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `string`; `skip`: `number`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; \})[] + +Defined in: [src/screens/Requests/RequestsMocks.ts:556](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Requests/RequestsMocks.ts#L556) diff --git a/docs/docs/auto-docs/screens/SubTags/SubTags/functions/default.md b/docs/docs/auto-docs/screens/SubTags/SubTags/functions/default.md new file mode 100644 index 0000000000..6cfeb9af68 --- /dev/null +++ b/docs/docs/auto-docs/screens/SubTags/SubTags/functions/default.md @@ -0,0 +1,38 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/SubTags/SubTags.tsx:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/SubTags/SubTags.tsx#L60) + +Component that renders the SubTags screen when the app navigates to '/orgtags/:orgId/subtags/:tagId'. + +This component does not accept any props and is responsible for displaying +the content associated with the corresponding route. + +## CSS Strategy Explanation: + +To ensure consistency across the application and reduce duplication, common styles +(such as button styles) have been moved to the global CSS file. Instead of using +component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable +class (e.g., .addButton) is now applied. + +### Benefits: +- **Reduces redundant CSS code. +- **Improves maintainability by centralizing common styles. +- **Ensures consistent styling across components. + +### Global CSS Classes used: +- `.editButton` +- `.modalHeader` +- `.inputField` +- `.removeButton` + +For more details on the reusable classes, refer to the global CSS file. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/SubTags/SubTagsMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/SubTags/SubTagsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..36a4b5c3ea --- /dev/null +++ b/docs/docs/auto-docs/screens/SubTags/SubTagsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `string`; `first`: `number`; `id`: `string`; `name`: `undefined`; `organizationId`: `undefined`; `parentTagId`: `undefined`; `sortedBy`: \{ `id`: `string`; \}; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `createUserTag`: `undefined`; `getChildTags`: \{ `ancestorTags`: `any`[]; `childTags`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; `name`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `number`; `id`: `string`; `name`: `undefined`; `organizationId`: `undefined`; `parentTagId`: `undefined`; `sortedBy`: \{ `id`: `string`; \}; `where`: \{ `name`: \{ `starts_with`: `string`; \}; \}; \}; \}; `result`: \{ `data`: \{ `createUserTag`: `undefined`; `getChildTags`: \{ `ancestorTags`: `object`[]; `childTags`: \{ `edges`: `object`[]; `pageInfo`: \{ `endCursor`: `string`; `hasNextPage`: `boolean`; `hasPreviousPage`: `boolean`; `startCursor`: `string`; \}; `totalCount`: `number`; \}; `name`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `after`: `undefined`; `first`: `undefined`; `id`: `undefined`; `name`: `string`; `organizationId`: `string`; `parentTagId`: `string`; `sortedBy`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createUserTag`: \{ `_id`: `string`; \}; `getChildTags`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/SubTags/SubTagsMocks.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/SubTags/SubTagsMocks.ts#L5) diff --git a/docs/docs/auto-docs/screens/SubTags/SubTagsMocks/variables/MOCKS_ERROR_SUB_TAGS.md b/docs/docs/auto-docs/screens/SubTags/SubTagsMocks/variables/MOCKS_ERROR_SUB_TAGS.md new file mode 100644 index 0000000000..f4fd21bd39 --- /dev/null +++ b/docs/docs/auto-docs/screens/SubTags/SubTagsMocks/variables/MOCKS_ERROR_SUB_TAGS.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_ERROR\_SUB\_TAGS + +> `const` **MOCKS\_ERROR\_SUB\_TAGS**: `object`[] + +Defined in: [src/screens/SubTags/SubTagsMocks.ts:489](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/SubTags/SubTagsMocks.ts#L489) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_TAG_SUB_TAGS` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `number` = `TAGS_QUERY_DATA_CHUNK_SIZE` + +#### request.variables.id + +> **id**: `string` = `'1'` + +#### request.variables.sortedBy + +> **sortedBy**: `object` + +#### request.variables.sortedBy.id + +> **id**: `string` = `'DESCENDING'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.name + +> **name**: `object` + +#### request.variables.where.name.starts\_with + +> **starts\_with**: `string` = `''` diff --git a/docs/docs/auto-docs/screens/UserPortal/Campaigns/Campaigns/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Campaigns/Campaigns/functions/default.md new file mode 100644 index 0000000000..225d9e1ada --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Campaigns/Campaigns/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/UserPortal/Campaigns/Campaigns.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/Campaigns.tsx#L30) + +The `Campaigns` component displays a list of fundraising campaigns for a specific organization. +It allows users to search, sort, and view details about each campaign. Users can also add pledges to active campaigns. + +## Returns + +`Element` + +The rendered component displaying the campaigns. diff --git a/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..44f7734c86 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `user`: \{ `__typename`: `string`; `appUserProfile`: \{ `__typename`: `string`; `_id`: `string`; `adminFor`: `any`[]; `appLanguageCode`: `string`; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; `pluginCreationAllowed`: `boolean`; \}; `user`: \{ `__typename`: `string`; `_id`: `string`; `address`: \{ `__typename`: `string`; `city`: `string`; `countryCode`: `string`; `line1`: `string`; `state`: `string`; \}; `birthDate`: `any`; `createdAt`: `string`; `educationGrade`: `any`; `email`: `string`; `employmentStatus`: `any`; `firstName`: `string`; `gender`: `any`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `maritalStatus`: `any`; `membershipRequests`: `any`[]; `phone`: `any`; `registeredEvents`: `any`[]; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `campaignOrderBy`: `string`; `where`: \{ `name_contains`: `string`; `organizationId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getFundraisingCampaigns`: `any`[]; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Campaigns/CampaignsMocks.ts:236](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/CampaignsMocks.ts#L236) diff --git a/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/MOCKS.md new file mode 100644 index 0000000000..4bd7ac889a --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `user`: \{ `__typename`: `string`; `appUserProfile`: \{ `__typename`: `string`; `_id`: `string`; `adminFor`: `any`[]; `appLanguageCode`: `string`; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; `pluginCreationAllowed`: `boolean`; \}; `user`: \{ `__typename`: `string`; `_id`: `string`; `address`: \{ `__typename`: `string`; `city`: `string`; `countryCode`: `string`; `line1`: `string`; `state`: `string`; \}; `birthDate`: `any`; `createdAt`: `string`; `educationGrade`: `any`; `email`: `string`; `employmentStatus`: `any`; `firstName`: `string`; `gender`: `any`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `maritalStatus`: `any`; `membershipRequests`: `any`[]; `phone`: `any`; `registeredEvents`: `any`[]; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `campaignOrderBy`: `string`; `where`: \{ `name_contains`: `string`; `organizationId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getFundraisingCampaigns`: `object`[]; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Campaigns/CampaignsMocks.ts:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/CampaignsMocks.ts#L61) diff --git a/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/USER_FUND_CAMPAIGNS_ERROR.md b/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/USER_FUND_CAMPAIGNS_ERROR.md new file mode 100644 index 0000000000..2f1108dcf4 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Campaigns/CampaignsMocks/variables/USER_FUND_CAMPAIGNS_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_FUND\_CAMPAIGNS\_ERROR + +> `const` **USER\_FUND\_CAMPAIGNS\_ERROR**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `user`: \{ `__typename`: `string`; `appUserProfile`: \{ `__typename`: `string`; `_id`: `string`; `adminFor`: `any`[]; `appLanguageCode`: `string`; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; `pluginCreationAllowed`: `boolean`; \}; `user`: \{ `__typename`: `string`; `_id`: `string`; `address`: \{ `__typename`: `string`; `city`: `string`; `countryCode`: `string`; `line1`: `string`; `state`: `string`; \}; `birthDate`: `any`; `createdAt`: `string`; `educationGrade`: `any`; `email`: `string`; `employmentStatus`: `any`; `firstName`: `string`; `gender`: `any`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `maritalStatus`: `any`; `membershipRequests`: `any`[]; `phone`: `any`; `registeredEvents`: `any`[]; \}; \}; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `campaignOrderBy`: `string`; `where`: \{ `name_contains`: `string`; `organizationId`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Campaigns/CampaignsMocks.ts:257](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/CampaignsMocks.ts#L257) diff --git a/docs/docs/auto-docs/screens/UserPortal/Campaigns/PledgeModal/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Campaigns/PledgeModal/functions/default.md new file mode 100644 index 0000000000..ec5ff2c5c7 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Campaigns/PledgeModal/functions/default.md @@ -0,0 +1,32 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L54) + +`PledgeModal` is a React component that allows users to create or edit a pledge for a specific campaign. +It displays a form with inputs for pledge details such as amount, currency, dates, and users involved in the pledge. + +## Parameters + +### props + +[`InterfacePledgeModal`](../interfaces/InterfacePledgeModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` diff --git a/docs/docs/auto-docs/screens/UserPortal/Campaigns/PledgeModal/interfaces/InterfacePledgeModal.md b/docs/docs/auto-docs/screens/UserPortal/Campaigns/PledgeModal/interfaces/InterfacePledgeModal.md new file mode 100644 index 0000000000..0dd652ba59 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Campaigns/PledgeModal/interfaces/InterfacePledgeModal.md @@ -0,0 +1,81 @@ +[Admin Docs](/) + +*** + +# Interface: InterfacePledgeModal + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L30) + +Interface representing the properties for the `PledgeModal` component. + +## Properties + +### campaignId + +> **campaignId**: `string` + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L33) + +*** + +### endDate + +> **endDate**: `Date` + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L37) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L32) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L31) + +*** + +### mode + +> **mode**: `"create"` \| `"edit"` + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L38) + +*** + +### pledge + +> **pledge**: [`InterfacePledgeInfo`](../../../../../utils/interfaces/interfaces/InterfacePledgeInfo.md) + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L35) + +*** + +### refetchPledge() + +> **refetchPledge**: () => `void` + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L36) + +#### Returns + +`void` + +*** + +### userId + +> **userId**: `string` + +Defined in: [src/screens/UserPortal/Campaigns/PledgeModal.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Campaigns/PledgeModal.tsx#L34) diff --git a/docs/docs/auto-docs/screens/UserPortal/Chat/Chat/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Chat/Chat/functions/default.md new file mode 100644 index 0000000000..5ca5913017 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Chat/Chat/functions/default.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/Chat/Chat.tsx:102](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Chat/Chat.tsx#L102) + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/UserPortal/Donate/Donate/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Donate/Donate/functions/default.md new file mode 100644 index 0000000000..3b0a6069b0 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Donate/Donate/functions/default.md @@ -0,0 +1,36 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/Donate/Donate.tsx:65](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Donate/Donate.tsx#L65) + +`donate` component allows users to make donations to an organization and view their previous donations. + +This component fetches donation-related data using GraphQL queries and allows users to make donations +using a mutation. It supports currency selection, donation amount input, and displays a paginated list +of previous donations. + +It includes: +- An input field for searching donations. +- A dropdown to select currency. +- An input field for entering donation amount. +- A button to submit the donation. +- A list of previous donations displayed in a paginated format. +- An organization sidebar for navigation. + +### GraphQL Queries +- `ORGANIZATION_DONATION_CONNECTION_LIST`: Fetches the list of donations for the organization. +- `USER_ORGANIZATION_CONNECTION`: Fetches organization details. + +### GraphQL Mutations +- `DONATE_TO_ORGANIZATION`: Performs the donation action. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/UserPortal/Donate/Donate/interfaces/InterfaceDonationCardProps.md b/docs/docs/auto-docs/screens/UserPortal/Donate/Donate/interfaces/InterfaceDonationCardProps.md new file mode 100644 index 0000000000..1ddd876eb7 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Donate/Donate/interfaces/InterfaceDonationCardProps.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceDonationCardProps + +Defined in: [src/screens/UserPortal/Donate/Donate.tsx:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Donate/Donate.tsx#L23) + +## Properties + +### amount + +> **amount**: `string` + +Defined in: [src/screens/UserPortal/Donate/Donate.tsx:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Donate/Donate.tsx#L26) + +*** + +### id + +> **id**: `string` + +Defined in: [src/screens/UserPortal/Donate/Donate.tsx:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Donate/Donate.tsx#L24) + +*** + +### name + +> **name**: `string` + +Defined in: [src/screens/UserPortal/Donate/Donate.tsx:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Donate/Donate.tsx#L25) + +*** + +### payPalId + +> **payPalId**: `string` + +Defined in: [src/screens/UserPortal/Donate/Donate.tsx:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Donate/Donate.tsx#L28) + +*** + +### updatedAt + +> **updatedAt**: `string` + +Defined in: [src/screens/UserPortal/Donate/Donate.tsx:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Donate/Donate.tsx#L29) + +*** + +### userId + +> **userId**: `string` + +Defined in: [src/screens/UserPortal/Donate/Donate.tsx:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Donate/Donate.tsx#L27) diff --git a/docs/docs/auto-docs/screens/UserPortal/Events/Events/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Events/Events/functions/default.md new file mode 100644 index 0000000000..0b976320e4 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Events/Events/functions/default.md @@ -0,0 +1,20 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/Events/Events.tsx:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Events/Events.tsx#L43) + +Component to manage and display events for an organization. + +This component allows users to view, create, and manage events within an organization. +It includes a calendar view, a form to create new events, and various filters and settings. + +## Returns + +`JSX.Element` + +The JSX element for the events management interface. diff --git a/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/functions/default.md new file mode 100644 index 0000000000..84e8c7774f --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/functions/default.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx#L32) + +## Returns + +`Element` diff --git a/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/variables/userEmail.md b/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/variables/userEmail.md new file mode 100644 index 0000000000..025b9f4424 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/variables/userEmail.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: userEmail + +> `const` **userEmail**: `any` + +Defined in: [src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx#L13) diff --git a/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/variables/userId.md b/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/variables/userId.md new file mode 100644 index 0000000000..c5c5792762 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/LeaveOrganization/LeaveOrganization/variables/userId.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: userId + +> `const` **userId**: `any` + +Defined in: [src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/LeaveOrganization/LeaveOrganization.tsx#L21) diff --git a/docs/docs/auto-docs/screens/UserPortal/Organizations/Organizations/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Organizations/Organizations/functions/default.md new file mode 100644 index 0000000000..cf462d91f1 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Organizations/Organizations/functions/default.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/Organizations/Organizations.tsx:78](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Organizations/Organizations.tsx#L78) + +Component for displaying and managing user organizations. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/UserPortal/People/People/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/People/People/functions/default.md new file mode 100644 index 0000000000..f8d6aa3e1c --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/People/People/functions/default.md @@ -0,0 +1,17 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/People/People.tsx:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/People/People.tsx#L40) + +`People` component displays a list of people associated with an organization. +It allows users to filter between all members and admins, search for members by their first name, +and paginate through the list. + +## Returns + +`JSX.Element` diff --git a/docs/docs/auto-docs/screens/UserPortal/Pledges/Pledges/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Pledges/Pledges/functions/default.md new file mode 100644 index 0000000000..ce383c77f7 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Pledges/Pledges/functions/default.md @@ -0,0 +1,30 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/UserPortal/Pledges/Pledges.tsx:70](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Pledges/Pledges.tsx#L70) + +The `Pledges` component is responsible for rendering a user's pledges within a campaign. +It fetches pledges data using Apollo Client's `useQuery` hook and displays the data +in a DataGrid with various features such as search, sorting, and modal dialogs for updating +or deleting a pledge. The component also handles various UI interactions including opening +modals for editing or deleting a pledge, showing additional pledgers in a popup, and +applying filters for searching pledges by campaign or pledger name. + +Key functionalities include: +- Fetching pledges data from the backend using GraphQL query `USER_PLEDGES`. +- Displaying pledges in a table with columns for pledgers, associated campaigns, + end dates, pledged amounts, and actions. +- Handling search and sorting of pledges. +- Opening and closing modals for updating and deleting pledges. +- Displaying additional pledgers in a popup when the list of pledgers exceeds a certain limit. + +## Returns + +`Element` + +The rendered Pledges component. diff --git a/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..ece35abf52 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `user`: \{ `__typename`: `string`; `appUserProfile`: \{ `__typename`: `string`; `_id`: `string`; `adminFor`: `any`[]; `appLanguageCode`: `string`; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; `pluginCreationAllowed`: `boolean`; \}; `user`: \{ `__typename`: `string`; `_id`: `string`; `address`: \{ `__typename`: `string`; `city`: `string`; `countryCode`: `string`; `line1`: `string`; `state`: `string`; \}; `birthDate`: `any`; `createdAt`: `string`; `educationGrade`: `any`; `email`: `string`; `employmentStatus`: `any`; `firstName`: `string`; `gender`: `any`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `maritalStatus`: `any`; `membershipRequests`: `any`[]; `phone`: `any`; `registeredEvents`: `any`[]; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `orderBy`: `string`; `userId`: `string`; `where`: \{ `firstName_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getPledgesByUserId`: `any`[]; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Pledges/PledgesMocks.ts:560](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Pledges/PledgesMocks.ts#L560) diff --git a/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/MOCKS.md new file mode 100644 index 0000000000..58059b9ba2 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `user`: \{ `__typename`: `string`; `appUserProfile`: \{ `__typename`: `string`; `_id`: `string`; `adminFor`: `any`[]; `appLanguageCode`: `string`; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; `pluginCreationAllowed`: `boolean`; \}; `user`: \{ `__typename`: `string`; `_id`: `string`; `address`: \{ `__typename`: `string`; `city`: `string`; `countryCode`: `string`; `line1`: `string`; `state`: `string`; \}; `birthDate`: `any`; `createdAt`: `string`; `educationGrade`: `any`; `email`: `string`; `employmentStatus`: `any`; `firstName`: `string`; `gender`: `any`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `maritalStatus`: `any`; `membershipRequests`: `any`[]; `phone`: `any`; `registeredEvents`: `any`[]; \}; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `string`; `userId`: `string`; `where`: \{ `firstName_contains`: `undefined`; `name_contains`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getPledgesByUserId`: `object`[]; `removeFundraisingCampaignPledge`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `string`; `userId`: `string`; `where`: \{ `firstName_contains`: `string`; `name_contains`: `undefined`; \}; \}; \}; `result`: \{ `data`: \{ `getPledgesByUserId`: `object`[]; `removeFundraisingCampaignPledge`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; `orderBy`: `undefined`; `userId`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getPledgesByUserId`: `undefined`; `removeFundraisingCampaignPledge`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Pledges/PledgesMocks.ts:62](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Pledges/PledgesMocks.ts#L62) diff --git a/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/USER_PLEDGES_ERROR.md b/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/USER_PLEDGES_ERROR.md new file mode 100644 index 0000000000..a51c6a21c5 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Pledges/PledgesMocks/variables/USER_PLEDGES_ERROR.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: USER\_PLEDGES\_ERROR + +> `const` **USER\_PLEDGES\_ERROR**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; \}; \}; `result`: \{ `data`: \{ `user`: \{ `__typename`: `string`; `appUserProfile`: \{ `__typename`: `string`; `_id`: `string`; `adminFor`: `any`[]; `appLanguageCode`: `string`; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; `pluginCreationAllowed`: `boolean`; \}; `user`: \{ `__typename`: `string`; `_id`: `string`; `address`: \{ `__typename`: `string`; `city`: `string`; `countryCode`: `string`; `line1`: `string`; `state`: `string`; \}; `birthDate`: `any`; `createdAt`: `string`; `educationGrade`: `any`; `email`: `string`; `employmentStatus`: `any`; `firstName`: `string`; `gender`: `any`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `maritalStatus`: `any`; `membershipRequests`: `any`[]; `phone`: `any`; `registeredEvents`: `any`[]; \}; \}; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `orderBy`: `string`; `userId`: `string`; `where`: \{ `firstName_contains`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Pledges/PledgesMocks.ts:581](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Pledges/PledgesMocks.ts#L581) diff --git a/docs/docs/auto-docs/screens/UserPortal/Posts/Posts/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Posts/Posts/functions/default.md new file mode 100644 index 0000000000..b43cdb325d --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Posts/Posts/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/Posts/Posts.tsx:112](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Posts/Posts.tsx#L112) + +`home` component displays the main feed for a user, including posts, promoted content, and options to create a new post. + +It utilizes Apollo Client for fetching and managing data through GraphQL queries. The component fetches and displays posts from an organization, promoted advertisements, and handles user interactions for creating new posts. It also manages state for displaying modal dialogs and handling file uploads for new posts. + +## Returns + +`JSX.Element` + +JSX.Element - The rendered `home` component. diff --git a/docs/docs/auto-docs/screens/UserPortal/Settings/Settings/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Settings/Settings/functions/default.md new file mode 100644 index 0000000000..66388b9663 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Settings/Settings/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/Settings/Settings.tsx:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Settings/Settings.tsx#L33) + +The Settings component allows users to view and update their profile settings. +It includes functionality to handle image uploads, reset changes, and save updated user details. + +## Returns + +`JSX.Element` + +The Settings component. diff --git a/docs/docs/auto-docs/screens/UserPortal/UserScreen/UserScreen/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/UserScreen/UserScreen/functions/default.md new file mode 100644 index 0000000000..29a4ff4fb5 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/UserScreen/UserScreen/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/UserPortal/UserScreen/UserScreen.tsx:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/UserScreen/UserScreen.tsx#L34) + +The UserScreen component serves as a container for user-specific pages +within an organization context. It provides layout and sidebar navigation +functionality based on the current organization ID and user roles. + +## Returns + +`Element` + +The UserScreen component. diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..aa2b6037df --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: `object`[] + +Defined in: [src/screens/UserPortal/Volunteer/Actions/Actions.mocks.ts:232](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Actions/Actions.mocks.ts#L232) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ACTION_ITEMS_BY_USER` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orderBy + +> **orderBy**: `any` = `null` + +#### request.variables.userId + +> **userId**: `string` = `'userId'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.assigneeName + +> **assigneeName**: `string` = `''` + +#### request.variables.where.orgId + +> **orgId**: `string` = `'orgId'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.actionItemsByUser + +> **actionItemsByUser**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/ERROR_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/ERROR_MOCKS.md new file mode 100644 index 0000000000..7b134af53f --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/ERROR_MOCKS.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Variable: ERROR\_MOCKS + +> `const` **ERROR\_MOCKS**: `object`[] + +Defined in: [src/screens/UserPortal/Volunteer/Actions/Actions.mocks.ts:253](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Actions/Actions.mocks.ts#L253) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `ACTION_ITEMS_BY_USER` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orderBy + +> **orderBy**: `any` = `null` + +#### request.variables.userId + +> **userId**: `string` = `'userId'` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.assigneeName + +> **assigneeName**: `string` = `''` + +#### request.variables.where.orgId + +> **orgId**: `string` = `'orgId'` diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..8878b63f12 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `orderBy`: `any`; `userId`: `string`; `where`: \{ `assigneeName`: `string`; `categoryName`: `undefined`; `orgId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemsByUser`: (\{ `_id`: `string`; `actionItemCategory`: \{ `_id`: `string`; `name`: `string`; \}; `allottedHours`: `number`; `assignee`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \}; `assigneeGroup`: `any`; `assigneeType`: `string`; `assigner`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `assignmentDate`: `string`; `completionDate`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `dueDate`: `string`; `event`: \{ `_id`: `string`; `title`: `string`; \}; `isCompleted`: `boolean`; `postCompletionNotes`: `string`; `preCompletionNotes`: `string`; \} \| \{ `_id`: `string`; `actionItemCategory`: \{ `_id`: `string`; `name`: `string`; \}; `allottedHours`: `number`; `assignee`: `any`; `assigneeGroup`: \{ `_id`: `string`; `name`: `string`; \}; `assigneeType`: `string`; `assigner`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `assignmentDate`: `string`; `completionDate`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `dueDate`: `string`; `event`: \{ `_id`: `string`; `title`: `string`; \}; `isCompleted`: `boolean`; `postCompletionNotes`: `string`; `preCompletionNotes`: `string`; \} \| \{ `_id`: `string`; `actionItemCategory`: \{ `_id`: `string`; `name`: `string`; \}; `allottedHours`: `any`; `assignee`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `string`; `lastName`: `string`; \}; \}; `assigneeGroup`: `any`; `assigneeType`: `string`; `assigner`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `assignmentDate`: `string`; `completionDate`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `dueDate`: `string`; `event`: \{ `_id`: `string`; `title`: `string`; \}; `isCompleted`: `boolean`; `postCompletionNotes`: `string`; `preCompletionNotes`: `string`; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `orderBy`: `string`; `userId`: `string`; `where`: \{ `assigneeName`: `string`; `categoryName`: `undefined`; `orgId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemsByUser`: (\{ `_id`: `string`; `actionItemCategory`: \{ `_id`: `string`; `name`: `string`; \}; `allottedHours`: `number`; `assignee`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \}; `assigneeGroup`: `any`; `assigneeType`: `string`; `assigner`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `assignmentDate`: `string`; `completionDate`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `dueDate`: `string`; `event`: \{ `_id`: `string`; `title`: `string`; \}; `isCompleted`: `boolean`; `postCompletionNotes`: `string`; `preCompletionNotes`: `string`; \} \| \{ `_id`: `string`; `actionItemCategory`: \{ `_id`: `string`; `name`: `string`; \}; `allottedHours`: `number`; `assignee`: `any`; `assigneeGroup`: \{ `_id`: `string`; `name`: `string`; \}; `assigneeType`: `string`; `assigner`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `assignmentDate`: `string`; `completionDate`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `dueDate`: `string`; `event`: \{ `_id`: `string`; `title`: `string`; \}; `isCompleted`: `boolean`; `postCompletionNotes`: `string`; `preCompletionNotes`: `string`; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `orderBy`: `any`; `userId`: `string`; `where`: \{ `assigneeName`: `undefined`; `categoryName`: `string`; `orgId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `actionItemsByUser`: (\{ `_id`: `string`; `actionItemCategory`: \{ `_id`: `string`; `name`: `string`; \}; `allottedHours`: `number`; `assignee`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \}; `assigneeGroup`: `any`; `assigneeType`: `string`; `assigner`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `assignmentDate`: `string`; `completionDate`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `dueDate`: `string`; `event`: \{ `_id`: `string`; `title`: `string`; \}; `isCompleted`: `boolean`; `postCompletionNotes`: `string`; `preCompletionNotes`: `string`; \} \| \{ `_id`: `string`; `actionItemCategory`: \{ `_id`: `string`; `name`: `string`; \}; `allottedHours`: `number`; `assignee`: `any`; `assigneeGroup`: \{ `_id`: `string`; `name`: `string`; \}; `assigneeType`: `string`; `assigner`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; `assignmentDate`: `string`; `completionDate`: `string`; `creator`: \{ `_id`: `string`; `firstName`: `string`; `lastName`: `string`; \}; `dueDate`: `string`; `event`: \{ `_id`: `string`; `title`: `string`; \}; `isCompleted`: `boolean`; `postCompletionNotes`: `string`; `preCompletionNotes`: `string`; \})[]; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/Actions/Actions.mocks.ts:121](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Actions/Actions.mocks.ts#L121) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions/functions/default.md new file mode 100644 index 0000000000..0923b9378d --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Actions/Actions/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/Volunteer/Actions/Actions.tsx:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Actions/Actions.tsx#L60) + +Component for managing and displaying action items within an organization. + +This component allows users to view, filter, sort, and create action items. It also handles fetching and displaying related data such as action item categories and members. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/GroupModal/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/GroupModal/functions/default.md new file mode 100644 index 0000000000..bd28975d99 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/GroupModal/functions/default.md @@ -0,0 +1,49 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx:71](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx#L71) + +A modal dialog for creating or editing a volunteer group. + +## Parameters + +### props + +[`InterfaceGroupModal`](../interfaces/InterfaceGroupModal.md) + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered modal component. + +The `VolunteerGroupModal` component displays a form within a modal dialog for creating or editing a Volunteer Group. +It includes fields for entering the group name, description, volunteersRequired, and selecting volunteers/leaders. + +The modal includes: +- A header with a title indicating the current mode (create or edit) and a close button. +- A form with: + - An input field for entering the group name. + - A textarea for entering the group description. + - An input field for entering the number of volunteers required. +- A submit button to create or update the pledge. + +On form submission, the component either: +- Calls `updateVoluneerGroup` mutation to update an existing group, or + +Success or error messages are displayed using toast notifications based on the result of the mutation. diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/GroupModal/interfaces/InterfaceGroupModal.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/GroupModal/interfaces/InterfaceGroupModal.md new file mode 100644 index 0000000000..cf075f01ef --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/GroupModal/interfaces/InterfaceGroupModal.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceGroupModal + +Defined in: [src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx#L35) + +## Properties + +### eventId + +> **eventId**: `string` + +Defined in: [src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx#L38) + +*** + +### group + +> **group**: [`InterfaceVolunteerGroupInfo`](../../../../../../utils/interfaces/interfaces/InterfaceVolunteerGroupInfo.md) + +Defined in: [src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx#L39) + +*** + +### hide() + +> **hide**: () => `void` + +Defined in: [src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx#L37) + +#### Returns + +`void` + +*** + +### isOpen + +> **isOpen**: `boolean` + +Defined in: [src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx#L36) + +*** + +### refetchGroups() + +> **refetchGroups**: () => `void` + +Defined in: [src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/GroupModal.tsx#L40) + +#### Returns + +`void` diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..1d6df91e66 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `orderBy`: `any`; `where`: \{ `eventId`: `undefined`; `group`: `undefined`; `leaderName`: `any`; `name_contains`: `string`; `orgId`: `string`; `status`: `undefined`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: `any`[]; `getVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `orderBy`: `undefined`; `where`: \{ `eventId`: `string`; `group`: `string`; `leaderName`: `undefined`; `name_contains`: `undefined`; `orgId`: `undefined`; `status`: `string`; `userId`: `undefined`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: `undefined`; `getVolunteerMembership`: `any`[]; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/Groups/Groups.mocks.ts:368](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/Groups.mocks.ts#L368) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/ERROR_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/ERROR_MOCKS.md new file mode 100644 index 0000000000..69e5086ac6 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/ERROR_MOCKS.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Variable: ERROR\_MOCKS + +> `const` **ERROR\_MOCKS**: `object`[] + +Defined in: [src/screens/UserPortal/Volunteer/Groups/Groups.mocks.ts:407](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/Groups.mocks.ts#L407) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `EVENT_VOLUNTEER_GROUP_LIST` + +#### request.variables + +> **variables**: `object` + +#### request.variables.orderBy + +> **orderBy**: `any` = `null` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.leaderName + +> **leaderName**: `any` = `null` + +#### request.variables.where.name\_contains + +> **name\_contains**: `string` = `''` + +#### request.variables.where.orgId + +> **orgId**: `string` = `'orgId'` + +#### request.variables.where.userId + +> **userId**: `string` = `'userId'` diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..c0782b7256 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `string`; `status`: `undefined`; `where`: \{ `eventId`: `undefined`; `groupId`: `undefined`; `leaderName`: `any`; `name_contains`: `string`; `orgId`: `string`; `status`: `undefined`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: `object`[]; `getVolunteerMembership`: `undefined`; `updateEventVolunteerGroup`: `undefined`; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `any`; `status`: `undefined`; `where`: \{ `eventId`: `undefined`; `groupId`: `undefined`; `leaderName`: `string`; `name_contains`: `any`; `orgId`: `string`; `status`: `undefined`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: `object`[]; `getVolunteerMembership`: `undefined`; `updateEventVolunteerGroup`: `undefined`; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `orderBy`: `undefined`; `status`: `undefined`; `where`: \{ `eventId`: `string`; `groupId`: `string`; `leaderName`: `undefined`; `name_contains`: `undefined`; `orgId`: `undefined`; `status`: `string`; `userId`: `undefined`; \}; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: `undefined`; `getVolunteerMembership`: `object`[]; `updateEventVolunteerGroup`: `undefined`; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `orderBy`: `undefined`; `status`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: `undefined`; `getVolunteerMembership`: `undefined`; `updateEventVolunteerGroup`: `undefined`; `updateVolunteerMembership`: \{ `_id`: `string`; \}; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `description`: `string`; `eventId`: `string`; `name`: `string`; `volunteersRequired`: `number`; \}; `id`: `string`; `orderBy`: `undefined`; `status`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: `undefined`; `getVolunteerMembership`: `undefined`; `updateEventVolunteerGroup`: \{ `_id`: `string`; \}; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `description`: `undefined`; `eventId`: `string`; `name`: `undefined`; `volunteersRequired`: `undefined`; \}; `id`: `string`; `orderBy`: `undefined`; `status`: `undefined`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getEventVolunteerGroups`: `undefined`; `getVolunteerMembership`: `undefined`; `updateEventVolunteerGroup`: \{ `_id`: `string`; \}; `updateVolunteerMembership`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/Groups/Groups.mocks.ts:163](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/Groups.mocks.ts#L163) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/UPDATE_ERROR_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/UPDATE_ERROR_MOCKS.md new file mode 100644 index 0000000000..04dd566f47 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups.mocks/variables/UPDATE_ERROR_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_ERROR\_MOCKS + +> `const` **UPDATE\_ERROR\_MOCKS**: (\{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `undefined`; `status`: `undefined`; `where`: \{ `eventId`: `string`; `groupId`: `string`; `status`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `id`: `string`; `status`: `string`; `where`: `undefined`; \}; \}; `result`: `undefined`; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `description`: `string`; `eventId`: `string`; `name`: `string`; `volunteersRequired`: `number`; \}; `id`: `string`; `status`: `undefined`; `where`: `undefined`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/Groups/Groups.mocks.ts:425](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/Groups.mocks.ts#L425) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups/functions/default.md new file mode 100644 index 0000000000..d7a13d61c8 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Groups/Groups/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `JSX.Element` + +Defined in: [src/screens/UserPortal/Volunteer/Groups/Groups.tsx:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Groups/Groups.tsx#L55) + +Component for managing volunteer groups for an event. +This component allows users to view, filter, sort, and create action items. It also provides a modal for creating and editing action items. + +## Returns + +`JSX.Element` + +The rendered component. diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..eeb93ece9d --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: `object`[] + +Defined in: [src/screens/UserPortal/Volunteer/Invitations/Invitations.mocks.ts:189](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Invitations/Invitations.mocks.ts#L189) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_VOLUNTEER_MEMBERSHIP` + +#### request.variables + +> **variables**: `object` + +#### request.variables.where + +> **where**: `object` + +#### request.variables.where.filter + +> **filter**: `any` = `null` + +#### request.variables.where.status + +> **status**: `string` = `'invited'` + +#### request.variables.where.userId + +> **userId**: `string` = `'userId'` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.getVolunteerMembership + +> **getVolunteerMembership**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/ERROR_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/ERROR_MOCKS.md new file mode 100644 index 0000000000..8234800b24 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/ERROR_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: ERROR\_MOCKS + +> `const` **ERROR\_MOCKS**: (\{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `status`: `undefined`; `where`: \{ `filter`: `any`; `status`: `string`; `userId`: `string`; \}; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; `status`: `string`; `where`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/Invitations/Invitations.mocks.ts:209](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Invitations/Invitations.mocks.ts#L209) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..f8b05a73dd --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `undefined`; `status`: `undefined`; `where`: \{ `eventTitle`: `undefined`; `filter`: `any`; `status`: `string`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: (\{ `_id`: `string`; `createdAt`: `string`; `event`: \{ `_id`: `string`; `startDate`: `string`; `title`: `string`; \}; `group`: `any`; `status`: `string`; `volunteer`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `string`; `lastName`: `string`; \}; \}; \} \| \{ `_id`: `string`; `createdAt`: `string`; `event`: \{ `_id`: `string`; `startDate`: `string`; `title`: `string`; \}; `group`: \{ `_id`: `string`; `name`: `string`; \}; `status`: `string`; `volunteer`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \}; \})[]; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `string`; `status`: `undefined`; `where`: \{ `eventTitle`: `undefined`; `filter`: `any`; `status`: `string`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: (\{ `_id`: `string`; `createdAt`: `string`; `event`: \{ `_id`: `string`; `startDate`: `string`; `title`: `string`; \}; `group`: `any`; `status`: `string`; `volunteer`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `string`; `lastName`: `string`; \}; \}; \} \| \{ `_id`: `string`; `createdAt`: `string`; `event`: \{ `_id`: `string`; `startDate`: `string`; `title`: `string`; \}; `group`: \{ `_id`: `string`; `name`: `string`; \}; `status`: `string`; `volunteer`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \}; \})[]; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `undefined`; `status`: `undefined`; `where`: \{ `eventTitle`: `undefined`; `filter`: `string`; `status`: `string`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `object`[]; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `undefined`; `status`: `undefined`; `where`: \{ `eventTitle`: `undefined`; `filter`: `string`; `status`: `string`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `object`[]; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `orderBy`: `undefined`; `status`: `undefined`; `where`: \{ `eventTitle`: `string`; `filter`: `any`; `status`: `string`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `object`[]; `updateVolunteerMembership`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; `orderBy`: `undefined`; `status`: `string`; `where`: `undefined`; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: `undefined`; `updateVolunteerMembership`: \{ `_id`: `string`; \}; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/Invitations/Invitations.mocks.ts:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Invitations/Invitations.mocks.ts#L49) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/UPDATE_ERROR_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/UPDATE_ERROR_MOCKS.md new file mode 100644 index 0000000000..d8890bc5b3 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations.mocks/variables/UPDATE_ERROR_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: UPDATE\_ERROR\_MOCKS + +> `const` **UPDATE\_ERROR\_MOCKS**: (\{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `undefined`; `status`: `undefined`; `where`: \{ `filter`: `any`; `status`: `string`; `userId`: `string`; \}; \}; \}; `result`: \{ `data`: \{ `getVolunteerMembership`: (\{ `_id`: `string`; `createdAt`: `string`; `event`: \{ `_id`: `string`; `startDate`: `string`; `title`: `string`; \}; `group`: `any`; `status`: `string`; `volunteer`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `string`; `lastName`: `string`; \}; \}; \} \| \{ `_id`: `string`; `createdAt`: `string`; `event`: \{ `_id`: `string`; `startDate`: `string`; `title`: `string`; \}; `group`: \{ `_id`: `string`; `name`: `string`; \}; `status`: `string`; `volunteer`: \{ `_id`: `string`; `user`: \{ `_id`: `string`; `firstName`: `string`; `image`: `any`; `lastName`: `string`; \}; \}; \})[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `id`: `string`; `status`: `string`; `where`: `undefined`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/Invitations/Invitations.mocks.ts:235](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Invitations/Invitations.mocks.ts#L235) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations/functions/default.md new file mode 100644 index 0000000000..ec4f13f5d7 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/Invitations/Invitations/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/UserPortal/Volunteer/Invitations/Invitations.tsx:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/Invitations/Invitations.tsx#L32) + +The `Invitations` component displays list of invites for the user to volunteer. +It allows the user to search, sort, and accept/reject invites. + +## Returns + +`Element` + +The rendered component displaying the upcoming events. diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/CREATE_ERROR_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/CREATE_ERROR_MOCKS.md new file mode 100644 index 0000000000..52de71f3ec --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/CREATE_ERROR_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: CREATE\_ERROR\_MOCKS + +> `const` **CREATE\_ERROR\_MOCKS**: (\{ `error`: `undefined`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `first`: `any`; `location_contains`: `string`; `organization_id`: `string`; `skip`: `any`; `title_contains`: `string`; `upcomingOnly`: `boolean`; \}; \}; `result`: \{ `data`: \{ `eventsByOrganizationConnection`: `object`[]; \}; \}; \} \| \{ `error`: `Error`; `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `event`: `string`; `group`: `any`; `status`: `string`; `userId`: `string`; \}; `first`: `undefined`; `location_contains`: `undefined`; `organization_id`: `undefined`; `skip`: `undefined`; `title_contains`: `undefined`; `upcomingOnly`: `undefined`; \}; \}; `result`: `undefined`; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks.ts:248](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks.ts#L248) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..2ae69d1787 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,59 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: `object`[] + +Defined in: [src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks.ts:210](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks.ts#L210) + +## Type declaration + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_EVENTS_VOLUNTEER` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `any` = `null` + +#### request.variables.location\_contains + +> **location\_contains**: `string` = `''` + +#### request.variables.organization\_id + +> **organization\_id**: `string` = `'orgId'` + +#### request.variables.skip + +> **skip**: `any` = `null` + +#### request.variables.title\_contains + +> **title\_contains**: `string` = `''` + +#### request.variables.upcomingOnly + +> **upcomingOnly**: `boolean` = `true` + +### result + +> **result**: `object` + +#### result.data + +> **data**: `object` + +#### result.data.eventsByOrganizationConnection + +> **eventsByOrganizationConnection**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/ERROR_MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/ERROR_MOCKS.md new file mode 100644 index 0000000000..fe0a103650 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/ERROR_MOCKS.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Variable: ERROR\_MOCKS + +> `const` **ERROR\_MOCKS**: `object`[] + +Defined in: [src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks.ts:231](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks.ts#L231) + +## Type declaration + +### error + +> **error**: `Error` + +### request + +> **request**: `object` + +#### request.query + +> **query**: `DocumentNode` = `USER_EVENTS_VOLUNTEER` + +#### request.variables + +> **variables**: `object` + +#### request.variables.first + +> **first**: `any` = `null` + +#### request.variables.location\_contains + +> **location\_contains**: `string` = `''` + +#### request.variables.organization\_id + +> **organization\_id**: `string` = `'orgId'` + +#### request.variables.skip + +> **skip**: `any` = `null` + +#### request.variables.title\_contains + +> **title\_contains**: `string` = `''` + +#### request.variables.upcomingOnly + +> **upcomingOnly**: `boolean` = `true` diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..869fbb9a41 --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: `undefined`; `first`: `any`; `location_contains`: `string`; `organization_id`: `string`; `skip`: `any`; `title_contains`: `string`; `upcomingOnly`: `boolean`; \}; \}; `result`: \{ `data`: \{ `createVolunteerMembership`: `undefined`; `eventsByOrganizationConnection`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `data`: \{ `event`: `string`; `group`: `string`; `status`: `string`; `userId`: `string`; \}; `first`: `undefined`; `location_contains`: `undefined`; `organization_id`: `undefined`; `skip`: `undefined`; `title_contains`: `undefined`; `upcomingOnly`: `undefined`; \}; \}; `result`: \{ `data`: \{ `createVolunteerMembership`: \{ `_id`: `string`; \}; `eventsByOrganizationConnection`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks.ts:113](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.mocks.ts#L113) diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents/functions/default.md new file mode 100644 index 0000000000..1cbbdf482c --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents/functions/default.md @@ -0,0 +1,18 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.tsx:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/UpcomingEvents/UpcomingEvents.tsx#L42) + +The `UpcomingEvents` component displays list of upcoming events for the user to volunteer. +It allows the user to search, sort, and volunteer for events/volunteer groups. + +## Returns + +`Element` + +The rendered component displaying the upcoming events. diff --git a/docs/docs/auto-docs/screens/UserPortal/Volunteer/VolunteerManagement/functions/default.md b/docs/docs/auto-docs/screens/UserPortal/Volunteer/VolunteerManagement/functions/default.md new file mode 100644 index 0000000000..8109d7fd0f --- /dev/null +++ b/docs/docs/auto-docs/screens/UserPortal/Volunteer/VolunteerManagement/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/UserPortal/Volunteer/VolunteerManagement.tsx:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/UserPortal/Volunteer/VolunteerManagement.tsx#L58) + +`VolunteerManagement` component handles the display and navigation of different event management sections. + +It provides a tabbed interface for: +- Viewing upcoming events to volunteer +- Managing volunteer requests +- Managing volunteer invitations +- Managing volunteer groups + +## Returns + +`Element` + +JSX.Element - The `VolunteerManagement` component. diff --git a/docs/docs/auto-docs/screens/Users/Organization.mocks/functions/generateMockUser.md b/docs/docs/auto-docs/screens/Users/Organization.mocks/functions/generateMockUser.md new file mode 100644 index 0000000000..6edcedd0b9 --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/Organization.mocks/functions/generateMockUser.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Function: generateMockUser() + +> **generateMockUser**(`id`, `firstName`, `lastName`, `email`, `createdAt`, `isSuperAdmin`): `InterfaceMockUser` + +Defined in: [src/screens/Users/Organization.mocks.ts:236](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/Organization.mocks.ts#L236) + +## Parameters + +### id + +`string` + +### firstName + +`string` + +### lastName + +`string` + +### email + +`string` + +### createdAt + +`string` + +### isSuperAdmin + +`boolean` = `false` + +## Returns + +`InterfaceMockUser` diff --git a/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/MOCK_USERS.md b/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/MOCK_USERS.md new file mode 100644 index 0000000000..95ccacff7a --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/MOCK_USERS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCK\_USERS + +> `const` **MOCK\_USERS**: (\{ `appUserProfile`: \{ `_id`: `string`; `adminFor`: `object`[]; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; \}; `user`: \{ `_id`: `string`; `createdAt`: `string`; `email`: `string`; `firstName`: `string`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `membershipRequests`: `any`[]; `organizationsBlockedBy`: `object`[]; `registeredEvents`: `any`[]; \}; \} \| \{ `appUserProfile`: \{ `_id`: `string`; `adminFor`: `any`[]; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; \}; `user`: \{ `_id`: `string`; `createdAt`: `string`; `email`: `string`; `firstName`: `string`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `membershipRequests`: `any`[]; `organizationsBlockedBy`: `object`[]; `registeredEvents`: `any`[]; \}; \})[] + +Defined in: [src/screens/Users/Organization.mocks.ts:77](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/Organization.mocks.ts#L77) diff --git a/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/MOCK_USERS2.md b/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/MOCK_USERS2.md new file mode 100644 index 0000000000..093d3506a4 --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/MOCK_USERS2.md @@ -0,0 +1,83 @@ +[Admin Docs](/) + +*** + +# Variable: MOCK\_USERS2 + +> `const` **MOCK\_USERS2**: `object`[] + +Defined in: [src/screens/Users/Organization.mocks.ts:284](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/Organization.mocks.ts#L284) + +## Type declaration + +### appUserProfile + +> **appUserProfile**: `object` + +#### appUserProfile.\_id + +> **\_id**: `string` = `'user3'` + +#### appUserProfile.adminFor + +> **adminFor**: `any`[] = `[]` + +#### appUserProfile.createdEvents + +> **createdEvents**: `any`[] = `[]` + +#### appUserProfile.createdOrganizations + +> **createdOrganizations**: `any`[] = `[]` + +#### appUserProfile.eventAdmin + +> **eventAdmin**: `any`[] = `[]` + +#### appUserProfile.isSuperAdmin + +> **isSuperAdmin**: `boolean` = `false` + +### user + +> **user**: `object` + +#### user.\_id + +> **\_id**: `string` = `'user3'` + +#### user.createdAt + +> **createdAt**: `string` = `'2023-04-09T04:53:17.742+00:00'` + +#### user.email + +> **email**: `string` = `'jack@example.com'` + +#### user.firstName + +> **firstName**: `string` = `'Jack'` + +#### user.image + +> **image**: `any` = `null` + +#### user.joinedOrganizations + +> **joinedOrganizations**: `object`[] + +#### user.lastName + +> **lastName**: `string` = `'Smith'` + +#### user.membershipRequests + +> **membershipRequests**: `any`[] = `[]` + +#### user.organizationsBlockedBy + +> **organizationsBlockedBy**: `object`[] + +#### user.registeredEvents + +> **registeredEvents**: `any`[] = `[]` diff --git a/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/createAddress.md b/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/createAddress.md new file mode 100644 index 0000000000..572b5e547d --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/createAddress.md @@ -0,0 +1,43 @@ +[Admin Docs](/) + +*** + +# Variable: createAddress + +> `const` **createAddress**: `object` + +Defined in: [src/screens/Users/Organization.mocks.ts:57](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/Organization.mocks.ts#L57) + +## Type declaration + +### city + +> **city**: `string` = `'Kingston'` + +### countryCode + +> **countryCode**: `string` = `'JM'` + +### dependentLocality + +> **dependentLocality**: `string` = `'Sample Dependent Locality'` + +### line1 + +> **line1**: `string` = `'123 Jamaica Street'` + +### line2 + +> **line2**: `string` = `'Apartment 456'` + +### postalCode + +> **postalCode**: `string` = `'JM12345'` + +### sortingCode + +> **sortingCode**: `string` = `'ABC-123'` + +### state + +> **state**: `string` = `'Kingston Parish'` diff --git a/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/createCreator.md b/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/createCreator.md new file mode 100644 index 0000000000..a4d7cb6b02 --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/Organization.mocks/variables/createCreator.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Variable: createCreator + +> `const` **createCreator**: `object` + +Defined in: [src/screens/Users/Organization.mocks.ts:68](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/Organization.mocks.ts#L68) + +## Type declaration + +### \_id + +> **\_id**: `string` = `'123'` + +### createdAt + +> **createdAt**: `string` = `'19/06/2022'` + +### email + +> **email**: `string` = `'jack@example.com'` + +### firstName + +> **firstName**: `string` = `'Jack'` + +### image + +> **image**: `any` = `null` + +### lastName + +> **lastName**: `string` = `'Smith'` diff --git a/docs/docs/auto-docs/screens/Users/User.mocks/variables/MOCKS.md b/docs/docs/auto-docs/screens/Users/User.mocks/variables/MOCKS.md new file mode 100644 index 0000000000..2205e25c6f --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/User.mocks/variables/MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS + +> `const` **MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `firstName_contains`: `undefined`; `id`: `string`; `lastName_contains`: `undefined`; `skip`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `user`: \{ `email`: `string`; `firstName`: `string`; `image`: `string`; `lastName`: `string`; \}; `users`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `undefined`; `lastName_contains`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `user`: `undefined`; `users`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizationsConnection`: `object`[]; `user`: `undefined`; `users`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Users/User.mocks.ts:7](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/User.mocks.ts#L7) diff --git a/docs/docs/auto-docs/screens/Users/User.mocks/variables/MOCKS2.md b/docs/docs/auto-docs/screens/Users/User.mocks/variables/MOCKS2.md new file mode 100644 index 0000000000..46f1925392 --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/User.mocks/variables/MOCKS2.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS2 + +> `const` **MOCKS2**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `undefined`; `firstName_contains`: `undefined`; `id`: `string`; `lastName_contains`: `undefined`; `skip`: `undefined`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `user`: \{ `email`: `string`; `firstName`: `string`; `image`: `string`; `lastName`: `string`; \}; `users`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `id`: `undefined`; `lastName_contains`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `user`: `undefined`; `users`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizationsConnection`: `object`[]; `user`: `undefined`; `users`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Users/User.mocks.ts:242](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/User.mocks.ts#L242) diff --git a/docs/docs/auto-docs/screens/Users/Users/functions/default.md b/docs/docs/auto-docs/screens/Users/Users/functions/default.md new file mode 100644 index 0000000000..61b9d11ece --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/Users/functions/default.md @@ -0,0 +1,53 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Element` + +Defined in: [src/screens/Users/Users.tsx:64](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/Users.tsx#L64) + +The `Users` component is responsible for displaying a list of users in a paginated and sortable format. +It supports search functionality, filtering, and sorting of users. The component integrates with GraphQL +for fetching and managing user data and displays results with infinite scrolling. + +## Features: +- **Search:** Allows users to search for users by their first name. +- **Sorting:** Provides options to sort users by creation date (newest or oldest). +- **Filtering:** Enables filtering users based on their roles (admin, superadmin, user, etc.). +- **Pagination:** Utilizes infinite scrolling to load more users as the user scrolls down. + +## GraphQL Queries: +- `USER_LIST`: Fetches a list of users with specified search, sorting, and pagination parameters. +- `ORGANIZATION_CONNECTION_LIST`: Fetches a list of organizations to verify organization existence. + +## Component State: +- `isLoading`: Indicates whether the component is currently loading data. +- `hasMore`: Indicates if there are more users to load. +- `isLoadingMore`: Indicates if more users are currently being loaded. +- `searchByName`: The current search query for user names. +- `sortingOption`: The current sorting option (newest or oldest). +- `filteringOption`: The current filtering option (admin, superadmin, user, cancel). +- `displayedUsers`: The list of users currently displayed, filtered and sorted. + +## Event Handlers: +- `handleSearch`: Handles searching users by name and refetches the user list. +- `handleSearchByEnter`: Handles search input when the Enter key is pressed. +- `handleSearchByBtnClick`: Handles search input when the search button is clicked. +- `resetAndRefetch`: Resets search and refetches the user list with default parameters. +- `loadMoreUsers`: Loads more users when scrolling reaches the end of the list. +- `handleSorting`: Updates sorting option and refetches the user list. +- `handleFiltering`: Updates filtering option and refetches the user list. + +## Rendering: +- Displays a search input and button for searching users. +- Provides dropdowns for sorting and filtering users. +- Renders a table of users with infinite scrolling support. +- Shows appropriate messages when no users are found or when search yields no results. + +## Returns + +`Element` + +The rendered `Users` component. diff --git a/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/EMPTY_MOCKS.md b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/EMPTY_MOCKS.md new file mode 100644 index 0000000000..744f8f87da --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/EMPTY_MOCKS.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: EMPTY\_MOCKS + +> `const` **EMPTY\_MOCKS**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `lastName_contains`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `users`: `any`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizationsConnection`: `any`[]; `users`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Users/UsersMocks.mocks.ts:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/UsersMocks.mocks.ts#L8) diff --git a/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW.md b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW.md new file mode 100644 index 0000000000..696ede1999 --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_NEW + +> `const` **MOCKS\_NEW**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `lastName_contains`: `string`; `order`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `users`: (\{ `appUserProfile`: \{ `_id`: `string`; `adminFor`: `object`[]; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; \}; `user`: \{ `_id`: `string`; `createdAt`: `string`; `email`: `string`; `firstName`: `string`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `membershipRequests`: `any`[]; `organizationsBlockedBy`: `object`[]; `registeredEvents`: `any`[]; \}; \} \| \{ `appUserProfile`: \{ `_id`: `string`; `adminFor`: `any`[]; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; \}; `user`: \{ `_id`: `string`; `createdAt`: `string`; `email`: `string`; `firstName`: `string`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `membershipRequests`: `any`[]; `organizationsBlockedBy`: `object`[]; `registeredEvents`: `any`[]; \}; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizationsConnection`: `any`[]; `users`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Users/UsersMocks.mocks.ts:84](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/UsersMocks.mocks.ts#L84) diff --git a/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW2.md b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW2.md new file mode 100644 index 0000000000..0804984885 --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW2.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_NEW2 + +> `const` **MOCKS\_NEW2**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `first`: `number`; `firstName_contains`: `string`; `lastName_contains`: `string`; `order`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `users`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizationsConnection`: `any`[]; `users`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `string`; `first`: `number`; `firstName_contains`: `string`; `lastName_contains`: `string`; `order`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `users`: `object`[]; \}; \}; \})[] + +Defined in: [src/screens/Users/UsersMocks.mocks.ts:114](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/UsersMocks.mocks.ts#L114) diff --git a/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW3.md b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW3.md new file mode 100644 index 0000000000..f473f35c85 --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW3.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_NEW3 + +> `const` **MOCKS\_NEW3**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `undefined`; `first`: `number`; `firstName_contains`: `string`; `lastName_contains`: `string`; `order`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `users`: `object`[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizationsConnection`: `any`[]; `users`: `undefined`; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `filter`: `string`; `first`: `number`; `firstName_contains`: `string`; `lastName_contains`: `string`; `order`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `users`: `object`[]; \}; \}; \})[] + +Defined in: [src/screens/Users/UsersMocks.mocks.ts:162](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/UsersMocks.mocks.ts#L162) diff --git a/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW_2.md b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW_2.md new file mode 100644 index 0000000000..9bcd6697c2 --- /dev/null +++ b/docs/docs/auto-docs/screens/Users/UsersMocks.mocks/variables/MOCKS_NEW_2.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: MOCKS\_NEW\_2 + +> `const` **MOCKS\_NEW\_2**: (\{ `request`: \{ `query`: `DocumentNode`; `variables`: \{ `first`: `number`; `firstName_contains`: `string`; `lastName_contains`: `string`; `order`: `string`; `skip`: `number`; \}; \}; `result`: \{ `data`: \{ `organizationsConnection`: `undefined`; `users`: (\{ `appUserProfile`: \{ `_id`: `string`; `adminFor`: `object`[]; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; \}; `user`: \{ `_id`: `string`; `createdAt`: `string`; `email`: `string`; `firstName`: `string`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `membershipRequests`: `any`[]; `organizationsBlockedBy`: `object`[]; `registeredEvents`: `any`[]; \}; \} \| \{ `appUserProfile`: \{ `_id`: `string`; `adminFor`: `any`[]; `createdEvents`: `any`[]; `createdOrganizations`: `any`[]; `eventAdmin`: `any`[]; `isSuperAdmin`: `boolean`; \}; `user`: \{ `_id`: `string`; `createdAt`: `string`; `email`: `string`; `firstName`: `string`; `image`: `any`; `joinedOrganizations`: `object`[]; `lastName`: `string`; `membershipRequests`: `any`[]; `organizationsBlockedBy`: `object`[]; `registeredEvents`: `any`[]; \}; \})[]; \}; \}; \} \| \{ `request`: \{ `query`: `DocumentNode`; `variables`: `undefined`; \}; `result`: \{ `data`: \{ `organizationsConnection`: `any`[]; `users`: `undefined`; \}; \}; \})[] + +Defined in: [src/screens/Users/UsersMocks.mocks.ts:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/Users/UsersMocks.mocks.ts#L37) diff --git a/docs/docs/auto-docs/setup/askAndSetDockerOption/askAndSetDockerOption/functions/default.md b/docs/docs/auto-docs/setup/askAndSetDockerOption/askAndSetDockerOption/functions/default.md new file mode 100644 index 0000000000..3895b6add9 --- /dev/null +++ b/docs/docs/auto-docs/setup/askAndSetDockerOption/askAndSetDockerOption/functions/default.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Promise`\<`void`\> + +Defined in: [src/setup/askAndSetDockerOption/askAndSetDockerOption.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/askAndSetDockerOption/askAndSetDockerOption.ts#L6) + +## Returns + +`Promise`\<`void`\> diff --git a/docs/docs/auto-docs/setup/askAndUpdatePort/askAndUpdatePort/functions/default.md b/docs/docs/auto-docs/setup/askAndUpdatePort/askAndUpdatePort/functions/default.md new file mode 100644 index 0000000000..1258b370a4 --- /dev/null +++ b/docs/docs/auto-docs/setup/askAndUpdatePort/askAndUpdatePort/functions/default.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `Promise`\<`void`\> + +Defined in: [src/setup/askAndUpdatePort/askAndUpdatePort.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/askAndUpdatePort/askAndUpdatePort.ts#L6) + +## Returns + +`Promise`\<`void`\> diff --git a/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/askForCustomPort.md b/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/askForCustomPort.md new file mode 100644 index 0000000000..bb9af74a71 --- /dev/null +++ b/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/askForCustomPort.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: askForCustomPort() + +> **askForCustomPort**(): `Promise`\<`number`\> + +Defined in: [src/setup/askForCustomPort/askForCustomPort.ts:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/askForCustomPort/askForCustomPort.ts#L32) + +## Returns + +`Promise`\<`number`\> diff --git a/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/reservedPortWarning.md b/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/reservedPortWarning.md new file mode 100644 index 0000000000..346a3111b7 --- /dev/null +++ b/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/reservedPortWarning.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: reservedPortWarning() + +> **reservedPortWarning**(`port`): `Promise`\<`boolean`\> + +Defined in: [src/setup/askForCustomPort/askForCustomPort.ts:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/askForCustomPort/askForCustomPort.ts#L19) + +## Parameters + +### port + +`number` + +## Returns + +`Promise`\<`boolean`\> diff --git a/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/validatePort.md b/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/validatePort.md new file mode 100644 index 0000000000..58c02d886b --- /dev/null +++ b/docs/docs/auto-docs/setup/askForCustomPort/askForCustomPort/functions/validatePort.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: validatePort() + +> **validatePort**(`input`): `string` \| `boolean` + +Defined in: [src/setup/askForCustomPort/askForCustomPort.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/askForCustomPort/askForCustomPort.ts#L6) + +## Parameters + +### input + +`string` + +## Returns + +`string` \| `boolean` diff --git a/docs/docs/auto-docs/setup/askForDocker/askForDocker/functions/askAndUpdateTalawaApiUrl.md b/docs/docs/auto-docs/setup/askForDocker/askForDocker/functions/askAndUpdateTalawaApiUrl.md new file mode 100644 index 0000000000..7ebbb9bcd7 --- /dev/null +++ b/docs/docs/auto-docs/setup/askForDocker/askForDocker/functions/askAndUpdateTalawaApiUrl.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: askAndUpdateTalawaApiUrl() + +> **askAndUpdateTalawaApiUrl**(): `Promise`\<`void`\> + +Defined in: [src/setup/askForDocker/askForDocker.ts:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/askForDocker/askForDocker.ts#L33) + +## Returns + +`Promise`\<`void`\> diff --git a/docs/docs/auto-docs/setup/askForDocker/askForDocker/functions/askForDocker.md b/docs/docs/auto-docs/setup/askForDocker/askForDocker/functions/askForDocker.md new file mode 100644 index 0000000000..d8e1ef37ab --- /dev/null +++ b/docs/docs/auto-docs/setup/askForDocker/askForDocker/functions/askForDocker.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: askForDocker() + +> **askForDocker**(): `Promise`\<`string`\> + +Defined in: [src/setup/askForDocker/askForDocker.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/askForDocker/askForDocker.ts#L12) + +## Returns + +`Promise`\<`string`\> diff --git a/docs/docs/auto-docs/setup/askForTalawaApiUrl/askForTalawaApiUrl/functions/askForTalawaApiUrl.md b/docs/docs/auto-docs/setup/askForTalawaApiUrl/askForTalawaApiUrl/functions/askForTalawaApiUrl.md new file mode 100644 index 0000000000..bd168605c3 --- /dev/null +++ b/docs/docs/auto-docs/setup/askForTalawaApiUrl/askForTalawaApiUrl/functions/askForTalawaApiUrl.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: askForTalawaApiUrl() + +> **askForTalawaApiUrl**(): `Promise`\<`string`\> + +Defined in: [src/setup/askForTalawaApiUrl/askForTalawaApiUrl.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/askForTalawaApiUrl/askForTalawaApiUrl.ts#L3) + +## Returns + +`Promise`\<`string`\> diff --git a/docs/docs/auto-docs/setup/checkConnection/checkConnection/functions/checkConnection.md b/docs/docs/auto-docs/setup/checkConnection/checkConnection/functions/checkConnection.md new file mode 100644 index 0000000000..28fcd065ef --- /dev/null +++ b/docs/docs/auto-docs/setup/checkConnection/checkConnection/functions/checkConnection.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: checkConnection() + +> **checkConnection**(`url`): `Promise`\<`any`\> + +Defined in: [src/setup/checkConnection/checkConnection.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/checkConnection/checkConnection.ts#L1) + +## Parameters + +### url + +`string` + +## Returns + +`Promise`\<`any`\> diff --git a/docs/docs/auto-docs/setup/checkEnvFile/checkEnvFile/functions/checkEnvFile.md b/docs/docs/auto-docs/setup/checkEnvFile/checkEnvFile/functions/checkEnvFile.md new file mode 100644 index 0000000000..650a7f1104 --- /dev/null +++ b/docs/docs/auto-docs/setup/checkEnvFile/checkEnvFile/functions/checkEnvFile.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: checkEnvFile() + +> **checkEnvFile**(): `void` + +Defined in: [src/setup/checkEnvFile/checkEnvFile.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/checkEnvFile/checkEnvFile.ts#L6) + +## Returns + +`void` diff --git a/docs/docs/auto-docs/setup/updateEnvFile/updateEnvFile/functions/default.md b/docs/docs/auto-docs/setup/updateEnvFile/updateEnvFile/functions/default.md new file mode 100644 index 0000000000..1e9f112240 --- /dev/null +++ b/docs/docs/auto-docs/setup/updateEnvFile/updateEnvFile/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`key`, `value`): `void` + +Defined in: [src/setup/updateEnvFile/updateEnvFile.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/updateEnvFile/updateEnvFile.ts#L3) + +## Parameters + +### key + +`string` + +### value + +`string` + +## Returns + +`void` diff --git a/docs/docs/auto-docs/setup/validateRecaptcha/validateRecaptcha/functions/validateRecaptcha.md b/docs/docs/auto-docs/setup/validateRecaptcha/validateRecaptcha/functions/validateRecaptcha.md new file mode 100644 index 0000000000..d947fee7df --- /dev/null +++ b/docs/docs/auto-docs/setup/validateRecaptcha/validateRecaptcha/functions/validateRecaptcha.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: validateRecaptcha() + +> **validateRecaptcha**(`string`): `boolean` + +Defined in: [src/setup/validateRecaptcha/validateRecaptcha.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/setup/validateRecaptcha/validateRecaptcha.ts#L1) + +## Parameters + +### string + +`string` + +## Returns + +`boolean` diff --git a/docs/docs/auto-docs/state/action-creators/functions/installPlugin.md b/docs/docs/auto-docs/state/action-creators/functions/installPlugin.md new file mode 100644 index 0000000000..eaf9221b02 --- /dev/null +++ b/docs/docs/auto-docs/state/action-creators/functions/installPlugin.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: installPlugin() + +> **installPlugin**(`plugin`): (`dispatch`) => `void` + +Defined in: [src/state/action-creators/index.ts:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/action-creators/index.ts#L10) + +## Parameters + +### plugin + +`any` + +## Returns + +`Function` + +### Parameters + +#### dispatch + +`any` + +### Returns + +`void` diff --git a/docs/docs/auto-docs/state/action-creators/functions/removePlugin.md b/docs/docs/auto-docs/state/action-creators/functions/removePlugin.md new file mode 100644 index 0000000000..5463540b88 --- /dev/null +++ b/docs/docs/auto-docs/state/action-creators/functions/removePlugin.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: removePlugin() + +> **removePlugin**(`plugin`): (`dispatch`) => `void` + +Defined in: [src/state/action-creators/index.ts:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/action-creators/index.ts#L19) + +## Parameters + +### plugin + +`any` + +## Returns + +`Function` + +### Parameters + +#### dispatch + +`any` + +### Returns + +`void` diff --git a/docs/docs/auto-docs/state/action-creators/functions/updateInstalled.md b/docs/docs/auto-docs/state/action-creators/functions/updateInstalled.md new file mode 100644 index 0000000000..f40d99e564 --- /dev/null +++ b/docs/docs/auto-docs/state/action-creators/functions/updateInstalled.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: updateInstalled() + +> **updateInstalled**(`plugin`): (`dispatch`) => `void` + +Defined in: [src/state/action-creators/index.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/action-creators/index.ts#L1) + +## Parameters + +### plugin + +`any` + +## Returns + +`Function` + +### Parameters + +#### dispatch + +`any` + +### Returns + +`void` diff --git a/docs/docs/auto-docs/state/action-creators/functions/updatePluginLinks.md b/docs/docs/auto-docs/state/action-creators/functions/updatePluginLinks.md new file mode 100644 index 0000000000..1f31a50065 --- /dev/null +++ b/docs/docs/auto-docs/state/action-creators/functions/updatePluginLinks.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: updatePluginLinks() + +> **updatePluginLinks**(`plugins`): (`dispatch`) => `void` + +Defined in: [src/state/action-creators/index.ts:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/action-creators/index.ts#L28) + +## Parameters + +### plugins + +`any` + +## Returns + +`Function` + +### Parameters + +#### dispatch + +`any` + +### Returns + +`void` diff --git a/docs/docs/auto-docs/state/action-creators/functions/updateTargets.md b/docs/docs/auto-docs/state/action-creators/functions/updateTargets.md new file mode 100644 index 0000000000..b60d786e01 --- /dev/null +++ b/docs/docs/auto-docs/state/action-creators/functions/updateTargets.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: updateTargets() + +> **updateTargets**(`orgId`): (`dispatch`) => `void` + +Defined in: [src/state/action-creators/index.ts:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/action-creators/index.ts#L37) + +## Parameters + +### orgId + +`string` + +## Returns + +`Function` + +### Parameters + +#### dispatch + +`any` + +### Returns + +`void` diff --git a/docs/docs/auto-docs/state/helpers/Action/interfaces/InterfaceAction.md b/docs/docs/auto-docs/state/helpers/Action/interfaces/InterfaceAction.md new file mode 100644 index 0000000000..4b8ca2216e --- /dev/null +++ b/docs/docs/auto-docs/state/helpers/Action/interfaces/InterfaceAction.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAction + +Defined in: [src/state/helpers/Action.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/helpers/Action.ts#L1) + +## Properties + +### payload + +> **payload**: `any` + +Defined in: [src/state/helpers/Action.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/helpers/Action.ts#L3) + +*** + +### type + +> **type**: `string` + +Defined in: [src/state/helpers/Action.ts:2](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/helpers/Action.ts#L2) diff --git a/docs/docs/auto-docs/state/hooks/functions/useAppDispatch.md b/docs/docs/auto-docs/state/hooks/functions/useAppDispatch.md new file mode 100644 index 0000000000..a739adb928 --- /dev/null +++ b/docs/docs/auto-docs/state/hooks/functions/useAppDispatch.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: useAppDispatch() + +> **useAppDispatch**\<`AppDispatch`\>(): `AppDispatch` + +Defined in: [src/state/hooks.ts:5](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/hooks.ts#L5) + +Returns the dispatch function from the Redux store. + +## Type Parameters + +• **AppDispatch** *extends* `ThunkDispatch`\<\{ `appRoutes`: \{ `components`: [`ComponentType`](../../reducers/routesReducer/type-aliases/ComponentType.md)[]; `targets`: [`TargetsType`](../../reducers/routesReducer/type-aliases/TargetsType.md)[]; \}; `plugins`: `any`; `userRoutes`: \{ `components`: [`ComponentType`](../../reducers/userRoutesReducer/type-aliases/ComponentType.md)[]; `targets`: [`TargetsType`](../../reducers/userRoutesReducer/type-aliases/TargetsType.md)[]; \}; \}, `undefined`, `UnknownAction`\> & `Dispatch`\<[`InterfaceAction`](../../helpers/Action/interfaces/InterfaceAction.md)\> = `ThunkDispatch`\<\{ `appRoutes`: \{ `components`: [`ComponentType`](../../reducers/routesReducer/type-aliases/ComponentType.md)[]; `targets`: [`TargetsType`](../../reducers/routesReducer/type-aliases/TargetsType.md)[]; \}; `plugins`: `any`; `userRoutes`: \{ `components`: [`ComponentType`](../../reducers/userRoutesReducer/type-aliases/ComponentType.md)[]; `targets`: [`TargetsType`](../../reducers/userRoutesReducer/type-aliases/TargetsType.md)[]; \}; \}, `undefined`, `UnknownAction`\> & `Dispatch`\<[`InterfaceAction`](../../helpers/Action/interfaces/InterfaceAction.md)\> + +The specific type of the dispatch function. + +## Returns + +`AppDispatch` + +The dispatch function from the Redux store. diff --git a/docs/docs/auto-docs/state/reducers/functions/reducers.md b/docs/docs/auto-docs/state/reducers/functions/reducers.md new file mode 100644 index 0000000000..e0cea91540 --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/functions/reducers.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Function: reducers() + +> **reducers**(`state`, `action`): `object` + +Defined in: [src/state/reducers/index.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/index.ts#L6) + +## Parameters + +### state + +\{ `appRoutes`: \{ `components`: [`ComponentType`](../routesReducer/type-aliases/ComponentType.md)[]; `targets`: [`TargetsType`](../routesReducer/type-aliases/TargetsType.md)[]; \}; `plugins`: `any`; `userRoutes`: \{ `components`: [`ComponentType`](../userRoutesReducer/type-aliases/ComponentType.md)[]; `targets`: [`TargetsType`](../userRoutesReducer/type-aliases/TargetsType.md)[]; \}; \} | `Partial`\<\{ `appRoutes`: `never`; `plugins`: `never`; `userRoutes`: `never`; \}\> + +### action + +[`InterfaceAction`](../../helpers/Action/interfaces/InterfaceAction.md) + +## Returns + +`object` + +### appRoutes + +> **appRoutes**: `object` = `routesReducer` + +#### appRoutes.components + +> **components**: [`ComponentType`](../routesReducer/type-aliases/ComponentType.md)[] + +#### appRoutes.targets + +> **targets**: [`TargetsType`](../routesReducer/type-aliases/TargetsType.md)[] + +### plugins + +> **plugins**: `any` = `pluginReducer` + +### userRoutes + +> **userRoutes**: `object` = `userRoutesReducer` + +#### userRoutes.components + +> **components**: [`ComponentType`](../userRoutesReducer/type-aliases/ComponentType.md)[] + +#### userRoutes.targets + +> **targets**: [`TargetsType`](../userRoutesReducer/type-aliases/TargetsType.md)[] diff --git a/docs/docs/auto-docs/state/reducers/pluginReducer/functions/default.md b/docs/docs/auto-docs/state/reducers/pluginReducer/functions/default.md new file mode 100644 index 0000000000..62b3e92f49 --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/pluginReducer/functions/default.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`state`, `action`): `any` + +Defined in: [src/state/reducers/pluginReducer.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/pluginReducer.ts#L3) + +## Parameters + +### state + +`any` = `INITIAL_STATE` + +### action + +[`InterfaceAction`](../../../helpers/Action/interfaces/InterfaceAction.md) + +## Returns + +`any` diff --git a/docs/docs/auto-docs/state/reducers/routesReducer/functions/default.md b/docs/docs/auto-docs/state/reducers/routesReducer/functions/default.md new file mode 100644 index 0000000000..07ca655e0c --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/routesReducer/functions/default.md @@ -0,0 +1,37 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`state`, `action`): `object` + +Defined in: [src/state/reducers/routesReducer.ts:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/routesReducer.ts#L16) + +## Parameters + +### state + +#### components + +[`ComponentType`](../type-aliases/ComponentType.md)[] + +#### targets + +[`TargetsType`](../type-aliases/TargetsType.md)[] = `...` + +### action + +[`InterfaceAction`](../../../helpers/Action/interfaces/InterfaceAction.md) + +## Returns + +`object` + +### components + +> **components**: [`ComponentType`](../type-aliases/ComponentType.md)[] + +### targets + +> **targets**: [`TargetsType`](../type-aliases/TargetsType.md)[] diff --git a/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/ComponentType.md b/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/ComponentType.md new file mode 100644 index 0000000000..490a97dbce --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/ComponentType.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Type Alias: ComponentType + +> **ComponentType**: `object` + +Defined in: [src/state/reducers/routesReducer.ts:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/routesReducer.ts#L55) + +## Type declaration + +### comp\_id + +> **comp\_id**: `string` \| `null` + +### component + +> **component**: `string` \| `null` + +### name + +> **name**: `string` + +### subTargets? + +> `optional` **subTargets**: `object`[] diff --git a/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/SubTargetType.md b/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/SubTargetType.md new file mode 100644 index 0000000000..b7796205d6 --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/SubTargetType.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Type Alias: SubTargetType + +> **SubTargetType**: `object` + +Defined in: [src/state/reducers/routesReducer.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/routesReducer.ts#L9) + +## Type declaration + +### comp\_id? + +> `optional` **comp\_id**: `string` + +### icon? + +> `optional` **icon**: `string` + +### name? + +> `optional` **name**: `string` + +### url + +> **url**: `string` diff --git a/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/TargetsType.md b/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/TargetsType.md new file mode 100644 index 0000000000..3fad672eed --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/routesReducer/type-aliases/TargetsType.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Type Alias: TargetsType + +> **TargetsType**: `object` + +Defined in: [src/state/reducers/routesReducer.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/routesReducer.ts#L3) + +## Type declaration + +### name + +> **name**: `string` + +### subTargets? + +> `optional` **subTargets**: [`SubTargetType`](SubTargetType.md)[] + +### url? + +> `optional` **url**: `string` diff --git a/docs/docs/auto-docs/state/reducers/type-aliases/RootState.md b/docs/docs/auto-docs/state/reducers/type-aliases/RootState.md new file mode 100644 index 0000000000..b88b4918f7 --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/type-aliases/RootState.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Type Alias: RootState + +> **RootState**: `ReturnType`\<*typeof* [`reducers`](../functions/reducers.md)\> + +Defined in: [src/state/reducers/index.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/index.ts#L12) diff --git a/docs/docs/auto-docs/state/reducers/userRoutesReducer/functions/default.md b/docs/docs/auto-docs/state/reducers/userRoutesReducer/functions/default.md new file mode 100644 index 0000000000..ba721789a8 --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/userRoutesReducer/functions/default.md @@ -0,0 +1,37 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`state`, `action`): `object` + +Defined in: [src/state/reducers/userRoutesReducer.ts:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/userRoutesReducer.ts#L16) + +## Parameters + +### state + +#### components + +[`ComponentType`](../type-aliases/ComponentType.md)[] + +#### targets + +[`TargetsType`](../type-aliases/TargetsType.md)[] = `...` + +### action + +[`InterfaceAction`](../../../helpers/Action/interfaces/InterfaceAction.md) + +## Returns + +`object` + +### components + +> **components**: [`ComponentType`](../type-aliases/ComponentType.md)[] + +### targets + +> **targets**: [`TargetsType`](../type-aliases/TargetsType.md)[] diff --git a/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/ComponentType.md b/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/ComponentType.md new file mode 100644 index 0000000000..e53b35d88e --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/ComponentType.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Type Alias: ComponentType + +> **ComponentType**: `object` + +Defined in: [src/state/reducers/userRoutesReducer.ts:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/userRoutesReducer.ts#L32) + +## Type declaration + +### comp\_id + +> **comp\_id**: `string` \| `null` + +### component + +> **component**: `string` \| `null` + +### name + +> **name**: `string` + +### subTargets? + +> `optional` **subTargets**: `object`[] diff --git a/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/SubTargetType.md b/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/SubTargetType.md new file mode 100644 index 0000000000..646e962c99 --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/SubTargetType.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Type Alias: SubTargetType + +> **SubTargetType**: `object` + +Defined in: [src/state/reducers/userRoutesReducer.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/userRoutesReducer.ts#L9) + +## Type declaration + +### comp\_id? + +> `optional` **comp\_id**: `string` + +### icon? + +> `optional` **icon**: `string` + +### name? + +> `optional` **name**: `string` + +### url + +> **url**: `string` diff --git a/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/TargetsType.md b/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/TargetsType.md new file mode 100644 index 0000000000..28639ed131 --- /dev/null +++ b/docs/docs/auto-docs/state/reducers/userRoutesReducer/type-aliases/TargetsType.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Type Alias: TargetsType + +> **TargetsType**: `object` + +Defined in: [src/state/reducers/userRoutesReducer.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/reducers/userRoutesReducer.ts#L3) + +## Type declaration + +### name + +> **name**: `string` + +### subTargets? + +> `optional` **subTargets**: [`SubTargetType`](SubTargetType.md)[] + +### url? + +> `optional` **url**: `string` diff --git a/docs/docs/auto-docs/state/store/type-aliases/AppDispatch.md b/docs/docs/auto-docs/state/store/type-aliases/AppDispatch.md new file mode 100644 index 0000000000..17c0ccbac8 --- /dev/null +++ b/docs/docs/auto-docs/state/store/type-aliases/AppDispatch.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Type Alias: AppDispatch + +> **AppDispatch**: *typeof* `store.dispatch` + +Defined in: [src/state/store.ts:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/store.ts#L8) diff --git a/docs/docs/auto-docs/state/store/variables/store.md b/docs/docs/auto-docs/state/store/variables/store.md new file mode 100644 index 0000000000..fb75986345 --- /dev/null +++ b/docs/docs/auto-docs/state/store/variables/store.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: store + +> `const` **store**: `EnhancedStore`\<\{ `appRoutes`: \{ `components`: [`ComponentType`](../../reducers/routesReducer/type-aliases/ComponentType.md)[]; `targets`: [`TargetsType`](../../reducers/routesReducer/type-aliases/TargetsType.md)[]; \}; `plugins`: `any`; `userRoutes`: \{ `components`: [`ComponentType`](../../reducers/userRoutesReducer/type-aliases/ComponentType.md)[]; `targets`: [`TargetsType`](../../reducers/userRoutesReducer/type-aliases/TargetsType.md)[]; \}; \}, [`InterfaceAction`](../../helpers/Action/interfaces/InterfaceAction.md), `Tuple`\<\[`StoreEnhancer`\<\{\}\>, `StoreEnhancer`\]\>\> + +Defined in: [src/state/store.ts:4](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/state/store.ts#L4) diff --git a/docs/docs/auto-docs/subComponents/SortingButton/functions/default.md b/docs/docs/auto-docs/subComponents/SortingButton/functions/default.md new file mode 100644 index 0000000000..518bb50e09 --- /dev/null +++ b/docs/docs/auto-docs/subComponents/SortingButton/functions/default.md @@ -0,0 +1,36 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`props`, `deprecatedLegacyContext`?): `ReactNode` + +Defined in: [src/subComponents/SortingButton.tsx:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/subComponents/SortingButton.tsx#L43) + +SortingButton component renders a Dropdown with sorting options. +It allows users to select a sorting option and triggers a callback on selection. + +## Parameters + +### props + +`InterfaceSortingButtonProps` + +The properties for the SortingButton component. + +### deprecatedLegacyContext? + +`any` + +**Deprecated** + +**See** + +[React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) + +## Returns + +`ReactNode` + +The rendered SortingButton component. diff --git a/docs/docs/auto-docs/utils/StaticMockLink/classes/StaticMockLink.md b/docs/docs/auto-docs/utils/StaticMockLink/classes/StaticMockLink.md new file mode 100644 index 0000000000..67cc112757 --- /dev/null +++ b/docs/docs/auto-docs/utils/StaticMockLink/classes/StaticMockLink.md @@ -0,0 +1,92 @@ +[Admin Docs](/) + +*** + +# Class: StaticMockLink + +Defined in: [src/utils/StaticMockLink.ts:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L30) + +Similar to the standard Apollo MockLink, but doesn't consume a mock +when it is used allowing it to be used in places like Storybook. + +## Extends + +- `unknown` + +## Constructors + +### new StaticMockLink() + +> **new StaticMockLink**(`mockedResponses`, `addTypename`): [`StaticMockLink`](StaticMockLink.md) + +Defined in: [src/utils/StaticMockLink.ts:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L35) + +#### Parameters + +##### mockedResponses + +readonly `MockedResponse`[] + +##### addTypename + +`boolean` = `true` + +#### Returns + +[`StaticMockLink`](StaticMockLink.md) + +#### Overrides + +`ApolloLink.constructor` + +## Properties + +### addTypename + +> **addTypename**: `boolean` = `true` + +Defined in: [src/utils/StaticMockLink.ts:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L32) + +*** + +### operation? + +> `optional` **operation**: `Operation` + +Defined in: [src/utils/StaticMockLink.ts:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L31) + +## Methods + +### addMockedResponse() + +> **addMockedResponse**(`mockedResponse`): `void` + +Defined in: [src/utils/StaticMockLink.ts:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L45) + +#### Parameters + +##### mockedResponse + +`MockedResponse` + +#### Returns + +`void` + +*** + +### request() + +> **request**(`operation`): `any` + +Defined in: [src/utils/StaticMockLink.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L60) + +#### Parameters + +##### operation + +`any` + +#### Returns + +`any` diff --git a/docs/docs/auto-docs/utils/StaticMockLink/functions/mockSingleLink.md b/docs/docs/auto-docs/utils/StaticMockLink/functions/mockSingleLink.md new file mode 100644 index 0000000000..47e5fa4ce2 --- /dev/null +++ b/docs/docs/auto-docs/utils/StaticMockLink/functions/mockSingleLink.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: mockSingleLink() + +> **mockSingleLink**(...`mockedResponses`): [`InterfaceMockApolloLink`](../interfaces/InterfaceMockApolloLink.md) + +Defined in: [src/utils/StaticMockLink.ts:164](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L164) + +## Parameters + +### mockedResponses + +...`any`[] + +## Returns + +[`InterfaceMockApolloLink`](../interfaces/InterfaceMockApolloLink.md) diff --git a/docs/docs/auto-docs/utils/StaticMockLink/interfaces/InterfaceMockApolloLink.md b/docs/docs/auto-docs/utils/StaticMockLink/interfaces/InterfaceMockApolloLink.md new file mode 100644 index 0000000000..212d21bcf1 --- /dev/null +++ b/docs/docs/auto-docs/utils/StaticMockLink/interfaces/InterfaceMockApolloLink.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceMockApolloLink + +Defined in: [src/utils/StaticMockLink.ts:157](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L157) + +## Extends + +- `unknown` + +## Properties + +### operation? + +> `optional` **operation**: `Operation` + +Defined in: [src/utils/StaticMockLink.ts:158](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/StaticMockLink.ts#L158) diff --git a/docs/docs/auto-docs/utils/chartToPdf/functions/exportDemographicsToCSV.md b/docs/docs/auto-docs/utils/chartToPdf/functions/exportDemographicsToCSV.md new file mode 100644 index 0000000000..9ad736c106 --- /dev/null +++ b/docs/docs/auto-docs/utils/chartToPdf/functions/exportDemographicsToCSV.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Function: exportDemographicsToCSV() + +> **exportDemographicsToCSV**(`selectedCategory`, `categoryLabels`, `categoryData`): `void` + +Defined in: [src/utils/chartToPdf.ts:80](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/chartToPdf.ts#L80) + +## Parameters + +### selectedCategory + +`string` + +### categoryLabels + +`string`[] + +### categoryData + +`number`[] + +## Returns + +`void` diff --git a/docs/docs/auto-docs/utils/chartToPdf/functions/exportToCSV.md b/docs/docs/auto-docs/utils/chartToPdf/functions/exportToCSV.md new file mode 100644 index 0000000000..2de3498d29 --- /dev/null +++ b/docs/docs/auto-docs/utils/chartToPdf/functions/exportToCSV.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: exportToCSV() + +> **exportToCSV**(`data`, `filename`): `void` + +Defined in: [src/utils/chartToPdf.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/chartToPdf.ts#L3) + +## Parameters + +### data + +`CSVData` + +### filename + +`string` + +## Returns + +`void` diff --git a/docs/docs/auto-docs/utils/chartToPdf/functions/exportTrendsToCSV.md b/docs/docs/auto-docs/utils/chartToPdf/functions/exportTrendsToCSV.md new file mode 100644 index 0000000000..3a7f16507a --- /dev/null +++ b/docs/docs/auto-docs/utils/chartToPdf/functions/exportTrendsToCSV.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: exportTrendsToCSV() + +> **exportTrendsToCSV**(`eventLabels`, `attendeeCounts`, `maleCounts`, `femaleCounts`, `otherCounts`): `void` + +Defined in: [src/utils/chartToPdf.ts:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/chartToPdf.ts#L50) + +## Parameters + +### eventLabels + +`string`[] + +### attendeeCounts + +`number`[] + +### maleCounts + +`number`[] + +### femaleCounts + +`number`[] + +### otherCounts + +`number`[] + +## Returns + +`void` diff --git a/docs/docs/auto-docs/utils/convertToBase64/functions/default.md b/docs/docs/auto-docs/utils/convertToBase64/functions/default.md new file mode 100644 index 0000000000..22e35e7812 --- /dev/null +++ b/docs/docs/auto-docs/utils/convertToBase64/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`file`): `Promise`\<`string`\> + +Defined in: [src/utils/convertToBase64.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/convertToBase64.ts#L1) + +## Parameters + +### file + +`File` + +## Returns + +`Promise`\<`string`\> diff --git a/docs/docs/auto-docs/utils/currency/variables/currencyOptions.md b/docs/docs/auto-docs/utils/currency/variables/currencyOptions.md new file mode 100644 index 0000000000..40af8f0719 --- /dev/null +++ b/docs/docs/auto-docs/utils/currency/variables/currencyOptions.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: currencyOptions + +> `const` **currencyOptions**: `object`[] + +Defined in: [src/utils/currency.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/currency.ts#L1) + +## Type declaration + +### label + +> **label**: `string` = `'AED'` + +### value + +> **value**: `string` = `'AED'` diff --git a/docs/docs/auto-docs/utils/currency/variables/currencySymbols.md b/docs/docs/auto-docs/utils/currency/variables/currencySymbols.md new file mode 100644 index 0000000000..c5289aa515 --- /dev/null +++ b/docs/docs/auto-docs/utils/currency/variables/currencySymbols.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Variable: currencySymbols + +> `const` **currencySymbols**: `object` + +Defined in: [src/utils/currency.ts:166](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/currency.ts#L166) + +## Index Signature + +\[`key`: `string`\]: `string` diff --git a/docs/docs/auto-docs/utils/dateFormatter/functions/formatDate.md b/docs/docs/auto-docs/utils/dateFormatter/functions/formatDate.md new file mode 100644 index 0000000000..4117f3f47e --- /dev/null +++ b/docs/docs/auto-docs/utils/dateFormatter/functions/formatDate.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: formatDate() + +> **formatDate**(`dateString`): `string` + +Defined in: [src/utils/dateFormatter.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/dateFormatter.ts#L1) + +## Parameters + +### dateString + +`string` + +## Returns + +`string` diff --git a/docs/docs/auto-docs/utils/errorHandler/functions/errorHandler.md b/docs/docs/auto-docs/utils/errorHandler/functions/errorHandler.md new file mode 100644 index 0000000000..0823748c6c --- /dev/null +++ b/docs/docs/auto-docs/utils/errorHandler/functions/errorHandler.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Function: errorHandler() + +> **errorHandler**(`a`, `error`): `void` + +Defined in: [src/utils/errorHandler.tsx:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/errorHandler.tsx#L10) + +This function is used to handle api errors in the application. +It takes in the error object and displays the error message to the user. +If the error is due to the Talawa API being unavailable, it displays a custom message. And for other error cases, it is using regular expression (case-insensitive) to match and show valid messages + +## Parameters + +### a + +`unknown` + +### error + +`unknown` + +## Returns + +`void` diff --git a/docs/docs/auto-docs/utils/fieldTypes/variables/default.md b/docs/docs/auto-docs/utils/fieldTypes/variables/default.md new file mode 100644 index 0000000000..b4b9778260 --- /dev/null +++ b/docs/docs/auto-docs/utils/fieldTypes/variables/default.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: default + +> `const` **default**: `string`[] + +Defined in: [src/utils/fieldTypes.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/fieldTypes.ts#L1) diff --git a/docs/docs/auto-docs/utils/formEnumFields/variables/countryOptions.md b/docs/docs/auto-docs/utils/formEnumFields/variables/countryOptions.md new file mode 100644 index 0000000000..9e917d1a18 --- /dev/null +++ b/docs/docs/auto-docs/utils/formEnumFields/variables/countryOptions.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: countryOptions + +> `const` **countryOptions**: `object`[] + +Defined in: [src/utils/formEnumFields.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/formEnumFields.ts#L1) + +## Type declaration + +### label + +> **label**: `string` = `'Afghanistan'` + +### value + +> **value**: `string` = `'af'` diff --git a/docs/docs/auto-docs/utils/formEnumFields/variables/educationGradeEnum.md b/docs/docs/auto-docs/utils/formEnumFields/variables/educationGradeEnum.md new file mode 100644 index 0000000000..1bcc0d19a5 --- /dev/null +++ b/docs/docs/auto-docs/utils/formEnumFields/variables/educationGradeEnum.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: educationGradeEnum + +> `const` **educationGradeEnum**: `object`[] + +Defined in: [src/utils/formEnumFields.ts:202](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/formEnumFields.ts#L202) + +## Type declaration + +### label + +> **label**: `string` = `'No-Grade'` + +### value + +> **value**: `string` = `'NO_GRADE'` diff --git a/docs/docs/auto-docs/utils/formEnumFields/variables/employmentStatusEnum.md b/docs/docs/auto-docs/utils/formEnumFields/variables/employmentStatusEnum.md new file mode 100644 index 0000000000..e5d8564b45 --- /dev/null +++ b/docs/docs/auto-docs/utils/formEnumFields/variables/employmentStatusEnum.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: employmentStatusEnum + +> `const` **employmentStatusEnum**: `object`[] + +Defined in: [src/utils/formEnumFields.ts:311](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/formEnumFields.ts#L311) + +## Type declaration + +### label + +> **label**: `string` = `'Full-Time'` + +### value + +> **value**: `string` = `'FULL_TIME'` diff --git a/docs/docs/auto-docs/utils/formEnumFields/variables/genderEnum.md b/docs/docs/auto-docs/utils/formEnumFields/variables/genderEnum.md new file mode 100644 index 0000000000..deca59d97d --- /dev/null +++ b/docs/docs/auto-docs/utils/formEnumFields/variables/genderEnum.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: genderEnum + +> `const` **genderEnum**: `object`[] + +Defined in: [src/utils/formEnumFields.ts:296](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/formEnumFields.ts#L296) + +## Type declaration + +### label + +> **label**: `string` = `'Male'` + +### value + +> **value**: `string` = `'MALE'` diff --git a/docs/docs/auto-docs/utils/formEnumFields/variables/maritalStatusEnum.md b/docs/docs/auto-docs/utils/formEnumFields/variables/maritalStatusEnum.md new file mode 100644 index 0000000000..4980cc3eac --- /dev/null +++ b/docs/docs/auto-docs/utils/formEnumFields/variables/maritalStatusEnum.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: maritalStatusEnum + +> `const` **maritalStatusEnum**: `object`[] + +Defined in: [src/utils/formEnumFields.ts:269](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/formEnumFields.ts#L269) + +## Type declaration + +### label + +> **label**: `string` = `'Single'` + +### value + +> **value**: `string` = `'SINGLE'` diff --git a/docs/docs/auto-docs/utils/formEnumFields/variables/userRoleEnum.md b/docs/docs/auto-docs/utils/formEnumFields/variables/userRoleEnum.md new file mode 100644 index 0000000000..2caef175c0 --- /dev/null +++ b/docs/docs/auto-docs/utils/formEnumFields/variables/userRoleEnum.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: userRoleEnum + +> `const` **userRoleEnum**: `object`[] + +Defined in: [src/utils/formEnumFields.ts:326](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/formEnumFields.ts#L326) + +## Type declaration + +### label + +> **label**: `string` = `'User'` + +### value + +> **value**: `string` = `'USER'` diff --git a/docs/docs/auto-docs/utils/getOrganizationId/functions/default.md b/docs/docs/auto-docs/utils/getOrganizationId/functions/default.md new file mode 100644 index 0000000000..18a45773cb --- /dev/null +++ b/docs/docs/auto-docs/utils/getOrganizationId/functions/default.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(`url`): `string` + +Defined in: [src/utils/getOrganizationId.ts:2](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/getOrganizationId.ts#L2) + +## Parameters + +### url + +`string` + +## Returns + +`string` diff --git a/docs/docs/auto-docs/utils/getRefreshToken/functions/refreshToken.md b/docs/docs/auto-docs/utils/getRefreshToken/functions/refreshToken.md new file mode 100644 index 0000000000..aba3646f06 --- /dev/null +++ b/docs/docs/auto-docs/utils/getRefreshToken/functions/refreshToken.md @@ -0,0 +1,13 @@ +[Admin Docs](/) + +*** + +# Function: refreshToken() + +> **refreshToken**(): `Promise`\<`boolean`\> + +Defined in: [src/utils/getRefreshToken.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/getRefreshToken.ts#L6) + +## Returns + +`Promise`\<`boolean`\> diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemCategoryInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemCategoryInfo.md new file mode 100644 index 0000000000..ac353ed2a3 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemCategoryInfo.md @@ -0,0 +1,59 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceActionItemCategoryInfo + +Defined in: [src/utils/interfaces.ts:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L31) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L32) + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/utils/interfaces.ts:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L35) + +*** + +### creator + +> **creator**: `object` + +Defined in: [src/utils/interfaces.ts:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L36) + +#### \_id + +> **\_id**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### isDisabled + +> **isDisabled**: `boolean` + +Defined in: [src/utils/interfaces.ts:34](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L34) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L33) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemCategoryList.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemCategoryList.md new file mode 100644 index 0000000000..bab68670d9 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemCategoryList.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceActionItemCategoryList + +Defined in: [src/utils/interfaces.ts:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L39) + +## Properties + +### actionItemCategoriesByOrganization + +> **actionItemCategoriesByOrganization**: [`InterfaceActionItemCategoryInfo`](InterfaceActionItemCategoryInfo.md)[] + +Defined in: [src/utils/interfaces.ts:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L40) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemInfo.md new file mode 100644 index 0000000000..52debcb02d --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemInfo.md @@ -0,0 +1,151 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceActionItemInfo + +Defined in: [src/utils/interfaces.ts:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L43) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L44) + +*** + +### actionItemCategory + +> **actionItemCategory**: `object` + +Defined in: [src/utils/interfaces.ts:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L50) + +#### \_id + +> **\_id**: `string` + +#### name + +> **name**: `string` + +*** + +### allottedHours + +> **allottedHours**: `number` + +Defined in: [src/utils/interfaces.ts:65](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L65) + +*** + +### assignee + +> **assignee**: [`InterfaceEventVolunteerInfo`](InterfaceEventVolunteerInfo.md) + +Defined in: [src/utils/interfaces.ts:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L46) + +*** + +### assigneeGroup + +> **assigneeGroup**: [`InterfaceVolunteerGroupInfo`](InterfaceVolunteerGroupInfo.md) + +Defined in: [src/utils/interfaces.ts:47](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L47) + +*** + +### assigneeType + +> **assigneeType**: `"User"` \| `"EventVolunteerGroup"` \| `"EventVolunteer"` + +Defined in: [src/utils/interfaces.ts:45](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L45) + +*** + +### assigneeUser + +> **assigneeUser**: [`InterfaceUserInfo`](InterfaceUserInfo.md) + +Defined in: [src/utils/interfaces.ts:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L48) + +*** + +### assigner + +> **assigner**: [`InterfaceUserInfo`](InterfaceUserInfo.md) + +Defined in: [src/utils/interfaces.ts:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L49) + +*** + +### assignmentDate + +> **assignmentDate**: `Date` + +Defined in: [src/utils/interfaces.ts:56](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L56) + +*** + +### completionDate + +> **completionDate**: `Date` + +Defined in: [src/utils/interfaces.ts:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L58) + +*** + +### creator + +> **creator**: [`InterfaceUserInfo`](InterfaceUserInfo.md) + +Defined in: [src/utils/interfaces.ts:64](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L64) + +*** + +### dueDate + +> **dueDate**: `Date` + +Defined in: [src/utils/interfaces.ts:57](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L57) + +*** + +### event + +> **event**: `object` + +Defined in: [src/utils/interfaces.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L60) + +#### \_id + +> **\_id**: `string` + +#### title + +> **title**: `string` + +*** + +### isCompleted + +> **isCompleted**: `boolean` + +Defined in: [src/utils/interfaces.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L59) + +*** + +### postCompletionNotes + +> **postCompletionNotes**: `string` + +Defined in: [src/utils/interfaces.ts:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L55) + +*** + +### preCompletionNotes + +> **preCompletionNotes**: `string` + +Defined in: [src/utils/interfaces.ts:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L54) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemList.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemList.md new file mode 100644 index 0000000000..35af492ba9 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceActionItemList.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceActionItemList + +Defined in: [src/utils/interfaces.ts:68](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L68) + +## Properties + +### actionItemsByOrganization + +> **actionItemsByOrganization**: [`InterfaceActionItemInfo`](InterfaceActionItemInfo.md)[] + +Defined in: [src/utils/interfaces.ts:69](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L69) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAddOnSpotAttendeeProps.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAddOnSpotAttendeeProps.md new file mode 100644 index 0000000000..dff9425baa --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAddOnSpotAttendeeProps.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAddOnSpotAttendeeProps + +Defined in: [src/utils/interfaces.ts:546](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L546) + +## Properties + +### handleClose() + +> **handleClose**: () => `void` + +Defined in: [src/utils/interfaces.ts:548](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L548) + +#### Returns + +`void` + +*** + +### reloadMembers() + +> **reloadMembers**: () => `void` + +Defined in: [src/utils/interfaces.ts:549](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L549) + +#### Returns + +`void` + +*** + +### show + +> **show**: `boolean` + +Defined in: [src/utils/interfaces.ts:547](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L547) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAddress.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAddress.md new file mode 100644 index 0000000000..a8aa1c6170 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAddress.md @@ -0,0 +1,71 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAddress + +Defined in: [src/utils/interfaces.ts:453](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L453) + +## Properties + +### city + +> **city**: `string` + +Defined in: [src/utils/interfaces.ts:454](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L454) + +*** + +### countryCode + +> **countryCode**: `string` + +Defined in: [src/utils/interfaces.ts:455](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L455) + +*** + +### dependentLocality + +> **dependentLocality**: `string` + +Defined in: [src/utils/interfaces.ts:456](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L456) + +*** + +### line1 + +> **line1**: `string` + +Defined in: [src/utils/interfaces.ts:457](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L457) + +*** + +### line2 + +> **line2**: `string` + +Defined in: [src/utils/interfaces.ts:458](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L458) + +*** + +### postalCode + +> **postalCode**: `string` + +Defined in: [src/utils/interfaces.ts:459](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L459) + +*** + +### sortingCode + +> **sortingCode**: `string` + +Defined in: [src/utils/interfaces.ts:460](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L460) + +*** + +### state + +> **state**: `string` + +Defined in: [src/utils/interfaces.ts:461](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L461) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemCategoryInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemCategoryInfo.md new file mode 100644 index 0000000000..f680c57ab5 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemCategoryInfo.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAgendaItemCategoryInfo + +Defined in: [src/utils/interfaces.ts:531](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L531) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:532](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L532) + +*** + +### createdBy + +> **createdBy**: `object` + +Defined in: [src/utils/interfaces.ts:535](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L535) + +#### \_id + +> **\_id**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:534](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L534) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:533](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L533) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemCategoryList.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemCategoryList.md new file mode 100644 index 0000000000..e94b7e1e3f --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemCategoryList.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAgendaItemCategoryList + +Defined in: [src/utils/interfaces.ts:542](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L542) + +## Properties + +### agendaItemCategoriesByOrganization + +> **agendaItemCategoriesByOrganization**: [`InterfaceAgendaItemCategoryInfo`](InterfaceAgendaItemCategoryInfo.md)[] + +Defined in: [src/utils/interfaces.ts:543](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L543) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemInfo.md new file mode 100644 index 0000000000..c1e470326a --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemInfo.md @@ -0,0 +1,151 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAgendaItemInfo + +Defined in: [src/utils/interfaces.ts:560](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L560) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:561](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L561) + +*** + +### attachments + +> **attachments**: `string`[] + +Defined in: [src/utils/interfaces.ts:565](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L565) + +*** + +### categories + +> **categories**: `object`[] + +Defined in: [src/utils/interfaces.ts:578](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L578) + +#### \_id + +> **\_id**: `string` + +#### name + +> **name**: `string` + +*** + +### createdBy + +> **createdBy**: `object` + +Defined in: [src/utils/interfaces.ts:566](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L566) + +#### \_id + +> **\_id**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:563](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L563) + +*** + +### duration + +> **duration**: `string` + +Defined in: [src/utils/interfaces.ts:564](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L564) + +*** + +### organization + +> **organization**: `object` + +Defined in: [src/utils/interfaces.ts:582](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L582) + +#### \_id + +> **\_id**: `string` + +#### name + +> **name**: `string` + +*** + +### relatedEvent + +> **relatedEvent**: `object` + +Defined in: [src/utils/interfaces.ts:586](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L586) + +#### \_id + +> **\_id**: `string` + +#### title + +> **title**: `string` + +*** + +### sequence + +> **sequence**: `number` + +Defined in: [src/utils/interfaces.ts:577](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L577) + +*** + +### title + +> **title**: `string` + +Defined in: [src/utils/interfaces.ts:562](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L562) + +*** + +### urls + +> **urls**: `string`[] + +Defined in: [src/utils/interfaces.ts:571](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L571) + +*** + +### users + +> **users**: `object`[] + +Defined in: [src/utils/interfaces.ts:572](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L572) + +#### \_id + +> **\_id**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemList.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemList.md new file mode 100644 index 0000000000..76cb98113f --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceAgendaItemList.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceAgendaItemList + +Defined in: [src/utils/interfaces.ts:592](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L592) + +## Properties + +### agendaItemByEvent + +> **agendaItemByEvent**: [`InterfaceAgendaItemInfo`](InterfaceAgendaItemInfo.md)[] + +Defined in: [src/utils/interfaces.ts:593](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L593) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceBaseEvent.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceBaseEvent.md new file mode 100644 index 0000000000..14c543e73b --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceBaseEvent.md @@ -0,0 +1,92 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceBaseEvent + +Defined in: [src/utils/interfaces.ts:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L18) + +## Extended by + +- [`InterfaceQueryOrganizationEventListItem`](InterfaceQueryOrganizationEventListItem.md) +- [`InterfaceUserEvents`](InterfaceUserEvents.md) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L19) + +*** + +### allDay + +> **allDay**: `boolean` + +Defined in: [src/utils/interfaces.ts:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L27) + +*** + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L21) + +*** + +### endDate + +> **endDate**: `string` + +Defined in: [src/utils/interfaces.ts:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L23) + +*** + +### endTime + +> **endTime**: `string` + +Defined in: [src/utils/interfaces.ts:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L26) + +*** + +### location + +> **location**: `string` + +Defined in: [src/utils/interfaces.ts:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L24) + +*** + +### recurring + +> **recurring**: `boolean` + +Defined in: [src/utils/interfaces.ts:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L28) + +*** + +### startDate + +> **startDate**: `string` + +Defined in: [src/utils/interfaces.ts:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L22) + +*** + +### startTime + +> **startTime**: `string` + +Defined in: [src/utils/interfaces.ts:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L25) + +*** + +### title + +> **title**: `string` + +Defined in: [src/utils/interfaces.ts:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L20) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCampaignInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCampaignInfo.md new file mode 100644 index 0000000000..78a39cb4a2 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCampaignInfo.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCampaignInfo + +Defined in: [src/utils/interfaces.ts:362](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L362) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:363](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L363) + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/utils/interfaces.ts:368](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L368) + +*** + +### currency + +> **currency**: `string` + +Defined in: [src/utils/interfaces.ts:369](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L369) + +*** + +### endDate + +> **endDate**: `Date` + +Defined in: [src/utils/interfaces.ts:367](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L367) + +*** + +### fundingGoal + +> **fundingGoal**: `number` + +Defined in: [src/utils/interfaces.ts:365](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L365) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:364](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L364) + +*** + +### startDate + +> **startDate**: `Date` + +Defined in: [src/utils/interfaces.ts:366](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L366) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreateFund.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreateFund.md new file mode 100644 index 0000000000..6cbb59bbdd --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreateFund.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCreateFund + +Defined in: [src/utils/interfaces.ts:463](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L463) + +## Properties + +### fundName + +> **fundName**: `string` + +Defined in: [src/utils/interfaces.ts:464](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L464) + +*** + +### fundRef + +> **fundRef**: `string` + +Defined in: [src/utils/interfaces.ts:465](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L465) + +*** + +### isArchived + +> **isArchived**: `boolean` + +Defined in: [src/utils/interfaces.ts:467](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L467) + +*** + +### isDefault + +> **isDefault**: `boolean` + +Defined in: [src/utils/interfaces.ts:466](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L466) + +*** + +### taxDeductible + +> **taxDeductible**: `boolean` + +Defined in: [src/utils/interfaces.ts:468](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L468) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreatePledge.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreatePledge.md new file mode 100644 index 0000000000..3d5d3a1f99 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreatePledge.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCreatePledge + +Defined in: [src/utils/interfaces.ts:508](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L508) + +## Properties + +### pledgeAmount + +> **pledgeAmount**: `number` + +Defined in: [src/utils/interfaces.ts:510](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L510) + +*** + +### pledgeCurrency + +> **pledgeCurrency**: `string` + +Defined in: [src/utils/interfaces.ts:511](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L511) + +*** + +### pledgeEndDate + +> **pledgeEndDate**: `Date` + +Defined in: [src/utils/interfaces.ts:513](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L513) + +*** + +### pledgeStartDate + +> **pledgeStartDate**: `Date` + +Defined in: [src/utils/interfaces.ts:512](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L512) + +*** + +### pledgeUsers + +> **pledgeUsers**: [`InterfaceUserInfo`](InterfaceUserInfo.md)[] + +Defined in: [src/utils/interfaces.ts:509](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L509) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreateVolunteerGroup.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreateVolunteerGroup.md new file mode 100644 index 0000000000..b4c8b1f990 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCreateVolunteerGroup.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCreateVolunteerGroup + +Defined in: [src/utils/interfaces.ts:648](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L648) + +## Properties + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:650](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L650) + +*** + +### leader + +> **leader**: [`InterfaceUserInfo`](InterfaceUserInfo.md) + +Defined in: [src/utils/interfaces.ts:651](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L651) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:649](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L649) + +*** + +### volunteersRequired + +> **volunteersRequired**: `number` + +Defined in: [src/utils/interfaces.ts:652](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L652) + +*** + +### volunteerUsers + +> **volunteerUsers**: [`InterfaceUserInfo`](InterfaceUserInfo.md)[] + +Defined in: [src/utils/interfaces.ts:653](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L653) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCustomFieldData.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCustomFieldData.md new file mode 100644 index 0000000000..5dbab2917e --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceCustomFieldData.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceCustomFieldData + +Defined in: [src/utils/interfaces.ts:600](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L600) + +## Properties + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:602](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L602) + +*** + +### type + +> **type**: `string` + +Defined in: [src/utils/interfaces.ts:601](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L601) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceEventVolunteerInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceEventVolunteerInfo.md new file mode 100644 index 0000000000..16b1697eab --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceEventVolunteerInfo.md @@ -0,0 +1,71 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceEventVolunteerInfo + +Defined in: [src/utils/interfaces.ts:605](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L605) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:606](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L606) + +*** + +### assignments + +> **assignments**: `object`[] + +Defined in: [src/utils/interfaces.ts:610](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L610) + +#### \_id + +> **\_id**: `string` + +*** + +### groups + +> **groups**: `object`[] + +Defined in: [src/utils/interfaces.ts:613](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L613) + +#### \_id + +> **\_id**: `string` + +#### name + +> **name**: `string` + +#### volunteers + +> **volunteers**: `object`[] + +*** + +### hasAccepted + +> **hasAccepted**: `boolean` + +Defined in: [src/utils/interfaces.ts:607](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L607) + +*** + +### hoursVolunteered + +> **hoursVolunteered**: `number` + +Defined in: [src/utils/interfaces.ts:608](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L608) + +*** + +### user + +> **user**: [`InterfaceUserInfo`](InterfaceUserInfo.md) + +Defined in: [src/utils/interfaces.ts:609](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L609) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceFormData.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceFormData.md new file mode 100644 index 0000000000..21eb2d04c7 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceFormData.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceFormData + +Defined in: [src/utils/interfaces.ts:552](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L552) + +## Properties + +### email + +> **email**: `string` + +Defined in: [src/utils/interfaces.ts:555](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L555) + +*** + +### firstName + +> **firstName**: `string` + +Defined in: [src/utils/interfaces.ts:553](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L553) + +*** + +### gender + +> **gender**: `string` + +Defined in: [src/utils/interfaces.ts:557](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L557) + +*** + +### lastName + +> **lastName**: `string` + +Defined in: [src/utils/interfaces.ts:554](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L554) + +*** + +### phoneNo + +> **phoneNo**: `string` + +Defined in: [src/utils/interfaces.ts:556](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L556) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceFundInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceFundInfo.md new file mode 100644 index 0000000000..eb1a515bc0 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceFundInfo.md @@ -0,0 +1,91 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceFundInfo + +Defined in: [src/utils/interfaces.ts:351](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L351) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:352](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L352) + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/utils/interfaces.ts:358](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L358) + +*** + +### creator + +> **creator**: `object` + +Defined in: [src/utils/interfaces.ts:360](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L360) + +#### \_id + +> **\_id**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### isArchived + +> **isArchived**: `boolean` + +Defined in: [src/utils/interfaces.ts:356](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L356) + +*** + +### isDefault + +> **isDefault**: `boolean` + +Defined in: [src/utils/interfaces.ts:357](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L357) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:353](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L353) + +*** + +### organizationId + +> **organizationId**: `string` + +Defined in: [src/utils/interfaces.ts:359](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L359) + +*** + +### refrenceNumber + +> **refrenceNumber**: `string` + +Defined in: [src/utils/interfaces.ts:354](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L354) + +*** + +### taxDeductible + +> **taxDeductible**: `boolean` + +Defined in: [src/utils/interfaces.ts:355](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L355) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMapType.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMapType.md new file mode 100644 index 0000000000..208eea9734 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMapType.md @@ -0,0 +1,11 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceMapType + +Defined in: [src/utils/interfaces.ts:596](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L596) + +## Indexable + +\[`key`: `string`\]: `string` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMemberInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMemberInfo.md new file mode 100644 index 0000000000..67143de512 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMemberInfo.md @@ -0,0 +1,67 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceMemberInfo + +Defined in: [src/utils/interfaces.ts:79](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L79) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:80](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L80) + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/utils/interfaces.ts:85](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L85) + +*** + +### email + +> **email**: `string` + +Defined in: [src/utils/interfaces.ts:83](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L83) + +*** + +### firstName + +> **firstName**: `string` + +Defined in: [src/utils/interfaces.ts:81](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L81) + +*** + +### image + +> **image**: `string` + +Defined in: [src/utils/interfaces.ts:84](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L84) + +*** + +### lastName + +> **lastName**: `string` + +Defined in: [src/utils/interfaces.ts:82](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L82) + +*** + +### organizationsBlockedBy + +> **organizationsBlockedBy**: `object`[] + +Defined in: [src/utils/interfaces.ts:86](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L86) + +#### \_id + +> **\_id**: `string` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMembersList.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMembersList.md new file mode 100644 index 0000000000..b5d7407afa --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceMembersList.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceMembersList + +Defined in: [src/utils/interfaces.ts:72](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L72) + +## Properties + +### organizations + +> **organizations**: `object`[] + +Defined in: [src/utils/interfaces.ts:73](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L73) + +#### \_id + +> **\_id**: `string` + +#### members + +> **members**: [`InterfaceMemberInfo`](InterfaceMemberInfo.md)[] diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceOrgConnectionInfoType.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceOrgConnectionInfoType.md new file mode 100644 index 0000000000..d2452c29c2 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceOrgConnectionInfoType.md @@ -0,0 +1,91 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceOrgConnectionInfoType + +Defined in: [src/utils/interfaces.ts:91](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L91) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:92](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L92) + +*** + +### address + +> **address**: [`InterfaceAddress`](InterfaceAddress.md) + +Defined in: [src/utils/interfaces.ts:107](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L107) + +*** + +### admins + +> **admins**: `object`[] + +Defined in: [src/utils/interfaces.ts:103](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L103) + +#### \_id + +> **\_id**: `string` + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/utils/interfaces.ts:106](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L106) + +*** + +### creator + +> **creator**: `object` + +Defined in: [src/utils/interfaces.ts:94](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L94) + +#### \_id + +> **\_id**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### image + +> **image**: `string` + +Defined in: [src/utils/interfaces.ts:93](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L93) + +*** + +### members + +> **members**: `object`[] + +Defined in: [src/utils/interfaces.ts:100](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L100) + +#### \_id + +> **\_id**: `string` + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:99](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L99) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceOrgConnectionType.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceOrgConnectionType.md new file mode 100644 index 0000000000..943ff17afc --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceOrgConnectionType.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceOrgConnectionType + +Defined in: [src/utils/interfaces.ts:109](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L109) + +## Properties + +### organizationsConnection + +> **organizationsConnection**: [`InterfaceOrgConnectionInfoType`](InterfaceOrgConnectionInfoType.md)[] + +Defined in: [src/utils/interfaces.ts:110](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L110) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePledgeInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePledgeInfo.md new file mode 100644 index 0000000000..ac890a05cd --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePledgeInfo.md @@ -0,0 +1,75 @@ +[Admin Docs](/) + +*** + +# Interface: InterfacePledgeInfo + +Defined in: [src/utils/interfaces.ts:371](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L371) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:372](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L372) + +*** + +### amount + +> **amount**: `number` + +Defined in: [src/utils/interfaces.ts:374](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L374) + +*** + +### campaign? + +> `optional` **campaign**: `object` + +Defined in: [src/utils/interfaces.ts:373](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L373) + +#### \_id + +> **\_id**: `string` + +#### endDate + +> **endDate**: `Date` + +#### name + +> **name**: `string` + +*** + +### currency + +> **currency**: `string` + +Defined in: [src/utils/interfaces.ts:375](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L375) + +*** + +### endDate + +> **endDate**: `string` + +Defined in: [src/utils/interfaces.ts:376](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L376) + +*** + +### startDate + +> **startDate**: `string` + +Defined in: [src/utils/interfaces.ts:377](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L377) + +*** + +### users + +> **users**: [`InterfaceUserInfo`](InterfaceUserInfo.md)[] + +Defined in: [src/utils/interfaces.ts:378](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L378) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePostCard.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePostCard.md new file mode 100644 index 0000000000..1d42d8bd06 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePostCard.md @@ -0,0 +1,171 @@ +[Admin Docs](/) + +*** + +# Interface: InterfacePostCard + +Defined in: [src/utils/interfaces.ts:471](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L471) + +## Properties + +### commentCount + +> **commentCount**: `number` + +Defined in: [src/utils/interfaces.ts:485](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L485) + +*** + +### comments + +> **comments**: `object`[] + +Defined in: [src/utils/interfaces.ts:486](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L486) + +#### creator + +> **creator**: `object` + +##### creator.email + +> **email**: `string` + +##### creator.firstName + +> **firstName**: `string` + +##### creator.id + +> **id**: `string` + +##### creator.lastName + +> **lastName**: `string` + +#### id + +> **id**: `string` + +#### likeCount + +> **likeCount**: `number` + +#### likedBy + +> **likedBy**: `object`[] + +#### text + +> **text**: `string` + +*** + +### creator + +> **creator**: `object` + +Defined in: [src/utils/interfaces.ts:473](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L473) + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### id + +> **id**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### fetchPosts() + +> **fetchPosts**: () => `void` + +Defined in: [src/utils/interfaces.ts:505](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L505) + +#### Returns + +`void` + +*** + +### id + +> **id**: `string` + +Defined in: [src/utils/interfaces.ts:472](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L472) + +*** + +### image + +> **image**: `string` + +Defined in: [src/utils/interfaces.ts:480](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L480) + +*** + +### likeCount + +> **likeCount**: `number` + +Defined in: [src/utils/interfaces.ts:484](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L484) + +*** + +### likedBy + +> **likedBy**: `object`[] + +Defined in: [src/utils/interfaces.ts:500](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L500) + +#### firstName + +> **firstName**: `string` + +#### id + +> **id**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### postedAt + +> **postedAt**: `string` + +Defined in: [src/utils/interfaces.ts:479](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L479) + +*** + +### text + +> **text**: `string` + +Defined in: [src/utils/interfaces.ts:482](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L482) + +*** + +### title + +> **title**: `string` + +Defined in: [src/utils/interfaces.ts:483](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L483) + +*** + +### video + +> **video**: `string` + +Defined in: [src/utils/interfaces.ts:481](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L481) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePostForm.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePostForm.md new file mode 100644 index 0000000000..7b98d45460 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfacePostForm.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfacePostForm + +Defined in: [src/utils/interfaces.ts:173](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L173) + +## Properties + +### pinned + +> **pinned**: `boolean` + +Defined in: [src/utils/interfaces.ts:178](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L178) + +*** + +### postinfo + +> **postinfo**: `string` + +Defined in: [src/utils/interfaces.ts:175](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L175) + +*** + +### postphoto + +> **postphoto**: `string` + +Defined in: [src/utils/interfaces.ts:176](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L176) + +*** + +### posttitle + +> **posttitle**: `string` + +Defined in: [src/utils/interfaces.ts:174](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L174) + +*** + +### postvideo + +> **postvideo**: `string` + +Defined in: [src/utils/interfaces.ts:177](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L177) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryBlockPageMemberListItem.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryBlockPageMemberListItem.md new file mode 100644 index 0000000000..ffcd1146c1 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryBlockPageMemberListItem.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryBlockPageMemberListItem + +Defined in: [src/utils/interfaces.ts:386](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L386) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:387](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L387) + +*** + +### email + +> **email**: `string` + +Defined in: [src/utils/interfaces.ts:390](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L390) + +*** + +### firstName + +> **firstName**: `string` + +Defined in: [src/utils/interfaces.ts:388](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L388) + +*** + +### lastName + +> **lastName**: `string` + +Defined in: [src/utils/interfaces.ts:389](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L389) + +*** + +### organizationsBlockedBy + +> **organizationsBlockedBy**: `object`[] + +Defined in: [src/utils/interfaces.ts:391](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L391) + +#### \_id + +> **\_id**: `string` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryFundCampaignsPledges.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryFundCampaignsPledges.md new file mode 100644 index 0000000000..1badf6d5f6 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryFundCampaignsPledges.md @@ -0,0 +1,67 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryFundCampaignsPledges + +Defined in: [src/utils/interfaces.ts:340](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L340) + +## Properties + +### currency + +> **currency**: `string` + +Defined in: [src/utils/interfaces.ts:346](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L346) + +*** + +### endDate + +> **endDate**: `Date` + +Defined in: [src/utils/interfaces.ts:348](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L348) + +*** + +### fundId + +> **fundId**: `object` + +Defined in: [src/utils/interfaces.ts:341](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L341) + +#### name + +> **name**: `string` + +*** + +### fundingGoal + +> **fundingGoal**: `number` + +Defined in: [src/utils/interfaces.ts:345](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L345) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:344](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L344) + +*** + +### pledges + +> **pledges**: [`InterfacePledgeInfo`](InterfacePledgeInfo.md)[] + +Defined in: [src/utils/interfaces.ts:349](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L349) + +*** + +### startDate + +> **startDate**: `Date` + +Defined in: [src/utils/interfaces.ts:347](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L347) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryMembershipRequestsListItem.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryMembershipRequestsListItem.md new file mode 100644 index 0000000000..582e21baa6 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryMembershipRequestsListItem.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryMembershipRequestsListItem + +Defined in: [src/utils/interfaces.ts:516](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L516) + +## Properties + +### organizations + +> **organizations**: `object`[] + +Defined in: [src/utils/interfaces.ts:517](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L517) + +#### \_id + +> **\_id**: `string` + +#### membershipRequests + +> **membershipRequests**: `object`[] diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationAdvertisementListItem.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationAdvertisementListItem.md new file mode 100644 index 0000000000..8d5576bf23 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationAdvertisementListItem.md @@ -0,0 +1,43 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryOrganizationAdvertisementListItem + +Defined in: [src/utils/interfaces.ts:296](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L296) + +## Properties + +### advertisements + +> **advertisements**: `object` + +Defined in: [src/utils/interfaces.ts:297](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L297) + +#### edges + +> **edges**: `object`[] + +#### pageInfo + +> **pageInfo**: `object` + +##### pageInfo.endCursor + +> **endCursor**: `string` + +##### pageInfo.hasNextPage + +> **hasNextPage**: `boolean` + +##### pageInfo.hasPreviousPage + +> **hasPreviousPage**: `boolean` + +##### pageInfo.startCursor + +> **startCursor**: `string` + +#### totalCount + +> **totalCount**: `number` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationEventListItem.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationEventListItem.md new file mode 100644 index 0000000000..8eecd4919f --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationEventListItem.md @@ -0,0 +1,147 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryOrganizationEventListItem + +Defined in: [src/utils/interfaces.ts:380](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L380) + +## Extends + +- [`InterfaceBaseEvent`](InterfaceBaseEvent.md) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L19) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`_id`](InterfaceBaseEvent.md#_id) + +*** + +### allDay + +> **allDay**: `boolean` + +Defined in: [src/utils/interfaces.ts:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L27) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`allDay`](InterfaceBaseEvent.md#allday) + +*** + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L21) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`description`](InterfaceBaseEvent.md#description) + +*** + +### endDate + +> **endDate**: `string` + +Defined in: [src/utils/interfaces.ts:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L23) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`endDate`](InterfaceBaseEvent.md#enddate) + +*** + +### endTime + +> **endTime**: `string` + +Defined in: [src/utils/interfaces.ts:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L26) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`endTime`](InterfaceBaseEvent.md#endtime) + +*** + +### isPublic + +> **isPublic**: `boolean` + +Defined in: [src/utils/interfaces.ts:382](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L382) + +*** + +### isRegisterable + +> **isRegisterable**: `boolean` + +Defined in: [src/utils/interfaces.ts:383](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L383) + +*** + +### location + +> **location**: `string` + +Defined in: [src/utils/interfaces.ts:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L24) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`location`](InterfaceBaseEvent.md#location) + +*** + +### recurring + +> **recurring**: `boolean` + +Defined in: [src/utils/interfaces.ts:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L28) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`recurring`](InterfaceBaseEvent.md#recurring) + +*** + +### startDate + +> **startDate**: `string` + +Defined in: [src/utils/interfaces.ts:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L22) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`startDate`](InterfaceBaseEvent.md#startdate) + +*** + +### startTime + +> **startTime**: `string` + +Defined in: [src/utils/interfaces.ts:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L25) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`startTime`](InterfaceBaseEvent.md#starttime) + +*** + +### title + +> **title**: `string` + +Defined in: [src/utils/interfaces.ts:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L20) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`title`](InterfaceBaseEvent.md#title) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationFundCampaigns.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationFundCampaigns.md new file mode 100644 index 0000000000..79b250cde4 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationFundCampaigns.md @@ -0,0 +1,59 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryOrganizationFundCampaigns + +Defined in: [src/utils/interfaces.ts:319](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L319) + +## Properties + +### campaigns + +> **campaigns**: `object`[] + +Defined in: [src/utils/interfaces.ts:322](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L322) + +#### \_id + +> **\_id**: `string` + +#### createdAt + +> **createdAt**: `string` + +#### currency + +> **currency**: `string` + +#### endDate + +> **endDate**: `Date` + +#### fundingGoal + +> **fundingGoal**: `number` + +#### name + +> **name**: `string` + +#### startDate + +> **startDate**: `Date` + +*** + +### isArchived + +> **isArchived**: `boolean` + +Defined in: [src/utils/interfaces.ts:321](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L321) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:320](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L320) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationListObject.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationListObject.md new file mode 100644 index 0000000000..376618822f --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationListObject.md @@ -0,0 +1,87 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryOrganizationListObject + +Defined in: [src/utils/interfaces.ts:155](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L155) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:156](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L156) + +*** + +### address + +> **address**: [`InterfaceAddress`](InterfaceAddress.md) + +Defined in: [src/utils/interfaces.ts:170](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L170) + +*** + +### admins + +> **admins**: `object`[] + +Defined in: [src/utils/interfaces.ts:166](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L166) + +#### \_id + +> **\_id**: `string` + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/utils/interfaces.ts:169](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L169) + +*** + +### creator + +> **creator**: `object` + +Defined in: [src/utils/interfaces.ts:158](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L158) + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### image + +> **image**: `string` + +Defined in: [src/utils/interfaces.ts:157](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L157) + +*** + +### members + +> **members**: `object`[] + +Defined in: [src/utils/interfaces.ts:163](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L163) + +#### \_id + +> **\_id**: `string` + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:162](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L162) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationPostListItem.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationPostListItem.md new file mode 100644 index 0000000000..1556980844 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationPostListItem.md @@ -0,0 +1,43 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryOrganizationPostListItem + +Defined in: [src/utils/interfaces.ts:180](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L180) + +## Properties + +### posts + +> **posts**: `object` + +Defined in: [src/utils/interfaces.ts:181](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L181) + +#### edges + +> **edges**: `object`[] + +#### pageInfo + +> **pageInfo**: `object` + +##### pageInfo.endCursor + +> **endCursor**: `string` + +##### pageInfo.hasNextPage + +> **hasNextPage**: `boolean` + +##### pageInfo.hasPreviousPage + +> **hasPreviousPage**: `boolean` + +##### pageInfo.startCursor + +> **startCursor**: `string` + +#### totalCount + +> **totalCount**: `number` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationUserTags.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationUserTags.md new file mode 100644 index 0000000000..5d09d48531 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationUserTags.md @@ -0,0 +1,15 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryOrganizationUserTags + +Defined in: [src/utils/interfaces.ts:269](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L269) + +## Properties + +### userTags + +> **userTags**: `InterfaceTagNodeData` + +Defined in: [src/utils/interfaces.ts:270](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L270) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationsListObject.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationsListObject.md new file mode 100644 index 0000000000..de8af9ed0f --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryOrganizationsListObject.md @@ -0,0 +1,187 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryOrganizationsListObject + +Defined in: [src/utils/interfaces.ts:113](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L113) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:114](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L114) + +*** + +### address + +> **address**: [`InterfaceAddress`](InterfaceAddress.md) + +Defined in: [src/utils/interfaces.ts:123](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L123) + +*** + +### admins + +> **admins**: `object`[] + +Defined in: [src/utils/interfaces.ts:132](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L132) + +#### \_id + +> **\_id**: `string` + +#### createdAt + +> **createdAt**: `string` + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### blockedUsers + +> **blockedUsers**: `object`[] + +Defined in: [src/utils/interfaces.ts:147](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L147) + +#### \_id + +> **\_id**: `string` + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### creator + +> **creator**: `object` + +Defined in: [src/utils/interfaces.ts:116](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L116) + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:122](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L122) + +*** + +### image + +> **image**: `string` + +Defined in: [src/utils/interfaces.ts:115](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L115) + +*** + +### members + +> **members**: `object`[] + +Defined in: [src/utils/interfaces.ts:126](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L126) + +#### \_id + +> **\_id**: `string` + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### lastName + +> **lastName**: `string` + +*** + +### membershipRequests + +> **membershipRequests**: `object`[] + +Defined in: [src/utils/interfaces.ts:139](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L139) + +#### \_id + +> **\_id**: `string` + +#### user + +> **user**: `object` + +##### user.email + +> **email**: `string` + +##### user.firstName + +> **firstName**: `string` + +##### user.lastName + +> **lastName**: `string` + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:121](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L121) + +*** + +### userRegistrationRequired + +> **userRegistrationRequired**: `boolean` + +Defined in: [src/utils/interfaces.ts:124](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L124) + +*** + +### visibleInSearch + +> **visibleInSearch**: `boolean` + +Defined in: [src/utils/interfaces.ts:125](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L125) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserListItem.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserListItem.md new file mode 100644 index 0000000000..d31c58530b --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserListItem.md @@ -0,0 +1,87 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryUserListItem + +Defined in: [src/utils/interfaces.ts:396](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L396) + +## Properties + +### appUserProfile + +> **appUserProfile**: `object` + +Defined in: [src/utils/interfaces.ts:435](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L435) + +#### \_id + +> **\_id**: `string` + +#### adminFor + +> **adminFor**: `object`[] + +#### createdEvents + +> **createdEvents**: `object`[] + +#### createdOrganizations + +> **createdOrganizations**: `object`[] + +#### eventAdmin + +> **eventAdmin**: `object`[] + +#### isSuperAdmin + +> **isSuperAdmin**: `boolean` + +*** + +### user + +> **user**: `object` + +Defined in: [src/utils/interfaces.ts:397](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L397) + +#### \_id + +> **\_id**: `string` + +#### createdAt + +> **createdAt**: `string` + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### image + +> **image**: `string` + +#### joinedOrganizations + +> **joinedOrganizations**: `object`[] + +#### lastName + +> **lastName**: `string` + +#### membershipRequests + +> **membershipRequests**: `object`[] + +#### organizationsBlockedBy + +> **organizationsBlockedBy**: `object`[] + +#### registeredEvents + +> **registeredEvents**: `object`[] diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagChildTags.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagChildTags.md new file mode 100644 index 0000000000..04ef95c556 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagChildTags.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryUserTagChildTags + +Defined in: [src/utils/interfaces.ts:273](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L273) + +## Properties + +### ancestorTags + +> **ancestorTags**: `object`[] + +Defined in: [src/utils/interfaces.ts:276](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L276) + +#### \_id + +> **\_id**: `string` + +#### name + +> **name**: `string` + +*** + +### childTags + +> **childTags**: `InterfaceTagNodeData` + +Defined in: [src/utils/interfaces.ts:275](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L275) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:274](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L274) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagsAssignedMembers.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagsAssignedMembers.md new file mode 100644 index 0000000000..134ca0b4aa --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagsAssignedMembers.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryUserTagsAssignedMembers + +Defined in: [src/utils/interfaces.ts:282](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L282) + +## Properties + +### ancestorTags + +> **ancestorTags**: `object`[] + +Defined in: [src/utils/interfaces.ts:285](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L285) + +#### \_id + +> **\_id**: `string` + +#### name + +> **name**: `string` + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:283](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L283) + +*** + +### usersAssignedTo + +> **usersAssignedTo**: `InterfaceTagMembersData` + +Defined in: [src/utils/interfaces.ts:284](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L284) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagsMembersToAssignTo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagsMembersToAssignTo.md new file mode 100644 index 0000000000..f49e7aabd3 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryUserTagsMembersToAssignTo.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryUserTagsMembersToAssignTo + +Defined in: [src/utils/interfaces.ts:291](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L291) + +## Properties + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:292](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L292) + +*** + +### usersToAssignTo + +> **usersToAssignTo**: `InterfaceTagMembersData` + +Defined in: [src/utils/interfaces.ts:293](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L293) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryVenueListItem.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryVenueListItem.md new file mode 100644 index 0000000000..5bcf1a41e7 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceQueryVenueListItem.md @@ -0,0 +1,47 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceQueryVenueListItem + +Defined in: [src/utils/interfaces.ts:445](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L445) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:446](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L446) + +*** + +### capacity + +> **capacity**: `string` + +Defined in: [src/utils/interfaces.ts:450](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L450) + +*** + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:448](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L448) + +*** + +### image + +> **image**: `string` + +Defined in: [src/utils/interfaces.ts:449](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L449) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:447](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L447) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceTagData.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceTagData.md new file mode 100644 index 0000000000..b50025cf67 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceTagData.md @@ -0,0 +1,75 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceTagData + +Defined in: [src/utils/interfaces.ts:222](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L222) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:223](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L223) + +*** + +### ancestorTags + +> **ancestorTags**: `object`[] + +Defined in: [src/utils/interfaces.ts:232](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L232) + +#### \_id + +> **\_id**: `string` + +#### name + +> **name**: `string` + +*** + +### childTags + +> **childTags**: `object` + +Defined in: [src/utils/interfaces.ts:229](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L229) + +#### totalCount + +> **totalCount**: `number` + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:224](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L224) + +*** + +### parentTag + +> **parentTag**: `object` + +Defined in: [src/utils/interfaces.ts:225](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L225) + +#### \_id + +> **\_id**: `string` + +*** + +### usersAssignedTo + +> **usersAssignedTo**: `object` + +Defined in: [src/utils/interfaces.ts:226](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L226) + +#### totalCount + +> **totalCount**: `number` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserCampaign.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserCampaign.md new file mode 100644 index 0000000000..ad4de3b121 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserCampaign.md @@ -0,0 +1,55 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceUserCampaign + +Defined in: [src/utils/interfaces.ts:332](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L332) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:333](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L333) + +*** + +### currency + +> **currency**: `string` + +Defined in: [src/utils/interfaces.ts:338](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L338) + +*** + +### endDate + +> **endDate**: `Date` + +Defined in: [src/utils/interfaces.ts:337](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L337) + +*** + +### fundingGoal + +> **fundingGoal**: `number` + +Defined in: [src/utils/interfaces.ts:335](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L335) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:334](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L334) + +*** + +### startDate + +> **startDate**: `Date` + +Defined in: [src/utils/interfaces.ts:336](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L336) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserEvents.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserEvents.md new file mode 100644 index 0000000000..cdf1e2cce0 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserEvents.md @@ -0,0 +1,179 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceUserEvents + +Defined in: [src/utils/interfaces.ts:656](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L656) + +## Extends + +- [`InterfaceBaseEvent`](InterfaceBaseEvent.md) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L19) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`_id`](InterfaceBaseEvent.md#_id) + +*** + +### allDay + +> **allDay**: `boolean` + +Defined in: [src/utils/interfaces.ts:27](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L27) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`allDay`](InterfaceBaseEvent.md#allday) + +*** + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L21) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`description`](InterfaceBaseEvent.md#description) + +*** + +### endDate + +> **endDate**: `string` + +Defined in: [src/utils/interfaces.ts:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L23) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`endDate`](InterfaceBaseEvent.md#enddate) + +*** + +### endTime + +> **endTime**: `string` + +Defined in: [src/utils/interfaces.ts:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L26) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`endTime`](InterfaceBaseEvent.md#endtime) + +*** + +### location + +> **location**: `string` + +Defined in: [src/utils/interfaces.ts:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L24) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`location`](InterfaceBaseEvent.md#location) + +*** + +### recurring + +> **recurring**: `boolean` + +Defined in: [src/utils/interfaces.ts:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L28) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`recurring`](InterfaceBaseEvent.md#recurring) + +*** + +### startDate + +> **startDate**: `string` + +Defined in: [src/utils/interfaces.ts:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L22) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`startDate`](InterfaceBaseEvent.md#startdate) + +*** + +### startTime + +> **startTime**: `string` + +Defined in: [src/utils/interfaces.ts:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L25) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`startTime`](InterfaceBaseEvent.md#starttime) + +*** + +### title + +> **title**: `string` + +Defined in: [src/utils/interfaces.ts:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L20) + +#### Inherited from + +[`InterfaceBaseEvent`](InterfaceBaseEvent.md).[`title`](InterfaceBaseEvent.md#title) + +*** + +### volunteerGroups + +> **volunteerGroups**: `object`[] + +Defined in: [src/utils/interfaces.ts:657](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L657) + +#### \_id + +> **\_id**: `string` + +#### description + +> **description**: `string` + +#### name + +> **name**: `string` + +#### volunteers + +> **volunteers**: `object`[] + +#### volunteersRequired + +> **volunteersRequired**: `number` + +*** + +### volunteers + +> **volunteers**: `object`[] + +Defined in: [src/utils/interfaces.ts:664](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L664) + +#### \_id + +> **\_id**: `string` + +#### user + +> **user**: `object` + +##### user.\_id + +> **\_id**: `string` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserInfo.md new file mode 100644 index 0000000000..4e14ebd807 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserInfo.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceUserInfo + +Defined in: [src/utils/interfaces.ts:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L10) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L11) + +*** + +### firstName + +> **firstName**: `string` + +Defined in: [src/utils/interfaces.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L12) + +*** + +### image? + +> `optional` **image**: `string` + +Defined in: [src/utils/interfaces.ts:14](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L14) + +*** + +### lastName + +> **lastName**: `string` + +Defined in: [src/utils/interfaces.ts:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L13) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserType.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserType.md new file mode 100644 index 0000000000..13580cbdf9 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceUserType.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceUserType + +Defined in: [src/utils/interfaces.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L1) + +## Properties + +### user + +> **user**: `object` + +Defined in: [src/utils/interfaces.ts:2](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L2) + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### image + +> **image**: `string` + +#### lastName + +> **lastName**: `string` diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerGroupInfo.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerGroupInfo.md new file mode 100644 index 0000000000..6d75b7e3ed --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerGroupInfo.md @@ -0,0 +1,123 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceVolunteerGroupInfo + +Defined in: [src/utils/interfaces.ts:622](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L622) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:623](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L623) + +*** + +### assignments + +> **assignments**: `object`[] + +Defined in: [src/utils/interfaces.ts:637](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L637) + +#### \_id + +> **\_id**: `string` + +#### actionItemCategory + +> **actionItemCategory**: `object` + +##### actionItemCategory.\_id + +> **\_id**: `string` + +##### actionItemCategory.name + +> **name**: `string` + +#### allottedHours + +> **allottedHours**: `number` + +#### isCompleted + +> **isCompleted**: `boolean` + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/utils/interfaces.ts:630](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L630) + +*** + +### creator + +> **creator**: [`InterfaceUserInfo`](InterfaceUserInfo.md) + +Defined in: [src/utils/interfaces.ts:631](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L631) + +*** + +### description + +> **description**: `string` + +Defined in: [src/utils/interfaces.ts:625](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L625) + +*** + +### event + +> **event**: `object` + +Defined in: [src/utils/interfaces.ts:626](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L626) + +#### \_id + +> **\_id**: `string` + +*** + +### leader + +> **leader**: [`InterfaceUserInfo`](InterfaceUserInfo.md) + +Defined in: [src/utils/interfaces.ts:632](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L632) + +*** + +### name + +> **name**: `string` + +Defined in: [src/utils/interfaces.ts:624](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L624) + +*** + +### volunteers + +> **volunteers**: `object`[] + +Defined in: [src/utils/interfaces.ts:633](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L633) + +#### \_id + +> **\_id**: `string` + +#### user + +> **user**: [`InterfaceUserInfo`](InterfaceUserInfo.md) + +*** + +### volunteersRequired + +> **volunteersRequired**: `number` + +Defined in: [src/utils/interfaces.ts:629](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L629) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerMembership.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerMembership.md new file mode 100644 index 0000000000..7814ed8bdb --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerMembership.md @@ -0,0 +1,83 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceVolunteerMembership + +Defined in: [src/utils/interfaces.ts:672](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L672) + +## Properties + +### \_id + +> **\_id**: `string` + +Defined in: [src/utils/interfaces.ts:673](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L673) + +*** + +### createdAt + +> **createdAt**: `string` + +Defined in: [src/utils/interfaces.ts:675](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L675) + +*** + +### event + +> **event**: `object` + +Defined in: [src/utils/interfaces.ts:676](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L676) + +#### \_id + +> **\_id**: `string` + +#### startDate + +> **startDate**: `string` + +#### title + +> **title**: `string` + +*** + +### group + +> **group**: `object` + +Defined in: [src/utils/interfaces.ts:685](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L685) + +#### \_id + +> **\_id**: `string` + +#### name + +> **name**: `string` + +*** + +### status + +> **status**: `string` + +Defined in: [src/utils/interfaces.ts:674](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L674) + +*** + +### volunteer + +> **volunteer**: `object` + +Defined in: [src/utils/interfaces.ts:681](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L681) + +#### \_id + +> **\_id**: `string` + +#### user + +> **user**: [`InterfaceUserInfo`](InterfaceUserInfo.md) diff --git a/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerRank.md b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerRank.md new file mode 100644 index 0000000000..a6afa68b32 --- /dev/null +++ b/docs/docs/auto-docs/utils/interfaces/interfaces/InterfaceVolunteerRank.md @@ -0,0 +1,51 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceVolunteerRank + +Defined in: [src/utils/interfaces.ts:691](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L691) + +## Properties + +### hoursVolunteered + +> **hoursVolunteered**: `number` + +Defined in: [src/utils/interfaces.ts:693](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L693) + +*** + +### rank + +> **rank**: `number` + +Defined in: [src/utils/interfaces.ts:692](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L692) + +*** + +### user + +> **user**: `object` + +Defined in: [src/utils/interfaces.ts:694](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/interfaces.ts#L694) + +#### \_id + +> **\_id**: `string` + +#### email + +> **email**: `string` + +#### firstName + +> **firstName**: `string` + +#### image + +> **image**: `string` + +#### lastName + +> **lastName**: `string` diff --git a/docs/docs/auto-docs/utils/languages/variables/languageArray.md b/docs/docs/auto-docs/utils/languages/variables/languageArray.md new file mode 100644 index 0000000000..5f90114430 --- /dev/null +++ b/docs/docs/auto-docs/utils/languages/variables/languageArray.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: languageArray + +> `const` **languageArray**: `string`[] + +Defined in: [src/utils/languages.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/languages.ts#L1) diff --git a/docs/docs/auto-docs/utils/languages/variables/languages.md b/docs/docs/auto-docs/utils/languages/variables/languages.md new file mode 100644 index 0000000000..a31a7bc0a7 --- /dev/null +++ b/docs/docs/auto-docs/utils/languages/variables/languages.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Variable: languages + +> `const` **languages**: `object`[] + +Defined in: [src/utils/languages.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/languages.ts#L3) + +## Type declaration + +### code + +> **code**: `string` = `'en'` + +### country\_code + +> **country\_code**: `string` = `'gb'` + +### name + +> **name**: `string` = `'English'` diff --git a/docs/docs/auto-docs/utils/linkValidator/functions/isValidLink.md b/docs/docs/auto-docs/utils/linkValidator/functions/isValidLink.md new file mode 100644 index 0000000000..a00381e3b7 --- /dev/null +++ b/docs/docs/auto-docs/utils/linkValidator/functions/isValidLink.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: isValidLink() + +> **isValidLink**(`link`): `boolean` + +Defined in: [src/utils/linkValidator.ts:1](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/linkValidator.ts#L1) + +## Parameters + +### link + +`string` + +## Returns + +`boolean` diff --git a/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceOrganizationSubTagsQuery.md b/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceOrganizationSubTagsQuery.md new file mode 100644 index 0000000000..0f3e8c830b --- /dev/null +++ b/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceOrganizationSubTagsQuery.md @@ -0,0 +1,81 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceOrganizationSubTagsQuery + +Defined in: [src/utils/organizationTagsUtils.ts:89](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L89) + +## Extends + +- `InterfaceBaseQueryResult` + +## Properties + +### data? + +> `optional` **data**: `object` + +Defined in: [src/utils/organizationTagsUtils.ts:91](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L91) + +#### getChildTags + +> **getChildTags**: [`InterfaceQueryUserTagChildTags`](../../interfaces/interfaces/InterfaceQueryUserTagChildTags.md) + +*** + +### error? + +> `optional` **error**: `ApolloError` + +Defined in: [src/utils/organizationTagsUtils.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L60) + +#### Inherited from + +`InterfaceBaseQueryResult.error` + +*** + +### fetchMore() + +> **fetchMore**: (`options`) => `void` + +Defined in: [src/utils/organizationTagsUtils.ts:94](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L94) + +#### Parameters + +##### options + +`InterfaceBaseFetchMoreOptions`\<\{ `getChildTags`: [`InterfaceQueryUserTagChildTags`](../../interfaces/interfaces/InterfaceQueryUserTagChildTags.md); \}\> + +#### Returns + +`void` + +*** + +### loading + +> **loading**: `boolean` + +Defined in: [src/utils/organizationTagsUtils.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L59) + +#### Inherited from + +`InterfaceBaseQueryResult.loading` + +*** + +### refetch()? + +> `optional` **refetch**: () => `void` + +Defined in: [src/utils/organizationTagsUtils.ts:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L61) + +#### Returns + +`void` + +#### Inherited from + +`InterfaceBaseQueryResult.refetch` diff --git a/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceOrganizationTagsQuery.md b/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceOrganizationTagsQuery.md new file mode 100644 index 0000000000..956634a6e6 --- /dev/null +++ b/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceOrganizationTagsQuery.md @@ -0,0 +1,81 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceOrganizationTagsQuery + +Defined in: [src/utils/organizationTagsUtils.ts:77](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L77) + +## Extends + +- `InterfaceBaseQueryResult` + +## Properties + +### data? + +> `optional` **data**: `object` + +Defined in: [src/utils/organizationTagsUtils.ts:79](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L79) + +#### organizations + +> **organizations**: [`InterfaceQueryOrganizationUserTags`](../../interfaces/interfaces/InterfaceQueryOrganizationUserTags.md)[] + +*** + +### error? + +> `optional` **error**: `ApolloError` + +Defined in: [src/utils/organizationTagsUtils.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L60) + +#### Inherited from + +`InterfaceBaseQueryResult.error` + +*** + +### fetchMore() + +> **fetchMore**: (`options`) => `void` + +Defined in: [src/utils/organizationTagsUtils.ts:82](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L82) + +#### Parameters + +##### options + +`InterfaceBaseFetchMoreOptions`\<\{ `organizations`: [`InterfaceQueryOrganizationUserTags`](../../interfaces/interfaces/InterfaceQueryOrganizationUserTags.md)[]; \}\> + +#### Returns + +`void` + +*** + +### loading + +> **loading**: `boolean` + +Defined in: [src/utils/organizationTagsUtils.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L59) + +#### Inherited from + +`InterfaceBaseQueryResult.loading` + +*** + +### refetch()? + +> `optional` **refetch**: () => `void` + +Defined in: [src/utils/organizationTagsUtils.ts:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L61) + +#### Returns + +`void` + +#### Inherited from + +`InterfaceBaseQueryResult.refetch` diff --git a/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceTagAssignedMembersQuery.md b/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceTagAssignedMembersQuery.md new file mode 100644 index 0000000000..74f4513733 --- /dev/null +++ b/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceTagAssignedMembersQuery.md @@ -0,0 +1,81 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceTagAssignedMembersQuery + +Defined in: [src/utils/organizationTagsUtils.ts:101](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L101) + +## Extends + +- `InterfaceBaseQueryResult` + +## Properties + +### data? + +> `optional` **data**: `object` + +Defined in: [src/utils/organizationTagsUtils.ts:103](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L103) + +#### getAssignedUsers + +> **getAssignedUsers**: [`InterfaceQueryUserTagsAssignedMembers`](../../interfaces/interfaces/InterfaceQueryUserTagsAssignedMembers.md) + +*** + +### error? + +> `optional` **error**: `ApolloError` + +Defined in: [src/utils/organizationTagsUtils.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L60) + +#### Inherited from + +`InterfaceBaseQueryResult.error` + +*** + +### fetchMore() + +> **fetchMore**: (`options`) => `void` + +Defined in: [src/utils/organizationTagsUtils.ts:106](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L106) + +#### Parameters + +##### options + +`InterfaceBaseFetchMoreOptions`\<\{ `getAssignedUsers`: [`InterfaceQueryUserTagsAssignedMembers`](../../interfaces/interfaces/InterfaceQueryUserTagsAssignedMembers.md); \}\> + +#### Returns + +`void` + +*** + +### loading + +> **loading**: `boolean` + +Defined in: [src/utils/organizationTagsUtils.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L59) + +#### Inherited from + +`InterfaceBaseQueryResult.loading` + +*** + +### refetch()? + +> `optional` **refetch**: () => `void` + +Defined in: [src/utils/organizationTagsUtils.ts:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L61) + +#### Returns + +`void` + +#### Inherited from + +`InterfaceBaseQueryResult.refetch` diff --git a/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceTagUsersToAssignToQuery.md b/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceTagUsersToAssignToQuery.md new file mode 100644 index 0000000000..cd1433a2fb --- /dev/null +++ b/docs/docs/auto-docs/utils/organizationTagsUtils/interfaces/InterfaceTagUsersToAssignToQuery.md @@ -0,0 +1,81 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceTagUsersToAssignToQuery + +Defined in: [src/utils/organizationTagsUtils.ts:113](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L113) + +## Extends + +- `InterfaceBaseQueryResult` + +## Properties + +### data? + +> `optional` **data**: `object` + +Defined in: [src/utils/organizationTagsUtils.ts:115](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L115) + +#### getUsersToAssignTo + +> **getUsersToAssignTo**: [`InterfaceQueryUserTagsMembersToAssignTo`](../../interfaces/interfaces/InterfaceQueryUserTagsMembersToAssignTo.md) + +*** + +### error? + +> `optional` **error**: `ApolloError` + +Defined in: [src/utils/organizationTagsUtils.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L60) + +#### Inherited from + +`InterfaceBaseQueryResult.error` + +*** + +### fetchMore() + +> **fetchMore**: (`options`) => `void` + +Defined in: [src/utils/organizationTagsUtils.ts:118](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L118) + +#### Parameters + +##### options + +`InterfaceBaseFetchMoreOptions`\<\{ `getUsersToAssignTo`: [`InterfaceQueryUserTagsMembersToAssignTo`](../../interfaces/interfaces/InterfaceQueryUserTagsMembersToAssignTo.md); \}\> + +#### Returns + +`void` + +*** + +### loading + +> **loading**: `boolean` + +Defined in: [src/utils/organizationTagsUtils.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L59) + +#### Inherited from + +`InterfaceBaseQueryResult.loading` + +*** + +### refetch()? + +> `optional` **refetch**: () => `void` + +Defined in: [src/utils/organizationTagsUtils.ts:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L61) + +#### Returns + +`void` + +#### Inherited from + +`InterfaceBaseQueryResult.refetch` diff --git a/docs/docs/auto-docs/utils/organizationTagsUtils/type-aliases/SortedByType.md b/docs/docs/auto-docs/utils/organizationTagsUtils/type-aliases/SortedByType.md new file mode 100644 index 0000000000..1a92d3afac --- /dev/null +++ b/docs/docs/auto-docs/utils/organizationTagsUtils/type-aliases/SortedByType.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Type Alias: SortedByType + +> **SortedByType**: `"ASCENDING"` \| `"DESCENDING"` + +Defined in: [src/utils/organizationTagsUtils.ts:54](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L54) diff --git a/docs/docs/auto-docs/utils/organizationTagsUtils/type-aliases/TagActionType.md b/docs/docs/auto-docs/utils/organizationTagsUtils/type-aliases/TagActionType.md new file mode 100644 index 0000000000..ec48ecbffd --- /dev/null +++ b/docs/docs/auto-docs/utils/organizationTagsUtils/type-aliases/TagActionType.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Type Alias: TagActionType + +> **TagActionType**: `"assignToTags"` \| `"removeFromTags"` + +Defined in: [src/utils/organizationTagsUtils.ts:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L51) diff --git a/docs/docs/auto-docs/utils/organizationTagsUtils/variables/TAGS_QUERY_DATA_CHUNK_SIZE.md b/docs/docs/auto-docs/utils/organizationTagsUtils/variables/TAGS_QUERY_DATA_CHUNK_SIZE.md new file mode 100644 index 0000000000..b2262fd90a --- /dev/null +++ b/docs/docs/auto-docs/utils/organizationTagsUtils/variables/TAGS_QUERY_DATA_CHUNK_SIZE.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: TAGS\_QUERY\_DATA\_CHUNK\_SIZE + +> `const` **TAGS\_QUERY\_DATA\_CHUNK\_SIZE**: `10` = `10` + +Defined in: [src/utils/organizationTagsUtils.ts:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L48) diff --git a/docs/docs/auto-docs/utils/organizationTagsUtils/variables/dataGridStyle.md b/docs/docs/auto-docs/utils/organizationTagsUtils/variables/dataGridStyle.md new file mode 100644 index 0000000000..2cc2322549 --- /dev/null +++ b/docs/docs/auto-docs/utils/organizationTagsUtils/variables/dataGridStyle.md @@ -0,0 +1,103 @@ +[Admin Docs](/) + +*** + +# Variable: dataGridStyle + +> `const` **dataGridStyle**: `object` + +Defined in: [src/utils/organizationTagsUtils.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/organizationTagsUtils.ts#L12) + +## Type declaration + +#### & .MuiDataGrid-cell:focus + +> **MuiDataGrid-cell:focus**: `object` + +#### & .MuiDataGrid-cell:focus.outline + +> **outline**: `string` = `'2px solid #000'` + +#### & .MuiDataGrid-cell:focus.outlineOffset + +> **outlineOffset**: `string` = `'-2px'` + +#### & .MuiDataGrid-main + +> **MuiDataGrid-main**: `object` + +#### & .MuiDataGrid-main.borderRadius + +> **borderRadius**: `string` = `'0.1rem'` + +#### & .MuiDataGrid-root + +> **MuiDataGrid-root**: `object` + +#### & .MuiDataGrid-root.borderRadius + +> **borderRadius**: `string` = `'0.1rem'` + +#### & .MuiDataGrid-row:hover + +> **MuiDataGrid-row:hover**: `object` + +#### & .MuiDataGrid-row:hover.backgroundColor + +> **backgroundColor**: `string` = `'transparent'` + +#### & .MuiDataGrid-row:hover.boxShadow + +> **boxShadow**: `string` = `'0 0 0 1px rgba(0, 0, 0, 0.1)'` + +#### & .MuiDataGrid-row.Mui-hovered + +> **Mui-hovered**: `object` + +#### & .MuiDataGrid-row.Mui-hovered.backgroundColor + +> **backgroundColor**: `string` = `'transparent'` + +#### & .MuiDataGrid-row.Mui-hovered.boxShadow + +> **boxShadow**: `string` = `'0 0 0 1px rgba(0, 0, 0, 0.1)'` + +#### & .MuiDataGrid-topContainer + +> **MuiDataGrid-topContainer**: `object` + +#### & .MuiDataGrid-topContainer.position + +> **position**: `string` = `'fixed'` + +#### & .MuiDataGrid-topContainer.top + +> **top**: `number` = `290` + +#### & .MuiDataGrid-topContainer.zIndex + +> **zIndex**: `number` = `1` + +#### & .MuiDataGrid-virtualScrollerContent + +> **MuiDataGrid-virtualScrollerContent**: `object` + +#### & .MuiDataGrid-virtualScrollerContent.marginTop + +> **marginTop**: `number` = `6.5` + +#### &.MuiDataGrid-root .MuiDataGrid-cell:focus-within + +> **MuiDataGrid-cell:focus-within**: `object` + +#### &.MuiDataGrid-root .MuiDataGrid-cell:focus-within.outline + +> **outline**: `string` = `'none !important'` + +#### &.MuiDataGrid-root .MuiDataGrid-columnHeader:focus-within + +> **MuiDataGrid-columnHeader:focus-within**: `object` + +#### &.MuiDataGrid-root .MuiDataGrid-columnHeader:focus-within.outline + +> **outline**: `string` = `'none'` diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/Days.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/Days.md new file mode 100644 index 0000000000..8c72d3345c --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/Days.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: Days + +> `const` **Days**: [`WeekDays`](../../recurrenceTypes/enumerations/WeekDays.md)[] + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L24) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/allInstances.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/allInstances.md new file mode 100644 index 0000000000..3064c057f0 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/allInstances.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: allInstances + +> `const` **allInstances**: [`allInstances`](../../recurrenceTypes/enumerations/RecurringEventMutationType.md#allinstances) = `RecurringEventMutationType.allInstances` + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L46) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/dayNames.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/dayNames.md new file mode 100644 index 0000000000..89549bb5fa --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/dayNames.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Variable: dayNames + +> `const` **dayNames**: `object` + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:60](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L60) + +## Type declaration + +### FRIDAY + +> **FRIDAY**: `string` = `'Friday'` + +### MONDAY + +> **MONDAY**: `string` = `'Monday'` + +### SATURDAY + +> **SATURDAY**: `string` = `'Saturday'` + +### SUNDAY + +> **SUNDAY**: `string` = `'Sunday'` + +### THURSDAY + +> **THURSDAY**: `string` = `'Thursday'` + +### TUESDAY + +> **TUESDAY**: `string` = `'Tuesday'` + +### WEDNESDAY + +> **WEDNESDAY**: `string` = `'Wednesday'` diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/daysOptions.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/daysOptions.md new file mode 100644 index 0000000000..3b8e10a6e3 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/daysOptions.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: daysOptions + +> `const` **daysOptions**: `string`[] + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L21) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsAfter.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsAfter.md new file mode 100644 index 0000000000..e5f3b639de --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsAfter.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: endsAfter + +> `const` **endsAfter**: [`after`](../../recurrenceTypes/enumerations/RecurrenceEndOption.md#after) = `RecurrenceEndOption.after` + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L37) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsNever.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsNever.md new file mode 100644 index 0000000000..c026138a5b --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsNever.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: endsNever + +> `const` **endsNever**: [`never`](../../recurrenceTypes/enumerations/RecurrenceEndOption.md#never) = `RecurrenceEndOption.never` + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:35](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L35) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsOn.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsOn.md new file mode 100644 index 0000000000..b410a0c22f --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/endsOn.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: endsOn + +> `const` **endsOn**: [`on`](../../recurrenceTypes/enumerations/RecurrenceEndOption.md#on) = `RecurrenceEndOption.on` + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L36) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/frequencies.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/frequencies.md new file mode 100644 index 0000000000..1702fac2f7 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/frequencies.md @@ -0,0 +1,27 @@ +[Admin Docs](/) + +*** + +# Variable: frequencies + +> `const` **frequencies**: `object` + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L13) + +## Type declaration + +### DAILY + +> **DAILY**: `string` = `'Day'` + +### MONTHLY + +> **MONTHLY**: `string` = `'Month'` + +### WEEKLY + +> **WEEKLY**: `string` = `'Week'` + +### YEARLY + +> **YEARLY**: `string` = `'Year'` diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/mondayToFriday.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/mondayToFriday.md new file mode 100644 index 0000000000..da2c162bc1 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/mondayToFriday.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: mondayToFriday + +> `const` **mondayToFriday**: ([`MONDAY`](../../recurrenceTypes/enumerations/WeekDays.md#monday) \| [`TUESDAY`](../../recurrenceTypes/enumerations/WeekDays.md#tuesday) \| [`WEDNESDAY`](../../recurrenceTypes/enumerations/WeekDays.md#wednesday) \| [`THURSDAY`](../../recurrenceTypes/enumerations/WeekDays.md#thursday) \| [`FRIDAY`](../../recurrenceTypes/enumerations/WeekDays.md#friday))[] + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L55) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/monthNames.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/monthNames.md new file mode 100644 index 0000000000..14d17b797c --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/monthNames.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: monthNames + +> `const` **monthNames**: `string`[] + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:71](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L71) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/recurrenceEndOptions.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/recurrenceEndOptions.md new file mode 100644 index 0000000000..60649a590a --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/recurrenceEndOptions.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: recurrenceEndOptions + +> `const` **recurrenceEndOptions**: [`RecurrenceEndOption`](../../recurrenceTypes/enumerations/RecurrenceEndOption.md)[] + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L40) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/recurringEventMutationOptions.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/recurringEventMutationOptions.md new file mode 100644 index 0000000000..2cef659063 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/recurringEventMutationOptions.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: recurringEventMutationOptions + +> `const` **recurringEventMutationOptions**: [`RecurringEventMutationType`](../../recurrenceTypes/enumerations/RecurringEventMutationType.md)[] + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L48) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/thisAndFollowingInstances.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/thisAndFollowingInstances.md new file mode 100644 index 0000000000..273cf218ff --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/thisAndFollowingInstances.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: thisAndFollowingInstances + +> `const` **thisAndFollowingInstances**: [`thisAndFollowingInstances`](../../recurrenceTypes/enumerations/RecurringEventMutationType.md#thisandfollowinginstances) = `RecurringEventMutationType.thisAndFollowingInstances` + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L44) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/thisInstance.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/thisInstance.md new file mode 100644 index 0000000000..5ab1c31639 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/thisInstance.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: thisInstance + +> `const` **thisInstance**: [`thisInstance`](../../recurrenceTypes/enumerations/RecurringEventMutationType.md#thisinstance) = `RecurringEventMutationType.thisInstance` + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L43) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/weekDayOccurences.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/weekDayOccurences.md new file mode 100644 index 0000000000..157e0858ff --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceConstants/variables/weekDayOccurences.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: weekDayOccurences + +> `const` **weekDayOccurences**: `string`[] + +Defined in: [src/utils/recurrenceUtils/recurrenceConstants.ts:87](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceConstants.ts#L87) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/Frequency.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/Frequency.md new file mode 100644 index 0000000000..796223075d --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/Frequency.md @@ -0,0 +1,39 @@ +[Admin Docs](/) + +*** + +# Enumeration: Frequency + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:28](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L28) + +## Enumeration Members + +### DAILY + +> **DAILY**: `"DAILY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L29) + +*** + +### MONTHLY + +> **MONTHLY**: `"MONTHLY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:31](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L31) + +*** + +### WEEKLY + +> **WEEKLY**: `"WEEKLY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L30) + +*** + +### YEARLY + +> **YEARLY**: `"YEARLY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L32) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/RecurrenceEndOption.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/RecurrenceEndOption.md new file mode 100644 index 0000000000..267ae09b96 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/RecurrenceEndOption.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Enumeration: RecurrenceEndOption + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L48) + +## Enumeration Members + +### after + +> **after**: `"after"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L51) + +*** + +### never + +> **never**: `"never"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L49) + +*** + +### on + +> **on**: `"on"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:50](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L50) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/RecurringEventMutationType.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/RecurringEventMutationType.md new file mode 100644 index 0000000000..c8a7ad88df --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/RecurringEventMutationType.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Enumeration: RecurringEventMutationType + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:55](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L55) + +## Enumeration Members + +### allInstances + +> **allInstances**: `"allInstances"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L58) + +*** + +### thisAndFollowingInstances + +> **thisAndFollowingInstances**: `"thisAndFollowingInstances"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:57](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L57) + +*** + +### thisInstance + +> **thisInstance**: `"thisInstance"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:56](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L56) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/WeekDays.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/WeekDays.md new file mode 100644 index 0000000000..1dea11bcb8 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/enumerations/WeekDays.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Enumeration: WeekDays + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:36](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L36) + +## Enumeration Members + +### FRIDAY + +> **FRIDAY**: `"FRIDAY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:42](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L42) + +*** + +### MONDAY + +> **MONDAY**: `"MONDAY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:38](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L38) + +*** + +### SATURDAY + +> **SATURDAY**: `"SATURDAY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:43](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L43) + +*** + +### SUNDAY + +> **SUNDAY**: `"SUNDAY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:37](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L37) + +*** + +### THURSDAY + +> **THURSDAY**: `"THURSDAY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L41) + +*** + +### TUESDAY + +> **TUESDAY**: `"TUESDAY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:39](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L39) + +*** + +### WEDNESDAY + +> **WEDNESDAY**: `"WEDNESDAY"` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:40](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L40) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/interfaces/InterfaceRecurrenceRule.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/interfaces/InterfaceRecurrenceRule.md new file mode 100644 index 0000000000..8f9a3a33a6 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/interfaces/InterfaceRecurrenceRule.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceRecurrenceRule + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:17](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L17) + +## Properties + +### count + +> **count**: `number` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:23](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L23) + +*** + +### frequency + +> **frequency**: [`Frequency`](../enumerations/Frequency.md) + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L20) + +*** + +### interval + +> **interval**: `number` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L22) + +*** + +### recurrenceEndDate + +> **recurrenceEndDate**: `string` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L19) + +*** + +### recurrenceStartDate + +> **recurrenceStartDate**: `string` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:18](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L18) + +*** + +### weekDayOccurenceInMonth + +> **weekDayOccurenceInMonth**: `number` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:24](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L24) + +*** + +### weekDays + +> **weekDays**: [`WeekDays`](../enumerations/WeekDays.md)[] + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L21) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/interfaces/InterfaceRecurrenceRuleState.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/interfaces/InterfaceRecurrenceRuleState.md new file mode 100644 index 0000000000..fad9e69e28 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceTypes/interfaces/InterfaceRecurrenceRuleState.md @@ -0,0 +1,63 @@ +[Admin Docs](/) + +*** + +# Interface: InterfaceRecurrenceRuleState + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:6](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L6) + +## Properties + +### count + +> **count**: `number` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L12) + +*** + +### frequency + +> **frequency**: [`Frequency`](../enumerations/Frequency.md) + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:9](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L9) + +*** + +### interval + +> **interval**: `number` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:11](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L11) + +*** + +### recurrenceEndDate + +> **recurrenceEndDate**: `Date` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:8](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L8) + +*** + +### recurrenceStartDate + +> **recurrenceStartDate**: `Date` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:7](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L7) + +*** + +### weekDayOccurenceInMonth + +> **weekDayOccurenceInMonth**: `number` + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L13) + +*** + +### weekDays + +> **weekDays**: [`WeekDays`](../enumerations/WeekDays.md)[] + +Defined in: [src/utils/recurrenceUtils/recurrenceTypes.ts:10](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceTypes.ts#L10) diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/getRecurrenceRuleText.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/getRecurrenceRuleText.md new file mode 100644 index 0000000000..b16b988610 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/getRecurrenceRuleText.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: getRecurrenceRuleText() + +> **getRecurrenceRuleText**(`recurrenceRuleState`): `string` + +Defined in: [src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts#L22) + +## Parameters + +### recurrenceRuleState + +[`InterfaceRecurrenceRuleState`](../../recurrenceTypes/interfaces/InterfaceRecurrenceRuleState.md) + +## Returns + +`string` diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/getWeekDayOccurenceInMonth.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/getWeekDayOccurenceInMonth.md new file mode 100644 index 0000000000..948a92b2f2 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/getWeekDayOccurenceInMonth.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: getWeekDayOccurenceInMonth() + +> **getWeekDayOccurenceInMonth**(`date`): `number` + +Defined in: [src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts:126](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts#L126) + +## Parameters + +### date + +`Date` + +## Returns + +`number` diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/hasRecurrenceRuleChanged.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/hasRecurrenceRuleChanged.md new file mode 100644 index 0000000000..b6f12bfbc8 --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/hasRecurrenceRuleChanged.md @@ -0,0 +1,23 @@ +[Admin Docs](/) + +*** + +# Function: hasRecurrenceRuleChanged() + +> **hasRecurrenceRuleChanged**(`originalRecurrencerule`, `recurrenceRuleState`): `boolean` + +Defined in: [src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts:167](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts#L167) + +## Parameters + +### originalRecurrencerule + +[`InterfaceRecurrenceRule`](../../recurrenceTypes/interfaces/InterfaceRecurrenceRule.md) + +### recurrenceRuleState + +[`InterfaceRecurrenceRuleState`](../../recurrenceTypes/interfaces/InterfaceRecurrenceRuleState.md) + +## Returns + +`boolean` diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/haveInstanceDatesChanged.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/haveInstanceDatesChanged.md new file mode 100644 index 0000000000..8647a3f48d --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/haveInstanceDatesChanged.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Function: haveInstanceDatesChanged() + +> **haveInstanceDatesChanged**(`instanceOriginalStartDate`, `instanceOriginalEndDate`, `instanceNewStartDate`, `instanceNewEndDate`): `boolean` + +Defined in: [src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts:154](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts#L154) + +## Parameters + +### instanceOriginalStartDate + +`string` + +### instanceOriginalEndDate + +`string` + +### instanceNewStartDate + +`string` + +### instanceNewEndDate + +`string` + +## Returns + +`boolean` diff --git a/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/isLastOccurenceOfWeekDay.md b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/isLastOccurenceOfWeekDay.md new file mode 100644 index 0000000000..b48c9b51eb --- /dev/null +++ b/docs/docs/auto-docs/utils/recurrenceUtils/recurrenceUtilityFunctions/functions/isLastOccurenceOfWeekDay.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Function: isLastOccurenceOfWeekDay() + +> **isLastOccurenceOfWeekDay**(`date`): `boolean` + +Defined in: [src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts:136](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/recurrenceUtils/recurrenceUtilityFunctions.ts#L136) + +## Parameters + +### date + +`Date` + +## Returns + +`boolean` diff --git a/docs/docs/auto-docs/utils/timezoneUtils/dateTimeConfig/variables/dateTimeFields.md b/docs/docs/auto-docs/utils/timezoneUtils/dateTimeConfig/variables/dateTimeFields.md new file mode 100644 index 0000000000..17eda7e85e --- /dev/null +++ b/docs/docs/auto-docs/utils/timezoneUtils/dateTimeConfig/variables/dateTimeFields.md @@ -0,0 +1,19 @@ +[Admin Docs](/) + +*** + +# Variable: dateTimeFields + +> `const` **dateTimeFields**: `object` + +Defined in: [src/utils/timezoneUtils/dateTimeConfig.ts:3](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/timezoneUtils/dateTimeConfig.ts#L3) + +## Type declaration + +### directFields + +> **directFields**: `string`[] + +### pairedFields + +> **pairedFields**: `object`[] diff --git a/docs/docs/auto-docs/utils/timezoneUtils/dateTimeMiddleware/variables/requestMiddleware.md b/docs/docs/auto-docs/utils/timezoneUtils/dateTimeMiddleware/variables/requestMiddleware.md new file mode 100644 index 0000000000..f4a32a7b8d --- /dev/null +++ b/docs/docs/auto-docs/utils/timezoneUtils/dateTimeMiddleware/variables/requestMiddleware.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: requestMiddleware + +> `const` **requestMiddleware**: `any` + +Defined in: [src/utils/timezoneUtils/dateTimeMiddleware.ts:84](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/timezoneUtils/dateTimeMiddleware.ts#L84) diff --git a/docs/docs/auto-docs/utils/timezoneUtils/dateTimeMiddleware/variables/responseMiddleware.md b/docs/docs/auto-docs/utils/timezoneUtils/dateTimeMiddleware/variables/responseMiddleware.md new file mode 100644 index 0000000000..fcf6ace30c --- /dev/null +++ b/docs/docs/auto-docs/utils/timezoneUtils/dateTimeMiddleware/variables/responseMiddleware.md @@ -0,0 +1,9 @@ +[Admin Docs](/) + +*** + +# Variable: responseMiddleware + +> `const` **responseMiddleware**: `any` + +Defined in: [src/utils/timezoneUtils/dateTimeMiddleware.ts:94](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/timezoneUtils/dateTimeMiddleware.ts#L94) diff --git a/docs/docs/auto-docs/utils/useLocalstorage/functions/getItem.md b/docs/docs/auto-docs/utils/useLocalstorage/functions/getItem.md new file mode 100644 index 0000000000..613b3e6f8e --- /dev/null +++ b/docs/docs/auto-docs/utils/useLocalstorage/functions/getItem.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Function: getItem() + +> **getItem**(`prefix`, `key`): `any` + +Defined in: [src/utils/useLocalstorage.ts:29](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/useLocalstorage.ts#L29) + +Retrieves the stored value for the given key from local storage. + +## Parameters + +### prefix + +`string` + +Prefix to be added to the key, common for all keys. + +### key + +`string` + +The unique name identifying the value. + +## Returns + +`any` + +- The stored value for the given key from local storage. diff --git a/docs/docs/auto-docs/utils/useLocalstorage/functions/getStorageKey.md b/docs/docs/auto-docs/utils/useLocalstorage/functions/getStorageKey.md new file mode 100644 index 0000000000..045cce63e1 --- /dev/null +++ b/docs/docs/auto-docs/utils/useLocalstorage/functions/getStorageKey.md @@ -0,0 +1,31 @@ +[Admin Docs](/) + +*** + +# Function: getStorageKey() + +> **getStorageKey**(`prefix`, `key`): `string` + +Defined in: [src/utils/useLocalstorage.ts:19](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/useLocalstorage.ts#L19) + +Generates the prefixed key for storage. + +## Parameters + +### prefix + +`string` + +Prefix to be added to the key, common for all keys. + +### key + +`string` + +The unique name identifying the value. + +## Returns + +`string` + +- Prefixed key. diff --git a/docs/docs/auto-docs/utils/useLocalstorage/functions/removeItem.md b/docs/docs/auto-docs/utils/useLocalstorage/functions/removeItem.md new file mode 100644 index 0000000000..9514ef8f7a --- /dev/null +++ b/docs/docs/auto-docs/utils/useLocalstorage/functions/removeItem.md @@ -0,0 +1,29 @@ +[Admin Docs](/) + +*** + +# Function: removeItem() + +> **removeItem**(`prefix`, `key`): `void` + +Defined in: [src/utils/useLocalstorage.ts:51](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/useLocalstorage.ts#L51) + +Removes the value associated with the given key from local storage. + +## Parameters + +### prefix + +`string` + +Prefix to be added to the key, common for all keys. + +### key + +`string` + +The unique name identifying the value. + +## Returns + +`void` diff --git a/docs/docs/auto-docs/utils/useLocalstorage/functions/setItem.md b/docs/docs/auto-docs/utils/useLocalstorage/functions/setItem.md new file mode 100644 index 0000000000..48a744b50d --- /dev/null +++ b/docs/docs/auto-docs/utils/useLocalstorage/functions/setItem.md @@ -0,0 +1,35 @@ +[Admin Docs](/) + +*** + +# Function: setItem() + +> **setItem**(`prefix`, `key`, `value`): `void` + +Defined in: [src/utils/useLocalstorage.ts:41](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/useLocalstorage.ts#L41) + +Sets the value for the given key in local storage. + +## Parameters + +### prefix + +`string` + +Prefix to be added to the key, common for all keys. + +### key + +`string` + +The unique name identifying the value. + +### value + +`any` + +The value for the key. + +## Returns + +`void` diff --git a/docs/docs/auto-docs/utils/useLocalstorage/functions/useLocalStorage.md b/docs/docs/auto-docs/utils/useLocalstorage/functions/useLocalStorage.md new file mode 100644 index 0000000000..f2552bb504 --- /dev/null +++ b/docs/docs/auto-docs/utils/useLocalstorage/functions/useLocalStorage.md @@ -0,0 +1,25 @@ +[Admin Docs](/) + +*** + +# Function: useLocalStorage() + +> **useLocalStorage**(`prefix`): `InterfaceStorageHelper` + +Defined in: [src/utils/useLocalstorage.ts:61](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/useLocalstorage.ts#L61) + +Custom hook for simplified localStorage operations. + +## Parameters + +### prefix + +`string` = `PREFIX` + +Prefix to be added to the key, common for all keys. Default is 'Talawa-admin'. + +## Returns + +`InterfaceStorageHelper` + +- Functions to getItem, setItem, removeItem, and getStorageKey. diff --git a/docs/docs/auto-docs/utils/useSession/functions/default.md b/docs/docs/auto-docs/utils/useSession/functions/default.md new file mode 100644 index 0000000000..baa83617b8 --- /dev/null +++ b/docs/docs/auto-docs/utils/useSession/functions/default.md @@ -0,0 +1,24 @@ +[Admin Docs](/) + +*** + +# Function: default() + +> **default**(): `UseSessionReturnType` + +Defined in: [src/utils/useSession.tsx:30](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/utils/useSession.tsx#L30) + +Custom hook for managing user session timeouts in a React application. + +This hook handles: +- Starting and ending the user session. +- Displaying a warning toast at half of the session timeout duration. +- Logging the user out and displaying a session expiration toast when the session times out. +- Automatically resetting the timers when user activity is detected. +- Pausing session timers when the tab is inactive and resuming them when it becomes active again. + +## Returns + +`UseSessionReturnType` + +UseSessionReturnType - An object with methods to start and end the session, and to handle logout. diff --git a/3141 b/docs/docs/developer-guide/.gitignore similarity index 100% rename from 3141 rename to docs/docs/developer-guide/.gitignore diff --git a/docs/docs/docs/introduction.md b/docs/docs/docs/introduction.md new file mode 100644 index 0000000000..665ccc6da2 --- /dev/null +++ b/docs/docs/docs/introduction.md @@ -0,0 +1,42 @@ +--- +id: introduction +title: Introduction +slug: / +--- + +Talawa Admin is the web based administrative dashboard for the Talawa mobile app. + +## Core Features + +Talawa Admin has many core features that are explained in the sections below. + +### Admin Dashboard + +- Dashboard Provides Overview about the Admin's Organization. +- Displays Statistics like number of Members, Admins, Blocked Users & Membership Requests, etc. + +### `People` Page + +- This shows the list of people who have joined the organization. +- Admins can also approve membership requests from here and can also set the members permissions. + +### `Events` Page + +- These shows list of active `Events` in the organization. +- Admins can also post new events from this page. + +### `Contributions` Page + +- These shows a list of Members of `Contributors` who've donated to the Organization. +- Donations can be made from `Talawa` app and can be recurring or One time. + +### `Posts` Page + +- Shows a list of Posts posted within an Organization along with their likes and comments. +- Posts are posted by Members from the `Talawa` App. +- Admins can decide whether to keep or delete those posts. + +### `Plugins` Page + +- Contains `Plugin Store` from which the Admin can decide the features for the `Talawa` Mobile App. +- Admins can `Install` or `Uninstall` the Plugins and can also see the list of installed plugins separately. diff --git a/docs/docs/docs/plugins/implementing-plugins-example.md b/docs/docs/docs/plugins/implementing-plugins-example.md new file mode 100644 index 0000000000..23b3dccd83 --- /dev/null +++ b/docs/docs/docs/plugins/implementing-plugins-example.md @@ -0,0 +1,101 @@ +--- +id: implementing-plugins-example +title: Plugin Examples +--- + +:::note +Pre-Requisites : + +1. [Plugin Architecture ](./plugin-architecture.md) +2. [Implementing Plugins](./implementing-plugins.md) + +::: + +Previously we've seen an technical overview of how we can implement plugins for our features. + +Now let's see how we can implement a Donation feature as plugin and seeing it in actions. But before that let's take a look at the donation code. + +```js + CustomListTile( + key: homeModel!.keySPDonateUs, + index: 2, + type: TileType.option, + option: Options( + icon: Icon( + Icons.monetization_on, + color: Theme.of(context) + .colorScheme + .primary, + size: 30, + ), + title: AppLocalizations.of(context)! + .strictTranslate('Donate Us'), + subtitle: AppLocalizations.of(context)! + .strictTranslate( + 'Help us to develop for you', + ), + ), + onTapOption: () => donate(context, model), + ) +``` + +To see the entire file go [here](https://github.com/Palisadoesfoundation/talawa/blob/2a14faa4363ca26426fb2f9a8b39082c08e6597b/lib/views/after_auth_screens/profile/profile_page.dart) + +It is a simple list option that says " Donate Us " and upon clicking that you get dialog with text "Help us to develop for you" for doing the payment. + +Now let's follow the steps. + +## 1. Plugin Registration + +- Go to the `Plugin Store` and click on the `Add New` button. +- Give the name as `Donation` +- You add your information for `Creator Name` and `Description` fields. +- Your plugin should be at visible the store. + +let's wrap our widget with the `TalawaPluginProvider` widget as it comes in the type `B` of plugin + +## 2. Plugin Creation + +- Wrap the donation code with the `TalawaPluginProvider` widget as a `child` property. +- Add `Donation` to `pluginName` property. + +This is how the code will look like + +```js + TalawaPluginProvider( + pluginName: "Donation", + visible: true, + child: Column( + children: [ + CustomListTile( + key: homeModel!.keySPDonateUs, + index: 2, + type: TileType.option, + option: Options( + icon: Icon( + Icons.monetization_on, + color: Theme.of(context) + .colorScheme + .primary, + size: 30, + ), + title: AppLocalizations.of(context)! + .strictTranslate('Donate Us'), + subtitle: AppLocalizations.of(context)! + .strictTranslate( + 'Help us to develop for you', + ), + ), + onTapOption: () => donate(context, model), + ), + ], + ), + ) + +``` + +--- + +Congrats! you've successfully converted your feature to a plugin. Now you can install/uninstall `Donation` plugin from the `Plugin Store` of the [Talawa Admin](https://github.com/PalisadoesFoundation/talawa-admin) to see the plugin UI becoming visible if it's installed for that organization otherwise hidden. + +For development purposes to see the plugin even if it's uninstalled you can set the `serverVisible` property to `true` diff --git a/docs/docs/docs/plugins/implementing-plugins.md b/docs/docs/docs/plugins/implementing-plugins.md new file mode 100644 index 0000000000..41bf644461 --- /dev/null +++ b/docs/docs/docs/plugins/implementing-plugins.md @@ -0,0 +1,116 @@ +--- +id: implementing-plugins +title: Plugin Implementation +--- + +Plugins are existing features that are wrapped with some special logic or widgets to make them controllable. + +Plugin are activated from Plugin store of the Admin panel + +To implement features as plugins or to convert existing features into plugins, follow the below steps + +## Technical Overview of the Steps to Implement features as plugins + +### 1. Plugin Registration + +- Plugins have to be registered first before even they are created from the Plugin store in the `Talawa Admin` portal. This can be done by developer by creating an account in the admin portal and going to `Plugin Store`. +- Plugin Store can be accessed from navbar + +![Plugin Store Option in Navbar](/img/docs/plugin/plugin-store-navbar.PNG) + +- Once entered in store , you will see a list of available plugins + +![Plugin Store Sample Image](/img/docs/plugin/store.PNG) + +- Click on the `Add New` Button +- Enter the Details of the New Plugin and Click on `Create`. + +:::caution + +The `Name` of plugin provided is very important and will be used for later steps. +Make sure to use unique names with trailing spaces. + +::: + +In next step we'll see how to create plugins + +### 2. Plugin Creation + +Based on where the feature UI is there are currently 2 ways to implement your features as plugins. Let's call them type A and B features for now. + +![Plugin Store Option in Navbar](/img/docs/plugin/plugin-types.PNG) + +#### A. Feature that are located in the bottom navigation bar + +- For the features in the navbar we have maintained a list of them in [main_scree.dart](https://github.com/PalisadoesFoundation/talawa/blob/develop/lib/views/main_screen.dart) file.It has detailed comments to help you understand the operations. + +- `renderBottomNavBarPlugins` method combines current features and plugins in navbar and generates an array containing `navBarItems` and `navbarClasses` and then it is returned to `children` property of the navbar UI code. +- Let's understand some important variables before understanding the process of conversion. + +:::caution + +The `Name` of property provided to any of the below variables should the exactly same for that feature only without any trailing spaces. Duplicate or Existing plugin names shouldn't be used keep the application consistent and predictable. + +::: + +1. `navBarItems` + - Type `[ BottomNavigationBarItem() ]` + - contains list of `BottomNavigationBarItem` widget to show `icon` and `text` to the navbar options. + - if your feature is not a plugin it should be added to this array. +2. `navBarClasses` + - Type `[Widgets]` + - Array that contains the Widgets to be rendered on the navbar +3. `navNameClasses` + - Type ` Map` + - Maps the feature names with their proper Icons and Widgets (named as `class`) used in navbar. +4. `navNameIcon` + - Type `Map` + - Contains a key value pair of the feature name in the navbar and it's corresponding plugin. + +#### B. Other Features + +- `TalawaPluginProvider` is Flutter widget that is used here . The Source can be viewed [here](https://github.com/PalisadoesFoundation/talawa/blob/develop/lib/plugins/talawa_plugin_provider.dart) +- Here's the basic use of `TalawaPluginProvider` with `Text()` widget.Let's discuss it's properties + +```js + const TalawaPluginProvider(child: Text("Demo") , + visible: true, + pluginName: "My Plugin" + ); +``` + +1. `child` + + - Type `Widget?` + - It can be any flutter UI widget like `Container()`, `Text()`, `Row()`,etc. For example if your features is encapsulated within an `Container()` widget then wrap that widget into the `TalawaPluginProvider` . + +2. `visible` + + - Type `Boolean` + - True if plugin is Installed and plugin will be visible, Otherwise false hence plugin is hidden. + +3. `pluginName` + - Type `String` + - Contains the name of the plugin. Make sure that the name provided here should match with the plugin name registered on the store from the + [Step 1 A ](#a-feature-that-are-located-in-the-bottom-navigation-bar) + - For example. If plugin stored on the store as `Members List` then here exactly enter `Members List` without any trialing spaces. + + + +#### Additional properties : [For Development Purpose Only] + + + +4. `serverVisible` + + - Type `Boolean` + - True will make all plugins visible if set to `true` otherwise `false` won't change anything. + - This property is accessible for the developers only as it can be only set during development phase. We can see that it is defined in build method of the widget. + + ```js + Widget build(BuildContext context) { + var serverVisible = false; + serverVisible = checkFromPluginList(); + return serverVisible || visible ? child! : Container(); + } + ``` diff --git a/docs/docs/docs/plugins/plugin-architecture.md b/docs/docs/docs/plugins/plugin-architecture.md new file mode 100644 index 0000000000..661af27eee --- /dev/null +++ b/docs/docs/docs/plugins/plugin-architecture.md @@ -0,0 +1,69 @@ +--- +id: plugin-architecture +title: Plugin Architecture +--- + +# Plugin Architecture + +Plugin Architecture provides talawa projects an ability to control latent [Talawa Mobile App](https://docs.talawa.io/docs/developers/talawa/talawa-introduction) features from the [Talawa Admin](https://docs.talawa.io/docs/developers/talawa-admin/talawa-admin-introduction) Web Portal. + + + +## Plugin + +A Plugin is a feature in Talawa Mobile App that is controlled by the Admins of that organization. By having the control admins can decide the accessibility of that feature for the organization members. + +Programmatically the logic of this Plugin is stored in the mobile app but it's inaccessible to the users until the admin of the organization installs that plugin. + +You first have to be register the Plugins from the `Plugin store` in order to install them from the Talawa Admin. + +## High Level Overview of Plugin Architecture + +Let's discuss the role of the different apps to make the plugin architecture work. + +### Talawa Admin + +Admin Provides `Plugin Store` where has the following functionalities: + +- Ability to install or uninstall the plugins. +- Ability to Toggle list of installed and available plugins. +- Ability to Search the plugin using SearchBar (provided on the right) . + +#### Example + +![Plugin Store Sample Image](/img/docs/plugin/store.PNG) + +### Talawa API + +It is a nodeJS API that is used to interface with the database containing list of the plugins with their different attributes. + +A sample Plugin Model can have the below properties. + +```js +Plugin : { + pluginName: String, // plugin name + pluginCreatedBy: String, // name of the creator + pluginDesc : String, // description + pluginInstallStatus : Boolean, // TRUE if installed otherwise FALSE + installedOrgs : [ID] // a list containing ID of the organization who have installed the plugin +} +``` + +### Talawa + +Plugin in the mobile App are mainly focused for the features on the navbar.but other functionalities can also be implemented as plugins using the `TalawaPluginProvider` Flutter Widget. +![Talawa Mobile App ](/img/docs/plugin/talawa.PNG) + +## Plugin Store + +## Installing and Uninstalling Plugins + +The Following video showcases process of installing the plugin. We are uninstalling `Events` feature from the talawa app. + +:::note + +Admin portal and Talawa app must be of same organizations + +::: + + diff --git a/docs/docs/intro.md b/docs/docs/intro.md deleted file mode 100644 index 45e8604c8b..0000000000 --- a/docs/docs/intro.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -sidebar_position: 1 ---- - -# Tutorial Intro - -Let's discover **Docusaurus in less than 5 minutes**. - -## Getting Started - -Get started by **creating a new site**. - -Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**. - -### What you'll need - -- [Node.js](https://nodejs.org/en/download/) version 18.0 or above: - - When installing Node.js, you are recommended to check all checkboxes related to dependencies. - -## Generate a new site - -Generate a new Docusaurus site using the **classic template**. - -The classic template will automatically be added to your project after you run the command: - -```bash -npm init docusaurus@latest my-website classic -``` - -You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. - -The command also installs all necessary dependencies you need to run Docusaurus. - -## Start your site - -Run the development server: - -```bash -cd my-website -npm run start -``` - -The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there. - -The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. - -Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes. diff --git a/docs/docs/tutorial-basics/_category_.json b/docs/docs/tutorial-basics/_category_.json deleted file mode 100644 index 2e6db55b1e..0000000000 --- a/docs/docs/tutorial-basics/_category_.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "label": "Tutorial - Basics", - "position": 2, - "link": { - "type": "generated-index", - "description": "5 minutes to learn the most important Docusaurus concepts." - } -} diff --git a/docs/docs/tutorial-basics/congratulations.md b/docs/docs/tutorial-basics/congratulations.md deleted file mode 100644 index 04771a00b7..0000000000 --- a/docs/docs/tutorial-basics/congratulations.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -sidebar_position: 6 ---- - -# Congratulations! - -You have just learned the **basics of Docusaurus** and made some changes to the **initial template**. - -Docusaurus has **much more to offer**! - -Have **5 more minutes**? Take a look at **[versioning](../tutorial-extras/manage-docs-versions.md)** and **[i18n](../tutorial-extras/translate-your-site.md)**. - -Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610) - -## What's next? - -- Read the [official documentation](https://docusaurus.io/) -- Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config) -- Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration) -- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout) -- Add a [search bar](https://docusaurus.io/docs/search) -- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase) -- Get involved in the [Docusaurus Community](https://docusaurus.io/community/support) diff --git a/docs/docs/tutorial-basics/create-a-blog-post.md b/docs/docs/tutorial-basics/create-a-blog-post.md deleted file mode 100644 index 550ae17ee1..0000000000 --- a/docs/docs/tutorial-basics/create-a-blog-post.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -sidebar_position: 3 ---- - -# Create a Blog Post - -Docusaurus creates a **page for each blog post**, but also a **blog index page**, a **tag system**, an **RSS** feed... - -## Create your first Post - -Create a file at `blog/2021-02-28-greetings.md`: - -```md title="blog/2021-02-28-greetings.md" ---- -slug: greetings -title: Greetings! -authors: - - name: Joel Marcey - title: Co-creator of Docusaurus 1 - url: https://github.com/JoelMarcey - image_url: https://github.com/JoelMarcey.png - - name: Sébastien Lorber - title: Docusaurus maintainer - url: https://sebastienlorber.com - image_url: https://github.com/slorber.png -tags: [greetings] ---- - -Congratulations, you have made your first post! - -Feel free to play around and edit this post as much as you like. -``` - -A new blog post is now available at [http://localhost:3000/blog/greetings](http://localhost:3000/blog/greetings). diff --git a/docs/docs/tutorial-basics/create-a-document.md b/docs/docs/tutorial-basics/create-a-document.md deleted file mode 100644 index c22fe29446..0000000000 --- a/docs/docs/tutorial-basics/create-a-document.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -sidebar_position: 2 ---- - -# Create a Document - -Documents are **groups of pages** connected through: - -- a **sidebar** -- **previous/next navigation** -- **versioning** - -## Create your first Doc - -Create a Markdown file at `docs/hello.md`: - -```md title="docs/hello.md" -# Hello - -This is my **first Docusaurus document**! -``` - -A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello). - -## Configure the Sidebar - -Docusaurus automatically **creates a sidebar** from the `docs` folder. - -Add metadata to customize the sidebar label and position: - -```md title="docs/hello.md" {1-4} ---- -sidebar_label: 'Hi!' -sidebar_position: 3 ---- - -# Hello - -This is my **first Docusaurus document**! -``` - -It is also possible to create your sidebar explicitly in `sidebars.js`: - -```js title="sidebars.js" -export default { - tutorialSidebar: [ - 'intro', - // highlight-next-line - 'hello', - { - type: 'category', - label: 'Tutorial', - items: ['tutorial-basics/create-a-document'], - }, - ], -}; -``` diff --git a/docs/docs/tutorial-basics/create-a-page.md b/docs/docs/tutorial-basics/create-a-page.md deleted file mode 100644 index 20e2ac3005..0000000000 --- a/docs/docs/tutorial-basics/create-a-page.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -sidebar_position: 1 ---- - -# Create a Page - -Add **Markdown or React** files to `src/pages` to create a **standalone page**: - -- `src/pages/index.js` → `localhost:3000/` -- `src/pages/foo.md` → `localhost:3000/foo` -- `src/pages/foo/bar.js` → `localhost:3000/foo/bar` - -## Create your first React Page - -Create a file at `src/pages/my-react-page.js`: - -```jsx title="src/pages/my-react-page.js" -import React from 'react'; -import Layout from '@theme/Layout'; - -export default function MyReactPage() { - return ( - -

My React page

-

This is a React page

-
- ); -} -``` - -A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page). - -## Create your first Markdown Page - -Create a file at `src/pages/my-markdown-page.md`: - -```mdx title="src/pages/my-markdown-page.md" -# My Markdown page - -This is a Markdown page -``` - -A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page). diff --git a/docs/docs/tutorial-basics/deploy-your-site.md b/docs/docs/tutorial-basics/deploy-your-site.md deleted file mode 100644 index 1c50ee063e..0000000000 --- a/docs/docs/tutorial-basics/deploy-your-site.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -sidebar_position: 5 ---- - -# Deploy your site - -Docusaurus is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**). - -It builds your site as simple **static HTML, JavaScript and CSS files**. - -## Build your site - -Build your site **for production**: - -```bash -npm run build -``` - -The static files are generated in the `build` folder. - -## Deploy your site - -Test your production build locally: - -```bash -npm run serve -``` - -The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/). - -You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**). diff --git a/docs/docs/tutorial-basics/markdown-features.mdx b/docs/docs/tutorial-basics/markdown-features.mdx deleted file mode 100644 index 35e00825ed..0000000000 --- a/docs/docs/tutorial-basics/markdown-features.mdx +++ /dev/null @@ -1,152 +0,0 @@ ---- -sidebar_position: 4 ---- - -# Markdown Features - -Docusaurus supports **[Markdown](https://daringfireball.net/projects/markdown/syntax)** and a few **additional features**. - -## Front Matter - -Markdown documents have metadata at the top called [Front Matter](https://jekyllrb.com/docs/front-matter/): - -```text title="my-doc.md" -// highlight-start ---- -id: my-doc-id -title: My document title -description: My document description -slug: /my-custom-url ---- -// highlight-end - -## Markdown heading - -Markdown text with [links](./hello.md) -``` - -## Links - -Regular Markdown links are supported, using url paths or relative file paths. - -```md -Let's see how to [Create a page](/create-a-page). -``` - -```md -Let's see how to [Create a page](./create-a-page.md). -``` - -**Result:** Let's see how to [Create a page](./create-a-page.md). - -## Images - -Regular Markdown images are supported. - -You can use absolute paths to reference images in the static directory (`static/img/docusaurus.png`): - -```md -![Docusaurus logo](/img/docusaurus.png) -``` - -![Docusaurus logo](/img/docusaurus.png) - -You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them: - -```md -![Docusaurus logo](./img/docusaurus.png) -``` - -## Code Blocks - -Markdown code blocks are supported with Syntax highlighting. - -````md -```jsx title="src/components/HelloDocusaurus.js" -function HelloDocusaurus() { - return

Hello, Docusaurus!

; -} -``` -```` - -```jsx title="src/components/HelloDocusaurus.js" -function HelloDocusaurus() { - return

Hello, Docusaurus!

; -} -``` - -## Admonitions - -Docusaurus has a special syntax to create admonitions and callouts: - -```md -:::tip My tip - -Use this awesome feature option - -::: - -:::danger Take care - -This action is dangerous - -::: -``` - -:::tip My tip - -Use this awesome feature option - -::: - -:::danger Take care - -This action is dangerous - -::: - -## MDX and React Components - -[MDX](https://mdxjs.com/) can make your documentation more **interactive** and allows using any **React components inside Markdown**: - -```jsx -export const Highlight = ({children, color}) => ( - { - alert(`You clicked the color ${color} with label ${children}`) - }}> - {children} - -); - -This is Docusaurus green ! - -This is Facebook blue ! -``` - -export const Highlight = ({children, color}) => ( - { - alert(`You clicked the color ${color} with label ${children}`); - }}> - {children} - -); - -This is Docusaurus green ! - -This is Facebook blue ! diff --git a/docs/docs/tutorial-extras/_category_.json b/docs/docs/tutorial-extras/_category_.json deleted file mode 100644 index a8ffcc1930..0000000000 --- a/docs/docs/tutorial-extras/_category_.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "label": "Tutorial - Extras", - "position": 3, - "link": { - "type": "generated-index" - } -} diff --git a/docs/docs/tutorial-extras/img/docsVersionDropdown.png b/docs/docs/tutorial-extras/img/docsVersionDropdown.png deleted file mode 100644 index 97e4164618..0000000000 Binary files a/docs/docs/tutorial-extras/img/docsVersionDropdown.png and /dev/null differ diff --git a/docs/docs/tutorial-extras/img/localeDropdown.png b/docs/docs/tutorial-extras/img/localeDropdown.png deleted file mode 100644 index e257edc1f9..0000000000 Binary files a/docs/docs/tutorial-extras/img/localeDropdown.png and /dev/null differ diff --git a/docs/docs/tutorial-extras/manage-docs-versions.md b/docs/docs/tutorial-extras/manage-docs-versions.md deleted file mode 100644 index ccda0b9076..0000000000 --- a/docs/docs/tutorial-extras/manage-docs-versions.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -sidebar_position: 1 ---- - -# Manage Docs Versions - -Docusaurus can manage multiple versions of your docs. - -## Create a docs version - -Release a version 1.0 of your project: - -```bash -npm run docusaurus docs:version 1.0 -``` - -The `docs` folder is copied into `versioned_docs/version-1.0` and `versions.json` is created. - -Your docs now have 2 versions: - -- `1.0` at `http://localhost:3000/docs/` for the version 1.0 docs -- `current` at `http://localhost:3000/docs/next/` for the **upcoming, unreleased docs** - -## Add a Version Dropdown - -To navigate seamlessly across versions, add a version dropdown. - -Modify the `docusaurus.config.js` file: - -```js title="docusaurus.config.js" -export default { - themeConfig: { - navbar: { - items: [ - // highlight-start - { - type: 'docsVersionDropdown', - }, - // highlight-end - ], - }, - }, -}; -``` - -The docs version dropdown appears in your navbar: - -![Docs Version Dropdown](./img/docsVersionDropdown.png) - -## Update an existing version - -It is possible to edit versioned docs in their respective folder: - -- `versioned_docs/version-1.0/hello.md` updates `http://localhost:3000/docs/hello` -- `docs/hello.md` updates `http://localhost:3000/docs/next/hello` diff --git a/docs/docs/tutorial-extras/translate-your-site.md b/docs/docs/tutorial-extras/translate-your-site.md deleted file mode 100644 index b5a644abdf..0000000000 --- a/docs/docs/tutorial-extras/translate-your-site.md +++ /dev/null @@ -1,88 +0,0 @@ ---- -sidebar_position: 2 ---- - -# Translate your site - -Let's translate `docs/intro.md` to French. - -## Configure i18n - -Modify `docusaurus.config.js` to add support for the `fr` locale: - -```js title="docusaurus.config.js" -export default { - i18n: { - defaultLocale: 'en', - locales: ['en', 'fr'], - }, -}; -``` - -## Translate a doc - -Copy the `docs/intro.md` file to the `i18n/fr` folder: - -```bash -mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/ - -cp docs/intro.md i18n/fr/docusaurus-plugin-content-docs/current/intro.md -``` - -Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` in French. - -## Start your localized site - -Start your site on the French locale: - -```bash -npm run start -- --locale fr -``` - -Your localized site is accessible at [http://localhost:3000/fr/](http://localhost:3000/fr/) and the `Getting Started` page is translated. - -:::caution - -In development, you can only use one locale at a time. - -::: - -## Add a Locale Dropdown - -To navigate seamlessly across languages, add a locale dropdown. - -Modify the `docusaurus.config.js` file: - -```js title="docusaurus.config.js" -export default { - themeConfig: { - navbar: { - items: [ - // highlight-start - { - type: 'localeDropdown', - }, - // highlight-end - ], - }, - }, -}; -``` - -The locale dropdown now appears in your navbar: - -![Locale Dropdown](./img/localeDropdown.png) - -## Build your localized site - -Build your site for a specific locale: - -```bash -npm run build -- --locale fr -``` - -Or build your site to include all the locales at once: - -```bash -npm run build -``` diff --git a/talawa-admin-docs/Dockerfile b/docs/docs/user-guide/.gitignore similarity index 100% rename from talawa-admin-docs/Dockerfile rename to docs/docs/user-guide/.gitignore diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts index 2622ca65b9..c108b849bc 100644 --- a/docs/docusaurus.config.ts +++ b/docs/docusaurus.config.ts @@ -62,27 +62,27 @@ const config: Config = { }, items: [ { - type: 'docSidebar', - sidebarId: 'tutorialSidebar', label: 'General', position: 'left', + href: 'https://docs.talawa.io/docs', + target: '_self', }, { label: 'Mobile Guide', position: 'left', - href: 'https://docs-mobile.talawa.io/', + href: 'https://docs-mobile.talawa.io/docs', target: '_self', }, { label: 'Admin Guide', position: 'left', - href: 'https://docs-admin.talawa.io/', + href: 'https://docs-admin.talawa.io/docs', target: '_self', }, { label: 'API Guide', position: 'left', - href: 'https://docs-api.talawa.io/', + href: 'https://docs-api.talawa.io/docs', target: '_self', }, diff --git a/docs/package.json b/docs/package.json index 65e9e455b5..8e308fcee7 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,8 +15,8 @@ "typecheck": "tsc" }, "dependencies": { - "@docusaurus/core": "3.6.3", - "@docusaurus/preset-classic": "3.6.3", + "@docusaurus/core": "^3.7.0", + "@docusaurus/preset-classic": "^3.7.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", "docusaurus": "^1.14.7", @@ -25,9 +25,9 @@ "react-dom": "^18.0.0" }, "devDependencies": { - "@docusaurus/module-type-aliases": "3.6.3", + "@docusaurus/module-type-aliases": "^3.7.0", "@docusaurus/tsconfig": "3.6.3", - "@docusaurus/types": "3.6.3", + "@docusaurus/types": "^3.7.0", "typescript": "~5.6.2" }, "browserslist": { diff --git a/docs/sidebars.ts b/docs/sidebars.ts index 68d3ae97bc..f5225082b5 100644 --- a/docs/sidebars.ts +++ b/docs/sidebars.ts @@ -14,9 +14,27 @@ import type { SidebarsConfig } from '@docusaurus/plugin-content-docs'; */ const sidebars: SidebarsConfig = { // By default, Docusaurus generates a sidebar from the docs folder structure - tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }], + tutorialSidebar: [ + 'docs/introduction', + { + type: 'category', + label: 'Manual', + items: ['INSTALLATION', 'CONFIGURING'], + }, + { + type: 'category', + label: 'Plugins', + items: [{ type: 'autogenerated', dirName: 'docs/plugins' }], + }, + + { + type: 'category', + label: 'Code Documentation', + items: [{ type: 'autogenerated', dirName: 'auto-docs' }], + }, + ], - // But you can create a sidebar manually + // But you can create a sidebar manually like this /* tutorialSidebar: [ 'intro', diff --git a/docs/src/components/GuideCards/GuideCards.css b/docs/src/components/GuideCards/GuideCards.css new file mode 100644 index 0000000000..af7ab4940d --- /dev/null +++ b/docs/src/components/GuideCards/GuideCards.css @@ -0,0 +1,85 @@ +.card-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 4rem; + padding: 20px; + height: fit-content; +} + +.card { + background-color: var(--ifm-color-emphasis-100); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + padding: 20px; + text-align: left; + transition: + transform 0.2s ease-in-out, + box-shadow 0.2s ease-in-out; + display: flex; + flex-direction: column; + height: 100%; + width: 100%; + border-radius: 10px; +} + +.guide-header { + display: inline-flex; + align-items: baseline; + gap: 15px; + margin-bottom: 20px; +} + +.svg-icon { + width: 35px; + height: 24px; + fill: currentColor; + flex-shrink: 0; + margin-left: 1rem; +} + +.card-item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 1rem; + margin: 0.5rem 0; + border-radius: 12px; + text-decoration: none; + color: inherit; + transition: background-color 0.2s; +} + +.card-item:hover { + background-color: var(--ifm-color-emphasis-200); + text-decoration: none; + cursor: pointer; +} + +.card h3 { + color: var(--secondary-blue-900); + font-size: 1.1rem; + margin-bottom: 0.5rem; +} + +.card p { + color: var(--primary-neutral-600); + line-height: 1.5; + padding: 0; + margin-bottom: 20px; +} + +.card:hover { + border: 1px solid var(--ifm-color-emphasis-200); + transform: translateY(-5px); +} + +@media (max-width: 768px) { + .card-grid { + grid-template-columns: 1fr; + height: fit-content; + } + + .card { + justify-content: center; + height: 300px; + } +} diff --git a/docs/src/components/GuideCards/GuideCards.tsx b/docs/src/components/GuideCards/GuideCards.tsx new file mode 100644 index 0000000000..becdcca381 --- /dev/null +++ b/docs/src/components/GuideCards/GuideCards.tsx @@ -0,0 +1,97 @@ +import './GuideCards.css'; + +const GuideCards = () => { + const ChevronRightArrowIcon = () => ( + + + + ); + + const DeveloperGuideIcon = () => ( + + + + ); + + const UserGuideIcon = () => ( + + + + ); + const Guides = [ + { + title: 'Developer Guides', + icon: , + items: [ + { + title: 'Manual Documentation', + description: + 'Setup guides, best practices, and contribution guidelines', + href: '/docs/INSTALLATION', + }, + { + title: 'Plugins Documentation', + description: 'Explore Talawa Plugins documentation Guide', + href: '/docs/docs/plugins/implementing-plugins-example', + }, + { + title: 'Code Documentation', + description: 'Explore API references and component documentation', + href: '/docs/INSTALLATION', + }, + ], + }, + { + title: 'User Guides', + icon: , + items: [ + { + title: 'Getting Started', + description: 'Learn the basics of using Talawa', + }, + { + title: 'Advanced Features', + description: 'Detailed guides for power users', + }, + ], + }, + ]; + + return ( +
+
+ {Guides.map((guide, index) => ( +
+
+ {guide.icon} +

{guide.title}

+
+ {guide.items.map((item) => ( + +
+

{item.title}

+

{item.description}

+
+ +
+ ))} +
+ ))} +
+
+ ); +}; + +export default GuideCards; diff --git a/docs/src/components/HeroImage/HeroSection.css b/docs/src/components/HeroImage/HeroSection.css new file mode 100644 index 0000000000..116455d4d4 --- /dev/null +++ b/docs/src/components/HeroImage/HeroSection.css @@ -0,0 +1,31 @@ +.heroBanner_qdFl { + background-color: transparent; +} + +.header-image { + max-height: 60vh; + margin: auto; + padding: 0; +} + +.Hero, +.heroBanner_qdFl { + padding-bottom: 0 !important; +} + +.hero-image-section { + display: flex; + justify-content: center; + padding-top: 2rem; +} + +.hero-image { + height: 100%; +} + +@media (min-width: 480px) { + .hero-image-section { + min-height: 600px; + max-height: 950px; + } +} diff --git a/docs/src/components/HeroImage/HeroSection.tsx b/docs/src/components/HeroImage/HeroSection.tsx new file mode 100644 index 0000000000..ccc6b1f08b --- /dev/null +++ b/docs/src/components/HeroImage/HeroSection.tsx @@ -0,0 +1,31 @@ +import './HeroSection.css'; +import React, { useEffect } from 'react'; + +export default function HeroSection() { + useEffect(() => { + const script = document.createElement('script'); + script.src = + 'https://unpkg.com/@lottiefiles/lottie-player@2.0.8/dist/lottie-player.js'; + script.async = true; + document.body.appendChild(script); + return () => { + document.body.removeChild(script); + }; + }, []); + + return ( +
+
+ {/* React.createElement is used to suppress TypeScript errors as VS code throws an error for lottie-player othe */} + {React.createElement('lottie-player', { + src: 'https://lottie.host/c3d8ee59-5c73-46f7-8c4e-a66763f5eba3/80bnwExY98.json', + background: 'transparent', + speed: '1', + loop: true, + autoplay: true, + style: { height: '100%' }, + })} +
+
+ ); +} diff --git a/docs/src/components/HomepageFeatures/index.tsx b/docs/src/components/HomepageFeatures/index.tsx deleted file mode 100644 index 7e72738d82..0000000000 --- a/docs/src/components/HomepageFeatures/index.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import clsx from 'clsx'; -import Heading from '@theme/Heading'; -import styles from './styles.module.css'; - -type FeatureItem = { - title: string; - Svg: React.ComponentType>; - description: JSX.Element; -}; - -const FeatureList: FeatureItem[] = [ - { - title: 'Easy to Use', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, - description: ( - <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. - - ), - }, - { - title: 'Focus on What Matters', - Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, - description: ( - <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. - - ), - }, - { - title: 'Powered by React', - Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, - description: ( - <> - Extend or customize your website layout by reusing React. Docusaurus can - be extended while reusing the same header and footer. - - ), - }, -]; - -function Feature({ title, Svg, description }: FeatureItem) { - return ( -
-
- -
-
- {title} -

{description}

-
-
- ); -} - -export default function HomepageFeatures(): JSX.Element { - return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
-
- ); -} diff --git a/docs/src/components/HomepageFeatures/styles.module.css b/docs/src/components/HomepageFeatures/styles.module.css deleted file mode 100644 index b248eb2e5d..0000000000 --- a/docs/src/components/HomepageFeatures/styles.module.css +++ /dev/null @@ -1,11 +0,0 @@ -.features { - display: flex; - align-items: center; - padding: 2rem 0; - width: 100%; -} - -.featureSvg { - height: 200px; - width: 200px; -} diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index f0f927b720..65d34bb862 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -25,7 +25,7 @@ --ifm-color-emphasis-0: #fff; --ifm-color-primary: #1e56e3; --ifm-background-surface-color: var(--ifm-color-white); - --ifm-menu-color: var(--ifm-color-gray-600); + /* --ifm-menu-color: var(--ifm-color-gray-600); */ --ifm-toc-link-color: var(--ifm-color-gray-600); --ifm-code-font-size: 95%; --ifm-toc-border-color: transparent; @@ -46,7 +46,7 @@ Consolas, 'Liberation Mono', 'Courier New', monospace; } -/* Dak mode css */ +/* Dark mode css */ html[data-theme='dark'] { --ifm-background-color: #111927; @@ -98,8 +98,7 @@ h1.docTitle_node_modules-\@docusaurus-theme-classic-src-theme-DocItem- { .menu__link, .menu * { line-height: 1.5; - font-size: 0.7rem; - padding-left: 0.5rem; + font-size: 0.72rem; padding-bottom: 0; text-transform: uppercase; font-weight: 700; @@ -110,9 +109,39 @@ h1.docTitle_node_modules-\@docusaurus-theme-classic-src-theme-DocItem- { border-bottom: 1px solid var(--next-prev-border-color); } -.menu__list ul { - margin-left: 15px; - margin-right: 15px; +/* Target specifically the link text */ +.menu__link { + white-space: normal !important; + word-break: break-word !important; + overflow-wrap: break-word !important; + width: 100% !important; + max-width: 100% !important; + line-height: 1.2 !important; + padding-right: 1rem !important; +} + +/* Target the container of menu items */ +.menu__list-item { + width: 100% !important; + padding-right: 0 !important; +} + +/* Ensure the menu itself has proper width */ +.menu__list { + width: 100% !important; +} + +/* Target the entire menu container */ +.theme-doc-sidebar-menu { + width: 100% !important; + max-width: 100% !important; +} + +@media (min-width: 997px) { + .menu_SIkG { + flex-grow: 1; + padding: 1rem !important; + } } .markdown > h2 { @@ -164,6 +193,14 @@ h1.docTitle_node_modules-\@docusaurus-theme-classic-src-theme-DocItem- { color: var(--ifm-navbar-link-color); } +.markdown { + --ifm-h1-vertical-rhythm-top: 3; + --ifm-h2-vertical-rhythm-top: 4.5; + --ifm-h3-vertical-rhythm-top: 2.5; + --ifm-heading-vertical-rhythm-top: 1.25; + --ifm-h1-vertical-rhythm-bottom: 1.25; +} + .header-github-link:hover { opacity: 0.7; } @@ -321,6 +358,22 @@ html[data-theme='dark'] .header-youtube-link:before { background: url(/img/icons/youtube-white.svg) no-repeat; } +.markdown > button { + background: linear-gradient(90deg, #ff3600 0%, #ff8100 100%); + border: none; + border-radius: 5px; + padding: 16.8px 32px; + color: #fff; + font-weight: bold; + cursor: pointer; + transition: 0.8s; + font-size: 16px; +} + +.markdown > button:hover { + background: linear-gradient(90deg, #ff3600 30%, #ff8100 78%); +} + @media (max-width: 996px) { .navbar__item.github-button { display: none; @@ -423,3 +476,15 @@ a:hover { .iconExternalLink_nPIU { display: none !important; } + +.section-container { + max-width: 1200px; + margin: 0 auto; + padding: 20px; + width: 100%; + box-sizing: border-box; +} + +.hero__subtitle { + line-height: 1.4; +} diff --git a/docs/src/pages/index.module.css b/docs/src/pages/index.module.css index 9f71a5da77..25907e2d69 100644 --- a/docs/src/pages/index.module.css +++ b/docs/src/pages/index.module.css @@ -15,9 +15,3 @@ padding: 2rem; } } - -.buttons { - display: flex; - align-items: center; - justify-content: center; -} diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx index 300781adf2..5bef4776f3 100644 --- a/docs/src/pages/index.tsx +++ b/docs/src/pages/index.tsx @@ -2,35 +2,37 @@ import clsx from 'clsx'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; -import HomepageFeatures from '@site/src/components/HomepageFeatures'; import Heading from '@theme/Heading'; +import HeroSection from '@site/src/components/HeroImage/HeroSection'; import styles from './index.module.css'; +import GuideCards from '../components/GuideCards/GuideCards'; function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); return ( -
-
- - {siteConfig.title} - -

{siteConfig.tagline}

-
-
+
+
+
+

{siteConfig.title}

+

{siteConfig.tagline}

+
+
+
); } -export default function Home(): JSX.Element { +export default function Home() { const { siteConfig } = useDocusaurusContext(); return (
- + +
); diff --git a/docs/src/pages/markdown-page.md b/docs/src/pages/markdown-page.md deleted file mode 100644 index 9756c5b668..0000000000 --- a/docs/src/pages/markdown-page.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Markdown page example ---- - -# Markdown page example - -You don't need React to write simple standalone pages. diff --git a/docs/static/img/docs/plugin/plugin-store-navbar.PNG b/docs/static/img/docs/plugin/plugin-store-navbar.PNG new file mode 100644 index 0000000000..f71cee7bb5 Binary files /dev/null and b/docs/static/img/docs/plugin/plugin-store-navbar.PNG differ diff --git a/docs/static/img/docs/plugin/plugin-types.PNG b/docs/static/img/docs/plugin/plugin-types.PNG new file mode 100644 index 0000000000..120434c88c Binary files /dev/null and b/docs/static/img/docs/plugin/plugin-types.PNG differ diff --git a/docs/static/img/docs/plugin/store.PNG b/docs/static/img/docs/plugin/store.PNG new file mode 100644 index 0000000000..9d8621cf89 Binary files /dev/null and b/docs/static/img/docs/plugin/store.PNG differ diff --git a/docs/static/img/docs/plugin/talawa.PNG b/docs/static/img/docs/plugin/talawa.PNG new file mode 100644 index 0000000000..fdf9a8a148 Binary files /dev/null and b/docs/static/img/docs/plugin/talawa.PNG differ diff --git a/fix-readme-links.js b/fix-readme-links.js new file mode 100644 index 0000000000..d9930cd7c7 --- /dev/null +++ b/fix-readme-links.js @@ -0,0 +1,25 @@ +import fs from 'fs'; +import path from 'path'; + +const docsDir = path.resolve('./docs/docs/auto-docs'); + +function replaceLinks(dir) { + const files = fs.readdirSync(dir); + files.forEach((file) => { + const filePath = path.join(dir, file); + if (fs.lstatSync(filePath).isDirectory()) { + replaceLinks(filePath); + } else if (file.endsWith('.md')) { + let content = fs.readFileSync(filePath, 'utf8'); + + // Replace any README.md links with root directory ("/") + content = content.replace(/\[.*?\]\((.*?)README\.md\)/g, (match) => { + return '[Admin Docs](/)'; // Redirect broken links to the root + }); + + fs.writeFileSync(filePath, content, 'utf8'); + } + }); +} + +replaceLinks(docsDir); diff --git a/fix-repo-url.js b/fix-repo-url.js new file mode 100644 index 0000000000..291f5ca6f0 --- /dev/null +++ b/fix-repo-url.js @@ -0,0 +1,28 @@ +import fs from 'fs'; +import path from 'path'; + +const docsDir = path.resolve('./docs/docs/auto-docs'); +const mainRepoUrl = + 'https://github.com/PalisadoesFoundation/talawa-admin/blob/main/'; + +function replaceRepoUrl(dir) { + const files = fs.readdirSync(dir); + files.forEach((file) => { + const filePath = path.join(dir, file); + if (fs.lstatSync(filePath).isDirectory()) { + replaceRepoUrl(filePath); + } else if (file.endsWith('.md')) { + let content = fs.readFileSync(filePath, 'utf8'); + + // Replace any repository URL before the "src" directory with the main repository URL + content = content.replace( + /https:\/\/github\.com\/[^/]+\/[^/]+\/blob\/[^/]+\//g, + mainRepoUrl, + ); + + fs.writeFileSync(filePath, content, 'utf8'); + } + }); +} + +replaceRepoUrl(docsDir); diff --git a/package-lock.json b/package-lock.json index 3b7c816f00..be54dd093b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,8 +66,6 @@ "redux": "^5.0.1", "redux-thunk": "^3.1.0", "sanitize-html": "^2.13.0", - "typedoc": "^0.26.10", - "typedoc-plugin-markdown": "^4.2.10", "typescript": "^5.6.3", "vite": "^5.4.8", "vite-plugin-environment": "^1.1.3", @@ -92,8 +90,6 @@ "@types/react": "^18.3.12", "@types/react-beautiful-dnd": "^13.1.8", "@types/react-bootstrap": "^0.32.37", - "@types/react-chartjs-2": "^2.5.7", - "@types/react-datepicker": "^7.0.0", "@types/react-dom": "^18.3.1", "@types/react-google-recaptcha": "^2.1.9", "@types/react-router-dom": "^5.1.8", @@ -119,7 +115,13 @@ "lint-staged": "^15.3.0", "postcss-modules": "^6.0.1", "sass": "^1.80.7", + "shiki": "^1.26.1", + "shiki": "^1.26.1", "tsx": "^4.19.1", + "typedoc": "^0.27.6", + "typedoc-plugin-markdown": "^4.4.1", + "typedoc": "^0.27.6", + "typedoc-plugin-markdown": "^4.4.1", "vite-plugin-svgr": "^4.2.0", "vitest": "^2.1.5", "whatwg-fetch": "^3.6.20" @@ -156,141 +158,6 @@ "node": ">=6.0.0" } }, - "node_modules/@ant-design/colors": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-7.1.0.tgz", - "integrity": "sha512-MMoDGWn1y9LdQJQSHiCC20x3uZ3CwQnv9QMz6pCmJOrqdgM9YxsoVVY0wtrdXbmfSgnV0KNk6zi09NAhMR2jvg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@ctrl/tinycolor": "^3.6.1" - } - }, - "node_modules/@ant-design/cssinjs": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/@ant-design/cssinjs/-/cssinjs-1.22.1.tgz", - "integrity": "sha512-SLuXM4wiEE1blOx94iXrkOgseMZHzdr4ngdFu3VVDq6AOWh7rlwqTkMAtJho3EsBF6x/eUGOtK53VZXGQG7+sQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.11.1", - "@emotion/hash": "^0.8.0", - "@emotion/unitless": "^0.7.5", - "classnames": "^2.3.1", - "csstype": "^3.1.3", - "rc-util": "^5.35.0", - "stylis": "^4.3.4" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/@ant-design/cssinjs-utils": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@ant-design/cssinjs-utils/-/cssinjs-utils-1.1.3.tgz", - "integrity": "sha512-nOoQMLW1l+xR1Co8NFVYiP8pZp3VjIIzqV6D6ShYF2ljtdwWJn5WSsH+7kvCktXL/yhEtWURKOfH5Xz/gzlwsg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@ant-design/cssinjs": "^1.21.0", - "@babel/runtime": "^7.23.2", - "rc-util": "^5.38.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@ant-design/cssinjs/node_modules/@emotion/hash": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", - "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "license": "MIT", - "peer": true - }, - "node_modules/@ant-design/cssinjs/node_modules/@emotion/unitless": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", - "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==", - "license": "MIT", - "peer": true - }, - "node_modules/@ant-design/cssinjs/node_modules/stylis": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.4.tgz", - "integrity": "sha512-osIBl6BGUmSfDkyH2mB7EFvCJntXDrLhKjHTRj/rK6xLH0yuPrHULDRQzKokSOD4VoorhtKpfcfW1GAntu8now==", - "license": "MIT", - "peer": true - }, - "node_modules/@ant-design/fast-color": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@ant-design/fast-color/-/fast-color-2.0.6.tgz", - "integrity": "sha512-y2217gk4NqL35giHl72o6Zzqji9O7vHh9YmhUVkPtAOpoTCH4uWxo/pr4VE8t0+ChEPs0qo4eJRC5Q1eXWo3vA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.24.7" - }, - "engines": { - "node": ">=8.x" - } - }, - "node_modules/@ant-design/icons": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-5.5.2.tgz", - "integrity": "sha512-xc53rjVBl9v2BqFxUjZGti/RfdDeA8/6KYglmInM2PNqSXc/WfuGDTifJI/ZsokJK0aeKvOIbXc9y2g8ILAhEA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@ant-design/colors": "^7.0.0", - "@ant-design/icons-svg": "^4.4.0", - "@babel/runtime": "^7.24.8", - "classnames": "^2.2.6", - "rc-util": "^5.31.1" - }, - "engines": { - "node": ">=8" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/@ant-design/icons-svg": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz", - "integrity": "sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==", - "license": "MIT", - "peer": true - }, - "node_modules/@ant-design/react-slick": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@ant-design/react-slick/-/react-slick-1.1.2.tgz", - "integrity": "sha512-EzlvzE6xQUBrZuuhSAFTdsr4P2bBBHGZwKFemEfq8gIGyIQCxalYfZW/T2ORbtQx5rU69o+WycP3exY/7T1hGA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.4", - "classnames": "^2.2.5", - "json2mq": "^0.2.0", - "resize-observer-polyfill": "^1.5.1", - "throttle-debounce": "^5.0.0" - }, - "peerDependencies": { - "react": ">=16.9.0" - } - }, - "node_modules/@ant-design/react-slick/node_modules/throttle-debounce": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-5.0.2.tgz", - "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.22" - } - }, "node_modules/@apollo/client": { "version": "3.11.8", "resolved": "https://registry.npmjs.org/@apollo/client/-/client-3.11.8.tgz", @@ -2200,16 +2067,6 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "node_modules/@ctrl/tinycolor": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz", - "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=10" - } - }, "node_modules/@dicebear/adventurer": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/@dicebear/adventurer/-/adventurer-9.2.2.tgz", @@ -3259,6 +3116,30 @@ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.8.tgz", "integrity": "sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==" }, + "node_modules/@gerrit0/mini-shiki": { + "version": "1.26.1", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-1.26.1.tgz", + "integrity": "sha512-gHFUvv9f1fU2Piou/5Y7Sx5moYxcERbC7CXc6rkDLQTUBg5Dgg9L4u29/nHqfoQ3Y9R0h0BcOhd14uOEZIBP7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-oniguruma": "^1.26.1", + "@shikijs/types": "^1.26.1", + "@shikijs/vscode-textmate": "^10.0.1" + } + }, + "node_modules/@gerrit0/mini-shiki": { + "version": "1.27.0", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-1.27.0.tgz", + "integrity": "sha512-nFZkbq4/wU+GxkyJVrXeMIS9SEcHI1HzJtK3EDtMQy16nNs1LNaI0dZTLAP2EuK/QSTYLo/Zaabm6Phxlmra1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-oniguruma": "^1.27.0", + "@shikijs/types": "^1.27.0", + "@shikijs/vscode-textmate": "^10.0.1" + } + }, "node_modules/@graphql-typed-document-node/core": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz", @@ -4605,6 +4486,7 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.0.tgz", "integrity": "sha512-i0GV1yJnm2n3Yq1qw6QrUrd/LI9bE8WEBOTtOkpCXHHdyN3TAGgqAK/DAT05z4fq2x04cARXt2pDmjWjL92iTQ==", + "dev": true, "hasInstallScript": true, "optional": true, "dependencies": { @@ -4643,6 +4525,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "android" @@ -4662,6 +4545,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "darwin" @@ -4681,6 +4565,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "darwin" @@ -4700,6 +4585,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "freebsd" @@ -4719,6 +4605,7 @@ "cpu": [ "arm" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4738,6 +4625,7 @@ "cpu": [ "arm" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4757,6 +4645,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4776,6 +4665,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4795,6 +4685,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4814,6 +4705,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "linux" @@ -4833,6 +4725,7 @@ "cpu": [ "arm64" ], + "dev": true, "optional": true, "os": [ "win32" @@ -4852,6 +4745,7 @@ "cpu": [ "ia32" ], + "dev": true, "optional": true, "os": [ "win32" @@ -4871,6 +4765,7 @@ "cpu": [ "x64" ], + "dev": true, "optional": true, "os": [ "win32" @@ -4998,164 +4893,6 @@ "url": "https://opencollective.com/popperjs" } }, - "node_modules/@rc-component/async-validator": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@rc-component/async-validator/-/async-validator-5.0.4.tgz", - "integrity": "sha512-qgGdcVIF604M9EqjNF0hbUTz42bz/RDtxWdWuU5EQe3hi7M8ob54B6B35rOsvX5eSvIHIzT9iH1R3n+hk3CGfg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.24.4" - }, - "engines": { - "node": ">=14.x" - } - }, - "node_modules/@rc-component/color-picker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@rc-component/color-picker/-/color-picker-2.0.1.tgz", - "integrity": "sha512-WcZYwAThV/b2GISQ8F+7650r5ZZJ043E57aVBFkQ+kSY4C6wdofXgB0hBx+GPGpIU0Z81eETNoDUJMr7oy/P8Q==", - "license": "MIT", - "peer": true, - "dependencies": { - "@ant-design/fast-color": "^2.0.6", - "@babel/runtime": "^7.23.6", - "classnames": "^2.2.6", - "rc-util": "^5.38.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/context": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@rc-component/context/-/context-1.4.0.tgz", - "integrity": "sha512-kFcNxg9oLRMoL3qki0OMxK+7g5mypjgaaJp/pkOis/6rVxma9nJBF/8kCIuTYHUQNr0ii7MxqE33wirPZLJQ2w==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/mini-decimal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rc-component/mini-decimal/-/mini-decimal-1.1.0.tgz", - "integrity": "sha512-jS4E7T9Li2GuYwI6PyiVXmxTiM6b07rlD9Ge8uGZSCz3WlzcG5ZK7g5bbuKNeZ9pgUuPK/5guV781ujdVpm4HQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.18.0" - }, - "engines": { - "node": ">=8.x" - } - }, - "node_modules/@rc-component/mutate-observer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rc-component/mutate-observer/-/mutate-observer-1.1.0.tgz", - "integrity": "sha512-QjrOsDXQusNwGZPf4/qRQasg7UFEj06XiCJ8iuiq/Io7CrHrgVi6Uuetw60WAMG1799v+aM8kyc+1L/GBbHSlw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.18.0", - "classnames": "^2.3.2", - "rc-util": "^5.24.4" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/portal": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@rc-component/portal/-/portal-1.1.2.tgz", - "integrity": "sha512-6f813C0IsasTZms08kfA8kPAGxbbkYToa8ALaiDIGGECU4i9hj8Plgbx0sNJDrey3EtHO30hmdaxtT0138xZcg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.18.0", - "classnames": "^2.3.2", - "rc-util": "^5.24.4" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/qrcode": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@rc-component/qrcode/-/qrcode-1.0.0.tgz", - "integrity": "sha512-L+rZ4HXP2sJ1gHMGHjsg9jlYBX/SLN2D6OxP9Zn3qgtpMWtO2vUfxVFwiogHpAIqs54FnALxraUy/BCO1yRIgg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.24.7", - "classnames": "^2.3.2", - "rc-util": "^5.38.0" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/tour": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@rc-component/tour/-/tour-1.15.1.tgz", - "integrity": "sha512-Tr2t7J1DKZUpfJuDZWHxyxWpfmj8EZrqSgyMZ+BCdvKZ6r1UDsfU46M/iWAAFBy961Ssfom2kv5f3UcjIL2CmQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.18.0", - "@rc-component/portal": "^1.0.0-9", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.3.2", - "rc-util": "^5.24.4" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/trigger": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/@rc-component/trigger/-/trigger-2.2.6.tgz", - "integrity": "sha512-/9zuTnWwhQ3S3WT1T8BubuFTT46kvnXgaERR9f4BTKyn61/wpf/BvbImzYBubzJibU707FxwbKszLlHjcLiv1Q==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.23.2", - "@rc-component/portal": "^1.1.0", - "classnames": "^2.3.2", - "rc-motion": "^2.0.0", - "rc-resize-observer": "^1.3.1", - "rc-util": "^5.44.0" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, "node_modules/@react-aria/ssr": { "version": "3.9.5", "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.9.5.tgz", @@ -5565,49 +5302,136 @@ "dev": true }, "node_modules/@shikijs/core": { - "version": "1.17.6", - "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-1.17.6.tgz", - "integrity": "sha512-9ztslig6/YmCg/XwESAXbKjAjOhaq6HVced9NY6qcbDz1X5g/S90Wco2vMjBNX/6V71ASkzri76JewSGPa7kiQ==", - "dependencies": { - "@shikijs/engine-javascript": "1.17.6", - "@shikijs/engine-oniguruma": "1.17.6", - "@shikijs/types": "1.17.6", - "@shikijs/vscode-textmate": "^9.2.2", + "version": "1.26.1", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-1.26.1.tgz", + "integrity": "sha512-yeo7sG+WZQblKPclUOKRPwkv1PyoHYkJ4gP9DzhFJbTdueKR7wYTI1vfF/bFi1NTgc545yG/DzvVhZgueVOXMA==", + "dev": true, + "license": "MIT", + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-1.27.2.tgz", + "integrity": "sha512-ns1dokDr0KE1lQ9mWd4rqaBkhSApk0qGCK1+lOqwnkQSkVZ08UGqXj1Ef8dAcTMZNFkN6PSNjkL5TYNX7pyPbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-javascript": "1.26.1", + "@shikijs/engine-oniguruma": "1.26.1", + "@shikijs/types": "1.26.1", + "@shikijs/vscode-textmate": "^10.0.1", + "@shikijs/engine-javascript": "1.27.2", + "@shikijs/engine-oniguruma": "1.27.2", + "@shikijs/types": "1.27.2", + "@shikijs/vscode-textmate": "^10.0.1", "@types/hast": "^3.0.4", - "hast-util-to-html": "^9.0.2" + "hast-util-to-html": "^9.0.4" + "hast-util-to-html": "^9.0.4" } }, "node_modules/@shikijs/engine-javascript": { - "version": "1.17.6", - "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-1.17.6.tgz", - "integrity": "sha512-5EEZj8tVcierNxm4V0UMS2PVoflb0UJPalWWV8l9rRg+oOfnr5VivqBJbkyq5grltVPvByIXvVbY8GSM/356jQ==", + "version": "1.26.1", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-1.26.1.tgz", + "integrity": "sha512-CRhA0b8CaSLxS0E9A4Bzcb3LKBNpykfo9F85ozlNyArxjo2NkijtiwrJZ6eHa+NT5I9Kox2IXVdjUsP4dilsmw==", + "dev": true, + "license": "MIT", + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-1.27.2.tgz", + "integrity": "sha512-0JB7U5vJc16NShBdxv9hSSJYSKX79+32O7F4oXIxJLdYfomyFvx4B982ackUI9ftO9T3WwagkiiD3nOxOOLiGA==", + "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/types": "1.17.6", - "oniguruma-to-js": "0.4.3" + "@shikijs/types": "1.26.1", + "@shikijs/vscode-textmate": "^10.0.1", + "oniguruma-to-es": "0.10.0" + "@shikijs/types": "1.27.2", + "@shikijs/vscode-textmate": "^10.0.1", + "oniguruma-to-es": "^2.0.0" } }, "node_modules/@shikijs/engine-oniguruma": { - "version": "1.17.6", - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.17.6.tgz", - "integrity": "sha512-NLfWDMXFYe0nDHFbEoyZdz89aIIey3bTfF3zLYSUNTXks5s4uinZVmuPOFf1HfTeGqIn8uErJSBc3VnpJO7Alw==", + "version": "1.26.1", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.26.1.tgz", + "integrity": "sha512-F5XuxN1HljLuvfXv7d+mlTkV7XukC1cawdtOo+7pKgPD83CAB1Sf8uHqP3PK0u7njFH0ZhoXE1r+0JzEgAQ+kg==", + "dev": true, + "license": "MIT", + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.27.2.tgz", + "integrity": "sha512-FZYKD1KN7srvpkz4lbGLOYWlyDU4Rd+2RtuKfABTkafAPOFr+J6umfIwY/TzOQqfNtWjL7SAwPAO0dcOraRLaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "1.26.1", + "@shikijs/vscode-textmate": "^10.0.1" + } + }, + "node_modules/@shikijs/langs": { + "version": "1.26.1", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-1.26.1.tgz", + "integrity": "sha512-oz/TQiIqZejEIZbGtn68hbJijAOTtYH4TMMSWkWYozwqdpKR3EXgILneQy26WItmJjp3xVspHdiUxUCws4gtuw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "1.26.1" + } + }, + "node_modules/@shikijs/themes": { + "version": "1.26.1", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-1.26.1.tgz", + "integrity": "sha512-JDxVn+z+wgLCiUhBGx2OQrLCkKZQGzNH3nAxFir4PjUcYiyD8Jdms9izyxIogYmSwmoPTatFTdzyrRKbKlSfPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "1.26.1" + "@shikijs/types": "1.27.2", + "@shikijs/vscode-textmate": "^10.0.1" + } + }, + "node_modules/@shikijs/langs": { + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-1.27.2.tgz", + "integrity": "sha512-MSrknKL0DbeXvhtSigMLIzjPOOQfvK7fsbcRv2NUUB0EvuTTomY8/U+lAkczYrXY2+dygKOapJKk8ScFYbtoNw==", + "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/types": "1.17.6", - "@shikijs/vscode-textmate": "^9.2.2" + "@shikijs/types": "1.27.2" + } + }, + "node_modules/@shikijs/themes": { + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-1.27.2.tgz", + "integrity": "sha512-Yw/uV7EijjWavIIZLoWneTAohcbBqEKj6XMX1bfMqO3llqTKsyXukPp1evf8qPqzUHY7ibauqEaQchhfi857mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "1.27.2" } }, "node_modules/@shikijs/types": { - "version": "1.17.6", - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.17.6.tgz", - "integrity": "sha512-ndTFa2TJi2w51ddKQDn3Jy8f6K4E5Q2x3dA3Hmsd3+YmxDQ10UWHjcw7VbVbKzv3VcUvYPLy+z9neqytSzUMUg==", + "version": "1.26.1", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.26.1.tgz", + "integrity": "sha512-d4B00TKKAMaHuFYgRf3L0gwtvqpW4hVdVwKcZYbBfAAQXspgkbWqnFfuFl3MDH6gLbsubOcr+prcnsqah3ny7Q==", + "dev": true, + "license": "MIT", + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.27.2.tgz", + "integrity": "sha512-DM9OWUyjmdYdnKDpaGB/GEn9XkToyK1tqxuqbmc5PV+5K8WjjwfygL3+cIvbkSw2v1ySwHDgqATq/+98pJ4Kyg==", + "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/vscode-textmate": "^9.2.2", + "@shikijs/vscode-textmate": "^10.0.1", + "@shikijs/vscode-textmate": "^10.0.1", "@types/hast": "^3.0.4" } }, "node_modules/@shikijs/vscode-textmate": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-9.2.2.tgz", - "integrity": "sha512-TMp15K+GGYrWlZM8+Lnj9EaHEFmOen0WJBrfa17hF7taDOYthuPPV0GWzfd/9iMij0akS/8Yw2ikquH7uVi/fg==" + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.1.tgz", + "integrity": "sha512-fTIQwLF+Qhuws31iw7Ncl1R3HUDtGwIipiJ9iU+UsDUwMhegFcQKQHd51nZjb7CArq0MvON8rbgCGQYWHUKAdg==", + "dev": true, + "license": "MIT" + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.1.tgz", + "integrity": "sha512-fTIQwLF+Qhuws31iw7Ncl1R3HUDtGwIipiJ9iU+UsDUwMhegFcQKQHd51nZjb7CArq0MvON8rbgCGQYWHUKAdg==", + "dev": true, + "license": "MIT" }, "node_modules/@sindresorhus/is": { "version": "0.14.0", @@ -6133,6 +5957,10 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "*" } @@ -6217,6 +6045,10 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "*" } @@ -6305,27 +6137,6 @@ "@types/react": "*" } }, - "node_modules/@types/react-chartjs-2": { - "version": "2.5.7", - "resolved": "https://registry.npmjs.org/@types/react-chartjs-2/-/react-chartjs-2-2.5.7.tgz", - "integrity": "sha512-waqYqiNULIVUqaKO7MGUpFmWrVtH7gVPOzqwV4y4zgUyu/JiDwC005PpveO442HKnby9kLgp3t1SB2sld+ACLw==", - "deprecated": "This is a stub types definition for react-chartjs-2 (https://github.com/gor181/react-chartjs-2). react-chartjs-2 provides its own type definitions, so you don't need @types/react-chartjs-2 installed!", - "dev": true, - "license": "MIT", - "dependencies": { - "react-chartjs-2": "*" - } - }, - "node_modules/@types/react-datepicker": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@types/react-datepicker/-/react-datepicker-7.0.0.tgz", - "integrity": "sha512-4tWwOUq589tozyQPBVEqGNng5DaZkomx5IVNuur868yYdgjH6RaL373/HKiVt1IDoNNXYiTGspm1F7kjrarM8Q==", - "deprecated": "This is a stub types definition. react-datepicker provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "react-datepicker": "*" - } - }, "node_modules/@types/react-dom": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.1.tgz", @@ -6419,7 +6230,12 @@ "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", - "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==" + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" }, "node_modules/@types/use-sync-external-store": { "version": "0.0.3", @@ -6768,6 +6584,8 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true, + "dev": true, "license": "ISC" }, "node_modules/@vitejs/plugin-react": { @@ -7150,16 +6968,6 @@ "node": ">=0.4.0" } }, - "node_modules/add-dom-event-listener": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/add-dom-event-listener/-/add-dom-event-listener-1.1.0.tgz", - "integrity": "sha512-WCxx1ixHT0GQU9hb0KI/mhgRQhnU+U3GvwY6ZvVjYq8rsihIGoaIOUbY0yMPBxLH5MDtr0kz3fisWGNcbWW7Jw==", - "license": "MIT", - "peer": true, - "dependencies": { - "object-assign": "4.x" - } - }, "node_modules/agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", @@ -7172,30 +6980,6 @@ "node": ">= 6.0.0" } }, - "node_modules/ahooks": { - "version": "3.8.4", - "resolved": "https://registry.npmjs.org/ahooks/-/ahooks-3.8.4.tgz", - "integrity": "sha512-39wDEw2ZHvypaT14EpMMk4AzosHWt0z9bulY0BeDsvc9PqJEV+Kjh/4TZfftSsotBMq52iYIOFPd3PR56e0ZJg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.21.0", - "dayjs": "^1.9.1", - "intersection-observer": "^0.12.0", - "js-cookie": "^3.0.5", - "lodash": "^4.17.21", - "react-fast-compare": "^3.2.2", - "resize-observer-polyfill": "^1.5.1", - "screenfull": "^5.0.0", - "tslib": "^2.4.1" - }, - "engines": { - "node": ">=8.0.0" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, "node_modules/air-datepicker": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/air-datepicker/-/air-datepicker-3.5.3.tgz", @@ -7282,82 +7066,6 @@ "node": ">=0.10.0" } }, - "node_modules/antd": { - "version": "5.22.6", - "resolved": "https://registry.npmjs.org/antd/-/antd-5.22.6.tgz", - "integrity": "sha512-ZYURSV3FR8qQgbfpa554thlO07L6PeHwhAM0wmxnobOBogND/HqSnTU+UZTqT2b2y9MxSfAIu5Xn1uEM9UpceQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@ant-design/colors": "^7.1.0", - "@ant-design/cssinjs": "^1.21.1", - "@ant-design/cssinjs-utils": "^1.1.3", - "@ant-design/icons": "^5.5.2", - "@ant-design/react-slick": "~1.1.2", - "@babel/runtime": "^7.25.7", - "@ctrl/tinycolor": "^3.6.1", - "@rc-component/color-picker": "~2.0.1", - "@rc-component/mutate-observer": "^1.1.0", - "@rc-component/qrcode": "~1.0.0", - "@rc-component/tour": "~1.15.1", - "@rc-component/trigger": "^2.2.6", - "classnames": "^2.5.1", - "copy-to-clipboard": "^3.3.3", - "dayjs": "^1.11.11", - "rc-cascader": "~3.30.0", - "rc-checkbox": "~3.3.0", - "rc-collapse": "~3.9.0", - "rc-dialog": "~9.6.0", - "rc-drawer": "~7.2.0", - "rc-dropdown": "~4.2.1", - "rc-field-form": "~2.7.0", - "rc-image": "~7.11.0", - "rc-input": "~1.6.4", - "rc-input-number": "~9.3.0", - "rc-mentions": "~2.17.0", - "rc-menu": "~9.16.0", - "rc-motion": "^2.9.5", - "rc-notification": "~5.6.2", - "rc-pagination": "~5.0.0", - "rc-picker": "~4.8.3", - "rc-progress": "~4.0.0", - "rc-rate": "~2.13.0", - "rc-resize-observer": "^1.4.3", - "rc-segmented": "~2.5.0", - "rc-select": "~14.16.4", - "rc-slider": "~11.1.7", - "rc-steps": "~6.0.1", - "rc-switch": "~4.1.0", - "rc-table": "~7.49.0", - "rc-tabs": "~15.4.0", - "rc-textarea": "~1.8.2", - "rc-tooltip": "~6.2.1", - "rc-tree": "~5.10.1", - "rc-tree-select": "~5.24.5", - "rc-upload": "~4.8.1", - "rc-util": "^5.44.2", - "scroll-into-view-if-needed": "^3.1.0", - "throttle-debounce": "^5.0.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/ant-design" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/antd/node_modules/throttle-debounce": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-5.0.2.tgz", - "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.22" - } - }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -7575,13 +7283,6 @@ "node": ">=12" } }, - "node_modules/async-validator": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-3.5.2.tgz", - "integrity": "sha512-8eLCg00W9pIRZSB781UUX/H6Oskmm8xloZfr09lz5bikRpBVDlJ3hRVuxxP1SxcwsEYfJ4IU8Q19Y8/893r3rQ==", - "license": "MIT", - "peer": true - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -7972,21 +7673,13 @@ "@babel/core": "^7.0.0" } }, - "node_modules/babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", - "license": "MIT", - "peer": true, - "dependencies": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true }, "node_modules/base64-js": { "version": "1.5.1", @@ -8467,6 +8160,10 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -8515,6 +8212,10 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -8524,6 +8225,10 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -8853,6 +8558,10 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -8867,29 +8576,6 @@ "node": "^12.20.0 || >=14" } }, - "node_modules/component-classes": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/component-classes/-/component-classes-1.2.6.tgz", - "integrity": "sha512-hPFGULxdwugu1QWW3SvVOCUHLzO34+a2J6Wqy0c5ASQkfi9/8nZcBB0ZohaEbXOQlCflMAEMmEWk7u7BVs4koA==", - "license": "MIT", - "peer": true, - "dependencies": { - "component-indexof": "0.0.3" - } - }, - "node_modules/component-indexof": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/component-indexof/-/component-indexof-0.0.3.tgz", - "integrity": "sha512-puDQKvx/64HZXb4hBwIcvQLaLgux8o1CbWl39s41hrIIZDl1lJiD5jc22gj3RBeGK0ovxALDYpIbyjqDUUl0rw==", - "peer": true - }, - "node_modules/compute-scroll-into-view": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.1.0.tgz", - "integrity": "sha512-rj8l8pD4bJ1nx+dAkMhV1xB5RuZEyVysfxJqB1pRchh1KVvwOv9b7CGB8ZfjTImVv2oF+sYMUkMZq6Na5Ftmbg==", - "license": "MIT", - "peer": true - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -9031,13 +8717,16 @@ } }, "node_modules/core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", - "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "version": "3.40.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.40.0.tgz", + "integrity": "sha512-7vsMc/Lty6AGnn7uFpYT56QesI5D2Y/UkgKounk87OP9Z2H9Z8kj6jzcSGAxFmUtDOS0ntK6lbQz+Nsa0Jj6mQ==", "hasInstallScript": true, "license": "MIT", - "peer": true + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } }, "node_modules/core-js-compat": { "version": "3.38.1", @@ -9111,17 +8800,6 @@ "sha.js": "^2.4.8" } }, - "node_modules/create-react-class": { - "version": "15.7.0", - "resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.7.0.tgz", - "integrity": "sha512-QZv4sFWG9S5RUvkTYWbflxeZX+JG7Cz0Tn33rQBJ+WFQTqTfUTjMjiv9tnfXazjsO5r0KhPs+AqCjyrQX6h2ng==", - "license": "MIT", - "peer": true, - "dependencies": { - "loose-envify": "^1.3.1", - "object-assign": "^4.1.1" - } - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -9201,17 +8879,6 @@ "node": ">=8" } }, - "node_modules/css-animation": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/css-animation/-/css-animation-1.6.1.tgz", - "integrity": "sha512-/48+/BaEaHRY6kNQ2OIPzKf9A6g8WjZYjhiNDNuIVbsm5tXCGIAsHDjB4Xu1C4vXJtUWZo26O68OQkDpNBaPog==", - "license": "MIT", - "peer": true, - "dependencies": { - "babel-runtime": "6.x", - "component-classes": "^1.2.5" - } - }, "node_modules/css-box-model": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/css-box-model/-/css-box-model-1.2.1.tgz", @@ -9627,6 +9294,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, "optional": true, "bin": { "detect-libc": "bin/detect-libc.js" @@ -9639,6 +9307,10 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "dequal": "^2.0.0" }, @@ -9702,13 +9374,6 @@ "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", "dev": true }, - "node_modules/dom-align": { - "version": "1.12.4", - "resolved": "https://registry.npmjs.org/dom-align/-/dom-align-1.12.4.tgz", - "integrity": "sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw==", - "license": "MIT", - "peer": true - }, "node_modules/dom-helpers": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", @@ -9893,6 +9558,20 @@ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, + "node_modules/emoji-regex-xs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz", + "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==", + "dev": true, + "license": "MIT" + }, + "node_modules/emoji-regex-xs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz", + "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==", + "dev": true, + "license": "MIT" + }, "node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", @@ -11295,129 +10974,6 @@ "node": ">= 6" } }, - "node_modules/form-render": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/form-render/-/form-render-2.5.1.tgz", - "integrity": "sha512-oNbJ+McqB5h1yuyxYAT3ixJF8itmHlnKvqDgQhJT9Tw1c3yGwfRnVXboRxBV+Myz0dkf47zL6lyY1l74yQsWsg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@ant-design/icons": "^4.0.2", - "ahooks": "^3.7.5", - "async-validator": "^3.5.1", - "classnames": "^2.3.1", - "color": "^3.1.2", - "dayjs": "^1.11.7", - "lodash-es": "^4.17.21", - "rc-color-picker": "^1.2.6", - "virtualizedtableforantd4": "^1.1.2", - "zustand": "^4.1.5" - }, - "peerDependencies": { - "antd": "4.x || 5.x", - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/form-render/node_modules/@ant-design/colors": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-6.0.0.tgz", - "integrity": "sha512-qAZRvPzfdWHtfameEGP2Qvuf838NhergR35o+EuVyB5XvSA98xod5r4utvi4TJ3ywmevm290g9nsCG5MryrdWQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@ctrl/tinycolor": "^3.4.0" - } - }, - "node_modules/form-render/node_modules/@ant-design/icons": { - "version": "4.8.3", - "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-4.8.3.tgz", - "integrity": "sha512-HGlIQZzrEbAhpJR6+IGdzfbPym94Owr6JZkJ2QCCnOkPVIWMO2xgIVcOKnl8YcpijIo39V7l2qQL5fmtw56cMw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@ant-design/colors": "^6.0.0", - "@ant-design/icons-svg": "^4.3.0", - "@babel/runtime": "^7.11.2", - "classnames": "^2.2.6", - "lodash": "^4.17.15", - "rc-util": "^5.9.4" - }, - "engines": { - "node": ">=8" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/form-render/node_modules/color": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", - "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", - "license": "MIT", - "peer": true, - "dependencies": { - "color-convert": "^1.9.3", - "color-string": "^1.6.0" - } - }, - "node_modules/form-render/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "license": "MIT", - "peer": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/form-render/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "license": "MIT", - "peer": true - }, - "node_modules/form-render/node_modules/rc-color-picker": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/rc-color-picker/-/rc-color-picker-1.2.6.tgz", - "integrity": "sha512-AaC9Pg7qCHSy5M4eVbqDIaNb2FC4SEw82GOHB2C4R/+vF2FVa/r5XA+Igg5+zLPmAvBLhz9tL4MAfkRA8yWNJw==", - "license": "MIT", - "peer": true, - "dependencies": { - "classnames": "^2.2.5", - "prop-types": "^15.5.8", - "rc-trigger": "1.x", - "rc-util": "^4.0.2", - "tinycolor2": "^1.4.1" - }, - "peerDependencies": { - "react": "16.x", - "react-dom": "16.x" - } - }, - "node_modules/form-render/node_modules/rc-color-picker/node_modules/rc-util": { - "version": "4.21.1", - "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-4.21.1.tgz", - "integrity": "sha512-Z+vlkSQVc1l8O2UjR3WQ+XdWlhj5q9BMQNLk2iOBch75CqPfrJyGtcWMcnhRlNuDu0Ndtt4kLVO8JI8BrABobg==", - "license": "MIT", - "peer": true, - "dependencies": { - "add-dom-event-listener": "^1.1.0", - "prop-types": "^15.5.10", - "react-is": "^16.12.0", - "react-lifecycles-compat": "^3.0.4", - "shallowequal": "^1.1.0" - } - }, - "node_modules/form-render/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "license": "MIT", - "peer": true - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -11785,13 +11341,14 @@ } }, "node_modules/gulp-header": { - "version": "1.8.12", - "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", - "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", - "deprecated": "Removed event-stream from gulp-header", + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-2.0.9.tgz", + "integrity": "sha512-LMGiBx+qH8giwrOuuZXSGvswcIUh0OiioNkUpLhNyvaC6/Ga8X6cfAeme2L5PqsbXMhL8o8b/OmVqIQdxprhcQ==", + "license": "MIT", "dependencies": { - "concat-with-sourcemaps": "*", - "lodash.template": "^4.4.0", + "concat-with-sourcemaps": "^1.1.0", + "lodash.template": "^4.5.0", + "map-stream": "0.0.7", "through2": "^2.0.0" } }, @@ -11908,9 +11465,16 @@ } }, "node_modules/hast-util-to-html": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.2.tgz", - "integrity": "sha512-RP5wNpj5nm1Z8cloDv4Sl4RS8jH5HYa0v93YB6Wb4poEzgMo/dAAL0KcT4974dCjcNG5pkLqTImeFHHCwwfY3g==", + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.4.tgz", + "integrity": "sha512-wxQzXtdbhiwGAUKrnQJXlOPmHnEehzphwkK7aluUPQ+lEc1xefC8pblMgpp2w5ldBTEfveRIrADcrhGIWrlTDA==", + "dev": true, + "license": "MIT", + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.4.tgz", + "integrity": "sha512-wxQzXtdbhiwGAUKrnQJXlOPmHnEehzphwkK7aluUPQ+lEc1xefC8pblMgpp2w5ldBTEfveRIrADcrhGIWrlTDA==", + "dev": true, + "license": "MIT", "dependencies": { "@types/hast": "^3.0.0", "@types/unist": "^3.0.0", @@ -11933,6 +11497,10 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/hast": "^3.0.0" }, @@ -12029,6 +11597,10 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -12219,7 +11791,7 @@ "version": "5.0.2", "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.0.2.tgz", "integrity": "sha512-1NU7hWZDkV7hJ4PJ9dur9gTNQ4ePNPN4k9/0YhwjzykTi/+3Q5pF93YU5QoVj8BuOnhLgaY8gs0U2pj4kSYVcw==", - "devOptional": true + "dev": true }, "node_modules/import-fresh": { "version": "3.3.0", @@ -12344,13 +11916,6 @@ "node": ">=12" } }, - "node_modules/intersection-observer": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/intersection-observer/-/intersection-observer-0.12.2.tgz", - "integrity": "sha512-7m1vEcPCxXYI8HqnL8CKI6siDyD+eIWSwgB3DZA+ZTogxk9I4CDnj4wilt9x/+/QbHI4YG5YZNmC6458/e9Ktg==", - "license": "Apache-2.0", - "peer": true - }, "node_modules/invariant": { "version": "2.2.4", "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", @@ -14658,16 +14223,6 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, - "node_modules/json2mq": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz", - "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==", - "license": "MIT", - "peer": true, - "dependencies": { - "string-convert": "^0.2.0" - } - }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -14798,6 +14353,8 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "dev": true, + "dev": true, "dependencies": { "uc.micro": "^2.0.0" } @@ -15183,14 +14740,8 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash-es": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", - "license": "MIT", - "peer": true + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true }, "node_modules/lodash._reinterpolate": { "version": "3.0.0", @@ -15428,7 +14979,10 @@ "node_modules/lunr": { "version": "2.3.9", "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", - "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==" + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true + "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", + "dev": true }, "node_modules/lz-string": { "version": "1.5.0", @@ -15491,10 +15045,18 @@ "tmpl": "1.0.5" } }, + "node_modules/map-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha512-C0X0KQmGm3N2ftbTGBhSyuydQ+vV1LC3f3zPvT3RXHXNZrvfPZcoXp/N5DOa8vedX/rTMm2CjTtivFg2STJMRQ==", + "license": "MIT" + }, "node_modules/markdown-it": { "version": "14.1.0", "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "dev": true, + "dev": true, "dependencies": { "argparse": "^2.0.1", "entities": "^4.4.0", @@ -15510,7 +15072,10 @@ "node_modules/markdown-it/node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/markdown-link": { "version": "0.1.1", @@ -15564,6 +15129,10 @@ "version": "13.2.0", "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.0.tgz", "integrity": "sha512-QGYKEuUsYT9ykKBCMOEDLsU5JRObWQusAolFMeko/tYPufNkRffBAQjIE+99jbA87xv6FgmjLtwjh9wBWajwAA==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/hast": "^3.0.0", "@types/mdast": "^4.0.0", @@ -15583,7 +15152,10 @@ "node_modules/mdurl": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==" + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "dev": true + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "dev": true }, "node_modules/memoize-one": { "version": "5.2.1", @@ -15611,9 +15183,14 @@ } }, "node_modules/micromark-util-character": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.0.tgz", - "integrity": "sha512-KvOVV+X1yLBfs9dCBSopq/+G1PcgT3lAK07mC4BzXi5E7ahzMAF8oIupDDJ6mievI6F+lAATkbQQlQixJfT3aQ==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "dev": true, + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "dev": true, "funding": [ { "type": "GitHub Sponsors", @@ -15624,15 +15201,22 @@ "url": "https://opencollective.com/unified" } ], + "license": "MIT", + "license": "MIT", "dependencies": { "micromark-util-symbol": "^2.0.0", "micromark-util-types": "^2.0.0" } }, "node_modules/micromark-util-encode": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.0.tgz", - "integrity": "sha512-pS+ROfCXAGLWCOc8egcBvT0kf27GoWMqtdarNfDcjb6YLuV5cM3ioG45Ys2qOVqeqSbjaKg72vU+Wby3eddPsA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "dev": true, + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "dev": true, "funding": [ { "type": "GitHub Sponsors", @@ -15642,12 +15226,20 @@ "type": "OpenCollective", "url": "https://opencollective.com/unified" } - ] + ], + "license": "MIT" + ], + "license": "MIT" }, "node_modules/micromark-util-sanitize-uri": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.0.tgz", - "integrity": "sha512-WhYv5UEcZrbAtlsnPuChHUAsu/iBPOVaEVsntLBIdpibO0ddy8OzavZz3iL2xVvBZOpolujSliP65Kq0/7KIYw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "dev": true, + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "dev": true, "funding": [ { "type": "GitHub Sponsors", @@ -15658,6 +15250,8 @@ "url": "https://opencollective.com/unified" } ], + "license": "MIT", + "license": "MIT", "dependencies": { "micromark-util-character": "^2.0.0", "micromark-util-encode": "^2.0.0", @@ -15665,9 +15259,14 @@ } }, "node_modules/micromark-util-symbol": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.0.tgz", - "integrity": "sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "dev": true, + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "dev": true, "funding": [ { "type": "GitHub Sponsors", @@ -15677,12 +15276,20 @@ "type": "OpenCollective", "url": "https://opencollective.com/unified" } - ] + ], + "license": "MIT" + ], + "license": "MIT" }, "node_modules/micromark-util-types": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.0.tgz", - "integrity": "sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.1.tgz", + "integrity": "sha512-534m2WhVTddrcKVepwmVEVnUAmtrx9bfIjNoQHRqfnvdaHQiFytEhJoTgpWJvDEXCO5gLTQh3wYC1PgOJA4NSQ==", + "dev": true, + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.1.tgz", + "integrity": "sha512-534m2WhVTddrcKVepwmVEVnUAmtrx9bfIjNoQHRqfnvdaHQiFytEhJoTgpWJvDEXCO5gLTQh3wYC1PgOJA4NSQ==", + "dev": true, "funding": [ { "type": "GitHub Sponsors", @@ -15692,7 +15299,10 @@ "type": "OpenCollective", "url": "https://opencollective.com/unified" } - ] + ], + "license": "MIT" + ], + "license": "MIT" }, "node_modules/micromatch": { "version": "4.0.8", @@ -15894,6 +15504,7 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, "optional": true }, "node_modules/node-fetch": { @@ -16280,15 +15891,25 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/oniguruma-to-js": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/oniguruma-to-js/-/oniguruma-to-js-0.4.3.tgz", - "integrity": "sha512-X0jWUcAlxORhOqqBREgPMgnshB7ZGYszBNspP+tS9hPD3l13CdaXcHbgImoHUHlrvGx/7AvFEkTRhAGYh+jzjQ==", + "node_modules/oniguruma-to-es": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-0.10.0.tgz", + "integrity": "sha512-zapyOUOCJxt+xhiNRPPMtfJkHGsZ98HHB9qJEkdT8BGytO/+kpe4m1Ngf0MzbzTmhacn11w9yGeDP6tzDhnCdg==", + "dev": true, + "license": "MIT", + "node_modules/oniguruma-to-es": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-2.0.0.tgz", + "integrity": "sha512-pE7+9jQgomy10aK6BJKRNHj1Nth0YLOzb3iRuhlz4gRzNSBSd7hga6U8BE6o0SoSuSkqv+PPtt511Msd1Hkl0w==", + "dev": true, + "license": "MIT", "dependencies": { - "regex": "^4.3.2" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" + "emoji-regex-xs": "^1.0.0", + "regex": "^5.1.1", + "regex-recursion": "^5.1.1" + "emoji-regex-xs": "^1.0.0", + "regex": "^5.1.1", + "regex-recursion": "^5.1.1" } }, "node_modules/open": { @@ -16606,13 +16227,6 @@ "node": ">=0.12" } }, - "node_modules/performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", - "license": "MIT", - "peer": true - }, "node_modules/picocolors": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", @@ -17026,6 +16640,10 @@ "version": "6.5.0", "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.5.0.tgz", "integrity": "sha512-PgTgs/BlvHxOu8QuEN7wi5A0OmXaBcHpmCSTehcs6Uuu9IkDIEo13Hy7n898RHfrQ49vKCoGeWZSaAK01nwVig==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -17078,6 +16696,8 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "dev": true, + "dev": true, "engines": { "node": ">=6" } @@ -17141,817 +16761,62 @@ } ] }, - "node_modules/raf": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", - "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", - "license": "MIT", - "peer": true, - "dependencies": { - "performance-now": "^2.1.0" - } - }, - "node_modules/raf-schd": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.3.tgz", - "integrity": "sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==" - }, - "node_modules/randomatic": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", - "dependencies": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/randomatic/node_modules/is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dependencies": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/rc-align": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/rc-align/-/rc-align-2.4.5.tgz", - "integrity": "sha512-nv9wYUYdfyfK+qskThf4BQUSIadeI/dCsfaMZfNEoxm9HwOIioQ+LyqmMK6jWHAZQgOzMLaqawhuBXlF63vgjw==", - "license": "MIT", - "peer": true, - "dependencies": { - "babel-runtime": "^6.26.0", - "dom-align": "^1.7.0", - "prop-types": "^15.5.8", - "rc-util": "^4.0.4" - } - }, - "node_modules/rc-align/node_modules/rc-util": { - "version": "4.21.1", - "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-4.21.1.tgz", - "integrity": "sha512-Z+vlkSQVc1l8O2UjR3WQ+XdWlhj5q9BMQNLk2iOBch75CqPfrJyGtcWMcnhRlNuDu0Ndtt4kLVO8JI8BrABobg==", - "license": "MIT", - "peer": true, - "dependencies": { - "add-dom-event-listener": "^1.1.0", - "prop-types": "^15.5.10", - "react-is": "^16.12.0", - "react-lifecycles-compat": "^3.0.4", - "shallowequal": "^1.1.0" - } - }, - "node_modules/rc-align/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "license": "MIT", - "peer": true - }, - "node_modules/rc-animate": { - "version": "2.11.1", - "resolved": "https://registry.npmjs.org/rc-animate/-/rc-animate-2.11.1.tgz", - "integrity": "sha512-1NyuCGFJG/0Y+9RKh5y/i/AalUCA51opyyS/jO2seELpgymZm2u9QV3xwODwEuzkmeQ1BDPxMLmYLcTJedPlkQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "babel-runtime": "6.x", - "classnames": "^2.2.6", - "css-animation": "^1.3.2", - "prop-types": "15.x", - "raf": "^3.4.0", - "rc-util": "^4.15.3", - "react-lifecycles-compat": "^3.0.4" - } - }, - "node_modules/rc-animate/node_modules/rc-util": { - "version": "4.21.1", - "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-4.21.1.tgz", - "integrity": "sha512-Z+vlkSQVc1l8O2UjR3WQ+XdWlhj5q9BMQNLk2iOBch75CqPfrJyGtcWMcnhRlNuDu0Ndtt4kLVO8JI8BrABobg==", - "license": "MIT", - "peer": true, - "dependencies": { - "add-dom-event-listener": "^1.1.0", - "prop-types": "^15.5.10", - "react-is": "^16.12.0", - "react-lifecycles-compat": "^3.0.4", - "shallowequal": "^1.1.0" - } - }, - "node_modules/rc-animate/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "license": "MIT", - "peer": true - }, - "node_modules/rc-cascader": { - "version": "3.30.0", - "resolved": "https://registry.npmjs.org/rc-cascader/-/rc-cascader-3.30.0.tgz", - "integrity": "sha512-rrzSbk1Bdqbu+pDwiLCLHu72+lwX9BZ28+JKzoi0DWZ4N29QYFeip8Gctl33QVd2Xg3Rf14D3yAOG76ElJw16w==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.25.7", - "classnames": "^2.3.1", - "rc-select": "~14.16.2", - "rc-tree": "~5.10.1", - "rc-util": "^5.43.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-checkbox": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/rc-checkbox/-/rc-checkbox-3.3.0.tgz", - "integrity": "sha512-Ih3ZaAcoAiFKJjifzwsGiT/f/quIkxJoklW4yKGho14Olulwn8gN7hOBve0/WGDg5o/l/5mL0w7ff7/YGvefVw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.3.2", - "rc-util": "^5.25.2" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-collapse": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/rc-collapse/-/rc-collapse-3.9.0.tgz", - "integrity": "sha512-swDdz4QZ4dFTo4RAUMLL50qP0EY62N2kvmk2We5xYdRwcRn8WcYtuetCJpwpaCbUfUt5+huLpVxhvmnK+PHrkA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "2.x", - "rc-motion": "^2.3.4", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-dialog": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/rc-dialog/-/rc-dialog-9.6.0.tgz", - "integrity": "sha512-ApoVi9Z8PaCQg6FsUzS8yvBEQy0ZL2PkuvAgrmohPkN3okps5WZ5WQWPc1RNuiOKaAYv8B97ACdsFU5LizzCqg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/portal": "^1.0.0-8", - "classnames": "^2.2.6", - "rc-motion": "^2.3.0", - "rc-util": "^5.21.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-drawer": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/rc-drawer/-/rc-drawer-7.2.0.tgz", - "integrity": "sha512-9lOQ7kBekEJRdEpScHvtmEtXnAsy+NGDXiRWc2ZVC7QXAazNVbeT4EraQKYwCME8BJLa8Bxqxvs5swwyOepRwg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.23.9", - "@rc-component/portal": "^1.1.1", - "classnames": "^2.2.6", - "rc-motion": "^2.6.1", - "rc-util": "^5.38.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-dropdown": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/rc-dropdown/-/rc-dropdown-4.2.1.tgz", - "integrity": "sha512-YDAlXsPv3I1n42dv1JpdM7wJ+gSUBfeyPK59ZpBD9jQhK9jVuxpjj3NmWQHOBceA1zEPVX84T2wbdb2SD0UjmA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.18.3", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.2.6", - "rc-util": "^5.44.1" - }, - "peerDependencies": { - "react": ">=16.11.0", - "react-dom": ">=16.11.0" - } - }, - "node_modules/rc-field-form": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/rc-field-form/-/rc-field-form-2.7.0.tgz", - "integrity": "sha512-hgKsCay2taxzVnBPZl+1n4ZondsV78G++XVsMIJCAoioMjlMQR9YwAp7JZDIECzIu2Z66R+f4SFIRrO2DjDNAA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.18.0", - "@rc-component/async-validator": "^5.0.3", - "rc-util": "^5.32.2" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-image": { - "version": "7.11.0", - "resolved": "https://registry.npmjs.org/rc-image/-/rc-image-7.11.0.tgz", - "integrity": "sha512-aZkTEZXqeqfPZtnSdNUnKQA0N/3MbgR7nUnZ+/4MfSFWPFHZau4p5r5ShaI0KPEMnNjv4kijSCFq/9wtJpwykw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.11.2", - "@rc-component/portal": "^1.0.2", - "classnames": "^2.2.6", - "rc-dialog": "~9.6.0", - "rc-motion": "^2.6.2", - "rc-util": "^5.34.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-input": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/rc-input/-/rc-input-1.6.4.tgz", - "integrity": "sha512-lBZhfRD4NSAUW0zOKLUeI6GJuXkxeZYi0hr8VcJgJpyTNOvHw1ysrKWAHcEOAAHj7guxgmWYSi6xWrEdfrSAsA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.11.1", - "classnames": "^2.2.1", - "rc-util": "^5.18.1" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/rc-input-number": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/rc-input-number/-/rc-input-number-9.3.0.tgz", - "integrity": "sha512-JQ363ywqRyxwgVxpg2z2kja3CehTpYdqR7emJ/6yJjRdbvo+RvfE83fcpBCIJRq3zLp8SakmEXq60qzWyZ7Usw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/mini-decimal": "^1.0.1", - "classnames": "^2.2.5", - "rc-input": "~1.6.0", - "rc-util": "^5.40.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-mentions": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/rc-mentions/-/rc-mentions-2.17.0.tgz", - "integrity": "sha512-sfHy+qLvc+p8jx8GUsujZWXDOIlIimp6YQz7N5ONQ6bHsa2kyG+BLa5k2wuxgebBbH97is33wxiyq5UkiXRpHA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.22.5", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.2.6", - "rc-input": "~1.6.0", - "rc-menu": "~9.16.0", - "rc-textarea": "~1.8.0", - "rc-util": "^5.34.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-menu": { - "version": "9.16.0", - "resolved": "https://registry.npmjs.org/rc-menu/-/rc-menu-9.16.0.tgz", - "integrity": "sha512-vAL0yqPkmXWk3+YKRkmIR8TYj3RVdEt3ptG2jCJXWNAvQbT0VJJdRyHZ7kG/l1JsZlB+VJq/VcYOo69VR4oD+w==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/trigger": "^2.0.0", - "classnames": "2.x", - "rc-motion": "^2.4.3", - "rc-overflow": "^1.3.1", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-motion": { - "version": "2.9.5", - "resolved": "https://registry.npmjs.org/rc-motion/-/rc-motion-2.9.5.tgz", - "integrity": "sha512-w+XTUrfh7ArbYEd2582uDrEhmBHwK1ZENJiSJVb7uRxdE7qJSYjbO2eksRXmndqyKqKoYPc9ClpPh5242mV1vA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.11.1", - "classnames": "^2.2.1", - "rc-util": "^5.44.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-notification": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/rc-notification/-/rc-notification-5.6.2.tgz", - "integrity": "sha512-Id4IYMoii3zzrG0lB0gD6dPgJx4Iu95Xu0BQrhHIbp7ZnAZbLqdqQ73aIWH0d0UFcElxwaKjnzNovTjo7kXz7g==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "2.x", - "rc-motion": "^2.9.0", - "rc-util": "^5.20.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-overflow": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/rc-overflow/-/rc-overflow-1.3.2.tgz", - "integrity": "sha512-nsUm78jkYAoPygDAcGZeC2VwIg/IBGSodtOY3pMof4W3M9qRJgqaDYm03ZayHlde3I6ipliAxbN0RUcGf5KOzw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.11.1", - "classnames": "^2.2.1", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.37.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-pagination": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/rc-pagination/-/rc-pagination-5.0.0.tgz", - "integrity": "sha512-QjrPvbAQwps93iluvFM62AEYglGYhWW2q/nliQqmvkTi4PXP4HHoh00iC1Sa5LLVmtWQHmG73fBi2x6H6vFHRg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.3.2", - "rc-util": "^5.38.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-picker": { - "version": "4.8.3", - "resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-4.8.3.tgz", - "integrity": "sha512-hJ45qoEs4mfxXPAJdp1n3sKwADul874Cd0/HwnsEOE60H+tgiJUGgbOD62As3EG/rFVNS5AWRfBCDJJfmRqOVQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.24.7", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.2.1", - "rc-overflow": "^1.3.2", - "rc-resize-observer": "^1.4.0", - "rc-util": "^5.43.0" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "date-fns": ">= 2.x", - "dayjs": ">= 1.x", - "luxon": ">= 3.x", - "moment": ">= 2.x", - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - }, - "peerDependenciesMeta": { - "date-fns": { - "optional": true - }, - "dayjs": { - "optional": true - }, - "luxon": { - "optional": true - }, - "moment": { - "optional": true - } - } - }, - "node_modules/rc-progress": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/rc-progress/-/rc-progress-4.0.0.tgz", - "integrity": "sha512-oofVMMafOCokIUIBnZLNcOZFsABaUw8PPrf1/y0ZBvKZNpOiu5h4AO9vv11Sw0p4Hb3D0yGWuEattcQGtNJ/aw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.2.6", - "rc-util": "^5.16.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-rate": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/rc-rate/-/rc-rate-2.13.0.tgz", - "integrity": "sha512-oxvx1Q5k5wD30sjN5tqAyWTvJfLNNJn7Oq3IeS4HxWfAiC4BOXMITNAsw7u/fzdtO4MS8Ki8uRLOzcnEuoQiAw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.2.5", - "rc-util": "^5.0.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-resize-observer": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/rc-resize-observer/-/rc-resize-observer-1.4.3.tgz", - "integrity": "sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.20.7", - "classnames": "^2.2.1", - "rc-util": "^5.44.1", - "resize-observer-polyfill": "^1.5.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-segmented": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/rc-segmented/-/rc-segmented-2.5.0.tgz", - "integrity": "sha512-B28Fe3J9iUFOhFJET3RoXAPFJ2u47QvLSYcZWC4tFYNGPEjug5LAxEasZlA/PpAxhdOPqGWsGbSj7ftneukJnw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.11.1", - "classnames": "^2.2.1", - "rc-motion": "^2.4.4", - "rc-util": "^5.17.0" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/rc-select": { - "version": "14.16.4", - "resolved": "https://registry.npmjs.org/rc-select/-/rc-select-14.16.4.tgz", - "integrity": "sha512-jP6qf7+vjnxGvPpfPWbGYfFlSl3h8L2XcD4O7g2GYXmEeBC0mw+nPD7i++OOE8v3YGqP8xtYjRKAWCMLfjgxlw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/trigger": "^2.1.1", - "classnames": "2.x", - "rc-motion": "^2.0.1", - "rc-overflow": "^1.3.1", - "rc-util": "^5.16.1", - "rc-virtual-list": "^3.5.2" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": "*", - "react-dom": "*" - } - }, - "node_modules/rc-slider": { - "version": "11.1.7", - "resolved": "https://registry.npmjs.org/rc-slider/-/rc-slider-11.1.7.tgz", - "integrity": "sha512-ytYbZei81TX7otdC0QvoYD72XSlxvTihNth5OeZ6PMXyEDq/vHdWFulQmfDGyXK1NwKwSlKgpvINOa88uT5g2A==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.2.5", - "rc-util": "^5.36.0" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-steps": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/rc-steps/-/rc-steps-6.0.1.tgz", - "integrity": "sha512-lKHL+Sny0SeHkQKKDJlAjV5oZ8DwCdS2hFhAkIjuQt1/pB81M0cA0ErVFdHq9+jmPmFw1vJB2F5NBzFXLJxV+g==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.16.7", - "classnames": "^2.2.3", - "rc-util": "^5.16.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-switch": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/rc-switch/-/rc-switch-4.1.0.tgz", - "integrity": "sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.21.0", - "classnames": "^2.2.1", - "rc-util": "^5.30.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-table": { - "version": "7.49.0", - "resolved": "https://registry.npmjs.org/rc-table/-/rc-table-7.49.0.tgz", - "integrity": "sha512-/FoPLX94muAQOxVpi1jhnpKjOIqUbT81eELQPAzSXOke4ky4oCWYUXOcVpL31ZCO90xScwVSXRd7coqtgtB1Ng==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/context": "^1.4.0", - "classnames": "^2.2.5", - "rc-resize-observer": "^1.1.0", - "rc-util": "^5.41.0", - "rc-virtual-list": "^3.14.2" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-tabs": { - "version": "15.4.0", - "resolved": "https://registry.npmjs.org/rc-tabs/-/rc-tabs-15.4.0.tgz", - "integrity": "sha512-llKuyiAVqmXm2z7OrmhX5cNb2ueZaL8ZyA2P4R+6/72NYYcbEgOXibwHiQCFY2RiN3swXl53SIABi2CumUS02g==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.11.2", - "classnames": "2.x", - "rc-dropdown": "~4.2.0", - "rc-menu": "~9.16.0", - "rc-motion": "^2.6.2", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.34.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-textarea": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/rc-textarea/-/rc-textarea-1.8.2.tgz", - "integrity": "sha512-UFAezAqltyR00a8Lf0IPAyTd29Jj9ee8wt8DqXyDMal7r/Cg/nDt3e1OOv3Th4W6mKaZijjgwuPXhAfVNTN8sw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.2.1", - "rc-input": "~1.6.0", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-tooltip": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/rc-tooltip/-/rc-tooltip-6.2.1.tgz", - "integrity": "sha512-rws0duD/3sHHsD905Nex7FvoUGy2UBQRhTkKxeEvr2FB+r21HsOxcDJI0TzyO8NHhnAA8ILr8pfbSBg5Jj5KBg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.11.2", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.3.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } + "node_modules/raf-schd": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.3.tgz", + "integrity": "sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==" }, - "node_modules/rc-tree": { - "version": "5.10.1", - "resolved": "https://registry.npmjs.org/rc-tree/-/rc-tree-5.10.1.tgz", - "integrity": "sha512-FPXb3tT/u39mgjr6JNlHaUTYfHkVGW56XaGDahDpEFLGsnPxGcVLNTjcqoQb/GNbSCycl7tD7EvIymwOTP0+Yw==", - "license": "MIT", - "peer": true, + "node_modules/randomatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "2.x", - "rc-motion": "^2.0.1", - "rc-util": "^5.16.1", - "rc-virtual-list": "^3.5.1" + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" }, "engines": { - "node": ">=10.x" - }, - "peerDependencies": { - "react": "*", - "react-dom": "*" - } - }, - "node_modules/rc-tree-select": { - "version": "5.24.5", - "resolved": "https://registry.npmjs.org/rc-tree-select/-/rc-tree-select-5.24.5.tgz", - "integrity": "sha512-PnyR8LZJWaiEFw0SHRqo4MNQWyyZsyMs8eNmo68uXZWjxc7QqeWcjPPoONN0rc90c3HZqGF9z+Roz+GLzY5GXA==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/runtime": "^7.25.7", - "classnames": "2.x", - "rc-select": "~14.16.2", - "rc-tree": "~5.10.1", - "rc-util": "^5.43.0" - }, - "peerDependencies": { - "react": "*", - "react-dom": "*" - } - }, - "node_modules/rc-trigger": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/rc-trigger/-/rc-trigger-1.11.5.tgz", - "integrity": "sha512-MBuUPw1nFzA4K7jQOwb7uvFaZFjXGd00EofUYiZ+l/fgKVq8wnLC0lkv36kwqM7vfKyftRo2sh7cWVpdPuNnnw==", - "peer": true, - "dependencies": { - "babel-runtime": "6.x", - "create-react-class": "15.x", - "prop-types": "15.x", - "rc-align": "2.x", - "rc-animate": "2.x", - "rc-util": "4.x" + "node": ">= 0.10.0" } }, - "node_modules/rc-trigger/node_modules/rc-util": { - "version": "4.21.1", - "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-4.21.1.tgz", - "integrity": "sha512-Z+vlkSQVc1l8O2UjR3WQ+XdWlhj5q9BMQNLk2iOBch75CqPfrJyGtcWMcnhRlNuDu0Ndtt4kLVO8JI8BrABobg==", - "license": "MIT", - "peer": true, - "dependencies": { - "add-dom-event-listener": "^1.1.0", - "prop-types": "^15.5.10", - "react-is": "^16.12.0", - "react-lifecycles-compat": "^3.0.4", - "shallowequal": "^1.1.0" + "node_modules/randomatic/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/rc-trigger/node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "license": "MIT", - "peer": true - }, - "node_modules/rc-upload": { - "version": "4.8.1", - "resolved": "https://registry.npmjs.org/rc-upload/-/rc-upload-4.8.1.tgz", - "integrity": "sha512-toEAhwl4hjLAI1u8/CgKWt30BR06ulPa4iGQSMvSXoHzO88gPCslxqV/mnn4gJU7PDoltGIC9Eh+wkeudqgHyw==", - "license": "MIT", - "peer": true, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dependencies": { - "@babel/runtime": "^7.18.3", - "classnames": "^2.2.5", - "rc-util": "^5.2.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" + "safe-buffer": "^5.1.0" } }, - "node_modules/rc-util": { - "version": "5.44.3", - "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-5.44.3.tgz", - "integrity": "sha512-q6KCcOFk3rv/zD3MckhJteZxb0VjAIFuf622B7ElK4vfrZdAzs16XR5p3VTdy3+U5jfJU5ACz4QnhLSuAGe5dA==", - "license": "MIT", - "peer": true, + "node_modules/randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", "dependencies": { - "@babel/runtime": "^7.18.3", - "react-is": "^18.2.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" } }, - "node_modules/rc-virtual-list": { - "version": "3.16.1", - "resolved": "https://registry.npmjs.org/rc-virtual-list/-/rc-virtual-list-3.16.1.tgz", - "integrity": "sha512-algM5UsB7vrlPNr9lsZEH8s9KHkP8XbT/Y0qylyPkiM8mIOlSJLjBNADcmbYPEQCm4zW82mZRJuVHNzqqN0EAQ==", - "license": "MIT", - "peer": true, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, "dependencies": { - "@babel/runtime": "^7.20.0", - "classnames": "^2.2.6", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.36.0" - }, - "engines": { - "node": ">=8.x" + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" + "bin": { + "rc": "cli.js" } }, "node_modules/rc/node_modules/strip-json-comments": { @@ -18116,13 +16981,6 @@ "react": "^18.3.1" } }, - "node_modules/react-fast-compare": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", - "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==", - "license": "MIT", - "peer": true - }, "node_modules/react-google-recaptcha": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/react-google-recaptcha/-/react-google-recaptcha-3.1.0.tgz", @@ -18388,13 +17246,6 @@ "node": ">=4" } }, - "node_modules/regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "license": "MIT", - "peer": true - }, "node_modules/regenerator-transform": { "version": "0.15.2", "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", @@ -18405,9 +17256,58 @@ } }, "node_modules/regex": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/regex/-/regex-4.3.2.tgz", - "integrity": "sha512-kK/AA3A9K6q2js89+VMymcboLOlF5lZRCYJv3gzszXFHBr6kO6qLGzbm+UIugBEV8SMMKCTR59txoY6ctRHYVw==" + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/regex/-/regex-5.1.1.tgz", + "integrity": "sha512-dN5I359AVGPnwzJm2jN1k0W9LPZ+ePvoOeVMMfqIMFz53sSwXkxaJoxr50ptnsC771lK95BnTrVSZxq0b9yCGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-5.1.1.tgz", + "integrity": "sha512-ae7SBCbzVNrIjgSbh7wMznPcQel1DNlDtzensnFxpiNpXt1U2ju/bHugH422r+4LAVS1FpW1YCwilmnNsjum9w==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex": "^5.1.1", + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "dev": true, + "license": "MIT" + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/regex/-/regex-5.1.1.tgz", + "integrity": "sha512-dN5I359AVGPnwzJm2jN1k0W9LPZ+ePvoOeVMMfqIMFz53sSwXkxaJoxr50ptnsC771lK95BnTrVSZxq0b9yCGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-5.1.1.tgz", + "integrity": "sha512-ae7SBCbzVNrIjgSbh7wMznPcQel1DNlDtzensnFxpiNpXt1U2ju/bHugH422r+4LAVS1FpW1YCwilmnNsjum9w==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex": "^5.1.1", + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "dev": true, + "license": "MIT" }, "node_modules/regexp.prototype.flags": { "version": "1.5.2", @@ -18562,13 +17462,6 @@ "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==" }, - "node_modules/resize-observer-polyfill": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", - "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", - "license": "MIT", - "peer": true - }, "node_modules/resolve": { "version": "1.22.8", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", @@ -18965,7 +17858,7 @@ "version": "1.80.7", "resolved": "https://registry.npmjs.org/sass/-/sass-1.80.7.tgz", "integrity": "sha512-MVWvN0u5meytrSjsU7AWsbhoXi1sc58zADXFllfZzbsBT1GHjjar6JwBINYPRrkx/zqnQ6uqbQuHgE95O+C+eQ==", - "devOptional": true, + "dev": true, "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", @@ -18985,7 +17878,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", - "devOptional": true, + "dev": true, "dependencies": { "readdirp": "^4.0.1" }, @@ -19000,7 +17893,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", - "devOptional": true, + "dev": true, "engines": { "node": ">= 14.16.0" }, @@ -19029,29 +17922,6 @@ "loose-envify": "^1.1.0" } }, - "node_modules/screenfull": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/screenfull/-/screenfull-5.2.0.tgz", - "integrity": "sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/scroll-into-view-if-needed": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/scroll-into-view-if-needed/-/scroll-into-view-if-needed-3.1.0.tgz", - "integrity": "sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "compute-scroll-into-view": "^3.0.2" - } - }, "node_modules/semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", @@ -19145,13 +18015,6 @@ "sha.js": "bin.js" } }, - "node_modules/shallowequal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", - "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==", - "license": "MIT", - "peer": true - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -19174,15 +18037,31 @@ } }, "node_modules/shiki": { - "version": "1.17.6", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-1.17.6.tgz", - "integrity": "sha512-RejGugKpDM75vh6YtF9R771acxHRDikC/01kxsUGW+Pnaz3pTY+c8aZB5CnD7p0vuFPs1HaoAIU/4E+NCfS+mQ==", - "dependencies": { - "@shikijs/core": "1.17.6", - "@shikijs/engine-javascript": "1.17.6", - "@shikijs/engine-oniguruma": "1.17.6", - "@shikijs/types": "1.17.6", - "@shikijs/vscode-textmate": "^9.2.2", + "version": "1.26.1", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-1.26.1.tgz", + "integrity": "sha512-Gqg6DSTk3wYqaZ5OaYtzjcdxcBvX5kCy24yvRJEgjT5U+WHlmqCThLuBUx0juyxQBi+6ug53IGeuQS07DWwpcw==", + "dev": true, + "license": "MIT", + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-1.27.2.tgz", + "integrity": "sha512-QtA1C41oEVixKog+V8I3ia7jjGls7oCZ8Yul8vdHrVBga5uPoyTtMvFF4lMMXIyAZo5A5QbXq91bot2vA6Q+eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/core": "1.26.1", + "@shikijs/engine-javascript": "1.26.1", + "@shikijs/engine-oniguruma": "1.26.1", + "@shikijs/langs": "1.26.1", + "@shikijs/themes": "1.26.1", + "@shikijs/types": "1.26.1", + "@shikijs/vscode-textmate": "^10.0.1", + "@shikijs/core": "1.27.2", + "@shikijs/engine-javascript": "1.27.2", + "@shikijs/engine-oniguruma": "1.27.2", + "@shikijs/langs": "1.27.2", + "@shikijs/themes": "1.27.2", + "@shikijs/types": "1.27.2", + "@shikijs/vscode-textmate": "^10.0.1", "@types/hast": "^3.0.4" } }, @@ -19348,6 +18227,10 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -19437,13 +18320,6 @@ "node": ">=0.6.19" } }, - "node_modules/string-convert": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz", - "integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==", - "license": "MIT", - "peer": true - }, "node_modules/string-hash": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz", @@ -19580,6 +18456,10 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "character-entities-html4": "^2.0.0", "character-entities-legacy": "^3.0.0" @@ -19869,13 +18749,6 @@ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", "dev": true }, - "node_modules/tinycolor2": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.6.0.tgz", - "integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==", - "license": "MIT", - "peer": true - }, "node_modules/tinyexec": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.1.tgz", @@ -19970,13 +18843,6 @@ "node": ">=8.0" } }, - "node_modules/toggle-selection": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz", - "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==", - "license": "MIT", - "peer": true - }, "node_modules/toml": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", @@ -20031,6 +18897,10 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" @@ -20649,15 +19519,24 @@ } }, "node_modules/typedoc": { - "version": "0.26.10", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.26.10.tgz", - "integrity": "sha512-xLmVKJ8S21t+JeuQLNueebEuTVphx6IrP06CdV7+0WVflUSW3SPmR+h1fnWVdAR/FQePEgsSWCUHXqKKjzuUAw==", + "version": "0.27.6", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.27.6.tgz", + "integrity": "sha512-oBFRoh2Px6jFx366db0lLlihcalq/JzyCVp7Vaq1yphL/tbgx2e+bkpkCgJPunaPvPwoTOXSwasfklWHm7GfAw==", + "dev": true, + "license": "Apache-2.0", + "version": "0.27.6", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.27.6.tgz", + "integrity": "sha512-oBFRoh2Px6jFx366db0lLlihcalq/JzyCVp7Vaq1yphL/tbgx2e+bkpkCgJPunaPvPwoTOXSwasfklWHm7GfAw==", + "dev": true, + "license": "Apache-2.0", "dependencies": { + "@gerrit0/mini-shiki": "^1.24.0", + "@gerrit0/mini-shiki": "^1.24.0", "lunr": "^2.3.9", "markdown-it": "^14.1.0", "minimatch": "^9.0.5", - "shiki": "^1.16.2", - "yaml": "^2.5.1" + "yaml": "^2.6.1" + "yaml": "^2.6.1" }, "bin": { "typedoc": "bin/typedoc" @@ -20666,24 +19545,35 @@ "node": ">= 18" }, "peerDependencies": { - "typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x" + "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x" + "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x" } }, "node_modules/typedoc-plugin-markdown": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.2.10.tgz", - "integrity": "sha512-PLX3pc1/7z13UJm4TDE9vo9jWGcClFUErXXtd5LdnoLjV6mynPpqZLU992DwMGFSRqJFZeKbVyqlNNeNHnk2tQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.4.1.tgz", + "integrity": "sha512-fx23nSCvewI9IR8lzIYtzDphETcgTDuxKcmHKGD4lo36oexC+B1k4NaCOY58Snqb4OlE8OXDAGVcQXYYuLRCNw==", + "dev": true, + "license": "MIT", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.4.1.tgz", + "integrity": "sha512-fx23nSCvewI9IR8lzIYtzDphETcgTDuxKcmHKGD4lo36oexC+B1k4NaCOY58Snqb4OlE8OXDAGVcQXYYuLRCNw==", + "dev": true, + "license": "MIT", "engines": { "node": ">= 18" }, "peerDependencies": { - "typedoc": "0.26.x" + "typedoc": "0.27.x" + "typedoc": "0.27.x" } }, "node_modules/typedoc/node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dev": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -20692,6 +19582,8 @@ "version": "9.0.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -20703,9 +19595,16 @@ } }, "node_modules/typedoc/node_modules/yaml": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", - "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", + "dev": true, + "license": "ISC", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz", + "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==", + "dev": true, + "license": "ISC", "bin": { "yaml": "bin.mjs" }, @@ -20728,7 +19627,10 @@ "node_modules/uc.micro": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", - "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==" + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "dev": true + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", + "dev": true }, "node_modules/unbox-primitive": { "version": "1.0.2", @@ -20843,6 +19745,10 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.0.tgz", "integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "^3.0.0" }, @@ -20855,6 +19761,10 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "^3.0.0" }, @@ -20867,6 +19777,10 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "^3.0.0" }, @@ -20879,6 +19793,10 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "^3.0.0", "unist-util-is": "^6.0.0", @@ -20893,6 +19811,10 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz", "integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "^3.0.0", "unist-util-is": "^6.0.0" @@ -21101,6 +20023,10 @@ "version": "6.0.3", "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "^3.0.0", "vfile-message": "^4.0.0" @@ -21114,6 +20040,10 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz", "integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "dependencies": { "@types/unist": "^3.0.0", "unist-util-stringify-position": "^4.0.0" @@ -21123,18 +20053,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/virtualizedtableforantd4": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/virtualizedtableforantd4/-/virtualizedtableforantd4-1.3.1.tgz", - "integrity": "sha512-rW8KoToI2nt1jNtweXIUIiygi74XMzKLzUrrtZbGsQc7m3v68AaedPuf4CZcte+nosgYuPEWnAgjuI/KR8BVbg==", - "license": "MIT", - "peer": true, - "peerDependencies": { - "antd": "^4.0.0 || ^5.0.0", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, "node_modules/vite": { "version": "5.4.8", "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.8.tgz", @@ -22019,39 +20937,14 @@ "url": "https://github.com/sponsors/colinhacks" } }, - "node_modules/zustand": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.5.tgz", - "integrity": "sha512-+0PALYNJNgK6hldkgDq2vLrw5f6g/jCInz52n9RTpropGgeAf/ioFUCdtsjCqu4gNhW9D01rUQBROoRjdzyn2Q==", - "license": "MIT", - "peer": true, - "dependencies": { - "use-sync-external-store": "1.2.2" - }, - "engines": { - "node": ">=12.7.0" - }, - "peerDependencies": { - "@types/react": ">=16.8", - "immer": ">=9.0.6", - "react": ">=16.8" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "immer": { - "optional": true - }, - "react": { - "optional": true - } - } - }, "node_modules/zwitch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "dev": true, + "license": "MIT", + "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" diff --git a/package.json b/package.json index 7fd2f550eb..0890bbd226 100644 --- a/package.json +++ b/package.json @@ -63,8 +63,6 @@ "redux": "^5.0.1", "redux-thunk": "^3.1.0", "sanitize-html": "^2.13.0", - "typedoc": "^0.26.10", - "typedoc-plugin-markdown": "^4.2.10", "typescript": "^5.6.3", "vite": "^5.4.8", "vite-plugin-environment": "^1.1.3", @@ -92,7 +90,9 @@ "update:toc": "node scripts/githooks/update-toc.js", "lint-staged": "lint-staged --concurrent false", "setup": "tsx setup.ts", - "check-localstorage": "node scripts/githooks/check-localstorage-usage.js" + "check-localstorage": "node scripts/githooks/check-localstorage-usage.js", + "postgenerate-docs": "find docs/docs/auto-docs -name 'README.md' -delete && node fix-repo-url.js", + "generate-docs": "typedoc && npm run postgenerate-docs && node fix-readme-links.js" }, "eslintConfig": { "extends": [ @@ -117,10 +117,10 @@ "@babel/preset-env": "^7.26.0", "@babel/preset-react": "^7.25.7", "@babel/preset-typescript": "^7.26.0", + "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.0.1", "@testing-library/user-event": "^12.1.10", - "@testing-library/dom": "^10.4.0", "@types/inquirer": "^9.0.7", "@types/jest": "^26.0.24", "@types/js-cookie": "^3.0.6", @@ -129,8 +129,6 @@ "@types/react": "^18.3.12", "@types/react-beautiful-dnd": "^13.1.8", "@types/react-bootstrap": "^0.32.37", - "@types/react-chartjs-2": "^2.5.7", - "@types/react-datepicker": "^7.0.0", "@types/react-dom": "^18.3.1", "@types/react-google-recaptcha": "^2.1.9", "@types/react-router-dom": "^5.1.8", @@ -156,7 +154,10 @@ "lint-staged": "^15.3.0", "postcss-modules": "^6.0.1", "sass": "^1.80.7", + "shiki": "^1.26.1", "tsx": "^4.19.1", + "typedoc": "^0.27.6", + "typedoc-plugin-markdown": "^4.4.1", "vite-plugin-svgr": "^4.2.0", "vitest": "^2.1.5", "whatwg-fetch": "^3.6.20" @@ -170,6 +171,14 @@ "engines": { "node": ">=20.x" }, + "overrides": { + "core-js": "^3.40.0", + "rc-color-picker": { + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "gulp-header": "^2.0.9" + }, "lint-staged": { "**/*.{ts, tsx, json, scss, css}": [ "prettier --write" diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index fc445a708e..5b0e868cfc 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -1092,7 +1092,9 @@ "comments": "Comments", "viewPost": "View Post", "editPost": "Edit Post", - "postedOn": "Posted on {{date}}" + "postedOn": "Posted on {{date}}", + "emptyCommentError": "Please enter a comment before submitting.", + "unexpectedError": "An unexpected error occurred. Please try again." }, "home": { "posts": "Posts", diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json index 0ac5728872..cf9abead9a 100644 --- a/public/locales/fr/translation.json +++ b/public/locales/fr/translation.json @@ -1052,7 +1052,9 @@ "comments": "commentaires", "viewPost": "Voir le message", "editPost": "Modifier le message", - "postedOn": "Publié le {{date}}" + "postedOn": "Publié le {{date}}", + "emptyCommentError": "Veuillez saisir un commentaire avant de soumettre.", + "unexpectedError": "Une erreur inattendue s'est produite. Veuillez réessayer." }, "home": { "posts": "Des postes", diff --git a/public/locales/hi/translation.json b/public/locales/hi/translation.json index d791c0d9e8..9a18d82ead 100644 --- a/public/locales/hi/translation.json +++ b/public/locales/hi/translation.json @@ -1052,7 +1052,9 @@ "comments": "टिप्पणियाँ", "viewPost": "पोस्ट देखें", "editPost": "पोस्ट संपादित करें", - "postedOn": "{{date}} को पोस्ट किया गया" + "postedOn": "{{date}} को पोस्ट किया गया", + "emptyCommentError": "कृपया टिप्पणी करने से पहले एक टिप्पणी दर्ज करें।", + "unexpectedError": "एक अप्रत्याशित त्रुटि हुई। कृपया फिर से प्रयास करें।" }, "home": { "title": "पदों", diff --git a/public/locales/sp/translation.json b/public/locales/sp/translation.json index 814da7334b..503c20bb43 100644 --- a/public/locales/sp/translation.json +++ b/public/locales/sp/translation.json @@ -1053,7 +1053,9 @@ "comments": "Comentarios", "viewPost": "Ver publicación", "editPost": "Editar publicación", - "postedOn": "Publicado el {{date}}" + "postedOn": "Publicado el {{date}}", + "emptyCommentError": "Por favor ingrese un comentario antes de enviarlo.", + "unexpectedError": "Ocurrió un error inesperado. Por favor, inténtelo de nuevo." }, "home": { "posts": "Publicaciones", diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index 2a8a2753a8..bfe215b933 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -1052,7 +1052,9 @@ "comments": "评论", "viewPost": "查看帖子", "editPost": "编辑帖子", - "postedOn": "发布于 {{date}}" + "postedOn": "发布于 {{date}}", + "emptyCommentError": "请在提交前输入评论。", + "unexpectedError": "发生了意外错误。请重试。" }, "home": { "title": "帖子", diff --git a/src/App.tsx b/src/App.tsx index a12f3e7ceb..210b6ff142 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -58,6 +58,7 @@ const { setItem } = useLocalStorage(); * This is the main function for our application. It sets up all the routes and components, * defining how the user can navigate through the app. The function uses React Router's `Routes` * and `Route` components to map different URL paths to corresponding screens and components. + * THESE ARE THE DETAILS FOR THIS MAIN FUNCTION * * ## Important Details * - **UseEffect Hook**: This hook checks user authentication status using the `CHECK_AUTH` GraphQL query. diff --git a/src/assets/css/app.css b/src/assets/css/app.css index f2bc9f3aaf..16af7c92fb 100644 --- a/src/assets/css/app.css +++ b/src/assets/css/app.css @@ -14081,7 +14081,7 @@ fieldset:disabled .btn { .btn-info:hover, .btn-info:active { color: #fff !important; - box-shadow: inset 50px 50px 40px rgba(0, 0, 0, 0.5); + /* box-shadow: inset 50px 50px 40px rgba(0, 0, 0, 0.5); */ background-blend-mode: multiply; /* background-color: #6c757d ; */ /* filter: brightness(0.85); */ diff --git a/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx b/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx index 9c9a822e22..be4f59c74e 100644 --- a/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx +++ b/src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx @@ -42,6 +42,23 @@ interface InterfaceAddOnEntryProps { * getInstalledPlugins={() => {}} * /> * ``` + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.addButton` + * - `.removeButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ function addOnEntry({ id, diff --git a/src/components/AddPeopleToTag/AddPeopleToTag.tsx b/src/components/AddPeopleToTag/AddPeopleToTag.tsx index 29eeb4a56c..f277d22e50 100644 --- a/src/components/AddPeopleToTag/AddPeopleToTag.tsx +++ b/src/components/AddPeopleToTag/AddPeopleToTag.tsx @@ -22,9 +22,30 @@ import { useTranslation } from 'react-i18next'; import InfiniteScrollLoader from 'components/InfiniteScrollLoader/InfiniteScrollLoader'; import type { TFunction } from 'i18next'; -/** - * Props for the `AddPeopleToTag` component. +/** * Props for the `AddPeopleToTag` component. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.editButton` + * - `.modalHeader` + * - `.inputField` + * - `.addButton` + * - `.removeButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ + export interface InterfaceAddPeopleToTagProps { addPeopleToTagModalIsOpen: boolean; hideAddPeopleToTagModal: () => void; diff --git a/src/components/Advertisements/Advertisements.tsx b/src/components/Advertisements/Advertisements.tsx index f428b569a0..b7ae934c5d 100644 --- a/src/components/Advertisements/Advertisements.tsx +++ b/src/components/Advertisements/Advertisements.tsx @@ -184,7 +184,11 @@ export default function advertisements(): JSX.Element { )} - + new Date(ad.endDate) < new Date(), ).length !== 0 && (
-
{t('endOfResults')}
+
{tCommon('endOfResults')}
) } diff --git a/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx b/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx index dca9adb45a..076733e633 100644 --- a/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx +++ b/src/components/Advertisements/core/AdvertisementEntry/AdvertisementEntry.tsx @@ -27,6 +27,24 @@ interface InterfaceAddOnEntryProps { * * @param props - Component properties * @returns The rendered component + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.addButton` + * - `.removeButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ function AdvertisementEntry({ id, diff --git a/src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx b/src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx index 24290d7b13..6f1e191266 100644 --- a/src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx +++ b/src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx @@ -16,6 +16,25 @@ import { useParams } from 'react-router-dom'; /** * Props for the `advertisementRegister` component. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.dropdown` + * - `.inputField` + * - `.removeButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ interface InterfaceAddOnRegisterProps { id?: string; // Optional organization ID diff --git a/src/components/CheckIn/TableRow.tsx b/src/components/CheckIn/TableRow.tsx index b2bd6e11cb..6c0e6a4ff3 100644 --- a/src/components/CheckIn/TableRow.tsx +++ b/src/components/CheckIn/TableRow.tsx @@ -72,13 +72,12 @@ export const TableRow = ({ } inputs.push({ name: data.name.trim() }); const pdf = await generate({ template: tagTemplate, inputs }); - // istanbul ignore next - const blob = new Blob([pdf.buffer], { type: 'application/pdf' }); - // istanbul ignore next + + // Convert ArrayBuffer to Uint8Array before creating Blob + const uint8Array = new Uint8Array(pdf.buffer); + const blob = new Blob([uint8Array], { type: 'application/pdf' }); const url = URL.createObjectURL(blob); - // istanbul ignore next window.open(url); - // istanbul ignore next toast.success('PDF generated successfully!'); } catch (error: unknown) { const errorMessage = diff --git a/src/components/EventCalendar/EventCalendar.tsx b/src/components/EventCalendar/EventCalendar.tsx index 01426ca047..c84a6d23d5 100644 --- a/src/components/EventCalendar/EventCalendar.tsx +++ b/src/components/EventCalendar/EventCalendar.tsx @@ -9,6 +9,26 @@ import HolidayCard from '../HolidayCards/HolidayCard'; import { holidays, months, weekdays } from './constants'; import type { InterfaceRecurrenceRule } from 'utils/recurrenceUtils'; import YearlyEventCalender from './YearlyEventCalender'; + +/** + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.editButton` + * + * For more details on the reusable classes, refer to the global CSS file. + */ + interface InterfaceEventListCardProps { userRole?: string; key?: string; diff --git a/src/components/EventCalendar/EventHeader.tsx b/src/components/EventCalendar/EventHeader.tsx index 19492be0ae..93e1612a4c 100644 --- a/src/components/EventCalendar/EventHeader.tsx +++ b/src/components/EventCalendar/EventHeader.tsx @@ -24,6 +24,23 @@ interface InterfaceEventHeaderProps { * @param handleChangeView - Function to handle changing the view type. * @param showInviteModal - Function to show the invite modal for creating an event. * @returns JSX.Element - The rendered EventHeader component. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.dropdown` + * + * For more details on the reusable classes, refer to the global CSS file. */ function eventHeader({ viewType, diff --git a/src/components/EventListCard/EventListCardModals.tsx b/src/components/EventListCard/EventListCardModals.tsx index 3bcdf38df8..29354fd282 100644 --- a/src/components/EventListCard/EventListCardModals.tsx +++ b/src/components/EventListCard/EventListCardModals.tsx @@ -41,6 +41,27 @@ enum Role { * Converts a time string to a Dayjs object representing the current date with the specified time. * @param time - A string representing the time in 'HH:mm:ss' format. * @returns A Dayjs object with the current date and specified time. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.inputField` + * - `.switch` + * - `.addButton` + * - `.removeButton` + * - `.modalHeader` + * + * For more details on the reusable classes, refer to the global CSS file. */ const timeToDayJs = (time: string): Dayjs => { const dateTimeString = dayjs().format('YYYY-MM-DD') + ' ' + time; diff --git a/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx b/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx index 55c8757623..e738c379a0 100644 --- a/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx +++ b/src/components/OrgPeopleListCard/OrgPeopleListCard.tsx @@ -12,6 +12,23 @@ import { Close } from '@mui/icons-material'; /** * Props for the OrgPeopleListCard component + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.regularBtn` + * + * For more details on the reusable classes, refer to the global CSS file. */ interface InterfaceOrgPeopleListCardProps { id: string | undefined; diff --git a/src/components/OrgPostCard/DeletePostModal.tsx b/src/components/OrgPostCard/DeletePostModal.tsx index 7ed025de50..78584cfea3 100644 --- a/src/components/OrgPostCard/DeletePostModal.tsx +++ b/src/components/OrgPostCard/DeletePostModal.tsx @@ -10,6 +10,23 @@ import styles from '../../style/app.module.css'; * @param onHide - Callback invoked when the modal is dismissed. * @param onDelete - Callback invoked to actually delete the post. * @returns A rendered React Bootstrap Modal for post deletion. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ interface InterfaceDeletePostModalProps { diff --git a/src/components/OrgPostCard/OrgPostCard.tsx b/src/components/OrgPostCard/OrgPostCard.tsx index d0d8dc85ac..d79d29791e 100644 --- a/src/components/OrgPostCard/OrgPostCard.tsx +++ b/src/components/OrgPostCard/OrgPostCard.tsx @@ -16,6 +16,30 @@ import { errorHandler } from 'utils/errorHandler'; import type { InterfacePostForm } from 'utils/interfaces'; import styles from '../../style/app.module.css'; import DeletePostModal from './DeletePostModal'; + +/** + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.modalHeader` + * - `.inputField` + * - `.removeButton` + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. + */ + interface InterfaceOrgPostCardProps { postID: string; id: string; diff --git a/src/components/OrganizationCard/OrganizationCard.spec.tsx b/src/components/OrganizationCard/OrganizationCard.spec.tsx index c557253d59..d2089bc231 100644 --- a/src/components/OrganizationCard/OrganizationCard.spec.tsx +++ b/src/components/OrganizationCard/OrganizationCard.spec.tsx @@ -1,49 +1,370 @@ +import '@testing-library/jest-dom'; +import { vi } from 'vitest'; import React from 'react'; -import { render, screen } from '@testing-library/react'; +import { render, screen, fireEvent, waitFor } from '@testing-library/react'; +import type { MockedResponse } from '@apollo/client/testing'; +import { toast } from 'react-toastify'; +import i18n from 'i18next'; import OrganizationCard from './OrganizationCard'; +import { TestWrapper } from '../../components/test-utils/TestWrapper'; +import { + SEND_MEMBERSHIP_REQUEST, + JOIN_PUBLIC_ORGANIZATION, + CANCEL_MEMBERSHIP_REQUEST, +} from 'GraphQl/Mutations/OrganizationMutations'; +import { USER_JOINED_ORGANIZATIONS } from 'GraphQl/Queries/OrganizationQueries'; -/** - * This file contains unit tests for the `OrganizationCard` component. - * - * The tests cover: - * - Rendering the component with all provided props and verifying the correct display of text elements. - * - Ensuring the component handles cases where certain props (like image) are not provided. - * - * These tests utilize the React Testing Library for rendering and querying DOM elements. - */ - -describe('Testing the Organization Card', () => { - it('should render props and text elements test for the page component', () => { +// Mock hooks +const mockGetItem = vi.fn(); +vi.mock('utils/useLocalstorage', () => ({ + __esModule: true, + default: () => ({ + getItem: () => mockGetItem(), + setItem: vi.fn(), + }), +})); + +vi.mock('react-toastify', () => ({ + toast: { + success: vi.fn(), + error: vi.fn(), + }, +})); + +const mockNavigate = vi.fn(); +vi.mock('react-router-dom', () => { + const actual = vi.importActual('react-router-dom'); + return { + ...actual, + useNavigate: () => mockNavigate, + BrowserRouter: ({ + children, + }: { + children: React.ReactNode; + }): JSX.Element =>
{children}
, + }; +}); + +// Initialize i18n for testing +i18n.init({ + lng: 'en', + resources: { + en: { + translation: { + users: { + MembershipRequestSent: 'Request sent', + orgJoined: 'Joined', + AlreadyJoined: 'Already joined', + errorOccured: 'error occurred', + MembershipRequestNotFound: 'Request not found', + MembershipRequestWithdrawn: 'Request withdrawn', + visit: 'Visit', + withdraw: 'Withdraw', + joinNow: 'Join Now', + }, + }, + common: { + admins: 'Admins', + members: 'Members', + }, + }, + }, +}); + +// Success mocks +const successMocks: MockedResponse[] = [ + { + request: { + query: SEND_MEMBERSHIP_REQUEST, + variables: { organizationId: '123' }, + }, + result: { + data: { sendMembershipRequest: { success: true } }, + }, + }, + { + request: { + query: JOIN_PUBLIC_ORGANIZATION, + variables: { organizationId: '123' }, + }, + result: { + data: { joinPublicOrganization: { success: true } }, + }, + }, + { + request: { + query: CANCEL_MEMBERSHIP_REQUEST, + variables: { membershipRequestId: 'requestId' }, + }, + result: { + data: { cancelMembershipRequest: { success: true } }, + }, + }, + { + request: { + query: USER_JOINED_ORGANIZATIONS, + variables: { userId: 'mockUserId' }, + }, + result: { + data: { + organizations: [ + { + _id: '123', + name: 'Test Org', + }, + ], + }, + }, + }, +]; + +// Error mocks +const errorMocks: MockedResponse[] = [ + { + request: { + query: SEND_MEMBERSHIP_REQUEST, + variables: { organizationId: '123' }, + }, + error: new Error('Failed to send request'), + }, + { + request: { + query: JOIN_PUBLIC_ORGANIZATION, + variables: { organizationId: '123' }, + }, + error: new Error('Failed to join organization'), + }, + { + request: { + query: CANCEL_MEMBERSHIP_REQUEST, + variables: { membershipRequestId: 'requestId' }, + }, + error: new Error('Failed to cancel request'), + }, +]; + +describe('OrganizationCard Component', () => { + const defaultProps = { + id: '123', + image: 'https://via.placeholder.com/80', + firstName: 'John', + lastName: 'Doe', + name: 'Sample', + description: '', + admins: [], + members: [], + address: { + city: '', + countryCode: '', + line1: '', + postalCode: '', + state: '', + }, + membershipRequestStatus: '', + userRegistrationRequired: false, + membershipRequests: [], + }; + + beforeEach(() => { + vi.clearAllMocks(); + mockGetItem.mockReturnValue('mockUserId'); + }); + + // Basic Rendering Tests + describe('Rendering', () => { + it('should render props and text elements', () => { + render( + + + , + ); + + expect(screen.getByText(defaultProps.name)).toBeInTheDocument(); + expect(screen.getByText(/Admins/i)).toBeInTheDocument(); + expect(screen.getByText(/Members/i)).toBeInTheDocument(); + }); + + it('should render without image', () => { + const props = { ...defaultProps, image: '' }; + render( + + + , + ); + + expect(screen.getByText(props.name)).toBeInTheDocument(); + }); + + it('should render full address when provided', () => { + const props = { + ...defaultProps, + address: { + city: 'Test City', + countryCode: 'TC', + line1: 'Test Line 1', + postalCode: '12345', + state: 'TS', + }, + }; + + render( + + + , + ); + + expect(screen.getByText(/Test Line 1/)).toBeInTheDocument(); + expect(screen.getByText(/Test City/)).toBeInTheDocument(); + expect(screen.getByText(/TC/)).toBeInTheDocument(); + }); + }); + + // Hook Tests + describe('Hooks Behavior', () => { + it('should handle localStorage error gracefully', () => { + mockGetItem.mockImplementation(() => { + throw new Error('localStorage error'); + }); + + render( + + + , + ); + + const joinButton = screen.getByTestId('joinBtn'); + expect(joinButton).toBeInTheDocument(); + expect(joinButton).toHaveTextContent('joinNow'); + }); + + it('should navigate to organization page on visit', () => { + render( + + + , + ); + + const visitButton = screen.getByTestId('manageBtn'); + fireEvent.click(visitButton); + expect(mockNavigate).toHaveBeenCalledWith( + `/user/organization/${defaultProps.id}`, + ); + }); + + it('should correctly translate all text elements', () => { + render( + + + , + ); + + const adminText = screen.getByText(/Admins:/); + const memberText = screen.getByText(/Members:/); + + expect(adminText).toBeInTheDocument(); + expect(memberText).toBeInTheDocument(); + }); + }); + + // Mutation Tests + describe('Mutations', () => { + it('should handle joining a private organization successfully', async () => { + render( + + + , + ); + + const joinButton = screen.getByText('joinNow'); + await fireEvent.click(joinButton); + + await waitFor(() => { + expect(toast.success).toHaveBeenCalledWith('MembershipRequestSent'); + }); + }); + + it('should handle joining a public organization successfully', async () => { + render( + + + , + ); + + const joinButton = screen.getByText('joinNow'); + await fireEvent.click(joinButton); + + await waitFor(() => { + expect(toast.success).toHaveBeenCalledWith('orgJoined'); + }); + }); + + it('should handle private organization join error', async () => { + render( + + + , + ); + + const joinButton = screen.getByTestId('joinBtn'); + await fireEvent.click(joinButton); + + await waitFor(() => { + expect(toast.error).toHaveBeenCalledWith('errorOccured'); + }); + }); + }); + + it('should handle membership withdrawal successfully', async () => { const props = { - id: '123', - image: 'https://via.placeholder.com/80', - firstName: 'John', - lastName: 'Doe', - name: 'Sample', + ...defaultProps, + membershipRequestStatus: 'pending', + membershipRequests: [{ _id: 'requestId', user: { _id: 'mockUserId' } }], }; - render(); + render( + + + , + ); - expect(screen.getByText(props.name)).toBeInTheDocument(); - expect(screen.getByText(/Owner:/i)).toBeInTheDocument(); - expect(screen.getByText(props.firstName)).toBeInTheDocument(); - expect(screen.getByText(props.lastName)).toBeInTheDocument(); + const withdrawButton = screen.getByTestId('withdrawBtn'); + await fireEvent.click(withdrawButton); + + await waitFor(() => { + expect(toast.success).toHaveBeenCalledWith('MembershipRequestWithdrawn'); + }); }); - it('Should render text elements when props value is not passed', () => { + it('should handle membership withdrawal error when request not found', async () => { const props = { - id: '123', - image: '', - firstName: 'John', - lastName: 'Doe', - name: 'Sample', + ...defaultProps, + membershipRequestStatus: 'pending', + membershipRequests: [], // Empty requests to trigger error }; - render(); + render( + + + , + ); + + const withdrawButton = screen.getByTestId('withdrawBtn'); + await fireEvent.click(withdrawButton); - expect(screen.getByText(props.name)).toBeInTheDocument(); - expect(screen.getByText(/Owner:/i)).toBeInTheDocument(); - expect(screen.getByText(props.firstName)).toBeInTheDocument(); - expect(screen.getByText(props.lastName)).toBeInTheDocument(); + await waitFor(() => { + expect(toast.error).toHaveBeenCalledWith('MembershipRequestNotFound'); + }); }); }); diff --git a/src/components/OrganizationCard/OrganizationCard.tsx b/src/components/OrganizationCard/OrganizationCard.tsx index ae513eff5d..d283fa6fe9 100644 --- a/src/components/OrganizationCard/OrganizationCard.tsx +++ b/src/components/OrganizationCard/OrganizationCard.tsx @@ -1,55 +1,262 @@ -import React from 'react'; +import React, { useEffect, useState } from 'react'; import styles from './OrganizationCard.module.css'; - +import { Button } from 'react-bootstrap'; +import { Tooltip } from '@mui/material'; +import { useTranslation } from 'react-i18next'; +import { toast } from 'react-toastify'; +import { + CANCEL_MEMBERSHIP_REQUEST, + JOIN_PUBLIC_ORGANIZATION, + SEND_MEMBERSHIP_REQUEST, +} from 'GraphQl/Mutations/OrganizationMutations'; +import { useMutation, useQuery } from '@apollo/client'; +import { + USER_JOINED_ORGANIZATIONS, + USER_ORGANIZATION_CONNECTION, +} from 'GraphQl/Queries/OrganizationQueries'; +import Avatar from 'components/Avatar/Avatar'; +import { useNavigate } from 'react-router-dom'; +import type { ApolloError } from '@apollo/client'; +import useLocalStorage from 'utils/useLocalstorage'; interface InterfaceOrganizationCardProps { - image: string; id: string; name: string; - lastName: string; - firstName: string; + image: string; + description: string; + admins: { + id: string; + }[]; + members: { + id: string; + }[]; + address: { + city: string; + countryCode: string; + line1: string; + postalCode: string; + state: string; + }; + membershipRequestStatus: string; + userRegistrationRequired: boolean; + membershipRequests: { + _id: string; + user: { + _id: string; + }; + }[]; + isJoined: boolean; } - /** * Component to display an organization's card with its image and owner details. + * Displays an organization card with options to join or manage membership. + * + * Shows the organization's name, image, description, address, number of admins and members, + * and provides buttons for joining, withdrawing membership requests, or visiting the organization page. + * + * @param props - The properties for the organization card. + * @param id - The unique identifier of the organization. + * @param name - The name of the organization. + * @param image - The URL of the organization's image. + * @param description - A description of the organization. + * @param admins - The list of admins with their IDs. + * @param members - The list of members with their IDs. + * @param address - The address of the organization including city, country code, line1, postal code, and state. + * @param membershipRequestStatus - The status of the membership request (accepted, pending, or empty). + * @param userRegistrationRequired - Indicates if user registration is required to join the organization. + * @param membershipRequests - The list of membership requests with user IDs. * * @param props - Properties for the organization card. * @returns JSX element representing the organization card. + * @returns The organization card component. */ -function OrganizationCard(props: InterfaceOrganizationCardProps): JSX.Element { - const uri = '/superorghome/i=' + props.id; + +function OrganizationCard({ + id, + name, + image, + description, + admins, + members, + address, + membershipRequestStatus, + userRegistrationRequired, + membershipRequests, + isJoined, +}: InterfaceOrganizationCardProps): JSX.Element { + const [userId, setUserId] = useState(null); + + const { t: tCommon } = useTranslation('common'); + const { t } = useTranslation(); + + const navigate = useNavigate(); + + // Custom hook for localStorage + const { getItem } = useLocalStorage(); + + // Mutations for handling organization memberships + const [sendMembershipRequest] = useMutation(SEND_MEMBERSHIP_REQUEST, { + refetchQueries: [ + { query: USER_ORGANIZATION_CONNECTION, variables: { id } }, + ], + }); + const [joinPublicOrganization] = useMutation(JOIN_PUBLIC_ORGANIZATION, { + refetchQueries: [ + { query: USER_ORGANIZATION_CONNECTION, variables: { id } }, + ], + }); + const [cancelMembershipRequest] = useMutation(CANCEL_MEMBERSHIP_REQUEST, { + refetchQueries: [ + { query: USER_ORGANIZATION_CONNECTION, variables: { id } }, + ], + }); + const { refetch } = useQuery(USER_JOINED_ORGANIZATIONS, { + variables: { id: userId }, + }); + + useEffect(() => { + try { + // Use the custom hook to retrieve the userId + const id = getItem('userId'); // Adjust this line based on your actual localStorage key + setUserId(id); + } catch (error) { + console.error('Failed to access localStorage:', error); + setUserId(null); // Handle gracefully if localStorage is not available + toast.error('Failed to access user data'); + } + }, [getItem]); + + async function joinOrganization(): Promise { + try { + if (userRegistrationRequired) { + await sendMembershipRequest({ + variables: { + organizationId: id, + }, + }); + toast.success(t('MembershipRequestSent') as string); + } else { + await joinPublicOrganization({ + variables: { + organizationId: id, + }, + }); + toast.success(t('orgJoined') as string); + } + refetch(); + } catch (error: unknown) { + if (error instanceof Error) { + const apolloError = error as ApolloError; + const errorCode = apolloError.graphQLErrors?.[0]?.extensions?.code; + if (errorCode === 'ALREADY_MEMBER') { + toast.error(t('AlreadyJoined') as string); + } else { + toast.error(t('errorOccured') as string); + } + } + } + } + + async function withdrawMembershipRequest(): Promise { + if (!userId) { + toast.error(t('UserIdNotFound') as string); + return; + } + const membershipRequest = membershipRequests.find( + (request) => request.user._id === userId, + ); + + try { + if (!membershipRequest) { + toast.error(t('MembershipRequestNotFound') as string); + return; + } + + await cancelMembershipRequest({ + variables: { + membershipRequestId: membershipRequest._id, + }, + }); + + toast.success(t('MembershipRequestWithdrawn') as string); // Ensure this gets called + } catch (error: unknown) { + if (process.env.NODE_ENV === 'development') { + console.error('Failed to withdraw membership request:', error); + } + toast.error(t('errorOccured') as string); + } + } return ( - -
-
- {props.image ? ( - Organization +
+
+
+ {image ? ( + {`${name} ) : ( - Placeholder )} -
-

{props.name}

-
- Owner: - {props.firstName} - -   - {props.lastName} - -
-
-
+
+ +

{name}

+
+
+ {description} +
+ {address && address.city && ( +
+
+ {address.line1}, + {address.city}, + {address.countryCode} +
+
+ )} +
+ {tCommon('admins')}: {admins?.length}     +   {tCommon('members')}: {members?.length} +
+
-
+ {isJoined && ( + + )} + + {membershipRequestStatus === 'pending' && ( + + )} + + {membershipRequestStatus === '' && ( + + )} +
); } diff --git a/src/components/TagActions/TagActions.tsx b/src/components/TagActions/TagActions.tsx index f237c70212..fb6ce6ca0d 100644 --- a/src/components/TagActions/TagActions.tsx +++ b/src/components/TagActions/TagActions.tsx @@ -32,6 +32,26 @@ interface InterfaceUserTagsAncestorData { /** * Props for the `AssignToTags` component. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.modalHeader` + * - `.inputField` + * - `.removeButton` + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ export interface InterfaceTagActionsProps { tagActionsModalIsOpen: boolean; diff --git a/src/components/TagActions/TagNode.tsx b/src/components/TagActions/TagNode.tsx index 22173e7834..fb484f004a 100644 --- a/src/components/TagActions/TagNode.tsx +++ b/src/components/TagActions/TagNode.tsx @@ -15,6 +15,22 @@ import type { TFunction } from 'i18next'; /** * Props for the `TagNode` component. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * + * For more details on the reusable classes, refer to the global CSS file. */ interface InterfaceTagNodeProps { tag: InterfaceTagData; diff --git a/src/components/UserPortal/PeopleCard/PeopleCard.module.css b/src/components/UserPortal/PeopleCard/PeopleCard.module.css deleted file mode 100644 index fe9fc3bcbd..0000000000 --- a/src/components/UserPortal/PeopleCard/PeopleCard.module.css +++ /dev/null @@ -1,33 +0,0 @@ -.mainContainer { - width: 100%; - display: flex; - flex-direction: row; - padding: 10px; - cursor: pointer; - background-color: white; - border-radius: 10px; - box-shadow: 2px 2px 8px 0px #c8c8c8; - overflow: hidden; -} - -.personDetails { - display: flex; - flex-direction: column; - justify-content: center; -} - -.personImage { - border-radius: 50%; - margin-right: 20px; - max-width: 70px; -} - -.borderBox { - border: 1px solid #dddddd; - box-shadow: 5px 5px 4px 0px #31bb6b1f; - border-radius: 4px; -} - -.greenText { - color: #31bb6b; -} diff --git a/src/components/UserPortal/PeopleCard/PeopleCard.tsx b/src/components/UserPortal/PeopleCard/PeopleCard.tsx index e6b6088801..b6d1ff5d2c 100644 --- a/src/components/UserPortal/PeopleCard/PeopleCard.tsx +++ b/src/components/UserPortal/PeopleCard/PeopleCard.tsx @@ -1,6 +1,6 @@ import React from 'react'; import aboutImg from 'assets/images/defaultImg.png'; -import styles from './PeopleCard.module.css'; +import styles from './../../../style/app.module.css'; /** * Props interface for the PeopleCard component. @@ -32,11 +32,11 @@ function peopleCard(props: InterfaceOrganizationCardProps): JSX.Element { const imageUrl = props.image ? props.image : aboutImg; return ( -
+
{/* Container for serial number and image */} - + {/* Serial number */} - + {props.sno} {/* Person's image */} @@ -45,22 +45,22 @@ function peopleCard(props: InterfaceOrganizationCardProps): JSX.Element { src={imageUrl} width="80px" height="auto" - className={`${styles.personImage}`} + className={styles.personImage_peoplecard} /> {/* Person's name */} - + {props.name} {/* Person's email */} - + {props.email} {/* Person's role with additional styling */} -
-
- {props.role} +
+
+ {props.role}
diff --git a/src/components/UserPortal/PostCard/PostCard.spec.tsx b/src/components/UserPortal/PostCard/PostCard.spec.tsx index fe3fcf3dc1..824c033d37 100644 --- a/src/components/UserPortal/PostCard/PostCard.spec.tsx +++ b/src/components/UserPortal/PostCard/PostCard.spec.tsx @@ -1,6 +1,6 @@ import React, { act } from 'react'; import { MockedProvider } from '@apollo/react-testing'; -import { render, screen } from '@testing-library/react'; +import { render, screen, waitFor } from '@testing-library/react'; import { I18nextProvider } from 'react-i18next'; import { Provider } from 'react-redux'; import { BrowserRouter } from 'react-router-dom'; @@ -661,6 +661,125 @@ describe('Testing PostCard Component [User Portal]', () => { await wait(); }); + test('Comment validation displays an error toast when an empty comment is submitted', async () => { + console.log('Starting empty comment validation test'); + + const cardProps = { + id: '1', + userImage: 'image.png', + creator: { + firstName: 'test', + lastName: 'user', + email: 'test@user.com', + id: '1', + }, + postedAt: '', + image: 'testImage', + video: '', + text: 'This is post test text', + title: 'This is post test title', + likeCount: 1, + commentCount: 0, + comments: [], + likedBy: [ + { + firstName: 'test', + lastName: 'user', + id: '1', + }, + ], + fetchPosts: vi.fn(), + }; + + expect(toast.error).toBeDefined(); + + render( + + + + + + + + + , + ); + + userEvent.click(screen.getByTestId('viewPostBtn')); // Open the post view + userEvent.type(screen.getByTestId('commentInput'), ''); // Type an empty comment + userEvent.click(screen.getByTestId('createCommentBtn')); + + await waitFor(() => { + expect(toast.error).toHaveBeenCalledWith( + i18nForTest.t('postCard.emptyCommentError'), + ); + }); + }); + + test('Comment submission displays error toast when network error occurs', async () => { + const cardProps = { + id: '1', + userImage: 'image.png', + creator: { + firstName: 'test', + lastName: 'user', + email: 'test@user.com', + id: '1', + }, + postedAt: '', + image: 'testImage', + video: '', + text: 'This is post test text', + title: 'This is post test title', + likeCount: 1, + commentCount: 0, + comments: [], + likedBy: [ + { + firstName: 'test', + lastName: 'user', + id: '1', + }, + ], + fetchPosts: vi.fn(), + }; + + const errorLink = new StaticMockLink([ + { + request: { + query: CREATE_COMMENT_POST, + variables: { + postId: '1', + comment: 'test comment', + }, + }, + error: new Error('Network error'), + }, + ]); + + render( + + + + + + + + + , + ); + + userEvent.click(screen.getByTestId('viewPostBtn')); + userEvent.type(screen.getByTestId('commentInput'), 'test comment'); + userEvent.click(screen.getByTestId('createCommentBtn')); + + await waitFor(() => { + expect(toast.error).toHaveBeenCalledWith( + i18nForTest.t('postCard.unexpectedError'), + ); + }); + }); + test(`Comment should be liked when like button is clicked`, async () => { const cardProps = { id: '1', diff --git a/src/components/UserPortal/PostCard/PostCard.tsx b/src/components/UserPortal/PostCard/PostCard.tsx index 1ac693b85a..8242cef4b7 100644 --- a/src/components/UserPortal/PostCard/PostCard.tsx +++ b/src/components/UserPortal/PostCard/PostCard.tsx @@ -196,6 +196,12 @@ export default function postCard(props: InterfacePostCard): JSX.Element { // Create a new comment const createComment = async (): Promise => { try { + // Ensure the input is not empty + if (!commentInput.trim()) { + toast.error(t('emptyCommentError')); + return; + } + const { data: createEventData } = await create({ variables: { postId: props.id, @@ -225,7 +231,21 @@ export default function postCard(props: InterfacePostCard): JSX.Element { setComments([...comments, newComment]); } } catch (error: unknown) { - errorHandler(t, error); + // Handle errors + // Log error with context for debugging + console.error('Error creating comment:', error); + + // Show user-friendly translated message based on error type + if (error instanceof Error) { + const isValidationError = error.message.includes( + 'Comment validation failed', + ); + toast.error( + isValidationError ? t('emptyCommentError') : t('unexpectedError'), + ); + } else { + toast.error(t('unexpectedError')); + } } }; diff --git a/src/components/Venues/VenueCard.tsx b/src/components/Venues/VenueCard.tsx index 557a5c77e4..7ed0e07eb9 100644 --- a/src/components/Venues/VenueCard.tsx +++ b/src/components/Venues/VenueCard.tsx @@ -35,6 +35,24 @@ interface InterfaceVenueCardProps { * handleDelete={handleDeleteVenue} * /> * ``` + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.addButton` + * - `.removeButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ const VenueCard = ({ venueItem, diff --git a/src/components/Venues/VenueModal.tsx b/src/components/Venues/VenueModal.tsx index 97ae66c78e..7b347defed 100644 --- a/src/components/Venues/VenueModal.tsx +++ b/src/components/Venues/VenueModal.tsx @@ -35,6 +35,23 @@ export interface InterfaceVenueModalProps { * @param edit - A flag indicating if the modal is in edit mode. If true, the component will update an existing venue; if false, it will create a new one. * * @returns The rendered modal component. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.inputField` + * + * For more details on the reusable classes, refer to the global CSS file. */ const VenueModal = ({ show, diff --git a/src/components/test-utils/TestWrapper.tsx b/src/components/test-utils/TestWrapper.tsx new file mode 100644 index 0000000000..151f592b7a --- /dev/null +++ b/src/components/test-utils/TestWrapper.tsx @@ -0,0 +1,51 @@ +import React from 'react'; +import type { MockedResponse } from '@apollo/client/testing'; +import { MockedProvider } from '@apollo/client/testing'; +import type { ReactNode } from 'react'; +import { I18nextProvider } from 'react-i18next'; +import { BrowserRouter } from 'react-router-dom'; +import i18n from 'utils/i18n'; + +/** + * Props for the TestWrapper component. + */ +interface InterfaceTestWrapperProps { + /** The React components to be wrapped */ + children: ReactNode; + /** Optional Apollo GraphQL mocks for testing queries and mutations */ + mocks?: MockedResponse[]; +} + +/** + * A wrapper component for testing React components that require Apollo Client, i18n, and Router contexts. + * Provides the necessary provider context for testing components that use GraphQL, translations, and routing. + * + * @example + * ```tsx + * const mocks = [{ + * request: { query: TEST_QUERY }, + * result: { data: { test: 'data' } } + * }]; + * + * render( + * + * + * + * ); + * ``` + * + * @param props - The component props + * @param children - The React components to be wrapped + * @param mocks - Optional Apollo GraphQL mocks for testing queries and mutations + * @returns A JSX element with all required providers wrapped around the children + */ +export const TestWrapper = ({ + children, + mocks = [], +}: InterfaceTestWrapperProps): JSX.Element => ( + + + {children} + + +); diff --git a/src/screens/BlockUser/BlockUser.tsx b/src/screens/BlockUser/BlockUser.tsx index 3da2bf8b8e..81c182f43f 100644 --- a/src/screens/BlockUser/BlockUser.tsx +++ b/src/screens/BlockUser/BlockUser.tsx @@ -41,6 +41,28 @@ interface InterfaceMember { * ```tsx * * ``` + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.head` + * - `.btnsContainer` + * - `.input` + * - `.inputField` + * - `.searchButton` + * - `.btnsBlock` + * + * For more details on the reusable classes, refer to the global CSS file. */ const Requests = (): JSX.Element => { // Translation hooks for internationalization diff --git a/src/screens/FundCampaignPledge/FundCampaignPledge.tsx b/src/screens/FundCampaignPledge/FundCampaignPledge.tsx index 68ecfeaced..48711273ba 100644 --- a/src/screens/FundCampaignPledge/FundCampaignPledge.tsx +++ b/src/screens/FundCampaignPledge/FundCampaignPledge.tsx @@ -25,6 +25,29 @@ import ProgressBar from 'react-bootstrap/ProgressBar'; import SortingButton from 'subComponents/SortingButton'; +/** + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.editButton` + * - `.input` + * - `.inputField` + * - `.searchButton` + * - `.dropdown` + * + * For more details on the reusable classes, refer to the global CSS file. + */ + interface InterfaceCampaignInfo { name: string; goal: number; diff --git a/src/screens/FundCampaignPledge/PledgeModal.tsx b/src/screens/FundCampaignPledge/PledgeModal.tsx index a93d2c8f1d..1d9246b610 100644 --- a/src/screens/FundCampaignPledge/PledgeModal.tsx +++ b/src/screens/FundCampaignPledge/PledgeModal.tsx @@ -67,6 +67,23 @@ export interface InterfacePledgeModal { * - Calls `createPledge` mutation to create a new pledge. * * Success or error messages are displayed using toast notifications based on the result of the mutation. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ const PledgeModal: React.FC = ({ diff --git a/src/screens/ManageTag/EditUserTagModal.tsx b/src/screens/ManageTag/EditUserTagModal.tsx index f75c19cbb8..93a6feb45c 100644 --- a/src/screens/ManageTag/EditUserTagModal.tsx +++ b/src/screens/ManageTag/EditUserTagModal.tsx @@ -6,6 +6,26 @@ import styles from '../../style/app.module.css'; /** * Edit UserTag Modal component for the Manage Tag screen. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.modalHeader` + * - `.inputField` + * - `.removeButton` + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ export interface InterfaceEditUserTagModalProps { diff --git a/src/screens/ManageTag/ManageTag.tsx b/src/screens/ManageTag/ManageTag.tsx index b0748a9bf3..649f9ade48 100644 --- a/src/screens/ManageTag/ManageTag.tsx +++ b/src/screens/ManageTag/ManageTag.tsx @@ -41,6 +41,24 @@ import SortingButton from 'subComponents/SortingButton'; /** * Component that renders the Manage Tag screen when the app navigates to '/orgtags/:orgId/manageTag/:tagId'. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.tableHeader` + * - `.editButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ function ManageTag(): JSX.Element { diff --git a/src/screens/ManageTag/RemoveUserTagModal.tsx b/src/screens/ManageTag/RemoveUserTagModal.tsx index 91ba0b38aa..bc2681b097 100644 --- a/src/screens/ManageTag/RemoveUserTagModal.tsx +++ b/src/screens/ManageTag/RemoveUserTagModal.tsx @@ -5,6 +5,25 @@ import styles from '../../style/app.module.css'; /** * Remove UserTag Modal component for the Manage Tag screen. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.modalHeader` + * - `.removeButton` + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ export interface InterfaceRemoveUserTagModalProps { diff --git a/src/screens/ManageTag/UnassignUserTagModal.tsx b/src/screens/ManageTag/UnassignUserTagModal.tsx index d5448667d1..83c6ee18b9 100644 --- a/src/screens/ManageTag/UnassignUserTagModal.tsx +++ b/src/screens/ManageTag/UnassignUserTagModal.tsx @@ -4,6 +4,25 @@ import { Button, Modal } from 'react-bootstrap'; import styles from '../../style/app.module.css'; /** * Unassign UserTag Modal component for the Manage Tag screen. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.modalHeader` + * - `.removeButton` + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ export interface InterfaceUnassignUserTagModalProps { diff --git a/src/screens/OrgList/OrgList.tsx b/src/screens/OrgList/OrgList.tsx index 555eb0beff..4aaa9bfa32 100644 --- a/src/screens/OrgList/OrgList.tsx +++ b/src/screens/OrgList/OrgList.tsx @@ -30,6 +30,26 @@ import styles from '../../style/app.module.css'; import OrganizationModal from './OrganizationModal'; import SortingButton from 'subComponents/SortingButton'; +/** + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.inputField` + * - `.searchButton` + * + * For more details on the reusable classes, refer to the global CSS file. + */ + function orgList(): JSX.Element { const { t } = useTranslation('translation', { keyPrefix: 'orgList' }); const { t: tCommon } = useTranslation('common'); diff --git a/src/screens/OrgPost/OrgPost.tsx b/src/screens/OrgPost/OrgPost.tsx index 62a58f0e1a..74bc79d873 100644 --- a/src/screens/OrgPost/OrgPost.tsx +++ b/src/screens/OrgPost/OrgPost.tsx @@ -47,6 +47,25 @@ interface InterfaceOrgPost { * It also provides the functionality to create a new post. The user can also sort the posts based on the date of creation. * The user can also search for a post based on the title of the post. * @returns JSX.Element which contains the posts of the organization. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.inputField` + * - `.removeButton` + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ function orgPost(): JSX.Element { const { t } = useTranslation('translation', { diff --git a/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx b/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx index 099a897435..878ce10d60 100644 --- a/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx +++ b/src/screens/OrganizationActionItems/ItemUpdateStatusModal.tsx @@ -8,6 +8,26 @@ import { UPDATE_ACTION_ITEM_MUTATION } from 'GraphQl/Mutations/ActionItemMutatio import { toast } from 'react-toastify'; import type { InterfaceActionItemInfo } from 'utils/interfaces'; +/** + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.addButton` + * - `.removeButton` + * + * For more details on the reusable classes, refer to the global CSS file. + */ + export interface InterfaceItemUpdateStatusModalProps { isOpen: boolean; hide: () => void; diff --git a/src/screens/OrganizationEvents/OrganizationEvents.tsx b/src/screens/OrganizationEvents/OrganizationEvents.tsx index d07631b64e..e2e53ed8ab 100644 --- a/src/screens/OrganizationEvents/OrganizationEvents.tsx +++ b/src/screens/OrganizationEvents/OrganizationEvents.tsx @@ -52,6 +52,25 @@ export enum ViewType { * The component uses the useLocalStorage hook to get the user details from the local storage. * * @returns JSX.Element to display the Organization Events Page + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.inputField` + * - `.switch` + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ function organizationEvents(): JSX.Element { const { t } = useTranslation('translation', { diff --git a/src/screens/OrganizationFundCampaign/CampaignModal.tsx b/src/screens/OrganizationFundCampaign/CampaignModal.tsx index a57c6e707a..a55d74825c 100644 --- a/src/screens/OrganizationFundCampaign/CampaignModal.tsx +++ b/src/screens/OrganizationFundCampaign/CampaignModal.tsx @@ -24,6 +24,23 @@ import type { InterfaceCampaignInfo } from 'utils/interfaces'; /** * Props for the CampaignModal component. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ export interface InterfaceCampaignModal { isOpen: boolean; diff --git a/src/screens/OrganizationFundCampaign/OrganizationFundCampagins.tsx b/src/screens/OrganizationFundCampaign/OrganizationFundCampagins.tsx index c4d85a0eef..b826c7b645 100644 --- a/src/screens/OrganizationFundCampaign/OrganizationFundCampagins.tsx +++ b/src/screens/OrganizationFundCampaign/OrganizationFundCampagins.tsx @@ -74,6 +74,30 @@ const dataGridStyle = { * - Shows error and loading states using `Loader` and error message components. * * @returns The rendered component including breadcrumbs, search and filter controls, data grid, and modals. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.editButton` + * - `.head` + * - `.btnsContainer` + * - `.input` + * - `.inputField` + * - `.searchButon` + * - `.btnsBlock` + * - `.dropdown` + * + * For more details on the reusable classes, refer to the global CSS file. */ const orgFundCampaign = (): JSX.Element => { const { t } = useTranslation('translation', { diff --git a/src/screens/OrganizationFunds/FundModal.tsx b/src/screens/OrganizationFunds/FundModal.tsx index ab02902c2f..e5c44cd2e0 100644 --- a/src/screens/OrganizationFunds/FundModal.tsx +++ b/src/screens/OrganizationFunds/FundModal.tsx @@ -48,6 +48,23 @@ export interface InterfaceFundModal { * - `handleChange(event: React.ChangeEvent)`: Updates the state based on user input. * * @returns The rendered modal dialog. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.switch` + * + * For more details on the reusable classes, refer to the global CSS file. */ const FundModal: React.FC = ({ isOpen, diff --git a/src/screens/OrganizationFunds/OrganizationFunds.tsx b/src/screens/OrganizationFunds/OrganizationFunds.tsx index 3794da0338..d06e1bd355 100644 --- a/src/screens/OrganizationFunds/OrganizationFunds.tsx +++ b/src/screens/OrganizationFunds/OrganizationFunds.tsx @@ -75,6 +75,29 @@ const dataGridStyle = { * - `handleClick(fundId: string)`: Navigates to the campaign page for the specified fund. * * @returns The rendered component. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.tableHeader` + * - `.subtleBlueGrey` + * - `.head` + * - `.btnsContainer` + * - `.input` + * - `.inputField` + * - `.searchButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ const organizationFunds = (): JSX.Element => { const { t } = useTranslation('translation', { diff --git a/src/screens/OrganizationPeople/AddMember.tsx b/src/screens/OrganizationPeople/AddMember.tsx index a6f8fbe4b0..5cf76f9171 100644 --- a/src/screens/OrganizationPeople/AddMember.tsx +++ b/src/screens/OrganizationPeople/AddMember.tsx @@ -58,6 +58,24 @@ const StyledTableRow = styled(TableRow)(() => ({ * ORGANIZATIONS_MEMBER_CONNECTION_LIST, * USERS_CONNECTION_LIST, * ADD_MEMBER_MUTATION,SIGNUP_MUTATION. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.removeButton` + * - `.addButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ function AddMember(): JSX.Element { const { t: translateOrgPeople } = useTranslation('translation', { diff --git a/src/screens/OrganizationTags/OrganizationTags.spec.tsx b/src/screens/OrganizationTags/OrganizationTags.spec.tsx index c35b69f631..0ef64d538b 100644 --- a/src/screens/OrganizationTags/OrganizationTags.spec.tsx +++ b/src/screens/OrganizationTags/OrganizationTags.spec.tsx @@ -20,7 +20,15 @@ import { store } from 'state/store'; import { StaticMockLink } from 'utils/StaticMockLink'; import i18n from 'utils/i18nForTest'; import OrganizationTags from './OrganizationTags'; -import { MOCKS, MOCKS_ERROR } from './OrganizationTagsMocks'; +import { + MOCKS, + MOCKS_ERROR, + MOCKS_ERROR_ERROR_TAG, + MOCKS_EMPTY, + MOCKS_UNDEFINED_USER_TAGS, + MOCKS_NULL_END_CURSOR, + MOCKS_NO_MORE_PAGES, +} from './OrganizationTagsMocks'; import type { ApolloLink } from '@apollo/client'; const translations = { @@ -35,6 +43,11 @@ const translations = { const link = new StaticMockLink(MOCKS, true); const link2 = new StaticMockLink(MOCKS_ERROR, true); +const link3 = new StaticMockLink([...MOCKS, ...MOCKS_ERROR_ERROR_TAG], true); +const link4 = new StaticMockLink(MOCKS_EMPTY, true); +const link5 = new StaticMockLink(MOCKS_UNDEFINED_USER_TAGS, true); +const link6 = new StaticMockLink(MOCKS_NULL_END_CURSOR, true); +const link7 = new StaticMockLink(MOCKS_NO_MORE_PAGES, true); async function wait(ms = 500): Promise { await act(() => { @@ -85,12 +98,10 @@ describe('Organisation Tags Page', () => { }; }); }); - afterEach(() => { vi.clearAllMocks(); cleanup(); }); - test('component loads correctly', async () => { const { getByText } = renderOrganizationTags(link); @@ -100,7 +111,6 @@ describe('Organisation Tags Page', () => { expect(getByText(translations.createTag)).toBeInTheDocument(); }); }); - test('render error component on unsuccessful userTags query', async () => { const { queryByText } = renderOrganizationTags(link2); @@ -110,7 +120,6 @@ describe('Organisation Tags Page', () => { expect(queryByText(translations.createTag)).not.toBeInTheDocument(); }); }); - test('opens and closes the create tag modal', async () => { renderOrganizationTags(link); @@ -146,7 +155,6 @@ describe('Organisation Tags Page', () => { expect(screen.getByTestId('subTagsScreen')).toBeInTheDocument(); }); }); - test('navigates to manage tag page after clicking manage tag option', async () => { renderOrganizationTags(link); @@ -161,7 +169,6 @@ describe('Organisation Tags Page', () => { expect(screen.getByTestId('manageTagScreen')).toBeInTheDocument(); }); }); - test('searchs for tags where the name matches the provided search input', async () => { renderOrganizationTags(link); @@ -182,7 +189,6 @@ describe('Organisation Tags Page', () => { expect(buttons.length).toEqual(2); }); }); - test('fetches the tags by the sort order, i.e. latest or oldest first', async () => { renderOrganizationTags(link); @@ -239,7 +245,6 @@ describe('Organisation Tags Page', () => { ); }); }); - test('fetches more tags with infinite scroll', async () => { const { getByText } = renderOrganizationTags(link); @@ -268,7 +273,6 @@ describe('Organisation Tags Page', () => { expect(getByText(translations.createTag)).toBeInTheDocument(); }); }); - test('creates a new user tag', async () => { renderOrganizationTags(link); @@ -298,4 +302,99 @@ describe('Organisation Tags Page', () => { ); }); }); + test('creates a new user tag with error', async () => { + renderOrganizationTags(link3); + + await wait(); + + userEvent.click(screen.getByTestId('createTagBtn')); + + userEvent.type( + screen.getByPlaceholderText(translations.tagNamePlaceholder), + 'userTagE', + ); + + userEvent.click(screen.getByTestId('createTagSubmitBtn')); + + await waitFor(() => { + expect(toast.error).toHaveBeenCalledWith('Mock Graphql Error'); + }); + }); + test('renders the no tags found message when there are no tags', async () => { + renderOrganizationTags(link4); + + await wait(); + + await waitFor(() => { + expect(screen.getByText(translations.noTagsFound)).toBeInTheDocument(); + }); + }); + test('sets dataLength to 0 when userTagsList is undefined', async () => { + renderOrganizationTags(link5); + + await wait(); + + // Wait for the component to render + await waitFor(() => { + const userTags = screen.queryAllByTestId('user-tag'); + expect(userTags).toHaveLength(0); + }); + }); + test('Null endCursor', async () => { + renderOrganizationTags(link6); + + await wait(); + + const orgUserTagsScrollableDiv = screen.getByTestId( + 'orgUserTagsScrollableDiv', + ); + + // Set scroll position to the bottom + fireEvent.scroll(orgUserTagsScrollableDiv, { + target: { scrollY: orgUserTagsScrollableDiv.scrollHeight }, + }); + + await waitFor(() => { + expect(screen.getByTestId('createTagBtn')).toBeInTheDocument(); + }); + }); + test('Null Page available', async () => { + renderOrganizationTags(link7); + + await wait(); + + const orgUserTagsScrollableDiv = screen.getByTestId( + 'orgUserTagsScrollableDiv', + ); + + // Set scroll position to the bottom + fireEvent.scroll(orgUserTagsScrollableDiv, { + target: { scrollY: orgUserTagsScrollableDiv.scrollHeight }, + }); + + await waitFor(() => { + expect(screen.getByTestId('createTagBtn')).toBeInTheDocument(); + }); + }); + test('creates a new user tag with undefined data', async () => { + renderOrganizationTags(link); + + await wait(); + + await waitFor(() => { + expect(screen.getByTestId('createTagBtn')).toBeInTheDocument(); + }); + userEvent.click(screen.getByTestId('createTagBtn')); + + userEvent.type( + screen.getByPlaceholderText(translations.tagNamePlaceholder), + 'userTag 13', + ); + + userEvent.click(screen.getByTestId('createTagSubmitBtn')); + + await waitFor(() => { + expect(toast.error).toHaveBeenCalledWith('Tag creation failed'); + }); + }); }); diff --git a/src/screens/OrganizationTags/OrganizationTags.tsx b/src/screens/OrganizationTags/OrganizationTags.tsx index 39a2a26032..ed0a686e58 100644 --- a/src/screens/OrganizationTags/OrganizationTags.tsx +++ b/src/screens/OrganizationTags/OrganizationTags.tsx @@ -34,6 +34,25 @@ import SortingButton from 'subComponents/SortingButton'; * * This component does not accept any props and is responsible for displaying * the content associated with the corresponding route. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.editButton` + * - `.inputField` + * - `.removeButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ function OrganizationTags(): JSX.Element { @@ -94,7 +113,9 @@ function OrganizationTags(): JSX.Element { }; }, ) => { - if (!fetchMoreResult) return prevResult; + if (!fetchMoreResult) { + return prevResult; + } return { organizations: [ @@ -137,20 +158,18 @@ function OrganizationTags(): JSX.Element { organizationId: orgId, }, }); - if (data) { toast.success(t('tagCreationSuccess')); orgUserTagsRefetch(); setTagName(''); setCreateTagModalIsOpen(false); + } else { + toast.error('Tag creation failed'); } } catch (error: unknown) { - if (error instanceof Error) { - toast.error(error.message); - } + toast.error((error as Error).message); } }; - if (orgUserTagsError) { return (
@@ -166,10 +185,10 @@ function OrganizationTags(): JSX.Element { ); } - const userTagsList = orgUserTagsData?.organizations[0].userTags.edges.map( - (edge) => edge.node, - ); - + const userTagsList = + orgUserTagsData?.organizations?.[0]?.userTags?.edges?.map( + (edge) => edge.node, + ) || []; const redirectToManageTag = (tagId: string): void => { navigate(`/orgtags/${orgId}/manageTag/${tagId}`); }; @@ -360,7 +379,7 @@ function OrganizationTags(): JSX.Element { className={styles.orgUserTagsScrollableDiv} > } scrollableTarget="orgUserTagsScrollableDiv" + data-testid="infinite-scroll" > void; + +type MutationRecord = { + type: string; + target: Node; + addedNodes: NodeList; + removedNodes: NodeList; + previousSibling: Node | null; + nextSibling: Node | null; + attributeName: string | null; + attributeNamespace: string | null; + oldValue: string | null; +}; +// Mock MutationObserver +class MockMutationObserver { + private _callback: MutationCallback; + + constructor(callback: MutationCallback) { + this._callback = callback; + } + + observe(target: Node, options?: MutationObserverInit): void { + // Store parameters for future use + console.debug('Observing:', { target, options }); + } + + disconnect(): void { + // Mock implementation + } + + takeRecords(): MutationRecord[] { + return []; + } +} + const MOCKS = [ { request: { @@ -245,8 +283,8 @@ const MOCKS = [ const link = new StaticMockLink(MOCKS, true); async function wait(ms = 100): Promise { - await act(() => { - return new Promise((resolve) => { + await act(async () => { + await new Promise((resolve) => { setTimeout(resolve, ms); }); }); @@ -260,6 +298,15 @@ vi.mock('react-toastify', () => ({ }, })); +beforeAll(() => { + global.MutationObserver = + MockMutationObserver as unknown as typeof MutationObserver; +}); + +afterAll(() => { + vi.restoreAllMocks(); +}); + const renderOrganizationVenue = (link: ApolloLink): RenderResult => { return render( @@ -494,16 +541,24 @@ describe('Organisation Venues', () => { test('renders without crashing', async () => { renderOrganizationVenue(link); - waitFor(() => { - expect(screen.findByTestId('orgvenueslist')).toBeInTheDocument(); + await waitFor(async () => { + const element = await screen.findByTestId('orgvenueslist'); + expect(element).toBeInTheDocument(); }); }); test('renders the venue list correctly', async () => { renderOrganizationVenue(link); - waitFor(() => { - expect(screen.getByTestId('venueRow2')).toBeInTheDocument(); - expect(screen.getByTestId('venueRow1')).toBeInTheDocument(); + + // First wait for the list container to be present + await waitFor(() => { + expect(screen.getByTestId('orgvenueslist')).toBeInTheDocument(); + }); + + // Then check for individual venue items + await waitFor(() => { + expect(screen.getByTestId('venue-item2')).toBeInTheDocument(); + expect(screen.getByTestId('venue-item1')).toBeInTheDocument(); }); }); }); diff --git a/src/screens/SubTags/SubTags.tsx b/src/screens/SubTags/SubTags.tsx index cb2f7ba053..c9ccc4d28c 100644 --- a/src/screens/SubTags/SubTags.tsx +++ b/src/screens/SubTags/SubTags.tsx @@ -35,6 +35,26 @@ import SortingButton from 'subComponents/SortingButton'; * * This component does not accept any props and is responsible for displaying * the content associated with the corresponding route. + * + * ## CSS Strategy Explanation: + * + * To ensure consistency across the application and reduce duplication, common styles + * (such as button styles) have been moved to the global CSS file. Instead of using + * component-specific classes (e.g., `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge`), a single reusable + * class (e.g., .addButton) is now applied. + * + * ### Benefits: + * - **Reduces redundant CSS code. + * - **Improves maintainability by centralizing common styles. + * - **Ensures consistent styling across components. + * + * ### Global CSS Classes used: + * - `.editButton` + * - `.modalHeader` + * - `.inputField` + * - `.removeButton` + * + * For more details on the reusable classes, refer to the global CSS file. */ function SubTags(): JSX.Element { diff --git a/src/screens/UserPortal/Campaigns/PledgeModal.spec.tsx b/src/screens/UserPortal/Campaigns/PledgeModal.spec.tsx new file mode 100644 index 0000000000..c4829d46b7 --- /dev/null +++ b/src/screens/UserPortal/Campaigns/PledgeModal.spec.tsx @@ -0,0 +1,315 @@ +import type { ApolloLink } from '@apollo/client'; +import { MockedProvider } from '@apollo/react-testing'; +import { LocalizationProvider } from '@mui/x-date-pickers'; +import type { RenderResult } from '@testing-library/react'; +import { + cleanup, + fireEvent, + render, + screen, + waitFor, +} from '@testing-library/react'; +import { I18nextProvider } from 'react-i18next'; +import { Provider } from 'react-redux'; +import { BrowserRouter } from 'react-router-dom'; +import { store } from 'state/store'; +import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; +import i18nForTest from 'utils/i18nForTest'; +import { StaticMockLink } from 'utils/StaticMockLink'; +import { toast } from 'react-toastify'; +import type { InterfacePledgeModal } from './PledgeModal'; +import PledgeModal from './PledgeModal'; +import React from 'react'; +import { USER_DETAILS } from 'GraphQl/Queries/Queries'; +import { CREATE_PlEDGE, UPDATE_PLEDGE } from 'GraphQl/Mutations/PledgeMutation'; +import { vi } from 'vitest'; + +vi.mock('react-toastify', () => ({ + toast: { + success: vi.fn(), + error: vi.fn(), + }, +})); + +vi.mock('@mui/x-date-pickers/DateTimePicker', async () => { + const { DesktopDateTimePicker } = await vi.importActual( + '@mui/x-date-pickers/DesktopDateTimePicker', + ); + return { + DateTimePicker: DesktopDateTimePicker, + }; +}); + +const pledgeProps: InterfacePledgeModal[] = [ + { + isOpen: true, + hide: vi.fn(), + pledge: { + _id: '1', + amount: 100, + currency: 'USD', + startDate: '2024-01-01', + endDate: '2024-01-10', + users: [ + { + _id: '1', + firstName: 'John', + lastName: 'Doe', + image: undefined, + }, + ], + }, + refetchPledge: vi.fn(), + campaignId: 'campaignId', + userId: 'userId', + endDate: new Date(), + mode: 'create', + }, + { + isOpen: true, + hide: vi.fn(), + pledge: { + _id: '1', + amount: 100, + currency: 'USD', + startDate: '2024-01-01', + endDate: '2024-01-10', + users: [ + { + _id: '1', + firstName: 'John', + lastName: 'Doe', + image: undefined, + }, + ], + }, + refetchPledge: vi.fn(), + campaignId: 'campaignId', + userId: 'userId', + endDate: new Date(), + mode: 'edit', + }, +]; + +const PLEDGE_MODAL_MOCKS = [ + { + request: { + query: USER_DETAILS, + variables: { + id: 'userId', + }, + }, + result: { + data: { + user: { + user: { + _id: 'userId', + joinedOrganizations: [ + { + _id: '6537904485008f171cf29924', + __typename: 'Organization', + }, + ], + firstName: 'Harve', + lastName: 'Lance', + email: 'testuser1@example.com', + image: null, + createdAt: '2023-04-13T04:53:17.742Z', + birthDate: null, + educationGrade: null, + employmentStatus: null, + gender: null, + maritalStatus: null, + phone: null, + address: { + line1: 'Line1', + countryCode: 'CountryCode', + city: 'CityName', + state: 'State', + __typename: 'Address', + }, + registeredEvents: [], + membershipRequests: [], + __typename: 'User', + }, + appUserProfile: { + _id: '67078abd85008f171cf2991d', + adminFor: [], + isSuperAdmin: false, + appLanguageCode: 'en', + pluginCreationAllowed: true, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + __typename: 'AppUserProfile', + }, + __typename: 'UserData', + }, + }, + }, + }, + { + request: { + query: UPDATE_PLEDGE, + variables: { + id: '1', + amount: 200, + }, + }, + result: { + data: { + updateFundraisingCampaignPledge: { + _id: '1', + }, + }, + }, + }, + { + request: { + query: CREATE_PlEDGE, + variables: { + campaignId: 'campaignId', + amount: 200, + currency: 'USD', + startDate: '2024-01-02', + endDate: '2024-01-02', + userIds: ['1'], + }, + }, + result: { + data: { + createFundraisingCampaignPledge: { + _id: '3', + }, + }, + }, + }, +]; + +const link1 = new StaticMockLink(PLEDGE_MODAL_MOCKS); +const translations = JSON.parse( + JSON.stringify(i18nForTest.getDataByLanguage('en')?.translation.pledges), +); + +const renderPledgeModal = ( + link: ApolloLink, + props: InterfacePledgeModal, +): RenderResult => { + return render( + + + + + + + + + + + , + ); +}; + +describe('PledgeModal', () => { + beforeAll(() => { + vi.mock('react-router-dom', async () => { + const actual = await vi.importActual('react-router-dom'); + return { + ...actual, + useParams: () => ({ orgId: 'orgId', fundCampaignId: 'fundCampaignId' }), + useNavigate: vi.fn(), + }; + }); + }); + + afterAll(() => { + vi.clearAllMocks(); + }); + + afterEach(() => { + cleanup(); + }); + it('should populate form fields with correct values in edit mode', async () => { + renderPledgeModal(link1, pledgeProps[1]); + await waitFor(() => + expect(screen.getByText(translations.editPledge)).toBeInTheDocument(), + ); + expect(screen.getByTestId('pledgerSelect')).toHaveTextContent('John Doe'); + expect(screen.getByLabelText('Start Date')).toHaveValue('01/01/2024'); + expect(screen.getByLabelText('End Date')).toHaveValue('10/01/2024'); + expect(screen.getByLabelText('Currency')).toHaveTextContent('USD ($)'); + expect(screen.getByLabelText('Amount')).toHaveValue('100'); + }); + + it('should update pledgeAmount when input value changes', async () => { + renderPledgeModal(link1, pledgeProps[1]); + const amountInput = screen.getByLabelText('Amount'); + expect(amountInput).toHaveValue('100'); + fireEvent.change(amountInput, { target: { value: '200' } }); + expect(amountInput).toHaveValue('200'); + }); + + it('should not update pledgeAmount when input value is less than or equal to 0', async () => { + renderPledgeModal(link1, pledgeProps[1]); + const amountInput = screen.getByLabelText('Amount'); + expect(amountInput).toHaveValue('100'); + fireEvent.change(amountInput, { target: { value: '-10' } }); + expect(amountInput).toHaveValue('100'); + }); + + it('should update pledgeStartDate when a new date is selected', async () => { + renderPledgeModal(link1, pledgeProps[1]); + const startDateInput = screen.getByLabelText('Start Date'); + fireEvent.change(startDateInput, { target: { value: '02/01/2024' } }); + expect(startDateInput).toHaveValue('02/01/2024'); + expect(pledgeProps[1].pledge?.startDate).toEqual('2024-01-01'); + }); + + it('pledgeStartDate onChange when its null', async () => { + renderPledgeModal(link1, pledgeProps[1]); + const startDateInput = screen.getByLabelText('Start Date'); + fireEvent.change(startDateInput, { target: { value: null } }); + expect(pledgeProps[1].pledge?.startDate).toEqual('2024-01-01'); + }); + + it('should update pledgeEndDate when a new date is selected', async () => { + renderPledgeModal(link1, pledgeProps[1]); + const startDateInput = screen.getByLabelText('End Date'); + fireEvent.change(startDateInput, { target: { value: '02/01/2024' } }); + expect(startDateInput).toHaveValue('02/01/2024'); + expect(pledgeProps[1].pledge?.endDate).toEqual('2024-01-10'); + }); + + it('pledgeEndDate onChange when its null', async () => { + renderPledgeModal(link1, pledgeProps[1]); + const endDateInput = screen.getByLabelText('End Date'); + fireEvent.change(endDateInput, { target: { value: null } }); + expect(pledgeProps[1].pledge?.endDate).toEqual('2024-01-10'); + }); + + it('should create pledge', async () => { + renderPledgeModal(link1, pledgeProps[0]); + + fireEvent.change(screen.getByLabelText('Amount'), { + target: { value: '200' }, + }); + fireEvent.change(screen.getByLabelText('Start Date'), { + target: { value: '02/01/2024' }, + }); + fireEvent.change(screen.getByLabelText('End Date'), { + target: { value: '02/01/2024' }, + }); + + expect(screen.getByLabelText('Amount')).toHaveValue('200'); + expect(screen.getByLabelText('Start Date')).toHaveValue('02/01/2024'); + expect(screen.getByLabelText('End Date')).toHaveValue('02/01/2024'); + expect(screen.getByTestId('submitPledgeBtn')).toBeInTheDocument(); + + fireEvent.click(screen.getByTestId('submitPledgeBtn')); + await waitFor(() => { + expect(toast.success).toHaveBeenCalled(); + expect(pledgeProps[0].refetchPledge).toHaveBeenCalled(); + expect(pledgeProps[0].hide).toHaveBeenCalled(); + }); + }); +}); diff --git a/src/screens/UserPortal/Campaigns/PledgeModal.test.tsx b/src/screens/UserPortal/Campaigns/PledgeModal.test.tsx deleted file mode 100644 index b9fd7a7d4d..0000000000 --- a/src/screens/UserPortal/Campaigns/PledgeModal.test.tsx +++ /dev/null @@ -1,310 +0,0 @@ -import type { ApolloLink } from '@apollo/client'; -import { MockedProvider } from '@apollo/react-testing'; -import { LocalizationProvider } from '@mui/x-date-pickers'; -import type { RenderResult } from '@testing-library/react'; -import { - cleanup, - fireEvent, - render, - screen, - waitFor, -} from '@testing-library/react'; -import { I18nextProvider } from 'react-i18next'; -import { Provider } from 'react-redux'; -import { BrowserRouter } from 'react-router-dom'; -import { store } from 'state/store'; -import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; -import i18nForTest from 'utils/i18nForTest'; -import { StaticMockLink } from 'utils/StaticMockLink'; -import { toast } from 'react-toastify'; -import type { InterfacePledgeModal } from './PledgeModal'; -import PledgeModal from './PledgeModal'; -import React from 'react'; -import { USER_DETAILS } from 'GraphQl/Queries/Queries'; -import { CREATE_PlEDGE, UPDATE_PLEDGE } from 'GraphQl/Mutations/PledgeMutation'; - -jest.mock('react-toastify', () => ({ - toast: { - success: jest.fn(), - error: jest.fn(), - }, -})); - -jest.mock('@mui/x-date-pickers/DateTimePicker', () => { - return { - DateTimePicker: jest.requireActual( - '@mui/x-date-pickers/DesktopDateTimePicker', - ).DesktopDateTimePicker, - }; -}); - -const pledgeProps: InterfacePledgeModal[] = [ - { - isOpen: true, - hide: jest.fn(), - pledge: { - _id: '1', - amount: 100, - currency: 'USD', - startDate: '2024-01-01', - endDate: '2024-01-10', - users: [ - { - _id: '1', - firstName: 'John', - lastName: 'Doe', - image: undefined, - }, - ], - }, - refetchPledge: jest.fn(), - campaignId: 'campaignId', - userId: 'userId', - endDate: new Date(), - mode: 'create', - }, - { - isOpen: true, - hide: jest.fn(), - pledge: { - _id: '1', - amount: 100, - currency: 'USD', - startDate: '2024-01-01', - endDate: '2024-01-10', - users: [ - { - _id: '1', - firstName: 'John', - lastName: 'Doe', - image: undefined, - }, - ], - }, - refetchPledge: jest.fn(), - campaignId: 'campaignId', - userId: 'userId', - endDate: new Date(), - mode: 'edit', - }, -]; - -const PLEDGE_MODAL_MOCKS = [ - { - request: { - query: USER_DETAILS, - variables: { - id: 'userId', - }, - }, - result: { - data: { - user: { - user: { - _id: 'userId', - joinedOrganizations: [ - { - _id: '6537904485008f171cf29924', - __typename: 'Organization', - }, - ], - firstName: 'Harve', - lastName: 'Lance', - email: 'testuser1@example.com', - image: null, - createdAt: '2023-04-13T04:53:17.742Z', - birthDate: null, - educationGrade: null, - employmentStatus: null, - gender: null, - maritalStatus: null, - phone: null, - address: { - line1: 'Line1', - countryCode: 'CountryCode', - city: 'CityName', - state: 'State', - __typename: 'Address', - }, - registeredEvents: [], - membershipRequests: [], - __typename: 'User', - }, - appUserProfile: { - _id: '67078abd85008f171cf2991d', - adminFor: [], - isSuperAdmin: false, - appLanguageCode: 'en', - pluginCreationAllowed: true, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - __typename: 'AppUserProfile', - }, - __typename: 'UserData', - }, - }, - }, - }, - { - request: { - query: UPDATE_PLEDGE, - variables: { - id: '1', - amount: 200, - }, - }, - result: { - data: { - updateFundraisingCampaignPledge: { - _id: '1', - }, - }, - }, - }, - { - request: { - query: CREATE_PlEDGE, - variables: { - campaignId: 'campaignId', - amount: 200, - currency: 'USD', - startDate: '2024-01-02', - endDate: '2024-01-02', - userIds: ['1'], - }, - }, - result: { - data: { - createFundraisingCampaignPledge: { - _id: '3', - }, - }, - }, - }, -]; - -const link1 = new StaticMockLink(PLEDGE_MODAL_MOCKS); -const translations = JSON.parse( - JSON.stringify(i18nForTest.getDataByLanguage('en')?.translation.pledges), -); - -const renderPledgeModal = ( - link: ApolloLink, - props: InterfacePledgeModal, -): RenderResult => { - return render( - - - - - - - - - - - , - ); -}; - -describe('PledgeModal', () => { - beforeAll(() => { - jest.mock('react-router-dom', () => ({ - ...jest.requireActual('react-router-dom'), - useParams: () => ({ orgId: 'orgId', fundCampaignId: 'fundCampaignId' }), - })); - }); - - afterAll(() => { - jest.clearAllMocks(); - }); - - afterEach(() => { - cleanup(); - }); - it('should populate form fields with correct values in edit mode', async () => { - renderPledgeModal(link1, pledgeProps[1]); - await waitFor(() => - expect(screen.getByText(translations.editPledge)).toBeInTheDocument(), - ); - expect(screen.getByTestId('pledgerSelect')).toHaveTextContent('John Doe'); - expect(screen.getByLabelText('Start Date')).toHaveValue('01/01/2024'); - expect(screen.getByLabelText('End Date')).toHaveValue('10/01/2024'); - expect(screen.getByLabelText('Currency')).toHaveTextContent('USD ($)'); - expect(screen.getByLabelText('Amount')).toHaveValue('100'); - }); - - it('should update pledgeAmount when input value changes', async () => { - renderPledgeModal(link1, pledgeProps[1]); - const amountInput = screen.getByLabelText('Amount'); - expect(amountInput).toHaveValue('100'); - fireEvent.change(amountInput, { target: { value: '200' } }); - expect(amountInput).toHaveValue('200'); - }); - - it('should not update pledgeAmount when input value is less than or equal to 0', async () => { - renderPledgeModal(link1, pledgeProps[1]); - const amountInput = screen.getByLabelText('Amount'); - expect(amountInput).toHaveValue('100'); - fireEvent.change(amountInput, { target: { value: '-10' } }); - expect(amountInput).toHaveValue('100'); - }); - - it('should update pledgeStartDate when a new date is selected', async () => { - renderPledgeModal(link1, pledgeProps[1]); - const startDateInput = screen.getByLabelText('Start Date'); - fireEvent.change(startDateInput, { target: { value: '02/01/2024' } }); - expect(startDateInput).toHaveValue('02/01/2024'); - expect(pledgeProps[1].pledge?.startDate).toEqual('2024-01-01'); - }); - - it('pledgeStartDate onChange when its null', async () => { - renderPledgeModal(link1, pledgeProps[1]); - const startDateInput = screen.getByLabelText('Start Date'); - fireEvent.change(startDateInput, { target: { value: null } }); - expect(pledgeProps[1].pledge?.startDate).toEqual('2024-01-01'); - }); - - it('should update pledgeEndDate when a new date is selected', async () => { - renderPledgeModal(link1, pledgeProps[1]); - const startDateInput = screen.getByLabelText('End Date'); - fireEvent.change(startDateInput, { target: { value: '02/01/2024' } }); - expect(startDateInput).toHaveValue('02/01/2024'); - expect(pledgeProps[1].pledge?.endDate).toEqual('2024-01-10'); - }); - - it('pledgeEndDate onChange when its null', async () => { - renderPledgeModal(link1, pledgeProps[1]); - const endDateInput = screen.getByLabelText('End Date'); - fireEvent.change(endDateInput, { target: { value: null } }); - expect(pledgeProps[1].pledge?.endDate).toEqual('2024-01-10'); - }); - - it('should create pledge', async () => { - renderPledgeModal(link1, pledgeProps[0]); - - fireEvent.change(screen.getByLabelText('Amount'), { - target: { value: '200' }, - }); - fireEvent.change(screen.getByLabelText('Start Date'), { - target: { value: '02/01/2024' }, - }); - fireEvent.change(screen.getByLabelText('End Date'), { - target: { value: '02/01/2024' }, - }); - - expect(screen.getByLabelText('Amount')).toHaveValue('200'); - expect(screen.getByLabelText('Start Date')).toHaveValue('02/01/2024'); - expect(screen.getByLabelText('End Date')).toHaveValue('02/01/2024'); - expect(screen.getByTestId('submitPledgeBtn')).toBeInTheDocument(); - - fireEvent.click(screen.getByTestId('submitPledgeBtn')); - - await waitFor(() => { - expect(toast.success).toHaveBeenCalled(); - expect(pledgeProps[0].refetchPledge).toHaveBeenCalled(); - expect(pledgeProps[0].hide).toHaveBeenCalled(); - }); - }); -}); diff --git a/src/screens/UserPortal/Organizations/Organizations.tsx b/src/screens/UserPortal/Organizations/Organizations.tsx index 59f5500d02..4e1033cbc4 100644 --- a/src/screens/UserPortal/Organizations/Organizations.tsx +++ b/src/screens/UserPortal/Organizations/Organizations.tsx @@ -40,12 +40,14 @@ interface InterfaceOrganizationCardProps { _id: string; }; }[]; + isJoined: boolean; } /** * Interface defining the structure of organization properties. */ interface InterfaceOrganization { + isJoined: boolean; _id: string; name: string; image: string; @@ -139,7 +141,6 @@ export default function organizations(): JSX.Element { * @param _event - The event triggering the page change. * @param newPage - The new page number. */ - /* istanbul ignore next */ const handleChangePage = ( _event: React.MouseEvent | null, newPage: number, @@ -152,7 +153,6 @@ export default function organizations(): JSX.Element { * * @param event - The event triggering the change. */ - /* istanbul ignore next */ const handleChangeRowsPerPage = ( event: React.ChangeEvent, ): void => { @@ -202,7 +202,6 @@ export default function organizations(): JSX.Element { /** * Updates the list of organizations based on query results and selected mode. */ - /* istanbul ignore next */ useEffect(() => { if (data) { const organizations = data.organizationsConnection.map( @@ -231,7 +230,6 @@ export default function organizations(): JSX.Element { /** * Updates the list of organizations based on the selected mode and query results. */ - /* istanbul ignore next */ useEffect(() => { if (mode === 0) { if (data) { @@ -251,7 +249,11 @@ export default function organizations(): JSX.Element { ) ) membershipRequestStatus = 'pending'; - return { ...organization, membershipRequestStatus }; + return { + ...organization, + membershipRequestStatus, + isJoined: false, + }; }, ); setOrganizations(organizations); @@ -259,7 +261,13 @@ export default function organizations(): JSX.Element { } else if (mode === 1) { if (joinedOrganizationsData && joinedOrganizationsData.users.length > 0) { const organizations = - joinedOrganizationsData.users[0]?.user?.joinedOrganizations || []; + joinedOrganizationsData.users[0]?.user?.joinedOrganizations.map( + (org: InterfaceOrganization) => ({ + ...org, + membershipRequestStatus: 'accepted', + isJoined: true, + }), + ) || []; setOrganizations(organizations); } } else if (mode === 2) { @@ -268,8 +276,13 @@ export default function organizations(): JSX.Element { createdOrganizationsData.users.length > 0 ) { const organizations = - createdOrganizationsData.users[0]?.appUserProfile - ?.createdOrganizations || []; + createdOrganizationsData.users[0]?.appUserProfile?.createdOrganizations.map( + (org: InterfaceOrganization) => ({ + ...org, + membershipRequestStatus: 'accepted', + isJoined: true, + }), + ) || []; setOrganizations(organizations); } } @@ -379,8 +392,7 @@ export default function organizations(): JSX.Element { page * rowsPerPage, page * rowsPerPage + rowsPerPage, ) - : /* istanbul ignore next */ - organizations + : organizations ).map((organization: InterfaceOrganization, index) => { const cardProps: InterfaceOrganizationCardProps = { name: organization.name, @@ -395,6 +407,7 @@ export default function organizations(): JSX.Element { userRegistrationRequired: organization.userRegistrationRequired, membershipRequests: organization.membershipRequests, + isJoined: organization.isJoined, }; return ; }) @@ -408,10 +421,7 @@ export default function organizations(): JSX.Element { ; + }; + result?: { + data: { + organizationsMemberConnection?: { + edges: { + _id: string; + firstName: string; + lastName: string; + image: string | null; + email: string; + createdAt: string; + }[]; + }; + organizations?: { + __typename?: string; + _id: string; + admins: { + _id: string; + firstName: string; + lastName: string; + image: string | null; + email: string; + createdAt: string; + }[]; + }[]; + }; + }; + error?: Error; +}; const MOCKS = [ { @@ -90,6 +130,35 @@ const MOCKS = [ }, }, }, + { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { orgId: '', firstName_contains: '' }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: [], + }, + }, + }, + }, + { + request: { + query: ORGANIZATION_ADMINS_LIST, + variables: { id: '' }, + }, + result: { + data: { + organizations: [ + { + _id: 'org-1', + admins: [], + }, + ], + }, + }, + }, { request: { query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, @@ -239,4 +308,782 @@ describe('Testing People Screen [User Portal]', () => { expect(screen.queryByText('Noble Admin')).toBeInTheDocument(); expect(screen.queryByText('Noble Mittal')).not.toBeInTheDocument(); }); + it('Shows loading state while fetching data', async () => { + render( + + + + + + + + + , + ); + + expect(screen.getByText('Loading...')).toBeInTheDocument(); + await wait(); + }); +}); + +describe('Testing People Screen Pagination [User Portal]', () => { + // Mock data with more than 5 members to test pagination + const PAGINATION_MOCKS = [ + { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { + orgId: '', + firstName_contains: '', + }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: Array(7) + .fill(null) + .map((_, index) => ({ + _id: `member${index}`, + firstName: `User${index}`, + lastName: 'Test', + image: null, + email: `user${index}@test.com`, + createdAt: '2023-03-02T03:22:08.101Z', + })), + }, + }, + }, + }, + { + request: { + query: ORGANIZATION_ADMINS_LIST, + variables: { + id: '', + }, + }, + result: { + data: { + organizations: [ + { + __typename: 'Organization', + _id: 'org1', + admins: [ + { + _id: 'member0', + firstName: 'User0', + lastName: 'Test', + image: null, + email: 'user0@test.com', + createdAt: '2023-03-02T03:22:08.101Z', + }, + ], + }, + ], + }, + }, + }, + ]; + + const link = new StaticMockLink(PAGINATION_MOCKS, true); + + const renderComponent = (): RenderResult => { + return render( + + + + + + + + + , + ); + }; + + // Helper function to wait for async operations + const wait = async (ms = 100): Promise => { + await act(() => { + return new Promise((resolve) => { + setTimeout(resolve, ms); + }); + }); + }; + + beforeAll(() => { + // Mock window.matchMedia + Object.defineProperty(window, 'matchMedia', { + writable: true, + value: vi.fn().mockImplementation((query) => ({ + matches: false, + media: query, + onchange: null, + addListener: vi.fn(), + removeListener: vi.fn(), + addEventListener: vi.fn(), + removeEventListener: vi.fn(), + dispatchEvent: vi.fn(), + })), + }); + + // Mock useParams + vi.mock('react-router-dom', async () => { + const actual = await vi.importActual('react-router-dom'); + return { + ...actual, + useParams: () => ({ orgId: '' }), + }; + }); + }); + + it('handles rows per page change correctly', async () => { + renderComponent(); + await wait(); + + // Default should show 5 items + expect(screen.getByText('User0 Test')).toBeInTheDocument(); + expect(screen.queryByText('User5 Test')).not.toBeInTheDocument(); + + // Change rows per page to 10 + const select = screen.getByRole('combobox'); + userEvent.selectOptions(select, '10'); + await wait(); + + // Should now show all items on one page + expect(screen.getByText('User0 Test')).toBeInTheDocument(); + expect(screen.getByText('User5 Test')).toBeInTheDocument(); + }); + + it('should slice members when rowsPerPage > 0 to cover paging logic', async () => { + // PAGINATION_MOCKS has 7 members. We confirm first page shows fewer than 7 + render( + + + + + + + + + , + ); + + await wait(); + + // Should initially show 5 members if rowsPerPage = 5 + expect(screen.queryAllByText(/User\d Test/).length).toBe(5); + }); +}); +describe('People Component Mode Switch Coverage', () => { + // Setup function to help with repeated test setup + const setupTest = (): RenderResult => { + // Mock data that ensures both member and admin data is available + const mocks = [ + { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { orgId: '', firstName_contains: '' }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: [ + { + _id: '123', + firstName: 'Test', + lastName: 'User', + image: null, + email: 'test@example.com', + createdAt: '2023-03-02T03:22:08.101Z', + }, + ], + }, + }, + }, + }, + { + request: { + query: ORGANIZATION_ADMINS_LIST, + variables: { id: '' }, + }, + result: { + data: { + organizations: [ + { + admins: [ + { + _id: '456', + firstName: 'Admin', + lastName: 'User', + image: null, + email: 'admin@example.com', + createdAt: '2023-03-02T03:22:08.101Z', + }, + ], + }, + ], + }, + }, + }, + ]; + + return render( + + + + + + + + + , + ); + }; + + it('handles mode transitions correctly including edge cases', async () => { + setupTest(); + + // Wait for initial render + await waitFor(() => { + expect(screen.getByText('Test User')).toBeInTheDocument(); + }); + + // Open dropdown and switch to admin mode + userEvent.click(screen.getByTestId('modeChangeBtn')); + await waitFor(() => { + userEvent.click(screen.getByTestId('modeBtn1')); + }); + + // Verify admin view + await waitFor(() => { + expect(screen.getByText('Admin User')).toBeInTheDocument(); + expect(screen.queryByText('Test User')).not.toBeInTheDocument(); + }); + + // Test mode transition with missing data + const modeSetter = vi.fn(); + vi.spyOn(React, 'useState').mockImplementationOnce(() => [1, modeSetter]); // Mock mode state + + // Force a re-render to trigger the useEffect with mocked state + setupTest(); + + // Verify the component handles the transition gracefully + await waitFor(() => { + expect(screen.queryByText('Loading...')).not.toBeInTheDocument(); + }); + }); + + // Set up i18next mock for all tests in this describe block + beforeAll(() => { + vi.mock('react-i18next', async () => { + const actual = await vi.importActual('react-i18next'); + return { + ...actual, + useTranslation: () => ({ + t: (key: string) => + key === 'nothingToShow' ? 'Nothing to show' : key, + i18n: { + changeLanguage: () => new Promise(() => {}), + }, + }), + }; + }); + }); + + it('handles transitioning between empty and non-empty states', async () => { + const mixedMocks = [ + { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { orgId: '', firstName_contains: '' }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: [], + }, + }, + }, + }, + { + request: { + query: ORGANIZATION_ADMINS_LIST, + variables: { id: '' }, + }, + result: { + data: { + organizations: [ + { + admins: [ + { + _id: 'admin1', + firstName: 'Admin', + lastName: 'User', + image: null, + email: 'admin@test.com', + createdAt: new Date().toISOString(), + }, + ], + }, + ], + }, + }, + }, + ]; + + // Mock i18next translation specifically for this test + vi.mock('react-i18next', async () => { + const actual = await vi.importActual('react-i18next'); + return { + ...actual, + useTranslation: () => ({ + t: (key: string) => + key === 'nothingToShow' ? 'Nothing to show' : key, + i18n: { + changeLanguage: () => new Promise(() => {}), + }, + }), + }; + }); + + render( + + + + + + + + + , + ); + + await waitForElementToBeRemoved(() => screen.queryByText('Loading...')); + + // Verify empty state in members view using translated text + expect(screen.getByText('Nothing to show')).toBeInTheDocument(); + + // Switch to admin mode + userEvent.click(screen.getByTestId('modeChangeBtn')); + await waitFor(() => { + userEvent.click(screen.getByTestId('modeBtn1')); + }); + + // Verify admin is shown in admin view + await waitFor(() => { + expect(screen.getByText('Admin User')).toBeInTheDocument(); + expect(screen.queryByText('Nothing to show')).not.toBeInTheDocument(); + }); + }); +}); + +describe('People Additional Flow Tests', () => { + const renderComponent = (mocks: MockData[]): RenderResult => { + return render( + + + + + + + + + , + ); + }; + + const setupWithMocks = (mocks: MockData[]): RenderResult => + renderComponent(mocks); + + it('searches partial user name correctly and displays matching results', async (): Promise => { + const aliMembersMock: MockData = { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { orgId: '', firstName_contains: 'Ali' }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: [ + { + _id: 'user-1', + firstName: 'Alice', + lastName: 'Test', + image: null, + email: 'alice@test.com', + createdAt: '2023-03-02T03:22:08.101Z', + }, + ], + }, + }, + }, + }; + + renderComponent([aliMembersMock]); + + userEvent.type(screen.getByTestId('searchInput'), 'Ali'); + userEvent.click(screen.getByTestId('searchBtn')); + + await waitFor(() => { + expect(screen.getByText('Alice Test')).toBeInTheDocument(); + expect(screen.queryByText('Bob Test')).not.toBeInTheDocument(); + }); + }); + + it('switches mode multiple times in a row without errors', async (): Promise => { + const multiSwitchMocks: MockData[] = [ + { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { orgId: '', firstName_contains: '' }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: [ + { + _id: '3', + firstName: 'Charlie', + lastName: 'Test', + image: null, + email: 'charlie@test.com', + createdAt: '2023-03-02T03:22:08.101Z', + }, + ], + }, + }, + }, + }, + { + request: { + query: ORGANIZATION_ADMINS_LIST, + variables: { id: '' }, + }, + result: { + data: { + organizations: [{ _id: 'org-1', admins: [] }], + }, + }, + }, + ]; + + setupWithMocks(multiSwitchMocks); + + await waitFor(() => { + expect(screen.queryByText('Loading...')).not.toBeInTheDocument(); + expect(screen.getByText('Charlie Test')).toBeInTheDocument(); + }); + + const modeSwitchBtn = screen.getByTestId('modeChangeBtn'); + + // Switch to admin mode + userEvent.click(modeSwitchBtn); + await waitFor(() => userEvent.click(screen.getByTestId('modeBtn1'))); + + // Switch back to all members + userEvent.click(modeSwitchBtn); + await waitFor(() => userEvent.click(screen.getByTestId('modeBtn0'))); + + expect(screen.getByText('Charlie Test')).toBeInTheDocument(); + }); + + // Add test for error handling +}); +describe('Testing People Screen Edge Cases [User Portal]', () => { + const renderComponent = (mocks = MOCKS): RenderResult => { + return render( + + + + + + + + + , + ); + }; + + // Mock i18next translation + vi.mock('react-i18next', async () => { + const actual = await vi.importActual('react-i18next'); + return { + ...actual, + useTranslation: () => ({ + t: (key: string) => { + const translations: { [key: string]: string } = { + nothingToShow: 'Nothing to show', + all: 'All', + }; + return translations[key] || key; + }, + }), + }; + }); + + beforeAll(() => { + Object.defineProperty(window, 'matchMedia', { + writable: true, + value: vi.fn().mockImplementation((query) => ({ + matches: false, + media: query, + onchange: null, + addListener: vi.fn(), + removeListener: vi.fn(), + addEventListener: vi.fn(), + removeEventListener: vi.fn(), + dispatchEvent: vi.fn(), + })), + }); + }); + + it('handles rowsPerPage = 0 case', async () => { + const membersMock = { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { orgId: '', firstName_contains: '' }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: [ + { + _id: '1', + firstName: 'Test', + lastName: 'User', + email: 'test@example.com', + image: null, + createdAt: new Date().toISOString(), + }, + ], + }, + }, + }, + }; + + renderComponent([membersMock]); + await wait(); + + // Find the rows per page select + const select = screen.getByLabelText('rows per page'); + expect(select).toBeInTheDocument(); + + // Select the "All" option (which should be the last option) + const options = Array.from(select.getElementsByTagName('option')); + const allOption = options.find((option) => option.textContent === 'All'); + if (allOption) { + userEvent.selectOptions(select, allOption.value); + } + await wait(); + + // Verify member is shown + expect(screen.getByText('Test User')).toBeInTheDocument(); + }); +}); + +describe('People Component Additional Coverage Tests', () => { + // Mock for testing error states + + // Test case to cover line 142: handleSearchByEnter with non-Enter key + it('should not trigger search for non-Enter key press', async () => { + render( + + + + + + + + + , + ); + + const searchInput = screen.getByTestId('searchInput'); + fireEvent.keyUp(searchInput, { key: 'A', code: 'KeyA' }); + + // Wait a bit to ensure no search is triggered + await new Promise((resolve) => setTimeout(resolve, 100)); + // The loading state should not appear + expect(screen.queryByText('Loading...')).not.toBeInTheDocument(); + }); + + // Test case to cover line 151: handleSearchByBtnClick with empty input + it('should handle search with empty input value', async () => { + render( + + + + + + + + + , + ); + + const searchBtn = screen.getByTestId('searchBtn'); + // Remove the search input from DOM to simulate edge case + const searchInput = screen.getByTestId('searchInput'); + searchInput.remove(); + + userEvent.click(searchBtn); + await new Promise((resolve) => setTimeout(resolve, 100)); + }); + + it('Sets userType to Admin if user is found in admins list', async (): Promise => { + const adminMock = { + request: { + query: ORGANIZATION_ADMINS_LIST, + variables: { id: '' }, + }, + result: { + data: { + organizations: [ + { + _id: 'testOrg', + admins: [ + { + _id: 'admin123', + firstName: 'Test', + lastName: 'Admin', + email: 'admin@test.com', + }, + ], + }, + ], + }, + }, + }; + const membersMock = { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { orgId: '', firstName_contains: '' }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: [ + { + _id: 'admin123', + firstName: 'Test', + lastName: 'Admin', + email: 'admin@test.com', + }, + ], + }, + }, + }, + }; + const link = new StaticMockLink([adminMock, membersMock], true); + render( + + + , + ); + await wait(); + expect(screen.getByText('Admin')).toBeInTheDocument(); + }); +}); + +describe('People Component Pagination Tests', () => { + const mockData = { + request: { + query: ORGANIZATIONS_MEMBER_CONNECTION_LIST, + variables: { orgId: '', firstName_contains: '' }, + }, + result: { + data: { + organizationsMemberConnection: { + edges: Array(15) + .fill(null) + .map((_, index) => ({ + _id: `user-${index}`, + firstName: `User${index}`, + lastName: 'Test', + image: null, + email: `user${index}@test.com`, + createdAt: '2023-03-02T03:22:08.101Z', + })), + }, + }, + }, + }; + + const adminMock = { + request: { + query: ORGANIZATION_ADMINS_LIST, + variables: { id: '' }, + }, + result: { + data: { + organizations: [ + { + __typename: 'Organization', + _id: 'org-1', + admins: [], + }, + ], + }, + }, + }; + + const renderComponent = (): RenderResult => { + return render( + + + + + + + + + , + ); + }; + + beforeAll(() => { + // Mock window.matchMedia + Object.defineProperty(window, 'matchMedia', { + writable: true, + value: vi.fn().mockImplementation((query) => ({ + matches: false, + media: query, + onchange: null, + addListener: vi.fn(), + removeListener: vi.fn(), + addEventListener: vi.fn(), + removeEventListener: vi.fn(), + dispatchEvent: vi.fn(), + })), + }); + }); + it('handles edge cases in pagination', async () => { + renderComponent(); + + await act(async () => { + await new Promise((resolve) => setTimeout(resolve, 0)); + }); + + // Test last page navigation + const lastPageButton = screen.getByRole('button', { name: /last page/i }); + await act(async () => { + userEvent.click(lastPageButton); + }); + + // Verify last page content + expect(screen.getByText('User14 Test')).toBeInTheDocument(); + + // Test first page navigation + const firstPageButton = screen.getByRole('button', { name: /first page/i }); + await act(async () => { + userEvent.click(firstPageButton); + }); + + // Verify return to first page + expect(screen.getByText('User0 Test')).toBeInTheDocument(); + expect(screen.queryByText('User14 Test')).not.toBeInTheDocument(); + }); }); diff --git a/src/screens/UserPortal/People/People.tsx b/src/screens/UserPortal/People/People.tsx index 827a5b49c6..6894152742 100644 --- a/src/screens/UserPortal/People/People.tsx +++ b/src/screens/UserPortal/People/People.tsx @@ -1,14 +1,15 @@ import React, { useEffect, useState } from 'react'; import PeopleCard from 'components/UserPortal/PeopleCard/PeopleCard'; -import { Dropdown, Form, InputGroup } from 'react-bootstrap'; +import { Dropdown, Form, Button } from 'react-bootstrap'; import PaginationList from 'components/PaginationList/PaginationList'; import { ORGANIZATIONS_MEMBER_CONNECTION_LIST, ORGANIZATION_ADMINS_LIST, } from 'GraphQl/Queries/Queries'; import { useQuery } from '@apollo/client'; -import { FilterAltOutlined, SearchOutlined } from '@mui/icons-material'; -import styles from './People.module.css'; +import SearchOutlinedIcon from '@mui/icons-material/SearchOutlined'; +import { FilterAltOutlined } from '@mui/icons-material'; +import styles from '../../../style/app.module.css'; import { useTranslation } from 'react-i18next'; import HourglassBottomIcon from '@mui/icons-material/HourglassBottom'; import { useParams } from 'react-router-dom'; @@ -112,171 +113,143 @@ export default function people(): JSX.Element { }; useEffect(() => { - if (data2) { - const admin = data2.organizations[0].admins[0]; - const updatedAdmin: InterfaceMember = { - ...admin, - userType: 'Admin', - }; - setAdmins([updatedAdmin]); + if (data2?.organizations?.[0]?.admins) { + const adminsList = data2.organizations[0].admins.map( + (admin: InterfaceMember) => ({ + ...admin, + userType: 'Admin', + }), + ); + setAdmins(adminsList); } }, [data2]); + // Updated members effect useEffect(() => { - if (data) { - const updatedAdmins = data.organizationsMemberConnection.edges.map( + if (data?.organizationsMemberConnection?.edges) { + const membersList = data.organizationsMemberConnection.edges.map( (memberData: InterfaceMember) => ({ - ...memberData, // Spread the existing properties + ...memberData, userType: admins?.some((admin) => admin._id === memberData._id) ? 'Admin' : 'Member', }), ); - - setAllMembers(updatedAdmins); - setMembers(updatedAdmins); + setAllMembers(membersList); + setMembers(mode === 0 ? membersList : admins); } - }, [data, admins]); + }, [data, admins, mode]); - if (admins && admins.length > 0) { - const adminIds = admins.map((adm) => adm._id); - for (let i = 0; i < allMembers.length; i++) { - if (adminIds.includes(allMembers[i]._id)) { - allMembers[i].userType = 'Admin'; - } else { - allMembers[i].userType = 'Member'; - } - } - } useEffect(() => { - if (mode == 0) { - if (data) { - setMembers(allMembers); - } - } else if (mode == 1) { - if (data2) { - setMembers(admins); - } - } - }, [mode]); + setMembers(mode === 0 ? allMembers : admins); + }, [mode, allMembers, admins]); return ( <> -
-
-
- - - - - - - - - - {tCommon('filter').toUpperCase()} - - - {modes.map((value, index) => { - return ( - setMode(index)} - > - {value} - - ); - })} - - -
-
-
+
+
+ + +
+ + +
-
+ - {loading ? ( -
- Loading... -
- ) : ( - <> - {members && members.length > 0 ? ( - (rowsPerPage > 0 - ? members.slice( - page * rowsPerPage, - page * rowsPerPage + rowsPerPage, - ) - : /* istanbul ignore next */ - members - ).map((member: InterfaceMember, index) => { - const name = `${member.firstName} ${member.lastName}`; + + {tCommon('filter')} +
+ + {modes.map((value, index) => { + return ( + setMode(index)} + > + {value} + + ); + })} + + +
+
+
+ + S.No + Avatar + + Name + Email + Role +
+ +
+ {loading ? ( +
+ Loading... +
+ ) : ( + <> + {members && members.length > 0 ? ( + (rowsPerPage > 0 + ? members.slice( + page * rowsPerPage, + page * rowsPerPage + rowsPerPage, + ) + : members + ).map((member: InterfaceMember, index) => { + const name = `${member.firstName} ${member.lastName}`; - const cardProps: InterfaceOrganizationCardProps = { - name, - image: member.image, - id: member._id, - email: member.email, - role: member.userType, - sno: (index + 1).toString(), - }; - return ; - }) - ) : ( - {t('nothingToShow')} - )} - - )} -
- - - - - - -
+ const cardProps: InterfaceOrganizationCardProps = { + name, + image: member.image, + id: member._id, + email: member.email, + role: member.userType, + sno: (index + 1).toString(), + }; + return ; + }) + ) : ( + {t('nothingToShow')} + )} + + )}
+
- {/* */}
); diff --git a/src/screens/Users/Organization.mocks.ts b/src/screens/Users/Organization.mocks.ts new file mode 100644 index 0000000000..d32dc9fd7b --- /dev/null +++ b/src/screens/Users/Organization.mocks.ts @@ -0,0 +1,370 @@ +interface InterfaceAddress { + city: string; + countryCode: string; + dependentLocality: string; + line1: string; + line2: string; + postalCode: string; + sortingCode: string; + state: string; +} + +interface InterfaceCreator { + _id: string; + firstName: string; + lastName: string; + image: string | null; + email: string; + createdAt: string; +} + +interface InterfaceOrganization { + _id: string; + name: string; + image: string | null; + address: InterfaceAddress; + createdAt: string; + creator: InterfaceCreator; +} + +interface InterfaceUser { + _id: string; + firstName: string; + lastName: string; + image: string | null; + email: string; + createdAt: string; + registeredEvents: []; + membershipRequests: []; + organizationsBlockedBy: InterfaceOrganization[]; + joinedOrganizations: InterfaceOrganization[]; +} + +interface InterfaceAppUserProfile { + _id: string; + adminFor: { _id: string }[]; + isSuperAdmin: boolean; + createdOrganizations: []; + createdEvents: []; + eventAdmin: []; +} + +interface InterfaceMockUser { + user: InterfaceUser; + appUserProfile: InterfaceAppUserProfile; +} + +export const createAddress = { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', +}; + +export const createCreator = { + _id: '123', + firstName: 'Jack', + lastName: 'Smith', + image: null, + email: 'jack@example.com', + createdAt: '19/06/2022', +}; + +export const MOCK_USERS = [ + { + user: { + _id: 'user1', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '2023-04-13T04:53:17.742+00:00', + registeredEvents: [], + membershipRequests: [], + organizationsBlockedBy: [ + { + _id: 'xyz', + name: 'ABC', + image: null, + address: createAddress, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + joinedOrganizations: [ + { + _id: 'abc', + name: 'Joined Organization 1', + image: null, + address: createAddress, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + }, + appUserProfile: { + _id: 'user1', + adminFor: [ + { + _id: '123', + }, + ], + isSuperAdmin: true, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + }, + }, + { + user: { + _id: 'user2', + firstName: 'Jane', + lastName: 'Doe', + image: null, + email: 'jane@example.com', + createdAt: '2023-04-17T04:53:17.742+00:00', + registeredEvents: [], + membershipRequests: [], + organizationsBlockedBy: [ + { + _id: '456', + name: 'ABC', + image: null, + address: createAddress, + createdAt: '21/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '21/06/2022', + }, + }, + ], + joinedOrganizations: [ + { + _id: '123', + name: 'Palisadoes', + image: null, + address: createAddress, + createdAt: '21/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '21/06/2022', + }, + }, + ], + }, + appUserProfile: { + _id: 'user2', + adminFor: [ + { + _id: '123', + }, + ], + isSuperAdmin: false, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + }, + }, + { + user: { + _id: 'user3', + firstName: 'Jack', + lastName: 'Smith', + image: null, + email: 'jack@example.com', + createdAt: '2023-04-09T04:53:17.742+00:00', + registeredEvents: [], + membershipRequests: [], + organizationsBlockedBy: [ + { + _id: 'xyz', + name: 'ABC', + image: null, + address: createAddress, + createdAt: '19/06/2022', + creator: createCreator, + }, + ], + joinedOrganizations: [ + { + _id: 'abc', + name: 'Joined Organization 1', + image: null, + address: createAddress, + createdAt: '19/06/2022', + creator: createCreator, + }, + ], + }, + appUserProfile: { + _id: 'user3', + adminFor: [], + isSuperAdmin: false, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + }, + }, +]; + +export const generateMockUser = ( + id: string, + firstName: string, + lastName: string, + email: string, + createdAt: string, + isSuperAdmin = false, +): InterfaceMockUser => ({ + user: { + _id: id, + firstName, + lastName, + image: null, + email, + createdAt, + registeredEvents: [], + membershipRequests: [], + organizationsBlockedBy: [ + { + _id: 'xyz', + name: 'ABC', + image: null, + address: createAddress, + createdAt: '19/06/2022', + creator: createCreator, + }, + ], + joinedOrganizations: [ + { + _id: 'abc', + name: 'Joined Organization 1', + image: null, + address: createAddress, + createdAt: '19/06/2022', + creator: createCreator, + }, + ], + }, + appUserProfile: { + _id: id, + adminFor: isSuperAdmin ? [{ _id: '123' }] : [], + isSuperAdmin, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + }, +}); + +export const MOCK_USERS2 = [ + ...MOCK_USERS, + generateMockUser( + 'user4', + 'Emma', + 'Johnson', + 'emma@example.com', + '2023-04-22T04:53:17.742+00:00', + ), + generateMockUser( + 'user5', + 'Liam', + 'Smith', + 'liam@example.com', + '2023-04-23T04:53:17.742+00:00', + ), + generateMockUser( + 'user6', + 'Olivia', + 'Brown', + 'olivia@example.com', + '2023-04-24T04:53:17.742+00:00', + ), + generateMockUser( + 'user7', + 'Noah', + 'Williams', + 'noah@example.com', + '2023-04-25T04:53:17.742+00:00', + ), + generateMockUser( + 'user8', + 'Ava', + 'Jones', + 'ava@example.com', + '2023-04-26T04:53:17.742+00:00', + ), + generateMockUser( + 'user9', + 'Ethan', + 'Garcia', + 'ethan@example.com', + '2023-04-27T04:53:17.742+00:00', + ), + generateMockUser( + 'user10', + 'Sophia', + 'Martinez', + 'sophia@example.com', + '2023-04-28T04:53:17.742+00:00', + ), + generateMockUser( + 'user11', + 'Mason', + 'Davis', + 'mason@example.com', + '2023-04-29T04:53:17.742+00:00', + ), + generateMockUser( + 'user12', + 'Isabella', + 'Rodriguez', + 'isabella@example.com', + '2023-04-30T04:53:17.742+00:00', + ), + generateMockUser( + 'user13', + 'Logan', + 'Wilson', + 'logan@example.com', + '2023-04-08T04:53:17.742+00:00', + ), + generateMockUser( + 'user14', + 'Mia', + 'Anderson', + 'mia@example.com', + '2023-04-07T04:53:17.742+00:00', + ), + generateMockUser( + 'user15', + 'Lucas', + 'Thomas', + 'lucas@example.com', + '2023-04-05T04:53:17.742+00:00', + ), +]; diff --git a/src/screens/Users/User.mocks.ts b/src/screens/Users/User.mocks.ts new file mode 100644 index 0000000000..c1a9035550 --- /dev/null +++ b/src/screens/Users/User.mocks.ts @@ -0,0 +1,475 @@ +import { + ORGANIZATION_CONNECTION_LIST, + USER_LIST, + USER_ORGANIZATION_LIST, +} from 'GraphQl/Queries/Queries'; + +export const MOCKS = [ + { + request: { + query: USER_ORGANIZATION_LIST, + variables: { id: 'user1' }, + }, + result: { + data: { + user: { + firstName: 'John', + lastName: 'Doe', + image: '', + email: 'John_Does_Palasidoes@gmail.com', + }, + }, + }, + }, + { + request: { + query: USER_LIST, + variables: { + first: 12, + skip: 0, + firstName_contains: '', + lastName_contains: '', + }, + }, + result: { + data: { + users: [ + { + user: { + _id: 'user1', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '2022-06-20T00:00:00.000Z', + registeredEvents: [], + membershipRequests: [], + organizationsBlockedBy: [ + { + _id: 'xyz', + name: 'ABC', + image: null, + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + joinedOrganizations: [ + { + _id: 'abc', + name: 'Joined Organization 1', + image: null, + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + }, + appUserProfile: { + _id: 'user1', + adminFor: [ + { + _id: '123', + }, + ], + isSuperAdmin: true, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + }, + }, + { + user: { + _id: 'user2', + firstName: 'Jane', + lastName: 'Doe', + image: null, + email: 'jane@example.com', + createdAt: '20/06/2022', + registeredEvents: [], + membershipRequests: [], + organizationsBlockedBy: [ + { + _id: '456', + name: 'ABC', + image: null, + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + joinedOrganizations: [ + { + _id: '123', + name: 'Palisadoes', + image: null, + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + }, + appUserProfile: { + _id: 'user2', + adminFor: [ + { + _id: '123', + }, + ], + isSuperAdmin: false, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + }, + }, + ], + }, + }, + }, + { + request: { + query: ORGANIZATION_CONNECTION_LIST, + }, + result: { + data: { + organizationsConnection: [ + { + _id: 123, + image: null, + creator: { + firstName: 'John', + lastName: 'Doe', + }, + name: 'Palisadoes', + members: [ + { + _id: 'user1', + }, + { + _id: 'user2', + }, + ], + admins: [ + { + _id: 'user1', + }, + { + _id: 'user2', + }, + ], + createdAt: '09/11/2001', + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + }, + ], + }, + }, + }, +]; + +export const MOCKS2 = [ + { + request: { + query: USER_ORGANIZATION_LIST, + variables: { id: 'user1' }, + }, + result: { + data: { + user: { + firstName: 'John', + lastName: 'Doe', + image: '', + email: 'John_Does_Palasidoes@gmail.com', + }, + }, + }, + }, + { + request: { + query: USER_LIST, + variables: { + first: 12, + skip: 0, + firstName_contains: '', + lastName_contains: '', + }, + }, + result: { + data: { + users: [ + { + user: { + _id: 'user1', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + registeredEvents: [], + membershipRequests: [], + organizationsBlockedBy: [ + { + _id: 'xyz', + name: 'ABC', + image: null, + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + joinedOrganizations: [ + { + _id: 'abc', + name: 'Joined Organization 1', + image: null, + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + }, + appUserProfile: { + _id: 'user1', + adminFor: [ + { + _id: '123', + }, + ], + isSuperAdmin: true, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + }, + }, + { + user: { + _id: 'user2', + firstName: 'Jane', + lastName: 'Doe', + image: null, + email: 'jane@example.com', + createdAt: '20/06/2022', + registeredEvents: [], + membershipRequests: [], + organizationsBlockedBy: [ + { + _id: '456', + name: 'ABC', + image: null, + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + joinedOrganizations: [ + { + _id: '123', + name: 'Palisadoes', + image: null, + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + createdAt: '20/06/2022', + creator: { + _id: '123', + firstName: 'John', + lastName: 'Doe', + image: null, + email: 'john@example.com', + createdAt: '20/06/2022', + }, + }, + ], + }, + appUserProfile: { + _id: 'user2', + adminFor: [ + { + _id: '123', + }, + ], + isSuperAdmin: false, + createdOrganizations: [], + createdEvents: [], + eventAdmin: [], + }, + }, + ], + }, + }, + }, + { + request: { + query: ORGANIZATION_CONNECTION_LIST, + }, + result: { + data: { + organizationsConnection: [ + { + _id: 123, + image: null, + creator: { + firstName: 'John', + lastName: 'Doe', + }, + name: 'Palisadoes', + members: [ + { + _id: 'user1', + }, + { + _id: 'user2', + }, + ], + admins: [ + { + _id: 'user1', + }, + { + _id: 'user2', + }, + ], + createdAt: '09/11/2001', + address: { + city: 'Kingston', + countryCode: 'JM', + dependentLocality: 'Sample Dependent Locality', + line1: '123 Jamaica Street', + line2: 'Apartment 456', + postalCode: 'JM12345', + sortingCode: 'ABC-123', + state: 'Kingston Parish', + }, + }, + ], + }, + }, + }, +]; diff --git a/src/screens/Users/Users.spec.tsx b/src/screens/Users/Users.spec.tsx index 1457bec5b8..6d2349de97 100644 --- a/src/screens/Users/Users.spec.tsx +++ b/src/screens/Users/Users.spec.tsx @@ -10,842 +10,22 @@ import { store } from 'state/store'; import { StaticMockLink } from 'utils/StaticMockLink'; import i18nForTest from 'utils/i18nForTest'; import Users from './Users'; -import { EMPTY_MOCKS, MOCKS, MOCKS2 } from './UsersMocks'; +import { + EMPTY_MOCKS, + MOCKS_NEW, + MOCKS_NEW2, + MOCKS_NEW3, + MOCKS_NEW_2, +} from './UsersMocks.mocks'; +import { generateMockUser } from './Organization.mocks'; +import { MOCKS, MOCKS2 } from './User.mocks'; import useLocalStorage from 'utils/useLocalstorage'; import { describe, expect, it, beforeEach, afterEach, vi } from 'vitest'; -import { - USER_LIST, - ORGANIZATION_CONNECTION_LIST, -} from 'GraphQl/Queries/Queries'; +import { USER_LIST } from 'GraphQl/Queries/Queries'; const { setItem, removeItem } = useLocalStorage(); -const createAddress = { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', -}; - -const createCreator = { - _id: '123', - firstName: 'Jack', - lastName: 'Smith', - image: null, - email: 'jack@example.com', - createdAt: '19/06/2022', -}; - -const MOCK_USERS = [ - { - user: { - _id: 'user1', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '2023-04-13T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - }, - appUserProfile: { - _id: 'user1', - adminFor: [ - { - _id: '123', - }, - ], - isSuperAdmin: true, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user2', - firstName: 'Jane', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '2023-04-17T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: '456', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '21/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '21/06/2022', - }, - }, - ], - joinedOrganizations: [ - { - _id: '123', - name: 'Palisadoes', - image: null, - address: createAddress, - createdAt: '21/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '21/06/2022', - }, - }, - ], - }, - appUserProfile: { - _id: 'user2', - adminFor: [ - { - _id: '123', - }, - ], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user3', - firstName: 'Jack', - lastName: 'Smith', - image: null, - email: 'jack@example.com', - createdAt: '2023-04-09T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user3', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, -]; - -const MOCK_USERS2 = [ - ...MOCK_USERS, - { - user: { - _id: 'user4', - firstName: 'Emma', - lastName: 'Johnson', - image: null, - email: 'emma@example.com', - createdAt: '2023-04-22T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user4', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user5', - firstName: 'Liam', - lastName: 'Smith', - image: null, - email: 'liam@example.com', - createdAt: '2023-04-23T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user5', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user6', - firstName: 'Olivia', - lastName: 'Brown', - image: null, - email: 'olivia@example.com', - createdAt: '2023-04-24T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user6', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user7', - firstName: 'Noah', - lastName: 'Williams', - image: null, - email: 'noah@example.com', - createdAt: '2023-04-25T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user7', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user8', - firstName: 'Ava', - lastName: 'Jones', - image: null, - email: 'ava@example.com', - createdAt: '2023-04-26T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user8', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user9', - firstName: 'Ethan', - lastName: 'Garcia', - image: null, - email: 'ethan@example.com', - createdAt: '2023-04-27T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user9', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user10', - firstName: 'Sophia', - lastName: 'Martinez', - image: null, - email: 'sophia@example.com', - createdAt: '2023-04-28T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user10', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user11', - firstName: 'Mason', - lastName: 'Davis', - image: null, - email: 'mason@example.com', - createdAt: '2023-04-29T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user11', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user12', - firstName: 'Isabella', - lastName: 'Rodriguez', - image: null, - email: 'isabella@example.com', - createdAt: '2023-04-30T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user12', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user13', - firstName: 'Logan', - lastName: 'Wilson', - image: null, - email: 'logan@example.com', - createdAt: '2023-04-08T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user13', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user14', - firstName: 'Mia', - lastName: 'Anderson', - image: null, - email: 'mia@example.com', - createdAt: '2023-04-07T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user14', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user15', - firstName: 'Lucas', - lastName: 'Thomas', - image: null, - email: 'lucas@example.com', - createdAt: '2023-04-05T04:53:17.742+00:00', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: createAddress, - createdAt: '19/06/2022', - creator: createCreator, - }, - ], - }, - appUserProfile: { - _id: 'user15', - adminFor: [], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, -]; - -const MOCKS_NEW = [ - { - request: { - query: USER_LIST, - variables: { - first: 12, - skip: 0, - firstName_contains: '', - lastName_contains: '', - order: 'createdAt_DESC', - }, - }, - result: { - data: { - users: MOCK_USERS, - }, - }, - }, - { - request: { - query: ORGANIZATION_CONNECTION_LIST, - }, - result: { - data: { - organizationsConnection: [], - }, - }, - }, -]; - -const MOCKS_NEW2 = [ - { - request: { - query: USER_LIST, - variables: { - first: 12, - skip: 0, - firstName_contains: '', - lastName_contains: '', - order: 'createdAt_DESC', - }, - }, - result: { - data: { - users: MOCK_USERS2.slice(0, 12), - }, - }, - }, - { - request: { - query: ORGANIZATION_CONNECTION_LIST, - }, - result: { - data: { - organizationsConnection: [], - }, - }, - }, - { - request: { - query: USER_LIST, - variables: { - first: 24, - skip: 0, - firstName_contains: '', - lastName_contains: '', - order: 'createdAt_DESC', - filter: '', - }, - }, - result: { - data: { - users: MOCK_USERS2.slice(12, 15), - }, - }, - }, -]; - -const MOCKS_NEW3 = [ - { - request: { - query: USER_LIST, - variables: { - first: 12, - skip: 0, - firstName_contains: '', - lastName_contains: '', - order: 'createdAt_DESC', - }, - }, - result: { - data: { - users: MOCK_USERS2.slice(0, 12), - }, - }, - }, - { - request: { - query: ORGANIZATION_CONNECTION_LIST, - }, - result: { - data: { - organizationsConnection: [], - }, - }, - }, - { - request: { - query: USER_LIST, - variables: { - first: 24, - skip: 0, - firstName_contains: '', - lastName_contains: '', - order: 'createdAt_DESC', - filter: '', - }, - }, - result: { - data: { - users: MOCK_USERS2.slice(11, 15), - }, - }, - }, - { - request: { - query: USER_LIST, - variables: { - first: 24, - skip: 0, - firstName_contains: '', - lastName_contains: '', - order: 'createdAt_DESC', - filter: '', - }, - }, - result: { - data: { - users: MOCK_USERS2.slice(11, 15), - }, - }, - }, - { - request: { - query: USER_LIST, - variables: { - first: 13, - skip: 3, - firstName_contains: '', - lastName_contains: '', - order: 'createdAt_DESC', - filter: '', - }, - }, - result: { - data: { - users: [], - }, - }, - }, -]; - const link = new StaticMockLink(MOCKS, true); const link2 = new StaticMockLink(EMPTY_MOCKS, true); const link3 = new StaticMockLink(MOCKS2, true); @@ -1550,4 +730,142 @@ describe('Testing Users screen', () => { .querySelectorAll('tr'); expect(users2.length).toBe(15); }); + + it('should render "No results found" message with search query when search returns no users and isLoading is false', async () => { + render( + + + + + + + + + , + ); + + await wait(); + + const searchBtn = screen.getByTestId('searchButton'); + const searchInput = screen.getByTestId(/searchByName/i); + + await act(async () => { + userEvent.clear(searchInput); + userEvent.type(searchInput, 'NonexistentName'); + userEvent.click(searchBtn); + }); + + const noResultsMessage = screen.getByText(/No results found for/i); + expect(noResultsMessage).toBeInTheDocument(); + expect(noResultsMessage).toHaveTextContent('NonexistentName'); + }); + + describe('Testing sorting and loadMoreUsers functionality', () => { + it('should set the correct order variable and update hasMore', async () => { + render( + + + + + + + , + ); + + const sortDropdown = await screen.findByTestId('sortUsers'); + fireEvent.click(sortDropdown); + + const newestOption = screen.getByTestId('newest'); + fireEvent.click(newestOption); + + expect(screen.getByTestId('sortUsers')).toHaveTextContent('newest'); + + const rowsNewest = await screen.findAllByRole('row'); + expect(rowsNewest.length).toBeGreaterThan(0); + + fireEvent.click(sortDropdown); + const oldestOption = screen.getByTestId('oldest'); + fireEvent.click(oldestOption); + + expect(screen.getByTestId('sortUsers')).toHaveTextContent('oldest'); + + const rowsOldest = await screen.findAllByRole('row'); + expect(rowsOldest.length).toBeGreaterThan(0); + }); + + it('should load more users and merge them correctly', async () => { + render( + + + + + + + , + ); + + await wait(); + let rows = screen.getAllByRole('row'); + expect(rows.length).toBe(4); + + await act(async () => { + fireEvent.scroll(window, { target: { scrollY: 1000 } }); + }); + + await wait(); + rows = screen.getAllByRole('row'); + expect(rows.length).toBe(4); + }); + }); + + describe('generateMockUser', () => { + it('should set adminFor with an entry when isSuperAdmin is true', () => { + const mockUser = generateMockUser( + 'user1', + 'John', + 'Doe', + 'john@example.com', + '2023-04-13T04:53:17.742+00:00', + true, // isSuperAdmin + ); + + expect(mockUser.appUserProfile.adminFor).toEqual([{ _id: '123' }]); + expect(mockUser.appUserProfile.isSuperAdmin).toBe(true); + }); + + it('should set adminFor as an empty array when isSuperAdmin is false', () => { + const mockUser = generateMockUser( + 'user2', + 'Jane', + 'Doe', + 'jane@example.com', + '2023-04-17T04:53:17.742+00:00', + false, // isSuperAdmin + ); + + expect(mockUser.appUserProfile.adminFor).toEqual([]); + expect(mockUser.appUserProfile.isSuperAdmin).toBe(false); + }); + }); }); diff --git a/src/screens/Users/Users.tsx b/src/screens/Users/Users.tsx index ef9f001f4d..95c2116c4c 100644 --- a/src/screens/Users/Users.tsx +++ b/src/screens/Users/Users.tsx @@ -211,7 +211,6 @@ const Users = (): JSX.Element => { const inputValue = inputElement?.value || ''; handleSearch(inputValue); }; - /* istanbul ignore next */ const resetAndRefetch = (): void => { refetchUsers({ first: perPageResult, @@ -222,7 +221,6 @@ const Users = (): JSX.Element => { }); setHasMore(true); }; - /* istanbul ignore next */ const loadMoreUsers = (skipValue: number, limitVal: number): void => { setIsLoadingMore(true); fetchMore({ @@ -430,10 +428,7 @@ const Users = (): JSX.Element => { /> )} { loadMoreUsers(displayedUsers.length, perPageResult); }} @@ -474,7 +469,7 @@ const Users = (): JSX.Element => { index={index} resetAndRefetch={resetAndRefetch} user={user} - loggedInUserId={loggedInUserId ? loggedInUserId : ''} + loggedInUserId={loggedInUserId} /> ); }, diff --git a/src/screens/Users/UsersMocks.mocks.ts b/src/screens/Users/UsersMocks.mocks.ts new file mode 100644 index 0000000000..54fae95442 --- /dev/null +++ b/src/screens/Users/UsersMocks.mocks.ts @@ -0,0 +1,244 @@ +import { + ORGANIZATION_CONNECTION_LIST, + USER_LIST, +} from 'GraphQl/Queries/Queries'; + +import { MOCK_USERS, MOCK_USERS2 } from './Organization.mocks'; + +export const EMPTY_MOCKS = [ + { + request: { + query: USER_LIST, + variables: { + first: 12, + skip: 0, + firstName_contains: '', + lastName_contains: '', + }, + }, + result: { + data: { + users: [], + }, + }, + }, + { + request: { + query: ORGANIZATION_CONNECTION_LIST, + }, + result: { + data: { + organizationsConnection: [], + }, + }, + }, +]; + +export const MOCKS_NEW_2 = [ + { + request: { + query: USER_LIST, + variables: { + first: 12, + skip: 0, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + }, + }, + result: { + data: { + users: MOCK_USERS.slice(0, 12), + }, + }, + }, + { + request: { + query: USER_LIST, + variables: { + first: 24, + skip: 0, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + }, + }, + result: { + data: { + users: MOCK_USERS.slice(12, 24), + }, + }, + }, + { + request: { + query: ORGANIZATION_CONNECTION_LIST, + }, + result: { + data: { + organizationsConnection: [], + }, + }, + }, +]; + +export const MOCKS_NEW = [ + { + request: { + query: USER_LIST, + variables: { + first: 12, + skip: 0, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + }, + }, + result: { + data: { + users: MOCK_USERS, + }, + }, + }, + { + request: { + query: ORGANIZATION_CONNECTION_LIST, + }, + result: { + data: { + organizationsConnection: [], + }, + }, + }, +]; + +export const MOCKS_NEW2 = [ + { + request: { + query: USER_LIST, + variables: { + first: 12, + skip: 0, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + }, + }, + result: { + data: { + users: MOCK_USERS2.slice(0, 12), + }, + }, + }, + { + request: { + query: ORGANIZATION_CONNECTION_LIST, + }, + result: { + data: { + organizationsConnection: [], + }, + }, + }, + { + request: { + query: USER_LIST, + variables: { + first: 24, + skip: 0, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + filter: '', + }, + }, + result: { + data: { + users: MOCK_USERS2.slice(12, 15), + }, + }, + }, +]; + +export const MOCKS_NEW3 = [ + { + request: { + query: USER_LIST, + variables: { + first: 12, + skip: 0, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + }, + }, + result: { + data: { + users: MOCK_USERS2.slice(0, 12), + }, + }, + }, + { + request: { + query: ORGANIZATION_CONNECTION_LIST, + }, + result: { + data: { + organizationsConnection: [], + }, + }, + }, + { + request: { + query: USER_LIST, + variables: { + first: 24, + skip: 0, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + filter: '', + }, + }, + result: { + data: { + users: MOCK_USERS2.slice(11, 15), + }, + }, + }, + { + request: { + query: USER_LIST, + variables: { + first: 24, + skip: 0, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + filter: '', + }, + }, + result: { + data: { + users: MOCK_USERS2.slice(11, 15), + }, + }, + }, + { + request: { + query: USER_LIST, + variables: { + first: 13, + skip: 3, + firstName_contains: '', + lastName_contains: '', + order: 'createdAt_DESC', + filter: '', + }, + }, + result: { + data: { + users: [], + }, + }, + }, +]; diff --git a/src/screens/Users/UsersMocks.ts b/src/screens/Users/UsersMocks.ts deleted file mode 100644 index f7908cf675..0000000000 --- a/src/screens/Users/UsersMocks.ts +++ /dev/null @@ -1,504 +0,0 @@ -import { - ORGANIZATION_CONNECTION_LIST, - USER_LIST, - USER_ORGANIZATION_LIST, -} from 'GraphQl/Queries/Queries'; - -export const MOCKS = [ - { - request: { - query: USER_ORGANIZATION_LIST, - variables: { id: 'user1' }, - }, - result: { - data: { - user: { - firstName: 'John', - lastName: 'Doe', - image: '', - email: 'John_Does_Palasidoes@gmail.com', - }, - }, - }, - }, - { - request: { - query: USER_LIST, - variables: { - first: 12, - skip: 0, - firstName_contains: '', - lastName_contains: '', - }, - }, - result: { - data: { - users: [ - { - user: { - _id: 'user1', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - }, - appUserProfile: { - _id: 'user1', - adminFor: [ - { - _id: '123', - }, - ], - isSuperAdmin: true, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user2', - firstName: 'Jane', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: '456', - name: 'ABC', - image: null, - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - joinedOrganizations: [ - { - _id: '123', - name: 'Palisadoes', - image: null, - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - }, - appUserProfile: { - _id: 'user2', - adminFor: [ - { - _id: '123', - }, - ], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - ], - }, - }, - }, - { - request: { - query: ORGANIZATION_CONNECTION_LIST, - }, - result: { - data: { - organizationsConnection: [ - { - _id: 123, - image: null, - creator: { - firstName: 'John', - lastName: 'Doe', - }, - name: 'Palisadoes', - members: [ - { - _id: 'user1', - }, - { - _id: 'user2', - }, - ], - admins: [ - { - _id: 'user1', - }, - { - _id: 'user2', - }, - ], - createdAt: '09/11/2001', - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - }, - ], - }, - }, - }, -]; - -export const MOCKS2 = [ - { - request: { - query: USER_ORGANIZATION_LIST, - variables: { id: 'user1' }, - }, - result: { - data: { - user: { - firstName: 'John', - lastName: 'Doe', - image: '', - email: 'John_Does_Palasidoes@gmail.com', - }, - }, - }, - }, - { - request: { - query: USER_LIST, - variables: { - first: 12, - skip: 0, - firstName_contains: '', - lastName_contains: '', - }, - }, - result: { - data: { - users: [ - { - user: { - _id: 'user1', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: 'xyz', - name: 'ABC', - image: null, - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - joinedOrganizations: [ - { - _id: 'abc', - name: 'Joined Organization 1', - image: null, - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - }, - appUserProfile: { - _id: 'user1', - adminFor: [ - { - _id: '123', - }, - ], - isSuperAdmin: true, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - { - user: { - _id: 'user2', - firstName: 'Jane', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - registeredEvents: [], - membershipRequests: [], - organizationsBlockedBy: [ - { - _id: '456', - name: 'ABC', - image: null, - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - joinedOrganizations: [ - { - _id: '123', - name: 'Palisadoes', - image: null, - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - createdAt: '20/06/2022', - creator: { - _id: '123', - firstName: 'John', - lastName: 'Doe', - image: null, - email: 'john@example.com', - createdAt: '20/06/2022', - }, - }, - ], - }, - appUserProfile: { - _id: 'user2', - adminFor: [ - { - _id: '123', - }, - ], - isSuperAdmin: false, - createdOrganizations: [], - createdEvents: [], - eventAdmin: [], - }, - }, - ], - }, - }, - }, - { - request: { - query: ORGANIZATION_CONNECTION_LIST, - }, - result: { - data: { - organizationsConnection: [ - { - _id: 123, - image: null, - creator: { - firstName: 'John', - lastName: 'Doe', - }, - name: 'Palisadoes', - members: [ - { - _id: 'user1', - }, - { - _id: 'user2', - }, - ], - admins: [ - { - _id: 'user1', - }, - { - _id: 'user2', - }, - ], - createdAt: '09/11/2001', - address: { - city: 'Kingston', - countryCode: 'JM', - dependentLocality: 'Sample Dependent Locality', - line1: '123 Jamaica Street', - line2: 'Apartment 456', - postalCode: 'JM12345', - sortingCode: 'ABC-123', - state: 'Kingston Parish', - }, - }, - ], - }, - }, - }, -]; - -export const EMPTY_MOCKS = [ - { - request: { - query: USER_LIST, - variables: { - first: 12, - skip: 0, - firstName_contains: '', - lastName_contains: '', - }, - }, - result: { - data: { - users: [], - }, - }, - }, - { - request: { - query: ORGANIZATION_CONNECTION_LIST, - }, - result: { - data: { - organizationsConnection: [], - }, - }, - }, -]; diff --git a/src/style/app.module.css b/src/style/app.module.css index fea01199a5..7fa5e19d50 100644 --- a/src/style/app.module.css +++ b/src/style/app.module.css @@ -1,3 +1,42 @@ +/** + * CSS Methodology for Common Styles: + * + * This project aims to reduce CSS duplication by merging similar styles across components + * into reusable global classes. This ensures consistency and simplifies maintenance. + * + * Steps for contributors: + * 1. Identify duplicate or similar styles in different components (e.g., buttons, modals). + * 2. Create a global class with a clear, descriptive name (e.g., .addButton, .removeButton). + * 3. Use the new global class in all components requiring that style. + * + * Naming Convention: + * - Use lowercase, descriptive names for global classes (e.g., .addButton, .removeButton). + * - Keep names generic enough for reuse but clear in their purpose. + * + * Example: + * Instead of component-specific classes like: + * `.greenregbtnOrganizationFundCampaign`, `.greenregbtnPledge` (used in two different components for same functionality) + * Use: + * `.addButton` (a single reusable class in the global CSS file that is used for functionalities that add/create tasks) + * + * Global Classes: + * `.inputField` (for form input fields) + * `.searchButton` (for form input field search button) + * `.addButton` (for buttons that add/create task) + * `.removeButton` (for buttons that remove/delete task) + * `.modalHeader` (for header section of any modal) + * `.editButton` (for buttons inside table) + * `.switch` (for form toggles) + * `.regularBtn` (for a simple blue button) + * `.tableHeader` (for header section of any table component) + * `.subtleBlueGrey` (for blue Text) + * + * + * GLobal Varibles: + * --light-blue (for light blue contrast) + * --dark-blue (for dark blue contrast) + */ + :root { /* Neutral Colors */ --grey-light: #eaebef; @@ -55,6 +94,7 @@ --black: black; --rating-star-filled: #ff6d75; --rating-star-hover: #ff3d47; + /* Background and Border */ --table-bg: #eaebef; --tablerow-bg: #eff1f7; @@ -63,6 +103,20 @@ --tablerow-bg-color: #ffffff; --row-background: var(--bs-white, var(--bs-white)); --modal-background: rgba(0, 0, 0, 0.7); + --input-field-border: var(--dimp-white); + --input-field-bg: #fff; + --input-field-shadow: var(--black-shadow-color); + --search-button-shadow: #0000001a; + --people-card-header-bg: #eaebef; + --people-card-header-border: #e8e5e5; + --people-role-border: #dee2e6; + --shadow: #d9d9d9; + --placeholder-color: #737373; + --people-card-container-border: #eaebef; + --people-card-container-bg: #fff; + --background-color: #fff; + --dropdown-shadow: #0000004c; + --dropdown-color: #555555; /* Font Sizes */ --font-size-header: 16px; @@ -106,6 +160,7 @@ --primary-border-solid: 1px solid var(--dropdown-border-color); --light-blue: #a8c7fa; --dark-blue: #1778f2; + --remove-button-color: #c8102e; --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* breakpoints */ @@ -280,13 +335,13 @@ .dropdown { background-color: var(--bs-white) !important; + min-width: 150px; border: 1px solid var(--brown-color); color: var(--brown-color) !important; position: relative; display: inline-block; margin-top: 10px; margin-bottom: 10px; - box-shadow: 2.5px 2.5px 2.5px rgba(0, 0, 0, 0.3); } .dropdown:is( @@ -298,9 +353,9 @@ :disabled, :checked ) { - background-color: transparent !important; - border: 1px solid var(--brown-color); - color: var(--brown-color) !important; + box-shadow: 2.5px 2.5px 2.5px var(--dropdown-shadow); + border: 1px solid var(--brown-color) !important; + color: var(--dropdown-color) !important; } .dropdown:is(:focus, :focus-visible) { @@ -314,12 +369,6 @@ color: var(--brown-color) !important; } -/* .dropdown:disabled { - background-color: transparent !important; - border: 1px solid var(--brown-color); - color: var(--brown-color) !important; -} */ - .dropdownItem { background-color: var(--bs-white) !important; color: var(--brown-color) !important; @@ -458,7 +507,11 @@ } .inputField:focus { - box-shadow: 0 0 0 0.25rem var(--light-blue); + border: 0.1px solid var(--input-field-border) !important; + background-color: var(--input-field-bg) !important; + box-shadow: 4px 4px 8px var(--input-field-shadow); + outline: none; + transition: box-shadow 0.2s ease; } .inputFieldModal { @@ -474,8 +527,8 @@ .searchButton { margin-bottom: 10px; - background-color: var(--search-button-bg); - border-color: var(--search-button-bg); + background-color: var(--search-button-bg) !important; + border-color: var(--search-button-bg) !important; position: absolute; z-index: 10; bottom: 0; @@ -483,21 +536,31 @@ display: flex; justify-content: center; align-items: center; + transition: + box-shadow 0.2s ease, + transform 0.2s ease; } .searchButton:hover { - background-color: var(--search-button-hover-bg, var(--light-blue-color)); - border-color: var(--search-button-hover-bg, var(--light-blue-color)); + background-color: var(--search-button-bg) !important; + border-color: var(--search-button-bg) !important; + box-shadow: 0px 4px 10px var(--search-button-shadow); } .searchButton:active { - transform: scale(0.95); - background-color: var(--search-button-hover-bg, #286fe0) !important; - border-color: transparent !important; + background-color: var(--search-button-bg) !important; + border-color: var(--search-button-bg) !important; + transform: scale(0.98); +} + +.searchButton:focus { + outline: none !important; + box-shadow: 0px 4px 10px var(--search-button-shadow); } .addButton { margin-bottom: 10px; + color: var(--brown-color); background-color: var(--light-blue); border-color: var(--grey-bg-color); } @@ -510,8 +573,9 @@ .removeButton { margin-bottom: 10px; background-color: var(--delete-button-bg); - color: var(--delete-button-color); + color: var(--remove-button-color); margin-right: 10px; + --bs-btn-border-color: #dc3545; } .removeButton:is(:hover, :active, :focus) { @@ -2576,7 +2640,12 @@ input[type='radio']:checked + label:hover { color: var(--grey-bg-color-dark); } -.topRadius { +.people_card_header { + background-color: var(--people-card-header-bg); + display: flex; + border: 1px solid var(--people-card-header-border); + padding: 1rem 1.5rem; + margin-top: 1.5rem; border-top-left-radius: 16px; border-top-right-radius: 16px; } @@ -4414,7 +4483,16 @@ button[data-testid='createPostBtn'] { .mainContainer { margin-top: 2rem; width: 100%; - max-width: 800px; + /* max-width: 800px; */ + flex-grow: 3; + max-height: 90vh; + overflow: auto; + padding: 0 1rem; +} + +.mainContainer_people { + margin-top: 2rem; + width: 100%; flex-grow: 3; max-height: 90vh; overflow: auto; @@ -6348,3 +6426,97 @@ button[data-testid='createPostBtn'] { font-weight: bold; color: var(--black-color); } + +/* people card */ +.personImage_peoplecard { + border-radius: 50%; + margin-right: 25px; + max-width: 70px; +} + +.people_card_container { + display: flex; +} + +.display_flex { + display: flex; +} + +.align_center { + align-self: center; +} + +.people_role { + width: 75%; + border: 1px solid var(--people-role-border); + padding-top: 0.5rem; + padding-bottom: 0.5rem; + padding-left: 1rem; + padding-right: 1rem; + border-radius: 0.25rem; +} + +/* People.tsx */ + +.borderRounded8 { + border-radius: 8px; +} + +.bottomRadius { + border-bottom-left-radius: 24px; + border-bottom-right-radius: 24px; +} + +.shadow { + box-shadow: 5px 5px 4px 0px var(--shadow); +} + +.backgroundWhite { + background-color: var(--background-color); +} + +.people_content { + display: flex; + flex-direction: column; + height: fit-content; + min-height: calc(100% - 40px); +} + +.gap { + gap: 20px; +} + +.semiBold { + font-weight: 500; +} + +.placeholderColor::placeholder { + color: var(--placeholder-color); +} + +.people__header { + display: flex; + align-items: center; + justify-content: space-between; + margin-right: 50px; +} + +.people_card_main_container { + display: flex; + flex-direction: column; + border: 1px solid var(--people-card-container-border); + padding: 1rem; + padding-left: 1.5rem; + padding-right: 1.5rem; + margin-top: 0; + gap: var(--spacing-lg, 1.25rem); + border-bottom-left-radius: 24px; + border-bottom-right-radius: 24px; + background-color: var(--people-card-container-bg); +} + +.custom_row_center { + display: flex; + flex-direction: row; + justify-content: center; +} diff --git a/talawa-admin-docs/.nojekyll b/talawa-admin-docs/.nojekyll deleted file mode 100644 index e2ac6616ad..0000000000 --- a/talawa-admin-docs/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/talawa-admin-docs/README.md b/talawa-admin-docs/README.md deleted file mode 100644 index 82dc89754c..0000000000 --- a/talawa-admin-docs/README.md +++ /dev/null @@ -1,52 +0,0 @@ -talawa-admin / [Modules](modules.md) - -# Talawa Admin -💬 Join the community on Slack. The link can be found in the `Talawa` [README.md](https://github.com/PalisadoesFoundation/talawa) file. - -![talawa-logo-lite-200x200](https://github.com/PalisadoesFoundation/talawa-admin/assets/16875803/26291ec5-d3c1-4135-8bc7-80885dff613d) - -[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) -[![GitHub stars](https://img.shields.io/github/stars/PalisadoesFoundation/talawa-admin.svg?style=social&label=Star&maxAge=2592000)](https://github.com/PalisadoesFoundation/talawa-admin) -[![GitHub forks](https://img.shields.io/github/forks/PalisadoesFoundation/talawa-admin.svg?style=social&label=Fork&maxAge=2592000)](https://github.com/PalisadoesFoundation/talawa-admin) -[![codecov](https://codecov.io/gh/PalisadoesFoundation/talawa-admin/branch/develop/graph/badge.svg?token=II0R0RREES)](https://codecov.io/gh/PalisadoesFoundation/talawa-admin) - -Talawa is a modular open source project to manage group activities of both non-profit organizations and businesses. - -Core features include: - -1. Membership management -2. Groups management -3. Event registrations -4. Recurring meetings -5. Facilities registrations - -`talawa` is based on the original `quito` code created by the [Palisadoes Foundation][pfd] as part of its annual Calico Challenge program. Calico provides paid summer internships for Jamaican university students to work on selected open source projects. They are mentored by software professionals and receive stipends based on the completion of predefined milestones. Calico was started in 2015. Visit [The Palisadoes Foundation's website](http://www.palisadoes.org/) for more details on its origin and activities. - -# Table of Contents - -\