diff --git a/.claude/skills/role-compile/dsl-reference.md b/.claude/skills/role-compile/dsl-reference.md index 3e3fecf4b..18458a0c4 100644 --- a/.claude/skills/role-compile/dsl-reference.md +++ b/.claude/skills/role-compile/dsl-reference.md @@ -12,12 +12,12 @@ | `Configuration` | Administration, DataAdministration, UpdateDataBaseConfiguration, ConfigurationExtensionsAdministration, ActiveUsers, EventLog, ExclusiveMode, ThinClient, ThickClient, WebClient, MobileClient, ExternalConnection, Automation, Output, SaveUserData, TechnicalSpecialistMode, InteractiveOpenExtDataProcessors, InteractiveOpenExtReports, AnalyticsSystemClient, CollaborationSystemInfoBaseRegistration, MainWindowModeNormal, MainWindowModeWorkplace, MainWindowModeEmbeddedWorkplace, MainWindowModeFullscreenWorkplace, MainWindowModeKiosk | | `Catalog`, `ChartOfCharacteristicTypes` | Read, Insert, Update, Delete, View, Edit, InputByString, Interactive* (Insert, SetDeletionMark, ClearDeletionMark, Delete, DeleteMarked), *PredefinedData, *DataHistory* | | `Document` | то же + Posting, UndoPosting, InteractivePosting, InteractivePostingRegular, InteractiveUndoPosting, InteractiveChangeOfPosted | -| `ChartOfAccounts`, `ChartOfCalculationTypes`, `ExchangePlan` | Read, Insert, Update, Delete, View, Edit, InputByString, Interactive*, *DataHistory* (без InteractiveDeleteMarked у ChartOfAccounts) | -| `BusinessProcess` | Read, Insert, Update, Delete, View, Edit, InputByString, Start, InteractiveInsert, InteractiveSetDeletionMark, InteractiveClearDeletionMark, InteractiveDelete, InteractiveActivate, InteractiveStart | +| `ChartOfAccounts`, `ChartOfCalculationTypes`, `ExchangePlan` | Read, Insert, Update, Delete, View, Edit, InputByString, Interactive*, *DataHistory* | +| `BusinessProcess` | Read, Insert, Update, Delete, View, Edit, InputByString, Start, InteractiveInsert, InteractiveSetDeletionMark, InteractiveClearDeletionMark, InteractiveDelete, InteractiveDeleteMarked, InteractiveActivate, InteractiveStart, *DataHistory* | | `Task` | то же, но вместо Start/InteractiveStart — Execute, InteractiveExecute | | `InformationRegister` | Read, Update, View, Edit, TotalsControl, *DataHistory* | | `AccumulationRegister`, `AccountingRegister` | Read, Update, View, Edit, TotalsControl | -| `CalculationRegister` | Read, View | +| `CalculationRegister` | Read, Update, View, Edit | | `Constant` | Read, Update, View, Edit, *DataHistory* | | `DocumentJournal` | Read, View | | `Sequence` | Read, Update | diff --git a/.claude/skills/role-compile/scripts/role-compile.ps1 b/.claude/skills/role-compile/scripts/role-compile.ps1 index 36fe5a0dd..f55e5b878 100644 --- a/.claude/skills/role-compile/scripts/role-compile.ps1 +++ b/.claude/skills/role-compile/scripts/role-compile.ps1 @@ -1,4 +1,4 @@ -# role-compile v1.36 — Compile 1C role from JSON +# role-compile v1.37 — Compile 1C role from JSON # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills [CmdletBinding(PositionalBinding=$false)] param( @@ -418,7 +418,9 @@ $script:knownRights = @{ ) "AccumulationRegister" = @("Read","Update","View","Edit","TotalsControl") "AccountingRegister" = @("Read","Update","View","Edit","TotalsControl") - "CalculationRegister" = @("Read","View") + "CalculationRegister" = @( + "Read","Update","View","Edit" + ) "Constant" = @( "Read","Update","View","Edit", "ReadDataHistory","ViewDataHistory","UpdateDataHistory", @@ -426,14 +428,13 @@ $script:knownRights = @{ "EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "ChartOfAccounts" = @( - "Read","Insert","Update","Delete","View","Edit","InputByString", - "InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark", - "InteractiveDelete", - "InteractiveDeletePredefinedData","InteractiveSetDeletionMarkPredefinedData", - "InteractiveClearDeletionMarkPredefinedData","InteractiveDeleteMarkedPredefinedData", - "ReadDataHistory","ReadDataHistoryOfMissingData", - "UpdateDataHistory","UpdateDataHistoryOfMissingData", - "UpdateDataHistorySettings","UpdateDataHistoryVersionComment" + "Read","Insert","Update","Delete" + "View","Edit","InputByString","InteractiveInsert" + "InteractiveSetDeletionMark","InteractiveClearDeletionMark","InteractiveDelete","InteractiveDeleteMarked" + "InteractiveDeletePredefinedData","InteractiveSetDeletionMarkPredefinedData","InteractiveClearDeletionMarkPredefinedData","InteractiveDeleteMarkedPredefinedData" + "ReadDataHistory","ReadDataHistoryOfMissingData","UpdateDataHistory","UpdateDataHistoryOfMissingData" + "UpdateDataHistorySettings","UpdateDataHistoryVersionComment","ViewDataHistory","EditDataHistoryVersionComment" + "SwitchToDataHistoryVersion" ) "ChartOfCharacteristicTypes" = @( "Read","Insert","Update","Delete","View","Edit","InputByString", @@ -447,11 +448,13 @@ $script:knownRights = @{ "EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "ChartOfCalculationTypes" = @( - "Read","Insert","Update","Delete","View","Edit","InputByString", - "InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark", - "InteractiveDelete", - "InteractiveDeletePredefinedData","InteractiveSetDeletionMarkPredefinedData", - "InteractiveClearDeletionMarkPredefinedData","InteractiveDeleteMarkedPredefinedData" + "Read","Insert","Update","Delete" + "View","Edit","InputByString","InteractiveInsert" + "InteractiveSetDeletionMark","InteractiveClearDeletionMark","InteractiveDelete","InteractiveDeleteMarked" + "InteractiveDeletePredefinedData","InteractiveSetDeletionMarkPredefinedData","InteractiveClearDeletionMarkPredefinedData","InteractiveDeleteMarkedPredefinedData" + "ReadDataHistory","ReadDataHistoryOfMissingData","UpdateDataHistory","UpdateDataHistoryOfMissingData" + "UpdateDataHistorySettings","UpdateDataHistoryVersionComment","ViewDataHistory","EditDataHistoryVersionComment" + "SwitchToDataHistoryVersion" ) "ExchangePlan" = @( "Read","Insert","Update","Delete","View","Edit","InputByString", @@ -463,14 +466,20 @@ $script:knownRights = @{ "EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "BusinessProcess" = @( - "Read","Insert","Update","Delete","View","Edit","InputByString", - "Start","InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark", - "InteractiveDelete","InteractiveActivate","InteractiveStart" + "Read","Insert","Update","Delete" + "View","Edit","InputByString","Start" + "InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark","InteractiveDelete" + "InteractiveDeleteMarked","InteractiveActivate","InteractiveStart","ReadDataHistory" + "ReadDataHistoryOfMissingData","UpdateDataHistory","UpdateDataHistoryOfMissingData","UpdateDataHistorySettings" + "UpdateDataHistoryVersionComment","ViewDataHistory","EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "Task" = @( - "Read","Insert","Update","Delete","View","Edit","InputByString", - "Execute","InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark", - "InteractiveDelete","InteractiveActivate","InteractiveExecute" + "Read","Insert","Update","Delete" + "View","Edit","InputByString","Execute" + "InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark","InteractiveDelete" + "InteractiveDeleteMarked","InteractiveActivate","InteractiveExecute","ReadDataHistory" + "ReadDataHistoryOfMissingData","UpdateDataHistory","UpdateDataHistoryOfMissingData","UpdateDataHistorySettings" + "UpdateDataHistoryVersionComment","ViewDataHistory","EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "DataProcessor" = @("Use","View") "Report" = @("Use","View") diff --git a/.claude/skills/role-compile/scripts/role-compile.py b/.claude/skills/role-compile/scripts/role-compile.py index faf853544..4913f4ded 100644 --- a/.claude/skills/role-compile/scripts/role-compile.py +++ b/.claude/skills/role-compile/scripts/role-compile.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# role-compile v1.36 — Compile 1C role from JSON +# role-compile v1.37 — Compile 1C role from JSON # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills import argparse import json @@ -529,7 +529,9 @@ KNOWN_RIGHTS = { ], "AccumulationRegister": ["Read", "Update", "View", "Edit", "TotalsControl"], "AccountingRegister": ["Read", "Update", "View", "Edit", "TotalsControl"], - "CalculationRegister": ["Read", "View"], + "CalculationRegister": [ + "Read", "Update", "View", "Edit", + ], "Constant": [ "Read", "Update", "View", "Edit", "ReadDataHistory", "ViewDataHistory", "UpdateDataHistory", @@ -537,14 +539,13 @@ KNOWN_RIGHTS = { "EditDataHistoryVersionComment", "SwitchToDataHistoryVersion", ], "ChartOfAccounts": [ - "Read", "Insert", "Update", "Delete", "View", "Edit", "InputByString", - "InteractiveInsert", "InteractiveSetDeletionMark", "InteractiveClearDeletionMark", - "InteractiveDelete", - "InteractiveDeletePredefinedData", "InteractiveSetDeletionMarkPredefinedData", - "InteractiveClearDeletionMarkPredefinedData", "InteractiveDeleteMarkedPredefinedData", - "ReadDataHistory", "ReadDataHistoryOfMissingData", - "UpdateDataHistory", "UpdateDataHistoryOfMissingData", - "UpdateDataHistorySettings", "UpdateDataHistoryVersionComment", + "Read", "Insert", "Update", "Delete", + "View", "Edit", "InputByString", "InteractiveInsert", + "InteractiveSetDeletionMark", "InteractiveClearDeletionMark", "InteractiveDelete", "InteractiveDeleteMarked", + "InteractiveDeletePredefinedData", "InteractiveSetDeletionMarkPredefinedData", "InteractiveClearDeletionMarkPredefinedData", "InteractiveDeleteMarkedPredefinedData", + "ReadDataHistory", "ReadDataHistoryOfMissingData", "UpdateDataHistory", "UpdateDataHistoryOfMissingData", + "UpdateDataHistorySettings", "UpdateDataHistoryVersionComment", "ViewDataHistory", "EditDataHistoryVersionComment", + "SwitchToDataHistoryVersion", ], "ChartOfCharacteristicTypes": [ "Read", "Insert", "Update", "Delete", "View", "Edit", "InputByString", @@ -558,11 +559,13 @@ KNOWN_RIGHTS = { "EditDataHistoryVersionComment", "SwitchToDataHistoryVersion", ], "ChartOfCalculationTypes": [ - "Read", "Insert", "Update", "Delete", "View", "Edit", "InputByString", - "InteractiveInsert", "InteractiveSetDeletionMark", "InteractiveClearDeletionMark", - "InteractiveDelete", - "InteractiveDeletePredefinedData", "InteractiveSetDeletionMarkPredefinedData", - "InteractiveClearDeletionMarkPredefinedData", "InteractiveDeleteMarkedPredefinedData", + "Read", "Insert", "Update", "Delete", + "View", "Edit", "InputByString", "InteractiveInsert", + "InteractiveSetDeletionMark", "InteractiveClearDeletionMark", "InteractiveDelete", "InteractiveDeleteMarked", + "InteractiveDeletePredefinedData", "InteractiveSetDeletionMarkPredefinedData", "InteractiveClearDeletionMarkPredefinedData", "InteractiveDeleteMarkedPredefinedData", + "ReadDataHistory", "ReadDataHistoryOfMissingData", "UpdateDataHistory", "UpdateDataHistoryOfMissingData", + "UpdateDataHistorySettings", "UpdateDataHistoryVersionComment", "ViewDataHistory", "EditDataHistoryVersionComment", + "SwitchToDataHistoryVersion", ], "ExchangePlan": [ "Read", "Insert", "Update", "Delete", "View", "Edit", "InputByString", @@ -574,14 +577,20 @@ KNOWN_RIGHTS = { "EditDataHistoryVersionComment", "SwitchToDataHistoryVersion", ], "BusinessProcess": [ - "Read", "Insert", "Update", "Delete", "View", "Edit", "InputByString", - "Start", "InteractiveInsert", "InteractiveSetDeletionMark", "InteractiveClearDeletionMark", - "InteractiveDelete", "InteractiveActivate", "InteractiveStart", + "Read", "Insert", "Update", "Delete", + "View", "Edit", "InputByString", "Start", + "InteractiveInsert", "InteractiveSetDeletionMark", "InteractiveClearDeletionMark", "InteractiveDelete", + "InteractiveDeleteMarked", "InteractiveActivate", "InteractiveStart", "ReadDataHistory", + "ReadDataHistoryOfMissingData", "UpdateDataHistory", "UpdateDataHistoryOfMissingData", "UpdateDataHistorySettings", + "UpdateDataHistoryVersionComment", "ViewDataHistory", "EditDataHistoryVersionComment", "SwitchToDataHistoryVersion", ], "Task": [ - "Read", "Insert", "Update", "Delete", "View", "Edit", "InputByString", - "Execute", "InteractiveInsert", "InteractiveSetDeletionMark", "InteractiveClearDeletionMark", - "InteractiveDelete", "InteractiveActivate", "InteractiveExecute", + "Read", "Insert", "Update", "Delete", + "View", "Edit", "InputByString", "Execute", + "InteractiveInsert", "InteractiveSetDeletionMark", "InteractiveClearDeletionMark", "InteractiveDelete", + "InteractiveDeleteMarked", "InteractiveActivate", "InteractiveExecute", "ReadDataHistory", + "ReadDataHistoryOfMissingData", "UpdateDataHistory", "UpdateDataHistoryOfMissingData", "UpdateDataHistorySettings", + "UpdateDataHistoryVersionComment", "ViewDataHistory", "EditDataHistoryVersionComment", "SwitchToDataHistoryVersion", ], "DataProcessor": ["Use", "View"], "Report": ["Use", "View"], diff --git a/.claude/skills/role-validate/scripts/role-validate.ps1 b/.claude/skills/role-validate/scripts/role-validate.ps1 index 64d1e7318..7476ab880 100644 --- a/.claude/skills/role-validate/scripts/role-validate.ps1 +++ b/.claude/skills/role-validate/scripts/role-validate.ps1 @@ -1,4 +1,4 @@ -# role-validate v1.5 — Validate 1C role structure +# role-validate v1.6 — Validate 1C role structure # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills [CmdletBinding(PositionalBinding=$false)] param( @@ -61,7 +61,9 @@ $script:knownRights = @{ ) "AccumulationRegister" = @("Read","Update","View","Edit","TotalsControl") "AccountingRegister" = @("Read","Update","View","Edit","TotalsControl") - "CalculationRegister" = @("Read","View") + "CalculationRegister" = @( + "Read","Update","View","Edit" + ) "Constant" = @( "Read","Update","View","Edit", "ReadDataHistory","ViewDataHistory","UpdateDataHistory", @@ -69,14 +71,13 @@ $script:knownRights = @{ "EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "ChartOfAccounts" = @( - "Read","Insert","Update","Delete","View","Edit","InputByString", - "InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark", - "InteractiveDelete", - "InteractiveDeletePredefinedData","InteractiveSetDeletionMarkPredefinedData", - "InteractiveClearDeletionMarkPredefinedData","InteractiveDeleteMarkedPredefinedData", - "ReadDataHistory","ReadDataHistoryOfMissingData", - "UpdateDataHistory","UpdateDataHistoryOfMissingData", - "UpdateDataHistorySettings","UpdateDataHistoryVersionComment" + "Read","Insert","Update","Delete" + "View","Edit","InputByString","InteractiveInsert" + "InteractiveSetDeletionMark","InteractiveClearDeletionMark","InteractiveDelete","InteractiveDeleteMarked" + "InteractiveDeletePredefinedData","InteractiveSetDeletionMarkPredefinedData","InteractiveClearDeletionMarkPredefinedData","InteractiveDeleteMarkedPredefinedData" + "ReadDataHistory","ReadDataHistoryOfMissingData","UpdateDataHistory","UpdateDataHistoryOfMissingData" + "UpdateDataHistorySettings","UpdateDataHistoryVersionComment","ViewDataHistory","EditDataHistoryVersionComment" + "SwitchToDataHistoryVersion" ) "ChartOfCharacteristicTypes" = @( "Read","Insert","Update","Delete","View","Edit","InputByString", @@ -90,11 +91,13 @@ $script:knownRights = @{ "EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "ChartOfCalculationTypes" = @( - "Read","Insert","Update","Delete","View","Edit","InputByString", - "InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark", - "InteractiveDelete", - "InteractiveDeletePredefinedData","InteractiveSetDeletionMarkPredefinedData", - "InteractiveClearDeletionMarkPredefinedData","InteractiveDeleteMarkedPredefinedData" + "Read","Insert","Update","Delete" + "View","Edit","InputByString","InteractiveInsert" + "InteractiveSetDeletionMark","InteractiveClearDeletionMark","InteractiveDelete","InteractiveDeleteMarked" + "InteractiveDeletePredefinedData","InteractiveSetDeletionMarkPredefinedData","InteractiveClearDeletionMarkPredefinedData","InteractiveDeleteMarkedPredefinedData" + "ReadDataHistory","ReadDataHistoryOfMissingData","UpdateDataHistory","UpdateDataHistoryOfMissingData" + "UpdateDataHistorySettings","UpdateDataHistoryVersionComment","ViewDataHistory","EditDataHistoryVersionComment" + "SwitchToDataHistoryVersion" ) "ExchangePlan" = @( "Read","Insert","Update","Delete","View","Edit","InputByString", @@ -106,14 +109,20 @@ $script:knownRights = @{ "EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "BusinessProcess" = @( - "Read","Insert","Update","Delete","View","Edit","InputByString", - "Start","InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark", - "InteractiveDelete","InteractiveActivate","InteractiveStart" + "Read","Insert","Update","Delete" + "View","Edit","InputByString","Start" + "InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark","InteractiveDelete" + "InteractiveDeleteMarked","InteractiveActivate","InteractiveStart","ReadDataHistory" + "ReadDataHistoryOfMissingData","UpdateDataHistory","UpdateDataHistoryOfMissingData","UpdateDataHistorySettings" + "UpdateDataHistoryVersionComment","ViewDataHistory","EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "Task" = @( - "Read","Insert","Update","Delete","View","Edit","InputByString", - "Execute","InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark", - "InteractiveDelete","InteractiveActivate","InteractiveExecute" + "Read","Insert","Update","Delete" + "View","Edit","InputByString","Execute" + "InteractiveInsert","InteractiveSetDeletionMark","InteractiveClearDeletionMark","InteractiveDelete" + "InteractiveDeleteMarked","InteractiveActivate","InteractiveExecute","ReadDataHistory" + "ReadDataHistoryOfMissingData","UpdateDataHistory","UpdateDataHistoryOfMissingData","UpdateDataHistorySettings" + "UpdateDataHistoryVersionComment","ViewDataHistory","EditDataHistoryVersionComment","SwitchToDataHistoryVersion" ) "DataProcessor" = @("Use","View") "Report" = @("Use","View") diff --git a/.claude/skills/role-validate/scripts/role-validate.py b/.claude/skills/role-validate/scripts/role-validate.py index fd65071a6..f4c2ada40 100644 --- a/.claude/skills/role-validate/scripts/role-validate.py +++ b/.claude/skills/role-validate/scripts/role-validate.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# role-validate v1.5 — Validate 1C role Rights.xml structure +# role-validate v1.6 — Validate 1C role Rights.xml structure # Source: https://github.com/Nikolay-Shirokov/cc-1c-skills """Validates role Rights.xml: root element, global flags, objects, rights, RLS, templates.""" import sys, os, argparse, re @@ -78,7 +78,9 @@ KNOWN_RIGHTS = { ], 'AccumulationRegister': ['Read', 'Update', 'View', 'Edit', 'TotalsControl'], 'AccountingRegister': ['Read', 'Update', 'View', 'Edit', 'TotalsControl'], - 'CalculationRegister': ['Read', 'View'], + 'CalculationRegister': [ + 'Read', 'Update', 'View', 'Edit', + ], 'Constant': [ 'Read', 'Update', 'View', 'Edit', 'ReadDataHistory', 'ViewDataHistory', 'UpdateDataHistory', @@ -86,14 +88,13 @@ KNOWN_RIGHTS = { 'EditDataHistoryVersionComment', 'SwitchToDataHistoryVersion', ], 'ChartOfAccounts': [ - 'Read', 'Insert', 'Update', 'Delete', 'View', 'Edit', 'InputByString', - 'InteractiveInsert', 'InteractiveSetDeletionMark', 'InteractiveClearDeletionMark', - 'InteractiveDelete', - 'InteractiveDeletePredefinedData', 'InteractiveSetDeletionMarkPredefinedData', - 'InteractiveClearDeletionMarkPredefinedData', 'InteractiveDeleteMarkedPredefinedData', - 'ReadDataHistory', 'ReadDataHistoryOfMissingData', - 'UpdateDataHistory', 'UpdateDataHistoryOfMissingData', - 'UpdateDataHistorySettings', 'UpdateDataHistoryVersionComment', + 'Read', 'Insert', 'Update', 'Delete', + 'View', 'Edit', 'InputByString', 'InteractiveInsert', + 'InteractiveSetDeletionMark', 'InteractiveClearDeletionMark', 'InteractiveDelete', 'InteractiveDeleteMarked', + 'InteractiveDeletePredefinedData', 'InteractiveSetDeletionMarkPredefinedData', 'InteractiveClearDeletionMarkPredefinedData', 'InteractiveDeleteMarkedPredefinedData', + 'ReadDataHistory', 'ReadDataHistoryOfMissingData', 'UpdateDataHistory', 'UpdateDataHistoryOfMissingData', + 'UpdateDataHistorySettings', 'UpdateDataHistoryVersionComment', 'ViewDataHistory', 'EditDataHistoryVersionComment', + 'SwitchToDataHistoryVersion', ], 'ChartOfCharacteristicTypes': [ 'Read', 'Insert', 'Update', 'Delete', 'View', 'Edit', 'InputByString', @@ -107,11 +108,13 @@ KNOWN_RIGHTS = { 'EditDataHistoryVersionComment', 'SwitchToDataHistoryVersion', ], 'ChartOfCalculationTypes': [ - 'Read', 'Insert', 'Update', 'Delete', 'View', 'Edit', 'InputByString', - 'InteractiveInsert', 'InteractiveSetDeletionMark', 'InteractiveClearDeletionMark', - 'InteractiveDelete', - 'InteractiveDeletePredefinedData', 'InteractiveSetDeletionMarkPredefinedData', - 'InteractiveClearDeletionMarkPredefinedData', 'InteractiveDeleteMarkedPredefinedData', + 'Read', 'Insert', 'Update', 'Delete', + 'View', 'Edit', 'InputByString', 'InteractiveInsert', + 'InteractiveSetDeletionMark', 'InteractiveClearDeletionMark', 'InteractiveDelete', 'InteractiveDeleteMarked', + 'InteractiveDeletePredefinedData', 'InteractiveSetDeletionMarkPredefinedData', 'InteractiveClearDeletionMarkPredefinedData', 'InteractiveDeleteMarkedPredefinedData', + 'ReadDataHistory', 'ReadDataHistoryOfMissingData', 'UpdateDataHistory', 'UpdateDataHistoryOfMissingData', + 'UpdateDataHistorySettings', 'UpdateDataHistoryVersionComment', 'ViewDataHistory', 'EditDataHistoryVersionComment', + 'SwitchToDataHistoryVersion', ], 'ExchangePlan': [ 'Read', 'Insert', 'Update', 'Delete', 'View', 'Edit', 'InputByString', @@ -123,14 +126,20 @@ KNOWN_RIGHTS = { 'EditDataHistoryVersionComment', 'SwitchToDataHistoryVersion', ], 'BusinessProcess': [ - 'Read', 'Insert', 'Update', 'Delete', 'View', 'Edit', 'InputByString', - 'Start', 'InteractiveInsert', 'InteractiveSetDeletionMark', 'InteractiveClearDeletionMark', - 'InteractiveDelete', 'InteractiveActivate', 'InteractiveStart', + 'Read', 'Insert', 'Update', 'Delete', + 'View', 'Edit', 'InputByString', 'Start', + 'InteractiveInsert', 'InteractiveSetDeletionMark', 'InteractiveClearDeletionMark', 'InteractiveDelete', + 'InteractiveDeleteMarked', 'InteractiveActivate', 'InteractiveStart', 'ReadDataHistory', + 'ReadDataHistoryOfMissingData', 'UpdateDataHistory', 'UpdateDataHistoryOfMissingData', 'UpdateDataHistorySettings', + 'UpdateDataHistoryVersionComment', 'ViewDataHistory', 'EditDataHistoryVersionComment', 'SwitchToDataHistoryVersion', ], 'Task': [ - 'Read', 'Insert', 'Update', 'Delete', 'View', 'Edit', 'InputByString', - 'Execute', 'InteractiveInsert', 'InteractiveSetDeletionMark', 'InteractiveClearDeletionMark', - 'InteractiveDelete', 'InteractiveActivate', 'InteractiveExecute', + 'Read', 'Insert', 'Update', 'Delete', + 'View', 'Edit', 'InputByString', 'Execute', + 'InteractiveInsert', 'InteractiveSetDeletionMark', 'InteractiveClearDeletionMark', 'InteractiveDelete', + 'InteractiveDeleteMarked', 'InteractiveActivate', 'InteractiveExecute', 'ReadDataHistory', + 'ReadDataHistoryOfMissingData', 'UpdateDataHistory', 'UpdateDataHistoryOfMissingData', 'UpdateDataHistorySettings', + 'UpdateDataHistoryVersionComment', 'ViewDataHistory', 'EditDataHistoryVersionComment', 'SwitchToDataHistoryVersion', ], 'DataProcessor': ['Use', 'View'], 'Report': ['Use', 'View'], diff --git a/docs/1c-role-spec.md b/docs/1c-role-spec.md index 309b3bb69..1a61a2301 100644 --- a/docs/1c-role-spec.md +++ b/docs/1c-role-spec.md @@ -385,7 +385,9 @@ Subsystem.Администрирование.Subsystem.Пользователи | Право | Описание | |-------|----------| | `Read` | Чтение | +| `Update` | Изменение | | `View` | Просмотр | +| `Edit` | Редактирование | #### Constant @@ -428,6 +430,10 @@ Subsystem.Администрирование.Subsystem.Пользователи | `UpdateDataHistoryOfMissingData` | Обновление истории отсутствующих данных | | `UpdateDataHistorySettings` | Настройки истории данных | | `UpdateDataHistoryVersionComment` | Обновление комментария версии | +| `InteractiveDeleteMarked` | Интерактивное удаление помеченных | +| `ViewDataHistory` | Просмотр истории данных | +| `EditDataHistoryVersionComment` | Редактирование комментария версии | +| `SwitchToDataHistoryVersion` | Переход к версии | #### ChartOfCharacteristicTypes @@ -459,6 +465,16 @@ Subsystem.Администрирование.Subsystem.Пользователи | `InteractiveSetDeletionMarkPredefinedData` | Пометка удаления предопределённых | | `InteractiveClearDeletionMarkPredefinedData` | Снятие пометки предопределённых | | `InteractiveDeleteMarkedPredefinedData` | Удаление помеченных предопределённых | +| `InteractiveDeleteMarked` | Интерактивное удаление помеченных | +| `ReadDataHistory` | Чтение истории данных | +| `ReadDataHistoryOfMissingData` | Чтение истории отсутствующих данных | +| `UpdateDataHistory` | Обновление истории данных | +| `UpdateDataHistoryOfMissingData` | Обновление истории отсутствующих данных | +| `UpdateDataHistorySettings` | Настройки истории данных | +| `UpdateDataHistoryVersionComment` | Обновление комментария версии | +| `ViewDataHistory` | Просмотр истории данных | +| `EditDataHistoryVersionComment` | Редактирование комментария версии | +| `SwitchToDataHistoryVersion` | Переход к версии | #### ExchangePlan diff --git a/tests/skills/cases/role-compile/rights-datahistory-process.json b/tests/skills/cases/role-compile/rights-datahistory-process.json new file mode 100644 index 000000000..1e6450a46 --- /dev/null +++ b/tests/skills/cases/role-compile/rights-datahistory-process.json @@ -0,0 +1,43 @@ +{ + "name": "Права истории данных у бизнес-процесса, задачи, ПВР и регистра расчёта (сверено с платформой)", + "preRun": [ + { + "script": "meta-compile/scripts/meta-compile", + "input": [ + { "type": "Task", "name": "ЗадачаИсполнителя" }, + { "type": "BusinessProcess", "name": "Согласование", "task": "Task.ЗадачаИсполнителя" }, + { "type": "ChartOfCalculationTypes", "name": "Начисления" }, + { + "type": "CalculationRegister", + "name": "Начисление", + "chartOfCalculationTypes": "ChartOfCalculationTypes.Начисления" + } + ], + "args": { + "-JsonPath": "{inputFile}", + "-OutputDir": "{workDir}" + } + } + ], + "input": { + "name": "ИсторияДанныхПроцессов", + "synonym": "История данных процессов", + "objects": [ + "BusinessProcess.Согласование: Read, ReadDataHistory, ViewDataHistory, InteractiveDeleteMarked", + "Task.ЗадачаИсполнителя: Read, UpdateDataHistorySettings, SwitchToDataHistoryVersion", + "ChartOfCalculationTypes.Начисления: Read, EditDataHistoryVersionComment, InteractiveDeleteMarked", + "CalculationRegister.Начисление: Read, Update, View, Edit" + ] + }, + "validatePath": "Roles/ИсторияДанныхПроцессов", + "expect": { + "files": [ + "Roles/ИсторияДанныхПроцессов.xml", + "Roles/ИсторияДанныхПроцессов/Ext/Rights.xml" + ], + "fileContains": { + "file": "Roles/ИсторияДанныхПроцессов/Ext/Rights.xml", + "text": "SwitchToDataHistoryVersion" + } + } +} diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/BusinessProcesses/Согласование.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/BusinessProcesses/Согласование.xml new file mode 100644 index 000000000..7dad2974a --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/BusinessProcesses/Согласование.xml @@ -0,0 +1,264 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + UUID-012 + UUID-013 + + + + Согласование + + + ru + Согласование + + + + true + InDialog + + BusinessProcess.Согласование.StandardAttribute.Number + + DontUse + Begin + Directly + DontUse + + + + + + + Auto + String + 11 + Variable + true + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + true + + Nonperiodical + Task.ЗадачаИсполнителя + true + + Managed + false + Use + + + + + + DontUse + false + false + + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/BusinessProcesses/Согласование/Ext/Flowchart.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/BusinessProcesses/Согласование/Ext/Flowchart.xml new file mode 100644 index 000000000..ca7a2f53f --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/BusinessProcesses/Согласование/Ext/Flowchart.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/BusinessProcesses/Согласование/Ext/ObjectModule.bsl b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/BusinessProcesses/Согласование/Ext/ObjectModule.bsl new file mode 100644 index 000000000..e69de29bb diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/CalculationRegisters/Начисление.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/CalculationRegisters/Начисление.xml new file mode 100644 index 000000000..bcdbc6537 --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/CalculationRegisters/Начисление.xml @@ -0,0 +1,350 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + UUID-012 + UUID-013 + + + UUID-014 + UUID-015 + + + + Начисление + + + ru + Начисление + + + + true + + + Month + false + false + + + + ChartOfCalculationTypes.Начисления + false + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + Managed + Use + + + + + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/CalculationRegisters/Начисление/Ext/RecordSetModule.bsl b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/CalculationRegisters/Начисление/Ext/RecordSetModule.bsl new file mode 100644 index 000000000..e69de29bb diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/ChartsOfCalculationTypes/Начисления.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/ChartsOfCalculationTypes/Начисления.xml new file mode 100644 index 000000000..bfd773277 --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/ChartsOfCalculationTypes/Начисления.xml @@ -0,0 +1,379 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + UUID-012 + UUID-013 + + + UUID-014 + UUID-015 + + + UUID-016 + UUID-017 + + + UUID-018 + UUID-019 + + + UUID-020 + UUID-021 + + + UUID-022 + UUID-023 + + + + Начисления + + + ru + Начисления + + + + true + 5 + 100 + String + Variable + AsDescription + InDialog + false + BothWays + + ChartOfCalculationTypes.Начисления.StandardAttribute.Description + ChartOfCalculationTypes.Начисления.StandardAttribute.Code + + Begin + DontUse + Directly + DontUse + Auto + + + + + + + + DontUse + + false + + + + + + + Ведущие виды расчета + + + + + DontCheck + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + ShowError + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + + + + + Вытесняющие виды расчета + + + + + DontCheck + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + ShowError + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + + + + + Базовые виды расчета + + + + + DontCheck + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + ShowError + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + + Auto + false + + Managed + Use + + + + + + DontUse + false + false + + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/ChartsOfCalculationTypes/Начисления/Ext/ObjectModule.bsl b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/ChartsOfCalculationTypes/Начисления/Ext/ObjectModule.bsl new file mode 100644 index 000000000..e69de29bb diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Configuration.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Configuration.xml new file mode 100644 index 000000000..7789fd7fd --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Configuration.xml @@ -0,0 +1,256 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + UUID-012 + UUID-013 + + + UUID-014 + UUID-015 + + + + TestConfig + + + ru + TestConfig + + + + + Version8_3_24 + ManagedApplication + + PlatformApplication + + Russian + + + + + false + false + false + + + + + + + + + + + + + + + + + + + + + + Biometrics + true + + + Location + false + + + BackgroundLocation + false + + + BluetoothPrinters + false + + + WiFiPrinters + false + + + Contacts + false + + + Calendars + false + + + PushNotifications + false + + + LocalNotifications + false + + + InAppPurchases + false + + + PersonalComputerFileExchange + false + + + Ads + false + + + NumberDialing + false + + + CallProcessing + false + + + CallLog + false + + + AutoSendSMS + false + + + ReceiveSMS + false + + + SMSLog + false + + + Camera + false + + + Microphone + false + + + MusicLibrary + false + + + PictureAndVideoLibraries + false + + + AudioPlaybackAndVibration + false + + + BackgroundAudioPlaybackAndVibration + false + + + InstallPackages + false + + + OSBackup + true + + + ApplicationUsageStatistics + false + + + BarcodeScanning + false + + + BackgroundAudioRecording + false + + + AllFilesAccess + false + + + Videoconferences + false + + + NFC + false + + + DocumentScanning + false + + + SpeechToText + false + + + Geofences + false + + + IncomingShareRequests + false + + + AllIncomingShareRequestsTypesProcessing + false + + + + + + Normal + + + Language.Русский + + + + + + Managed + NotAutoFree + DontUse + DontUse + TaxiEnableVersion8_2 + DontUse + Version8_3_24 + + + + Русский + ИсторияДанныхПроцессов + Начисления + Начисление + Согласование + ЗадачаИсполнителя + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Ext/ClientApplicationInterface.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Ext/ClientApplicationInterface.xml new file mode 100644 index 000000000..3c1161b2d --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Ext/ClientApplicationInterface.xml @@ -0,0 +1,18 @@ + + + + + UUID-002 + + + + + UUID-004 + + + + + + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Languages/Русский.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Languages/Русский.xml new file mode 100644 index 000000000..37c60d786 --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Languages/Русский.xml @@ -0,0 +1,16 @@ + + + + + Русский + + + ru + Русский + + + + ru + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Roles/ИсторияДанныхПроцессов.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Roles/ИсторияДанныхПроцессов.xml new file mode 100644 index 000000000..49fc61f71 --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Roles/ИсторияДанныхПроцессов.xml @@ -0,0 +1,15 @@ + + + + + ИсторияДанныхПроцессов + + + ru + История данных процессов + + + + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Roles/ИсторияДанныхПроцессов/Ext/Rights.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Roles/ИсторияДанныхПроцессов/Ext/Rights.xml new file mode 100644 index 000000000..30f4f2eb0 --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Roles/ИсторияДанныхПроцессов/Ext/Rights.xml @@ -0,0 +1,74 @@ + + + false + true + false + + BusinessProcess.Согласование + + Read + true + + + ReadDataHistory + true + + + ViewDataHistory + true + + + InteractiveDeleteMarked + true + + + + Task.ЗадачаИсполнителя + + Read + true + + + UpdateDataHistorySettings + true + + + SwitchToDataHistoryVersion + true + + + + ChartOfCalculationTypes.Начисления + + Read + true + + + EditDataHistoryVersionComment + true + + + InteractiveDeleteMarked + true + + + + CalculationRegister.Начисление + + Read + true + + + Update + true + + + View + true + + + Edit + true + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Tasks/ЗадачаИсполнителя.xml b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Tasks/ЗадачаИсполнителя.xml new file mode 100644 index 000000000..4e5e2e855 --- /dev/null +++ b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Tasks/ЗадачаИсполнителя.xml @@ -0,0 +1,289 @@ + + + + + + UUID-002 + UUID-003 + + + UUID-004 + UUID-005 + + + UUID-006 + UUID-007 + + + UUID-008 + UUID-009 + + + UUID-010 + UUID-011 + + + + ЗадачаИсполнителя + + + ru + Задача исполнителя + + + + true + String + 14 + Variable + true + true + BusinessProcessNumber + 150 + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + DontCheck + false + false + Auto + + + false + + + Auto + Auto + + false + Use + false + + + + Use + + + + + + + + AsDescription + InDialog + + Task.ЗадачаИсполнителя.StandardAttribute.Number + + Begin + DontUse + Directly + DontUse + + + + + + + Auto + false + + Managed + Use + + + + + + DontUse + false + false + + + + \ No newline at end of file diff --git a/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Tasks/ЗадачаИсполнителя/Ext/ObjectModule.bsl b/tests/skills/cases/role-compile/snapshots/rights-datahistory-process/Tasks/ЗадачаИсполнителя/Ext/ObjectModule.bsl new file mode 100644 index 000000000..e69de29bb