@coopenomics/extension-kit 2026.11.6-2 → 2026.11.12
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/dist/index.cjs +69 -0
- package/dist/index.d.cts +54 -2
- package/dist/index.d.mts +54 -2
- package/dist/index.d.ts +54 -2
- package/dist/index.mjs +64 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1083,6 +1083,14 @@ __decorateClass$j([
|
|
|
1083
1083
|
classValidator.IsOptional(),
|
|
1084
1084
|
classValidator.IsString()
|
|
1085
1085
|
], ExpenseProposalItemInputDTO.prototype, "recipient_username", 2);
|
|
1086
|
+
__decorateClass$j([
|
|
1087
|
+
graphql.Field(() => graphql.Int, {
|
|
1088
|
+
description: "\u041A\u043E\u043D\u0442\u0440\u0430\u0433\u0435\u043D\u0442-\u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0438\u0437 \u0440\u0435\u0435\u0441\u0442\u0440\u0430 \u043A\u043E\u043D\u0442\u0440\u0430\u0433\u0435\u043D\u0442\u043E\u0432 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 \u043F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442 \u043D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u0438 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u044B \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442.",
|
|
1089
|
+
nullable: true
|
|
1090
|
+
}),
|
|
1091
|
+
classValidator.IsOptional(),
|
|
1092
|
+
classValidator.IsInt()
|
|
1093
|
+
], ExpenseProposalItemInputDTO.prototype, "counterparty_id", 2);
|
|
1086
1094
|
ExpenseProposalItemInputDTO = __decorateClass$j([
|
|
1087
1095
|
graphql.InputType("ExpenseProposalItemInput")
|
|
1088
1096
|
], ExpenseProposalItemInputDTO);
|
|
@@ -1223,6 +1231,61 @@ exports.ExpenseProposalStatementSignedDocumentInputDTO = __decorateClass$j([
|
|
|
1223
1231
|
graphql.InputType("ExpenseProposalStatementSignedDocumentInput")
|
|
1224
1232
|
], exports.ExpenseProposalStatementSignedDocumentInputDTO);
|
|
1225
1233
|
|
|
1234
|
+
const EXPENSE_PLAN_RECURRENCE_MONTHS = {
|
|
1235
|
+
NONE: 0,
|
|
1236
|
+
MONTHLY: 1,
|
|
1237
|
+
QUARTERLY: 3,
|
|
1238
|
+
YEARLY: 12
|
|
1239
|
+
};
|
|
1240
|
+
function expensePlanRecurrenceMonths(recurrence) {
|
|
1241
|
+
if (!recurrence)
|
|
1242
|
+
return 0;
|
|
1243
|
+
return EXPENSE_PLAN_RECURRENCE_MONTHS[recurrence] ?? 0;
|
|
1244
|
+
}
|
|
1245
|
+
function nextExpensePlanDate(from, months) {
|
|
1246
|
+
if (!Number.isInteger(months) || months <= 0)
|
|
1247
|
+
return null;
|
|
1248
|
+
const year = from.getUTCFullYear();
|
|
1249
|
+
const month = from.getUTCMonth() + months;
|
|
1250
|
+
const lastDay = new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
|
|
1251
|
+
const day = Math.min(from.getUTCDate(), lastDay);
|
|
1252
|
+
return new Date(
|
|
1253
|
+
Date.UTC(
|
|
1254
|
+
year,
|
|
1255
|
+
month,
|
|
1256
|
+
day,
|
|
1257
|
+
from.getUTCHours(),
|
|
1258
|
+
from.getUTCMinutes(),
|
|
1259
|
+
from.getUTCSeconds(),
|
|
1260
|
+
from.getUTCMilliseconds()
|
|
1261
|
+
)
|
|
1262
|
+
);
|
|
1263
|
+
}
|
|
1264
|
+
function expensePlanScheduleDates(first, months, count) {
|
|
1265
|
+
if (count <= 0)
|
|
1266
|
+
return [];
|
|
1267
|
+
const dates = [first];
|
|
1268
|
+
let current = first;
|
|
1269
|
+
while (dates.length < count && current) {
|
|
1270
|
+
current = nextExpensePlanDate(current, months);
|
|
1271
|
+
if (current)
|
|
1272
|
+
dates.push(current);
|
|
1273
|
+
}
|
|
1274
|
+
return dates;
|
|
1275
|
+
}
|
|
1276
|
+
function expensePlanReserveShare(amount, monthsAhead, periodMonths) {
|
|
1277
|
+
if (amount <= 0n)
|
|
1278
|
+
return 0n;
|
|
1279
|
+
if (monthsAhead <= 0)
|
|
1280
|
+
return amount;
|
|
1281
|
+
if (!Number.isInteger(periodMonths) || periodMonths <= 1 || monthsAhead >= periodMonths)
|
|
1282
|
+
return 0n;
|
|
1283
|
+
return amount * BigInt(periodMonths - monthsAhead) / BigInt(periodMonths);
|
|
1284
|
+
}
|
|
1285
|
+
function expensePlanReserveMonths(periodMonths) {
|
|
1286
|
+
return Number.isInteger(periodMonths) && periodMonths > 1 ? periodMonths : 1;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1226
1289
|
const DOCUMENT_GENERATION_THROTTLE = { default: { limit: 60, ttl: 6e4 } };
|
|
1227
1290
|
|
|
1228
1291
|
var __defProp$i = Object.defineProperty;
|
|
@@ -3317,6 +3380,7 @@ exports.DOCUMENT_GENERATION_THROTTLE = DOCUMENT_GENERATION_THROTTLE;
|
|
|
3317
3380
|
exports.DateUtils = DateUtils;
|
|
3318
3381
|
exports.DomainError = DomainError;
|
|
3319
3382
|
exports.EMPTY_HASH = EMPTY_HASH;
|
|
3383
|
+
exports.EXPENSE_PLAN_RECURRENCE_MONTHS = EXPENSE_PLAN_RECURRENCE_MONTHS;
|
|
3320
3384
|
exports.EXTENSION_APP_TERMINATE_EVENT = EXTENSION_APP_TERMINATE_EVENT;
|
|
3321
3385
|
exports.EXTENSION_REPOSITORY = EXTENSION_REPOSITORY;
|
|
3322
3386
|
exports.EXTENSION_SECRET_SET = EXTENSION_SECRET_SET;
|
|
@@ -3368,6 +3432,10 @@ exports.desktopGrants = desktopGrants;
|
|
|
3368
3432
|
exports.desktopGrantsOf = desktopGrantsOf;
|
|
3369
3433
|
exports.domainErrorMessage = domainErrorMessage;
|
|
3370
3434
|
exports.expandRights = expandRights;
|
|
3435
|
+
exports.expensePlanRecurrenceMonths = expensePlanRecurrenceMonths;
|
|
3436
|
+
exports.expensePlanReserveMonths = expensePlanReserveMonths;
|
|
3437
|
+
exports.expensePlanReserveShare = expensePlanReserveShare;
|
|
3438
|
+
exports.expensePlanScheduleDates = expensePlanScheduleDates;
|
|
3371
3439
|
exports.extensionDatabaseMigrations = extensionDatabaseMigrations;
|
|
3372
3440
|
exports.generateHashFromString = generateHashFromString;
|
|
3373
3441
|
exports.generateRandomHash = generateRandomHash;
|
|
@@ -3383,6 +3451,7 @@ exports.isStandTimeConfigured = isStandTimeConfigured;
|
|
|
3383
3451
|
exports.isStandWorkerTurn = isStandWorkerTurn;
|
|
3384
3452
|
exports.memberRolesOf = memberRolesOf;
|
|
3385
3453
|
exports.mergeSecretConfig = mergeSecretConfig;
|
|
3454
|
+
exports.nextExpensePlanDate = nextExpensePlanDate;
|
|
3386
3455
|
exports.nextLocalMidnight = nextLocalMidnight;
|
|
3387
3456
|
exports.paginationInputToOffset = paginationInputToOffset;
|
|
3388
3457
|
exports.parseChainAssert = parseChainAssert;
|
package/dist/index.d.cts
CHANGED
|
@@ -748,6 +748,7 @@ declare class ExpenseProposalItemInputDTO {
|
|
|
748
748
|
payment_purpose?: string;
|
|
749
749
|
payment_method_id?: string;
|
|
750
750
|
recipient_username?: string;
|
|
751
|
+
counterparty_id?: number;
|
|
751
752
|
}
|
|
752
753
|
/**
|
|
753
754
|
* Публичная позиция подписанной meta — ровно то, что публикуется on-chain.
|
|
@@ -805,6 +806,57 @@ declare class ExpenseProposalStatementSignedDocumentInputDTO extends SignedDigit
|
|
|
805
806
|
readonly meta: ExpenseProposalStatementSignedMetaDocumentInputDTO;
|
|
806
807
|
}
|
|
807
808
|
|
|
809
|
+
/**
|
|
810
|
+
* Календарь повторяющегося планового расхода (задача 99D-34, решение
|
|
811
|
+
* владельца 11.11.2026).
|
|
812
|
+
*
|
|
813
|
+
* Одна реализация на два расширения: расходы продолжают по ней серию записей
|
|
814
|
+
* реестра, Стол заказов по ней же показывает председателю сроки будущих
|
|
815
|
+
* платежей и считает резерв участка. Если правило поменяется только в одном
|
|
816
|
+
* месте, экран пообещает один срок, а реестр заведёт другой.
|
|
817
|
+
*
|
|
818
|
+
* Календарь ведётся по UTC — как месяцы контракта и узла.
|
|
819
|
+
*/
|
|
820
|
+
/** Периодичность записи реестра плановых расходов — значения перечисления `ExpensePlanRecurrence`. */
|
|
821
|
+
type ExpensePlanRecurrenceKey = 'NONE' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY';
|
|
822
|
+
/** Шаг серии в месяцах; 0 — разовый расход. */
|
|
823
|
+
declare const EXPENSE_PLAN_RECURRENCE_MONTHS: Readonly<Record<ExpensePlanRecurrenceKey, number>>;
|
|
824
|
+
/** Шаг серии в месяцах по значению периодичности; неизвестное значение и пустота — разовый расход. */
|
|
825
|
+
declare function expensePlanRecurrenceMonths(recurrence: string | null | undefined): number;
|
|
826
|
+
/**
|
|
827
|
+
* Срок следующего платежа серии через `months` месяцев; `null` для разового расхода.
|
|
828
|
+
*
|
|
829
|
+
* Число месяца сохраняется: платёж «11-го» остаётся 11-м. Если в целевом месяце
|
|
830
|
+
* такого числа нет (31-е в феврале), берётся последний день месяца, а не
|
|
831
|
+
* перескок в следующий месяц. Время суток сохраняется.
|
|
832
|
+
*/
|
|
833
|
+
declare function nextExpensePlanDate(from: Date, months: number): Date | null;
|
|
834
|
+
/**
|
|
835
|
+
* Сроки `count` платежей серии, начиная с `first` включительно.
|
|
836
|
+
*
|
|
837
|
+
* Каждый срок считается от предыдущего — так расширение расходов продолжает
|
|
838
|
+
* серию: новая запись получает срок от срока прошлой записи. Серия «31-го»
|
|
839
|
+
* после февраля остаётся на последнем дне февраля.
|
|
840
|
+
*/
|
|
841
|
+
declare function expensePlanScheduleDates(first: Date, months: number, count: number): Date[];
|
|
842
|
+
/**
|
|
843
|
+
* Доля суммы платежа, которую резерв держит к концу месяца.
|
|
844
|
+
*
|
|
845
|
+
* `monthsAhead` — сколько месяцев от последнего месяца, который покрывает
|
|
846
|
+
* резерв, до месяца срока платежа. Ноль и меньше — срок внутри покрытия или
|
|
847
|
+
* прошёл: резерв держит всю сумму. Повторяющийся платёж с шагом `periodMonths`
|
|
848
|
+
* собирается равными долями за `periodMonths` месяцев: за `k` месяцев до срока
|
|
849
|
+
* резерв держит `(periodMonths − k) / periodMonths` суммы, раньше — ничего.
|
|
850
|
+
* Квартальный платёж копится три месяца, годовой — двенадцать, ежемесячный и
|
|
851
|
+
* разовый — один месяц, целиком.
|
|
852
|
+
*
|
|
853
|
+
* Доля округляется вниз до единицы суммы; последний месяц перед сроком
|
|
854
|
+
* добирает остаток, и к сроку в резерве лежит вся сумма.
|
|
855
|
+
*/
|
|
856
|
+
declare function expensePlanReserveShare(amount: bigint, monthsAhead: number, periodMonths: number): bigint;
|
|
857
|
+
/** Сколько месяцев резерв копит один платёж: период повторяющегося расхода, для разового и ежемесячного — один. */
|
|
858
|
+
declare function expensePlanReserveMonths(periodMonths: number): number;
|
|
859
|
+
|
|
808
860
|
/**
|
|
809
861
|
* Предел частоты сборки документов на одного пайщика — общий для ядра и
|
|
810
862
|
* расширений, чтобы не держать число в полусотне резолверов.
|
|
@@ -2447,5 +2499,5 @@ declare function chainRefusalOf(error: unknown): DomainError | null;
|
|
|
2447
2499
|
*/
|
|
2448
2500
|
declare function rethrowChainError(error: unknown): never;
|
|
2449
2501
|
|
|
2450
|
-
export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bankSafeText, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, describeStandTime, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, isStandTimeCompressed, isStandTimeConfigured, isStandWorkerTurn, memberRolesOf, mergeSecretConfig, nextLocalMidnight, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, standDaySeconds, standMonthSeconds, standNextPeriodStart, standPeriodKey, standWorkerPaceSeconds, timeZoneOffsetMs, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
|
|
2451
|
-
export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
|
|
2502
|
+
export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXPENSE_PLAN_RECURRENCE_MONTHS, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bankSafeText, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, describeStandTime, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, expensePlanRecurrenceMonths, expensePlanReserveMonths, expensePlanReserveShare, expensePlanScheduleDates, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, isStandTimeCompressed, isStandTimeConfigured, isStandWorkerTurn, memberRolesOf, mergeSecretConfig, nextExpensePlanDate, nextLocalMidnight, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, standDaySeconds, standMonthSeconds, standNextPeriodStart, standPeriodKey, standWorkerPaceSeconds, timeZoneOffsetMs, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
|
|
2503
|
+
export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExpensePlanRecurrenceKey, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
|
package/dist/index.d.mts
CHANGED
|
@@ -748,6 +748,7 @@ declare class ExpenseProposalItemInputDTO {
|
|
|
748
748
|
payment_purpose?: string;
|
|
749
749
|
payment_method_id?: string;
|
|
750
750
|
recipient_username?: string;
|
|
751
|
+
counterparty_id?: number;
|
|
751
752
|
}
|
|
752
753
|
/**
|
|
753
754
|
* Публичная позиция подписанной meta — ровно то, что публикуется on-chain.
|
|
@@ -805,6 +806,57 @@ declare class ExpenseProposalStatementSignedDocumentInputDTO extends SignedDigit
|
|
|
805
806
|
readonly meta: ExpenseProposalStatementSignedMetaDocumentInputDTO;
|
|
806
807
|
}
|
|
807
808
|
|
|
809
|
+
/**
|
|
810
|
+
* Календарь повторяющегося планового расхода (задача 99D-34, решение
|
|
811
|
+
* владельца 11.11.2026).
|
|
812
|
+
*
|
|
813
|
+
* Одна реализация на два расширения: расходы продолжают по ней серию записей
|
|
814
|
+
* реестра, Стол заказов по ней же показывает председателю сроки будущих
|
|
815
|
+
* платежей и считает резерв участка. Если правило поменяется только в одном
|
|
816
|
+
* месте, экран пообещает один срок, а реестр заведёт другой.
|
|
817
|
+
*
|
|
818
|
+
* Календарь ведётся по UTC — как месяцы контракта и узла.
|
|
819
|
+
*/
|
|
820
|
+
/** Периодичность записи реестра плановых расходов — значения перечисления `ExpensePlanRecurrence`. */
|
|
821
|
+
type ExpensePlanRecurrenceKey = 'NONE' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY';
|
|
822
|
+
/** Шаг серии в месяцах; 0 — разовый расход. */
|
|
823
|
+
declare const EXPENSE_PLAN_RECURRENCE_MONTHS: Readonly<Record<ExpensePlanRecurrenceKey, number>>;
|
|
824
|
+
/** Шаг серии в месяцах по значению периодичности; неизвестное значение и пустота — разовый расход. */
|
|
825
|
+
declare function expensePlanRecurrenceMonths(recurrence: string | null | undefined): number;
|
|
826
|
+
/**
|
|
827
|
+
* Срок следующего платежа серии через `months` месяцев; `null` для разового расхода.
|
|
828
|
+
*
|
|
829
|
+
* Число месяца сохраняется: платёж «11-го» остаётся 11-м. Если в целевом месяце
|
|
830
|
+
* такого числа нет (31-е в феврале), берётся последний день месяца, а не
|
|
831
|
+
* перескок в следующий месяц. Время суток сохраняется.
|
|
832
|
+
*/
|
|
833
|
+
declare function nextExpensePlanDate(from: Date, months: number): Date | null;
|
|
834
|
+
/**
|
|
835
|
+
* Сроки `count` платежей серии, начиная с `first` включительно.
|
|
836
|
+
*
|
|
837
|
+
* Каждый срок считается от предыдущего — так расширение расходов продолжает
|
|
838
|
+
* серию: новая запись получает срок от срока прошлой записи. Серия «31-го»
|
|
839
|
+
* после февраля остаётся на последнем дне февраля.
|
|
840
|
+
*/
|
|
841
|
+
declare function expensePlanScheduleDates(first: Date, months: number, count: number): Date[];
|
|
842
|
+
/**
|
|
843
|
+
* Доля суммы платежа, которую резерв держит к концу месяца.
|
|
844
|
+
*
|
|
845
|
+
* `monthsAhead` — сколько месяцев от последнего месяца, который покрывает
|
|
846
|
+
* резерв, до месяца срока платежа. Ноль и меньше — срок внутри покрытия или
|
|
847
|
+
* прошёл: резерв держит всю сумму. Повторяющийся платёж с шагом `periodMonths`
|
|
848
|
+
* собирается равными долями за `periodMonths` месяцев: за `k` месяцев до срока
|
|
849
|
+
* резерв держит `(periodMonths − k) / periodMonths` суммы, раньше — ничего.
|
|
850
|
+
* Квартальный платёж копится три месяца, годовой — двенадцать, ежемесячный и
|
|
851
|
+
* разовый — один месяц, целиком.
|
|
852
|
+
*
|
|
853
|
+
* Доля округляется вниз до единицы суммы; последний месяц перед сроком
|
|
854
|
+
* добирает остаток, и к сроку в резерве лежит вся сумма.
|
|
855
|
+
*/
|
|
856
|
+
declare function expensePlanReserveShare(amount: bigint, monthsAhead: number, periodMonths: number): bigint;
|
|
857
|
+
/** Сколько месяцев резерв копит один платёж: период повторяющегося расхода, для разового и ежемесячного — один. */
|
|
858
|
+
declare function expensePlanReserveMonths(periodMonths: number): number;
|
|
859
|
+
|
|
808
860
|
/**
|
|
809
861
|
* Предел частоты сборки документов на одного пайщика — общий для ядра и
|
|
810
862
|
* расширений, чтобы не держать число в полусотне резолверов.
|
|
@@ -2447,5 +2499,5 @@ declare function chainRefusalOf(error: unknown): DomainError | null;
|
|
|
2447
2499
|
*/
|
|
2448
2500
|
declare function rethrowChainError(error: unknown): never;
|
|
2449
2501
|
|
|
2450
|
-
export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bankSafeText, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, describeStandTime, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, isStandTimeCompressed, isStandTimeConfigured, isStandWorkerTurn, memberRolesOf, mergeSecretConfig, nextLocalMidnight, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, standDaySeconds, standMonthSeconds, standNextPeriodStart, standPeriodKey, standWorkerPaceSeconds, timeZoneOffsetMs, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
|
|
2451
|
-
export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
|
|
2502
|
+
export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXPENSE_PLAN_RECURRENCE_MONTHS, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bankSafeText, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, describeStandTime, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, expensePlanRecurrenceMonths, expensePlanReserveMonths, expensePlanReserveShare, expensePlanScheduleDates, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, isStandTimeCompressed, isStandTimeConfigured, isStandWorkerTurn, memberRolesOf, mergeSecretConfig, nextExpensePlanDate, nextLocalMidnight, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, standDaySeconds, standMonthSeconds, standNextPeriodStart, standPeriodKey, standWorkerPaceSeconds, timeZoneOffsetMs, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
|
|
2503
|
+
export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExpensePlanRecurrenceKey, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -748,6 +748,7 @@ declare class ExpenseProposalItemInputDTO {
|
|
|
748
748
|
payment_purpose?: string;
|
|
749
749
|
payment_method_id?: string;
|
|
750
750
|
recipient_username?: string;
|
|
751
|
+
counterparty_id?: number;
|
|
751
752
|
}
|
|
752
753
|
/**
|
|
753
754
|
* Публичная позиция подписанной meta — ровно то, что публикуется on-chain.
|
|
@@ -805,6 +806,57 @@ declare class ExpenseProposalStatementSignedDocumentInputDTO extends SignedDigit
|
|
|
805
806
|
readonly meta: ExpenseProposalStatementSignedMetaDocumentInputDTO;
|
|
806
807
|
}
|
|
807
808
|
|
|
809
|
+
/**
|
|
810
|
+
* Календарь повторяющегося планового расхода (задача 99D-34, решение
|
|
811
|
+
* владельца 11.11.2026).
|
|
812
|
+
*
|
|
813
|
+
* Одна реализация на два расширения: расходы продолжают по ней серию записей
|
|
814
|
+
* реестра, Стол заказов по ней же показывает председателю сроки будущих
|
|
815
|
+
* платежей и считает резерв участка. Если правило поменяется только в одном
|
|
816
|
+
* месте, экран пообещает один срок, а реестр заведёт другой.
|
|
817
|
+
*
|
|
818
|
+
* Календарь ведётся по UTC — как месяцы контракта и узла.
|
|
819
|
+
*/
|
|
820
|
+
/** Периодичность записи реестра плановых расходов — значения перечисления `ExpensePlanRecurrence`. */
|
|
821
|
+
type ExpensePlanRecurrenceKey = 'NONE' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY';
|
|
822
|
+
/** Шаг серии в месяцах; 0 — разовый расход. */
|
|
823
|
+
declare const EXPENSE_PLAN_RECURRENCE_MONTHS: Readonly<Record<ExpensePlanRecurrenceKey, number>>;
|
|
824
|
+
/** Шаг серии в месяцах по значению периодичности; неизвестное значение и пустота — разовый расход. */
|
|
825
|
+
declare function expensePlanRecurrenceMonths(recurrence: string | null | undefined): number;
|
|
826
|
+
/**
|
|
827
|
+
* Срок следующего платежа серии через `months` месяцев; `null` для разового расхода.
|
|
828
|
+
*
|
|
829
|
+
* Число месяца сохраняется: платёж «11-го» остаётся 11-м. Если в целевом месяце
|
|
830
|
+
* такого числа нет (31-е в феврале), берётся последний день месяца, а не
|
|
831
|
+
* перескок в следующий месяц. Время суток сохраняется.
|
|
832
|
+
*/
|
|
833
|
+
declare function nextExpensePlanDate(from: Date, months: number): Date | null;
|
|
834
|
+
/**
|
|
835
|
+
* Сроки `count` платежей серии, начиная с `first` включительно.
|
|
836
|
+
*
|
|
837
|
+
* Каждый срок считается от предыдущего — так расширение расходов продолжает
|
|
838
|
+
* серию: новая запись получает срок от срока прошлой записи. Серия «31-го»
|
|
839
|
+
* после февраля остаётся на последнем дне февраля.
|
|
840
|
+
*/
|
|
841
|
+
declare function expensePlanScheduleDates(first: Date, months: number, count: number): Date[];
|
|
842
|
+
/**
|
|
843
|
+
* Доля суммы платежа, которую резерв держит к концу месяца.
|
|
844
|
+
*
|
|
845
|
+
* `monthsAhead` — сколько месяцев от последнего месяца, который покрывает
|
|
846
|
+
* резерв, до месяца срока платежа. Ноль и меньше — срок внутри покрытия или
|
|
847
|
+
* прошёл: резерв держит всю сумму. Повторяющийся платёж с шагом `periodMonths`
|
|
848
|
+
* собирается равными долями за `periodMonths` месяцев: за `k` месяцев до срока
|
|
849
|
+
* резерв держит `(periodMonths − k) / periodMonths` суммы, раньше — ничего.
|
|
850
|
+
* Квартальный платёж копится три месяца, годовой — двенадцать, ежемесячный и
|
|
851
|
+
* разовый — один месяц, целиком.
|
|
852
|
+
*
|
|
853
|
+
* Доля округляется вниз до единицы суммы; последний месяц перед сроком
|
|
854
|
+
* добирает остаток, и к сроку в резерве лежит вся сумма.
|
|
855
|
+
*/
|
|
856
|
+
declare function expensePlanReserveShare(amount: bigint, monthsAhead: number, periodMonths: number): bigint;
|
|
857
|
+
/** Сколько месяцев резерв копит один платёж: период повторяющегося расхода, для разового и ежемесячного — один. */
|
|
858
|
+
declare function expensePlanReserveMonths(periodMonths: number): number;
|
|
859
|
+
|
|
808
860
|
/**
|
|
809
861
|
* Предел частоты сборки документов на одного пайщика — общий для ядра и
|
|
810
862
|
* расширений, чтобы не держать число в полусотне резолверов.
|
|
@@ -2447,5 +2499,5 @@ declare function chainRefusalOf(error: unknown): DomainError | null;
|
|
|
2447
2499
|
*/
|
|
2448
2500
|
declare function rethrowChainError(error: unknown): never;
|
|
2449
2501
|
|
|
2450
|
-
export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bankSafeText, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, describeStandTime, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, isStandTimeCompressed, isStandTimeConfigured, isStandWorkerTurn, memberRolesOf, mergeSecretConfig, nextLocalMidnight, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, standDaySeconds, standMonthSeconds, standNextPeriodStart, standPeriodKey, standWorkerPaceSeconds, timeZoneOffsetMs, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
|
|
2451
|
-
export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
|
|
2502
|
+
export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXPENSE_PLAN_RECURRENCE_MONTHS, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, KYSELY, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MAIN_DATABASE, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TableStore, TransactionDTO, UseBucket, affectedCount, attachOne, bankSafeText, bucketProvidersFor, bucketTokenFor, buildPaginationResult, camelRow, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configureLocalChangePublisher, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, describeStandTime, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, expensePlanRecurrenceMonths, expensePlanReserveMonths, expensePlanReserveShare, expensePlanScheduleDates, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, inTransaction, isChainTextDigest, isChainTextOf, isExtensionAvailable, isStandTimeCompressed, isStandTimeConfigured, isStandWorkerTurn, memberRolesOf, mergeSecretConfig, nextExpensePlanDate, nextLocalMidnight, paginationInputToOffset, parseChainAssert, pendingLocalChanges, pickDefined, platformSettings, providerSuppliedPaths, rawQuery, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, snakeRow, sortColumn, sortDirection, standDaySeconds, standMonthSeconds, standNextPeriodStart, standPeriodKey, standWorkerPaceSeconds, timeZoneOffsetMs, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
|
|
2503
|
+
export type { AppRights, AssignableRole, AttachedRole, BucketSource, BucketSpec, CouncilRole, DeserializedDescriptionOfExtension, DesktopGrantsRequest, DomainErrorParams, EventSource, EventWait, ExcludeCommonProps, ExpensePlanRecurrenceKey, ExtensionAppTerminatePayload, ExtensionAuthOptions, ExtensionConfigFieldPolicy, ExtensionConfigPolicy, ExtensionDatabaseMigrationClass, ExtensionDomainInterface, ExtensionDomainRepository, ExtensionSchemaMigrationAfterContext, GeneratedDocumentDomainInterface, GeneratedDocumentDraft, GrantedAction, IDesktopConfig, IExtensionSchemaMigration, IGrantedScope, IRegistryExtension, IResolvedRegistryExtension, IRightRequirement, LoadGeneratedDocumentByDocHash, LogExtensionDomainInterface, LogExtensionDomainRepository, LogExtensionFilter, LogExtensionPaginationOptions, LogExtensionPaginationResult, MainDatabase, MemberRole, NarrowRightScope, PaymentDetails, PendingLocalChange, PlatformBlockchainSettings, PlatformSettings, RegisteredBucket, RequireFields, RightActor, RightFacts, RightGrant, RightOutcome, RightScope, RightSource, RightsCaller, RightsGroup, RightsTable, RolePermission, SchemaMigration, SchemaMigrationClass, SchemaQueryRunner, ScopeCheckInput, ScopeCheckResult, SignedDocumentMetaCompareMode, SignedDocumentMetaVerification, SignedDocumentToVerify, TransactResultWithResponse };
|
package/dist/index.mjs
CHANGED
|
@@ -1075,6 +1075,14 @@ __decorateClass$j([
|
|
|
1075
1075
|
IsOptional(),
|
|
1076
1076
|
IsString()
|
|
1077
1077
|
], ExpenseProposalItemInputDTO.prototype, "recipient_username", 2);
|
|
1078
|
+
__decorateClass$j([
|
|
1079
|
+
Field(() => Int, {
|
|
1080
|
+
description: "\u041A\u043E\u043D\u0442\u0440\u0430\u0433\u0435\u043D\u0442-\u043F\u043E\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0438\u0437 \u0440\u0435\u0435\u0441\u0442\u0440\u0430 \u043A\u043E\u043D\u0442\u0440\u0430\u0433\u0435\u043D\u0442\u043E\u0432 \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 \u043F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442 \u043D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u0438 \u0440\u0435\u043A\u0432\u0438\u0437\u0438\u0442\u044B \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442.",
|
|
1081
|
+
nullable: true
|
|
1082
|
+
}),
|
|
1083
|
+
IsOptional(),
|
|
1084
|
+
IsInt()
|
|
1085
|
+
], ExpenseProposalItemInputDTO.prototype, "counterparty_id", 2);
|
|
1078
1086
|
ExpenseProposalItemInputDTO = __decorateClass$j([
|
|
1079
1087
|
InputType("ExpenseProposalItemInput")
|
|
1080
1088
|
], ExpenseProposalItemInputDTO);
|
|
@@ -1215,6 +1223,61 @@ ExpenseProposalStatementSignedDocumentInputDTO = __decorateClass$j([
|
|
|
1215
1223
|
InputType("ExpenseProposalStatementSignedDocumentInput")
|
|
1216
1224
|
], ExpenseProposalStatementSignedDocumentInputDTO);
|
|
1217
1225
|
|
|
1226
|
+
const EXPENSE_PLAN_RECURRENCE_MONTHS = {
|
|
1227
|
+
NONE: 0,
|
|
1228
|
+
MONTHLY: 1,
|
|
1229
|
+
QUARTERLY: 3,
|
|
1230
|
+
YEARLY: 12
|
|
1231
|
+
};
|
|
1232
|
+
function expensePlanRecurrenceMonths(recurrence) {
|
|
1233
|
+
if (!recurrence)
|
|
1234
|
+
return 0;
|
|
1235
|
+
return EXPENSE_PLAN_RECURRENCE_MONTHS[recurrence] ?? 0;
|
|
1236
|
+
}
|
|
1237
|
+
function nextExpensePlanDate(from, months) {
|
|
1238
|
+
if (!Number.isInteger(months) || months <= 0)
|
|
1239
|
+
return null;
|
|
1240
|
+
const year = from.getUTCFullYear();
|
|
1241
|
+
const month = from.getUTCMonth() + months;
|
|
1242
|
+
const lastDay = new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
|
|
1243
|
+
const day = Math.min(from.getUTCDate(), lastDay);
|
|
1244
|
+
return new Date(
|
|
1245
|
+
Date.UTC(
|
|
1246
|
+
year,
|
|
1247
|
+
month,
|
|
1248
|
+
day,
|
|
1249
|
+
from.getUTCHours(),
|
|
1250
|
+
from.getUTCMinutes(),
|
|
1251
|
+
from.getUTCSeconds(),
|
|
1252
|
+
from.getUTCMilliseconds()
|
|
1253
|
+
)
|
|
1254
|
+
);
|
|
1255
|
+
}
|
|
1256
|
+
function expensePlanScheduleDates(first, months, count) {
|
|
1257
|
+
if (count <= 0)
|
|
1258
|
+
return [];
|
|
1259
|
+
const dates = [first];
|
|
1260
|
+
let current = first;
|
|
1261
|
+
while (dates.length < count && current) {
|
|
1262
|
+
current = nextExpensePlanDate(current, months);
|
|
1263
|
+
if (current)
|
|
1264
|
+
dates.push(current);
|
|
1265
|
+
}
|
|
1266
|
+
return dates;
|
|
1267
|
+
}
|
|
1268
|
+
function expensePlanReserveShare(amount, monthsAhead, periodMonths) {
|
|
1269
|
+
if (amount <= 0n)
|
|
1270
|
+
return 0n;
|
|
1271
|
+
if (monthsAhead <= 0)
|
|
1272
|
+
return amount;
|
|
1273
|
+
if (!Number.isInteger(periodMonths) || periodMonths <= 1 || monthsAhead >= periodMonths)
|
|
1274
|
+
return 0n;
|
|
1275
|
+
return amount * BigInt(periodMonths - monthsAhead) / BigInt(periodMonths);
|
|
1276
|
+
}
|
|
1277
|
+
function expensePlanReserveMonths(periodMonths) {
|
|
1278
|
+
return Number.isInteger(periodMonths) && periodMonths > 1 ? periodMonths : 1;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1218
1281
|
const DOCUMENT_GENERATION_THROTTLE = { default: { limit: 60, ttl: 6e4 } };
|
|
1219
1282
|
|
|
1220
1283
|
var __defProp$i = Object.defineProperty;
|
|
@@ -3271,4 +3334,4 @@ function rethrowChainError(error) {
|
|
|
3271
3334
|
throw DomainError.badRequest(code ?? "CHAIN_ASSERT", { message: text });
|
|
3272
3335
|
}
|
|
3273
3336
|
|
|
3274
|
-
export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TransactionDTO, UseBucket, attachOne, bankSafeText, bucketProvidersFor, bucketTokenFor, buildPaginationResult, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, describeStandTime, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, isChainTextDigest, isChainTextOf, isExtensionAvailable, isStandTimeCompressed, isStandTimeConfigured, isStandWorkerTurn, memberRolesOf, mergeSecretConfig, nextLocalMidnight, oneOf, paginationInputToOffset, parseChainAssert, pickDefined, platformSettings, providerSuppliedPaths, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, standDaySeconds, standMonthSeconds, standNextPeriodStart, standPeriodKey, standWorkerPaceSeconds, timeZoneOffsetMs, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
|
|
3337
|
+
export { APP_RIGHTS, ActiveUserStatusGuard, AmountFormatterUtils, AssetUtils, BaseExtensionModule, BucketRegistry, CandidateFilterInputDTO, CandidateOutputDTO, CandidateStatus, CouncilField, CurrencyValidationUtil, CurrentUser, DEFAULT_DOCUMENT_VERSION, DOCUMENT_GENERATION_THROTTLE, DateUtils, DocumentAggregateDTO, DomainError, DomainToBlockchainUtils, EMPTY_HASH, EXPENSE_PLAN_RECURRENCE_MONTHS, EXTENSION_APP_TERMINATE_EVENT, EXTENSION_REPOSITORY, EXTENSION_SECRET_SET, EXTENSION_SECRET_UNSET, ExpenseProposalStatementGenerateDocumentInputDTO, ExpenseProposalStatementSignedDocumentInputDTO, ExpenseProposalStatementSignedMetaDocumentInputDTO, ExtensionAvailability, ExtensionConfigSuppliedBy, ExtensionDomainEntity, GRANTED_SCOPE_KEY, GenerateDocumentInputDTO, GenerateDocumentOptionsInputDTO, GenerateMetaDocumentInputDTO, GeneratedDocumentDTO, GetLedger2HistoryInputDTO, GetLedger2PostingsInputDTO, GqlJwtAuthGuard, GrantedScope, HttpApiError, HttpJwtAuthGuard, IPNProvider, InjectBucket, LOG_EXTENSION_REPOSITORY, LangType, Ledger2AccountDTO, Ledger2HistoryResponseDTO, Ledger2OperationDTO, Ledger2PostingDTO, Ledger2PostingsResponseDTO, Ledger2WalletDTO, LogExtensionDomainEntity, MetaDocumentInputDTO, ONBOARDING_EXPIRY_DAYS, ONBOARDING_EXPIRY_MS, OptionalCurrentUser, OptionalGqlJwtAuthGuard, PaginatedProcessSummary, PaginationInputDTO, PaginationResult, PaginationUtils, PaymentProvider, PollingProvider, ProcessActionDTO, ProcessDeltaDTO, ProcessDocumentDTO, ProcessDocumentSourceDTO, ProcessSummaryDTO, ProcessViewDTO, ProcessesFilterInput, QuantityUtils, RIGHT_METADATA_KEY, RequireRight, RightsGuard, SCOPE_DENIALS, SELF, SORT_FIELD_PATTERN, SafeMarkup, SignatureInfoDTO, SignatureInfoInputDTO, SignedDigitalDocumentDTO, SignedDigitalDocumentInputDTO, TransactionDTO, UseBucket, attachOne, bankSafeText, bucketProvidersFor, bucketTokenFor, buildPaginationResult, chainErrorCode, chainRefusalOf, chainTextDigest, checkPaymentAmount, checkPaymentSymbol, checkRight, checkRightScope, computeOnboardingExpiresAt, configureExtensionAuth, configurePlatformSettings, councilRolesOf, createPaginationResult, describeConfigField, describeStandTime, desktopGrants, desktopGrantsOf, domainErrorMessage, expandRights, expensePlanRecurrenceMonths, expensePlanReserveMonths, expensePlanReserveShare, expensePlanScheduleDates, extensionDatabaseMigrations, generateHashFromString, generateRandomHash, generateUniqueHash, getAmountPlusFee, getAppliedBlockNum, hasServerSecret, isChainTextDigest, isChainTextOf, isExtensionAvailable, isStandTimeCompressed, isStandTimeConfigured, isStandWorkerTurn, memberRolesOf, mergeSecretConfig, nextExpensePlanDate, nextLocalMidnight, oneOf, paginationInputToOffset, parseChainAssert, pickDefined, platformSettings, providerSuppliedPaths, redactSecretConfig, registerExtensionDatabaseMigrations, resetExtensionDatabaseMigrations, resolveChainText, rethrowChainError, rightConditions, rightGrants, rightMatches, rightsByRole, rightsHeld, sanitizeUserText, scopeConditions, scopeOfRight, scopesMatched, standDaySeconds, standMonthSeconds, standNextPeriodStart, standPeriodKey, standWorkerPaceSeconds, timeZoneOffsetMs, validationMessage, verifySignedDocumentAgainstStoredDraft, waitForEvent };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopenomics/extension-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2026.11.
|
|
4
|
+
"version": "2026.11.12",
|
|
5
5
|
"description": "Служебный каркас расширения цифрового кооператива: базовый модуль, сущности и репозитории расширения, авторизация, каркас блокчейн-синхронизации, контракт миграций схемы, контракт реестра",
|
|
6
6
|
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@casl/ability": "^7.0.0",
|
|
42
|
-
"@coopenomics/docs-templates": "1.
|
|
42
|
+
"@coopenomics/docs-templates": "1.6.8",
|
|
43
43
|
"@coopenomics/i18n": "workspace:*",
|
|
44
|
-
"@coopenomics/sdk": "2026.11.
|
|
44
|
+
"@coopenomics/sdk": "2026.11.12",
|
|
45
45
|
"@nestjs/common": "^10.0.0",
|
|
46
46
|
"@nestjs/core": "^10.0.0",
|
|
47
47
|
"@nestjs/graphql": "^12.2.1",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@casl/ability": "^7.0.0",
|
|
65
|
-
"@coopenomics/docs-templates": "1.
|
|
66
|
-
"@coopenomics/i18n": "2026.11.
|
|
65
|
+
"@coopenomics/docs-templates": "1.6.8",
|
|
66
|
+
"@coopenomics/i18n": "2026.11.12",
|
|
67
67
|
"@nestjs/common": "^10.0.0",
|
|
68
68
|
"@nestjs/core": "^10.0.0",
|
|
69
69
|
"@nestjs/graphql": "^12.2.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@wharfkit/session": "^1.4.0",
|
|
73
73
|
"class-transformer": "^0.5.1",
|
|
74
74
|
"class-validator": "^0.14.1",
|
|
75
|
-
"cooptypes": "2026.11.
|
|
75
|
+
"cooptypes": "2026.11.12",
|
|
76
76
|
"graphql": "^16.9.0",
|
|
77
77
|
"graphql-type-json": "^0.3.2",
|
|
78
78
|
"kysely": "0.28.17",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"unbuild": "^2.0.0",
|
|
85
85
|
"zod": "^3.0.0"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "9fa6f0a01605abfd193f774f6a2f5211e92f9482"
|
|
88
88
|
}
|