@reltio/components 1.4.1408 → 1.4.1410

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.
Files changed (61) hide show
  1. package/cjs/components/ProfileBand/ProfileBand.d.ts +3 -2
  2. package/cjs/components/ProfileBand/ProfileBand.js +2 -2
  3. package/cjs/components/ProfileBand/styles.d.ts +1 -1
  4. package/cjs/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +1 -1
  5. package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.d.ts +5 -4
  6. package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +5 -2
  7. package/cjs/components/workflow/components/AttributesChanges/components/ChangeView/ChangeView.d.ts +2 -2
  8. package/cjs/components/workflow/components/AttributesChanges/contexts/AttributesChangesContext.d.ts +1 -1
  9. package/cjs/components/workflow/components/AttributesChanges/helpers/attributesHelpers.js +3 -4
  10. package/cjs/components/workflow/components/AttributesChanges/helpers/helpers.d.ts +4 -6
  11. package/cjs/components/workflow/components/AttributesChanges/helpers/helpers.js +21 -22
  12. package/cjs/components/workflow/components/AttributesChanges/helpers/mergeHelpers.d.ts +2 -3
  13. package/cjs/components/workflow/components/AttributesChanges/helpers/mergeHelpers.js +23 -24
  14. package/cjs/components/workflow/components/AttributesChanges/types/diffTypes.d.ts +3 -5
  15. package/cjs/components/workflow/components/TaskActionButtons/TaskActionButtons.d.ts +7 -0
  16. package/cjs/components/workflow/components/TaskActionButtons/TaskActionButtons.js +25 -0
  17. package/cjs/components/workflow/helpers/dcrHelpers.d.ts +3 -1
  18. package/cjs/components/workflow/helpers/dcrHelpers.js +9 -1
  19. package/cjs/components/workflow/hooks/useChangeRequest.d.ts +1 -1
  20. package/cjs/components/workflow/hooks/useWorkflowActions.d.ts +2 -1
  21. package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -38
  22. package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.d.ts +1 -0
  23. package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +47 -0
  24. package/cjs/components/workflow/hooks/useWorkflowTasks.js +1 -1
  25. package/cjs/components/workflow/index.d.ts +2 -0
  26. package/cjs/components/workflow/index.js +5 -1
  27. package/esm/components/ProfileBand/ProfileBand.d.ts +3 -2
  28. package/esm/components/ProfileBand/ProfileBand.js +3 -3
  29. package/esm/components/ProfileBand/styles.d.ts +1 -1
  30. package/esm/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +1 -1
  31. package/esm/components/workflow/components/AttributesChanges/AttributesChanges.d.ts +5 -4
  32. package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +6 -3
  33. package/esm/components/workflow/components/AttributesChanges/components/ChangeView/ChangeView.d.ts +2 -2
  34. package/esm/components/workflow/components/AttributesChanges/contexts/AttributesChangesContext.d.ts +1 -1
  35. package/esm/components/workflow/components/AttributesChanges/helpers/attributesHelpers.js +1 -2
  36. package/esm/components/workflow/components/AttributesChanges/helpers/helpers.d.ts +4 -6
  37. package/esm/components/workflow/components/AttributesChanges/helpers/helpers.js +13 -14
  38. package/esm/components/workflow/components/AttributesChanges/helpers/mergeHelpers.d.ts +2 -3
  39. package/esm/components/workflow/components/AttributesChanges/helpers/mergeHelpers.js +1 -2
  40. package/esm/components/workflow/components/AttributesChanges/types/diffTypes.d.ts +3 -5
  41. package/esm/components/workflow/components/TaskActionButtons/TaskActionButtons.d.ts +7 -0
  42. package/esm/components/workflow/components/TaskActionButtons/TaskActionButtons.js +18 -0
  43. package/esm/components/workflow/helpers/dcrHelpers.d.ts +3 -1
  44. package/esm/components/workflow/helpers/dcrHelpers.js +7 -1
  45. package/esm/components/workflow/hooks/useChangeRequest.d.ts +1 -1
  46. package/esm/components/workflow/hooks/useWorkflowActions.d.ts +2 -1
  47. package/esm/components/workflow/hooks/useWorkflowActions.js +5 -17
  48. package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.d.ts +1 -0
  49. package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +20 -0
  50. package/esm/components/workflow/hooks/useWorkflowTasks.js +2 -2
  51. package/esm/components/workflow/index.d.ts +2 -0
  52. package/esm/components/workflow/index.js +2 -0
  53. package/package.json +3 -3
  54. package/cjs/components/workflow/constants/operations.d.ts +0 -25
  55. package/cjs/components/workflow/constants/operations.js +0 -30
  56. package/cjs/components/workflow/types/dcrTypes.d.ts +0 -69
  57. package/cjs/components/workflow/types/dcrTypes.js +0 -2
  58. package/esm/components/workflow/constants/operations.d.ts +0 -25
  59. package/esm/components/workflow/constants/operations.js +0 -27
  60. package/esm/components/workflow/types/dcrTypes.d.ts +0 -69
  61. package/esm/components/workflow/types/dcrTypes.js +0 -1
