@aristid/leav-types 1.7.0-bba65313 → 1.7.0-cacbb8c9
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/apps/core/src/__tests__/e2e/api/actionLists/actions/replaceAnotherAttributeAction.test.d.ts +1 -0
- package/apps/core/src/__tests__/e2e/api/e2eUtils.d.ts +3 -0
- package/apps/core/src/__tests__/mocks/attribute.d.ts +3 -0
- package/apps/core/src/_types/actionsList.d.ts +1 -1
- package/apps/core/src/_types/attribute.d.ts +6 -0
- package/apps/core/src/_types/eventsManager.d.ts +1 -0
- package/apps/core/src/_types/notification.d.ts +5 -0
- package/apps/core/src/_types/record.d.ts +1 -0
- package/apps/core/src/domain/actions/excelCalculationAction.d.ts +4 -2
- package/apps/core/src/domain/actions/index.d.ts +1 -0
- package/apps/core/src/domain/actions/inheritanceCalculationAction.d.ts +4 -2
- package/apps/core/src/domain/actions/replaceAnotherAttributeAction.d.ts +13 -0
- package/apps/core/src/domain/value/_types.d.ts +1 -0
- package/package.json +1 -1
package/apps/core/src/__tests__/e2e/api/actionLists/actions/replaceAnotherAttributeAction.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ import { type ActionsListConfig } from '_types/actionsList';
|
|
|
6
6
|
import { type ITreeElement } from '_types/tree';
|
|
7
7
|
import { AttributeFormats, type AttributeTypes, type IAttributeVersionsConf, type IEmbeddedAttribute } from '../../../_types/attribute';
|
|
8
8
|
import { type ITreePermissionsDependentValuesConf } from '_types/permissions';
|
|
9
|
+
import { type ISaveValue } from '_types/value';
|
|
9
10
|
export interface IGlobalThis {
|
|
10
11
|
guestUser: IE2EUserParams;
|
|
11
12
|
nonAdminUser: IE2EUserParams;
|
|
@@ -67,6 +68,8 @@ export declare function gqlCreateRecord(library: string): Promise<string>;
|
|
|
67
68
|
export declare function gqlAddElemToTree(treeId: string, element: ITreeElement, parent?: string | null, order?: number): Promise<string>;
|
|
68
69
|
export declare function gqlGetValue(libraryId: string, recordId: string, attributeId: string): Promise<any>;
|
|
69
70
|
export declare function gqlSaveValue(attributeId: string, libraryId: string, recordId: string, value: string | number): Promise<void>;
|
|
71
|
+
export declare function gqlSaveValueBis(attributeId: string, libraryId: string, recordId: string, value: ISaveValue): Promise<string | null>;
|
|
72
|
+
export declare function gqlDeleteValue(attributeId: string, libraryId: string, recordId: string, idValue: string | null): Promise<void>;
|
|
70
73
|
export declare function gqlSaveVersionProfile(profileId: string, label: string, trees: string[]): Promise<void>;
|
|
71
74
|
/**
|
|
72
75
|
* Convert object to JSON, escaping quotes to be able to use it in a graphql query
|
|
@@ -34,6 +34,9 @@ export declare const mockAttrTree: {
|
|
|
34
34
|
multi_link_display_option?: MultiDisplayOption;
|
|
35
35
|
multi_tree_display_option?: MultiDisplayOption;
|
|
36
36
|
permissions_conf_dependent_values?: import("../../_types/permissions").ITreePermissionsDependentValuesConf;
|
|
37
|
+
smart_filter?: {
|
|
38
|
+
enable: boolean;
|
|
39
|
+
};
|
|
37
40
|
label?: import("../../_types/systemTranslation").ISystemTranslation | string;
|
|
38
41
|
};
|
|
39
42
|
export declare const mockAttrTreeVersionable: IAttribute;
|
|
@@ -26,7 +26,7 @@ export interface IActionsListContext extends IQueryInfos {
|
|
|
26
26
|
library?: string;
|
|
27
27
|
recordId?: string;
|
|
28
28
|
}
|
|
29
|
-
export type ActionsListParams<T extends string | number | symbol> = Record<T,
|
|
29
|
+
export type ActionsListParams<T extends string | number | symbol> = Record<T, string>;
|
|
30
30
|
export type ActionsListParamsConfig<ParamsRequired extends Record<string, boolean>> = {
|
|
31
31
|
[Name in keyof ParamsRequired]: {
|
|
32
32
|
name: Name;
|
|
@@ -32,6 +32,12 @@ export interface IAttribute extends ICoreEntity {
|
|
|
32
32
|
* only for tree attribute
|
|
33
33
|
*/
|
|
34
34
|
permissions_conf_dependent_values?: ITreePermissionsDependentValuesConf;
|
|
35
|
+
/**
|
|
36
|
+
* only for link attribute
|
|
37
|
+
*/
|
|
38
|
+
smart_filter?: {
|
|
39
|
+
enable: boolean;
|
|
40
|
+
};
|
|
35
41
|
}
|
|
36
42
|
export declare enum ValueVersionMode {
|
|
37
43
|
SIMPLE = "simple",
|
|
@@ -9,6 +9,7 @@ export interface INotification {
|
|
|
9
9
|
*/
|
|
10
10
|
recipientUserId: string;
|
|
11
11
|
content: INotificationContent;
|
|
12
|
+
displayDuration?: number;
|
|
12
13
|
}
|
|
13
14
|
export interface INotificationContent {
|
|
14
15
|
level: 'success' | 'info' | 'warning' | 'error';
|
|
@@ -45,6 +46,10 @@ export interface ICreateNotification {
|
|
|
45
46
|
*/
|
|
46
47
|
priority: 'urgent' | 'normal';
|
|
47
48
|
content: INotificationContent;
|
|
49
|
+
/**
|
|
50
|
+
* Duration of the notification in ms, 0 for persistent
|
|
51
|
+
*/
|
|
52
|
+
displayDuration?: number;
|
|
48
53
|
/**
|
|
49
54
|
* Channels to send the notification to (if not set, all channels will be used)
|
|
50
55
|
*/
|
|
@@ -81,6 +81,7 @@ export interface IRecordIdentity {
|
|
|
81
81
|
getSubLabel?: () => Promise<string | null>;
|
|
82
82
|
getColor?: () => Promise<string | null>;
|
|
83
83
|
getPreview?: () => Promise<IPreview | null>;
|
|
84
|
+
getParentContext?: () => Promise<IRecordIdentity[] | null>;
|
|
84
85
|
}
|
|
85
86
|
export interface IRecordIdentityConf {
|
|
86
87
|
label?: string;
|
|
@@ -7,8 +7,10 @@ interface IDeps {
|
|
|
7
7
|
config: IConfig;
|
|
8
8
|
'core.utils.logger': ILogger;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
type ActionParams = {
|
|
11
11
|
Formula: true;
|
|
12
12
|
Description: true;
|
|
13
|
-
|
|
13
|
+
['Return only calculated value']: false;
|
|
14
|
+
};
|
|
15
|
+
export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.utils.logger': logger, config, }: IDeps): IActionsListFunction<ActionParams>;
|
|
14
16
|
export {};
|
|
@@ -17,3 +17,4 @@ export { default as validateRegexAction } from './validateRegexAction';
|
|
|
17
17
|
export { default as validateURLAction } from './validateURLAction';
|
|
18
18
|
export { default as toUppercaseAction } from './toUppercaseAction';
|
|
19
19
|
export { default as toLowercaseAction } from './toLowercaseAction';
|
|
20
|
+
export { default as replaceAnotherAttribute } from './replaceAnotherAttributeAction';
|
|
@@ -5,8 +5,10 @@ interface IDeps {
|
|
|
5
5
|
'core.domain.helpers.calculationVariable'?: ICalculationVariable;
|
|
6
6
|
'core.domain.attribute'?: IAttributeDomain;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
type ActionParams = {
|
|
9
9
|
Formula: true;
|
|
10
10
|
Description: true;
|
|
11
|
-
|
|
11
|
+
['Return only calculated value']: false;
|
|
12
|
+
};
|
|
13
|
+
export default function ({ 'core.domain.helpers.calculationVariable': calculationVariable, 'core.domain.attribute': attributeDomain, }?: IDeps): IActionsListFunction<ActionParams>;
|
|
12
14
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IAttributeDomain } from 'domain/attribute/attributeDomain';
|
|
2
|
+
import { type IValueDomain } from 'domain/value/valueDomain';
|
|
3
|
+
import { type IActionsListFunction } from '../../_types/actionsList';
|
|
4
|
+
import { type IUtils } from 'utils/utils';
|
|
5
|
+
interface IDeps {
|
|
6
|
+
'core.domain.value'?: IValueDomain;
|
|
7
|
+
'core.domain.attribute'?: IAttributeDomain;
|
|
8
|
+
'core.utils': IUtils;
|
|
9
|
+
}
|
|
10
|
+
export default function ({ 'core.domain.value': valueDomain, 'core.domain.attribute': attributeDomain, 'core.utils': utils, }: IDeps): IActionsListFunction<{
|
|
11
|
+
attributePath: true;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|