@valtimo/object-management 13.34.0 → 13.36.0

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.
@@ -26,7 +26,7 @@ export declare class ObjectManagementListColumnsComponent {
26
26
  readonly modalShowing$: Observable<boolean>;
27
27
  readonly disableInput$: BehaviorSubject<boolean>;
28
28
  readonly showDeleteModal$: Subject<boolean>;
29
- readonly deleteRowIndex$: BehaviorSubject<number>;
29
+ readonly deleteRowKey$: BehaviorSubject<string>;
30
30
  readonly defaultEnumValues$: BehaviorSubject<MultiInputValues>;
31
31
  readonly INVALID_KEY = "invalid";
32
32
  readonly formGroup: FormGroup<{
@@ -65,7 +65,7 @@ export declare class ObjectManagementListColumnsComponent {
65
65
  openModal(modalType: ListColumnModal): void;
66
66
  closeModal(): void;
67
67
  deleteRow(searchListColumnRowIndex: number, clickEvent: MouseEvent): void;
68
- deleteRowConfirmation(searchListColumnRowIndex: number): void;
68
+ deleteRowConfirmation(columnKey: string): void;
69
69
  getColumnKey(searchListColumnRowIndex: number): string;
70
70
  moveRow(searchListColumnRowIndex: number, moveUp: boolean, clickEvent: MouseEvent, objectId: string): void;
71
71
  saveCasListColumns(): void;
@@ -10,6 +10,12 @@ interface Objecttype {
10
10
  formDefinitionEdit?: string;
11
11
  suppressOutbox?: boolean;
12
12
  }
13
+ interface ObjectManagementDto {
14
+ id: string;
15
+ title: string;
16
+ formDefinitionView?: string;
17
+ formDefinitionEdit?: string;
18
+ }
13
19
  export interface SearchListColumn {
14
20
  ownerId?: string;
15
21
  title: string;
@@ -25,6 +31,7 @@ export interface SearchColumn {
25
31
  sortable?: boolean;
26
32
  viewType?: string;
27
33
  default?: boolean | string;
34
+ defaultSort?: string;
28
35
  enum?: Array<string> | {
29
36
  [key: string]: string;
30
37
  };
@@ -52,4 +59,4 @@ export interface DisplayTypeParameters {
52
59
  dateFormat?: string;
53
60
  }
54
61
  type ObjecttypeKeys = keyof Objecttype;
55
- export { Objecttype, ObjecttypeKeys };
62
+ export { Objecttype, ObjecttypeKeys, ObjectManagementDto };
@@ -0,0 +1,11 @@
1
+ import { PermissionRequest } from '@valtimo/access-control';
2
+ declare enum OBJECT_MANAGEMENT_PERMISSION_ACTION {
3
+ view = "view",
4
+ view_list = "view_list"
5
+ }
6
+ declare enum OBJECT_MANAGEMENT_PERMISSION_RESOURCE {
7
+ objectManagement = "com.ritense.objectmanagement.domain.ObjectManagement"
8
+ }
9
+ declare const CAN_VIEW_OBJECT_MANAGEMENT_PERMISSION: PermissionRequest;
10
+ declare const CAN_VIEW_LIST_OBJECT_MANAGEMENT_PERMISSION: PermissionRequest;
11
+ export { OBJECT_MANAGEMENT_PERMISSION_ACTION, OBJECT_MANAGEMENT_PERMISSION_RESOURCE, CAN_VIEW_OBJECT_MANAGEMENT_PERMISSION, CAN_VIEW_LIST_OBJECT_MANAGEMENT_PERMISSION, };
@@ -1,7 +1,7 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { ConfigService, SearchField } from '@valtimo/shared';
4
- import { Objecttype, SearchListColumn } from '../models/object-management.model';
4
+ import { ObjectManagementDto, Objecttype, SearchListColumn } from '../models/object-management.model';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ObjectManagementService {
7
7
  private http;
@@ -9,6 +9,8 @@ export declare class ObjectManagementService {
9
9
  constructor(http: HttpClient, configService: ConfigService);
10
10
  getAllObjects(): Observable<Objecttype[]>;
11
11
  getObjectById(id: string): Observable<Objecttype>;
12
+ getConfigurationsForUser(): Observable<ObjectManagementDto[]>;
13
+ getObjectByIdFromList(id: string): Observable<ObjectManagementDto | undefined>;
12
14
  createObject(payload: Objecttype): Observable<Objecttype>;
13
15
  editObject(payload: Objecttype): Observable<Objecttype>;
14
16
  getSearchList(ownerId: string): Observable<Array<SearchListColumn>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/object-management",
3
3
  "license": "EUPL-1.2",
4
- "version": "13.34.0",
4
+ "version": "13.36.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "19.2.20",
7
7
  "@angular/core": "19.2.20"
package/public-api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './lib/models/object-management.model';
2
2
  export * from './lib/services/object-management.service';
3
+ export * from './lib/permissions/object-management.permissions';
3
4
  export * from './lib/object-management.module';