@@ -1,69 +0,0 @@
1
- import { Crosswalk, Entity, NestedAttributeValue, ReferenceAttributeValue, Relation, SimpleAttributeValue, PrimitiveValue } from '@reltio/mdm-sdk';
2
- import { DCRTypes } from '../constants/operations';
3
- export declare type ChangeRequest = {
4
- changes: DCRChanges;
5
- createdBy: string;
6
- createdTime: number;
7
- objectsInfo: DCRObjectsInfo;
8
- state: string;
9
- type: string;
10
- updatedBy: string;
11
- updatedTime: number;
12
- uri: string;
13
- };
14
- export declare type GroupedObjectsInfo = {
15
- entity: EntityInfo;
16
- relations: RelationInfo[];
17
- };
18
- export declare type EntityInfo = {
19
- isExist: boolean;
20
- label: string;
21
- secondaryLabel: string;
22
- type: string;
23
- uri?: string;
24
- };
25
- export declare type RelationInfo = {
26
- type: string;
27
- startObjectLabel: string;
28
- startObjectUri: string;
29
- endObjectLabel: string;
30
- endObjectUri: string;
31
- isExist: boolean;
32
- uri?: string;
33
- };
34
- export declare type DCRObjectInfo = EntityInfo | RelationInfo;
35
- export declare type DCRObjectsInfo = {
36
- [key: string]: DCRObjectInfo;
37
- };
38
- export declare type DCRAttributes = {
39
- [attributeName: string]: (ChangeValue | DCRChange)[];
40
- };
41
- export declare type Value = DCRAttributes | DCRChange | PrimitiveValue;
42
- export declare type DCRAttributeValue = Omit<SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue, 'uri' | 'value'> & {
43
- value: Value;
44
- refObjectURI?: string;
45
- refEntity?: {
46
- objectURI: string;
47
- };
48
- uri?: string;
49
- };
50
- export declare type ChangeValue = DCRAttributeValue | string[] | Entity | Relation;
51
- export declare type DCRChange = {
52
- attributePath?: string;
53
- attributeType?: string;
54
- conflict?: string;
55
- conflictDetails?: string;
56
- createdBy?: string;
57
- createdTime?: string;
58
- crosswalk?: Crosswalk;
59
- id?: string;
60
- newPinOrIgnoreValue?: boolean;
61
- newValue?: ChangeValue;
62
- oldValue?: ChangeValue;
63
- type?: DCRTypes;
64
- refAttributeType?: string;
65
- refObjectURI?: string;
66
- };
67
- export declare type DCRChanges = {
68
- [key: string]: DCRChange[];
69
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,25 +0,0 @@
1
- export declare enum OperationTypes {
2
- ADDED = "added",
3
- EDITED = "edited",
4
- DELETED = "deleted",
5
- PINNED = "pinned",
6
- IGNORED = "ignored",
7
- PIN_DELETED = "pin_deleted",
8
- IGNORE_DELETED = "ignore_deleted"
9
- }
10
- export declare enum DCRTypes {
11
- INSERT_ATTRIBUTE = "INSERT_ATTRIBUTE",
12
- UPDATE_ATTRIBUTE = "UPDATE_ATTRIBUTE",
13
- DELETE_ATTRIBUTE = "DELETE_ATTRIBUTE",
14
- PIN_ATTRIBUTE = "PIN_ATTRIBUTE",
15
- IGNORE_ATTRIBUTE = "IGNORE_ATTRIBUTE",
16
- CREATE_ENTITY = "CREATE_ENTITY",
17
- CREATE_RELATIONSHIP = "CREATE_RELATIONSHIP",
18
- UPDATE_TAGS = "UPDATE_TAGS",
19
- UPDATE_ROLES = "UPDATE_ROLES",
20
- UPDATE_START_DATE = "UPDATE_START_DATE",
21
- UPDATE_END_DATE = "UPDATE_END_DATE",
22
- UPDATE_PROFILE_PIC_BY_URL = "UPDATE_PROFILE_PIC_BY_URL",
23
- UPDATE_PROFILE_PIC_BY_URI = "UPDATE_PROFILE_PIC_BY_URI",
24
- DELETE_RELATIONSHIP = "DELETE_RELATIONSHIP"
25
- }
@@ -1,27 +0,0 @@
1
- export var OperationTypes;
2
- (function (OperationTypes) {
3
- OperationTypes["ADDED"] = "added";
4
- OperationTypes["EDITED"] = "edited";
5
- OperationTypes["DELETED"] = "deleted";
6
- OperationTypes["PINNED"] = "pinned";
7
- OperationTypes["IGNORED"] = "ignored";
8
- OperationTypes["PIN_DELETED"] = "pin_deleted";
9
- OperationTypes["IGNORE_DELETED"] = "ignore_deleted";
10
- })(OperationTypes || (OperationTypes = {}));
11
- export var DCRTypes;
12
- (function (DCRTypes) {
13
- DCRTypes["INSERT_ATTRIBUTE"] = "INSERT_ATTRIBUTE";
14
- DCRTypes["UPDATE_ATTRIBUTE"] = "UPDATE_ATTRIBUTE";
15
- DCRTypes["DELETE_ATTRIBUTE"] = "DELETE_ATTRIBUTE";
16
- DCRTypes["PIN_ATTRIBUTE"] = "PIN_ATTRIBUTE";
17
- DCRTypes["IGNORE_ATTRIBUTE"] = "IGNORE_ATTRIBUTE";
18
- DCRTypes["CREATE_ENTITY"] = "CREATE_ENTITY";
19
- DCRTypes["CREATE_RELATIONSHIP"] = "CREATE_RELATIONSHIP";
20
- DCRTypes["UPDATE_TAGS"] = "UPDATE_TAGS";
21
- DCRTypes["UPDATE_ROLES"] = "UPDATE_ROLES";
22
- DCRTypes["UPDATE_START_DATE"] = "UPDATE_START_DATE";
23
- DCRTypes["UPDATE_END_DATE"] = "UPDATE_END_DATE";
24
- DCRTypes["UPDATE_PROFILE_PIC_BY_URL"] = "UPDATE_PROFILE_PIC_BY_URL";
25
- DCRTypes["UPDATE_PROFILE_PIC_BY_URI"] = "UPDATE_PROFILE_PIC_BY_URI";
26
- DCRTypes["DELETE_RELATIONSHIP"] = "DELETE_RELATIONSHIP";
27
- })(DCRTypes || (DCRTypes = {}));
@@ -1,69 +0,0 @@
1
- import { Crosswalk, Entity, NestedAttributeValue, ReferenceAttributeValue, Relation, SimpleAttributeValue, PrimitiveValue } from '@reltio/mdm-sdk';
2
- import { DCRTypes } from '../constants/operations';
3
- export declare type ChangeRequest = {
4
- changes: DCRChanges;
5
- createdBy: string;
6
- createdTime: number;
7
- objectsInfo: DCRObjectsInfo;
8
- state: string;
9
- type: string;
10
- updatedBy: string;
11
- updatedTime: number;
12
- uri: string;
13
- };
14
- export declare type GroupedObjectsInfo = {
15
- entity: EntityInfo;
16
- relations: RelationInfo[];
17
- };
18
- export declare type EntityInfo = {
19
- isExist: boolean;
20
- label: string;
21
- secondaryLabel: string;
22
- type: string;
23
- uri?: string;
24
- };
25
- export declare type RelationInfo = {
26
- type: string;
27
- startObjectLabel: string;
28
- startObjectUri: string;
29
- endObjectLabel: string;
30
- endObjectUri: string;
31
- isExist: boolean;
32
- uri?: string;
33
- };
34
- export declare type DCRObjectInfo = EntityInfo | RelationInfo;
35
- export declare type DCRObjectsInfo = {
36
- [key: string]: DCRObjectInfo;
37
- };
38
- export declare type DCRAttributes = {
39
- [attributeName: string]: (ChangeValue | DCRChange)[];
40
- };
41
- export declare type Value = DCRAttributes | DCRChange | PrimitiveValue;
42
- export declare type DCRAttributeValue = Omit<SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue, 'uri' | 'value'> & {
43
- value: Value;
44
- refObjectURI?: string;
45
- refEntity?: {
46
- objectURI: string;
47
- };
48
- uri?: string;
49
- };
50
- export declare type ChangeValue = DCRAttributeValue | string[] | Entity | Relation;
51
- export declare type DCRChange = {
52
- attributePath?: string;
53
- attributeType?: string;
54
- conflict?: string;
55
- conflictDetails?: string;
56
- createdBy?: string;
57
- createdTime?: string;
58
- crosswalk?: Crosswalk;
59
- id?: string;
60
- newPinOrIgnoreValue?: boolean;
61
- newValue?: ChangeValue;
62
- oldValue?: ChangeValue;
63
- type?: DCRTypes;
64
- refAttributeType?: string;
65
- refObjectURI?: string;
66
- };
67
- export declare type DCRChanges = {
68
- [key: string]: DCRChange[];
69
- };
@@ -1 +0,0 @@
1
- export {};