mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-23 12:52:24 +02:00
301 lines
11 KiB
TypeScript
301 lines
11 KiB
TypeScript
// Copyright © 2025 Hardcore Engineering Inc.
|
|
//
|
|
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License. You may
|
|
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
//
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
import { type Permission, type Ref } from '@hcengineering/core'
|
|
import { mergeIds, type IntlString, type Resource } from '@hcengineering/platform'
|
|
import { type PresentationMiddlewareCreator } from '@hcengineering/presentation'
|
|
import process, { processId } from '@hcengineering/process'
|
|
import { type AnyComponent } from '@hcengineering/ui'
|
|
import { type ViewQueryAction, type Viewlet } from '@hcengineering/view'
|
|
|
|
export default mergeIds(processId, process, {
|
|
viewlet: {
|
|
ExecutionsList: '' as Ref<Viewlet>,
|
|
ExecutionLogList: '' as Ref<Viewlet>,
|
|
CardExecutions: '' as Ref<Viewlet>,
|
|
CardRequests: '' as Ref<Viewlet>
|
|
},
|
|
component: {
|
|
Main: '' as AnyComponent,
|
|
ProcessEditor: '' as AnyComponent,
|
|
ProcessesSettingSection: '' as AnyComponent,
|
|
SubProcessEditor: '' as AnyComponent,
|
|
CancelSubProcessEditor: '' as AnyComponent,
|
|
ApproveRequestEditor: '' as AnyComponent,
|
|
ApproveRequestPresenter: '' as AnyComponent,
|
|
ApproveRequestTriggerEditor: '' as AnyComponent,
|
|
ApproveRequestTriggerPresenter: '' as AnyComponent,
|
|
UpdateCardEditor: '' as AnyComponent,
|
|
ToDoEditor: '' as AnyComponent,
|
|
SubProcessPresenter: '' as AnyComponent,
|
|
ToDoPresenter: '' as AnyComponent,
|
|
RunProcessPopup: '' as AnyComponent,
|
|
UpdateCardPresenter: '' as AnyComponent,
|
|
RequestsExtension: '' as AnyComponent,
|
|
ProcessesExtension: '' as AnyComponent,
|
|
ProcessesHeaderExtension: '' as AnyComponent,
|
|
ProcessPresenter: '' as AnyComponent,
|
|
ExecutonPresenter: '' as AnyComponent,
|
|
ExecutionMyToDos: '' as AnyComponent,
|
|
ExecutonProgressPresenter: '' as AnyComponent,
|
|
ExecutionContextSelector: '' as AnyComponent,
|
|
NestedContextSelector: '' as AnyComponent,
|
|
RelatedContextSelector: '' as AnyComponent,
|
|
FunctionSelector: '' as AnyComponent,
|
|
RunProcessCardPopup: '' as AnyComponent,
|
|
ContextSelectorPopup: '' as AnyComponent,
|
|
ErrorPresenter: '' as AnyComponent,
|
|
RequestUserInput: '' as AnyComponent,
|
|
ResultInput: '' as AnyComponent,
|
|
RoleEditor: '' as AnyComponent,
|
|
ActionsPresenter: '' as AnyComponent,
|
|
TriggerPresenter: '' as AnyComponent,
|
|
StatePresenter: '' as AnyComponent,
|
|
ToDoCloseEditor: '' as AnyComponent,
|
|
ToDoRemoveEditor: '' as AnyComponent,
|
|
ProcessesCardSection: '' as AnyComponent,
|
|
RequestsCardSection: '' as AnyComponent,
|
|
TransitionEditor: '' as AnyComponent,
|
|
StateEditor: '' as AnyComponent,
|
|
TransitionRefPresenter: '' as AnyComponent,
|
|
LogActionPresenter: '' as AnyComponent,
|
|
NotifierExtension: '' as AnyComponent,
|
|
CreateCardEditor: '' as AnyComponent,
|
|
CreateCardPresenter: '' as AnyComponent,
|
|
AddRelationEditor: '' as AnyComponent,
|
|
AddRelationPresenter: '' as AnyComponent,
|
|
CardUpdateEditor: '' as AnyComponent,
|
|
CardUpdatePresenter: '' as AnyComponent,
|
|
FieldChangesEditor: '' as AnyComponent,
|
|
OnEventEditor: '' as AnyComponent,
|
|
OnEventPresenter: '' as AnyComponent,
|
|
ToDoSettingPresenter: '' as AnyComponent,
|
|
TimeEditor: '' as AnyComponent,
|
|
TimePresenter: '' as AnyComponent,
|
|
AddTagEditor: '' as AnyComponent,
|
|
AddTagPresenter: '' as AnyComponent,
|
|
SubProcessMatchEditor: '' as AnyComponent,
|
|
SubProcessMatchPresenter: '' as AnyComponent,
|
|
FunctionSubmenu: '' as AnyComponent,
|
|
LockSectionEditor: '' as AnyComponent,
|
|
LockSectionPresenter: '' as AnyComponent,
|
|
UnLockSectionPresenter: '' as AnyComponent,
|
|
LockFieldEditor: '' as AnyComponent,
|
|
LockFieldPresenter: '' as AnyComponent,
|
|
UnLockFieldPresenter: '' as AnyComponent,
|
|
CancelToDoEditor: '' as AnyComponent,
|
|
ToDoValuePresenter: '' as AnyComponent,
|
|
ActionTypePresenter: '' as AnyComponent,
|
|
ExecutionRefPresenter: '' as AnyComponent
|
|
},
|
|
criteriaEditor: {
|
|
BaseCriteria: '' as AnyComponent,
|
|
RangeCriteria: '' as AnyComponent,
|
|
ArraySizeCriteria: '' as AnyComponent
|
|
},
|
|
transformEditor: {
|
|
MultiArrayElementEditor: '' as AnyComponent,
|
|
ArrayElementEditor: '' as AnyComponent,
|
|
DateOffsetEditor: '' as AnyComponent,
|
|
NumberEditor: '' as AnyComponent,
|
|
AppendEditor: '' as AnyComponent,
|
|
ReplaceEditor: '' as AnyComponent,
|
|
SplitEditor: '' as AnyComponent,
|
|
CutEditor: '' as AnyComponent,
|
|
FilterEditor: '' as AnyComponent,
|
|
DateDifferenceEditor: '' as AnyComponent
|
|
},
|
|
transformPresenter: {
|
|
NumberPresenter: '' as AnyComponent,
|
|
RolePresenter: '' as AnyComponent
|
|
},
|
|
function: {
|
|
ShowDoneQuery: '' as ViewQueryAction,
|
|
CreateMiddleware: '' as Resource<PresentationMiddlewareCreator>
|
|
},
|
|
string: {
|
|
DeleteProcess: '' as IntlString,
|
|
DeleteProcessConfirm: '' as IntlString,
|
|
DeleteState: '' as IntlString,
|
|
DeleteStateConfirm: '' as IntlString,
|
|
RunProcess: '' as IntlString,
|
|
CancelProcess: '' as IntlString,
|
|
Processes: '' as IntlString,
|
|
Untitled: '' as IntlString,
|
|
States: '' as IntlString,
|
|
AddState: '' as IntlString,
|
|
Rollback: '' as IntlString,
|
|
NewProcess: '' as IntlString,
|
|
NewState: '' as IntlString,
|
|
AddAction: '' as IntlString,
|
|
CreateProcess: '' as IntlString,
|
|
UpdateCard: '' as IntlString,
|
|
CreateToDo: '' as IntlString,
|
|
NoProcesses: '' as IntlString,
|
|
MissingRequiredFields: '' as IntlString,
|
|
NoAttributesForUpdate: '' as IntlString,
|
|
CustomValue: '' as IntlString,
|
|
FallbackValue: '' as IntlString,
|
|
Functions: '' as IntlString,
|
|
UpperCase: '' as IntlString,
|
|
LowerCase: '' as IntlString,
|
|
Trim: '' as IntlString,
|
|
Prepend: '' as IntlString,
|
|
Append: '' as IntlString,
|
|
Replace: '' as IntlString,
|
|
ReplaceAll: '' as IntlString,
|
|
Split: '' as IntlString,
|
|
Cut: '' as IntlString,
|
|
Filter: '' as IntlString,
|
|
FirstMatchValue: '' as IntlString,
|
|
FirstValue: '' as IntlString,
|
|
LastValue: '' as IntlString,
|
|
Random: '' as IntlString,
|
|
MyProcesses: '' as IntlString,
|
|
AllProcesses: '' as IntlString,
|
|
ShowDone: '' as IntlString,
|
|
Increment: '' as IntlString,
|
|
Decrement: '' as IntlString,
|
|
Add: '' as IntlString,
|
|
Subtract: '' as IntlString,
|
|
Multiply: '' as IntlString,
|
|
Divide: '' as IntlString,
|
|
Modulo: '' as IntlString,
|
|
Power: '' as IntlString,
|
|
Sqrt: '' as IntlString,
|
|
Round: '' as IntlString,
|
|
Absolute: '' as IntlString,
|
|
Ceil: '' as IntlString,
|
|
Floor: '' as IntlString,
|
|
Min: '' as IntlString,
|
|
Max: '' as IntlString,
|
|
Offset: '' as IntlString,
|
|
Value: '' as IntlString,
|
|
FirstWorkingDayAfter: '' as IntlString,
|
|
Insert: '' as IntlString,
|
|
Remove: '' as IntlString,
|
|
RemoveFirst: '' as IntlString,
|
|
RemoveLast: '' as IntlString,
|
|
FallbackValueError: '' as IntlString,
|
|
Required: '' as IntlString,
|
|
ParallelExecutionForbidden: '' as IntlString,
|
|
StartAutomatically: '' as IntlString,
|
|
AutomationOnly: '' as IntlString,
|
|
Continue: '' as IntlString,
|
|
RequestFromUser: '' as IntlString,
|
|
EnterValue: '' as IntlString,
|
|
OnToDoDone: '' as IntlString,
|
|
OnSubProcessesDone: '' as IntlString,
|
|
WhenSubProcessMatches: '' as IntlString,
|
|
WaitUntil: '' as IntlString,
|
|
WhenCardMatches: '' as IntlString,
|
|
WhenFieldChanges: '' as IntlString,
|
|
WhenRequiredFieldsFilled: '' as IntlString,
|
|
OnEvent: '' as IntlString,
|
|
Result: '' as IntlString,
|
|
RequestResult: '' as IntlString,
|
|
NoResultRequired: '' as IntlString,
|
|
Transition: '' as IntlString,
|
|
OnToDoCancelled: '' as IntlString,
|
|
DeleteTransition: '' as IntlString,
|
|
DeleteTransitionConfirm: '' as IntlString,
|
|
AddTransition: '' as IntlString,
|
|
ToDo: '' as IntlString,
|
|
CurrentCard: '' as IntlString,
|
|
Data: '' as IntlString,
|
|
Transitions: '' as IntlString,
|
|
OnExecutionStart: '' as IntlString,
|
|
Replacement: '' as IntlString,
|
|
Search: '' as IntlString,
|
|
Separator: '' as IntlString,
|
|
Start: '' as IntlString,
|
|
End: '' as IntlString,
|
|
Started: '' as IntlString,
|
|
Each: '' as IntlString,
|
|
CreateCard: '' as IntlString,
|
|
Done: '' as IntlString,
|
|
Cancelled: '' as IntlString,
|
|
ArraySizeEquals: '' as IntlString,
|
|
ArraySizeGt: '' as IntlString,
|
|
ArraySizeGte: '' as IntlString,
|
|
ArraySizeLt: '' as IntlString,
|
|
ArraySizeLte: '' as IntlString,
|
|
CurrentUser: '' as IntlString,
|
|
CurrentDate: '' as IntlString,
|
|
AddResult: '' as IntlString,
|
|
For: '' as IntlString,
|
|
Attribute: '' as IntlString,
|
|
Context: '' as IntlString,
|
|
EmptyValue: '' as IntlString,
|
|
EmptyArray: '' as IntlString,
|
|
ExecutionInitiator: '' as IntlString,
|
|
ExecutionStarted: '' as IntlString,
|
|
RunProcessPermission: '' as IntlString,
|
|
CancelProcessPermission: '' as IntlString,
|
|
ForbidRunProcessPermission: '' as IntlString,
|
|
ForbidCancelProcessPermission: '' as IntlString,
|
|
CancelToDo: '' as IntlString,
|
|
RequestApproval: '' as IntlString,
|
|
IsApproved: '' as IntlString,
|
|
Approve: '' as IntlString,
|
|
Reject: '' as IntlString,
|
|
Reason: '' as IntlString,
|
|
ApproveRequest: '' as IntlString,
|
|
OnApproveRequestApproved: '' as IntlString,
|
|
OnApproveRequestRejected: '' as IntlString,
|
|
ConfirmApproval: '' as IntlString,
|
|
ConfirmRejection: '' as IntlString,
|
|
RejectionReason: '' as IntlString,
|
|
ProvideRejectionReason: '' as IntlString,
|
|
FieldIsEmpty: '' as IntlString,
|
|
Reviewers: '' as IntlString,
|
|
Approvers: '' as IntlString,
|
|
LockCard: '' as IntlString,
|
|
LockSection: '' as IntlString,
|
|
UnlockCard: '' as IntlString,
|
|
UnlockSection: '' as IntlString,
|
|
LockField: '' as IntlString,
|
|
UnlockField: '' as IntlString,
|
|
Export: '' as IntlString,
|
|
ExportWithSlots: '' as IntlString,
|
|
ExportWithoutSlots: '' as IntlString,
|
|
Import: '' as IntlString,
|
|
TextFromIdentifier: '' as IntlString,
|
|
TextFromNumber: '' as IntlString,
|
|
TextFromDate: '' as IntlString,
|
|
TextFromCheckbox: '' as IntlString,
|
|
TextFromMarkup: '' as IntlString,
|
|
MarkupFromText: '' as IntlString,
|
|
NumberFromDate: '' as IntlString,
|
|
DateFromNumber: '' as IntlString,
|
|
NumberFromText: '' as IntlString,
|
|
DateFromText: '' as IntlString,
|
|
YearFromDate: '' as IntlString,
|
|
MonthFromDate: '' as IntlString,
|
|
DayFromDate: '' as IntlString,
|
|
DateDifference: '' as IntlString,
|
|
TextFromSelect: '' as IntlString,
|
|
SelectFromText: '' as IntlString,
|
|
AskSubclass: '' as IntlString,
|
|
AskRequired: '' as IntlString,
|
|
RequiredSlots: '' as IntlString,
|
|
Bindings: '' as IntlString
|
|
},
|
|
permission: {
|
|
RunProcess: '' as Ref<Permission>,
|
|
CancelProcess: '' as Ref<Permission>,
|
|
ForbidRunProcess: '' as Ref<Permission>,
|
|
ForbidCancelProcess: '' as Ref<Permission>
|
|
}
|
|
})
|