@coopenomics/innercoop 2026.10.11 → 2026.10.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,6 +159,8 @@ const PARTICIPANT_REGISTERED_EVENT = "participant.registered";
159
159
  const PROGRAM_WALLET_PORT = Symbol.for("Innercoop.CorePort.ProgramWallet");
160
160
  const USER_WALLET_PORT = Symbol.for("Innercoop.CorePort.UserWallet");
161
161
 
162
+ const WALLET_WITHDRAW_PORT = Symbol.for("Innercoop.CorePort.WalletWithdraw");
163
+
162
164
  const PROGRAM_AGREEMENT_PORT = Symbol.for("Innercoop.CorePort.ProgramAgreement");
163
165
 
164
166
  var InnerKeyPermission = /* @__PURE__ */ ((InnerKeyPermission2) => {
@@ -169,6 +171,8 @@ const VAULT_PORT = Symbol.for("Innercoop.CorePort.Vault");
169
171
 
170
172
  const COOP_CREDENTIAL_PORT = Symbol.for("Innercoop.CorePort.CoopCredential");
171
173
 
174
+ const MEMBER_EXIT_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.MemberExitRegistry");
175
+
172
176
  const ONBOARDING_STEP_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.OnboardingStepRegistry");
173
177
  const ONBOARDING_COMPLETED_EVENT = "onboarding.completed";
174
178
 
@@ -182,6 +186,8 @@ var ProgramKey = /* @__PURE__ */ ((ProgramKey2) => {
182
186
  ProgramKey2["GENERATION"] = "GENERATION";
183
187
  ProgramKey2["CAPITALIZATION"] = "CAPITALIZATION";
184
188
  ProgramKey2["MARKETPLACE"] = "MARKETPLACE";
189
+ ProgramKey2["EDUCATION"] = "EDUCATION";
190
+ ProgramKey2["EDUCATION_TEACHING"] = "EDUCATION_TEACHING";
185
191
  ProgramKey2["UNDEFINED"] = "UNDEFINED";
186
192
  return ProgramKey2;
187
193
  })(ProgramKey || {});
@@ -248,8 +254,11 @@ const USER_DATA_PORT = Symbol.for("Innercoop.CorePort.UserData");
248
254
  const ORGANIZATION_PORT = Symbol.for("Innercoop.CorePort.Organization");
249
255
  const INDIVIDUAL_PORT = Symbol.for("Innercoop.CorePort.Individual");
250
256
 
257
+ const USER_AVATAR_PORT = Symbol.for("Innercoop.CorePort.UserAvatar");
258
+
259
+ const ROLE_ASSIGNMENT_CHANGED_EVENT = "innercoop.role-assignment.changed";
251
260
  const ROLE_ASSIGNMENTS_PORT = Symbol.for("Innercoop.CorePort.RoleAssignments");
252
261
 
253
262
  const ACCOUNTING_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.AccountingRegistry");
254
263
 
255
- export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, InnerAccountType, InnerFileStorageBackendUnavailableError, InnerFileStorageBucketNotConfiguredError, InnerFileStorageError, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerKeyPermission, InnerOrganizationType, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, SECRET_CIPHER_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification };
264
+ export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, InnerAccountType, InnerFileStorageBackendUnavailableError, InnerFileStorageBucketNotConfiguredError, InnerFileStorageError, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerKeyPermission, InnerOrganizationType, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, SECRET_CIPHER_PORT, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification };
@@ -13,7 +13,7 @@ interface InnerChairmanApproval {
13
13
  coopname: string;
14
14
  /** Пайщик, чей документ ждёт подписи. */
15
15
  username: string;
16
- /** Действие контракта-инициатора при одобрении (`apprvcontr`, `apprvannex`…) — тип одобрения. */
16
+ /** Действие контракта-инициатора при одобрении (`apprvcontr`, `apprvappndx`…) — тип одобрения. */
17
17
  action: string;
18
18
  status: InnerChairmanApprovalStatus;
19
19
  /** ISO 8601. */
@@ -13,7 +13,7 @@ interface InnerChairmanApproval {
13
13
  coopname: string;
14
14
  /** Пайщик, чей документ ждёт подписи. */
15
15
  username: string;
16
- /** Действие контракта-инициатора при одобрении (`apprvcontr`, `apprvannex`…) — тип одобрения. */
16
+ /** Действие контракта-инициатора при одобрении (`apprvcontr`, `apprvappndx`…) — тип одобрения. */
17
17
  action: string;
18
18
  status: InnerChairmanApprovalStatus;
19
19
  /** ISO 8601. */
@@ -13,7 +13,7 @@ interface InnerChairmanApproval {
13
13
  coopname: string;
14
14
  /** Пайщик, чей документ ждёт подписи. */
15
15
  username: string;
16
- /** Действие контракта-инициатора при одобрении (`apprvcontr`, `apprvannex`…) — тип одобрения. */
16
+ /** Действие контракта-инициатора при одобрении (`apprvcontr`, `apprvappndx`…) — тип одобрения. */
17
17
  action: string;
18
18
  status: InnerChairmanApprovalStatus;
19
19
  /** ISO 8601. */
package/dist/index.cjs CHANGED
@@ -7,6 +7,10 @@ const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT = Symbol.for("Innercoop.Cor
7
7
 
8
8
  const DESKTOP_GRANTS_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.DesktopGrantsRegistry");
9
9
 
10
+ const DESKTOP_GRANTS_FILTER_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.DesktopGrantsFilterRegistry");
11
+
12
+ const REGISTRATION_OFFER_FILTER_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.RegistrationOfferFilterRegistry");
13
+
10
14
  const GLOBAL_SEARCH_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.GlobalSearchRegistry");
11
15
 
12
16
  exports.ACCOUNTING_REGISTRY_PORT = corePorts_index.ACCOUNTING_REGISTRY_PORT;
@@ -47,6 +51,7 @@ exports.InnerOrganizationType = corePorts_index.InnerOrganizationType;
47
51
  exports.LEDGER2_HISTORY_PORT = corePorts_index.LEDGER2_HISTORY_PORT;
48
52
  exports.LOGGER_PORT = corePorts_index.LOGGER_PORT;
49
53
  exports.MEET_PORT = corePorts_index.MEET_PORT;
54
+ exports.MEMBER_EXIT_REGISTRY_PORT = corePorts_index.MEMBER_EXIT_REGISTRY_PORT;
50
55
  exports.MESSAGE_CHANNEL_PORT = corePorts_index.MESSAGE_CHANNEL_PORT;
51
56
  exports.MUTATION_LOG_PORT = corePorts_index.MUTATION_LOG_PORT;
52
57
  exports.MonoAccountStatus = corePorts_index.MonoAccountStatus;
@@ -73,7 +78,9 @@ exports.ProgramType = corePorts_index.ProgramType;
73
78
  exports.REALTIME_CHANNEL_PORT = corePorts_index.REALTIME_CHANNEL_PORT;
74
79
  exports.REGISTRATION_REGISTRY_PORT = corePorts_index.REGISTRATION_REGISTRY_PORT;
75
80
  exports.ROLE_ASSIGNMENTS_PORT = corePorts_index.ROLE_ASSIGNMENTS_PORT;
81
+ exports.ROLE_ASSIGNMENT_CHANGED_EVENT = corePorts_index.ROLE_ASSIGNMENT_CHANGED_EVENT;
76
82
  exports.SECRET_CIPHER_PORT = corePorts_index.SECRET_CIPHER_PORT;
83
+ exports.USER_AVATAR_PORT = corePorts_index.USER_AVATAR_PORT;
77
84
  exports.USER_CERTIFICATE_PORT = corePorts_index.USER_CERTIFICATE_PORT;
78
85
  exports.USER_DATA_PORT = corePorts_index.USER_DATA_PORT;
79
86
  exports.USER_DIRECTORY_PORT = corePorts_index.USER_DIRECTORY_PORT;
@@ -81,6 +88,7 @@ exports.USER_WALLET_PORT = corePorts_index.USER_WALLET_PORT;
81
88
  exports.VAT_EXEMPT_NOTE = corePorts_index.VAT_EXEMPT_NOTE;
82
89
  exports.VAULT_PORT = corePorts_index.VAULT_PORT;
83
90
  exports.VERIFICATION_PORT = corePorts_index.VERIFICATION_PORT;
91
+ exports.WALLET_WITHDRAW_PORT = corePorts_index.WALLET_WITHDRAW_PORT;
84
92
  exports.getProgramId = corePorts_index.getProgramId;
85
93
  exports.getProgramType = corePorts_index.getProgramType;
86
94
  exports.isEligibleForParticipantMassNotification = corePorts_index.isEligibleForParticipantMassNotification;
@@ -100,6 +108,8 @@ exports.MATRIX_ROOM_MESSAGING_PORT = crossPluginPorts_index.MATRIX_ROOM_MESSAGIN
100
108
  exports.PROJECT_CAPITAL_CLEARANCE_PORT = crossPluginPorts_index.PROJECT_CAPITAL_CLEARANCE_PORT;
101
109
  exports.PROJECT_COMMUNICATION_ARTIFACTS_PORT = crossPluginPorts_index.PROJECT_COMMUNICATION_ARTIFACTS_PORT;
102
110
  exports.SOVIET_ROBOT_PORT = crossPluginPorts_index.SOVIET_ROBOT_PORT;
111
+ exports.DESKTOP_GRANTS_FILTER_REGISTRY_PORT = DESKTOP_GRANTS_FILTER_REGISTRY_PORT;
103
112
  exports.DESKTOP_GRANTS_REGISTRY_PORT = DESKTOP_GRANTS_REGISTRY_PORT;
104
113
  exports.GLOBAL_SEARCH_REGISTRY_PORT = GLOBAL_SEARCH_REGISTRY_PORT;
105
114
  exports.REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT = REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT;
115
+ exports.REGISTRATION_OFFER_FILTER_REGISTRY_PORT = REGISTRATION_OFFER_FILTER_REGISTRY_PORT;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
- export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, CreateTrackingRuleInput, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeVarsPort, ICouncilPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, InnerAccount, InnerAccountType, InnerAgreementCatalogItem, InnerAgreementRegistration, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerOrganizationType, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPrivateAccount, InnerProgramRegistration, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, SECRET_CIPHER_PORT, TrackingRule, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.cjs';
1
+ import { InnerAccountType, InnerProgramRegistration, InnerAgreementRegistration } from './core-ports/index.cjs';
2
+ export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, CreateTrackingRuleInput, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeVarsPort, ICouncilPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccount, InnerAgreementCatalogItem, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerOrganizationType, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.cjs';
2
3
  export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CALENDAR_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, COOP_CALENDAR_EVENT_NOTIFICATION_PORT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCalendarPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, ICoopCalendarEventNotificationPort, IExpenseChassisPort, IMatrixRoomMessagingPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerCalendarEventWindow, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerCoopCalendarEventNotificationInput, InnerCoopCalendarEventRead, InnerCoopCalendarNotificationRoomKind, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.cjs';
3
4
 
4
5
  /**
@@ -38,6 +39,18 @@ interface IProgramDocumentParametersHook {
38
39
  interface IMarketplaceDocumentParametersHook {
39
40
  generateMarketplaceOfferParameters(coopname: string, username: string): Promise<void>;
40
41
  }
42
+ /**
43
+ * Параметры оферт любой программы по её ключу — общий путь для новых
44
+ * расширений. Ядро, собирая документы вступления по выбранной программе,
45
+ * ищет хук по `programKey` и зовёт его до генерации: расширение пишет в Udata
46
+ * персональные номер и дату, которые потом читает фабрика документа.
47
+ * Именованные хуки выше остаются для Благороста и Стола заказов.
48
+ */
49
+ interface IProgramOfferParametersHook {
50
+ /** Ключ программы из `ProgramKey`, за документы которой отвечает хук. */
51
+ readonly programKey: string;
52
+ generateOfferParameters(coopname: string, username: string): Promise<void>;
53
+ }
41
54
  /**
42
55
  * Реестр хуков. Расширение кладёт свою реализацию сюда при запуске, а вызывает
43
56
  * её ядро, когда собирает документы вступления.
@@ -53,6 +66,8 @@ interface IRegistrationDocumentParametersRegistryPort {
53
66
  registerProgramHook(hook: IProgramDocumentParametersHook): void;
54
67
  /** Оферта Стола заказов. */
55
68
  registerMarketplaceHook(hook: IMarketplaceDocumentParametersHook): void;
69
+ /** Оферты программы по ключу — для всех последующих расширений. */
70
+ registerProgramOfferHook(hook: IProgramOfferParametersHook): void;
56
71
  }
57
72
  declare const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT: unique symbol;
58
73
 
@@ -102,6 +117,87 @@ interface IDesktopGrantsRegistryPort {
102
117
  }
103
118
  declare const DESKTOP_GRANTS_REGISTRY_PORT: unique symbol;
104
119
 
120
+ /**
121
+ * Сужение прав пайщика на столах ЧУЖОГО расширения.
122
+ *
123
+ * Одно приложение может менять видимость столов другого только через этот
124
+ * конвейер ядра и только в одну сторону — сужая. Ядро берёт набор, выданный
125
+ * владельцем стола, прогоняет его через все зарегистрированные фильтры и
126
+ * оставляет пересечение: `result = input ∩ filter_1(input) ∩ … ∩ filter_n(input)`.
127
+ * Пересечение коммутативно, поэтому порядок регистрации фильтров на итог не
128
+ * влияет, а добавить право фильтр не может по построению.
129
+ *
130
+ * Отказ фильтра (исключение, таймаут) ядро трактует в пользу владельца стола:
131
+ * набор остаётся нетронутым, а сбой попадает в журнал. Иначе чужая ошибка
132
+ * прятала бы работающее приложение.
133
+ *
134
+ * К собственным столам фильтр не применяется — свои права расширение
135
+ * формирует в `IDesktopGrantsHook`. К расширениям без провайдера грантов
136
+ * (видимость по ролям) фильтр тоже не применяется: сужать нечего.
137
+ *
138
+ * Пример: «Образовательный мост» оставляет столы «Благороста» только
139
+ * преподавателям — без собственного интерфейса к «Благоросту» и без правок в нём.
140
+ */
141
+ interface InnerDesktopGrantsFilterTarget {
142
+ /** Расширение-владелец стола, чьи права сужаются. */
143
+ extensionName: string;
144
+ /** Права, выданные владельцем (после предыдущих фильтров — не важно, каких). */
145
+ grants: readonly string[];
146
+ }
147
+ interface IDesktopGrantsFilterHook {
148
+ /** Имя расширения-автора фильтра в реестре платформы. */
149
+ readonly extensionName: string;
150
+ /**
151
+ * Какие из выданных прав оставить. Возвращённые права, которых не было во
152
+ * входном наборе, ядро отбрасывает. Вернуть `target.grants` — значит не
153
+ * вмешиваться.
154
+ */
155
+ filterGrants(target: InnerDesktopGrantsFilterTarget, context: InnerDesktopGrantsContext): Promise<readonly string[]>;
156
+ }
157
+ /** Реестр фильтров. Расширение кладёт себя сюда при запуске. */
158
+ interface IDesktopGrantsFilterRegistryPort {
159
+ register(filter: IDesktopGrantsFilterHook): void;
160
+ /** Снять фильтр при остановке расширения. */
161
+ unregister(extensionName: string): void;
162
+ }
163
+ declare const DESKTOP_GRANTS_FILTER_REGISTRY_PORT: unique symbol;
164
+
165
+ /**
166
+ * Сужение витрины вступления: какие программы и оферты ЧУЖИХ расширений
167
+ * предлагать вступающему пайщику.
168
+ *
169
+ * Та же дисциплина, что у `IDesktopGrantsFilterHook`: ядро показывает
170
+ * пересечение исходного списка со всеми фильтрами, порядок не важен, добавить
171
+ * чужую программу фильтр не может, сбой фильтра трактуется в пользу владельца
172
+ * программы. Собственные программы расширение не фильтрует — оно их
173
+ * регистрирует или нет.
174
+ *
175
+ * Фильтр синхронный: он — политика над реестром в памяти, обращаться наружу
176
+ * ему незачем, а конвейер регистрации ядра синхронный насквозь.
177
+ *
178
+ * Скрытая при вступлении программа не запрещена пайщику навсегда: принять её
179
+ * оферту он может позже со стола расширения-владельца. Пример: «Образовательный
180
+ * мост» не предлагает оферты «Благороста» при вступлении — их подпишет тот, кто
181
+ * станет преподавателем.
182
+ */
183
+ interface InnerRegistrationOfferFilterContext {
184
+ coopname?: string;
185
+ accountType?: InnerAccountType | string;
186
+ }
187
+ interface IRegistrationOfferFilterHook {
188
+ /** Имя расширения-автора фильтра в реестре платформы. */
189
+ readonly extensionName: string;
190
+ /** Ключи программ, которые оставить в витрине. */
191
+ filterPrograms(programs: readonly InnerProgramRegistration[], context: InnerRegistrationOfferFilterContext): readonly string[];
192
+ /** Идентификаторы оферт, которые оставить. */
193
+ filterAgreements(agreements: readonly InnerAgreementRegistration[], context: InnerRegistrationOfferFilterContext): readonly string[];
194
+ }
195
+ interface IRegistrationOfferFilterRegistryPort {
196
+ register(filter: IRegistrationOfferFilterHook): void;
197
+ unregister(extensionName: string): void;
198
+ }
199
+ declare const REGISTRATION_OFFER_FILTER_REGISTRY_PORT: unique symbol;
200
+
105
201
  /**
106
202
  * Поставщик единого поиска.
107
203
  *
@@ -172,5 +268,5 @@ interface IGlobalSearchRegistryPort {
172
268
  }
173
269
  declare const GLOBAL_SEARCH_REGISTRY_PORT: unique symbol;
174
270
 
175
- export { DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT };
176
- export type { IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IProgramDocumentParametersHook, IRegistrationDocumentParametersRegistryPort, InnerDesktopGrantsContext, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute };
271
+ export { DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerProgramRegistration, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
272
+ export type { IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerRegistrationOfferFilterContext };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, CreateTrackingRuleInput, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeVarsPort, ICouncilPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, InnerAccount, InnerAccountType, InnerAgreementCatalogItem, InnerAgreementRegistration, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerOrganizationType, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPrivateAccount, InnerProgramRegistration, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, SECRET_CIPHER_PORT, TrackingRule, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.mjs';
1
+ import { InnerAccountType, InnerProgramRegistration, InnerAgreementRegistration } from './core-ports/index.mjs';
2
+ export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, CreateTrackingRuleInput, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeVarsPort, ICouncilPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccount, InnerAgreementCatalogItem, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerOrganizationType, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.mjs';
2
3
  export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CALENDAR_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, COOP_CALENDAR_EVENT_NOTIFICATION_PORT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCalendarPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, ICoopCalendarEventNotificationPort, IExpenseChassisPort, IMatrixRoomMessagingPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerCalendarEventWindow, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerCoopCalendarEventNotificationInput, InnerCoopCalendarEventRead, InnerCoopCalendarNotificationRoomKind, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.mjs';
3
4
 
4
5
  /**
@@ -38,6 +39,18 @@ interface IProgramDocumentParametersHook {
38
39
  interface IMarketplaceDocumentParametersHook {
39
40
  generateMarketplaceOfferParameters(coopname: string, username: string): Promise<void>;
40
41
  }
42
+ /**
43
+ * Параметры оферт любой программы по её ключу — общий путь для новых
44
+ * расширений. Ядро, собирая документы вступления по выбранной программе,
45
+ * ищет хук по `programKey` и зовёт его до генерации: расширение пишет в Udata
46
+ * персональные номер и дату, которые потом читает фабрика документа.
47
+ * Именованные хуки выше остаются для Благороста и Стола заказов.
48
+ */
49
+ interface IProgramOfferParametersHook {
50
+ /** Ключ программы из `ProgramKey`, за документы которой отвечает хук. */
51
+ readonly programKey: string;
52
+ generateOfferParameters(coopname: string, username: string): Promise<void>;
53
+ }
41
54
  /**
42
55
  * Реестр хуков. Расширение кладёт свою реализацию сюда при запуске, а вызывает
43
56
  * её ядро, когда собирает документы вступления.
@@ -53,6 +66,8 @@ interface IRegistrationDocumentParametersRegistryPort {
53
66
  registerProgramHook(hook: IProgramDocumentParametersHook): void;
54
67
  /** Оферта Стола заказов. */
55
68
  registerMarketplaceHook(hook: IMarketplaceDocumentParametersHook): void;
69
+ /** Оферты программы по ключу — для всех последующих расширений. */
70
+ registerProgramOfferHook(hook: IProgramOfferParametersHook): void;
56
71
  }
57
72
  declare const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT: unique symbol;
58
73
 
@@ -102,6 +117,87 @@ interface IDesktopGrantsRegistryPort {
102
117
  }
103
118
  declare const DESKTOP_GRANTS_REGISTRY_PORT: unique symbol;
104
119
 
120
+ /**
121
+ * Сужение прав пайщика на столах ЧУЖОГО расширения.
122
+ *
123
+ * Одно приложение может менять видимость столов другого только через этот
124
+ * конвейер ядра и только в одну сторону — сужая. Ядро берёт набор, выданный
125
+ * владельцем стола, прогоняет его через все зарегистрированные фильтры и
126
+ * оставляет пересечение: `result = input ∩ filter_1(input) ∩ … ∩ filter_n(input)`.
127
+ * Пересечение коммутативно, поэтому порядок регистрации фильтров на итог не
128
+ * влияет, а добавить право фильтр не может по построению.
129
+ *
130
+ * Отказ фильтра (исключение, таймаут) ядро трактует в пользу владельца стола:
131
+ * набор остаётся нетронутым, а сбой попадает в журнал. Иначе чужая ошибка
132
+ * прятала бы работающее приложение.
133
+ *
134
+ * К собственным столам фильтр не применяется — свои права расширение
135
+ * формирует в `IDesktopGrantsHook`. К расширениям без провайдера грантов
136
+ * (видимость по ролям) фильтр тоже не применяется: сужать нечего.
137
+ *
138
+ * Пример: «Образовательный мост» оставляет столы «Благороста» только
139
+ * преподавателям — без собственного интерфейса к «Благоросту» и без правок в нём.
140
+ */
141
+ interface InnerDesktopGrantsFilterTarget {
142
+ /** Расширение-владелец стола, чьи права сужаются. */
143
+ extensionName: string;
144
+ /** Права, выданные владельцем (после предыдущих фильтров — не важно, каких). */
145
+ grants: readonly string[];
146
+ }
147
+ interface IDesktopGrantsFilterHook {
148
+ /** Имя расширения-автора фильтра в реестре платформы. */
149
+ readonly extensionName: string;
150
+ /**
151
+ * Какие из выданных прав оставить. Возвращённые права, которых не было во
152
+ * входном наборе, ядро отбрасывает. Вернуть `target.grants` — значит не
153
+ * вмешиваться.
154
+ */
155
+ filterGrants(target: InnerDesktopGrantsFilterTarget, context: InnerDesktopGrantsContext): Promise<readonly string[]>;
156
+ }
157
+ /** Реестр фильтров. Расширение кладёт себя сюда при запуске. */
158
+ interface IDesktopGrantsFilterRegistryPort {
159
+ register(filter: IDesktopGrantsFilterHook): void;
160
+ /** Снять фильтр при остановке расширения. */
161
+ unregister(extensionName: string): void;
162
+ }
163
+ declare const DESKTOP_GRANTS_FILTER_REGISTRY_PORT: unique symbol;
164
+
165
+ /**
166
+ * Сужение витрины вступления: какие программы и оферты ЧУЖИХ расширений
167
+ * предлагать вступающему пайщику.
168
+ *
169
+ * Та же дисциплина, что у `IDesktopGrantsFilterHook`: ядро показывает
170
+ * пересечение исходного списка со всеми фильтрами, порядок не важен, добавить
171
+ * чужую программу фильтр не может, сбой фильтра трактуется в пользу владельца
172
+ * программы. Собственные программы расширение не фильтрует — оно их
173
+ * регистрирует или нет.
174
+ *
175
+ * Фильтр синхронный: он — политика над реестром в памяти, обращаться наружу
176
+ * ему незачем, а конвейер регистрации ядра синхронный насквозь.
177
+ *
178
+ * Скрытая при вступлении программа не запрещена пайщику навсегда: принять её
179
+ * оферту он может позже со стола расширения-владельца. Пример: «Образовательный
180
+ * мост» не предлагает оферты «Благороста» при вступлении — их подпишет тот, кто
181
+ * станет преподавателем.
182
+ */
183
+ interface InnerRegistrationOfferFilterContext {
184
+ coopname?: string;
185
+ accountType?: InnerAccountType | string;
186
+ }
187
+ interface IRegistrationOfferFilterHook {
188
+ /** Имя расширения-автора фильтра в реестре платформы. */
189
+ readonly extensionName: string;
190
+ /** Ключи программ, которые оставить в витрине. */
191
+ filterPrograms(programs: readonly InnerProgramRegistration[], context: InnerRegistrationOfferFilterContext): readonly string[];
192
+ /** Идентификаторы оферт, которые оставить. */
193
+ filterAgreements(agreements: readonly InnerAgreementRegistration[], context: InnerRegistrationOfferFilterContext): readonly string[];
194
+ }
195
+ interface IRegistrationOfferFilterRegistryPort {
196
+ register(filter: IRegistrationOfferFilterHook): void;
197
+ unregister(extensionName: string): void;
198
+ }
199
+ declare const REGISTRATION_OFFER_FILTER_REGISTRY_PORT: unique symbol;
200
+
105
201
  /**
106
202
  * Поставщик единого поиска.
107
203
  *
@@ -172,5 +268,5 @@ interface IGlobalSearchRegistryPort {
172
268
  }
173
269
  declare const GLOBAL_SEARCH_REGISTRY_PORT: unique symbol;
174
270
 
175
- export { DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT };
176
- export type { IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IProgramDocumentParametersHook, IRegistrationDocumentParametersRegistryPort, InnerDesktopGrantsContext, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute };
271
+ export { DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerProgramRegistration, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
272
+ export type { IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerRegistrationOfferFilterContext };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, CreateTrackingRuleInput, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeVarsPort, ICouncilPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, InnerAccount, InnerAccountType, InnerAgreementCatalogItem, InnerAgreementRegistration, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerOrganizationType, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPrivateAccount, InnerProgramRegistration, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, SECRET_CIPHER_PORT, TrackingRule, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.js';
1
+ import { InnerAccountType, InnerProgramRegistration, InnerAgreementRegistration } from './core-ports/index.js';
2
+ export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, CreateTrackingRuleInput, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionEventTypeString, DecisionProcessedResult, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, IAccountPort, IAccountingRegistryPort, IAgreementCatalogPort, IBranchPort, ICandidatePort, IChainChangesPort, IChainDeltaWaitPort, IChainPort, IChainResourcesPort, ICoopCredentialPort, ICooperativeVarsPort, ICouncilPort, IDecisionTrackingPort, IDocumentApprovalPort, IDocumentDeclarationPort, IDocumentPort, IExtensionConfigPort, IExtensionDatabasePort, IFileStoragePort, IFreeDecisionPort, IIndividualPort, IIntegrationSettingsPort, ILedger2HistoryPort, ILoggerPort, IMeetPort, IMemberExitRegistryPort, IMessageChannelPort, IMetaDocument, IMonoAccount, IMutationLogPort, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, INotificationPort, IOnboardingStepRegistryPort, IOrganizationPort, IPaymentDeskPort, IPaymentMethodPort, IPaymentNoticeLogPort, IPaymentPollingStatePort, IPaymentPort, IPaymentProvider, IPaymentProviderRegistryPort, IProgramAgreementPort, IProgramWalletPort, IRealtimeChannelPort, IRegistrationRegistryPort, IRoleAssignmentsPort, ISecretCipherPort, ISignatureInfo, ISignedDocument, IUserAvatarPort, IUserCertificatePort, IUserDataPort, IUserDirectoryPort, IUserWalletPort, IVaultPort, IVerificationPort, IWalletWithdrawPort, InnerAccount, InnerAgreementCatalogItem, InnerAssignableRole, InnerAttachedRole, InnerBankTransferData, InnerBranch, InnerCandidate, InnerCandidateDocument, InnerCandidateFilter, InnerChainAccountResources, InnerChainAccountRow, InnerChainAction, InnerChainActionRecord, InnerChainChangesTable, InnerChainDelta, InnerChainDeltaWaitQuery, InnerChainTxWait, InnerCoopAgreement, InnerCoopProgram, InnerCoopUser, InnerCooperativeVars, InnerCouncilDecision, InnerCreateWithdrawInput, InnerCreateWithdrawResult, InnerDocumentAggregate, InnerDocumentApproval, InnerDocumentDeclaration, InnerDocumentKind, InnerDocumentValidation, InnerEndorsementCredential, InnerEnsureProgramParams, InnerEnsureProgramResult, InnerExitBlockersProvider, InnerExitPendingReturn, InnerExtensionDatabaseConnection, InnerFileStorageBackendUnavailableError, InnerFileStorageBody, InnerFileStorageBucket, InnerFileStorageBucketNotConfiguredError, InnerFileStorageBucketSpec, InnerFileStorageError, InnerFileStorageGetReadUrlOptions, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectMetadata, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerFileStoragePutOptions, InnerFileStoragePutResult, InnerFreeDecisionDocument, InnerFreeDecisionProject, InnerGenerateDocumentData, InnerGenerateDocumentOptions, InnerGenerateDocumentRequest, InnerGenerateProjectFreeDecisionData, InnerGeneratedDocument, InnerGetAccountsFilter, InnerGetMeetInput, InnerGetMeetsInput, InnerIndividual, InnerIntakeFormRegistration, InnerIntakeJsonSchema, InnerIntakeJsonSchemaProperty, InnerKeyPermission, InnerLedger2Account, InnerLedger2HistoryFilter, InnerLedger2HistoryResult, InnerLedger2Operation, InnerLedger2Wallet, InnerLogMeta, InnerMeet, InnerMeetDraft, InnerMeetProcessing, InnerMeetRow, InnerMutationLogEntry, InnerMutationLogFilter, InnerNotifyActor, InnerNotifyInput, InnerNotifyRecipient, InnerNotifyResult, InnerOnboardingCompletedPayload, InnerOnboardingDecisionKind, InnerOnboardingGenerator, InnerOnboardingStep, InnerOnboardingStepProposal, InnerOrganization, InnerOrganizationDetails, InnerOrganizationType, InnerPage, InnerPageRequest, InnerPaginatedAccounts, InnerPaginationOptions, InnerParticipantRegisteredEvent, InnerPassport, InnerPayment, InnerPaymentDetails, InnerPaymentDraft, InnerPaymentFilters, InnerPaymentMethod, InnerPaymentMethodDraft, InnerPaymentMethodQuery, InnerPaymentMethodType, InnerPaymentNotice, InnerPaymentPollingState, InnerPrivateAccount, InnerProgramSignature, InnerProgramWallet, InnerProgramWalletFilter, InnerProposeOnboardingStepInput, InnerPublishProjectFreeDecisionInput, InnerRegistryRecord, InnerRepresentative, InnerRolePermission, InnerSbpData, InnerSetPaymentStatusInput, InnerSignProgramAgreementInput, InnerSystemOutgoingPaymentInput, InnerTransactResult, InnerUserCertificate, InnerUserDataDraft, InnerUserDataFilters, InnerUserDataRecord, InnerUserWallet, InnerVerificationCheck, InnerVerificationEntry, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, RoleAssignmentChangedEvent, SECRET_CIPHER_PORT, TrackingRule, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.js';
2
3
  export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CALENDAR_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, COOP_CALENDAR_EVENT_NOTIFICATION_PORT, EXPENSE_CHASSIS_PORT, ICapitalProjectCreatedPayload, ICapitalProjectMatrixRoomAssignedPayload, IChairmanApprovalsPort, IChatCoopCalendarPort, IChatCoopCapitalProjectRoomEnsureMemberPayload, IChatCoopMatrixUserLinkedForCapitalProjectRoomsPayload, ICoopCalendarEventNotificationPort, IExpenseChassisPort, IMatrixRoomMessagingPort, IProjectCapitalClearancePort, IProjectCommunicationArtifactsPort, ISovietRobotPort, InnerCalendarEventWindow, InnerChairmanApproval, InnerChairmanApprovalStatus, InnerChairmanApprovalsQuery, InnerCompletedCallTranscriptionHead, InnerCoopCalendarEventNotificationInput, InnerCoopCalendarEventRead, InnerCoopCalendarNotificationRoomKind, InnerExpenseCallbackHandler, InnerExpenseItem, InnerExpenseItemInput, InnerExpenseItemState, InnerExpenseMechanics, InnerExpensePaginatedResult, InnerExpensePagination, InnerExpensePlannedReserve, InnerExpenseProposalRead, InnerExpenseProposalState, InnerExpenseProposalStatus, InnerExpenseRecipientType, InnerExpenseRequisiteItemInput, InnerMatrixReplaceTextMessageInput, InnerMatrixSendTextAndPinInput, InnerMatrixSendTextMessageInput, InnerMatrixUnpinAndRedactAnnouncementInput, InnerNonProjectCommunicationRoomRef, InnerNonProjectRoomKind, InnerProjectCommunicationRoomRef, InnerRobotDecisionOutcome, InnerRobotDecisionRequest, InnerRobotDecisionResult, InnerRoomMessageKind, InnerRoomMessageLine, MATRIX_ROOM_MESSAGING_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.js';
3
4
 
4
5
  /**
@@ -38,6 +39,18 @@ interface IProgramDocumentParametersHook {
38
39
  interface IMarketplaceDocumentParametersHook {
39
40
  generateMarketplaceOfferParameters(coopname: string, username: string): Promise<void>;
40
41
  }
42
+ /**
43
+ * Параметры оферт любой программы по её ключу — общий путь для новых
44
+ * расширений. Ядро, собирая документы вступления по выбранной программе,
45
+ * ищет хук по `programKey` и зовёт его до генерации: расширение пишет в Udata
46
+ * персональные номер и дату, которые потом читает фабрика документа.
47
+ * Именованные хуки выше остаются для Благороста и Стола заказов.
48
+ */
49
+ interface IProgramOfferParametersHook {
50
+ /** Ключ программы из `ProgramKey`, за документы которой отвечает хук. */
51
+ readonly programKey: string;
52
+ generateOfferParameters(coopname: string, username: string): Promise<void>;
53
+ }
41
54
  /**
42
55
  * Реестр хуков. Расширение кладёт свою реализацию сюда при запуске, а вызывает
43
56
  * её ядро, когда собирает документы вступления.
@@ -53,6 +66,8 @@ interface IRegistrationDocumentParametersRegistryPort {
53
66
  registerProgramHook(hook: IProgramDocumentParametersHook): void;
54
67
  /** Оферта Стола заказов. */
55
68
  registerMarketplaceHook(hook: IMarketplaceDocumentParametersHook): void;
69
+ /** Оферты программы по ключу — для всех последующих расширений. */
70
+ registerProgramOfferHook(hook: IProgramOfferParametersHook): void;
56
71
  }
57
72
  declare const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT: unique symbol;
58
73
 
@@ -102,6 +117,87 @@ interface IDesktopGrantsRegistryPort {
102
117
  }
103
118
  declare const DESKTOP_GRANTS_REGISTRY_PORT: unique symbol;
104
119
 
120
+ /**
121
+ * Сужение прав пайщика на столах ЧУЖОГО расширения.
122
+ *
123
+ * Одно приложение может менять видимость столов другого только через этот
124
+ * конвейер ядра и только в одну сторону — сужая. Ядро берёт набор, выданный
125
+ * владельцем стола, прогоняет его через все зарегистрированные фильтры и
126
+ * оставляет пересечение: `result = input ∩ filter_1(input) ∩ … ∩ filter_n(input)`.
127
+ * Пересечение коммутативно, поэтому порядок регистрации фильтров на итог не
128
+ * влияет, а добавить право фильтр не может по построению.
129
+ *
130
+ * Отказ фильтра (исключение, таймаут) ядро трактует в пользу владельца стола:
131
+ * набор остаётся нетронутым, а сбой попадает в журнал. Иначе чужая ошибка
132
+ * прятала бы работающее приложение.
133
+ *
134
+ * К собственным столам фильтр не применяется — свои права расширение
135
+ * формирует в `IDesktopGrantsHook`. К расширениям без провайдера грантов
136
+ * (видимость по ролям) фильтр тоже не применяется: сужать нечего.
137
+ *
138
+ * Пример: «Образовательный мост» оставляет столы «Благороста» только
139
+ * преподавателям — без собственного интерфейса к «Благоросту» и без правок в нём.
140
+ */
141
+ interface InnerDesktopGrantsFilterTarget {
142
+ /** Расширение-владелец стола, чьи права сужаются. */
143
+ extensionName: string;
144
+ /** Права, выданные владельцем (после предыдущих фильтров — не важно, каких). */
145
+ grants: readonly string[];
146
+ }
147
+ interface IDesktopGrantsFilterHook {
148
+ /** Имя расширения-автора фильтра в реестре платформы. */
149
+ readonly extensionName: string;
150
+ /**
151
+ * Какие из выданных прав оставить. Возвращённые права, которых не было во
152
+ * входном наборе, ядро отбрасывает. Вернуть `target.grants` — значит не
153
+ * вмешиваться.
154
+ */
155
+ filterGrants(target: InnerDesktopGrantsFilterTarget, context: InnerDesktopGrantsContext): Promise<readonly string[]>;
156
+ }
157
+ /** Реестр фильтров. Расширение кладёт себя сюда при запуске. */
158
+ interface IDesktopGrantsFilterRegistryPort {
159
+ register(filter: IDesktopGrantsFilterHook): void;
160
+ /** Снять фильтр при остановке расширения. */
161
+ unregister(extensionName: string): void;
162
+ }
163
+ declare const DESKTOP_GRANTS_FILTER_REGISTRY_PORT: unique symbol;
164
+
165
+ /**
166
+ * Сужение витрины вступления: какие программы и оферты ЧУЖИХ расширений
167
+ * предлагать вступающему пайщику.
168
+ *
169
+ * Та же дисциплина, что у `IDesktopGrantsFilterHook`: ядро показывает
170
+ * пересечение исходного списка со всеми фильтрами, порядок не важен, добавить
171
+ * чужую программу фильтр не может, сбой фильтра трактуется в пользу владельца
172
+ * программы. Собственные программы расширение не фильтрует — оно их
173
+ * регистрирует или нет.
174
+ *
175
+ * Фильтр синхронный: он — политика над реестром в памяти, обращаться наружу
176
+ * ему незачем, а конвейер регистрации ядра синхронный насквозь.
177
+ *
178
+ * Скрытая при вступлении программа не запрещена пайщику навсегда: принять её
179
+ * оферту он может позже со стола расширения-владельца. Пример: «Образовательный
180
+ * мост» не предлагает оферты «Благороста» при вступлении — их подпишет тот, кто
181
+ * станет преподавателем.
182
+ */
183
+ interface InnerRegistrationOfferFilterContext {
184
+ coopname?: string;
185
+ accountType?: InnerAccountType | string;
186
+ }
187
+ interface IRegistrationOfferFilterHook {
188
+ /** Имя расширения-автора фильтра в реестре платформы. */
189
+ readonly extensionName: string;
190
+ /** Ключи программ, которые оставить в витрине. */
191
+ filterPrograms(programs: readonly InnerProgramRegistration[], context: InnerRegistrationOfferFilterContext): readonly string[];
192
+ /** Идентификаторы оферт, которые оставить. */
193
+ filterAgreements(agreements: readonly InnerAgreementRegistration[], context: InnerRegistrationOfferFilterContext): readonly string[];
194
+ }
195
+ interface IRegistrationOfferFilterRegistryPort {
196
+ register(filter: IRegistrationOfferFilterHook): void;
197
+ unregister(extensionName: string): void;
198
+ }
199
+ declare const REGISTRATION_OFFER_FILTER_REGISTRY_PORT: unique symbol;
200
+
105
201
  /**
106
202
  * Поставщик единого поиска.
107
203
  *
@@ -172,5 +268,5 @@ interface IGlobalSearchRegistryPort {
172
268
  }
173
269
  declare const GLOBAL_SEARCH_REGISTRY_PORT: unique symbol;
174
270
 
175
- export { DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT };
176
- export type { IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IProgramDocumentParametersHook, IRegistrationDocumentParametersRegistryPort, InnerDesktopGrantsContext, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute };
271
+ export { DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, InnerAccountType, InnerAgreementRegistration, InnerProgramRegistration, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };
272
+ export type { IDesktopGrantsFilterHook, IDesktopGrantsFilterRegistryPort, IDesktopGrantsHook, IDesktopGrantsRegistryPort, IGlobalSearchHook, IGlobalSearchRegistryPort, IMarketplaceDocumentParametersHook, IProgramDocumentParametersHook, IProgramOfferParametersHook, IRegistrationDocumentParametersRegistryPort, IRegistrationOfferFilterHook, IRegistrationOfferFilterRegistryPort, InnerDesktopGrantsContext, InnerDesktopGrantsFilterTarget, InnerGlobalSearchContext, InnerGlobalSearchHit, InnerGlobalSearchRoute, InnerRegistrationOfferFilterContext };
package/dist/index.mjs CHANGED
@@ -1,10 +1,14 @@
1
- export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, InnerAccountType, InnerFileStorageBackendUnavailableError, InnerFileStorageBucketNotConfiguredError, InnerFileStorageError, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerKeyPermission, InnerOrganizationType, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, SECRET_CIPHER_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.mjs';
1
+ export { ACCOUNTING_REGISTRY_PORT, ACCOUNT_PORT, AGREEMENT_CATALOG_PORT, BRANCH_PORT, CANDIDATE_PORT, CHAIN_CHANGES_PORT, CHAIN_DELTA_WAIT_PORT, CHAIN_PORT, CHAIN_RESOURCES_PORT, COOPERATIVE_VARS_PORT, COOP_CREDENTIAL_PORT, COUNCIL_PORT, DECISION_TRACKING_PORT, DOCUMENT_APPROVAL_PORT, DOCUMENT_DECLARATION_PORT, DOCUMENT_PORT, DecisionEventType, DecisionTrackedEvent, EXTENSION_CONFIG_PORT, EXTENSION_DATABASE_PORT, ExtendedMeetStatus, FILE_STORAGE_PORT, FREE_DECISION_PORT, INDIVIDUAL_PORT, INTEGRATION_SETTINGS_PORT, InnerAccountType, InnerFileStorageBackendUnavailableError, InnerFileStorageBucketNotConfiguredError, InnerFileStorageError, InnerFileStorageMetadataValidationError, InnerFileStorageMimeRejectedError, InnerFileStorageObjectNotFoundError, InnerFileStorageObjectTooLargeError, InnerKeyPermission, InnerOrganizationType, LEDGER2_HISTORY_PORT, LOGGER_PORT, MEET_PORT, MEMBER_EXIT_REGISTRY_PORT, MESSAGE_CHANNEL_PORT, MUTATION_LOG_PORT, MonoAccountStatus, NOTIFICATION_PORT, ONBOARDING_COMPLETED_EVENT, ONBOARDING_STEP_REGISTRY_PORT, ORGANIZATION_PORT, PARTICIPANT_REGISTERED_EVENT, PAYMENT_DESK_PORT, PAYMENT_METHOD_PORT, PAYMENT_NOTICE_LOG_PORT, PAYMENT_POLLING_STATE_PORT, PAYMENT_PORT, PAYMENT_PROVIDER_REGISTRY_PORT, PROGRAM_AGREEMENT_PORT, PROGRAM_ID_BY_TYPE, PROGRAM_TYPE_BY_ID, PROGRAM_WALLET_PORT, PaymentDirection, PaymentStatus, PaymentType, ProgramKey, ProgramType, REALTIME_CHANNEL_PORT, REGISTRATION_REGISTRY_PORT, ROLE_ASSIGNMENTS_PORT, ROLE_ASSIGNMENT_CHANGED_EVENT, SECRET_CIPHER_PORT, USER_AVATAR_PORT, USER_CERTIFICATE_PORT, USER_DATA_PORT, USER_DIRECTORY_PORT, USER_WALLET_PORT, VAT_EXEMPT_NOTE, VAULT_PORT, VERIFICATION_PORT, WALLET_WITHDRAW_PORT, getProgramId, getProgramType, isEligibleForParticipantMassNotification } from './core-ports/index.mjs';
2
2
  export { CAPITAL_PROJECT_CREATED_EVENT, CAPITAL_PROJECT_MATRIX_ROOM_ASSIGNED_EVENT, CHAIRMAN_APPROVALS_PORT, CHATCOOP_CALENDAR_PORT, CHATCOOP_CAPITAL_PROJECT_ROOM_ENSURE_MEMBER_EVENT, CHATCOOP_MATRIX_USER_LINKED_FOR_CAPITAL_PROJECT_ROOMS_EVENT, COOP_CALENDAR_EVENT_NOTIFICATION_PORT, EXPENSE_CHASSIS_PORT, InnerExpenseItemState, InnerExpenseMechanics, InnerExpenseProposalState, InnerExpenseRecipientType, MATRIX_ROOM_MESSAGING_PORT, PROJECT_CAPITAL_CLEARANCE_PORT, PROJECT_COMMUNICATION_ARTIFACTS_PORT, SOVIET_ROBOT_PORT } from './cross-plugin-ports/index.mjs';
3
3
 
4
4
  const REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.RegistrationDocumentParametersRegistry");
5
5
 
6
6
  const DESKTOP_GRANTS_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.DesktopGrantsRegistry");
7
7
 
8
+ const DESKTOP_GRANTS_FILTER_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.DesktopGrantsFilterRegistry");
9
+
10
+ const REGISTRATION_OFFER_FILTER_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.RegistrationOfferFilterRegistry");
11
+
8
12
  const GLOBAL_SEARCH_REGISTRY_PORT = Symbol.for("Innercoop.CorePort.GlobalSearchRegistry");
9
13
 
10
- export { DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT };
14
+ export { DESKTOP_GRANTS_FILTER_REGISTRY_PORT, DESKTOP_GRANTS_REGISTRY_PORT, GLOBAL_SEARCH_REGISTRY_PORT, REGISTRATION_DOCUMENT_PARAMETERS_REGISTRY_PORT, REGISTRATION_OFFER_FILTER_REGISTRY_PORT };