From b807df3ee8e2b2cf0f628326e35f35473a5ed627 Mon Sep 17 00:00:00 2001 From: Alex Ant Date: Thu, 22 Jan 2026 18:13:45 +0500 Subject: [PATCH] document names refactoring & context component --- components/boot/.vscode/settings.json | 2 +- .../tests/capital/signGenerationAgreement.ts | 2 +- ...ムびムσコムひセム_ミソムミセミウムミーミシミシ_ムミオミウミクムムびミームミクミク_09abc252.plan.md | 0 .../.claude}/rules/always.mdc | 0 .../.claude}/rules/controller-pagination.mdc | 0 .../.claude}/rules/controller.mdc | 0 .../rules/desktop-sdk-queries-mutations.mdc | 4 +- .../.claude}/rules/desktop.mdc | 0 .../.claude}/rules/docs.mdc | 0 .../.claude}/rules/document-aggregator.mdc | 0 .../rules/double-signed-documents.mdc | 0 .../.claude}/rules/draft.mdc | 0 .../.claude}/rules/entities-names.mdc | 0 .../.claude}/rules/extensions.md | 0 .../.claude}/rules/extensions.mdc | 0 .../.claude}/rules/factory-add-document.mdc | 0 .../.claude}/rules/factory-add-template.mdc | 0 .../.claude}/rules/factory.mdc | 0 .../.claude}/rules/logger-rule.mdc | 0 .../.cursor => context/.claude}/rules/sdk.mdc | 0 .../.claude}/rules/single-signed-document.mdc | 0 .../BLAGOROST-CHAIRMAN-ONBOARDING.md | 0 .../CAPITAL_RELATIONSHIPS_GUIDE.md} | 0 .../CIRCULAR_DEPS_QUICK_FIX.md | 0 .../CONTRACTS_CPP_CAPITAL_GAMIFICATION.md} | 0 ...PP_MARKETPLACE_DISPUTE_ON_OFFER_README.md} | 0 ...TS_CPP_MASTER_APPROVALS_IMPLEMENTATION.md} | 0 .../ARCH.md => context/CONTROLLER_ARCH.md} | 0 .../CONTROLLER_BLOCKCHAIN_SYNC.md} | 0 .../CONTROLLER_DECISIONS_TRACKING_FACTORY.md} | 0 .../CONTROLLER_ENTITY_SYNC_GUIDE.md} | 0 .../CONTROLLER_PARTICIPANT_ARCH.md} | 0 .../CONTROLLER_TIME_TRACKER.md} | 0 .../COOPSTORE_FUTURE_ARCH.md | 0 ..._PROJECT_VOTING_SEGMENTS_WIDGET_README.md} | 0 ...OP_CAPITAL_SEGMENT_VOTES_WIDGET_README.md} | 0 .../DESKTOP_CHAIRMAN_INFO.md} | 0 .../DESKTOP_CHATCOOP_README.md} | 0 .../DESKTOP_POWERUP_TEXTS_SUMMARY.md} | 0 .../DESKTOP_POWERUP_USER_GUIDE.md} | 0 ...TOP_SHARED_HOOKS_HEADER_ACTIONS_README.md} | 0 .../DESKTOP_SHARED_WIDGET_ARCHITECTURE.md} | 0 .../DESKTOP_SHARED_WIDGET_DEVELOPER_GUIDE.md} | 0 ...ESKTOP_SHARED_WIDGET_INTEGRATION_GUIDE.md} | 0 .../DESKTOP_SHARED_WIDGET_README.md} | 0 .../DOCUMENT_SYSTEM_ARCHITECTURE.md | 0 .../src => context}/ENTITY_RESTORE_SERVICE.md | 0 .../EXTENSIONS-ARCHITECTURE.md | 0 .../EXTENSIONS_MIGRATION_GUIDE.md | 0 .../EXTENSIONS_SCHEMA_SYSTEM.md | 0 .../INSTALLATION_SCENARIOS.md | 0 .../{controller => context}/LOG-INFO.md | 0 .../MIGRATIONS_README.md | 0 .../{controller => context}/NOTIFICATIONS.md | 0 .../REGISTRATION_FLOW.md | 0 .../{factory => context}/SEARCH_README.md | 0 .../{controller => context}/STRUCTURE.md | 0 .../WALLET_GATEWAY_SDK_EXAMPLES.md | 0 .../{desktop => context}/WIDGET_DEPLOYMENT.md | 0 .../{desktop => context}/WIDGET_README.md | 0 components/controller/schema.gql | 50 ++- ...onent-generation-agreement-document.dto.ts | 26 +- .../generation-agreement-document.dto.ts | 26 +- ...oject-generation-agreement-document.dto.ts | 26 +- .../services/cooperative-config.service.ts | 6 +- .../capital/application/dto/onboarding.dto.ts | 6 +- .../register-contributor-input.dto.ts | 8 +- .../participation-management.resolver.ts | 36 +- .../services/onboarding-events.service.ts | 2 +- .../services/onboarding.service.ts | 20 +- .../participation-management.service.ts | 24 +- .../participation-management.interactor.ts | 20 +- .../capital/capital-extension.module.ts | 6 +- .../cooptypes/src/cooperative/model/index.ts | 2 +- .../index.ts | 6 +- .../index.ts | 4 +- .../index.ts | 2 +- .../index.ts | 4 +- .../src/cooperative/registry/index.ts | 8 +- .../desktop/.cursor/commands/helloworld.md | 0 .../desktop/.cursor/rules/confirm-dialog.mdc | 90 ---- components/desktop/.cursor/rules/entities.mdc | 253 ------------ .../.cursor/rules/extensions-architecture.mdc | 130 ------ components/desktop/.cursor/rules/features.mdc | 234 ----------- components/desktop/.cursor/rules/pages.mdc | 291 ------------- components/desktop/.cursor/rules/widgets.mdc | 388 ------------------ .../entities/Contributor/model/store.ts | 6 +- .../Contributor/MakeClearance/api/index.ts | 44 +- .../Contributor/MakeClearance/model/index.ts | 44 +- .../RegisterContributor/api/index.ts | 12 +- .../RegisterContributor/model/index.ts | 8 +- .../features/Onboarding/model/composable.ts | 12 +- .../pages/CapitalBase/ui/CapitalBase.vue | 2 +- .../ui/CapitalRegistrationPage.vue | 4 +- .../src/entities/Registrator/model/store.ts | 12 +- .../features/User/CreateUser/model/index.ts | 2 +- .../pages/Registrator/SignUp/PayInitial.vue | 41 +- .../Registrator/SignUp/ReadStatement.vue | 22 +- .../pages/Registrator/SignUp/SelectBranch.vue | 24 +- .../Registrator/SignUp/SelectProgram.vue | 21 +- .../pages/Registrator/SignUp/SetUserData.vue | 34 +- .../Registrator/SignUp/SignStatement.vue | 14 +- .../desktop/tsconfig.vue-tsc.tsbuildinfo | 2 +- components/docs/docs/graphql/index.html | 24 +- components/docs/docs/new/factory/index.md | 4 +- ...greement.ts => 1001.GenerationContract.ts} | 18 +- ...t.ts => 1002.ProjectGenerationContract.ts} | 18 +- ...ts => 1003.ComponentGenerationContract.ts} | 18 +- ...e.ts => 997.GenerationContractTemplate.ts} | 16 +- components/factory/src/Actions/index.ts | 8 +- components/factory/src/Schema/VarsSchema.ts | 4 +- ...greement.ts => 1001.GenerationContract.ts} | 14 +- ...t.ts => 1002.ProjectGenerationContract.ts} | 14 +- ...ts => 1003.ComponentGenerationContract.ts} | 14 +- ...e.ts => 997.GenerationContractTemplate.ts} | 14 +- components/factory/src/Templates/index.ts | 8 +- components/factory/src/Templates/registry.ts | 16 +- components/factory/src/index.ts | 8 +- components/factory/test/utils/index.ts | 2 +- components/factory/tsconfig.tsbuildinfo | 2 +- components/notifications/src/sync/README.md | 54 --- ...=> generateComponentGenerationContract.ts} | 6 +- ...ement.ts => generateGenerationContract.ts} | 6 +- ...s => generateProjectGenerationContract.ts} | 6 +- components/sdk/src/mutations/capital/index.ts | 6 +- .../capital/onboardingStateSelector.ts | 4 +- components/sdk/src/selectors/system/index.ts | 1 + .../system/registrationConfigSelector.ts | 23 +- .../system/registrationProgramSelector.ts | 17 + components/sdk/src/zeus/const.ts | 39 +- components/sdk/src/zeus/index.ts | 155 ++++--- components/sdk/tsconfig.tsbuildinfo | 2 +- 132 files changed, 553 insertions(+), 1948 deletions(-) rename components/{desktop/.cursor => context/.claude}/plans/ミコミセミスムムびムσコムひセム_ミソムミセミウムミーミシミシ_ムミオミウミクムムびミームミクミク_09abc252.plan.md (100%) rename components/{controller/.cursor => context/.claude}/rules/always.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/controller-pagination.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/controller.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/desktop-sdk-queries-mutations.mdc (97%) rename components/{controller/.cursor => context/.claude}/rules/desktop.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/docs.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/document-aggregator.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/double-signed-documents.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/draft.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/entities-names.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/extensions.md (100%) rename components/{controller/.cursor => context/.claude}/rules/extensions.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/factory-add-document.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/factory-add-template.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/factory.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/logger-rule.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/sdk.mdc (100%) rename components/{controller/.cursor => context/.claude}/rules/single-signed-document.mdc (100%) rename components/{controller => context}/BLAGOROST-CHAIRMAN-ONBOARDING.md (100%) rename components/{controller/src/extensions/capital/RELATIONSHIPS_GUIDE.md => context/CAPITAL_RELATIONSHIPS_GUIDE.md} (100%) rename components/{controller => context}/CIRCULAR_DEPS_QUICK_FIX.md (100%) rename components/{contracts/cpp/capital/GAMIFICATION.md => context/CONTRACTS_CPP_CAPITAL_GAMIFICATION.md} (100%) rename components/{contracts/cpp/marketplace/src/dispute_on_offer/README.md => context/CONTRACTS_CPP_MARKETPLACE_DISPUTE_ON_OFFER_README.md} (100%) rename components/{contracts/cpp/lib/MASTER_APPROVALS_IMPLEMENTATION.md => context/CONTRACTS_CPP_MASTER_APPROVALS_IMPLEMENTATION.md} (100%) rename components/{controller/ARCH.md => context/CONTROLLER_ARCH.md} (100%) rename components/{controller/src/BLOCKCHAIN_SYNC.md => context/CONTROLLER_BLOCKCHAIN_SYNC.md} (100%) rename components/{controller/src/domain/decision-tracking/README.md => context/CONTROLLER_DECISIONS_TRACKING_FACTORY.md} (100%) rename components/{controller/src/ENTITY_SYNC_GUIDE.md => context/CONTROLLER_ENTITY_SYNC_GUIDE.md} (100%) rename components/{controller/src/extensions/participant/ARCHITECTURE.md => context/CONTROLLER_PARTICIPANT_ARCH.md} (100%) rename components/{controller/src/extensions/capital/TIME_TRACKER.md => context/CONTROLLER_TIME_TRACKER.md} (100%) rename components/{controller => context}/COOPSTORE_FUTURE_ARCH.md (100%) rename components/{desktop/extensions/capital/widgets/ProjectVotingSegmentsWidget/README.md => context/DESKTOP_CAPITAL_PROJECT_VOTING_SEGMENTS_WIDGET_README.md} (100%) rename components/{desktop/extensions/capital/widgets/SegmentVotesWidget/README.md => context/DESKTOP_CAPITAL_SEGMENT_VOTES_WIDGET_README.md} (100%) rename components/{desktop/extensions/chairman/info.md => context/DESKTOP_CHAIRMAN_INFO.md} (100%) rename components/{desktop/extensions/chatcoop/README.md => context/DESKTOP_CHATCOOP_README.md} (100%) rename components/{desktop/extensions/powerup/POWERUP_TEXTS_SUMMARY.md => context/DESKTOP_POWERUP_TEXTS_SUMMARY.md} (100%) rename components/{desktop/extensions/powerup/USER_GUIDE.md => context/DESKTOP_POWERUP_USER_GUIDE.md} (100%) rename components/{desktop/src/shared/hooks/README_HeaderActions.md => context/DESKTOP_SHARED_HOOKS_HEADER_ACTIONS_README.md} (100%) rename components/{desktop/src/shared/lib/widget/WIDGET_ARCHITECTURE.md => context/DESKTOP_SHARED_WIDGET_ARCHITECTURE.md} (100%) rename components/{desktop/src/shared/lib/widget/DEVELOPER_GUIDE.md => context/DESKTOP_SHARED_WIDGET_DEVELOPER_GUIDE.md} (100%) rename components/{desktop/src/shared/lib/widget/WIDGET_INTEGRATION_GUIDE.md => context/DESKTOP_SHARED_WIDGET_INTEGRATION_GUIDE.md} (100%) rename components/{desktop/src/shared/lib/widget/README.md => context/DESKTOP_SHARED_WIDGET_README.md} (100%) rename components/{controller => context}/DOCUMENT_SYSTEM_ARCHITECTURE.md (100%) rename components/{controller/src => context}/ENTITY_RESTORE_SERVICE.md (100%) rename components/{desktop => context}/EXTENSIONS-ARCHITECTURE.md (100%) rename components/{controller => context}/EXTENSIONS_MIGRATION_GUIDE.md (100%) rename components/{controller => context}/EXTENSIONS_SCHEMA_SYSTEM.md (100%) rename components/{desktop => context}/INSTALLATION_SCENARIOS.md (100%) rename components/{controller => context}/LOG-INFO.md (100%) rename components/{controller => context}/MIGRATIONS_README.md (100%) rename components/{controller => context}/NOTIFICATIONS.md (100%) rename components/{controller => context}/REGISTRATION_FLOW.md (100%) rename components/{factory => context}/SEARCH_README.md (100%) rename components/{controller => context}/STRUCTURE.md (100%) rename components/{sdk => context}/WALLET_GATEWAY_SDK_EXAMPLES.md (100%) rename components/{desktop => context}/WIDGET_DEPLOYMENT.md (100%) rename components/{desktop => context}/WIDGET_README.md (100%) rename components/cooptypes/src/cooperative/registry/{1001.GenerationAgreement => 1001.GenerationContract}/index.ts (83%) rename components/cooptypes/src/cooperative/registry/{1002.ProjectGenerationAgreement => 1002.ProjectGenerationContract}/index.ts (79%) rename components/cooptypes/src/cooperative/registry/{1003.ComponentGenerationAgreement => 1003.ComponentGenerationContract}/index.ts (99%) rename components/cooptypes/src/cooperative/registry/{997.GenerationAgreementTemplate => 997.GenerationContractTemplate}/index.ts (83%) delete mode 100644 components/desktop/.cursor/commands/helloworld.md delete mode 100644 components/desktop/.cursor/rules/confirm-dialog.mdc delete mode 100644 components/desktop/.cursor/rules/entities.mdc delete mode 100644 components/desktop/.cursor/rules/extensions-architecture.mdc delete mode 100644 components/desktop/.cursor/rules/features.mdc delete mode 100644 components/desktop/.cursor/rules/pages.mdc delete mode 100644 components/desktop/.cursor/rules/widgets.mdc rename components/factory/src/Actions/{1001.GenerationAgreement.ts => 1001.GenerationContract.ts} (71%) rename components/factory/src/Actions/{1002.ProjectGenerationAgreement.ts => 1002.ProjectGenerationContract.ts} (73%) rename components/factory/src/Actions/{1003.ComponentGenerationAgreement.ts => 1003.ComponentGenerationContract.ts} (75%) rename components/factory/src/Actions/{997.GenerationAgreementTemplate.ts => 997.GenerationContractTemplate.ts} (62%) rename components/factory/src/Templates/{1001.GenerationAgreement.ts => 1001.GenerationContract.ts} (64%) rename components/factory/src/Templates/{1002.ProjectGenerationAgreement.ts => 1002.ProjectGenerationContract.ts} (73%) rename components/factory/src/Templates/{1003.ComponentGenerationAgreement.ts => 1003.ComponentGenerationContract.ts} (77%) rename components/factory/src/Templates/{997.GenerationAgreementTemplate.ts => 997.GenerationContractTemplate.ts} (55%) delete mode 100644 components/notifications/src/sync/README.md rename components/sdk/src/mutations/capital/{generateComponentGenerationAgreement.ts => generateComponentGenerationContract.ts} (58%) rename components/sdk/src/mutations/capital/{generateGenerationAgreement.ts => generateGenerationContract.ts} (60%) rename components/sdk/src/mutations/capital/{generateProjectGenerationAgreement.ts => generateProjectGenerationContract.ts} (58%) create mode 100644 components/sdk/src/selectors/system/registrationProgramSelector.ts diff --git a/components/boot/.vscode/settings.json b/components/boot/.vscode/settings.json index d89736e702d..1a0bcc8a348 100644 --- a/components/boot/.vscode/settings.json +++ b/components/boot/.vscode/settings.json @@ -1,7 +1,7 @@ { // Enable the ESlint flat config support "prettier.enable": false, - "editor.formatOnSave": true, + "editor.formatOnSave": false, // Auto fix "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" diff --git a/components/boot/src/tests/capital/signGenerationAgreement.ts b/components/boot/src/tests/capital/signGenerationAgreement.ts index 742734c8ba9..bf9a082cee2 100644 --- a/components/boot/src/tests/capital/signGenerationAgreement.ts +++ b/components/boot/src/tests/capital/signGenerationAgreement.ts @@ -3,7 +3,7 @@ import { signAgreement } from '../soviet/signAgreement' import { getCoopProgramWallet, getUserProgramWallet } from '../wallet/walletUtils' import { sourceProgramId, sourceProgramName } from './consts' -export async function signGenerationAgreement( +export async function signGenerationContract( blockchain: any, coopname: string, username: string, diff --git a/components/desktop/.cursor/plans/ミコミセミスムムびムσコムひセム_ミソムミセミウムミーミシミシ_ムミオミウミクムムびミームミクミク_09abc252.plan.md b/components/context/.claude/plans/ミコミセミスムムびムσコムひセム_ミソムミセミウムミーミシミシ_ムミオミウミクムムびミームミクミク_09abc252.plan.md similarity index 100% rename from components/desktop/.cursor/plans/ミコミセミスムムびムσコムひセム_ミソムミセミウムミーミシミシ_ムミオミウミクムムびミームミクミク_09abc252.plan.md rename to components/context/.claude/plans/ミコミセミスムムびムσコムひセム_ミソムミセミウムミーミシミシ_ムミオミウミクムムびミームミクミク_09abc252.plan.md diff --git a/components/controller/.cursor/rules/always.mdc b/components/context/.claude/rules/always.mdc similarity index 100% rename from components/controller/.cursor/rules/always.mdc rename to components/context/.claude/rules/always.mdc diff --git a/components/controller/.cursor/rules/controller-pagination.mdc b/components/context/.claude/rules/controller-pagination.mdc similarity index 100% rename from components/controller/.cursor/rules/controller-pagination.mdc rename to components/context/.claude/rules/controller-pagination.mdc diff --git a/components/controller/.cursor/rules/controller.mdc b/components/context/.claude/rules/controller.mdc similarity index 100% rename from components/controller/.cursor/rules/controller.mdc rename to components/context/.claude/rules/controller.mdc diff --git a/components/controller/.cursor/rules/desktop-sdk-queries-mutations.mdc b/components/context/.claude/rules/desktop-sdk-queries-mutations.mdc similarity index 97% rename from components/controller/.cursor/rules/desktop-sdk-queries-mutations.mdc rename to components/context/.claude/rules/desktop-sdk-queries-mutations.mdc index aec68ffead6..b26acb4635c 100644 --- a/components/controller/.cursor/rules/desktop-sdk-queries-mutations.mdc +++ b/components/context/.claude/rules/desktop-sdk-queries-mutations.mdc @@ -51,8 +51,8 @@ import { client } from 'src/shared/api/client'; import { Mutations } from '@coopenomics/sdk'; async function generateDocument(data: IGenerateDocumentInput): Promise { - const { [Mutations.Capital.GenerateGenerationAgreement.name]: result } = - await client.Mutation(Mutations.Capital.GenerateGenerationAgreement.mutation, { + const { [Mutations.Capital.GenerateGenerationContract.name]: result } = + await client.Mutation(Mutations.Capital.GenerateGenerationContract.mutation, { variables: { data: { coopname: 'coopname', diff --git a/components/controller/.cursor/rules/desktop.mdc b/components/context/.claude/rules/desktop.mdc similarity index 100% rename from components/controller/.cursor/rules/desktop.mdc rename to components/context/.claude/rules/desktop.mdc diff --git a/components/controller/.cursor/rules/docs.mdc b/components/context/.claude/rules/docs.mdc similarity index 100% rename from components/controller/.cursor/rules/docs.mdc rename to components/context/.claude/rules/docs.mdc diff --git a/components/controller/.cursor/rules/document-aggregator.mdc b/components/context/.claude/rules/document-aggregator.mdc similarity index 100% rename from components/controller/.cursor/rules/document-aggregator.mdc rename to components/context/.claude/rules/document-aggregator.mdc diff --git a/components/controller/.cursor/rules/double-signed-documents.mdc b/components/context/.claude/rules/double-signed-documents.mdc similarity index 100% rename from components/controller/.cursor/rules/double-signed-documents.mdc rename to components/context/.claude/rules/double-signed-documents.mdc diff --git a/components/controller/.cursor/rules/draft.mdc b/components/context/.claude/rules/draft.mdc similarity index 100% rename from components/controller/.cursor/rules/draft.mdc rename to components/context/.claude/rules/draft.mdc diff --git a/components/controller/.cursor/rules/entities-names.mdc b/components/context/.claude/rules/entities-names.mdc similarity index 100% rename from components/controller/.cursor/rules/entities-names.mdc rename to components/context/.claude/rules/entities-names.mdc diff --git a/components/controller/.cursor/rules/extensions.md b/components/context/.claude/rules/extensions.md similarity index 100% rename from components/controller/.cursor/rules/extensions.md rename to components/context/.claude/rules/extensions.md diff --git a/components/controller/.cursor/rules/extensions.mdc b/components/context/.claude/rules/extensions.mdc similarity index 100% rename from components/controller/.cursor/rules/extensions.mdc rename to components/context/.claude/rules/extensions.mdc diff --git a/components/controller/.cursor/rules/factory-add-document.mdc b/components/context/.claude/rules/factory-add-document.mdc similarity index 100% rename from components/controller/.cursor/rules/factory-add-document.mdc rename to components/context/.claude/rules/factory-add-document.mdc diff --git a/components/controller/.cursor/rules/factory-add-template.mdc b/components/context/.claude/rules/factory-add-template.mdc similarity index 100% rename from components/controller/.cursor/rules/factory-add-template.mdc rename to components/context/.claude/rules/factory-add-template.mdc diff --git a/components/controller/.cursor/rules/factory.mdc b/components/context/.claude/rules/factory.mdc similarity index 100% rename from components/controller/.cursor/rules/factory.mdc rename to components/context/.claude/rules/factory.mdc diff --git a/components/controller/.cursor/rules/logger-rule.mdc b/components/context/.claude/rules/logger-rule.mdc similarity index 100% rename from components/controller/.cursor/rules/logger-rule.mdc rename to components/context/.claude/rules/logger-rule.mdc diff --git a/components/controller/.cursor/rules/sdk.mdc b/components/context/.claude/rules/sdk.mdc similarity index 100% rename from components/controller/.cursor/rules/sdk.mdc rename to components/context/.claude/rules/sdk.mdc diff --git a/components/controller/.cursor/rules/single-signed-document.mdc b/components/context/.claude/rules/single-signed-document.mdc similarity index 100% rename from components/controller/.cursor/rules/single-signed-document.mdc rename to components/context/.claude/rules/single-signed-document.mdc diff --git a/components/controller/BLAGOROST-CHAIRMAN-ONBOARDING.md b/components/context/BLAGOROST-CHAIRMAN-ONBOARDING.md similarity index 100% rename from components/controller/BLAGOROST-CHAIRMAN-ONBOARDING.md rename to components/context/BLAGOROST-CHAIRMAN-ONBOARDING.md diff --git a/components/controller/src/extensions/capital/RELATIONSHIPS_GUIDE.md b/components/context/CAPITAL_RELATIONSHIPS_GUIDE.md similarity index 100% rename from components/controller/src/extensions/capital/RELATIONSHIPS_GUIDE.md rename to components/context/CAPITAL_RELATIONSHIPS_GUIDE.md diff --git a/components/controller/CIRCULAR_DEPS_QUICK_FIX.md b/components/context/CIRCULAR_DEPS_QUICK_FIX.md similarity index 100% rename from components/controller/CIRCULAR_DEPS_QUICK_FIX.md rename to components/context/CIRCULAR_DEPS_QUICK_FIX.md diff --git a/components/contracts/cpp/capital/GAMIFICATION.md b/components/context/CONTRACTS_CPP_CAPITAL_GAMIFICATION.md similarity index 100% rename from components/contracts/cpp/capital/GAMIFICATION.md rename to components/context/CONTRACTS_CPP_CAPITAL_GAMIFICATION.md diff --git a/components/contracts/cpp/marketplace/src/dispute_on_offer/README.md b/components/context/CONTRACTS_CPP_MARKETPLACE_DISPUTE_ON_OFFER_README.md similarity index 100% rename from components/contracts/cpp/marketplace/src/dispute_on_offer/README.md rename to components/context/CONTRACTS_CPP_MARKETPLACE_DISPUTE_ON_OFFER_README.md diff --git a/components/contracts/cpp/lib/MASTER_APPROVALS_IMPLEMENTATION.md b/components/context/CONTRACTS_CPP_MASTER_APPROVALS_IMPLEMENTATION.md similarity index 100% rename from components/contracts/cpp/lib/MASTER_APPROVALS_IMPLEMENTATION.md rename to components/context/CONTRACTS_CPP_MASTER_APPROVALS_IMPLEMENTATION.md diff --git a/components/controller/ARCH.md b/components/context/CONTROLLER_ARCH.md similarity index 100% rename from components/controller/ARCH.md rename to components/context/CONTROLLER_ARCH.md diff --git a/components/controller/src/BLOCKCHAIN_SYNC.md b/components/context/CONTROLLER_BLOCKCHAIN_SYNC.md similarity index 100% rename from components/controller/src/BLOCKCHAIN_SYNC.md rename to components/context/CONTROLLER_BLOCKCHAIN_SYNC.md diff --git a/components/controller/src/domain/decision-tracking/README.md b/components/context/CONTROLLER_DECISIONS_TRACKING_FACTORY.md similarity index 100% rename from components/controller/src/domain/decision-tracking/README.md rename to components/context/CONTROLLER_DECISIONS_TRACKING_FACTORY.md diff --git a/components/controller/src/ENTITY_SYNC_GUIDE.md b/components/context/CONTROLLER_ENTITY_SYNC_GUIDE.md similarity index 100% rename from components/controller/src/ENTITY_SYNC_GUIDE.md rename to components/context/CONTROLLER_ENTITY_SYNC_GUIDE.md diff --git a/components/controller/src/extensions/participant/ARCHITECTURE.md b/components/context/CONTROLLER_PARTICIPANT_ARCH.md similarity index 100% rename from components/controller/src/extensions/participant/ARCHITECTURE.md rename to components/context/CONTROLLER_PARTICIPANT_ARCH.md diff --git a/components/controller/src/extensions/capital/TIME_TRACKER.md b/components/context/CONTROLLER_TIME_TRACKER.md similarity index 100% rename from components/controller/src/extensions/capital/TIME_TRACKER.md rename to components/context/CONTROLLER_TIME_TRACKER.md diff --git a/components/controller/COOPSTORE_FUTURE_ARCH.md b/components/context/COOPSTORE_FUTURE_ARCH.md similarity index 100% rename from components/controller/COOPSTORE_FUTURE_ARCH.md rename to components/context/COOPSTORE_FUTURE_ARCH.md diff --git a/components/desktop/extensions/capital/widgets/ProjectVotingSegmentsWidget/README.md b/components/context/DESKTOP_CAPITAL_PROJECT_VOTING_SEGMENTS_WIDGET_README.md similarity index 100% rename from components/desktop/extensions/capital/widgets/ProjectVotingSegmentsWidget/README.md rename to components/context/DESKTOP_CAPITAL_PROJECT_VOTING_SEGMENTS_WIDGET_README.md diff --git a/components/desktop/extensions/capital/widgets/SegmentVotesWidget/README.md b/components/context/DESKTOP_CAPITAL_SEGMENT_VOTES_WIDGET_README.md similarity index 100% rename from components/desktop/extensions/capital/widgets/SegmentVotesWidget/README.md rename to components/context/DESKTOP_CAPITAL_SEGMENT_VOTES_WIDGET_README.md diff --git a/components/desktop/extensions/chairman/info.md b/components/context/DESKTOP_CHAIRMAN_INFO.md similarity index 100% rename from components/desktop/extensions/chairman/info.md rename to components/context/DESKTOP_CHAIRMAN_INFO.md diff --git a/components/desktop/extensions/chatcoop/README.md b/components/context/DESKTOP_CHATCOOP_README.md similarity index 100% rename from components/desktop/extensions/chatcoop/README.md rename to components/context/DESKTOP_CHATCOOP_README.md diff --git a/components/desktop/extensions/powerup/POWERUP_TEXTS_SUMMARY.md b/components/context/DESKTOP_POWERUP_TEXTS_SUMMARY.md similarity index 100% rename from components/desktop/extensions/powerup/POWERUP_TEXTS_SUMMARY.md rename to components/context/DESKTOP_POWERUP_TEXTS_SUMMARY.md diff --git a/components/desktop/extensions/powerup/USER_GUIDE.md b/components/context/DESKTOP_POWERUP_USER_GUIDE.md similarity index 100% rename from components/desktop/extensions/powerup/USER_GUIDE.md rename to components/context/DESKTOP_POWERUP_USER_GUIDE.md diff --git a/components/desktop/src/shared/hooks/README_HeaderActions.md b/components/context/DESKTOP_SHARED_HOOKS_HEADER_ACTIONS_README.md similarity index 100% rename from components/desktop/src/shared/hooks/README_HeaderActions.md rename to components/context/DESKTOP_SHARED_HOOKS_HEADER_ACTIONS_README.md diff --git a/components/desktop/src/shared/lib/widget/WIDGET_ARCHITECTURE.md b/components/context/DESKTOP_SHARED_WIDGET_ARCHITECTURE.md similarity index 100% rename from components/desktop/src/shared/lib/widget/WIDGET_ARCHITECTURE.md rename to components/context/DESKTOP_SHARED_WIDGET_ARCHITECTURE.md diff --git a/components/desktop/src/shared/lib/widget/DEVELOPER_GUIDE.md b/components/context/DESKTOP_SHARED_WIDGET_DEVELOPER_GUIDE.md similarity index 100% rename from components/desktop/src/shared/lib/widget/DEVELOPER_GUIDE.md rename to components/context/DESKTOP_SHARED_WIDGET_DEVELOPER_GUIDE.md diff --git a/components/desktop/src/shared/lib/widget/WIDGET_INTEGRATION_GUIDE.md b/components/context/DESKTOP_SHARED_WIDGET_INTEGRATION_GUIDE.md similarity index 100% rename from components/desktop/src/shared/lib/widget/WIDGET_INTEGRATION_GUIDE.md rename to components/context/DESKTOP_SHARED_WIDGET_INTEGRATION_GUIDE.md diff --git a/components/desktop/src/shared/lib/widget/README.md b/components/context/DESKTOP_SHARED_WIDGET_README.md similarity index 100% rename from components/desktop/src/shared/lib/widget/README.md rename to components/context/DESKTOP_SHARED_WIDGET_README.md diff --git a/components/controller/DOCUMENT_SYSTEM_ARCHITECTURE.md b/components/context/DOCUMENT_SYSTEM_ARCHITECTURE.md similarity index 100% rename from components/controller/DOCUMENT_SYSTEM_ARCHITECTURE.md rename to components/context/DOCUMENT_SYSTEM_ARCHITECTURE.md diff --git a/components/controller/src/ENTITY_RESTORE_SERVICE.md b/components/context/ENTITY_RESTORE_SERVICE.md similarity index 100% rename from components/controller/src/ENTITY_RESTORE_SERVICE.md rename to components/context/ENTITY_RESTORE_SERVICE.md diff --git a/components/desktop/EXTENSIONS-ARCHITECTURE.md b/components/context/EXTENSIONS-ARCHITECTURE.md similarity index 100% rename from components/desktop/EXTENSIONS-ARCHITECTURE.md rename to components/context/EXTENSIONS-ARCHITECTURE.md diff --git a/components/controller/EXTENSIONS_MIGRATION_GUIDE.md b/components/context/EXTENSIONS_MIGRATION_GUIDE.md similarity index 100% rename from components/controller/EXTENSIONS_MIGRATION_GUIDE.md rename to components/context/EXTENSIONS_MIGRATION_GUIDE.md diff --git a/components/controller/EXTENSIONS_SCHEMA_SYSTEM.md b/components/context/EXTENSIONS_SCHEMA_SYSTEM.md similarity index 100% rename from components/controller/EXTENSIONS_SCHEMA_SYSTEM.md rename to components/context/EXTENSIONS_SCHEMA_SYSTEM.md diff --git a/components/desktop/INSTALLATION_SCENARIOS.md b/components/context/INSTALLATION_SCENARIOS.md similarity index 100% rename from components/desktop/INSTALLATION_SCENARIOS.md rename to components/context/INSTALLATION_SCENARIOS.md diff --git a/components/controller/LOG-INFO.md b/components/context/LOG-INFO.md similarity index 100% rename from components/controller/LOG-INFO.md rename to components/context/LOG-INFO.md diff --git a/components/controller/MIGRATIONS_README.md b/components/context/MIGRATIONS_README.md similarity index 100% rename from components/controller/MIGRATIONS_README.md rename to components/context/MIGRATIONS_README.md diff --git a/components/controller/NOTIFICATIONS.md b/components/context/NOTIFICATIONS.md similarity index 100% rename from components/controller/NOTIFICATIONS.md rename to components/context/NOTIFICATIONS.md diff --git a/components/controller/REGISTRATION_FLOW.md b/components/context/REGISTRATION_FLOW.md similarity index 100% rename from components/controller/REGISTRATION_FLOW.md rename to components/context/REGISTRATION_FLOW.md diff --git a/components/factory/SEARCH_README.md b/components/context/SEARCH_README.md similarity index 100% rename from components/factory/SEARCH_README.md rename to components/context/SEARCH_README.md diff --git a/components/controller/STRUCTURE.md b/components/context/STRUCTURE.md similarity index 100% rename from components/controller/STRUCTURE.md rename to components/context/STRUCTURE.md diff --git a/components/sdk/WALLET_GATEWAY_SDK_EXAMPLES.md b/components/context/WALLET_GATEWAY_SDK_EXAMPLES.md similarity index 100% rename from components/sdk/WALLET_GATEWAY_SDK_EXAMPLES.md rename to components/context/WALLET_GATEWAY_SDK_EXAMPLES.md diff --git a/components/desktop/WIDGET_DEPLOYMENT.md b/components/context/WIDGET_DEPLOYMENT.md similarity index 100% rename from components/desktop/WIDGET_DEPLOYMENT.md rename to components/context/WIDGET_DEPLOYMENT.md diff --git a/components/desktop/WIDGET_README.md b/components/context/WIDGET_README.md similarity index 100% rename from components/desktop/WIDGET_README.md rename to components/context/WIDGET_README.md diff --git a/components/controller/schema.gql b/components/controller/schema.gql index 9c56c189120..b7f0d45d7c9 100644 --- a/components/controller/schema.gql +++ b/components/controller/schema.gql @@ -31,7 +31,7 @@ type Account { private_account: PrivateAccount """ - ミセミアム諌オミコム ミーミコミコミームσスムひー ミイ ムミクムムひオミシミオ ムτム帯ひー ミソムミセミイミーミケミエミオムミー, ム.ミオ. MONO. ミ厘エミオムム ムムミーミスミクムびム ミソムミクミイミームひスミーム ミクミスムミセムミシミームミクム ミセ ミソミーミケム禍クミコミオ ミコミセミセミソミオムミームひクミイミー, ミコミセムひセムミーム ムミセミエミオムミカミクム ミオミウミセ ミソムミクミイミームひスム巾オ ミエミーミスミスム巾オ. ミュムひク ミエミーミスミスム巾オ ミスミオ ミソムσアミサミクミコムτ紗びム ミイ ミアミサミセミコムミオミケミスミオ ミク ミスミオ ミイム錦ミセミエム肖 ミキミー ミソムミオミエミオミサム ミアミーミキム ミエミーミスミスム錦 ミソムミセミイミーミケミエミオムミー. ミ榧スミク ミクムミソミセミサム糊キムτ紗びム ミエミサム ミキミーミソミセミサミスミオミスミクム ム威ーミアミサミセミスミセミイ ミエミセミコムσシミオミスムひセミイ ミソムミク ミスミーミカミームひクミク ムミセミセムひイミオムびムひイムτ紗禍クム ミコミスミセミソミセミコ ミスミー ミソミサミームびミセムミシミオ. + ミセミアム諌オミコム ミーミコミコミームσスムひー ミイ ムミクムムひオミシミオ ムτム帯ひー ミソムミセミイミーミケミエミオムミー, ム.ミオ. MONO. ミ厘エミオムム ムムミーミスミクムびム ミソムミクミイミームひスミーム ミクミスムミセムミシミームミクム ミセ ミソミーミケム禍クミコミオ ミコミセミセミソミオムミームひクミイミー, ミコミセムひセムミーム ムミセミエミオムミカミクム ミオミウミセ ミソムミクミイミームひスム巾オ ミエミーミスミスム巾オ. ミュムひク ミエミーミスミスム巾オ ミスミオ ミソムσアミサミクミコムτ紗びム ミイ ミアミサミセミコムミオミケミスミオ ミク ミスミオ ミイム錦ミセミエム肖 ミキミー ミソムミオミエミオミサム ミアミーミキム ミエミーミスミスム錦 ミソムミセミイミーミケミエミオムミー. ミ榧スミク ミクムミソミセミサム糊キムτ紗びム ミエミサム ミキミーミソミセミサミスミオミスミクム ム威ーミアミサミセミスミセミイ ミエミセミコムσシミオミスムひセミイ ミソムミク ミスミーミカミームひクミク ムミセミセムひイミオムびムひイムτ紗禍クム ミコミスミセミソミセミコ ミスミー ミソミサミームびミセムミシミオ. """ provider_account: MonoAccount @@ -2291,12 +2291,12 @@ input CapitalLogFilterInput { type CapitalOnboardingState { blagorost_offer_template_done: Boolean! blagorost_provision_done: Boolean! - generation_agreement_template_done: Boolean! + generation_contract_template_done: Boolean! generator_program_template_done: Boolean! onboarding_blagorost_offer_template_hash: String onboarding_blagorost_provision_hash: String onboarding_expire_at: String! - onboarding_generation_agreement_template_hash: String + onboarding_generation_contract_template_hash: String onboarding_generator_program_template_hash: String onboarding_init_at: String! } @@ -2304,7 +2304,7 @@ type CapitalOnboardingState { enum CapitalOnboardingStep { blagorost_offer_template blagorost_program - generation_agreement_template + generation_contract_template generator_program_template } @@ -3581,7 +3581,7 @@ input CompleteVotingInput { project_hash: String! } -input ComponentGenerationAgreementGenerateDocumentInput { +input ComponentGenerationContractGenerateDocumentInput { """ミ斷セミシミオム ミアミサミセミコミー, ミスミー ミコミセムひセムミセミシ ミアム巾サ ムミセミキミエミーミス ミエミセミコムσシミオミスム""" block_num: Int @@ -5536,7 +5536,7 @@ type GeneratedRegistrationDocument { title: String! } -input GenerationAgreementGenerateDocumentInput { +input GenerationContractGenerateDocumentInput { """ミ斷セミシミオム ミアミサミセミコミー, ミスミー ミコミセムひセムミセミシ ミアム巾サ ムミセミキミエミーミス ミエミセミコムσシミオミスム""" block_num: Int @@ -5571,7 +5571,7 @@ input GenerationAgreementGenerateDocumentInput { version: String } -input GenerationAgreementSignedDocumentInput { +input GenerationContractSignedDocumentInput { """ミ・ム采 ムミセミエミオムミカミクミシミセミウミセ ミエミセミコムσシミオミスムひー""" doc_hash: String! @@ -5581,7 +5581,7 @@ input GenerationAgreementSignedDocumentInput { """ ミ慴オムひーミクミスムミセムミシミームミクム ミエミサム ミエミセミコムσシミオミスムひー ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク """ - meta: GenerationAgreementSignedMetaDocumentInput! + meta: GenerationContractSignedMetaDocumentInput! """ミ・ム采 ミシミオムひー-ミエミーミスミスム錦""" meta_hash: String! @@ -5593,7 +5593,7 @@ input GenerationAgreementSignedDocumentInput { version: String! } -input GenerationAgreementSignedMetaDocumentInput { +input GenerationContractSignedMetaDocumentInput { """ミ斷セミシミオム ミアミサミセミコミー, ミスミー ミコミセムひセムミセミシ ミアム巾サ ムミセミキミエミーミス ミエミセミコムσシミオミスム""" block_num: Int! @@ -6551,7 +6551,7 @@ type Mutation { capitalGenerateCapitalizationToMainWalletConvertStatement(data: GenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! """ミ。ミウミオミスミオムミクムミセミイミームび ミエミセミコムσシミオミスム ミエミセミソミセミサミスミオミスミクム ミコ ミソムミクミサミセミカミオミスミクム ミエミサム ミコミセミシミソミセミスミオミスムひー""" - capitalGenerateComponentGenerationAgreement(data: ComponentGenerationAgreementGenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! + capitalGenerateComponentGenerationContract(data: ComponentGenerationContractGenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! """ミ。ミウミオミスミオムミクムミセミイミームび ムミオム威オミスミクミオ ミセ ムミームムミセミエミオ""" capitalGenerateExpenseDecision(data: GenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! @@ -6560,7 +6560,7 @@ type Mutation { capitalGenerateExpenseStatement(data: GenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! """ミ。ミウミオミスミオムミクムミセミイミームび ミウミオミスミオムミームミクミセミスミスミセミオ ムミセミウミサミーム威オミスミクミオ""" - capitalGenerateGenerationAgreement(data: GenerationAgreementGenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! + capitalGenerateGenerationContract(data: GenerationContractGenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! """ミ。ミウミオミスミオムミクムミセミイミームび ミキミーム紹イミサミオミスミクミオ ミセミア ミクミスミイミオムムひクムミセミイミーミスミクミク ミイ ミウミオミスミオムミームミクム""" capitalGenerateGenerationMoneyInvestStatement(data: GenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! @@ -6593,7 +6593,7 @@ type Mutation { capitalGenerateGetLoanStatement(data: GenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! """ミ。ミウミオミスミオムミクムミセミイミームび ミエミセミコムσシミオミスム ミソムミクミサミセミカミオミスミクム ミコ ミエミセミウミセミイミセムム ムτミームムひクム ミエミサム ミソムミセミオミコムひー""" - capitalGenerateProjectGenerationAgreement(data: ProjectGenerationAgreementGenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! + capitalGenerateProjectGenerationContract(data: ProjectGenerationContractGenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! """ミ。ミウミオミスミオムミクムミセミイミームび ミーミコム ミセ ミイミコミサミーミエミオ ムミオミキムσサム袴ひームひセミイ""" capitalGenerateResultContributionAct(data: GenerateDocumentInput!, options: GenerateDocumentOptionsInput): GeneratedDocument! @@ -7872,6 +7872,12 @@ enum ProgramInvestStatus { UNDEFINED } +"""ミ墟サム紗 ミイム巾アムミーミスミスミセミケ ミソムミセミウムミーミシミシム ムミオミウミクムムびミームミクミク""" +enum ProgramKey { + CAPITALIZATION + GENERATION +} + input ProhibitRequestInput { """ミ侑シム ミーミコミコミームσスムひー ミコミセミセミソミオムミームひクミイミー""" coopname: String! @@ -7979,7 +7985,7 @@ input ProjectFreeDecisionSignedMetaDocumentInput { version: String! } -input ProjectGenerationAgreementGenerateDocumentInput { +input ProjectGenerationContractGenerateDocumentInput { """ミ斷セミシミオム ミアミサミセミコミー, ミスミー ミコミセムひセムミセミシ ミアム巾サ ムミセミキミエミーミス ミエミセミコムσシミオミスム""" block_num: Int @@ -8510,7 +8516,7 @@ input RegisterContributorInput { about: String """ミ頒セミコムσシミオミスム ミコミセミスムびミーミコムひー""" - contract: GenerationAgreementSignedDocumentInput! + contract: GenerationContractSignedDocumentInput! """ミ・ム采 ムτミームムひスミクミコミー ミエミサム ミイミオムミクムミクミコミームミクミク ミエミセミコムσシミオミスムひー""" contributor_hash: String! @@ -8529,17 +8535,25 @@ input RegisterContributorInput { } input RegisterParticipantInput { - """ミ侑シム ミコミセミセミソミオムミームひクミイミスミセミウミセ ムτミームムひコミー""" - braname: String - """ ミ渙セミエミソミクムミーミスミスム巾ケ ミエミセミコムσシミオミスム ムミセミウミサミーム威オミスミクム ミソミセ ミコミーミソミクムひーミサミクミキミームミクミク (ミセミソムミクミセミスミーミサム糊スミセ, ムひセミサム糊コミセ ミオムミサミク ムびミオミアムσオムびム) """ blagorost_offer: SignedDigitalDocumentInput + """ミ侑シム ミコミセミセミソミオムミームひクミイミスミセミウミセ ムτミームムひコミー""" + braname: String + + """ + ミ渙セミエミソミクムミーミスミスム巾ケ ミエミセミコムσシミオミスム ミセムミオムムび ミソミセ ミソムミセミウムミーミシミシミオ "ミ寅オミスミオムミームひセム" (ミセミソムミクミセミスミーミサム糊スミセ, ムひセミサム糊コミセ ミエミサム ミソムミセミウムミーミシミシム generation) + """ + generator_offer: SignedDigitalDocumentInput + """ミ渙セミエミソミクムミーミスミスム巾ケ ミエミセミコムσシミオミスム ミソミセミサミクムひクミコミク ミコミセミスムミクミエミオミスムミクミーミサム糊スミセムムひク ミセム ミソミーミケム禍クミコミー""" privacy_agreement: SignedDigitalDocumentInput! + """ミ墟サム紗 ミイム巾アムミーミスミスミセミケ ミソムミセミウムミーミシミシム ムミオミウミクムムびミームミクミク""" + program_key: ProgramKey + """ミ渙セミエミソミクムミーミスミスム巾ケ ミエミセミコムσシミオミスム ミソミセミサミセミカミオミスミクム ミセ ムミクムムミセミイミセミケ ミソミセミエミソミクムミク ミセム ミソミーミケム禍クミコミー""" signature_agreement: SignedDigitalDocumentInput! @@ -10221,4 +10235,4 @@ input WebPushSubscriptionKeysInput { """P256DH ミコミサム紗 ミエミサム ム威クムムミセミイミーミスミクム""" p256dh: String! -} +} \ No newline at end of file diff --git a/components/controller/src/application/document/documents-dto/component-generation-agreement-document.dto.ts b/components/controller/src/application/document/documents-dto/component-generation-agreement-document.dto.ts index 91b51431c06..ce000f852f4 100644 --- a/components/controller/src/application/document/documents-dto/component-generation-agreement-document.dto.ts +++ b/components/controller/src/application/document/documents-dto/component-generation-agreement-document.dto.ts @@ -9,10 +9,10 @@ import { SignedDigitalDocumentInputDTO } from '~/application/document/dto/signed type ExcludeCommonProps = Omit; // ミクミスムひオムムミオミケム ミソミームミーミシミオムびミセミイ ミエミサム ミウミオミスミオムミームミクミク -type action = Cooperative.Registry.ComponentGenerationAgreement.Action; +type action = Cooperative.Registry.ComponentGenerationContract.Action; -@InputType(`BaseComponentGenerationAgreementMetaDocumentInput`) -class BaseComponentGenerationAgreementMetaDocumentInputDTO implements ExcludeCommonProps { +@InputType(`BaseComponentGenerationContractMetaDocumentInput`) +class BaseComponentGenerationContractMetaDocumentInputDTO implements ExcludeCommonProps { @Field({ description: 'ミ・ム采 ミコミセミシミソミセミスミオミスムひー (ミソムミセミオミコムひー)' }) @IsString() @IsNotEmpty() @@ -24,17 +24,17 @@ class BaseComponentGenerationAgreementMetaDocumentInputDTO implements ExcludeCom parent_project_hash!: string; } -@InputType(`ComponentGenerationAgreementGenerateDocumentInput`) -export class ComponentGenerationAgreementGenerateDocumentInputDTO extends IntersectionType( - BaseComponentGenerationAgreementMetaDocumentInputDTO, +@InputType(`ComponentGenerationContractGenerateDocumentInput`) +export class ComponentGenerationContractGenerateDocumentInputDTO extends IntersectionType( + BaseComponentGenerationContractMetaDocumentInputDTO, OmitType(GenerateMetaDocumentInputDTO, ['registry_id'] as const) ) { registry_id!: number; } -@InputType(`ComponentGenerationAgreementSignedMetaDocumentInput`) -export class ComponentGenerationAgreementSignedMetaDocumentInputDTO extends IntersectionType( - BaseComponentGenerationAgreementMetaDocumentInputDTO, +@InputType(`ComponentGenerationContractSignedMetaDocumentInput`) +export class ComponentGenerationContractSignedMetaDocumentInputDTO extends IntersectionType( + BaseComponentGenerationContractMetaDocumentInputDTO, MetaDocumentInputDTO ) { @Field({ description: 'ミ・ム采 ミエミセミソミセミサミスミオミスミクム ミコ ミソムミクミサミセミカミオミスミクム (ミエミサム ミコミセミシミソミセミスミオミスムひー)' }) @@ -70,10 +70,10 @@ export class ComponentGenerationAgreementSignedMetaDocumentInputDTO extends Inte project_id!: string; } -@InputType(`ComponentGenerationAgreementSignedDocumentInput`) -export class ComponentGenerationAgreementSignedDocumentInputDTO extends SignedDigitalDocumentInputDTO { - @Field(() => ComponentGenerationAgreementSignedMetaDocumentInputDTO, { +@InputType(`ComponentGenerationContractSignedDocumentInput`) +export class ComponentGenerationContractSignedDocumentInputDTO extends SignedDigitalDocumentInputDTO { + @Field(() => ComponentGenerationContractSignedMetaDocumentInputDTO, { description: 'ミ慴オムひーミクミスムミセムミシミームミクム ミエミサム ミエミセミコムσシミオミスムひー ミエミセミソミセミサミスミオミスミクム ミコ ミソムミクミサミセミカミオミスミクム ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク ミエミサム ミコミセミシミソミセミスミオミスムひセミイ', }) - public readonly meta!: ComponentGenerationAgreementSignedMetaDocumentInputDTO; + public readonly meta!: ComponentGenerationContractSignedMetaDocumentInputDTO; } diff --git a/components/controller/src/application/document/documents-dto/generation-agreement-document.dto.ts b/components/controller/src/application/document/documents-dto/generation-agreement-document.dto.ts index e160ae5076b..80883664917 100644 --- a/components/controller/src/application/document/documents-dto/generation-agreement-document.dto.ts +++ b/components/controller/src/application/document/documents-dto/generation-agreement-document.dto.ts @@ -9,18 +9,18 @@ import { SignedDigitalDocumentInputDTO } from '~/application/document/dto/signed type ExcludeCommonProps = Omit; // ミクミスムひオムムミオミケム ミソミームミーミシミオムびミセミイ ミエミサム ミウミオミスミオムミームミクミク -type action = Cooperative.Registry.GenerationAgreement.Action; +type action = Cooperative.Registry.GenerationContract.Action; -@InputType(`BaseGenerationAgreementMetaDocumentInput`) -class BaseGenerationAgreementMetaDocumentInputDTO implements ExcludeCommonProps { +@InputType(`BaseGenerationContractMetaDocumentInput`) +class BaseGenerationContractMetaDocumentInputDTO implements ExcludeCommonProps { @Field({ description: 'ミ・ム采 ムτミームムひスミクミコミー ミエミサム ミウミオミスミオムミームミクミク ムミセミウミサミーム威オミスミクム' }) @IsString() contributor_hash!: string; } -@InputType(`GenerationAgreementGenerateDocumentInput`) -export class GenerationAgreementGenerateDocumentInputDTO extends IntersectionType( - BaseGenerationAgreementMetaDocumentInputDTO, +@InputType(`GenerationContractGenerateDocumentInput`) +export class GenerationContractGenerateDocumentInputDTO extends IntersectionType( + BaseGenerationContractMetaDocumentInputDTO, OmitType(GenerateMetaDocumentInputDTO, ['registry_id'] as const) ) { registry_id!: number; @@ -30,15 +30,15 @@ export class GenerationAgreementGenerateDocumentInputDTO extends IntersectionTyp } } -@InputType(`GenerationAgreementSignedMetaDocumentInput`) -export class GenerationAgreementSignedMetaDocumentInputDTO - extends IntersectionType(BaseGenerationAgreementMetaDocumentInputDTO, MetaDocumentInputDTO) +@InputType(`GenerationContractSignedMetaDocumentInput`) +export class GenerationContractSignedMetaDocumentInputDTO + extends IntersectionType(BaseGenerationContractMetaDocumentInputDTO, MetaDocumentInputDTO) implements action {} -@InputType(`GenerationAgreementSignedDocumentInput`) -export class GenerationAgreementSignedDocumentInputDTO extends SignedDigitalDocumentInputDTO { - @Field(() => GenerationAgreementSignedMetaDocumentInputDTO, { +@InputType(`GenerationContractSignedDocumentInput`) +export class GenerationContractSignedDocumentInputDTO extends SignedDigitalDocumentInputDTO { + @Field(() => GenerationContractSignedMetaDocumentInputDTO, { description: 'ミ慴オムひーミクミスムミセムミシミームミクム ミエミサム ミエミセミコムσシミオミスムひー ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク', }) - public readonly meta!: GenerationAgreementSignedMetaDocumentInputDTO; + public readonly meta!: GenerationContractSignedMetaDocumentInputDTO; } diff --git a/components/controller/src/application/document/documents-dto/project-generation-agreement-document.dto.ts b/components/controller/src/application/document/documents-dto/project-generation-agreement-document.dto.ts index 1506b11f187..3bced86a87d 100644 --- a/components/controller/src/application/document/documents-dto/project-generation-agreement-document.dto.ts +++ b/components/controller/src/application/document/documents-dto/project-generation-agreement-document.dto.ts @@ -9,27 +9,27 @@ import { SignedDigitalDocumentInputDTO } from '~/application/document/dto/signed type ExcludeCommonProps = Omit; // ミクミスムひオムムミオミケム ミソミームミーミシミオムびミセミイ ミエミサム ミウミオミスミオムミームミクミク -type action = Cooperative.Registry.ProjectGenerationAgreement.Action; +type action = Cooperative.Registry.ProjectGenerationContract.Action; -@InputType(`BaseProjectGenerationAgreementMetaDocumentInput`) -class BaseProjectGenerationAgreementMetaDocumentInputDTO implements ExcludeCommonProps { +@InputType(`BaseProjectGenerationContractMetaDocumentInput`) +class BaseProjectGenerationContractMetaDocumentInputDTO implements ExcludeCommonProps { @Field({ description: 'ミ・ム采 ミソムミセミオミコムひー' }) @IsString() @IsNotEmpty() project_hash!: string; } -@InputType(`ProjectGenerationAgreementGenerateDocumentInput`) -export class ProjectGenerationAgreementGenerateDocumentInputDTO extends IntersectionType( - BaseProjectGenerationAgreementMetaDocumentInputDTO, +@InputType(`ProjectGenerationContractGenerateDocumentInput`) +export class ProjectGenerationContractGenerateDocumentInputDTO extends IntersectionType( + BaseProjectGenerationContractMetaDocumentInputDTO, OmitType(GenerateMetaDocumentInputDTO, ['registry_id'] as const) ) { registry_id!: number; } -@InputType(`ProjectGenerationAgreementSignedMetaDocumentInput`) -export class ProjectGenerationAgreementSignedMetaDocumentInputDTO extends IntersectionType( - BaseProjectGenerationAgreementMetaDocumentInputDTO, +@InputType(`ProjectGenerationContractSignedMetaDocumentInput`) +export class ProjectGenerationContractSignedMetaDocumentInputDTO extends IntersectionType( + BaseProjectGenerationContractMetaDocumentInputDTO, MetaDocumentInputDTO ) { @Field({ description: 'ミ・ム采 ミソムミクミサミセミカミオミスミクム' }) @@ -53,10 +53,10 @@ export class ProjectGenerationAgreementSignedMetaDocumentInputDTO extends Inters project_id!: string; } -@InputType(`ProjectGenerationAgreementSignedDocumentInput`) -export class ProjectGenerationAgreementSignedDocumentInputDTO extends SignedDigitalDocumentInputDTO { - @Field(() => ProjectGenerationAgreementSignedMetaDocumentInputDTO, { +@InputType(`ProjectGenerationContractSignedDocumentInput`) +export class ProjectGenerationContractSignedDocumentInputDTO extends SignedDigitalDocumentInputDTO { + @Field(() => ProjectGenerationContractSignedMetaDocumentInputDTO, { description: 'ミ慴オムひーミクミスムミセムミシミームミクム ミエミサム ミエミセミコムσシミオミスムひー ミソムミクミサミセミカミオミスミクム ミコ ミエミセミウミセミイミセムム ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク ミエミサム ミソムミセミオミコムひセミイ', }) - public readonly meta!: ProjectGenerationAgreementSignedMetaDocumentInputDTO; + public readonly meta!: ProjectGenerationContractSignedMetaDocumentInputDTO; } diff --git a/components/controller/src/domain/registration/services/cooperative-config.service.ts b/components/controller/src/domain/registration/services/cooperative-config.service.ts index 85f91bdef82..c14303c4e78 100644 --- a/components/controller/src/domain/registration/services/cooperative-config.service.ts +++ b/components/controller/src/domain/registration/services/cooperative-config.service.ts @@ -25,9 +25,9 @@ export class CooperativeConfigService { * ミ渙セミサムτミクムび ミエミセミソミセミサミスミクムひオミサム糊スム巾オ ムミセミウミサミーム威オミスミクム ミソミセ ムσシミセミサムミーミスミクム ミエミサム ミコミセミセミソミオムミームひクミイミー */ getDefaultAdditionalAgreements(coopname: string, accountType: AccountType): AgreementId[] { - if (coopname === 'voskhod' && accountType === AccountType.individual) { - return [AgreementId.BLAGOROST_OFFER]; - } + // if (coopname === 'voskhod' && accountType === AccountType.individual) { + // return [AgreementId.BLAGOROST_OFFER]; + // } return []; } diff --git a/components/controller/src/extensions/capital/application/dto/onboarding.dto.ts b/components/controller/src/extensions/capital/application/dto/onboarding.dto.ts index 6b095059b7f..7ddbe084c09 100644 --- a/components/controller/src/extensions/capital/application/dto/onboarding.dto.ts +++ b/components/controller/src/extensions/capital/application/dto/onboarding.dto.ts @@ -3,7 +3,7 @@ import { IsEnum, IsNotEmpty, IsOptional, IsString, MaxLength } from 'class-valid export enum CapitalOnboardingStepEnum { generator_program_template = 'generator_program_template', - generation_agreement_template = 'generation_agreement_template', + generation_contract_template = 'generation_contract_template', blagorost_program = 'blagorost_program', blagorost_offer_template = 'blagorost_offer_template', } @@ -44,10 +44,10 @@ export class CapitalOnboardingStateDTO { onboarding_generator_program_template_hash?: string | null; @Field(() => Boolean) - generation_agreement_template_done!: boolean; + generation_contract_template_done!: boolean; @Field(() => String, { nullable: true }) - onboarding_generation_agreement_template_hash?: string | null; + onboarding_generation_contract_template_hash?: string | null; @Field(() => Boolean) blagorost_provision_done!: boolean; diff --git a/components/controller/src/extensions/capital/application/dto/participation_management/register-contributor-input.dto.ts b/components/controller/src/extensions/capital/application/dto/participation_management/register-contributor-input.dto.ts index ae1e281f436..1dcb1076061 100644 --- a/components/controller/src/extensions/capital/application/dto/participation_management/register-contributor-input.dto.ts +++ b/components/controller/src/extensions/capital/application/dto/participation_management/register-contributor-input.dto.ts @@ -2,7 +2,7 @@ import { Field, InputType } from '@nestjs/graphql'; import { IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator'; import { Type } from 'class-transformer'; import type { RegisterContributorDomainInput } from '../../../domain/actions/register-contributor-domain-input.interface'; -import { GenerationAgreementSignedDocumentInputDTO } from '~/application/document/documents-dto/generation-agreement-document.dto'; +import { GenerationContractSignedDocumentInputDTO } from '~/application/document/documents-dto/generation-agreement-document.dto'; /** * GraphQL DTO ミエミサム ムミオミウミクムムびミームミクミク ムτミームムひスミクミコミー CAPITAL ミコミセミスムびミーミコムひー @@ -40,7 +40,7 @@ export class RegisterContributorInputDTO implements RegisterContributorDomainInp @Type(() => Number) hours_per_day?: number; - @Field(() => GenerationAgreementSignedDocumentInputDTO, { description: 'ミ頒セミコムσシミオミスム ミコミセミスムびミーミコムひー' }) - @Type(() => GenerationAgreementSignedDocumentInputDTO) - contract!: GenerationAgreementSignedDocumentInputDTO; + @Field(() => GenerationContractSignedDocumentInputDTO, { description: 'ミ頒セミコムσシミオミスム ミコミセミスムびミーミコムひー' }) + @Type(() => GenerationContractSignedDocumentInputDTO) + contract!: GenerationContractSignedDocumentInputDTO; } diff --git a/components/controller/src/extensions/capital/application/resolvers/participation-management.resolver.ts b/components/controller/src/extensions/capital/application/resolvers/participation-management.resolver.ts index c0daada4e54..4b8b471c5db 100644 --- a/components/controller/src/extensions/capital/application/resolvers/participation-management.resolver.ts +++ b/components/controller/src/extensions/capital/application/resolvers/participation-management.resolver.ts @@ -16,9 +16,9 @@ import { GetContributorInputDTO } from '../dto/participation_management/get-cont import { createPaginationResult, PaginationInputDTO, PaginationResult } from '~/application/common/dto/pagination.dto'; import { GeneratedDocumentDTO } from '~/application/document/dto/generated-document.dto'; import { GenerateDocumentOptionsInputDTO } from '~/application/document/dto/generate-document-options-input.dto'; -import { GenerationAgreementGenerateDocumentInputDTO } from '~/application/document/documents-dto/generation-agreement-document.dto'; -import { ProjectGenerationAgreementGenerateDocumentInputDTO } from '~/application/document/documents-dto/project-generation-agreement-document.dto'; -import { ComponentGenerationAgreementGenerateDocumentInputDTO } from '~/application/document/documents-dto/component-generation-agreement-document.dto'; +import { GenerationContractGenerateDocumentInputDTO } from '~/application/document/documents-dto/generation-agreement-document.dto'; +import { ProjectGenerationContractGenerateDocumentInputDTO } from '~/application/document/documents-dto/project-generation-agreement-document.dto'; +import { ComponentGenerationContractGenerateDocumentInputDTO } from '~/application/document/documents-dto/component-generation-agreement-document.dto'; import { GenerateDocumentInputDTO } from '~/application/document/dto/generate-document-input.dto'; /** @@ -155,56 +155,56 @@ export class ParticipationManagementResolver { * ミ慯τひームミクム ミエミサム ミウミオミスミオムミームミクミク ミウミオミスミオムミームミクミセミスミスミセミウミセ ムミセミウミサミーム威オミスミクム */ @Mutation(() => GeneratedDocumentDTO, { - name: 'capitalGenerateGenerationAgreement', + name: 'capitalGenerateGenerationContract', description: 'ミ。ミウミオミスミオムミクムミセミイミームび ミウミオミスミオムミームミクミセミスミスミセミオ ムミセミウミサミーム威オミスミクミオ', }) @Throttle({ default: { limit: 3, ttl: 60000 } }) @UseGuards(GqlJwtAuthGuard, RolesGuard) @AuthRoles(['chairman', 'member']) - async generateGenerationAgreement( - @Args('data', { type: () => GenerationAgreementGenerateDocumentInputDTO }) - data: GenerationAgreementGenerateDocumentInputDTO, + async generateGenerationContract( + @Args('data', { type: () => GenerationContractGenerateDocumentInputDTO }) + data: GenerationContractGenerateDocumentInputDTO, @Args('options', { type: () => GenerateDocumentOptionsInputDTO, nullable: true }) options: GenerateDocumentOptionsInputDTO ): Promise { - return this.participationManagementService.generateGenerationAgreement(data, options); + return this.participationManagementService.generateGenerationContract(data, options); } /** * ミ慯τひームミクム ミエミサム ミウミオミスミオムミームミクミク ミエミセミコムσシミオミスムひー ミソムミクミサミセミカミオミスミクム ミコ ミエミセミウミセミイミセムム ムτミームムひクム ミエミサム ミソムミセミオミコムひー (1002) */ @Mutation(() => GeneratedDocumentDTO, { - name: 'capitalGenerateProjectGenerationAgreement', + name: 'capitalGenerateProjectGenerationContract', description: 'ミ。ミウミオミスミオムミクムミセミイミームび ミエミセミコムσシミオミスム ミソムミクミサミセミカミオミスミクム ミコ ミエミセミウミセミイミセムム ムτミームムひクム ミエミサム ミソムミセミオミコムひー', }) @Throttle({ default: { limit: 3, ttl: 60000 } }) @UseGuards(GqlJwtAuthGuard, RolesGuard) @AuthRoles(['chairman', 'member']) - async generateProjectGenerationAgreement( - @Args('data', { type: () => ProjectGenerationAgreementGenerateDocumentInputDTO }) - data: ProjectGenerationAgreementGenerateDocumentInputDTO, + async generateProjectGenerationContract( + @Args('data', { type: () => ProjectGenerationContractGenerateDocumentInputDTO }) + data: ProjectGenerationContractGenerateDocumentInputDTO, @Args('options', { type: () => GenerateDocumentOptionsInputDTO, nullable: true }) options: GenerateDocumentOptionsInputDTO ): Promise { - return this.participationManagementService.generateProjectGenerationAgreement(data, options); + return this.participationManagementService.generateProjectGenerationContract(data, options); } /** * ミ慯τひームミクム ミエミサム ミウミオミスミオムミームミクミク ミエミセミコムσシミオミスムひー ミエミセミソミセミサミスミオミスミクム ミコ ミソムミクミサミセミカミオミスミクム ミエミサム ミコミセミシミソミセミスミオミスムひー (1003) */ @Mutation(() => GeneratedDocumentDTO, { - name: 'capitalGenerateComponentGenerationAgreement', + name: 'capitalGenerateComponentGenerationContract', description: 'ミ。ミウミオミスミオムミクムミセミイミームび ミエミセミコムσシミオミスム ミエミセミソミセミサミスミオミスミクム ミコ ミソムミクミサミセミカミオミスミクム ミエミサム ミコミセミシミソミセミスミオミスムひー', }) @Throttle({ default: { limit: 3, ttl: 60000 } }) @UseGuards(GqlJwtAuthGuard, RolesGuard) @AuthRoles(['chairman', 'member']) - async generateComponentGenerationAgreement( - @Args('data', { type: () => ComponentGenerationAgreementGenerateDocumentInputDTO }) - data: ComponentGenerationAgreementGenerateDocumentInputDTO, + async generateComponentGenerationContract( + @Args('data', { type: () => ComponentGenerationContractGenerateDocumentInputDTO }) + data: ComponentGenerationContractGenerateDocumentInputDTO, @Args('options', { type: () => GenerateDocumentOptionsInputDTO, nullable: true }) options: GenerateDocumentOptionsInputDTO ): Promise { - return this.participationManagementService.generateComponentGenerationAgreement(data, options); + return this.participationManagementService.generateComponentGenerationContract(data, options); } } diff --git a/components/controller/src/extensions/capital/application/services/onboarding-events.service.ts b/components/controller/src/extensions/capital/application/services/onboarding-events.service.ts index d56fd168a62..28c99edd5ec 100644 --- a/components/controller/src/extensions/capital/application/services/onboarding-events.service.ts +++ b/components/controller/src/extensions/capital/application/services/onboarding-events.service.ts @@ -64,7 +64,7 @@ export class CapitalOnboardingEventsService { private mapStepToFlag(step: string): keyof IConfig | null { const mapping: Record = { generator_program_template: 'onboarding_generator_program_template_done', - generation_agreement_template: 'onboarding_generation_agreement_template_done', + generation_contract_template: 'onboarding_generation_contract_template_done', blagorost_program: 'onboarding_blagorost_provision_done', blagorost_offer_template: 'onboarding_blagorost_offer_template_done', }; diff --git a/components/controller/src/extensions/capital/application/services/onboarding.service.ts b/components/controller/src/extensions/capital/application/services/onboarding.service.ts index ac67ca7a306..069326eb7ec 100644 --- a/components/controller/src/extensions/capital/application/services/onboarding.service.ts +++ b/components/controller/src/extensions/capital/application/services/onboarding.service.ts @@ -16,13 +16,13 @@ import { DecisionEventType } from '~/domain/decision-tracking/interfaces/trackin type OnboardingFlagKey = | 'onboarding_generator_program_template_done' - | 'onboarding_generation_agreement_template_done' + | 'onboarding_generation_contract_template_done' | 'onboarding_blagorost_provision_done' | 'onboarding_blagorost_offer_template_done'; type OnboardingHashKey = | 'onboarding_generator_program_template_hash' - | 'onboarding_generation_agreement_template_hash' + | 'onboarding_generation_contract_template_hash' | 'onboarding_blagorost_provision_hash' | 'onboarding_blagorost_offer_template_hash'; @@ -38,8 +38,8 @@ export class CapitalOnboardingService { switch (step) { case CapitalOnboardingStepEnum.generator_program_template: return 'onboarding_generator_program_template_done'; - case CapitalOnboardingStepEnum.generation_agreement_template: - return 'onboarding_generation_agreement_template_done'; + case CapitalOnboardingStepEnum.generation_contract_template: + return 'onboarding_generation_contract_template_done'; case CapitalOnboardingStepEnum.blagorost_program: return 'onboarding_blagorost_provision_done'; case CapitalOnboardingStepEnum.blagorost_offer_template: @@ -53,8 +53,8 @@ export class CapitalOnboardingService { switch (step) { case CapitalOnboardingStepEnum.generator_program_template: return 'onboarding_generator_program_template_hash'; - case CapitalOnboardingStepEnum.generation_agreement_template: - return 'onboarding_generation_agreement_template_hash'; + case CapitalOnboardingStepEnum.generation_contract_template: + return 'onboarding_generation_contract_template_hash'; case CapitalOnboardingStepEnum.blagorost_program: return 'onboarding_blagorost_provision_hash'; case CapitalOnboardingStepEnum.blagorost_offer_template: @@ -68,8 +68,8 @@ export class CapitalOnboardingService { switch (step) { case CapitalOnboardingStepEnum.generator_program_template: return 'generator_program'; - case CapitalOnboardingStepEnum.generation_agreement_template: - return 'generation_agreement_template'; + case CapitalOnboardingStepEnum.generation_contract_template: + return 'generation_contract_template'; case CapitalOnboardingStepEnum.blagorost_program: return 'blagorost_program'; case CapitalOnboardingStepEnum.blagorost_offer_template: @@ -109,8 +109,8 @@ export class CapitalOnboardingService { return { generator_program_template_done: !!pluginConfig.onboarding_generator_program_template_done, onboarding_generator_program_template_hash: pluginConfig.onboarding_generator_program_template_hash || null, - generation_agreement_template_done: !!pluginConfig.onboarding_generation_agreement_template_done, - onboarding_generation_agreement_template_hash: pluginConfig.onboarding_generation_agreement_template_hash || null, + generation_contract_template_done: !!pluginConfig.onboarding_generation_contract_template_done, + onboarding_generation_contract_template_hash: pluginConfig.onboarding_generation_contract_template_hash || null, blagorost_provision_done: !!pluginConfig.onboarding_blagorost_provision_done, onboarding_blagorost_provision_hash: pluginConfig.onboarding_blagorost_provision_hash || null, blagorost_offer_template_done: !!pluginConfig.onboarding_blagorost_offer_template_done, diff --git a/components/controller/src/extensions/capital/application/services/participation-management.service.ts b/components/controller/src/extensions/capital/application/services/participation-management.service.ts index 659cc7d5081..22a9a9f393a 100644 --- a/components/controller/src/extensions/capital/application/services/participation-management.service.ts +++ b/components/controller/src/extensions/capital/application/services/participation-management.service.ts @@ -17,9 +17,9 @@ import { DocumentInteractor } from '~/application/document/interactors/document. import { ContributorMapperService } from './contributor-mapper.service'; import { ContributorSyncService } from '../syncers/contributor-sync.service'; import { Cooperative } from 'cooptypes'; -import { GenerationAgreementGenerateDocumentInputDTO } from '~/application/document/documents-dto/generation-agreement-document.dto'; -import { ProjectGenerationAgreementGenerateDocumentInputDTO } from '~/application/document/documents-dto/project-generation-agreement-document.dto'; -import { ComponentGenerationAgreementGenerateDocumentInputDTO } from '~/application/document/documents-dto/component-generation-agreement-document.dto'; +import { GenerationContractGenerateDocumentInputDTO } from '~/application/document/documents-dto/generation-agreement-document.dto'; +import { ProjectGenerationContractGenerateDocumentInputDTO } from '~/application/document/documents-dto/project-generation-agreement-document.dto'; +import { ComponentGenerationContractGenerateDocumentInputDTO } from '~/application/document/documents-dto/component-generation-agreement-document.dto'; /** * ミ。ミオムミイミクム ムτミセミイミスム ミソムミクミサミセミカミオミスミクム ミエミサム ムσソムミーミイミサミオミスミクム ムτミームムひクミオミシ ミイ CAPITAL @@ -53,21 +53,21 @@ export class ParticipationManagementService { /** * ミ寅オミスミオムミームミクム ミエミセミコムσシミオミスムひー ミソムミクミサミセミカミオミスミクム ミコ ミエミセミウミセミイミセムム ムτミームムひクム ミエミサム ミソムミセミオミコムひー (1002) */ - async generateProjectGenerationAgreement( - data: ProjectGenerationAgreementGenerateDocumentInputDTO, + async generateProjectGenerationContract( + data: ProjectGenerationContractGenerateDocumentInputDTO, options?: GenerateDocumentOptionsInputDTO ): Promise { - return await this.participationManagementInteractor.generateProjectGenerationAgreement(data, options); + return await this.participationManagementInteractor.generateProjectGenerationContract(data, options); } /** * ミ寅オミスミオムミームミクム ミエミセミコムσシミオミスムひー ミエミセミソミセミサミスミオミスミクム ミコ ミソムミクミサミセミカミオミスミクム ミエミサム ミコミセミシミソミセミスミオミスムひー (1003) */ - async generateComponentGenerationAgreement( - data: ComponentGenerationAgreementGenerateDocumentInputDTO, + async generateComponentGenerationContract( + data: ComponentGenerationContractGenerateDocumentInputDTO, options?: GenerateDocumentOptionsInputDTO ): Promise { - return await this.participationManagementInteractor.generateComponentGenerationAgreement(data, options); + return await this.participationManagementInteractor.generateComponentGenerationContract(data, options); } /** @@ -171,14 +171,14 @@ export class ParticipationManagementService { /** * ミ寅オミスミオムミームミクム ミウミオミスミオムミームミクミセミスミスミセミウミセ ムミセミウミサミーム威オミスミクム */ - async generateGenerationAgreement( - data: GenerationAgreementGenerateDocumentInputDTO, + async generateGenerationContract( + data: GenerationContractGenerateDocumentInputDTO, options: GenerateDocumentOptionsInputDTO ): Promise { const document = await this.documentInteractor.generateDocument({ data: { ...data, - registry_id: Cooperative.Registry.GenerationAgreement.registry_id, + registry_id: Cooperative.Registry.GenerationContract.registry_id, }, options, }); diff --git a/components/controller/src/extensions/capital/application/use-cases/participation-management.interactor.ts b/components/controller/src/extensions/capital/application/use-cases/participation-management.interactor.ts index e39d53b835b..6fc385a918d 100644 --- a/components/controller/src/extensions/capital/application/use-cases/participation-management.interactor.ts +++ b/components/controller/src/extensions/capital/application/use-cases/participation-management.interactor.ts @@ -27,8 +27,8 @@ import type { PaginationInputDomainInterface, PaginationResultDomainInterface, } from '~/domain/common/interfaces/pagination.interface'; -import type { ProjectGenerationAgreementGenerateDocumentInputDTO } from '~/application/document/documents-dto/project-generation-agreement-document.dto'; -import type { ComponentGenerationAgreementGenerateDocumentInputDTO } from '~/application/document/documents-dto/component-generation-agreement-document.dto'; +import type { ProjectGenerationContractGenerateDocumentInputDTO } from '~/application/document/documents-dto/project-generation-agreement-document.dto'; +import type { ComponentGenerationContractGenerateDocumentInputDTO } from '~/application/document/documents-dto/component-generation-agreement-document.dto'; import type { GenerateDocumentOptionsInputDTO } from '~/application/document/dto/generate-document-options-input.dto'; import type { GeneratedDocumentDTO } from '~/application/document/dto/generated-document.dto'; import { DomainToBlockchainUtils } from '~/shared/utils/domain-to-blockchain.utils'; @@ -362,8 +362,8 @@ export class ParticipationManagementInteractor { /** * ミ寅オミスミオムミームミクム ミエミセミコムσシミオミスムひー ミソムミクミサミセミカミオミスミクム ミコ ミエミセミウミセミイミセムム ムτミームムひクム ミエミサム ミソムミセミオミコムひー (1002) */ - async generateProjectGenerationAgreement( - data: ProjectGenerationAgreementGenerateDocumentInputDTO, + async generateProjectGenerationContract( + data: ProjectGenerationContractGenerateDocumentInputDTO, options?: GenerateDocumentOptionsInputDTO ): Promise { // 1. ミ渙セミサムτミーミオミシ ミエミーミスミスム巾オ ムτミームムひスミクミコミー @@ -398,7 +398,7 @@ export class ParticipationManagementInteractor { if (isComponent) { throw new HttpApiError( httpStatus.BAD_REQUEST, - `ミ湲ミセミオミコム ${data.project_hash} ム紹イミサム紹オムびム ミコミセミシミソミセミスミオミスムひセミシ. ミ佯ミソミセミサム糊キムσケムひオ generateComponentGenerationAgreement` + `ミ湲ミセミオミコム ${data.project_hash} ム紹イミサム紹オムびム ミコミセミシミソミセミスミオミスムひセミシ. ミ佯ミソミセミサム糊キムσケムひオ generateComponentGenerationContract` ); } @@ -410,7 +410,7 @@ export class ParticipationManagementInteractor { coopname: data.coopname, username: data.username, lang: data.lang || 'ru', - registry_id: Cooperative.Registry.ProjectGenerationAgreement.registry_id, + registry_id: Cooperative.Registry.ProjectGenerationContract.registry_id, appendix_hash, contributor_hash: contributor.contributor_hash, contributor_created_at: contributor.created_at, @@ -430,8 +430,8 @@ export class ParticipationManagementInteractor { /** * ミ寅オミスミオムミームミクム ミエミセミコムσシミオミスムひー ミエミセミソミセミサミスミオミスミクム ミコ ミソムミクミサミセミカミオミスミクム ミエミサム ミコミセミシミソミセミスミオミスムひー (1003) */ - async generateComponentGenerationAgreement( - data: ComponentGenerationAgreementGenerateDocumentInputDTO, + async generateComponentGenerationContract( + data: ComponentGenerationContractGenerateDocumentInputDTO, options?: GenerateDocumentOptionsInputDTO ): Promise { // 1. ミ渙セミサムτミーミオミシ ミエミーミスミスム巾オ ムτミームムひスミクミコミー @@ -466,7 +466,7 @@ export class ParticipationManagementInteractor { if (!isComponent) { throw new HttpApiError( httpStatus.BAD_REQUEST, - `ミ湲ミセミオミコム ${data.component_hash} ミスミオ ム紹イミサム紹オムびム ミコミセミシミソミセミスミオミスムひセミシ. ミ佯ミソミセミサム糊キムσケムひオ generateProjectGenerationAgreement` + `ミ湲ミセミオミコム ${data.component_hash} ミスミオ ム紹イミサム紹オムびム ミコミセミシミソミセミスミオミスムひセミシ. ミ佯ミソミセミサム糊キムσケムひオ generateProjectGenerationContract` ); } @@ -511,7 +511,7 @@ export class ParticipationManagementInteractor { coopname: data.coopname, username: data.username, lang: data.lang || 'ru', - registry_id: Cooperative.Registry.ComponentGenerationAgreement.registry_id, + registry_id: Cooperative.Registry.ComponentGenerationContract.registry_id, component_appendix_hash, parent_appendix_hash: parentAppendix.appendix_hash, contributor_hash: contributor.contributor_hash, diff --git a/components/controller/src/extensions/capital/capital-extension.module.ts b/components/controller/src/extensions/capital/capital-extension.module.ts index ee736339a43..5cb9349576d 100644 --- a/components/controller/src/extensions/capital/capital-extension.module.ts +++ b/components/controller/src/extensions/capital/capital-extension.module.ts @@ -35,7 +35,7 @@ export const defaultConfig = { energy_gain_coefficient: 1.0, // ミ榧スミアミセムミエミクミスミウ ムミサミーミウミク onboarding_generator_program_template_done: false, - onboarding_generation_agreement_template_done: false, + onboarding_generation_contract_template_done: false, onboarding_blagorost_provision_done: false, onboarding_blagorost_offer_template_done: false, } as const; @@ -159,9 +159,9 @@ export const Schema = z.object({ .boolean() .default(defaultConfig.onboarding_generator_program_template_done) .describe(describeField({ label: 'ミィミーミウ ミソミセミサミセミカミオミスミクム ミセ ミソムミセミウムミーミシミシミオ ミ寅片斷片ミ籍「ミ榧 ミイム巾ソミセミサミスミオミス', visible: false })), - onboarding_generation_agreement_template_done: z + onboarding_generation_contract_template_done: z .boolean() - .default(defaultConfig.onboarding_generation_agreement_template_done) + .default(defaultConfig.onboarding_generation_contract_template_done) .describe(describeField({ label: 'ミィミーミウ ムミセミウミサミーム威オミスミクム ミセ ミウミオミスミオムミームミクミク ミイム巾ソミセミサミスミオミス', visible: false })), onboarding_blagorost_provision_done: z .boolean() diff --git a/components/cooptypes/src/cooperative/model/index.ts b/components/cooptypes/src/cooperative/model/index.ts index 754f6b453f5..765e7923b30 100644 --- a/components/cooptypes/src/cooperative/model/index.ts +++ b/components/cooptypes/src/cooperative/model/index.ts @@ -89,7 +89,7 @@ export interface IVars { protocol_number: string protocol_day_month_year: string } - generation_agreement_template?: { // ミィミーミアミサミセミス ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク + generation_contract_template?: { // ミィミーミアミサミセミス ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク protocol_number: string protocol_day_month_year: string } diff --git a/components/cooptypes/src/cooperative/registry/1001.GenerationAgreement/index.ts b/components/cooptypes/src/cooperative/registry/1001.GenerationContract/index.ts similarity index 83% rename from components/cooptypes/src/cooperative/registry/1001.GenerationAgreement/index.ts rename to components/cooptypes/src/cooperative/registry/1001.GenerationContract/index.ts index fa292e2b7a5..083c0c93861 100644 --- a/components/cooptypes/src/cooperative/registry/1001.GenerationAgreement/index.ts +++ b/components/cooptypes/src/cooperative/registry/1001.GenerationContract/index.ts @@ -23,7 +23,7 @@ export interface Model { export const title = 'ミ頒セミウミセミイミセム ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク' export const description = 'ミ、ミセムミシミー ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク' -export const context = `

{% trans 'approved_by_council_meeting' %}

{% trans 'council_meeting' %}

{{ vars.full_abbr_genitive }} "{{ vars.name }}"

{% trans 'protocol' %} {{ vars.generation_agreement_template.protocol_number }} {% trans 'from_date' %} {{ vars.generation_agreement_template.protocol_day_month_year }}

{% trans 'generation_agreement_template_title' %}

{% trans 'agreement_number' %}{{ short_contributor_hash }}

{{ meta.created_at }}, {{coop.city}}

{{ vars.full_abbr }} {% trans 'in_face_of_chairman' %} {{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}, {% trans 'acting_on_basis_of_charter' %}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'society' %}", {% trans 'and_participant' %} {{ user.full_name_or_short_name }}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'participant' %}", {% trans 'jointly_referred_to_as' %} "{% trans 'parties' %}", {% trans 'have_concluded_this_agreement' %} {% trans 'hereinafter_referred_to_as' %} "{% trans 'agreement' %}" {% trans 'of_the_following' %}:

{% trans 'terms_and_definitions' %}

{% trans 'monetary_funds' %} - {% trans 'rubles_of_russian_federation' %}.

{% trans 'property' %} - {% trans 'property_definition' %}

{% trans 'membership_fee' %} - {% trans 'membership_fee_definition' %}

{% trans 'share_contribution' %} - {% trans 'share_contribution_definition' %}

{% trans 'funds' %} - {% trans 'funds_definition' %}

{% trans 'platform' %} - {% trans 'platform_definition' %}

{% trans 'digital_wallet' %} - {% trans 'digital_wallet_definition' %}

{% trans 'personal_account' %} - {% trans 'personal_account_definition' %}

{% trans 'personal_account_ledger' %} - {% trans 'personal_account_ledger_definition' %}

{% trans 'subject_of_agreement' %}

{% trans 'parties_carry_out' %} {{ coop.short_name }} {% trans 'economic_activity_definition' %}

{% trans 'participant_participates' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}" {% trans 'participant_participates_definition' %}

{% trans 'procedure_for_acceptance_and_transfer_of_property' %}

{% trans 'participant_has_right' %}

{% trans 'share_contribution_transfer_monetary', short_contributor_hash %}

{% trans 'share_contribution_transfer_property' %}

{% trans 'council_rights_to_decide' %}

{% trans 'council_considers_application' %}

{% trans 'upon_council_decision' %}

{% trans 'formation_of_membership_fee' %}

{% trans 'storage_agreement' %}

{% trans 'interest_free_loan_right' %}

{% trans 'procedure_and_conditions_for_return_of_share_contributions' %}

{% trans 'participant_unconditional_right' %}

{% trans 'return_request_procedure' %}

{% trans 'return_according_to_civil_code' %}

{% trans 'return_through_digital_wallet', short_contributor_hash %}

{% trans 'exit_or_exclusion_return' %}

{% trans 'rights_and_obligations_of_parties' %}

{% trans 'participant_has_right_to' %}:

  • {% trans 'right_unlimited_contribution' %}
  • {% trans 'right_offer_any_property' %}
  • {% trans 'right_return_contributions' %}
  • {% trans 'right_receive_material_assistance' %}

{% trans 'participant_obliged_to' %}:

  • {% trans 'obligation_comply_with_agreement' %}
  • {% trans 'obligation_return_loans' %}
  • {% trans 'obligation_confidentiality' %}

{% trans 'society_obliged_to' %}:

  • {% trans 'society_obligation_comply' %}
  • {% trans 'society_obligation_return_contributions' %}
  • {% trans 'society_obligation_return_liquidation' %}

{% trans 'society_has_right_to' %}:

  • {% trans 'society_right_reject_property' %}
  • {% trans 'society_right_return_property' %}

{% trans 'confidentiality' %}

{% trans 'parties_obliged_confidentiality' %}

{% trans 'confidential_information_definition' %}

{% trans 'confidential_information_content' %}

{% trans 'confidentiality_not_applies' %}

{% trans 'receiving_party_obliged' %}

{% trans 'upon_compulsion_notification' %}

{% trans 'no_intellectual_property_rights' %}

{% trans 'materials_remain_property' %}

{% trans 'force_majeure_circumstances' %}

{% trans 'legislation_changes_society_right' %}

{% trans 'legislation_changes_considered_force_majeure' %}

{% trans 'force_majeure_cases_list' %}

{% trans 'force_majeure_notification' %}

{% trans 'final_provisions' %}

{% trans 'agreement_two_copies' %}

{% trans 'agreement_governed_by_laws' %}

{% trans 'invalid_provisions' %}

{% trans 'agreement_enters_into_force' %}

{% trans 'changes_and_amendments' %}

{% trans 'appendices_integral_part' %}

{% trans 'interaction_remotely' %}

{% trans 'upon_exit_agreement_terminates' %}

{% trans 'disputes_resolved_by_negotiation' %}

{% trans 'details_and_signatures_of_parties' %}

{% trans 'society' %}/{{ vars.full_abbr }} "{{ vars.name }}"/:

ミ侑斷 {{ coop.details.inn }}, ミ墟渙 {{ coop.details.kpp }}, ミ榧寅ミ {{ coop.details.ogrn }}

{% trans 'legal_address' %}: {{ coop.full_address }}

{% trans 'contact_phone' %}: {{ coop.phone }}

{% trans 'email' %}: {{ coop.email }}

{% trans 'bank_account' %}: {{ coop.defaultBankAccount.account_number }}

{% trans 'bank_name' %}: {{ coop.defaultBankAccount.bank_name }}

{% trans 'bik' %}: {{ coop.defaultBankAccount.details.bik }}

{% trans 'correspondent_account' %}: {{ coop.defaultBankAccount.details.corr }}

{% trans 'chairman' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}"

{{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}

{% trans 'signed_by_digital_signature' %}

{% trans 'participant' %}:

{{ user.full_name_or_short_name }}

{% trans 'contact_phone' %}: {{ user.phone }}

{% trans 'email' %}: {{ user.email }}

{% trans 'signed_by_digital_signature' %}

` +export const context = `

{% trans 'approved_by_council_meeting' %}

{% trans 'council_meeting' %}

{{ vars.full_abbr_genitive }} "{{ vars.name }}"

{% trans 'protocol' %} {{ vars.generation_contract_template.protocol_number }} {% trans 'from_date' %} {{ vars.generation_contract_template.protocol_day_month_year }}

{% trans 'generation_contract_template_title' %}

{% trans 'agreement_number' %}{{ short_contributor_hash }}

{{ meta.created_at }}, {{coop.city}}

{{ vars.full_abbr }} {% trans 'in_face_of_chairman' %} {{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}, {% trans 'acting_on_basis_of_charter' %}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'society' %}", {% trans 'and_participant' %} {{ user.full_name_or_short_name }}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'participant' %}", {% trans 'jointly_referred_to_as' %} "{% trans 'parties' %}", {% trans 'have_concluded_this_agreement' %} {% trans 'hereinafter_referred_to_as' %} "{% trans 'agreement' %}" {% trans 'of_the_following' %}:

{% trans 'terms_and_definitions' %}

{% trans 'monetary_funds' %} - {% trans 'rubles_of_russian_federation' %}.

{% trans 'property' %} - {% trans 'property_definition' %}

{% trans 'membership_fee' %} - {% trans 'membership_fee_definition' %}

{% trans 'share_contribution' %} - {% trans 'share_contribution_definition' %}

{% trans 'funds' %} - {% trans 'funds_definition' %}

{% trans 'platform' %} - {% trans 'platform_definition' %}

{% trans 'digital_wallet' %} - {% trans 'digital_wallet_definition' %}

{% trans 'personal_account' %} - {% trans 'personal_account_definition' %}

{% trans 'personal_account_ledger' %} - {% trans 'personal_account_ledger_definition' %}

{% trans 'subject_of_agreement' %}

{% trans 'parties_carry_out' %} {{ coop.short_name }} {% trans 'economic_activity_definition' %}

{% trans 'participant_participates' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}" {% trans 'participant_participates_definition' %}

{% trans 'procedure_for_acceptance_and_transfer_of_property' %}

{% trans 'participant_has_right' %}

{% trans 'share_contribution_transfer_monetary', short_contributor_hash %}

{% trans 'share_contribution_transfer_property' %}

{% trans 'council_rights_to_decide' %}

{% trans 'council_considers_application' %}

{% trans 'upon_council_decision' %}

{% trans 'formation_of_membership_fee' %}

{% trans 'storage_agreement' %}

{% trans 'interest_free_loan_right' %}

{% trans 'procedure_and_conditions_for_return_of_share_contributions' %}

{% trans 'participant_unconditional_right' %}

{% trans 'return_request_procedure' %}

{% trans 'return_according_to_civil_code' %}

{% trans 'return_through_digital_wallet', short_contributor_hash %}

{% trans 'exit_or_exclusion_return' %}

{% trans 'rights_and_obligations_of_parties' %}

{% trans 'participant_has_right_to' %}:

  • {% trans 'right_unlimited_contribution' %}
  • {% trans 'right_offer_any_property' %}
  • {% trans 'right_return_contributions' %}
  • {% trans 'right_receive_material_assistance' %}

{% trans 'participant_obliged_to' %}:

  • {% trans 'obligation_comply_with_agreement' %}
  • {% trans 'obligation_return_loans' %}
  • {% trans 'obligation_confidentiality' %}

{% trans 'society_obliged_to' %}:

  • {% trans 'society_obligation_comply' %}
  • {% trans 'society_obligation_return_contributions' %}
  • {% trans 'society_obligation_return_liquidation' %}

{% trans 'society_has_right_to' %}:

  • {% trans 'society_right_reject_property' %}
  • {% trans 'society_right_return_property' %}

{% trans 'confidentiality' %}

{% trans 'parties_obliged_confidentiality' %}

{% trans 'confidential_information_definition' %}

{% trans 'confidential_information_content' %}

{% trans 'confidentiality_not_applies' %}

{% trans 'receiving_party_obliged' %}

{% trans 'upon_compulsion_notification' %}

{% trans 'no_intellectual_property_rights' %}

{% trans 'materials_remain_property' %}

{% trans 'force_majeure_circumstances' %}

{% trans 'legislation_changes_society_right' %}

{% trans 'legislation_changes_considered_force_majeure' %}

{% trans 'force_majeure_cases_list' %}

{% trans 'force_majeure_notification' %}

{% trans 'final_provisions' %}

{% trans 'agreement_two_copies' %}

{% trans 'agreement_governed_by_laws' %}

{% trans 'invalid_provisions' %}

{% trans 'agreement_enters_into_force' %}

{% trans 'changes_and_amendments' %}

{% trans 'appendices_integral_part' %}

{% trans 'interaction_remotely' %}

{% trans 'upon_exit_agreement_terminates' %}

{% trans 'disputes_resolved_by_negotiation' %}

{% trans 'details_and_signatures_of_parties' %}

{% trans 'society' %}/{{ vars.full_abbr }} "{{ vars.name }}"/:

ミ侑斷 {{ coop.details.inn }}, ミ墟渙 {{ coop.details.kpp }}, ミ榧寅ミ {{ coop.details.ogrn }}

{% trans 'legal_address' %}: {{ coop.full_address }}

{% trans 'contact_phone' %}: {{ coop.phone }}

{% trans 'email' %}: {{ coop.email }}

{% trans 'bank_account' %}: {{ coop.defaultBankAccount.account_number }}

{% trans 'bank_name' %}: {{ coop.defaultBankAccount.bank_name }}

{% trans 'bik' %}: {{ coop.defaultBankAccount.details.bik }}

{% trans 'correspondent_account' %}: {{ coop.defaultBankAccount.details.corr }}

{% trans 'chairman' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}"

{{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}

{% trans 'signed_by_digital_signature' %}

{% trans 'participant' %}:

{{ user.full_name_or_short_name }}

{% trans 'contact_phone' %}: {{ user.phone }}

{% trans 'email' %}: {{ user.email }}

{% trans 'signed_by_digital_signature' %}

` export const translations = { ru: { @@ -31,7 +31,7 @@ export const translations = { council_meeting: 'ミキミームミオミエミーミスミクミオミシ ミ。ミセミイミオムひー', protocol: 'ミ湲ミセムひセミコミセミサ 邃', from_date: 'ミセム', - generation_agreement_template_title: 'ミ頒榧寅榧漬榧', + generation_contract_template_title: 'ミ頒榧寅榧漬榧', agreement_number: 'ミセミア ムτミームムひクミク ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク 邃 ミ」ミ・ミ-', in_face_of_chairman: 'ミイ ミサミクムミオ ミ湲ミオミエムミオミエミームひオミサム ミ。ミセミイミオムひー', acting_on_basis_of_charter: 'ミエミオミケムムひイムτ紗禍オミウミセ ミスミー ミセムミスミセミイミーミスミクミク ミ」ムムひーミイミー', @@ -144,7 +144,7 @@ export const exampleData = { }, short_contributor_hash: 'ed3bcfd5b681aa83d', vars: { - generation_agreement_template: { + generation_contract_template: { protocol_number: 'ミ。ミ。-11-04-24', protocol_day_month_year: '11 ミーミソムミオミサム 2024 ミウ.', }, diff --git a/components/cooptypes/src/cooperative/registry/1002.ProjectGenerationAgreement/index.ts b/components/cooptypes/src/cooperative/registry/1002.ProjectGenerationContract/index.ts similarity index 79% rename from components/cooptypes/src/cooperative/registry/1002.ProjectGenerationAgreement/index.ts rename to components/cooptypes/src/cooperative/registry/1002.ProjectGenerationContract/index.ts index 9e870b124cc..e2ee170c0f9 100644 --- a/components/cooptypes/src/cooperative/registry/1002.ProjectGenerationAgreement/index.ts +++ b/components/cooptypes/src/cooperative/registry/1002.ProjectGenerationContract/index.ts @@ -33,7 +33,7 @@ export interface Model { export const title = 'ミ湲ミクミサミセミカミオミスミクミオ ミコ ミエミセミウミセミイミセムム ムτミームムひクム ミイ ミソムミセミオミコムひオ' export const description = 'ミ湲ミクミサミセミカミオミスミクミオ ミコ ミエミセミウミセミイミセムム ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク ミエミサム ミソムミセミオミコムひセミイ' -export const context = `

ミ渙ミ侑嶢榧孟片斷侑 邃 {{ short_appendix_hash }}

ミコ ミ頒セミウミセミイミセムム ミセミア ムτミームムひクミク ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク 邃 ミ」ミ・ミ-{{ short_contributor_hash }}

{{ meta.created_at }}, {{ coop.city }}

{% trans 'parties_intro' %} "{{ vars.name }}" {% trans 'in_face_of_chairman' %} {{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}, {% trans 'acting_on_basis_of_charter' %}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'society' %}", {% trans 'and_participant' %} {{ user.full_name_or_short_name }}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'participant' %}", {% trans 'jointly_referred_to_as' %} "{% trans 'parties' %}", {% trans 'have_concluded_this_appendix' %} {% trans 'hereinafter_referred_to_as' %} "{% trans 'appendix' %}" {% trans 'to_agreement' %} ミ」ミ・ミ-{{ short_contributor_hash }} {% trans 'from_date' %} {{ contributor_created_at }} {% trans 'of_the_following' %}:

{% trans 'according_to_regulations' %} "{{ vars.generation_agreement_template.protocol_number }}" {% trans 'from_date' %} {{ vars.generation_agreement_template.protocol_day_month_year }}), {% trans 'participant_commits_project' %} "{{ project_name }}" (邃本{ project_id }}).

{% trans 'details_and_signatures_of_parties' %}

{% trans 'society' %}/{{ vars.full_abbr }} "{{ vars.name }}"/:

ミ侑斷 {{ coop.details.inn }}, ミ墟渙 {{ coop.details.kpp }}, ミ榧寅ミ {{ coop.details.ogrn }}

{% trans 'legal_address' %}: {{ coop.full_address }}

{% trans 'contact_phone' %}: {{ coop.phone }}

{% trans 'email' %}: {{ coop.email }}

{% trans 'bank_account' %}: {{ coop.defaultBankAccount.account_number }}

{% trans 'bank_name' %}: {{ coop.defaultBankAccount.bank_name }}

{% trans 'bik' %}: {{ coop.defaultBankAccount.details.bik }}

{% trans 'correspondent_account' %}: {{ coop.defaultBankAccount.details.corr }}

{% trans 'chairman' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}"

{{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}

{% trans 'signed_by_digital_signature' %}

{% trans 'participant' %}:

{{ user.full_name_or_short_name }}

{% trans 'contact_phone' %}: {{ user.phone }}

{% trans 'email' %}: {{ user.email }}

{% trans 'signed_by_digital_signature' %}

` +export const context = `

ミ渙ミ侑嶢榧孟片斷侑 邃 {{ short_appendix_hash }}

ミコ ミ頒セミウミセミイミセムム ミセミア ムτミームムひクミク ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク 邃 ミ」ミ・ミ-{{ short_contributor_hash }}

{{ meta.created_at }}, {{ coop.city }}

{% trans 'parties_intro' %} "{{ vars.name }}" {% trans 'in_face_of_chairman' %} {{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}, {% trans 'acting_on_basis_of_charter' %}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'society' %}", {% trans 'and_participant' %} {{ user.full_name_or_short_name }}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'participant' %}", {% trans 'jointly_referred_to_as' %} "{% trans 'parties' %}", {% trans 'have_concluded_this_appendix' %} {% trans 'hereinafter_referred_to_as' %} "{% trans 'appendix' %}" {% trans 'to_agreement' %} ミ」ミ・ミ-{{ short_contributor_hash }} {% trans 'from_date' %} {{ contributor_created_at }} {% trans 'of_the_following' %}:

{% trans 'according_to_regulations' %} "{{ vars.generation_contract_template.protocol_number }}" {% trans 'from_date' %} {{ vars.generation_contract_template.protocol_day_month_year }}), {% trans 'participant_commits_project' %} "{{ project_name }}" (邃本{ project_id }}).

