@coopenomics/extension-sdk 2026.12.2 → 2026.12.3-dev.3
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.
- package/README.md +29 -0
- package/dist/app/app-error.d.ts +31 -0
- package/dist/app/app-error.js +49 -0
- package/dist/app/app-logger.d.ts +29 -0
- package/dist/app/app-logger.js +54 -0
- package/dist/app/app-messages.d.ts +11 -0
- package/dist/app/app-messages.js +16 -0
- package/dist/app/app-platform.module.d.ts +19 -0
- package/dist/app/app-platform.module.js +35 -0
- package/dist/app/app-rights.d.ts +73 -0
- package/dist/app/app-rights.js +116 -0
- package/dist/database/app-database.module.d.ts +39 -0
- package/dist/database/app-database.module.js +101 -0
- package/dist/database/index.d.ts +2 -0
- package/dist/database/index.js +11 -0
- package/dist/database/legacy-import.d.ts +61 -0
- package/dist/database/legacy-import.js +153 -0
- package/dist/database/live-changes.plugin.d.ts +50 -0
- package/dist/database/live-changes.plugin.js +119 -0
- package/dist/graphql/account-type.enum.d.ts +18 -0
- package/dist/graphql/account-type.enum.js +24 -0
- package/dist/graphql/certificates.dto.d.ts +70 -0
- package/dist/graphql/certificates.dto.js +200 -0
- package/dist/graphql/document-aggregate.dto.d.ts +16 -0
- package/dist/graphql/document-aggregate.dto.js +54 -0
- package/dist/graphql/generate-document-input.dto.d.ts +16 -0
- package/dist/graphql/generate-document-input.dto.js +34 -0
- package/dist/graphql/generate-document-options-input.dto.d.ts +5 -0
- package/dist/graphql/generate-document-options-input.dto.js +30 -0
- package/dist/graphql/generate-meta-document-input.dto.d.ts +14 -0
- package/dist/graphql/generate-meta-document-input.dto.js +100 -0
- package/dist/graphql/generated-document.dto.d.ts +21 -0
- package/dist/graphql/generated-document.dto.js +64 -0
- package/dist/graphql/index.d.ts +39 -0
- package/dist/graphql/index.js +70 -0
- package/dist/graphql/lang-type.enum.d.ts +4 -0
- package/dist/graphql/lang-type.enum.js +13 -0
- package/dist/graphql/meta-document-input.dto.d.ts +15 -0
- package/dist/graphql/meta-document-input.dto.js +103 -0
- package/dist/graphql/pagination.dto.d.ts +41 -0
- package/dist/graphql/pagination.dto.js +110 -0
- package/dist/graphql/print-subgraph.d.ts +14 -0
- package/dist/graphql/print-subgraph.js +65 -0
- package/dist/graphql/signed-digital-document-input.dto.d.ts +31 -0
- package/dist/graphql/signed-digital-document-input.dto.js +133 -0
- package/dist/graphql/signed-digital-document.dto.d.ts +34 -0
- package/dist/graphql/signed-digital-document.dto.js +136 -0
- package/dist/graphql/signer-certificate.resolver.d.ts +23 -0
- package/dist/graphql/signer-certificate.resolver.js +70 -0
- package/dist/graphql/subgraph-sdl.d.ts +54 -0
- package/dist/graphql/subgraph-sdl.js +125 -0
- package/dist/graphql/transaction.dto.d.ts +12 -0
- package/dist/graphql/transaction.dto.js +70 -0
- package/dist/graphql/user-certificate.union.d.ts +8 -0
- package/dist/graphql/user-certificate.union.js +25 -0
- package/dist/graphql/validation-message.d.ts +12 -0
- package/dist/graphql/validation-message.js +12 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.js +41 -4
- package/dist/ports/core-ports.client.js +13 -1
- package/dist/ports/extension-ports.module.d.ts +67 -0
- package/dist/ports/extension-ports.module.js +133 -4
- package/dist/ports/integration-settings.d.ts +17 -0
- package/dist/ports/integration-settings.js +6 -0
- package/dist/secrets/app-credentials.d.ts +6 -0
- package/dist/secrets/app-credentials.js +38 -0
- package/dist/secrets/index.d.ts +7 -0
- package/dist/secrets/index.js +15 -0
- package/dist/subgraph-rules/index.d.ts +35 -0
- package/dist/subgraph-rules/index.js +211 -0
- package/dist/sync/abstract-blockchain-delta.mapper.d.ts +18 -0
- package/dist/sync/abstract-blockchain-delta.mapper.js +25 -0
- package/dist/sync/abstract-entity-sync.service.d.ts +79 -0
- package/dist/sync/abstract-entity-sync.service.js +219 -0
- package/dist/sync/audit-logger.d.ts +5 -0
- package/dist/sync/audit-logger.js +32 -0
- package/dist/sync/base-chain.repository.d.ts +46 -0
- package/dist/sync/base-chain.repository.js +127 -0
- package/dist/sync/base-database.interface.d.ts +17 -0
- package/dist/sync/base-database.interface.js +2 -0
- package/dist/sync/base-domain.entity.d.ts +27 -0
- package/dist/sync/base-domain.entity.js +52 -0
- package/dist/sync/base-output.dto.d.ts +10 -0
- package/dist/sync/base-output.dto.js +60 -0
- package/dist/sync/blockchain-sync.interface.d.ts +84 -0
- package/dist/sync/blockchain-sync.interface.js +2 -0
- package/dist/sync/chain-record.d.ts +15 -0
- package/dist/sync/chain-record.js +19 -0
- package/dist/sync/chain-versioning.service.d.ts +47 -0
- package/dist/sync/chain-versioning.service.js +169 -0
- package/dist/sync/delta.d.ts +22 -0
- package/dist/sync/delta.js +2 -0
- package/dist/sync/errors/audit-unknown-status.d.ts +11 -0
- package/dist/sync/errors/audit-unknown-status.js +26 -0
- package/dist/sync/errors/unsupported-contract-version.error.d.ts +23 -0
- package/dist/sync/errors/unsupported-contract-version.error.js +22 -0
- package/dist/sync/fork/fork-aware-syncer.interface.d.ts +44 -0
- package/dist/sync/fork/fork-aware-syncer.interface.js +22 -0
- package/dist/sync/index.d.ts +36 -0
- package/dist/sync/index.js +56 -0
- package/dist/sync/sync-logger.d.ts +21 -0
- package/dist/sync/sync-logger.js +2 -0
- package/dist/sync/sync-policy.d.ts +27 -0
- package/dist/sync/sync-policy.js +16 -0
- package/package.json +55 -3
package/dist/index.js
CHANGED
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
* и Architecture v3 в blago.
|
|
24
24
|
*/
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.AppSecretsError = exports.AppSecrets = exports.AppPortRefusal = exports.AppPortsProviderController = exports.AppPortsProviderModule = exports.appPort = exports.AppPortError = exports.AppPortsClient = exports.PostgresCursorStore = exports.ExtensionEventsService = exports.ExtensionEventsModule = exports.parseBusEntry = exports.BUS_GAP_EVENT = exports.MemoryCursorStore = exports.BusReader = exports.AppMigrationError = exports.migrationChecksum = exports.readAppMigrations = exports.applyAppMigrations = exports.runAppMigrations = exports.remotePort = exports.REMOTE_PORT_TOKENS = exports.REMOTE_PORT_METHODS = exports.LIVE_FEED_PORT = exports.ExtensionPortsModule = exports.CorePortError = exports.CorePortsClient = exports.ExtensionAccessGuard = exports.ExtensionConfigError = exports.loadExtensionConfig = exports.HealthController = exports.SharedAccount = exports.SharedCooperative = exports.SharedCooperator = exports.ExtensionJwtAuthGuard = exports.ExtensionJwtStrategy = exports.ExtensionAuthModule = exports.ExtensionFederationModule = void 0;
|
|
26
|
+
exports.AppError = exports.appSecretsKey = exports.appOutboundToken = exports.appInboundToken = exports.AppSecretsError = exports.AppSecrets = exports.AppPortRefusal = exports.AppPortsProviderController = exports.AppPortsProviderModule = exports.appPort = exports.AppPortError = exports.AppPortsClient = exports.PostgresCursorStore = exports.ExtensionEventsService = exports.ExtensionEventsModule = exports.parseBusEntry = exports.BUS_GAP_EVENT = exports.MemoryCursorStore = exports.BusReader = exports.integrationSettings = exports.LegacyImportError = exports.applyLegacyImport = exports.runLegacyImport = exports.AppMigrationError = exports.migrationChecksum = exports.readAppMigrations = exports.applyAppMigrations = exports.runAppMigrations = exports.reviveDates = exports.remotePort = exports.REMOTE_PORT_TOKENS = exports.REMOTE_PORT_METHODS = exports.REMOTE_PORT_DATES = exports.POWERS_OF_ATTORNEY_REMOTE_PORT = exports.LIVE_FEED_PORT = exports.BRANCH_CARD_REMOTE_PORT = exports.ExtensionPortsModule = exports.CorePortError = exports.CorePortsClient = exports.ExtensionAccessGuard = exports.ExtensionConfigError = exports.loadExtensionConfig = exports.HealthController = exports.SharedAccount = exports.SharedCooperative = exports.SharedCooperator = exports.ExtensionJwtAuthGuard = exports.ExtensionJwtStrategy = exports.ExtensionAuthModule = exports.ExtensionFederationModule = void 0;
|
|
27
|
+
exports.te = exports.t = exports.registerAppMessages = exports.AppPlatformModule = exports.memberRolesOf = exports.hasRight = exports.RightsGuard = exports.RequireRight = exports.CurrentUser = exports.SELF = exports.APP_RIGHTS = exports.appLoggerProvider = exports.AppLogger = exports.APP_LOGGER = exports.DomainError = void 0;
|
|
27
28
|
var federation_module_1 = require("./federation/federation.module");
|
|
28
29
|
Object.defineProperty(exports, "ExtensionFederationModule", { enumerable: true, get: function () { return federation_module_1.ExtensionFederationModule; } });
|
|
29
30
|
var extension_auth_module_1 = require("./auth/extension-auth.module");
|
|
@@ -50,16 +51,26 @@ Object.defineProperty(exports, "CorePortsClient", { enumerable: true, get: funct
|
|
|
50
51
|
Object.defineProperty(exports, "CorePortError", { enumerable: true, get: function () { return core_ports_client_1.CorePortError; } });
|
|
51
52
|
var extension_ports_module_1 = require("./ports/extension-ports.module");
|
|
52
53
|
Object.defineProperty(exports, "ExtensionPortsModule", { enumerable: true, get: function () { return extension_ports_module_1.ExtensionPortsModule; } });
|
|
54
|
+
Object.defineProperty(exports, "BRANCH_CARD_REMOTE_PORT", { enumerable: true, get: function () { return extension_ports_module_1.BRANCH_CARD_REMOTE_PORT; } });
|
|
53
55
|
Object.defineProperty(exports, "LIVE_FEED_PORT", { enumerable: true, get: function () { return extension_ports_module_1.LIVE_FEED_PORT; } });
|
|
56
|
+
Object.defineProperty(exports, "POWERS_OF_ATTORNEY_REMOTE_PORT", { enumerable: true, get: function () { return extension_ports_module_1.POWERS_OF_ATTORNEY_REMOTE_PORT; } });
|
|
57
|
+
Object.defineProperty(exports, "REMOTE_PORT_DATES", { enumerable: true, get: function () { return extension_ports_module_1.REMOTE_PORT_DATES; } });
|
|
54
58
|
Object.defineProperty(exports, "REMOTE_PORT_METHODS", { enumerable: true, get: function () { return extension_ports_module_1.REMOTE_PORT_METHODS; } });
|
|
55
59
|
Object.defineProperty(exports, "REMOTE_PORT_TOKENS", { enumerable: true, get: function () { return extension_ports_module_1.REMOTE_PORT_TOKENS; } });
|
|
56
60
|
Object.defineProperty(exports, "remotePort", { enumerable: true, get: function () { return extension_ports_module_1.remotePort; } });
|
|
61
|
+
Object.defineProperty(exports, "reviveDates", { enumerable: true, get: function () { return extension_ports_module_1.reviveDates; } });
|
|
57
62
|
var app_migrations_1 = require("./database/app-migrations");
|
|
58
63
|
Object.defineProperty(exports, "runAppMigrations", { enumerable: true, get: function () { return app_migrations_1.runAppMigrations; } });
|
|
59
64
|
Object.defineProperty(exports, "applyAppMigrations", { enumerable: true, get: function () { return app_migrations_1.applyAppMigrations; } });
|
|
60
65
|
Object.defineProperty(exports, "readAppMigrations", { enumerable: true, get: function () { return app_migrations_1.readAppMigrations; } });
|
|
61
66
|
Object.defineProperty(exports, "migrationChecksum", { enumerable: true, get: function () { return app_migrations_1.migrationChecksum; } });
|
|
62
67
|
Object.defineProperty(exports, "AppMigrationError", { enumerable: true, get: function () { return app_migrations_1.AppMigrationError; } });
|
|
68
|
+
var legacy_import_1 = require("./database/legacy-import");
|
|
69
|
+
Object.defineProperty(exports, "runLegacyImport", { enumerable: true, get: function () { return legacy_import_1.runLegacyImport; } });
|
|
70
|
+
Object.defineProperty(exports, "applyLegacyImport", { enumerable: true, get: function () { return legacy_import_1.applyLegacyImport; } });
|
|
71
|
+
Object.defineProperty(exports, "LegacyImportError", { enumerable: true, get: function () { return legacy_import_1.LegacyImportError; } });
|
|
72
|
+
var integration_settings_1 = require("./ports/integration-settings");
|
|
73
|
+
Object.defineProperty(exports, "integrationSettings", { enumerable: true, get: function () { return integration_settings_1.integrationSettings; } });
|
|
63
74
|
var bus_reader_1 = require("./events/bus-reader");
|
|
64
75
|
Object.defineProperty(exports, "BusReader", { enumerable: true, get: function () { return bus_reader_1.BusReader; } });
|
|
65
76
|
Object.defineProperty(exports, "MemoryCursorStore", { enumerable: true, get: function () { return bus_reader_1.MemoryCursorStore; } });
|
|
@@ -78,6 +89,32 @@ var app_ports_provider_1 = require("./ports/app-ports.provider");
|
|
|
78
89
|
Object.defineProperty(exports, "AppPortsProviderModule", { enumerable: true, get: function () { return app_ports_provider_1.AppPortsProviderModule; } });
|
|
79
90
|
Object.defineProperty(exports, "AppPortsProviderController", { enumerable: true, get: function () { return app_ports_provider_1.AppPortsProviderController; } });
|
|
80
91
|
Object.defineProperty(exports, "AppPortRefusal", { enumerable: true, get: function () { return app_ports_provider_1.AppPortRefusal; } });
|
|
81
|
-
var
|
|
82
|
-
Object.defineProperty(exports, "AppSecrets", { enumerable: true, get: function () { return
|
|
83
|
-
Object.defineProperty(exports, "AppSecretsError", { enumerable: true, get: function () { return
|
|
92
|
+
var secrets_1 = require("./secrets");
|
|
93
|
+
Object.defineProperty(exports, "AppSecrets", { enumerable: true, get: function () { return secrets_1.AppSecrets; } });
|
|
94
|
+
Object.defineProperty(exports, "AppSecretsError", { enumerable: true, get: function () { return secrets_1.AppSecretsError; } });
|
|
95
|
+
Object.defineProperty(exports, "appInboundToken", { enumerable: true, get: function () { return secrets_1.appInboundToken; } });
|
|
96
|
+
Object.defineProperty(exports, "appOutboundToken", { enumerable: true, get: function () { return secrets_1.appOutboundToken; } });
|
|
97
|
+
Object.defineProperty(exports, "appSecretsKey", { enumerable: true, get: function () { return secrets_1.appSecretsKey; } });
|
|
98
|
+
// Общий слой приложения каталога (04.12.2026, 487-50): отказ с кодом, журнал,
|
|
99
|
+
// права операций. Приложение объявляет только имя, таблицу прав и словарь.
|
|
100
|
+
var app_error_1 = require("./app/app-error");
|
|
101
|
+
Object.defineProperty(exports, "AppError", { enumerable: true, get: function () { return app_error_1.AppError; } });
|
|
102
|
+
Object.defineProperty(exports, "DomainError", { enumerable: true, get: function () { return app_error_1.DomainError; } });
|
|
103
|
+
var app_logger_1 = require("./app/app-logger");
|
|
104
|
+
Object.defineProperty(exports, "APP_LOGGER", { enumerable: true, get: function () { return app_logger_1.APP_LOGGER; } });
|
|
105
|
+
Object.defineProperty(exports, "AppLogger", { enumerable: true, get: function () { return app_logger_1.AppLogger; } });
|
|
106
|
+
Object.defineProperty(exports, "appLoggerProvider", { enumerable: true, get: function () { return app_logger_1.appLoggerProvider; } });
|
|
107
|
+
var app_rights_1 = require("./app/app-rights");
|
|
108
|
+
Object.defineProperty(exports, "APP_RIGHTS", { enumerable: true, get: function () { return app_rights_1.APP_RIGHTS; } });
|
|
109
|
+
Object.defineProperty(exports, "SELF", { enumerable: true, get: function () { return app_rights_1.SELF; } });
|
|
110
|
+
Object.defineProperty(exports, "CurrentUser", { enumerable: true, get: function () { return app_rights_1.CurrentUser; } });
|
|
111
|
+
Object.defineProperty(exports, "RequireRight", { enumerable: true, get: function () { return app_rights_1.RequireRight; } });
|
|
112
|
+
Object.defineProperty(exports, "RightsGuard", { enumerable: true, get: function () { return app_rights_1.RightsGuard; } });
|
|
113
|
+
Object.defineProperty(exports, "hasRight", { enumerable: true, get: function () { return app_rights_1.hasRight; } });
|
|
114
|
+
Object.defineProperty(exports, "memberRolesOf", { enumerable: true, get: function () { return app_rights_1.memberRolesOf; } });
|
|
115
|
+
var app_platform_module_1 = require("./app/app-platform.module");
|
|
116
|
+
Object.defineProperty(exports, "AppPlatformModule", { enumerable: true, get: function () { return app_platform_module_1.AppPlatformModule; } });
|
|
117
|
+
var app_messages_1 = require("./app/app-messages");
|
|
118
|
+
Object.defineProperty(exports, "registerAppMessages", { enumerable: true, get: function () { return app_messages_1.registerAppMessages; } });
|
|
119
|
+
Object.defineProperty(exports, "t", { enumerable: true, get: function () { return app_messages_1.t; } });
|
|
120
|
+
Object.defineProperty(exports, "te", { enumerable: true, get: function () { return app_messages_1.te; } });
|
|
@@ -45,9 +45,21 @@ const RETRYABLE = new Set([
|
|
|
45
45
|
'account.getAccounts',
|
|
46
46
|
'notification.getDeliveries',
|
|
47
47
|
'userDirectory.findByRoles',
|
|
48
|
+
'userDirectory.findBySubject',
|
|
49
|
+
// Ключ заверения и анкета пайщика — чтение (487-41); подпись и публикация
|
|
50
|
+
// ключа уведомлений не повторяются.
|
|
51
|
+
'coopCredential.getChainId',
|
|
52
|
+
'coopCredential.getTrustChain',
|
|
53
|
+
'coopCredential.getPermissionKey',
|
|
54
|
+
'identity.get',
|
|
48
55
|
'chain.getSingleRow',
|
|
49
56
|
'chain.queryRows',
|
|
50
57
|
]);
|
|
58
|
+
/** Порты только для чтения целиком: данные снятого расширения и ключи служб (487-42). */
|
|
59
|
+
const RETRYABLE_PORT_PREFIXES = ['legacyData.', 'integration.'];
|
|
60
|
+
function retryable(port, method) {
|
|
61
|
+
return RETRYABLE.has(`${port}.${method}`) || RETRYABLE_PORT_PREFIXES.some((prefix) => port.startsWith(prefix));
|
|
62
|
+
}
|
|
51
63
|
const RETRY_PAUSE_MS = 300;
|
|
52
64
|
class CorePortsClient {
|
|
53
65
|
options;
|
|
@@ -67,7 +79,7 @@ class CorePortsClient {
|
|
|
67
79
|
* не ответило (статус 0, код `CORE_UNREACHABLE`).
|
|
68
80
|
*/
|
|
69
81
|
async call(port, method, args) {
|
|
70
|
-
const attempts =
|
|
82
|
+
const attempts = retryable(port, method) ? 2 : 1;
|
|
71
83
|
let last;
|
|
72
84
|
for (let attempt = 1; attempt <= attempts; attempt += 1) {
|
|
73
85
|
try {
|
|
@@ -15,6 +15,30 @@ export declare const REMOTE_PORT_TOKENS: {
|
|
|
15
15
|
readonly notification: symbol;
|
|
16
16
|
readonly userDirectory: symbol;
|
|
17
17
|
readonly liveFeed: symbol;
|
|
18
|
+
readonly extensionConfig: symbol;
|
|
19
|
+
readonly powersOfAttorney: symbol;
|
|
20
|
+
readonly branchCard: symbol;
|
|
21
|
+
readonly agreementCatalog: symbol;
|
|
22
|
+
readonly branch: symbol;
|
|
23
|
+
readonly cooperativeLogo: symbol;
|
|
24
|
+
readonly council: symbol;
|
|
25
|
+
readonly documentApproval: symbol;
|
|
26
|
+
readonly expenseChassis: symbol;
|
|
27
|
+
readonly ledger2History: symbol;
|
|
28
|
+
readonly organization: symbol;
|
|
29
|
+
readonly paymentDesk: symbol;
|
|
30
|
+
readonly paymentMethod: symbol;
|
|
31
|
+
readonly coopAuthorities: symbol;
|
|
32
|
+
readonly programAgreement: symbol;
|
|
33
|
+
readonly sovietRobot: symbol;
|
|
34
|
+
readonly userAvatar: symbol;
|
|
35
|
+
readonly userCertificate: symbol;
|
|
36
|
+
readonly userData: symbol;
|
|
37
|
+
readonly userWallet: symbol;
|
|
38
|
+
readonly verification: symbol;
|
|
39
|
+
readonly documentData: symbol;
|
|
40
|
+
readonly fileStorage: symbol;
|
|
41
|
+
readonly extensionRow: symbol;
|
|
18
42
|
};
|
|
19
43
|
/** Изменение строки таблицы приложения для живого обновления экранов — без данных строки. */
|
|
20
44
|
export interface AppLiveChange {
|
|
@@ -42,6 +66,40 @@ export interface IAppLiveFeed {
|
|
|
42
66
|
}
|
|
43
67
|
/** DI-токен порта живого обновления. */
|
|
44
68
|
export declare const LIVE_FEED_PORT: symbol;
|
|
69
|
+
/**
|
|
70
|
+
* Реестр доверенностей ядра со стороны приложения (порт `powersOfAttorney`,
|
|
71
|
+
* 487-43). Пакет и кооператив ядро берёт из заявки приложения, поэтому в
|
|
72
|
+
* аргументах их нет; меняются только доверенности типов своего пакета.
|
|
73
|
+
* Формы записи — в `@coopenomics/innercoop` (`InnerAppPowerOfAttorney*`).
|
|
74
|
+
*/
|
|
75
|
+
export interface IAppPowersOfAttorneyRemote<Registration = unknown, Resolution = unknown, Filter = unknown, Row = unknown> {
|
|
76
|
+
/** Следующий номер доверенности кооператива. */
|
|
77
|
+
nextNumber(): Promise<number>;
|
|
78
|
+
/** Доверенность подписана держателем — «на встречной подписи»; ответ — номер. */
|
|
79
|
+
register(input: Registration): Promise<number>;
|
|
80
|
+
/** Встречная подпись либо отказ; ответ — число изменённых доверенностей. */
|
|
81
|
+
resolve(input: Resolution): Promise<number>;
|
|
82
|
+
/** Доверенности типов пакета, новые первыми; не больше 200 за вызов. */
|
|
83
|
+
list(filter?: Filter, limit?: number, offset?: number): Promise<{
|
|
84
|
+
rows: Row[];
|
|
85
|
+
total: number;
|
|
86
|
+
}>;
|
|
87
|
+
}
|
|
88
|
+
/** DI-токен реестра доверенностей ядра. */
|
|
89
|
+
export declare const POWERS_OF_ATTORNEY_REMOTE_PORT: symbol;
|
|
90
|
+
/**
|
|
91
|
+
* Карточки кооперативных участков (порт `branchCard`, 487-43): карточка
|
|
92
|
+
* участка, учреждённого собранием, и открытые карточки всех участков.
|
|
93
|
+
* Формы — `InnerAppBranchCardInput` и `InnerAppBranchCard` из innercoop.
|
|
94
|
+
*/
|
|
95
|
+
export interface IAppBranchCardRemote<Input = unknown, Card = unknown> {
|
|
96
|
+
/** Создать карточку; `false` — карточка уже есть. */
|
|
97
|
+
create(input: Input): Promise<boolean>;
|
|
98
|
+
/** Открытые карточки участков; доступность приватного участка — для пайщика `username`. */
|
|
99
|
+
list(username?: string): Promise<Card[]>;
|
|
100
|
+
}
|
|
101
|
+
/** DI-токен карточек участков. */
|
|
102
|
+
export declare const BRANCH_CARD_REMOTE_PORT: symbol;
|
|
45
103
|
/** Имя порта ядра, доступного по сети. */
|
|
46
104
|
export type RemotePortName = keyof typeof REMOTE_PORT_TOKENS;
|
|
47
105
|
/**
|
|
@@ -52,6 +110,15 @@ export type RemotePortName = keyof typeof REMOTE_PORT_TOKENS;
|
|
|
52
110
|
* такое обращение ронял приложение отказом ядра.
|
|
53
111
|
*/
|
|
54
112
|
export declare const REMOTE_PORT_METHODS: Record<RemotePortName, readonly string[]>;
|
|
113
|
+
/**
|
|
114
|
+
* Поля `Date` в ответах портов. По сети дата приходит строкой ISO; объект
|
|
115
|
+
* порта возвращает её `Date`, как порт в монолите, — перенесённый код
|
|
116
|
+
* сравнивает и форматирует даты без правок. Путь: `поле`, `items[].поле`,
|
|
117
|
+
* `[].поле` (ответ — массив).
|
|
118
|
+
*/
|
|
119
|
+
export declare const REMOTE_PORT_DATES: Partial<Record<RemotePortName, Readonly<Record<string, readonly string[]>>>>;
|
|
120
|
+
/** Строка ISO по пути — в `Date`; `null`, пусто и уже `Date` остаются как есть. */
|
|
121
|
+
export declare function reviveDates<T>(value: T, paths: readonly string[]): T;
|
|
55
122
|
export interface ExtensionPortsOptions {
|
|
56
123
|
/** Адрес ядра (`CORE_PORTS_URL`). */
|
|
57
124
|
coreUrl: string;
|
|
@@ -7,7 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
var ExtensionPortsModule_1;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ExtensionPortsModule = exports.REMOTE_PORT_METHODS = exports.LIVE_FEED_PORT = exports.REMOTE_PORT_TOKENS = void 0;
|
|
10
|
+
exports.ExtensionPortsModule = exports.REMOTE_PORT_DATES = exports.REMOTE_PORT_METHODS = exports.BRANCH_CARD_REMOTE_PORT = exports.POWERS_OF_ATTORNEY_REMOTE_PORT = exports.LIVE_FEED_PORT = exports.REMOTE_PORT_TOKENS = void 0;
|
|
11
|
+
exports.reviveDates = reviveDates;
|
|
11
12
|
exports.remotePort = remotePort;
|
|
12
13
|
const common_1 = require("@nestjs/common");
|
|
13
14
|
const core_ports_client_1 = require("./core-ports.client");
|
|
@@ -26,9 +27,39 @@ exports.REMOTE_PORT_TOKENS = {
|
|
|
26
27
|
notification: Symbol.for('Innercoop.CorePort.Notification'),
|
|
27
28
|
userDirectory: Symbol.for('Innercoop.CorePort.UserDirectory'),
|
|
28
29
|
liveFeed: Symbol.for('Innercoop.CorePort.LiveFeed'),
|
|
30
|
+
extensionConfig: Symbol.for('Innercoop.CorePort.ExtensionConfig'),
|
|
31
|
+
powersOfAttorney: Symbol.for('Innercoop.CorePort.AppPowersOfAttorney'),
|
|
32
|
+
branchCard: Symbol.for('Innercoop.CorePort.AppBranchCard'),
|
|
33
|
+
// Порты «Стола заказов» (03.12.2026, 487-46): ядро открывает их только его пакету.
|
|
34
|
+
agreementCatalog: Symbol.for('Innercoop.CorePort.AgreementCatalog'),
|
|
35
|
+
branch: Symbol.for('Innercoop.CorePort.Branch'),
|
|
36
|
+
cooperativeLogo: Symbol.for('Innercoop.CorePort.CooperativeLogo'),
|
|
37
|
+
council: Symbol.for('Innercoop.CorePort.Council'),
|
|
38
|
+
documentApproval: Symbol.for('Innercoop.CorePort.DocumentApproval'),
|
|
39
|
+
expenseChassis: Symbol.for('Innercoop.CrossPlugin.ExpenseChassis'),
|
|
40
|
+
ledger2History: Symbol.for('Innercoop.CorePort.Ledger2History'),
|
|
41
|
+
organization: Symbol.for('Innercoop.CorePort.Organization'),
|
|
42
|
+
paymentDesk: Symbol.for('Innercoop.CorePort.PaymentDesk'),
|
|
43
|
+
paymentMethod: Symbol.for('Innercoop.CorePort.PaymentMethod'),
|
|
44
|
+
coopAuthorities: Symbol.for('Innercoop.CorePort.PowersOfAttorney'),
|
|
45
|
+
programAgreement: Symbol.for('Innercoop.CorePort.ProgramAgreement'),
|
|
46
|
+
sovietRobot: Symbol.for('Innercoop.CrossPlugin.SovietRobot'),
|
|
47
|
+
userAvatar: Symbol.for('Innercoop.CorePort.UserAvatar'),
|
|
48
|
+
userCertificate: Symbol.for('Innercoop.CorePort.UserCertificate'),
|
|
49
|
+
userData: Symbol.for('Innercoop.CorePort.UserData'),
|
|
50
|
+
userWallet: Symbol.for('Innercoop.CorePort.UserWallet'),
|
|
51
|
+
verification: Symbol.for('Innercoop.CorePort.Verification'),
|
|
52
|
+
// Обёртки ядра без порта innercoop того же вида: приложение строит из них свой адаптер.
|
|
53
|
+
documentData: Symbol.for('Innercoop.AppRemote.DocumentData'),
|
|
54
|
+
fileStorage: Symbol.for('Innercoop.AppRemote.FileStorage'),
|
|
55
|
+
extensionRow: Symbol.for('Innercoop.AppRemote.ExtensionRow'),
|
|
29
56
|
};
|
|
30
57
|
/** DI-токен порта живого обновления. */
|
|
31
58
|
exports.LIVE_FEED_PORT = exports.REMOTE_PORT_TOKENS.liveFeed;
|
|
59
|
+
/** DI-токен реестра доверенностей ядра. */
|
|
60
|
+
exports.POWERS_OF_ATTORNEY_REMOTE_PORT = exports.REMOTE_PORT_TOKENS.powersOfAttorney;
|
|
61
|
+
/** DI-токен карточек участков. */
|
|
62
|
+
exports.BRANCH_CARD_REMOTE_PORT = exports.REMOTE_PORT_TOKENS.branchCard;
|
|
32
63
|
/**
|
|
33
64
|
* Методы портов, открытые ядром по сети — зеркало каталога ядра
|
|
34
65
|
* (`remote-ports.catalog.ts` расширения apps). Объект порта отвечает только
|
|
@@ -41,12 +72,107 @@ exports.REMOTE_PORT_METHODS = {
|
|
|
41
72
|
cooperativeVars: ['get'],
|
|
42
73
|
accessToken: ['identify'],
|
|
43
74
|
account: ['getDisplayName', 'getAccount', 'getAccounts'],
|
|
44
|
-
|
|
75
|
+
// getAllRows — малые таблицы настроек (487-46: настройки контракта «Стола заказов»).
|
|
76
|
+
chain: ['transact', 'getSingleRow', 'queryRows', 'getAllRows'],
|
|
45
77
|
// Письмо — только по сценариям писем кооператива; служебный сценарий ядро отклонит.
|
|
46
78
|
notification: ['notifyUser', 'getDeliveries'],
|
|
47
|
-
|
|
79
|
+
// findBySubject — пайщик по учётке CoopID: «Карта кооператора» сопоставляет уведомление сети (487-41).
|
|
80
|
+
userDirectory: ['findByRoles', 'findBySubject'],
|
|
48
81
|
liveFeed: ['publish'],
|
|
82
|
+
// Только «установлено ли расширение»: конфиг расширения ядро по сети не отдаёт.
|
|
83
|
+
extensionConfig: ['isEnabled'],
|
|
84
|
+
// Только доверенности типов пакета; номер и срок ведёт ядро (487-43).
|
|
85
|
+
powersOfAttorney: ['nextNumber', 'register', 'resolve', 'list'],
|
|
86
|
+
// Карточку участка ядро сверяет с цепью; список — открытая часть карточек.
|
|
87
|
+
branchCard: ['create', 'list'],
|
|
88
|
+
agreementCatalog: ['getAgreementById'],
|
|
89
|
+
branch: ['getBranch', 'getBranches'],
|
|
90
|
+
cooperativeLogo: ['getLogoUrl', 'remove', 'upload'],
|
|
91
|
+
council: ['ensureProgram', 'getCoagreement', 'getPrograms'],
|
|
92
|
+
documentApproval: ['isStepApproved'],
|
|
93
|
+
expenseChassis: ['attachPlanToProposal', 'listPlans', 'snapshotRequisites', 'validateRequisites'],
|
|
94
|
+
ledger2History: ['getAccounts', 'getHistory', 'getWallets'],
|
|
95
|
+
organization: ['findByUsername'],
|
|
96
|
+
paymentDesk: [
|
|
97
|
+
'confirmers',
|
|
98
|
+
'createSystemOutgoingPayment',
|
|
99
|
+
'declinePayoutRequest',
|
|
100
|
+
'dropPayoutRequest',
|
|
101
|
+
'getPayments',
|
|
102
|
+
'getPayoutRequest',
|
|
103
|
+
'registerPayoutRequest',
|
|
104
|
+
'releasePayoutRequest',
|
|
105
|
+
'setPaymentStatus',
|
|
106
|
+
],
|
|
107
|
+
paymentMethod: ['get', 'list'],
|
|
108
|
+
coopAuthorities: ['listLapsedAuthorities'],
|
|
109
|
+
programAgreement: ['findProgramSignature', 'signProgramAgreement'],
|
|
110
|
+
sovietRobot: ['isEnabled', 'requestDecision'],
|
|
111
|
+
userAvatar: ['getAvatarUrl'],
|
|
112
|
+
userCertificate: ['getCertificateByUsername'],
|
|
113
|
+
userData: ['get', 'save'],
|
|
114
|
+
userWallet: ['findByUsername', 'findByWallet', 'findByWalletAndUsername'],
|
|
115
|
+
verification: ['checkRequired'],
|
|
116
|
+
// Данные документа по номеру реестра — для генерации ядром.
|
|
117
|
+
documentData: ['saveData'],
|
|
118
|
+
// Хранилище файлов: корзина — точная копия описания из ядра, тело — base64.
|
|
119
|
+
fileStorage: ['put', 'getReadUrl', 'delete', 'head'],
|
|
120
|
+
// Строка своего расширения в таблице extensions (состояние подключения советом).
|
|
121
|
+
extensionRow: ['findByName', 'patchConfig', 'ensure', 'migrate'],
|
|
49
122
|
};
|
|
123
|
+
const PAYMENT_DATES = ['expired_at', 'completed_at', 'failed_at', 'created_at', 'updated_at'];
|
|
124
|
+
const PAYOUT_DATES = ['created_at', 'decided_at'];
|
|
125
|
+
/**
|
|
126
|
+
* Поля `Date` в ответах портов. По сети дата приходит строкой ISO; объект
|
|
127
|
+
* порта возвращает её `Date`, как порт в монолите, — перенесённый код
|
|
128
|
+
* сравнивает и форматирует даты без правок. Путь: `поле`, `items[].поле`,
|
|
129
|
+
* `[].поле` (ответ — массив).
|
|
130
|
+
*/
|
|
131
|
+
exports.REMOTE_PORT_DATES = {
|
|
132
|
+
ledger2History: { getHistory: ['items[].createdAt'] },
|
|
133
|
+
paymentMethod: { get: ['created_at', 'updated_at'], list: ['items[].created_at', 'items[].updated_at'] },
|
|
134
|
+
paymentDesk: {
|
|
135
|
+
getPayments: PAYMENT_DATES.map((f) => `items[].${f}`),
|
|
136
|
+
setPaymentStatus: PAYMENT_DATES,
|
|
137
|
+
createSystemOutgoingPayment: PAYMENT_DATES,
|
|
138
|
+
releasePayoutRequest: PAYMENT_DATES,
|
|
139
|
+
registerPayoutRequest: PAYOUT_DATES,
|
|
140
|
+
getPayoutRequest: PAYOUT_DATES,
|
|
141
|
+
},
|
|
142
|
+
expenseChassis: { listPlans: ['[].dueDate', '[].paidAt'] },
|
|
143
|
+
fileStorage: { head: ['lastModified'] },
|
|
144
|
+
extensionRow: {
|
|
145
|
+
findByName: ['created_at', 'updated_at'],
|
|
146
|
+
patchConfig: ['created_at', 'updated_at'],
|
|
147
|
+
ensure: ['created_at', 'updated_at'],
|
|
148
|
+
migrate: ['created_at', 'updated_at'],
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
/** Строка ISO по пути — в `Date`; `null`, пусто и уже `Date` остаются как есть. */
|
|
152
|
+
function reviveDates(value, paths) {
|
|
153
|
+
for (const path of paths)
|
|
154
|
+
reviveAt(value, path.split('.'));
|
|
155
|
+
return value;
|
|
156
|
+
}
|
|
157
|
+
function reviveAt(node, steps) {
|
|
158
|
+
if (node === null || typeof node !== 'object' || steps.length === 0)
|
|
159
|
+
return;
|
|
160
|
+
const [step, ...rest] = steps;
|
|
161
|
+
const many = step.endsWith('[]');
|
|
162
|
+
const field = many ? step.slice(0, -2) : step;
|
|
163
|
+
const target = field === '' ? node : node[field];
|
|
164
|
+
if (many) {
|
|
165
|
+
if (Array.isArray(target))
|
|
166
|
+
for (const item of target)
|
|
167
|
+
reviveAt(item, rest);
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
if (rest.length > 0)
|
|
171
|
+
return reviveAt(target, rest);
|
|
172
|
+
const record = node;
|
|
173
|
+
if (typeof record[field] === 'string' && record[field] !== '')
|
|
174
|
+
record[field] = new Date(record[field]);
|
|
175
|
+
}
|
|
50
176
|
/**
|
|
51
177
|
* Объект порта, каждый метод которого — вызов ядра по сети.
|
|
52
178
|
*
|
|
@@ -58,7 +184,10 @@ exports.REMOTE_PORT_METHODS = {
|
|
|
58
184
|
function remotePort(client, port) {
|
|
59
185
|
const target = {};
|
|
60
186
|
for (const method of exports.REMOTE_PORT_METHODS[port]) {
|
|
61
|
-
|
|
187
|
+
const dates = exports.REMOTE_PORT_DATES[port]?.[method];
|
|
188
|
+
target[method] = dates
|
|
189
|
+
? async (...args) => reviveDates(await client.call(port, method, args), dates)
|
|
190
|
+
: (...args) => client.call(port, method, args);
|
|
62
191
|
}
|
|
63
192
|
if (port === 'chain')
|
|
64
193
|
target.initialize = () => undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CorePortsClient } from './core-ports.client';
|
|
2
|
+
/**
|
|
3
|
+
* Ключи и адреса внешних служб контура для приложения каталога
|
|
4
|
+
* (02.12.2026, 487-42).
|
|
5
|
+
*
|
|
6
|
+
* Настройки служб (Matrix, LiveKit, распознавание речи) задаются при
|
|
7
|
+
* развёртывании контура и хранятся в ядре. Приложение получает их портом
|
|
8
|
+
* `integration.<служба>`: порт заявлен в манифесте, председатель согласился,
|
|
9
|
+
* а ядро разрешило службу этому пакету. В остальных случаях — `null`, как
|
|
10
|
+
* при ненастроенной службе: приложение обязано работать без неё.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* const matrix = await integrationSettings<MatrixSettings>(client, 'matrix');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export type IntegrationService = 'matrix' | 'livekit' | 'openai' | 'cardcoop_client' | 'geocoder';
|
|
17
|
+
export declare function integrationSettings<T = Record<string, unknown>>(client: CorePortsClient, service: IntegrationService): Promise<T | null>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Токен, которым приложение вызывает порты других приложений и ядра-поставщика. */
|
|
2
|
+
export declare function appOutboundToken(secret: string, packageId: string): string;
|
|
3
|
+
/** Токен, которым посредник входит в приложение-поставщика. */
|
|
4
|
+
export declare function appInboundToken(secret: string, packageId: string): string;
|
|
5
|
+
/** Ключ шифрования секретов приложения (`APP_SECRETS_KEY`): 32 байта в base64. */
|
|
6
|
+
export declare function appSecretsKey(secret: string, packageId: string): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appOutboundToken = appOutboundToken;
|
|
4
|
+
exports.appInboundToken = appInboundToken;
|
|
5
|
+
exports.appSecretsKey = appSecretsKey;
|
|
6
|
+
/**
|
|
7
|
+
* Учётные данные приложения каталога, выведенные из секрета узла (01.12.2026).
|
|
8
|
+
*
|
|
9
|
+
* Значения не хранятся: каждое выводится из секрета узла (`SERVER_SECRET`) и
|
|
10
|
+
* имени пакета через HMAC-SHA256. Значение одно и то же после переустановки
|
|
11
|
+
* и перезапуска, у каждого приложения своё, а сам секрет узла приложению не
|
|
12
|
+
* передаётся.
|
|
13
|
+
*
|
|
14
|
+
* Формулы живут в одном месте (02.12.2026, 487-49): оркестратор выдаёт по ним
|
|
15
|
+
* токены и ключ приложению, ядро тем же ключом перешифровывает секреты снятого
|
|
16
|
+
* расширения для приложения-наследника. Разойдись формулы — наследник не
|
|
17
|
+
* расшифровал бы перенесённые ключи.
|
|
18
|
+
*
|
|
19
|
+
* - исходящий токен — приложение предъявляет посреднику, вызывая чужой порт;
|
|
20
|
+
* - входящий токен — посредник предъявляет приложению-поставщику;
|
|
21
|
+
* - ключ секретов — приложение шифрует им свои секретные настройки ({@link AppSecrets}).
|
|
22
|
+
*/
|
|
23
|
+
const node_crypto_1 = require("node:crypto");
|
|
24
|
+
function derive(secret, label) {
|
|
25
|
+
return (0, node_crypto_1.createHmac)('sha256', secret).update(label).digest();
|
|
26
|
+
}
|
|
27
|
+
/** Токен, которым приложение вызывает порты других приложений и ядра-поставщика. */
|
|
28
|
+
function appOutboundToken(secret, packageId) {
|
|
29
|
+
return `apo_${derive(secret, `app-ports:out:${packageId}`).toString('hex')}`;
|
|
30
|
+
}
|
|
31
|
+
/** Токен, которым посредник входит в приложение-поставщика. */
|
|
32
|
+
function appInboundToken(secret, packageId) {
|
|
33
|
+
return `api_${derive(secret, `app-ports:in:${packageId}`).toString('hex')}`;
|
|
34
|
+
}
|
|
35
|
+
/** Ключ шифрования секретов приложения (`APP_SECRETS_KEY`): 32 байта в base64. */
|
|
36
|
+
function appSecretsKey(secret, packageId) {
|
|
37
|
+
return derive(secret, `app-secrets:${packageId}`).toString('base64');
|
|
38
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Секреты приложения каталога: шифр секретных настроек и учётные данные,
|
|
3
|
+
* выведенные из секрета узла. Подпуть без зависимостей кроме `node:crypto`:
|
|
4
|
+
* его импортируют оркестратор и ядро, не загружая остальной набор.
|
|
5
|
+
*/
|
|
6
|
+
export { AppSecrets, AppSecretsError } from './app-secrets';
|
|
7
|
+
export { appInboundToken, appOutboundToken, appSecretsKey } from './app-credentials';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appSecretsKey = exports.appOutboundToken = exports.appInboundToken = exports.AppSecretsError = exports.AppSecrets = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Секреты приложения каталога: шифр секретных настроек и учётные данные,
|
|
6
|
+
* выведенные из секрета узла. Подпуть без зависимостей кроме `node:crypto`:
|
|
7
|
+
* его импортируют оркестратор и ядро, не загружая остальной набор.
|
|
8
|
+
*/
|
|
9
|
+
var app_secrets_1 = require("./app-secrets");
|
|
10
|
+
Object.defineProperty(exports, "AppSecrets", { enumerable: true, get: function () { return app_secrets_1.AppSecrets; } });
|
|
11
|
+
Object.defineProperty(exports, "AppSecretsError", { enumerable: true, get: function () { return app_secrets_1.AppSecretsError; } });
|
|
12
|
+
var app_credentials_1 = require("./app-credentials");
|
|
13
|
+
Object.defineProperty(exports, "appInboundToken", { enumerable: true, get: function () { return app_credentials_1.appInboundToken; } });
|
|
14
|
+
Object.defineProperty(exports, "appOutboundToken", { enumerable: true, get: function () { return app_credentials_1.appOutboundToken; } });
|
|
15
|
+
Object.defineProperty(exports, "appSecretsKey", { enumerable: true, get: function () { return app_credentials_1.appSecretsKey; } });
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Общие типы платформы — объявлены в `@coopenomics/extension-sdk/graphql`.
|
|
3
|
+
* Приложение берёт их из SDK без копий; гейт `pnpm check`
|
|
4
|
+
* (`scripts/check-shared-graphql-types.mjs`) держит список равным объявлениям.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SHARED_SCHEMA_TYPES: readonly string[];
|
|
7
|
+
export interface AppSchemaPrefix {
|
|
8
|
+
/** Ключ приставки, уникальный в каталоге: `chatcoop`. */
|
|
9
|
+
key: string;
|
|
10
|
+
/** Приставка типов: `Chatcoop`. */
|
|
11
|
+
typePrefix: string;
|
|
12
|
+
/** Приставка полей запросов: `chatcoop`. */
|
|
13
|
+
fieldPrefix: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Приставка схемы по имени пакета (`@scope/name`). `null` — из имени ключ не
|
|
17
|
+
* выводится (нет латинских букв в начале).
|
|
18
|
+
*/
|
|
19
|
+
export declare function appSchemaPrefix(packageId: string): AppSchemaPrefix | null;
|
|
20
|
+
export interface SubgraphViolation {
|
|
21
|
+
/** Имя типа или `Тип.поле`. */
|
|
22
|
+
subject: string;
|
|
23
|
+
/** Причина — текстом для издателя и для страницы приложения. */
|
|
24
|
+
reason: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Нарушения правила в схеме приложения. Пустой список — приложение можно
|
|
28
|
+
* сводить с ядром. Конфликты, которых правило не видит (тип с приставкой,
|
|
29
|
+
* совпавший с типом ядра), находит само сведение.
|
|
30
|
+
*/
|
|
31
|
+
export declare function checkAppSubgraph(input: {
|
|
32
|
+
coreSdl: string;
|
|
33
|
+
appSdl: string;
|
|
34
|
+
packageId: string;
|
|
35
|
+
}): SubgraphViolation[];
|