-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XIVY-15648 meta data details of known variables
The endpoint `knownVariables` has been adapted in the core to return the meta data details of variables of type enum (values) and file (extension). These values are now set on the overwriting variable when using the overwrite dialog. Additionally: - Added tests for `nodeIcon`. - Added tests that editing meta data details is disabled on overwriting variables. - Minor refactors here and there.
- Loading branch information
Showing
18 changed files
with
277 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,70 @@ | ||
import type { ProjectVarNode } from '@axonivy/variable-editor-protocol'; | ||
import type { KnownVariables, MetaData } from '@axonivy/variable-editor-protocol'; | ||
|
||
export const knownVariables: ProjectVarNode = { | ||
key: '', | ||
export const knownVariables: KnownVariables = { | ||
namespace: '', | ||
name: '', | ||
value: '', | ||
type: 'folder', | ||
metaData: { type: 'folder' }, | ||
description: '', | ||
children: [ | ||
{ | ||
key: 'Amazon', | ||
namespace: '', | ||
name: 'Amazon', | ||
value: '', | ||
type: 'folder', | ||
metaData: { type: 'folder' }, | ||
description: '', | ||
children: [ | ||
{ | ||
key: 'Amazon.Comprehend', | ||
namespace: 'Amazon', | ||
name: 'Comprehend', | ||
value: '', | ||
type: 'folder', | ||
metaData: { type: 'folder' }, | ||
description: 'Amazon comprehend connector settings', | ||
children: [ | ||
{ | ||
key: 'Amazon.Comprehend.SecretKey', | ||
namespace: 'Amazon.Comprehend', | ||
name: 'SecretKey', | ||
value: '<YOUR_SECRET_KEY>', | ||
type: 'password', | ||
metaData: { type: 'password' }, | ||
description: 'Secret key to access amazon comprehend', | ||
children: [] | ||
}, | ||
{ | ||
key: 'Amazon.Comprehend.AccessKey', | ||
namespace: 'Amazon.Comprehend', | ||
name: 'AccessKey', | ||
value: '<YOUR_ACCESS_KEY>', | ||
type: 'string', | ||
metaData: { type: 'string' }, | ||
description: 'Access key to access amazon comprehend', | ||
children: [] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
namespace: '', | ||
name: 'Meta', | ||
value: '', | ||
metaData: { type: 'folder' }, | ||
description: '', | ||
children: [ | ||
{ | ||
namespace: 'Meta', | ||
name: 'Enum', | ||
value: 'two', | ||
metaData: { type: 'enum', values: ['one', 'two', 'three'] } as MetaData, | ||
description: '', | ||
children: [] | ||
}, | ||
{ | ||
namespace: 'Meta', | ||
name: 'File', | ||
value: '', | ||
metaData: { type: 'file', extension: 'json' } as MetaData, | ||
description: '', | ||
children: [] | ||
} | ||
] | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.