{% trans 'details_and_signatures_of_parties' %}

{% trans 'society' %}/{{ vars.full_abbr }} "{{ vars.name }}"/:

ミ侑斷 {{ coop.details.inn }}, ミ墟渙 {{ coop.details.kpp }}, ミ榧寅ミ {{ coop.details.ogrn }}

{% trans 'legal_address' %}: {{ coop.full_address }}

{% trans 'contact_phone' %}: {{ coop.phone }}

{% trans 'email' %}: {{ coop.email }}

{% trans 'bank_account' %}: {{ coop.defaultBankAccount.account_number }}

{% trans 'bank_name' %}: {{ coop.defaultBankAccount.bank_name }}

{% trans 'bik' %}: {{ coop.defaultBankAccount.details.bik }}

{% trans 'correspondent_account' %}: {{ coop.defaultBankAccount.details.corr }}

{% trans 'chairman' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}"

{{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}

{% trans 'signed_by_digital_signature' %}

{% trans 'participant' %}:

{{ user.full_name_or_short_name }}

{% trans 'contact_phone' %}: {{ user.phone }}

{% trans 'email' %}: {{ user.email }}

{% trans 'signed_by_digital_signature' %}

` export const translations = { ru: { @@ -78,7 +78,7 @@ export const exampleData = { project_name: 'ミ湲ミセミオミコム ムミクムムミセミイミセミケ ミソミサミームびミセムミシム', project_id: 'B2C3D4E5F6789ABC', vars: { - generation_agreement_template: { + generation_contract_template: { protocol_number: 'ミ。ミ。-11-04-24', protocol_day_month_year: '11 ミーミソムミオミサム 2024 ミウ.', }, diff --git a/components/cooptypes/src/cooperative/registry/1003.ComponentGenerationAgreement/index.ts b/components/cooptypes/src/cooperative/registry/1003.ComponentGenerationContract/index.ts similarity index 99% rename from components/cooptypes/src/cooperative/registry/1003.ComponentGenerationAgreement/index.ts rename to components/cooptypes/src/cooperative/registry/1003.ComponentGenerationContract/index.ts index c5d009c1ee4..20412f39e89 100644 --- a/components/cooptypes/src/cooperative/registry/1003.ComponentGenerationAgreement/index.ts +++ b/components/cooptypes/src/cooperative/registry/1003.ComponentGenerationContract/index.ts @@ -92,7 +92,7 @@ export const exampleData = { project_name: 'ミ湲ミセミオミコム ムミクムムミセミイミセミケ ミソミサミームびミセムミシム', project_id: 'B2C3D4E5F6789ABC', vars: { - generation_agreement_template: { + generation_contract_template: { protocol_number: 'ミ。ミ。-11-04-24', protocol_day_month_year: '11 ミーミソムミオミサム 2024 ミウ.', }, diff --git a/components/cooptypes/src/cooperative/registry/997.GenerationAgreementTemplate/index.ts b/components/cooptypes/src/cooperative/registry/997.GenerationContractTemplate/index.ts similarity index 83% rename from components/cooptypes/src/cooperative/registry/997.GenerationAgreementTemplate/index.ts rename to components/cooptypes/src/cooperative/registry/997.GenerationContractTemplate/index.ts index ab525b7d897..b85faaadd3c 100644 --- a/components/cooptypes/src/cooperative/registry/997.GenerationAgreementTemplate/index.ts +++ b/components/cooptypes/src/cooperative/registry/997.GenerationContractTemplate/index.ts @@ -20,11 +20,11 @@ export interface Model { export const title = 'ミィミーミアミサミセミス ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク' export const description = 'ミィミーミアミサミセミス ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク ミエミサム ムτひイミオムミカミエミオミスミクム ミ。ミセミイミオムひセミシ' -export const context = `

{% trans 'generation_agreement_title' %}

{% trans 'agreement_number' %}__________________

__________________, {{coop.city}}

{{ vars.full_abbr }} {% trans 'in_face_of_chairman' %} {{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}, {% trans 'acting_on_basis_of_charter' %}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'society' %}", {% trans 'and_participant' %} __________________________, {% trans 'hereinafter_referred_to_as' %} "{% trans 'participant' %}", {% trans 'jointly_referred_to_as' %} "{% trans 'parties' %}", {% trans 'have_concluded_this_agreement' %} {% trans 'hereinafter_referred_to_as' %} "{% trans 'agreement' %}" {% trans 'of_the_following' %}:

{% trans 'terms_and_definitions' %}

{% trans 'monetary_funds' %} - {% trans 'rubles_of_russian_federation' %}.

{% trans 'property' %} - {% trans 'property_definition' %}

{% trans 'membership_fee' %} - {% trans 'membership_fee_definition' %}

{% trans 'share_contribution' %} - {% trans 'share_contribution_definition' %}

{% trans 'funds' %} - {% trans 'funds_definition' %}

{% trans 'platform' %} - {% trans 'platform_definition' %}

{% trans 'digital_wallet' %} - {% trans 'digital_wallet_definition' %}

{% trans 'personal_account' %} - {% trans 'personal_account_definition' %}

{% trans 'personal_account_ledger' %} - {% trans 'personal_account_ledger_definition' %}

{% trans 'subject_of_agreement' %}

{% trans 'parties_carry_out' %} {{ coop.short_name }} {% trans 'economic_activity_definition' %}

{% trans 'participant_participates' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}" {% trans 'participant_participates_definition' %}

{% trans 'procedure_for_acceptance_and_transfer_of_property' %}

{% trans 'participant_has_right' %}

{% trans 'share_contribution_transfer_monetary', '__________________' %}

{% trans 'share_contribution_transfer_property' %}

{% trans 'council_rights_to_decide' %}

{% trans 'council_considers_application' %}

{% trans 'upon_council_decision' %}

{% trans 'formation_of_membership_fee' %}

{% trans 'storage_agreement' %}

{% trans 'interest_free_loan_right' %}

{% trans 'procedure_and_conditions_for_return_of_share_contributions' %}

{% trans 'participant_unconditional_right' %}

{% trans 'return_request_procedure' %}

{% trans 'return_according_to_civil_code' %}

{% trans 'return_through_digital_wallet', '__________________' %}

{% trans 'exit_or_exclusion_return' %}

{% trans 'rights_and_obligations_of_parties' %}

{% trans 'participant_has_right_to' %}:

  • {% trans 'right_unlimited_contribution' %}
  • {% trans 'right_offer_any_property' %}
  • {% trans 'right_return_contributions' %}
  • {% trans 'right_receive_material_assistance' %}

{% trans 'participant_obliged_to' %}:

  • {% trans 'obligation_comply_with_agreement' %}
  • {% trans 'obligation_return_loans' %}
  • {% trans 'obligation_confidentiality' %}

{% trans 'society_obliged_to' %}:

  • {% trans 'society_obligation_comply' %}
  • {% trans 'society_obligation_return_contributions' %}
  • {% trans 'society_obligation_return_liquidation' %}

{% trans 'society_has_right_to' %}:

  • {% trans 'society_right_reject_property' %}
  • {% trans 'society_right_return_property' %}

{% trans 'confidentiality' %}

{% trans 'parties_obliged_confidentiality' %}

{% trans 'confidential_information_definition' %}

{% trans 'confidential_information_content' %}

{% trans 'confidentiality_not_applies' %}

{% trans 'receiving_party_obliged' %}

{% trans 'upon_compulsion_notification' %}

{% trans 'no_intellectual_property_rights' %}

{% trans 'materials_remain_property' %}

{% trans 'force_majeure_circumstances' %}

{% trans 'legislation_changes_society_right' %}

{% trans 'legislation_changes_considered_force_majeure' %}

{% trans 'force_majeure_cases_list' %}

{% trans 'force_majeure_notification' %}

{% trans 'final_provisions' %}

{% trans 'agreement_two_copies' %}

{% trans 'agreement_governed_by_laws' %}

{% trans 'invalid_provisions' %}

{% trans 'agreement_enters_into_force' %}

{% trans 'changes_and_amendments' %}

{% trans 'appendices_integral_part' %}

{% trans 'interaction_remotely' %}

{% trans 'upon_exit_agreement_terminates' %}

{% trans 'disputes_resolved_by_negotiation' %}

{% trans 'details_and_signatures_of_parties' %}

{% trans 'society' %}/{{ vars.full_abbr }} "{{ vars.name }}"/:

ミ侑斷 {{ coop.details.inn }}, ミ墟渙 {{ coop.details.kpp }}, ミ榧寅ミ {{ coop.details.ogrn }}

{% trans 'legal_address' %}: {{ coop.full_address }}

{% trans 'contact_phone' %}: {{ coop.phone }}

{% trans 'email' %}: {{ coop.email }}

{% trans 'bank_account' %}: {{ coop.defaultBankAccount.account_number }}

{% trans 'bank_name' %}: {{ coop.defaultBankAccount.bank_name }}

{% trans 'bik' %}: {{ coop.defaultBankAccount.details.bik }}

{% trans 'correspondent_account' %}: {{ coop.defaultBankAccount.details.corr }}

{% trans 'chairman' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}"

{{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}

{% trans 'signed_by_digital_signature' %}

{% trans 'participant' %}:

__________________________

{% trans 'contact_phone' %}: __________________________

{% trans 'email' %}: __________________________

__________________________

{% trans 'signed_by_digital_signature' %}

` +export const context = `

{% trans 'generation_contract_title' %}

{% trans 'agreement_number' %}__________________

__________________, {{coop.city}}

{{ vars.full_abbr }} {% trans 'in_face_of_chairman' %} {{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}, {% trans 'acting_on_basis_of_charter' %}, {% trans 'hereinafter_referred_to_as' %} "{% trans 'society' %}", {% trans 'and_participant' %} __________________________, {% trans 'hereinafter_referred_to_as' %} "{% trans 'participant' %}", {% trans 'jointly_referred_to_as' %} "{% trans 'parties' %}", {% trans 'have_concluded_this_agreement' %} {% trans 'hereinafter_referred_to_as' %} "{% trans 'agreement' %}" {% trans 'of_the_following' %}:

{% trans 'terms_and_definitions' %}

{% trans 'monetary_funds' %} - {% trans 'rubles_of_russian_federation' %}.

{% trans 'property' %} - {% trans 'property_definition' %}

{% trans 'membership_fee' %} - {% trans 'membership_fee_definition' %}

{% trans 'share_contribution' %} - {% trans 'share_contribution_definition' %}

{% trans 'funds' %} - {% trans 'funds_definition' %}

{% trans 'platform' %} - {% trans 'platform_definition' %}

{% trans 'digital_wallet' %} - {% trans 'digital_wallet_definition' %}

{% trans 'personal_account' %} - {% trans 'personal_account_definition' %}

{% trans 'personal_account_ledger' %} - {% trans 'personal_account_ledger_definition' %}

{% trans 'subject_of_agreement' %}

{% trans 'parties_carry_out' %} {{ coop.short_name }} {% trans 'economic_activity_definition' %}

{% trans 'participant_participates' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}" {% trans 'participant_participates_definition' %}

{% trans 'procedure_for_acceptance_and_transfer_of_property' %}

{% trans 'participant_has_right' %}

{% trans 'share_contribution_transfer_monetary', '__________________' %}

{% trans 'share_contribution_transfer_property' %}

{% trans 'council_rights_to_decide' %}

{% trans 'council_considers_application' %}

{% trans 'upon_council_decision' %}

{% trans 'formation_of_membership_fee' %}

{% trans 'storage_agreement' %}

{% trans 'interest_free_loan_right' %}

{% trans 'procedure_and_conditions_for_return_of_share_contributions' %}

{% trans 'participant_unconditional_right' %}

{% trans 'return_request_procedure' %}

{% trans 'return_according_to_civil_code' %}

{% trans 'return_through_digital_wallet', '__________________' %}

{% trans 'exit_or_exclusion_return' %}

{% trans 'rights_and_obligations_of_parties' %}

{% trans 'participant_has_right_to' %}:

  • {% trans 'right_unlimited_contribution' %}
  • {% trans 'right_offer_any_property' %}
  • {% trans 'right_return_contributions' %}
  • {% trans 'right_receive_material_assistance' %}

{% trans 'participant_obliged_to' %}:

  • {% trans 'obligation_comply_with_agreement' %}
  • {% trans 'obligation_return_loans' %}
  • {% trans 'obligation_confidentiality' %}

{% trans 'society_obliged_to' %}:

  • {% trans 'society_obligation_comply' %}
  • {% trans 'society_obligation_return_contributions' %}
  • {% trans 'society_obligation_return_liquidation' %}

{% trans 'society_has_right_to' %}:

  • {% trans 'society_right_reject_property' %}
  • {% trans 'society_right_return_property' %}

{% trans 'confidentiality' %}

{% trans 'parties_obliged_confidentiality' %}

{% trans 'confidential_information_definition' %}

{% trans 'confidential_information_content' %}

{% trans 'confidentiality_not_applies' %}

{% trans 'receiving_party_obliged' %}

{% trans 'upon_compulsion_notification' %}

{% trans 'no_intellectual_property_rights' %}

{% trans 'materials_remain_property' %}

{% trans 'force_majeure_circumstances' %}

{% trans 'legislation_changes_society_right' %}

{% trans 'legislation_changes_considered_force_majeure' %}

{% trans 'force_majeure_cases_list' %}

{% trans 'force_majeure_notification' %}

{% trans 'final_provisions' %}

{% trans 'agreement_two_copies' %}

{% trans 'agreement_governed_by_laws' %}

{% trans 'invalid_provisions' %}

{% trans 'agreement_enters_into_force' %}

{% trans 'changes_and_amendments' %}

{% trans 'appendices_integral_part' %}

{% trans 'interaction_remotely' %}

{% trans 'upon_exit_agreement_terminates' %}

{% trans 'disputes_resolved_by_negotiation' %}

{% trans 'details_and_signatures_of_parties' %}

{% trans 'society' %}/{{ vars.full_abbr }} "{{ vars.name }}"/:

ミ侑斷 {{ coop.details.inn }}, ミ墟渙 {{ coop.details.kpp }}, ミ榧寅ミ {{ coop.details.ogrn }}

{% trans 'legal_address' %}: {{ coop.full_address }}

{% trans 'contact_phone' %}: {{ coop.phone }}

{% trans 'email' %}: {{ coop.email }}

{% trans 'bank_account' %}: {{ coop.defaultBankAccount.account_number }}

{% trans 'bank_name' %}: {{ coop.defaultBankAccount.bank_name }}

{% trans 'bik' %}: {{ coop.defaultBankAccount.details.bik }}

{% trans 'correspondent_account' %}: {{ coop.defaultBankAccount.details.corr }}

{% trans 'chairman' %} {{ vars.full_abbr_genitive }} "{{ vars.name }}"

{{ coop.chairman.last_name }} {{ coop.chairman.first_name }} {{ coop.chairman.middle_name }}

{% trans 'signed_by_digital_signature' %}

{% trans 'participant' %}:

__________________________

{% trans 'contact_phone' %}: __________________________

{% trans 'email' %}: __________________________

__________________________

{% trans 'signed_by_digital_signature' %}

` export const translations = { ru: { - generation_agreement_title: 'ミ頒榧寅榧漬榧', + generation_contract_title: 'ミ頒榧寅榧漬榧', agreement_number: 'ミセミア ムτミームムひクミク ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク 邃 ミ」ミ・ミ-', in_face_of_chairman: 'ミイ ミサミクムミオ ミ湲ミオミエムミオミエミームひオミサム ミ。ミセミイミオムひー', acting_on_basis_of_charter: 'ミエミオミケムムひイムτ紗禍オミウミセ ミスミー ミセムミスミセミイミーミスミクミク ミ」ムムひーミイミー', diff --git a/components/cooptypes/src/cooperative/registry/index.ts b/components/cooptypes/src/cooperative/registry/index.ts index 08360ee097a..7e34623f0f2 100644 --- a/components/cooptypes/src/cooperative/registry/index.ts +++ b/components/cooptypes/src/cooperative/registry/index.ts @@ -29,10 +29,10 @@ export * as GeneratorOffer from './996.GeneratorOffer' export * as BlagorostOffer from './1000.BlagorostOffer' export * as BlagorostProgramTemplate from './998.BlagorostProgramTemplate' export * as BlagorostOfferTemplate from './999.BlagorostOfferTemplate' -export * as GenerationAgreementTemplate from './997.GenerationAgreementTemplate' -export * as GenerationAgreement from './1001.GenerationAgreement' -export * as ProjectGenerationAgreement from './1002.ProjectGenerationAgreement' -export * as ComponentGenerationAgreement from './1003.ComponentGenerationAgreement' +export * as GenerationContractTemplate from './997.GenerationContractTemplate' +export * as GenerationContract from './1001.GenerationContract' +export * as ProjectGenerationContract from './1002.ProjectGenerationContract' +export * as ComponentGenerationContract from './1003.ComponentGenerationContract' export * as InitProjectStatement from './1005.InitProjectStatement' export * as InitProjectDecision from './1006.InitProjectDecision' diff --git a/components/desktop/.cursor/commands/helloworld.md b/components/desktop/.cursor/commands/helloworld.md deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/components/desktop/.cursor/rules/confirm-dialog.mdc b/components/desktop/.cursor/rules/confirm-dialog.mdc deleted file mode 100644 index 284c7163fae..00000000000 --- a/components/desktop/.cursor/rules/confirm-dialog.mdc +++ /dev/null @@ -1,90 +0,0 @@ ---- -description: ミ湲ミーミイミクミサミセ ムミオミーミサミクミキミームミクミク ミエミクミーミサミセミウミセミイ ミソミセミエムひイミオムミカミエミオミスミクム ミエミサム ミエミオミケムムひイミクミケ -alwaysApply: false ---- -## ミ湲ミーミイミクミサミセ ムミオミーミサミクミキミームミクミク ミエミクミーミサミセミウミセミイ ミソミセミエムひイミオムミカミエミオミスミクム - -### ミ湲ミクミスムミクミソ -ミ頒クミーミサミセミウミク ミソミセミエムひイミオムミカミエミオミスミクム ミエミセミサミカミスム ムミオミーミサミクミキミセミイム巾イミームび袴ム ミイ UI ミコミセミシミソミセミスミオミスムひーム ミコミスミセミソミセミコ, ミー ミスミオ ミイ composables ムムσスミコムミクミケ ミシミセミエミオミサミオミケ. Composable ミセムひイミオムミーミオム ムひセミサム糊コミセ ミキミー ミアミクミキミスミオム-ミサミセミウミクミコム ミイム巾ソミセミサミスミオミスミクム ミエミオミケムムひイミクム. - -### ミ。ムびムσコムびτミー ムミオミーミサミクミキミームミクミク - -```vue - - - -``` - -### ミ墟サム紗ミオミイム巾オ ミシミセミシミオミスムび -- **ミ頒クミーミサミセミウ ミイ ミコミセミシミソミセミスミオミスムひオ**: ミ斷オ ミイ composable, ミー ミイ UI ミコミセミシミソミセミスミオミスムひオ -- **ミ。ミセムムひセム紹スミクミオ ミイ ミコミセミシミソミセミスミオミスムひオ**: `showDialog`, `isSubmitting` ムσソムミーミイミサム肖紗びム ミサミセミコミーミサム糊スミセ -- **ミュミシミクムムミクム ムミセミアム錦ひクミケ**: ミ頒サム ミイミスミオム威スミオミケ ミセミアムミーミアミセムひコミク ムミオミキムσサム袴ひームひセミイ ミエミオミケムムひイミクム -- **Composable ミアミオミキ try-catch**: ミ、ムσスミコムミクミク ミシミセミエミオミサミク ミ斷 ムミセミエミオムミカミーム ミセミアムミーミアミセムひコム ミセム威クミアミセミコ, ムひセミサム糊コミセ ミイム巾ソミセミサミスミオミスミクミオ ミエミオミケムムひイミクム -- **ミ」ミイミオミエミセミシミサミオミスミクム**: ミ佯ミソミセミサム糊キミセミイミームび `FailAlert`/`SuccessAlert` ミイミシミオムムひセ ミソムム紹シム錦 ミイム巾キミセミイミセミイ Notify -- **ミ漬ーミサミクミエミームミクム**: ミ湲ミセミイミオムム肖び ミエミーミスミスム巾オ ミソミオムミオミエ ミセムひソムミーミイミコミセミケ ミイ composable -- **ミ樮ミクムムひコミー ムミセムムひセム紹スミクム**: ミ。ミアムミームム巾イミームび ミソミセミサム ミソムミク ミキミーミコムム錦ひクミク ミエミクミーミサミセミウミー -- **ミ斷オム window.location.reload()**: ミ榧アミスミセミイミサミオミスミクミオ ミエミーミスミスム錦 ムミオムミオミキ store ミクミサミク emits - -### ミ湲ミクミシミオムム ミソムミクミシミオミスミオミスミクム -- ミ」ミエミーミサミオミスミクミオ ミセミアム諌オミコムひセミイ (DeleteStoryButton.vue) -- ミ渙セミエムひイミオムミカミエミオミスミクミオ ミエミオミケムムひイミクミケ (ConfirmApprovalButton.vue) -- ミ樮ひコミサミセミスミオミスミクミオ ム ミソムミクムミクミスミセミケ (DeclineApprovalButton.vue) diff --git a/components/desktop/.cursor/rules/entities.mdc b/components/desktop/.cursor/rules/entities.mdc deleted file mode 100644 index 8e660d1d3b5..00000000000 --- a/components/desktop/.cursor/rules/entities.mdc +++ /dev/null @@ -1,253 +0,0 @@ ---- -globs: ["**/entities/**/*.ts", "**/entities/**/*.vue"] -alwaysApply: false ---- -## ミ績ムミクムひオミコムびτミー ムムτ禍スミセムムひオミケ (Entities Layer) - -### ミ榧アム禍オミオ ムτムびミセミケムムひイミセ - -ミ。ミサミセミケ ムムτ禍スミセムムひオミケ ムミセミエミオムミカミクム ミアミクミキミスミオム-ムムτ禍スミセムムひク ミソムミクミサミセミカミオミスミクム ミク ミクム ミシミセミエミオミサミク ミエミーミスミスム錦. ミ墟ーミカミエミーム ムムτ禍スミセムムび ミクミシミオミオム ムムびミセミウムτ ムムびムσコムびτム ミク ミセムひイミオムミーミオム ムひセミサム糊コミセ ミキミー ムムミーミスミオミスミクミオ ミク ムσソムミーミイミサミオミスミクミオ ミエミーミスミスム巾シミク. - -**ミ厘ーミソムミオム禍オミスミセ**: ミミーミキミシミオム禍ームび ミシミオムひセミエム ミエミオミケムムひイミクミケ (ミシムτひームミクミケ) ミイ ムムτ禍スミセムムび肖. ミ頒オミケムムひイミクム ミエミセミサミカミスム ミアム錦び ミイ ムミクムミーム (features). - -### ミ。ムびムσコムびτミー ミソミーミソミセミコ ムムτ禍スミセムムひク - -``` -entities/ - EntityName/ - index.ts # ミュミコムミソミセムム ミシミセミエミオミサミク ミク API - api/ - index.ts # ミ、ムσスミコムミクミク ミエミサム ムミーミアミセムび ム GraphQL API - model/ - index.ts # ミュミコムミソミセムム ムひクミソミセミイ ミク store - types.ts # ミ「ミクミソム ムムτ禍スミセムムひオミケ ミスミー ミセムミスミセミイミオ SDK - store.ts # Pinia store ミエミサム ムミオミーミコムひクミイミスミセミウミセ ムミセムムひセム紹スミクム -``` - -### ミ樮ミウミーミスミクミキミームミクム ムひクミソミセミイ (model/types.ts) - -#### ミ侑シミソミセムムび -```typescript -import type { Queries, Mutations, Zeus } from '@coopenomics/sdk'; -``` - -#### ミ渙ームびひオムミスム ムひクミソミクミキミームミクミク - -**ミ頒サム ミソムミセムムび錦 ムムτ禍スミセムムひオミケ:** -```typescript -// ミ「ミクミソ ミソミーミウミクミスミクムミセミイミーミスミスミセミウミセ ムミソミクムミコミー -export type IEntitiesPagination = - Queries.Extension.GetEntities.IOutput[typeof Queries.Extension.GetEntities.name]; - -// ミ「ミクミソ ミセミエミスミセミケ ムムτ禍スミセムムひク -export type IEntity = IEntitiesPagination['items'][0]; - -// ミ「ミクミソム ミイムミセミエミスム錦 ミソミームミーミシミオムびミセミイ -export type IGetEntitiesInput = Queries.Extension.GetEntities.IInput; -export type IGetEntityInput = Queries.Extension.GetEntity.IInput['data']; - -// ミ「ミクミソム ミイム錦ミセミエミスム錦 ミエミーミスミスム錦 ミシムτひームミクミケ -export type ICreateEntityInput = Mutations.Extension.CreateEntity.IInput['data']; -export type ICreateEntityOutput = - Mutations.Extension.CreateEntity.IOutput[typeof Mutations.Extension.CreateEntity.name]; -``` - -**ミ頒サム ムミサミセミカミスム錦 ムムτ禍スミセムムひオミケ ム ミセムひスミセム威オミスミクム紹シミク:** -```typescript -// ミ岱ーミキミセミイム巾ケ ムひクミソ ミクミキ Zeus -export type IEntity = Zeus.ModelTypes['ExtensionEntity']; - -// ミ「ミクミソ ム ミセムひスミセム威オミスミクム紹シミク -export type IEntityWithRelations = - Queries.Extension.GetEntityWithRelations.IOutput[typeof Queries.Extension.GetEntityWithRelations.name]; -``` - -#### ミ湲ミーミイミクミサミー ミクミシミオミスミセミイミーミスミクム ムひクミソミセミイ -- `IEntityName` - ミセムミスミセミイミスミーム ムムτ禍スミセムムび -- `IEntityNames` - ミシミームムミクミイ ムムτ禍スミセムムひオミケ -- `IEntityNamePagination` - ミソミーミウミクミスミクムミセミイミーミスミスム巾ケ ミセムひイミオム -- `IGetEntityNameInput` - ミイムミセミエミスム巾オ ミソミームミーミシミオムびム ミエミサム ミソミセミサムτミオミスミクム -- `ICreateEntityNameInput/Output` - ミイムミセミエ/ミイム錦ミセミエ ミエミサム ムミセミキミエミーミスミクム -- `IUpdateEntityNameInput/Output` - ミイムミセミエ/ミイム錦ミセミエ ミエミサム ミセミアミスミセミイミサミオミスミクム -- `IDeleteEntityNameInput/Output` - ミイムミセミエ/ミイム錦ミセミエ ミエミサム ムσエミーミサミオミスミクム - -### ミ樮ミウミーミスミクミキミームミクム Store (model/store.ts) - -#### ミ。ムびムσコムびτミー store -```typescript -import { defineStore } from 'pinia'; -import { ref, Ref } from 'vue'; -import { api } from '../api'; -import type { IEntity, IEntitiesPagination, IGetEntityInput } from './types'; - -const namespace = 'entityStore'; - -interface IEntityStore { - // ミミオミーミコムひクミイミスム巾オ ムミセムムひセム紹スミクム - entities: Ref; - entity: Ref; - - // ミ慴オムひセミエム ミキミーミウムムσキミコミク ミエミーミスミスム錦 (ムひセミサム糊コミセ ミキミーミソムミセムム!) - loadEntities: (data: IGetEntitiesInput) => Promise; - loadEntity: (data: IGetEntityInput) => Promise; -} - -export const useEntityStore = defineStore(namespace, (): IEntityStore => { - // ミミオミーミコムひクミイミスム巾オ ref'ム - const entities = ref(null); - const entity = ref(null); - - // ミ慴オムひセミエム ミキミーミウムムσキミコミク (ムひセミサム糊コミセ ムムひオミスミクミオ!) - const loadEntities = async (data: IGetEntitiesInput): Promise => { - const loadedData = await api.loadEntities(data); - entities.value = loadedData; - }; - - const loadEntity = async (data: IGetEntityInput): Promise => { - const loadedData = await api.loadEntity(data); - entity.value = loadedData; - return loadedData; - }; - - return { - entities, - entity, - loadEntities, - loadEntity, - }; -}); -``` - -#### ミ湲ミーミイミクミサミー ミエミサム store -- **ミ「ミセミサム糊コミセ ミキミーミソムミセムム**: Store ムミセミエミオムミカミクム ムひセミサム糊コミセ ミシミオムひセミエム ムムひオミスミクム ミエミーミスミスム錦 -- **ミミオミーミコムひクミイミスミセミオ ムミセムムひセム紹スミクミオ**: ミ柘ミオ ミエミーミスミスム巾オ ムムミーミスム肖びム ミイ ref'ミーム -- **ミ侑スムひオムムミオミケム ムひクミソミクミキミームミクミク**: ミ榧アム紹キミームひオミサミオミス ミエミサム ムひクミソミクミキミームミクミク store -- **Namespace**: ミ」ミスミクミコミーミサム糊スミセミオ ミクミシム ミエミサム ミコミーミカミエミセミウミセ store -- **ミ慴オムひセミエム ミセミアミスミセミイミサミオミスミクム ムミソミクムミコミー**: ミ頒サム ミソミセミエミエミオムミカミーミスミクム ミコミセミスムミクムムひオミスムひスミセムムひク ミエミーミスミスム錦 - -#### ミ慴オムひセミエム ムσソムミーミイミサミオミスミクム ムミソミクムミコミセミシ -```typescript -const addEntityToList = (entityData: IEntity) => { - if (entities.value) { - const existingIndex = entities.value.items.findIndex( - (item) => item._id === entityData._id, - ); - - if (existingIndex !== -1) { - // ミ厘ーミシミオミスム紹オミシ ムムτ禍オムムひイムτ紗禾τ - entities.value.items[existingIndex] = entityData; - } else { - // ミ頒セミアミーミイミサム紹オミシ ミスミセミイムτ ミイ ミスミームミーミサミセ - entities.value.items = [entityData, ...entities.value.items]; - entities.value.totalCount += 1; - } - } -}; - -const updateEntityInList = (entityData: IEntity) => { - if (entities.value) { - const existingIndex = entities.value.items.findIndex( - (item) => item._id === entityData._id, - ); - - if (existingIndex !== -1) { - // ミ榧アミスミセミイミサム紹オミシ ムムτ禍オムムひイムτ紗禾τ ミスミー ミシミオムムひオ - entities.value.items[existingIndex] = entityData; - } - } -}; - -const removeEntityFromList = (entityId: string) => { - if (entities.value) { - const index = entities.value.items.findIndex( - (item) => item._id === entityId, - ); - - if (index !== -1) { - entities.value.items.splice(index, 1); - entities.value.totalCount -= 1; - } - } -}; -``` - - -### ミ樮ミウミーミスミクミキミームミクム API (api/index.ts) - -#### ミ。ムびムσコムびτミー API ムムσスミコムミクミケ -```typescript -import { client } from 'src/shared/api/client'; -import { Queries } from '@coopenomics/sdk'; -import type { IEntity, IGetEntityInput } from '../model'; - -async function loadEntities(data: IGetEntitiesInput): Promise { - const { [Queries.Extension.GetEntities.name]: output } = await client.Query( - Queries.Extension.GetEntities.query, - { - variables: data, - }, - ); - return output; -} - -async function loadEntity(data: IGetEntityInput): Promise { - const { [Queries.Extension.GetEntity.name]: output } = await client.Query( - Queries.Extension.GetEntity.query, - { - variables: { - data, - }, - }, - ); - return output; -} - -export const api = { - loadEntities, - loadEntity, -}; -``` - -#### ミ湲ミーミイミクミサミー ミエミサム API -- **ミ「ミセミサム糊コミセ ムムσスミコムミクミク-ミキミーミソムミセムム**: ミ斷クミコミーミコミクム ミシムτひームミクミケ ミイ API ムムτ禍スミセムムひオミケ -- **ミ。ムびミセミウミーム ムひクミソミクミキミームミクム**: ミ柘ミオ ミソミームミーミシミオムびム ミク ミイミセミキミイムミームび ムひクミソミクミキミクムミセミイミーミスム -- **ミ佯ミソミセミサム糊キミセミイミーミスミクミオ SDK**: ミ柘ミオ ミキミーミソムミセムム ムミオムミオミキ GraphQL Zeus SDK -- **ミ片エミクミスム巾ケ ム災コムミソミセムム**: ミ柘ミオ ムムσスミコムミクミク ム災コムミソミセムムひクムムτ紗びム ムミオムミオミキ ミセミアム諌オミコム `api` - -### ミュミコムミソミセムムび ミク ミクミスミエミオミコムミスム巾オ ムミーミケミサム - -#### ミ。ムτ禍スミセムムび (entities/EntityName/index.ts) -```typescript -export * as EntityNameModel from './model'; -export * from './api'; -``` - -#### ミ。ミサミセミケ ムムτ禍スミセムムひオミケ (entities/index.ts) -```typescript -export * as EntityName from './EntityName'; -export * as AnotherEntity from './AnotherEntity'; -``` - -#### ミミームム威クムミオミスミクミオ (extensions/extension-name/index.ts) -```typescript -export * from './entities'; -export * from './features'; -export * from './widgets'; -``` - -### ミ漬ーミカミスム巾オ ミソムミクミスムミクミソム - -#### ミ「ミクミソミクミキミームミクム -- ミ柘ミオ ムひクミソム ミクミキ SDK GraphQL Zeus -- ミ。ムびミセミウミーム ムひクミソミクミキミームミクム ミイムミオム ミイムミセミエミセミイ/ミイム錦ミセミエミセミイ -- ミ侑スムひオムムミオミケムム ミエミサム store ミセミアム諌オミコムひセミイ - -#### ミミオミーミコムひクミイミスミセムムび -- ミ柘ミオ ミエミーミスミスム巾オ ミイ Pinia stores -- ミ佯ミソミセミサム糊キミセミイミーミスミクミオ Vue ref/computed -- ミ籍イムひセミシミームひクムミオムミコミクミオ ミセミアミスミセミイミサミオミスミクム UI - -#### ミ厘ーミソムミオムび -- 笶 ミ慯τひームミクミク ミイ ムムτ禍スミセムムび肖 -- 笶 ミ湲ム紹シム巾オ ミキミーミソムミセムム ミコ API ミイ ミコミセミシミソミセミスミオミスムひーム -- 笶 ミ斷オミクムミソミセミサム糊キムσオミシム巾オ ミソミオムミオミシミオミスミスム巾オ/ミクミシミソミセムムび diff --git a/components/desktop/.cursor/rules/extensions-architecture.mdc b/components/desktop/.cursor/rules/extensions-architecture.mdc deleted file mode 100644 index 72bb0544e7d..00000000000 --- a/components/desktop/.cursor/rules/extensions-architecture.mdc +++ /dev/null @@ -1,130 +0,0 @@ ---- -globs: ["**/desktop/extensions/**/*"] -alwaysApply: false ---- -## ミミームム威クムミオミスミクム (Extensions) - -### ミ榧アム禍オミオ ムτムびミセミケムムひイミセ - -ミミームム威クムミオミスミクム - ム采ひセ ミクミキミセミサミクムミセミイミーミスミスム巾オ ミシミセミエムσサミク ミソムミクミサミセミカミオミスミクム, ミコミーミカミエム巾ケ ミクミキ ミコミセムひセムム錦 ムミオミーミサミクミキムσオム ミセムひエミオミサム糊スム巾ケ ムムσスミコムミクミセミスミーミサ. ミミームム威クムミオミスミクム ミシミーミコムミクミシミーミサム糊スミセ ミスミオミキミーミイミクムミクミシム ミク ムミサミオミエムτ紗 ミソムミクミスムミクミソミーミシ Feature Sliced Design. - -### ミ。ムびムσコムびτミー ムミームム威クムミオミスミクム - -``` -extension-name/ - entities/ # ミ。ムτ禍スミセムムひク ムミームム威クムミオミスミクム - features/ # ミ、ミクムミク ムミームム威クムミオミスミクム - widgets/ # ミ漬クミエミカミオムび ムミームム威クムミオミスミクム - pages/ # ミ。ムびミーミスミクムム ムミームム威クムミオミスミクム - index.ts # export * from './entities' etc. - install.ts # IWorkspaceConfig ム ミシミームム尉ムτひーミシミク ミク ミシミオミスム -``` - -### ミ、ミーミケミサ install.ts - -#### ミミセミサム ミク ミスミーミキミスミームミオミスミクミオ -ミ、ミーミケミサ `install.ts` ミセムひイミオムミーミオム ミキミー ミクミスムひオミウムミームミクム ムミームム威クムミオミスミクム ミイ ムミクムムひオミシム ムミーミアミセムミクム ムムひセミサミセミイ. ミ榧ス: -- ミ榧ソムミオミエミオミサム紹オム ミシミームム尉ムτび ムミームム威クムミオミスミクム -- ミ斷ームムびミーミクミイミーミオム ミシミオミスム ムミーミアミセムミオミウミセ ムムひセミサミー -- ミ」ミソムミーミイミサム紹オム ミイミクミエミクミシミセムムび袴 ミイ ミサミオミイミセミシ ミエムミセミイミオムミオ -- ミ厘ーミエミーミオム ムミセミサミク ミエミセムムびσソミー ミコ ムミーミキミエミオミサミーミシ - -#### ミ。ムびムσコムびτミー ミコミセミスムミクミウムτミームミクミク -```typescript -import { markRaw } from 'vue'; -import type { IWorkspaceConfig } from 'src/shared/lib/types/workspace'; - -export default async function (): Promise { - return { - workspace: 'extension-name', // ミ」ミスミクミコミーミサム糊スム巾ケ ミクミエミオミスムひクムミクミコミームひセム ムミーミアミセムミオミウミセ ムムひセミサミー - title: 'ミ斷ーミキミイミーミスミクミオ ムミーミアミセムミオミウミセ ムムひセミサミー', // ミ樮ひセミアムミーミカミーミオミシミセミオ ミスミーミキミイミーミスミクミオ - defaultRoute: 'default-route', // ミ慴ームム尉ムτ ミソミセ ムσシミセミサムミーミスミクム - routes: [ - { - meta: { - title: 'ミ斷ーミキミイミーミスミクミオ ムミーミキミエミオミサミー', - icon: 'fa-solid fa-icon', - roles: ['chairman', 'member', 'user'], // ミミセミサミク ム ミエミセムムびσソミセミシ: chairman, member, user. ミ湲τムひセミケ ミシミームムミクミイ [] - ミエミセムムびσソ ム ミイムミオム - }, - path: '/:coopname/extension-name', - name: 'extension-name', - component: markRaw(MainComponent), - children: [ - // ミ漬サミセミカミオミスミスム巾オ ミシミームム尉ムτび - ], - }, - ], - }; -} -``` - -#### ミ」ムミセミイミスミク ミイミクミエミクミシミセムムひク ミイ ミシミオミスム - -##### ミ渙オムミイム巾ケ ムτミセミイミオミスム: ミミーミアミセムミクミケ ムムひセミサ -- ミミームム威クムミオミスミクミオ ミソミセム紹イミサム紹オムびム ミイ ミシミオミスム ムミーミアミセムミクム ムムひセミサミセミイ -- ミ厘ーミエミーミオムびム ミイ ミコミセムミスミオミイミセミシ ミシミームム尉ムτひオ ム `path: '/:coopname/extension-name'` - -##### ミ柘ひセムミセミケ ムτミセミイミオミスム: ミ嶢オミイム巾ケ ミエムミセミイミオム -- ミ墟スミセミソミコミク ムミーミキミエミオミサミセミイ ミイミスムτびミク ムミーミアミセムミオミウミセ ムムひセミサミー -- ミ」ミソムミーミイミサム紹オムびム ムミイミセミケムムひイミセミシ `hidden: true/false` ミイ meta ムミセムτひー -- ミ篇ミサミク `hidden: true` - ムミーミキミエミオミサ ミスミオ ミセムひセミアムミーミカミーミオムびム ミイ ミサミオミイミセミシ ミエムミセミイミオムミオ - -#### ミ湲ミクミシミオム ム ミイミクミエミクミシミセムムび袴 -```typescript -{ - path: 'projects/:project_hash/tasks/:issue_hash', - name: 'project-issue', - component: markRaw(IssuePage), - meta: { - title: 'ミ厘ーミエミームミー', - icon: 'fa-solid fa-task', - roles: [], - agreements: agreementsBase, - requiresAuth: true, - hidden: true, // ミ斷オ ミソミセミコミーミキム巾イミームび ミイ ミサミオミイミセミシ ミエムミセミイミオムミオ - }, -} -``` - -### ミュミコムミソミセムムび ムミームム威クムミオミスミクム - -#### index.ts ムミームム威クムミオミスミクム -```typescript -export * from './entities'; -export * from './features'; -export * from './widgets'; -export * from './pages'; -``` - -#### ミミオミウミクムムびミームミクム ミイ ムミクムムひオミシミオ -ミミームム威クムミオミスミクム ムミオミウミクムムびミクムムτ紗びム ムミオムミオミキ ムミクムムひオミシム ムミームム威クムミオミスミクミケ ミク ムムひーミスミセミイム肖びム ミエミセムムびσソミスム ミイ ミシミーミウミーミキミクミスミオ ムミームム威クムミオミスミクミケ ミエミサム ムτムひーミスミセミイミコミク. - -### ミ湲ミーミイミクミサミー ミクミキミセミサム肖ミクミク - -#### ミ厘ーミソムミオムび -- 笶 ミ侑シミソミセムムび ミシミオミカミエム ムミームム威クムミオミスミクム紹シミク ミキミーミソムミオム禍オミスム -- 笶 ミ。ミセミイミシミオムムひスミセミオ ミクムミソミセミサム糊キミセミイミーミスミクミオ ムムτ禍スミセムムひオミケ ミシミオミカミエム ムミームム威クムミオミスミクム紹シミク -- 笶 ミ湲ム紹シム巾オ ミキミーミイミクムミクミシミセムムひク ミシミオミカミエム ムミームム威クムミオミスミクム紹シミク - -#### ミミーミキムミオム威オミスミクム -- 笨 ミ侑シミソミセムム ミクミキ `src/shared` (ミセミアム禍クミオ ミコミセミシミソミセミスミオミスムび) -- 笨 ミ佯ミコミサム紗ミオミスミクム: `FailAlert`, `SuccessAlert` (ミウミサミセミアミーミサム糊スム巾オ ムσイミオミエミセミシミサミオミスミクム) - -### ミ漬ーミカミスム巾オ ミソムミクミスムミクミソム - -#### ミミーミキミエミオミサミオミスミクミオ ミセムひイミオムびムひイミオミスミスミセムムひク -- **Entities**: ミ「ミセミサム糊コミセ ミエミーミスミスム巾オ ミク ミクム ミキミーミウムムσキミコミー -- **Features**: ミ岱クミキミスミオム-ミサミセミウミクミコミー ミク ミエミオミケムムひイミクム -- **Widgets**: ミ墟セミシミソミサミオミコムミスム巾オ UI ミコミセミシミソミセミスミオミスムび -- **Pages**: ミ墟セムミスミオミイム巾オ ムムびミーミスミクムム ムミームム威クムミオミスミクム - -#### ミ墟セミスムミクミウムτミームミクム ミシミオミスム -- ミミセミサミク ミエミセムムびσソミー: `chairman`, `member`, `user` -- ミ湲τムひセミケ ミシミームムミクミイ `roles: []` ミセミキミスミームミーミオム ミエミセムムびσソ ム ミイムミオム ムミセミサミオミケ -- ミ漬クミエミクミシミセムムび ムσソムミーミイミサム紹オムびム ムミオムミオミキ `hidden` ムミイミセミケムムひイミセ -- ミ侑コミセミスミコミク ミク ミスミーミキミイミーミスミクム ミエミセミサミカミスム ミアム錦び ミクミスムミセムミシミームひクミイミスム巾シミク - -#### ミミーミキムミーミアミセムひコミー ムミームム威クムミオミスミクミケ -- ミミームム威クムミオミスミクム ムミーミキムミーミアミームび巾イミーム紗びム ミスミオミキミーミイミクムミクミシミセ -- ミ墟ーミカミエム巾ケ ムミームム威クムミオミスミクミオ - ミセムひエミオミサム糊スム巾ケ ムムσスミコムミクミセミスミーミサム糊スム巾ケ ミシミセミエムσサム -- ミ漬セミキミシミセミカミスミセムムび ミセムひコミサム紗ミオミスミクム/ミイミコミサム紗ミオミスミクム ムミームム威クムミオミスミクミケ diff --git a/components/desktop/.cursor/rules/features.mdc b/components/desktop/.cursor/rules/features.mdc deleted file mode 100644 index facf61c9d2f..00000000000 --- a/components/desktop/.cursor/rules/features.mdc +++ /dev/null @@ -1,234 +0,0 @@ ---- -globs: ["**/desktop/features/**/*.ts", "**/desktop/features/**/*.vue"] -alwaysApply: false ---- -## ミ績ムミクムひオミコムびτミー ムミクム (Features Layer) - -### ミ榧アム禍オミオ ムτムびミセミケムムひイミセ - -ミ、ミクムミク - ム采ひセ ミアミクミキミスミオム-ミサミセミウミクミコミー ミソムミクミサミセミカミオミスミクム, ムミオミーミサミクミキミセミイミーミスミスミーム ミイ ミイミクミエミオ Vue composables. ミ墟ーミカミエミーム ムミクムミー ミセムひイミオムミーミオム ミキミー ミコミセミスミコムミオムひスミセミオ ミエミオミケムムひイミクミオ ミクミサミク ミスミーミアミセム ムミイム紹キミーミスミスム錦 ミエミオミケムムひイミクミケ. ミ、ミクムミク ミイミキミーミクミシミセミエミオミケムムひイムτ紗 ム entities ミエミサム ミソミセミサムτミオミスミクム ミク ミセミアミスミセミイミサミオミスミクム ミエミーミスミスム錦. - -**ミ厘ーミソムミオム禍オミスミセ**: ミミーミキミシミオム禍ームび ミシミオムひセミエム ムムひオミスミクム ミエミーミスミスム錦 ミイ ムミクムミーム. ミァムひオミスミクミオ ミエミーミスミスム錦 - ミキミーミエミームミー entities. - -### ミ。ムびムσコムびτミー ミソミーミソミセミコ ムミクムミク - -``` -features/ - FeatureName/ - index.ts # ミュミコムミソミセムム composable ミク UI (ミオムミサミク ミオムムび) - api/ - index.ts # ミ慯τひームミクミク GraphQL ムミオムミオミキ SDK - model/ - index.ts # ミュミコムミソミセムム composable ムムσスミコムミクミク - ui/ # ミ榧ソムミクミセミスミーミサム糊スミセ: UI ミコミセミシミソミセミスミオミスムび ムミクムミク - index.ts # ミュミコムミソミセムム UI ミコミセミシミソミセミスミオミスムひセミイ - Component.vue # ミ墟セミシミソミセミスミオミスムび ムミクムミク -``` - -### ミ「ミクミソミクミキミームミクム ムミクム - -#### ミ侑シミソミセムムび ムひクミソミセミイ ミスミーミソムム紹シムτ ミクミキ SDK -```typescript -import { Mutations } from '@coopenomics/sdk'; - -// ミ「ミクミソム ミイムミセミエミスム錦 ミエミーミスミスム錦 ミシムτひームミクミク -export type IFeatureInput = Mutations.Extension.FeatureAction.IInput['data']; - -// ミ「ミクミソム ミイム錦ミセミエミスム錦 ミエミーミスミスム錦 ミシムτひームミクミク -export type IFeatureOutput = Mutations.Extension.FeatureAction.IOutput[typeof Mutations.Extension.FeatureAction.name]; -``` - -**ミ漬ーミカミスミセ**: ミ斷クムミオミウミセ ミスミオ ミソミオムミオミセミソムミオミエミオミサム紹オミシ ミイムムτミスムτ! ミ柘ミオ ムひクミソム ミアミオムムτびム ミスミーミソムム紹シムτ ミクミキ GraphQL Zeus SDK. - -### ミ樮ミウミーミスミクミキミームミクム API (api/index.ts) - -#### ミ。ムびムσコムびτミー API ムムσスミコムミクミケ ミエミサム ミシムτひームミクミケ -```typescript -import { client } from 'src/shared/api/client'; -import { Mutations } from '@coopenomics/sdk'; -import type { IFeatureInput, IFeatureOutput } from '../model'; - -async function featureAction( - data: IFeatureInput, -): Promise { - const { [Mutations.Extension.FeatureAction.name]: result } = - await client.Mutation(Mutations.Extension.FeatureAction.mutation, { - variables: { - data, - }, - }); - - return result; -} - -export const api = { - featureAction, -}; -``` - -#### ミ湲ミーミイミクミサミー ミエミサム API ムミクム -- **ミ「ミセミサム糊コミセ ミシムτひームミクミク**: API ムミクム ムミセミエミオムミカミクム ムひセミサム糊コミセ GraphQL ミシムτひームミクミク -- **ミ。ムびミセミウミーム ムひクミソミクミキミームミクム**: ミ柘ミオ ミソミームミーミシミオムびム ミク ミイミセミキミイムミームび ムひクミソミクミキミクムミセミイミーミスム ムミオムミオミキ SDK -- **ミ佯ミソミセミサム糊キミセミイミーミスミクミオ SDK**: ミ柘ミオ ミシムτひームミクミク ムミオムミオミキ GraphQL Zeus SDK -- **ミ片エミクミスム巾ケ ム災コムミソミセムム**: ミ柘ミオ ムムσスミコムミクミク ム災コムミソミセムムひクムムτ紗びム ムミオムミオミキ ミセミアム諌オミコム `api` - -### ミ樮ミウミーミスミクミキミームミクム Model (model/index.ts) - -#### ミ。ムびムσコムびτミー composable ムムσスミコムミクミク -```typescript -import { useEntityStore } from 'app/extensions/extension-name/entities/Entity/model'; -import { api } from '../api'; -import type { IFeatureInput, IFeatureOutput } from '../api'; - -export function useFeatureAction() { - const store = useEntityStore(); - - const featureAction = async (input: IFeatureInput): Promise => { - const result = await api.featureAction(input); - - if (result) { - // ミ榧アミスミセミイミサム紹オミシ store ムムτ禍スミセムムひク ミエミサム ミソミセミエミエミオムミカミーミスミクム ミコミセミスムミクムムひオミスムひスミセムムひク - store.updateEntityInList(result); - // ミクミサミク store.removeEntityFromList(input.entity_id); - // ミクミサミク store.addEntityToList(result); - } - - return result; - }; - - return { featureAction }; -} -``` - -#### ミ湲ミーミイミクミサミー ミエミサム composables -- **ミ佯ミソミセミサム糊キミセミイミーミスミクミオ store**: ミ、ミクムミク ミセミアミスミセミイミサム肖紗 store entities ミソミセムミサミオ ミイム巾ソミセミサミスミオミスミクム ミシムτひームミクミケ -- **ミ渙セミエミエミオムミカミーミスミクミオ ミコミセミスムミクムムひオミスムひスミセムムひク**: ミ頒ーミスミスム巾オ ミイ store ミイムミオミウミエミー ミーミコムびσーミサム糊スム ミソミセムミサミオ ミエミオミケムムひイミクミケ -- **ミ漬セミキミイムミーム禍オミスミクミオ ムミオミキムσサム袴ひームひー**: Composable ミイミセミキミイムミーム禍ーミオム ムミオミキムσサム袴ひーム ミシムτひームミクミク -- **ミ榧アムミーミアミセムひコミー ミセム威クミアミセミコ**: ミ樮威クミアミコミク ミセミアムミーミアミームび巾イミーム紗びム ミイ UI ミコミセミシミソミセミスミオミスムひーム - -### UI ムミサミセミケ ムミクム (ミセミソムミクミセミスミーミサム糊スミセ) - -#### ミ墟セミウミエミー ミクムミソミセミサム糊キミセミイミームび UI ミイ ムミクムミーム -- **ミ侑スミセミウミエミー, ミスミセ ミスミオ ミイムミオミウミエミー**: UI ムミサミセミケ ミクムミソミセミサム糊キムσオムびム ムひセミサム糊コミセ ミエミサム ムミソミオムミクムミクムミオムミコミクム ミコミセミシミソミセミスミオミスムひセミイ ムミクムミク -- **ミ湲ミセムムび巾オ ミエミオミケムムひイミクム**: ミ頒サム ミコミスミセミソミセミコ, ムミセムミシ, ムミソミオムミクムミクムミスム錦 ミエミサム ミエミーミスミスミセミケ ムミクムミク -- **ミ斷オ ミセミアム禍クミオ ミコミセミシミソミセミスミオミスムび**: ミ斷オ ムミーミキミシミオム禍ームび shared ミコミセミシミソミセミスミオミスムび ミイ ムミクムミーム - -#### ミュミコムミソミセムムび UI ミコミセミシミソミセミスミオミスムひセミイ - -##### ミ ui/index.ts (ミソミオムミイム巾ケ ムτミセミイミオミスム ム災コムミソミセムムひー) -```typescript -export { default as FeatureButton } from './FeatureButton.vue'; -export { default as FeatureDialog } from './FeatureDialog.vue'; -``` - -##### ミ ミコミセムミスミオ ムミクムミク index.ts (ミイムひセムミセミケ ムτミセミイミオミスム ム災コムミソミセムムひー) -```typescript -export { useFeatureAction } from './model'; -export * from './ui'; // ミュミコムミソミセムムひクムムσオミシ ミイムミオ UI ミコミセミシミソミセミスミオミスムび -``` - -### ミュミコムミソミセムムび ミク ミクミスミエミオミコムミスム巾オ ムミーミケミサム - -#### ミ、ミクムミー (features/FeatureName/index.ts) -```typescript -export { useFeatureAction } from './model'; -export * from './ui'; // ミ篇ミサミク ミオムムび UI ムミサミセミケ -``` - -#### ミ。ミサミセミケ ムミクム (features/index.ts) -```typescript -export { useFeatureAction } from './FeatureName'; -export { useAnotherFeature } from './AnotherFeature'; -``` - -#### ミミームム威クムミオミスミクミオ (extensions/extension-name/index.ts) -```typescript -export * from './entities'; -export * from './features'; // ミュミコムミソミセムム ミイムミオム ムミクム ムミームム威クムミオミスミクム -export * from './widgets'; -export * from './pages'; -``` - -### ミ湲ミクミスムミクミソム ムミーミアミセムび ム ムミクムミーミシミク - -#### ミミーミキミエミオミサミオミスミクミオ ミセムひイミオムびムひイミオミスミスミセムムひク -- **Entities**: ミ・ムミーミスミオミスミクミオ ミク ムムひオミスミクミオ ミエミーミスミスム錦 -- **Features**: ミ岱クミキミスミオム-ミサミセミウミクミコミー ミク ミエミオミケムムひイミクム (ミシムτひームミクミク) -- **Widgets**: ミ。ミサミセミカミスム巾オ UI ミコミセミシミソミセミスミオミスムび -- **Pages**: ミ墟セムミスミオミイム巾オ ムムびミーミスミクムム - -#### ミ漬キミーミクミシミセミエミオミケムムひイミクミオ ムミセ stores -- **ミ榧アム紹キミームひオミサム糊スミセミオ ミセミアミスミセミイミサミオミスミクミオ**: ミ渙セムミサミオ ミコミーミカミエミセミケ ミシムτひームミクミク ミセミアミスミセミイミサム肖び ムミセミセムひイミオムびムひイムτ紗禍クミケ store -- **ミ墟セミスムミクムムひオミスムひスミセムムび ミエミーミスミスム錦**: UI ミイムミオミウミエミー ミソミセミコミーミキム巾イミーミオム ミーミコムびσーミサム糊スム巾オ ミエミーミスミスム巾オ ミクミキ store -- **ミ榧ソムひクミシミクムムひクムミスム巾オ ミセミアミスミセミイミサミオミスミクム**: ミ漬セミキミシミセミカミスム ミエミサム ミサムτム威オミウミセ UX - -#### ミ「ミクミソミクミキミームミクム -- **SDK-first**: ミ柘ミオ ムひクミソム ミクミキ GraphQL Zeus SDK -- **ミ斷オ ミソミオムミオミセミソムミオミエミオミサム肖び**: ミ斷クミコミーミコミクム ムムτミスム錦 ミソミオムミオミセミソムミオミエミオミサミオミスミクミケ ムひクミソミセミイ -- **ミ。ムびミセミウミーム ムひクミソミクミキミームミクム**: ミ柘ミオ ミイムミセミエム/ミイム錦ミセミエム ムひクミソミクミキミクムミセミイミーミスム - -#### ミ樮ミウミーミスミクミキミームミクム ミコミセミエミー -- **Composable pattern**: ミ墟ーミカミエミーム ムミクムミー - ミセムひエミオミサム糊スム巾ケ composable -- **ミ片エミクミスミーム ミセムひイミオムびムひイミオミスミスミセムムび**: ミ榧エミスミー ムミクムミー = ミセミエミスミセ ミエミオミケムムひイミクミオ ミクミサミク ミウムムσソミソミー ムミイム紹キミーミスミスム錦 ミエミオミケムムひイミクミケ -- **ミ渙オムミオミクムミソミセミサム糊キミセミイミーミスミクミオ**: ミ、ミクムミク ミシミセミウムτ ミクムミソミセミサム糊キミセミイミームび袴ム ミイ ムミーミキミスム錦 ムミームムび肖 ミソムミクミサミセミカミオミスミクム - -### ミ湲ミクミシミオムム - -#### ミ湲ミセムムひーム ムミクムミー (ムひセミサム糊コミセ composable) -``` -DeleteStory/ - api/ - index.ts # ミ慯τひームミクム deleteStory - model/ - index.ts # useDeleteStory composable - index.ts # ミュミコムミソミセムム composable -``` - -#### ミ、ミクムミー ム UI ミコミセミシミソミセミスミオミスムひーミシミク -``` -CreateProject/ - api/ - index.ts # ミ慯τひームミクム createProject - model/ - index.ts # useCreateProject composable - ui/ - index.ts # ミュミコムミソミセムム CreateProjectButton - CreateProjectButton.vue - index.ts # ミュミコムミソミセムム composable + UI -``` - -#### ミ佯ミソミセミサム糊キミセミイミーミスミクミオ ムミクムミク ミイ ミコミセミシミソミセミスミオミスムひオ -```vue - -``` - -### ミ漬ーミカミスム巾オ ミソムミクミスムミクミソム - -#### ミァミオムひコミセミオ ムミーミキミエミオミサミオミスミクミオ ムミサミセミオミイ -- **Entities** ムσソムミーミイミサム肖紗 ミエミーミスミスム巾シミク -- **Features** ムσソムミーミイミサム肖紗 ミエミオミケムムひイミクム紹シミク -- **UI** ムσソムミーミイミサム紹オム ミクミスムひオムムミオミケムミセミシ - -#### ミ墟セミスムミクムムひオミスムひスミセムムび ミームムミクムひオミコムびτム -- ミ柘ミオ ムミクムミク ムミサミオミエムτ紗 ミオミエミクミスミセミシム ミソミームびひオムミスム -- ミ「ミクミソミクミキミームミクム ムミオムミオミキ SDK -- ミ榧アミスミセミイミサミオミスミクミオ stores ミソミセムミサミオ ミシムτひームミクミケ - -#### ミ湲ミセミクミキミイミセミエミクムひオミサム糊スミセムムび -- ミ榧ソムひクミシミクムムひクムミスム巾オ ミセミアミスミセミイミサミオミスミクム ミウミエミオ ミイミセミキミシミセミカミスミセ -- ミ慴クミスミクミシミーミサム糊スム巾オ ミソミオムミオムミクムミセミイミコミク UI -- ミュムムミオミコムひクミイミスミセミオ ムσソムミーミイミサミオミスミクミオ ムミセムムひセム紹スミクミオミシ diff --git a/components/desktop/.cursor/rules/pages.mdc b/components/desktop/.cursor/rules/pages.mdc deleted file mode 100644 index e03840e984a..00000000000 --- a/components/desktop/.cursor/rules/pages.mdc +++ /dev/null @@ -1,291 +0,0 @@ ---- -globs: ["**/desktop/pages/**/*.ts", "**/desktop/pages/**/*.vue"] -alwaysApply: false ---- -## ミ績ムミクムひオミコムびτミー ムムびミーミスミクム (Pages Layer) - -### ミ榧アム禍オミオ ムτムびミセミケムムひイミセ - -ミ。ムびミーミスミクムム - ム采ひセ ミコミセムミスミオミイム巾オ ミコミセミシミソミセミスミオミスムび ミソムミクミサミセミカミオミスミクム, ミコミセムひセムム巾オ ミクムミソミセミサム糊キムτ紗びム ミイ ミシミームム尉ムτひーム. ミ。ムびミーミスミクムム ミセムひイミオムミーム紗 ミキミー ミセムミコミオムムびミームミクム ミイミクミエミカミオムひセミイ, ムσソムミーミイミサミオミスミクミオ ムミセムムひセム紹スミクミオミシ UI ミク ミスミーミイミクミウミームミクム. ミ榧スミク ミシミセミウムτ ミアム錦び ミコミーミコ ミソムミセムムび巾シミク ミコミセミスムひオミケミスミオムミーミシミク, ムひーミコ ミク ムミサミセミカミスム巾シミク ミコミセミシミソミセミキミクムひスム巾シミク ミコミセミシミソミセミスミオミスムひーミシミク. - -### ミ。ムびムσコムびτミー ミソミーミソミセミコ ムムびミーミスミクムム - -``` -pages/ - PageName/ - index.ts # ミュミコムミソミセムム ムムびミーミスミクムム - ui/ # Vue ミコミセミシミソミセミスミオミスム ムムびミーミスミクムム - PageName.vue # ミ樮ミスミセミイミスミセミケ ミコミセミシミソミセミスミオミスム - index.ts # ミュミコムミソミセムム ミクミキ ui -``` - -### ミ「ミクミソム ムムびミーミスミクム - -#### 1. ミ墟セミスムひオミケミスミオムミスム巾オ ムムびミーミスミクムム -ミ湲ミセムムび巾オ ムムびミーミスミクムム, ミコミセムひセムム巾オ ミエミオミサミオミウミクムムτ紗 ミセムひセミアムミーミカミオミスミクミオ ミエミセムミオムミスミクミシ ミシミームム尉ムτひーミシ: - -```vue - - - -``` - -#### 2. ミ墟セミシミソミセミキミクムひスム巾オ ムムびミーミスミクムム -ミ。ムびミーミスミクムム ム ムミサミセミカミスミセミケ ミコミセミシミソミセミキミクムミクミオミケ ミイミクミエミカミオムひセミイ ミク ムミセミアムムひイミオミスミスミセミケ ミサミセミウミクミコミセミケ: - -```vue - - - -``` - -### ミ湲ミクミスムミクミソム ミセムミウミーミスミクミキミームミクミク ムムびミーミスミクム - -#### ミ佯ミソミセミサム糊キミセミイミーミスミクミオ ムミサミセミオミイ -```typescript -// 笨 ミ湲ミーミイミクミサム糊スミセ: ムムびミーミスミクムム ミクムミソミセミサム糊キムτ紗 ミイムミオ ミスミクミカミオミサミオミカミーム禍クミオ ムミサミセミク -import { useEntityStore } from 'entities/Entity/model'; // ミ頒ーミスミスム巾オ -import { useEntityAction } from 'features/Entity/EntityAction'; // ミ頒オミケムムひイミクム -import { EntityWidget } from 'widgets/EntityWidget'; // ミ墟セミシミソミセミキミクムミクム UI - -// 笶 ミ斷オミソムミーミイミクミサム糊スミセ: ムムびミーミスミクムム ミスミオ ミクムミソミセミサム糊キムτ紗 ミエムムσウミクミオ ムムびミーミスミクムム -// import { OtherPage } from 'pages/OtherPage'; -``` - -#### ミ」ミソムミーミイミサミオミスミクミオ ムミセムムひセム紹スミクミオミシ -ミ。ムびミーミスミクムム ムσソムミーミイミサム肖紗: -- **ミ厘ーミウムムσキミコミセミケ ミエミーミスミスム錦**: ミクミスミクムミクミーミサミクミキミームミクム, ムミクミサム袴びム, ミソミーミウミクミスミームミクム -- **UI ムミセムムひセム紹スミクミオミシ**: ミキミーミウムムσキミコミー, ミセム威クミアミコミク, ミスミーミイミクミウミームミクム -- **ミ漬キミーミクミシミセミエミオミケムムひイミクミオミシ**: ミセミアムミーミアミセムひコミー ムミセミアム錦ひクミケ ミセム ミイミクミエミカミオムひセミイ - -#### ミ墟セミシミソミセミキミクムミクム ミイミクミエミカミオムひセミイ -```vue - -``` - -### ミュミコムミソミセムムび ミク ミクミスミエミオミコムミスム巾オ ムミーミケミサム - -#### ミ。ムびミーミスミクムミー (pages/PageName/index.ts) -```typescript -export { default as PageName } from './ui/PageName.vue'; -``` - -#### ミ。ミサミセミケ ムムびミーミスミクム (pages/index.ts) -```typescript -export * from './PageName'; -export * from './AnotherPage'; -``` - -#### ミ佯ミソミセミサム糊キミセミイミーミスミクミオ ミイ ミシミームム尉ムτひーム -ミ。ムびミーミスミクムム ミクムミソミセミサム糊キムτ紗びム ミイ `install.ts` ムミームム威クムミオミスミクム: - -```typescript -routes: [{ - path: '/:coopname/extension/page', - name: 'page', - component: markRaw(PageName), // ミ侑シミソミセムム ミクミキ pages - meta: { /* ... */ } -}] -``` - -### ミ湲ミクミスムミクミソム ムミーミアミセムび ムミセ ムムびミーミスミクムミーミシミク - -#### ミミーミキミエミオミサミオミスミクミオ ミセムひイミオムびムひイミオミスミスミセムムひク -- **Entities**: ミ頒ーミスミスム巾オ ミク ミクム ムムミーミスミオミスミクミオ -- **Features**: ミ岱クミキミスミオム-ミサミセミウミクミコミー ミク ミエミオミケムムひイミクム -- **Widgets**: ミ墟セミシミソミセミキミクムミクム UI ミコミセミシミソミセミスミオミスムひセミイ -- **Pages**: ミ樮ミコミオムムびミームミクム ミイムミオミウミセ ミイム錦威オミソミオムミオムミクムミサミオミスミスミセミウミセ - -#### ミ厘ーミウムムσキミコミー ミエミーミスミスム錦 -ミ。ムびミーミスミクムム ミセムひイミオムミーム紗 ミキミー: -- ミ侑スミクムミクミーミサミクミキミームミクム ミエミーミスミスム錦 ミソムミク ミシミセミスムひクムミセミイミーミスミクミク -- ミ」ミソムミーミイミサミオミスミクミオ ミソミーミウミクミスミームミクミオミケ ミク ムミクミサム袴びミーミシミク -- ミ榧アムミーミアミセムひコム ミセム威クミアミセミコ ミキミーミウムムσキミコミク -- ミ墟オム威クムミセミイミーミスミクミオ ミク ミセミソムひクミシミクミキミームミクム ミキミーミソムミセムミセミイ - -#### ミ斷ーミイミクミウミームミクム ミク ミイミキミーミクミシミセミエミオミケムムひイミクミオ -```typescript -const router = useRouter(); - -const onItemClick = (item) => { - router.push({ - name: 'item-details', - params: { id: item.id } - }); -}; - -const onActionComplete = () => { - // ミ榧アミスミセミイミサミオミスミクミオ ミエミーミスミスム錦 ミソミセムミサミオ ミエミオミケムムひイミクム - loadData(); -}; -``` - -### ミ湲ミクミシミオムム ミクムミソミセミサム糊キミセミイミーミスミクム - -#### ミ湲ミセムムひーム ムムびミーミスミクムミー ムミソミクムミコミー -```vue - - - -``` - -#### ミ。ムびミーミスミクムミー ム ミスミオムミコミセミサム糊コミクミシミク ミイミクミエミカミオムひーミシミク -```vue - - - -``` - -### ミ漬ーミカミスム巾オ ミソムミクミスムミクミソム - -#### ミ湲ミセミクミキミイミセミエミクムひオミサム糊スミセムムび -- ミ嶢オミスミクミイミーム ミキミーミウムムσキミコミー ミエミーミスミスム錦 -- ミ榧ソムひクミシミクミキミームミクム ミソミオムミオムミクムミセミイミセミコ -- ミュムムミオミコムひクミイミスミセミオ ムσソムミーミイミサミオミスミクミオ ミソミーミシム肖び袴 - -#### ミ頒セムムびσソミスミセムムび -- ミ湲ミーミイミクミサム糊スミーム ムムびムσコムびτミー ミキミーミウミセミサミセミイミコミセミイ -- ミ墟サミーミイミクミームびτミスミーム ミスミーミイミクミウミームミクム -- Screen reader ミソミセミエミエミオムミカミコミー - -#### SEO ミク ミシミオムひーミエミーミスミスム巾オ -- ミ」ミソムミーミイミサミオミスミクミオ title ムムびミーミスミクムム -- Meta ムひオミウミク ミエミサム ムミセムミクミーミサム糊スム錦 ムミオムひオミケ -- ミ。ムびムσコムびτミクムミセミイミーミスミスム巾オ ミエミーミスミスム巾オ diff --git a/components/desktop/.cursor/rules/widgets.mdc b/components/desktop/.cursor/rules/widgets.mdc deleted file mode 100644 index 0289b017f9e..00000000000 --- a/components/desktop/.cursor/rules/widgets.mdc +++ /dev/null @@ -1,388 +0,0 @@ ---- -globs: ["**/desktop/widgets/**/*.ts", "**/desktop/widgets/**/*.vue"] -alwaysApply: false ---- -## ミ績ムミクムひオミコムびτミー ミイミクミエミカミオムひセミイ (Widgets Layer) - -### ミ榧アム禍オミオ ムτムびミセミケムムひイミセ - -ミ漬クミエミカミオムび - ム采ひセ ミコミセミシミソミサミオミコムミスム巾オ UI ミコミセミシミソミセミスミオミスムび, ミコミセムひセムム巾オ ミコミセミシミアミクミスミクムムτ紗 ミエミーミスミスム巾オ ミクミキ entities ミク ミエミオミケムムひイミクム ミクミキ features ミエミサム ムミセミキミエミーミスミクム ミソミセミサミスミセムミオミスミスム錦 ミクミスムひオムムミオミケムミスム錦 ミアミサミセミコミセミイ. ミ漬クミエミカミオムび ミセムひイミオムミーム紗 ミキミー ミコミセミシミソミセミキミクムミクム ミク ミソムミオミエムムひーミイミサミオミスミクミオ ムミサミセミカミスム錦 ムミームムひオミケ ミクミスムひオムムミオミケムミー. - -**ミ厘ーミソムミオム禍オミスミセ**: ミ漬クミエミカミオムび ミスミオ ミソミオムミオミクムミソミセミサム糊キムτ紗 ミエムムσウミクミオ ミイミクミエミカミオムび. ミ漬クミエミカミオムび ミシミセミウムτ ミクムミソミセミサム糊キミセミイミームび ムひセミサム糊コミセ ムミクムミク ミク shared ミコミセミシミソミセミスミオミスムび. - -### ミ。ムびムσコムびτミー ミソミーミソミセミコ ミイミクミエミカミオムひー - -``` -widgets/ - WidgetName/ - index.ts # ミュミコムミソミセムム ミイミクミエミカミオムひー - WidgetName.vue # Vue ミコミセミシミソミセミスミオミスム ミイミクミエミカミオムひー - # ミクミサミク - ui/ - WidgetName.vue # Vue ミコミセミシミソミセミスミオミスム ミイ ミソミセミエミソミーミソミコミオ - index.ts # ミュミコムミソミセムム ミクミキ ui -``` - -### ミ湲ミクミスムミクミソム ミセムミウミーミスミクミキミームミクミク ミイミクミエミカミオムひセミイ - -#### ミ佯ミソミセミサム糊キミセミイミーミスミクミオ ムひセミサム糊コミセ ムミーミキムミオム威オミスミスム錦 ムミサミセミオミイ -```typescript -// 笨 ミミーミキムミオム威オミスミセ: entities ミエミサム ミエミーミスミスム錦 -import { useEntityStore, type IEntity } from 'entities/Entity/model'; - -// 笨 ミミーミキムミオム威オミスミセ: features ミエミサム ミエミオミケムムひイミクミケ -import { useEntityAction } from 'features/Entity/EntityAction'; -import { EntityActionButton } from 'features/Entity/EntityAction'; - -// 笨 ミミーミキムミオム威オミスミセ: shared ミコミセミシミソミセミスミオミスムび -import { SharedComponent } from 'src/shared/ui/SharedComponent'; - -// 笶 ミ厘ーミソムミオム禍オミスミセ: ミクミシミソミセムム ミエムムσウミクム ミイミクミエミカミオムひセミイ -// import { AnotherWidget } from 'widgets/AnotherWidget'; -``` - -#### ミ墟セミシミソミセミキミクムミクム ムミオムミオミキ ムミサミセムび (ミセミソムミクミセミスミーミサム糊スミセ) -ミ漬クミエミカミオムび ミシミセミウムτ ムミセミエミオムミカミームび ムミサミセムび ミエミサム ミコミセミシミソミセミキミクムミクミク ム ミエムムσウミクミシミク ミコミセミシミソミセミスミオミスムひーミシミク ミスミー ムτミセミイミスミオ ムムびミーミスミクム: - -```vue - -``` - -### ミ「ミクミソム ミイミクミエミカミオムひセミイ - -#### 1. ミ湲ミオミキミオミスムひームミクミセミスミスム巾オ ミイミクミエミカミオムび -ミ樮ひセミアムミーミカミーム紗 ミエミーミスミスム巾オ ミイ ミイミクミエミオ ムひーミアミサミクム, ムミソミクムミコミセミイ, ミコミームムひセムミオミコ: - -```vue - - - -``` - -#### 2. ミ侑スムひオムミーミコムひクミイミスム巾オ ミイミクミエミカミオムび -ミ墟セミシミアミクミスミクムムτ紗 ミセムひセミアムミーミカミオミスミクミオ ミエミーミスミスム錦 ム ミエミオミケムムひイミクム紹シミク: - -```vue - -``` - -#### 3. ミ墟セミシミソミセミキミクムひスム巾オ ミイミクミエミカミオムび ムミセ ムミサミセムひーミシミク -ミ湲ミオミエミセムムひーミイミサム肖紗 ミウミクミアミコムτ ムムびムσコムびτム ミエミサム ムムびミーミスミクム: - -```vue - -``` - -### Props ミク ミコミセミスムミクミウムτミームミクム - -#### ミ寅クミアミコミーム ミコミセミスムミクミウムτミームミクム ムミオムミオミキ props -```typescript -interface Props { - // ミ頒ーミスミスム巾オ - items?: IEntity[]; - loading?: boolean; - - // ミ墟セミスムミクミウムτミームミクム ミセムひセミアムミーミカミオミスミクム - showActions?: boolean; - maxItems?: number; - emptyMessage?: string; - - // Callbacks ミエミサム ミイミキミーミクミシミセミエミオミケムムひイミクム - onItemClick?: (item: IEntity) => void; - onActionComplete?: () => void; -} - -const props = withDefaults(defineProps(), { - showActions: true, - maxItems: 50, - emptyMessage: 'ミ斷オム ミエミーミスミスム錦', -}); -``` - -#### ミ」ミソムミーミイミサミオミスミクミオ ムミセムムひセム紹スミクミオミシ -```typescript -// ミ嶢セミコミーミサム糊スミセミオ ムミセムムひセム紹スミクミオ ミイミクミエミカミオムひー -const expandedItems = ref>(new Set()); -const selectedItem = ref(null); - -// Props ミエミサム ミイミスミオム威スミオミウミセ ムσソムミーミイミサミオミスミクム -interface Props { - expandedItems?: string[]; - selectedItemId?: string; -} -``` - -### ミ佯ミソミセミサム糊キミセミイミーミスミクミオ entities ミイ ミイミクミエミカミオムひーム - -#### ミァムひオミスミクミオ ミエミーミスミスム錦 ミクミキ stores -```typescript -import { useEntityStore } from 'entities/Entity/model'; - -const store = useEntityStore(); - -// ミ頒セムムびσソ ミコ ムミオミーミコムひクミイミスム巾シ ミエミーミスミスム巾シ (ムσカミオ ムミオミーミコムひクミイミスム ムミオムミオミキ Pinia) -const entities = computed(() => store.entities); -const loading = computed(() => store.loading); - -// ミ慴オムひセミエム ミキミーミウムムσキミコミク -const loadData = () => { - store.loadEntities({ filter: props.filter }); -}; -``` - -#### ミ漬ーミカミスミセ ミセ ムミオミーミコムひクミイミスミセムムひク stores -**Store ミーミイムひセミシミームひクムミオムミコミク ムミオミーミコムひクミイミオミス ムミオムミオミキ Pinia** - ミスミオ ミスムσカミスミセ ミクムミソミセミサム糊キミセミイミームび `storeToRefs()` ミクミサミク `.value`: -```typescript -const store = useEntityStore(); - -// 笨 ミ湲ミーミイミクミサム糊スミセ - ミエミーミスミスム巾オ ムσカミオ ムミオミーミコムひクミイミスム -const entities = computed(() => store.entities); - -// 笶 ミ斷オミソムミーミイミクミサム糊スミセ - storeToRefs ミスミオ ミスムσカミオミス -// const { entities } = storeToRefs(store); - -// 笶 ミ斷オミソムミーミイミクミサム糊スミセ - ミエミーミスミスム巾オ ムσカミオ ムミオミーミコムひクミイミスム, .value ミスミオ ミスムσカミオミス -// const entities = store.entities.value; -``` - -### ミ佯ミソミセミサム糊キミセミイミーミスミクミオ features ミイ ミイミクミエミカミオムひーム - -#### ミ侑シミソミセムム ミク ミクムミソミセミサム糊キミセミイミーミスミクミオ ムミクム -```typescript -import { useEntityAction } from 'features/Entity/EntityAction'; -import { EntityActionButton } from 'features/Entity/EntityAction'; - -const { entityAction } = useEntityAction(); - -// ミ佯ミソミセミサム糊キミセミイミーミスミクミオ ミイ ミセミアムミーミアミセムびミクミコミーム -const handleAction = async () => { - try { - await entityAction(params); - // ミ榧アムミーミアミセムひコミー ムτミソミオムミー - } catch (error) { - // ミ榧アムミーミアミセムひコミー ミセム威クミアミコミク - } -}; -``` - -#### ミ侑スムひオミウムミームミクム UI ミコミセミシミソミセミスミオミスムひセミイ ムミクム -```vue - -``` - -### ミ榧アムミーミアミセムひコミー ムミセミアム錦ひクミケ ミク ミコミセミシミシムσスミクミコミームミクム - -#### ミ漬スムτびミオミスミスム肖 ミコミセミシミシムσスミクミコミームミクム -```typescript -const emit = defineEmits<{ - itemSelected: [item: IEntity]; - actionCompleted: [action: string, result: any]; -}>(); - -// ミ寅オミスミオムミームミクム ムミセミアム錦ひクミケ -const onItemClick = (item: IEntity) => { - emit('itemSelected', item); -}; - -const onActionSuccess = (result: any) => { - emit('actionCompleted', 'create', result); -}; -``` - -#### ミ漬スミオム威スミオミオ ムσソムミーミイミサミオミスミクミオ ムミオムミオミキ props -```typescript -interface Props { - selectedItemId?: string; - onItemSelect?: (item: IEntity) => void; -} - -const props = defineProps(); - -// ミ。ミクミスムムミセミスミクミキミームミクム ム ミイミスミオム威スミクミシ ムミセムムひセム紹スミクミオミシ -watch(() => props.selectedItemId, (newId) => { - if (newId) { - const item = entities.value.find(e => e.id === newId); - if (item) { - selectedItem.value = item; - props.onItemSelect?.(item); - } - } -}); -``` - -### ミュミコムミソミセムムび ミク ミクミスミエミオミコムミスム巾オ ムミーミケミサム - -#### ミ漬クミエミカミオム (widgets/WidgetName/index.ts) -```typescript -export { default as WidgetName } from './WidgetName.vue'; -// ミクミサミク -export { default as WidgetName } from './ui/WidgetName.vue'; -``` - -#### ミ。ミサミセミケ ミイミクミエミカミオムひセミイ (widgets/index.ts) -```typescript -export * from './WidgetName'; -export * from './AnotherWidget'; -``` - -#### ミミームム威クムミオミスミクミオ (extensions/extension-name/index.ts) -```typescript -export * from './entities'; -export * from './features'; -export * from './widgets'; // ミュミコムミソミセムム ミイムミオム ミイミクミエミカミオムひセミイ ムミームム威クムミオミスミクム -export * from './pages'; -``` - -### ミ湲ミクミシミオムム ミクムミソミセミサム糊キミセミイミーミスミクム - -#### ミ湲ミセムムひセミケ ミイミクミエミカミオム ムミソミクムミコミー -```vue - - - -``` - -#### ミ漬クミエミカミオム ム ミエミオミケムムひイミクム紹シミク -```vue - - - -``` - -### ミ漬ーミカミスム巾オ ミソムミクミスムミクミソム - -#### ミミーミキミエミオミサミオミスミクミオ ミセムひイミオムびムひイミオミスミスミセムムひク -- **Entities**: ミ頒ーミスミスム巾オ ミク ミクム ムムミーミスミオミスミクミオ -- **Features**: ミ岱クミキミスミオム-ミサミセミウミクミコミー ミク ミエミオミケムムひイミクム -- **Widgets**: ミ墟セミシミソミセミキミクムミクム UI ミコミセミシミソミセミスミオミスムひセミイ -- **Pages**: ミ樮ミコミオムムびミームミクム ミイミクミエミカミオムひセミイ - -#### ミ墟セミシミソミセミキミクムミクム ムミオムミオミキ ムミサミセムび -- ミ漬クミエミカミオムび ミシミセミウムτ ミソムミオミエミセムムひーミイミサム肖び ムミサミセムび ミエミサム ミウミクミアミコミセミケ ミコミセミシミソミセミキミクムミクミク -- ミ。ムびミーミスミクムム ミクムミソミセミサム糊キムτ紗 ムミサミセムび ミエミサム ミイムムひーミイミコミク ミイミクミエミカミオムひセミイ -- ミ侑キミアミオミウミームび ミカミオムムひコミセミケ ムミイム紹キミク ミシミオミカミエム ミイミクミエミカミオムひーミシミク - -#### ミ渙オムミオミクムミソミセミサム糊キミセミイミーミスミクミオ -- ミ漬クミエミカミオムび ミシミセミウムτ ミソミオムミオミクムミソミセミサム糊キミセミイミームび袴ム ミイ ムミーミキミスム錦 ムムびミーミスミクムミーム -- ミ墟セミスムミクミウムτミームミクム ムミオムミオミキ props ミエミサム ミーミエミーミソムひームミクミク -- Shared ミコミセミシミソミセミスミオミスムび ミエミサム ミセミアム禍クム ム災サミオミシミオミスムひセミイ UI - -#### ミ湲ミセミクミキミイミセミエミクムひオミサム糊スミセムムび -- ミ嶢オミスミクミイミーム ミキミーミウムムσキミコミー ミエミーミスミスム錦 -- ミ漬クムムびσーミサミクミキミームミクム ミエミサム ミアミセミサム袴威クム ムミソミクムミコミセミイ -- ミ榧ソムひクミシミクムムひクムミスム巾オ ミセミアミスミセミイミサミオミスミクム ムミオムミオミキ features diff --git a/components/desktop/extensions/capital/entities/Contributor/model/store.ts b/components/desktop/extensions/capital/entities/Contributor/model/store.ts index d66d90bef2f..06a64d7f0f7 100644 --- a/components/desktop/extensions/capital/entities/Contributor/model/store.ts +++ b/components/desktop/extensions/capital/entities/Contributor/model/store.ts @@ -21,7 +21,7 @@ interface IContributorStore { loadSelf: (data: IGetContributorInput) => Promise; updateSelf: (contributorData: IContributor) => void; hasClearance: (projectHash: string) => boolean; - isGenerationAgreementCompleted: ComputedRef; + isGenerationContractCompleted: ComputedRef; isCapitalAgreementCompleted: ComputedRef; } @@ -70,7 +70,7 @@ export const useContributorStore = defineStore( }; // ミ柘錦ミクムミサム紹オミシム巾オ ムミイミセミケムムひイミー ミエミサム ミソムミセミイミオムミコミク ミキミーミイミオムム威オミスミクム ム威ーミウミセミイ ムミオミウミクムムびミームミクミク - const isGenerationAgreementCompleted = computed(() => { + const isGenerationContractCompleted = computed(() => { return !!self.value?.contract; }); @@ -87,7 +87,7 @@ export const useContributorStore = defineStore( loadSelf, updateSelf, hasClearance, - isGenerationAgreementCompleted, + isGenerationContractCompleted, isCapitalAgreementCompleted, }; }, diff --git a/components/desktop/extensions/capital/features/Contributor/MakeClearance/api/index.ts b/components/desktop/extensions/capital/features/Contributor/MakeClearance/api/index.ts index a2d2af3e8a4..9f469754dc2 100644 --- a/components/desktop/extensions/capital/features/Contributor/MakeClearance/api/index.ts +++ b/components/desktop/extensions/capital/features/Contributor/MakeClearance/api/index.ts @@ -7,15 +7,15 @@ export type IMakeClearanceInput = export type IMakeClearanceOutput = Mutations.Capital.MakeClearance.IOutput[typeof Mutations.Capital.MakeClearance.name]; -export type IGenerateProjectGenerationAgreementInput = - Mutations.Capital.GenerateProjectGenerationAgreement.IInput['data']; -export type IGenerateProjectGenerationAgreementOutput = - Mutations.Capital.GenerateProjectGenerationAgreement.IOutput[typeof Mutations.Capital.GenerateProjectGenerationAgreement.name]; +export type IGenerateProjectGenerationContractInput = + Mutations.Capital.GenerateProjectGenerationContract.IInput['data']; +export type IGenerateProjectGenerationContractOutput = + Mutations.Capital.GenerateProjectGenerationContract.IOutput[typeof Mutations.Capital.GenerateProjectGenerationContract.name]; -export type IGenerateComponentGenerationAgreementInput = - Mutations.Capital.GenerateComponentGenerationAgreement.IInput['data']; -export type IGenerateComponentGenerationAgreementOutput = - Mutations.Capital.GenerateComponentGenerationAgreement.IOutput[typeof Mutations.Capital.GenerateComponentGenerationAgreement.name]; +export type IGenerateComponentGenerationContractInput = + Mutations.Capital.GenerateComponentGenerationContract.IInput['data']; +export type IGenerateComponentGenerationContractOutput = + Mutations.Capital.GenerateComponentGenerationContract.IOutput[typeof Mutations.Capital.GenerateComponentGenerationContract.name]; export type { IGenerateDocumentInput, IGeneratedDocumentOutput }; @@ -32,12 +32,12 @@ async function makeClearance( return result; } -async function generateProjectGenerationAgreement( - data: IGenerateProjectGenerationAgreementInput, - options?: Mutations.Capital.GenerateProjectGenerationAgreement.IInput['options'], -): Promise { - const { [Mutations.Capital.GenerateProjectGenerationAgreement.name]: result } = - await client.Mutation(Mutations.Capital.GenerateProjectGenerationAgreement.mutation, { +async function generateProjectGenerationContract( + data: IGenerateProjectGenerationContractInput, + options?: Mutations.Capital.GenerateProjectGenerationContract.IInput['options'], +): Promise { + const { [Mutations.Capital.GenerateProjectGenerationContract.name]: result } = + await client.Mutation(Mutations.Capital.GenerateProjectGenerationContract.mutation, { variables: { data, options, @@ -47,12 +47,12 @@ async function generateProjectGenerationAgreement( return result; } -async function generateComponentGenerationAgreement( - data: IGenerateComponentGenerationAgreementInput, - options?: Mutations.Capital.GenerateComponentGenerationAgreement.IInput['options'], -): Promise { - const { [Mutations.Capital.GenerateComponentGenerationAgreement.name]: result } = - await client.Mutation(Mutations.Capital.GenerateComponentGenerationAgreement.mutation, { +async function generateComponentGenerationContract( + data: IGenerateComponentGenerationContractInput, + options?: Mutations.Capital.GenerateComponentGenerationContract.IInput['options'], +): Promise { + const { [Mutations.Capital.GenerateComponentGenerationContract.name]: result } = + await client.Mutation(Mutations.Capital.GenerateComponentGenerationContract.mutation, { variables: { data, options, @@ -64,6 +64,6 @@ async function generateComponentGenerationAgreement( export const api = { makeClearance, - generateProjectGenerationAgreement, - generateComponentGenerationAgreement, + generateProjectGenerationContract, + generateComponentGenerationContract, }; diff --git a/components/desktop/extensions/capital/features/Contributor/MakeClearance/model/index.ts b/components/desktop/extensions/capital/features/Contributor/MakeClearance/model/index.ts index 281d192f847..b229a26a715 100644 --- a/components/desktop/extensions/capital/features/Contributor/MakeClearance/model/index.ts +++ b/components/desktop/extensions/capital/features/Contributor/MakeClearance/model/index.ts @@ -3,10 +3,10 @@ import { api, type IMakeClearanceInput, type IMakeClearanceOutput, - type IGenerateProjectGenerationAgreementInput, - type IGenerateProjectGenerationAgreementOutput, - type IGenerateComponentGenerationAgreementInput, - type IGenerateComponentGenerationAgreementOutput + type IGenerateProjectGenerationContractInput, + type IGenerateProjectGenerationContractOutput, + type IGenerateComponentGenerationContractInput, + type IGenerateComponentGenerationContractOutput } from '../api'; import { useSignDocument } from 'src/shared/lib/document/model/entity'; import { useSessionStore } from 'src/entities/Session/model'; @@ -15,8 +15,8 @@ import type { IGenerateDocumentInput, IGeneratedDocumentOutput } from 'src/share import type { IGetProjectOutput } from 'app/extensions/capital/entities/Project/model'; export type { IMakeClearanceInput, IMakeClearanceOutput }; -export type { IGenerateProjectGenerationAgreementInput, IGenerateProjectGenerationAgreementOutput }; -export type { IGenerateComponentGenerationAgreementInput, IGenerateComponentGenerationAgreementOutput }; +export type { IGenerateProjectGenerationContractInput, IGenerateProjectGenerationContractOutput }; +export type { IGenerateComponentGenerationContractInput, IGenerateComponentGenerationContractOutput }; export type { IGenerateDocumentInput, IGeneratedDocumentOutput }; export function useMakeClearance() { @@ -37,26 +37,26 @@ export function useMakeClearance() { } }; - const generateProjectGenerationAgreement = async ( - input: IGenerateProjectGenerationAgreementInput, - options?: Parameters[1] - ): Promise => { + const generateProjectGenerationContract = async ( + input: IGenerateProjectGenerationContractInput, + options?: Parameters[1] + ): Promise => { isLoading.value = true; try { - const result = await api.generateProjectGenerationAgreement(input, options); + const result = await api.generateProjectGenerationContract(input, options); return result; } finally { isLoading.value = false; } }; - const generateComponentGenerationAgreement = async ( - input: IGenerateComponentGenerationAgreementInput, - options?: Parameters[1] - ): Promise => { + const generateComponentGenerationContract = async ( + input: IGenerateComponentGenerationContractInput, + options?: Parameters[1] + ): Promise => { isLoading.value = true; try { - const result = await api.generateComponentGenerationAgreement(input, options); + const result = await api.generateComponentGenerationContract(input, options); return result; } finally { isLoading.value = false; @@ -99,7 +99,7 @@ export function useMakeClearance() { throw new Error('ミミセミエミクムひオミサム袴ミコミクミケ ミソムミセミオミコム ミスミオ ミスミーミケミエミオミス ミエミサム ミコミセミシミソミセミスミオミスムひー'); } - const generateInput: IGenerateComponentGenerationAgreementInput = { + const generateInput: IGenerateComponentGenerationContractInput = { coopname, username, component_hash: project.project_hash, @@ -107,17 +107,17 @@ export function useMakeClearance() { lang: 'ru', }; - generatedDocument = await generateComponentGenerationAgreement(generateInput); + generatedDocument = await generateComponentGenerationContract(generateInput); } else { // ミ寅オミスミオムミクムムσオミシ ミエミセミコムσシミオミスム ミソムミクミサミセミカミオミスミクム ミコ ミエミセミウミセミイミセムム ミエミサム ミソムミセミオミコムひー (1002) - const generateInput: IGenerateProjectGenerationAgreementInput = { + const generateInput: IGenerateProjectGenerationContractInput = { coopname, username, project_hash: project.project_hash, lang: 'ru', }; - generatedDocument = await generateProjectGenerationAgreement(generateInput); + generatedDocument = await generateProjectGenerationContract(generateInput); } // 2. ミ渙セミエミソミクムム巾イミーミオミシ ムミウミオミスミオムミクムミセミイミーミスミスム巾ケ ミエミセミコムσシミオミスム ミセミエミクミスミームミスミセミケ ミソミセミエミソミクムム袴 @@ -139,8 +139,8 @@ export function useMakeClearance() { return { makeClearance, - generateProjectGenerationAgreement, - generateComponentGenerationAgreement, + generateProjectGenerationContract, + generateComponentGenerationContract, signGeneratedDocument, respondToInvite, isLoading, diff --git a/components/desktop/extensions/capital/features/Contributor/RegisterContributor/api/index.ts b/components/desktop/extensions/capital/features/Contributor/RegisterContributor/api/index.ts index 1db552c801c..eb0ed5b33e2 100644 --- a/components/desktop/extensions/capital/features/Contributor/RegisterContributor/api/index.ts +++ b/components/desktop/extensions/capital/features/Contributor/RegisterContributor/api/index.ts @@ -1,5 +1,5 @@ import type { IRegisterContributorOutput } from 'app/extensions/capital/entities/Contributor/model'; -import type { IRegisterContributorInput, IGenerateGenerationAgreementInput } from '../model'; +import type { IRegisterContributorInput, IGenerateGenerationContractInput } from '../model'; import type { IGenerateDocumentOptionsInput, IGeneratedDocumentOutput, @@ -20,12 +20,12 @@ async function registerContributor( return result; } -async function generateGenerationAgreement( - data: IGenerateGenerationAgreementInput, +async function generateGenerationContract( + data: IGenerateGenerationContractInput, options?: IGenerateDocumentOptionsInput, ): Promise { - const { [Mutations.Capital.GenerateGenerationAgreement.name]: result } = - await client.Mutation(Mutations.Capital.GenerateGenerationAgreement.mutation, { + const { [Mutations.Capital.GenerateGenerationContract.name]: result } = + await client.Mutation(Mutations.Capital.GenerateGenerationContract.mutation, { variables: { data, options, @@ -37,5 +37,5 @@ async function generateGenerationAgreement( export const api = { registerContributor, - generateGenerationAgreement, + generateGenerationContract, }; diff --git a/components/desktop/extensions/capital/features/Contributor/RegisterContributor/model/index.ts b/components/desktop/extensions/capital/features/Contributor/RegisterContributor/model/index.ts index e4240de2bca..eb297252e3f 100644 --- a/components/desktop/extensions/capital/features/Contributor/RegisterContributor/model/index.ts +++ b/components/desktop/extensions/capital/features/Contributor/RegisterContributor/model/index.ts @@ -14,8 +14,8 @@ import { generateUniqueHash } from 'src/shared/lib/utils/generateUniqueHash'; export type IRegisterContributorInput = Mutations.Capital.RegisterContributor.IInput['data']; -export type IGenerateGenerationAgreementInput = - Mutations.Capital.GenerateGenerationAgreement.IInput['data']; +export type IGenerateGenerationContractInput = + Mutations.Capital.GenerateGenerationContract.IInput['data']; export function useRegisterContributor() { const store = useContributorStore(); @@ -54,13 +54,13 @@ export function useRegisterContributor() { contributorHash.value = await generateUniqueHash(); } - const data: IGenerateGenerationAgreementInput = { + const data: IGenerateGenerationContractInput = { coopname: system.info.coopname, username: session.username, contributor_hash: contributorHash.value, }; console.log('沐 ミ寅オミスミオムミクムムσオミシ ミエミーミスミスム巾オ ミエミサム ミウミオミスミオムミームミクミク ミエミセミウミセミイミセムミー:', data); - generatedDocument.value = await api.generateGenerationAgreement(data); + generatedDocument.value = await api.generateGenerationContract(data); return generatedDocument.value; } catch (error) { console.error('ミ樮威クミアミコミー ミソムミク ミウミオミスミオムミームミクミク ミエミセミウミセミイミセムミー:', error); diff --git a/components/desktop/extensions/capital/features/Onboarding/model/composable.ts b/components/desktop/extensions/capital/features/Onboarding/model/composable.ts index a7cce93bad2..3334a291619 100644 --- a/components/desktop/extensions/capital/features/Onboarding/model/composable.ts +++ b/components/desktop/extensions/capital/features/Onboarding/model/composable.ts @@ -26,7 +26,7 @@ export const useCapitalOnboarding = () => { // ミ慴ーミソミソミクミスミウ ム威ーミウミセミイ ミスミー registry_id const stepToRegistryId: Record = { 'generator_program_template': 994, - 'generation_agreement_template': 997, + 'generation_contract_template': 997, 'blagorost_program': 998, 'blagorost_offer_template': 999, }; @@ -89,15 +89,15 @@ export const useCapitalOnboarding = () => { hash: typeof state?.onboarding_generator_program_template_hash === 'string' && state.onboarding_generator_program_template_hash ? state.onboarding_generator_program_template_hash : null, }, { - id: 'generation_agreement_template', + id: 'generation_contract_template', title: 'ミィミーミアミサミセミス ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク', description: 'ミ」ムひイミオムミカミエミオミスミクミオ ム威ーミアミサミセミスミー ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク ミエミサム ムミーミアミセムび ミソミセ ミソムミセミウムミーミシミシミオ', question: 'ミ ムτひイミオムミカミエミオミスミクミク ム威ーミアミサミセミスミー ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク', decision: '', // ミ帯σエミオム ミキミーミソミセミサミスミオミスミセ ムミオムミオミキ ミウミオミスミオムミームミクム ミエミセミコムσシミオミスムひー decisionPrefix: 'ミ」ムひイミオムミエミクムび ム威ーミアミサミセミス ミエミセミウミセミイミセムミー ムτミームムひクム ミイ ムミセミキム紹ケムムひイミオミスミスミセミケ ミエミオム肖ひオミサム糊スミセムムひク:', - status: state?.generation_agreement_template_done ? 'completed' : - state?.onboarding_generation_agreement_template_hash ? 'in_progress' : 'pending', - hash: typeof state?.onboarding_generation_agreement_template_hash === 'string' && state.onboarding_generation_agreement_template_hash ? state.onboarding_generation_agreement_template_hash : null, + status: state?.generation_contract_template_done ? 'completed' : + state?.onboarding_generation_contract_template_hash ? 'in_progress' : 'pending', + hash: typeof state?.onboarding_generation_contract_template_hash === 'string' && state.onboarding_generation_contract_template_hash ? state.onboarding_generation_contract_template_hash : null, }, { id: 'blagorost_program', @@ -109,7 +109,7 @@ export const useCapitalOnboarding = () => { status: state?.blagorost_provision_done ? 'completed' : state?.onboarding_blagorost_provision_hash ? 'in_progress' : 'pending', hash: typeof state?.onboarding_blagorost_provision_hash === 'string' && state.onboarding_blagorost_provision_hash ? state.onboarding_blagorost_provision_hash : null, - depends_on: ['generation_agreement_template'], // ミ厘ーミイミクムミクム ミセム ムτひイミオムミカミエミオミスミクム ム威ーミアミサミセミスミー ミエミセミウミセミイミセムミー + // depends_on: ['generation_contract_template'], // ミ厘ーミイミクムミクム ミセム ムτひイミオムミカミエミオミスミクム ム威ーミアミサミセミスミー ミエミセミウミセミイミセムミー }, { id: 'blagorost_offer_template', diff --git a/components/desktop/extensions/capital/pages/CapitalBase/ui/CapitalBase.vue b/components/desktop/extensions/capital/pages/CapitalBase/ui/CapitalBase.vue index 16f5b5166e8..a2627671a0b 100644 --- a/components/desktop/extensions/capital/pages/CapitalBase/ui/CapitalBase.vue +++ b/components/desktop/extensions/capital/pages/CapitalBase/ui/CapitalBase.vue @@ -40,7 +40,7 @@ const { isOnboardingCompleted, loadState } = useCapitalOnboarding(); // ミ湲ミセミイミオムミコミー ミソミセミサミスミセミケ ムミオミウミクムムびミームミクミク (ミオムムび ミコミセミスムびミーミコム ミ ミオムムび ムミセミウミサミーム威オミスミクミオ ム ミソムミセミウムミーミシミシミセミケ) const isFullyRegistered = computed(() => { - return contributorStore.isGenerationAgreementCompleted && contributorStore.isCapitalAgreementCompleted; + return contributorStore.isGenerationContractCompleted && contributorStore.isCapitalAgreementCompleted; }); // ミ湲ミセミイミオムミコミー ミキミーミイミオムム威オミスミクム ミセミスミアミセムミエミクミスミウミー ミコミーミソミクムひーミサミクミキミームミクミク diff --git a/components/desktop/extensions/capital/pages/CapitalRegistrationPage/ui/CapitalRegistrationPage.vue b/components/desktop/extensions/capital/pages/CapitalRegistrationPage/ui/CapitalRegistrationPage.vue index 970cb5813cf..44e3dc55c87 100644 --- a/components/desktop/extensions/capital/pages/CapitalRegistrationPage/ui/CapitalRegistrationPage.vue +++ b/components/desktop/extensions/capital/pages/CapitalRegistrationPage/ui/CapitalRegistrationPage.vue @@ -440,7 +440,7 @@ const prevStep = () => { // ミ榧アミスミセミイミサミオミスミクミオ ムひオミコムτ禍オミウミセ ム威ーミウミー ミスミー ミセムミスミセミイミオ ムミセムムひセム紹スミクム ムミオミウミクムムびミームミクミク const updateCurrentStep = () => { - if (!contributorStore.isGenerationAgreementCompleted) { + if (!contributorStore.isGenerationContractCompleted) { // ミ篇ミサミク ムミオミウミクムムびミームミクム ムτミームムひクム ミスミオ ミキミーミイミオムム威オミスミー, ミスミームミクミスミーミオミシ ム ミイム巾アミセムミー ムミセミサミオミケ currentStep.value = steps.roles; } else if (!contributorStore.isCapitalAgreementCompleted) { @@ -453,7 +453,7 @@ const updateCurrentStep = () => { }; // ミ。ミサミオミエミクミシ ムひセミサム糊コミセ ミキミー ミクミキミシミオミスミオミスミクム紹シミク ムムひームびτミー ムミオミウミクムムびミームミクミク -watch(() => contributorStore.isGenerationAgreementCompleted, updateCurrentStep); +watch(() => contributorStore.isGenerationContractCompleted, updateCurrentStep); watch(() => contributorStore.isCapitalAgreementCompleted, updateCurrentStep); /** diff --git a/components/desktop/src/entities/Registrator/model/store.ts b/components/desktop/src/entities/Registrator/model/store.ts index 202f0e40e07..87a58eb90b4 100644 --- a/components/desktop/src/entities/Registrator/model/store.ts +++ b/components/desktop/src/entities/Registrator/model/store.ts @@ -119,7 +119,6 @@ export const useRegistratorStore = defineStore( email: '', selectedBranch: '', selectedProgramKey: '', - requiresProgramSelection: false, account: structuredClone(initialAccountState), userData: structuredClone(initialUserDataState), signature: '', @@ -162,10 +161,18 @@ export const useRegistratorStore = defineStore( () => system.info?.cooperator_account.is_branched, ); + // ミ湲ミセミイミオムム紹オミシ ミスミオミセミアムミセミエミクミシミセムムび ミイム巾アミセムミー ミソムミセミウムミーミシミシム ミスミー ミセムミスミセミイミオ ムひクミソミー ミーミコミコミームσスムひー + const requiresProgramSelection = computed(() => { + const accountType = state.userData.type; + // ミ頒サム voskhod ミソミセミコミーミキム巾イミーミオミシ ミイム巾アミセム ミソムミセミウムミーミシミシム ミエミサム ミクミスミエミクミイミクミエムσーミサム糊スム錦 ミク ミソムミオミエミソムミクミスミクミシミームひオミサム袴ミコミクム ミーミコミコミームσスムひセミイ + return system.info?.coopname === 'voskhod' && + (accountType === 'individual' || accountType === 'entrepreneur'); + }); + const filteredSteps = computed(() => stepNames.filter((step) => { if (step === 'SelectBranch' && !isBranched.value) return false; - if (step === 'SelectProgram' && !state.requiresProgramSelection) return false; + if (step === 'SelectProgram' && !requiresProgramSelection.value) return false; return true; }), ); @@ -215,7 +222,6 @@ export const useRegistratorStore = defineStore( state.step = 1; state.selectedBranch = ''; state.selectedProgramKey = ''; - state.requiresProgramSelection = false; state.email = ''; state.account = structuredClone(initialAccountState); state.agreements = structuredClone(initialAgreementsState); diff --git a/components/desktop/src/features/User/CreateUser/model/index.ts b/components/desktop/src/features/User/CreateUser/model/index.ts index eb208087862..a4e359e341d 100644 --- a/components/desktop/src/features/User/CreateUser/model/index.ts +++ b/components/desktop/src/features/User/CreateUser/model/index.ts @@ -140,7 +140,7 @@ export function useCreateUser() { privacy_agreement: privacyDoc?.signed_document || store.privacyAgreement, signature_agreement: signatureDoc?.signed_document || store.signatureAgreement, user_agreement: userDoc?.signed_document || store.userAgreement, - program_key: registratorStore.state.selectedProgramKey || undefined, + program_key: registratorStore.state.selectedProgramKey as Zeus.ProgramKey | undefined, }; // ミ頒セミアミーミイミサム紹オミシ blagorost_offer ミオムミサミク ミオムムび diff --git a/components/desktop/src/pages/Registrator/SignUp/PayInitial.vue b/components/desktop/src/pages/Registrator/SignUp/PayInitial.vue index a28d9fc745d..e05a02c6fe9 100644 --- a/components/desktop/src/pages/Registrator/SignUp/PayInitial.vue +++ b/components/desktop/src/pages/Registrator/SignUp/PayInitial.vue @@ -18,7 +18,7 @@ q-step( diff --git a/components/desktop/src/pages/Registrator/SignUp/SetUserData.vue b/components/desktop/src/pages/Registrator/SignUp/SetUserData.vue index 163ad289723..170f9e5690c 100644 --- a/components/desktop/src/pages/Registrator/SignUp/SetUserData.vue +++ b/components/desktop/src/pages/Registrator/SignUp/SetUserData.vue @@ -39,13 +39,9 @@ div import { ref } from 'vue'; import { UserDataForm } from 'src/shared/ui/UserDataForm/UserDataForm'; import { useRegistratorStore } from 'src/entities/Registrator'; -import { useSystemStore } from 'src/entities/System/model'; import { StaticPrivacyDialog } from 'src/features/Agreementer/StaticPrivacyDialog'; -import { Queries } from '@coopenomics/sdk'; -import { client } from 'src/shared/api/client'; const store = useRegistratorStore(); -const systemStore = useSystemStore(); // ミ樮びミサミオミカミクミイミーミスミクミオ ミイム巾アムミーミス ミサミク ムひクミソ ミーミコミコミームσスムひー const isAccountTypeSelected = ref( @@ -55,34 +51,9 @@ const isAccountTypeSelected = ref( ); // ミ榧アムミーミアミセムびミクミコミク ムミセミアム錦ひクミケ ミセム UserDataForm -const onTypeSelected = async () => { +const onTypeSelected = () => { isAccountTypeSelected.value = true; - - // ミ湲ミセミイミオムム紹オミシ, ミスムσカミオミス ミサミク ミイム巾アミセム ミソムミセミウムミーミシミシム ミエミサム ミエミーミスミスミセミウミセ ムひクミソミー ミーミコミコミームσスムひー - try { - const accountType = store.state.userData.type; - if (accountType) { - const { [Queries.System.GetRegistrationConfig.name]: config } = await client.Query( - Queries.System.GetRegistrationConfig.query, - { - variables: { - coopname: systemStore.info.coopname, - account_type: accountType, - }, - } - ); - - store.state.requiresProgramSelection = config.requires_selection && config.programs.length > 0; - - // ミ篇ミサミク ミソムミセミウムミーミシミシミー ムひセミサム糊コミセ ミセミエミスミー - ミーミイムひセミシミームひクムミオムミコミク ミイム巾アミクムミーミオミシ ミオム - if (config.programs.length === 1) { - store.state.selectedProgramKey = config.programs[0].key; - } - } - } catch (e) { - console.error('Error checking program selection requirement:', e); - store.state.requiresProgramSelection = false; - } + // ミ」ミアミクムミーミオミシ ミームミクミスムムミセミスミスム巾ケ API ミイム巾キミセミイ ミセムびム社エミー - ミセミス ミアムσエミオム ミイ ムミサミオミエムτ紗禍オミシ ム威ーミウミオ }; const onTypeCleared = () => { @@ -91,7 +62,6 @@ const onTypeCleared = () => { store.state.agreements.condidential = false; // ミ。ミアムミームム巾イミーミオミシ ミイム巾アミセム ミソムミセミウムミーミシミシム store.state.selectedProgramKey = ''; - store.state.requiresProgramSelection = false; }; const setData = (userDataForm: any) => { diff --git a/components/desktop/src/pages/Registrator/SignUp/SignStatement.vue b/components/desktop/src/pages/Registrator/SignUp/SignStatement.vue index a6af9349b23..6c2eeb23457 100644 --- a/components/desktop/src/pages/Registrator/SignUp/SignStatement.vue +++ b/components/desktop/src/pages/Registrator/SignUp/SignStatement.vue @@ -30,7 +30,7 @@ div