@lambda-development/erp-core 1.4.5 → 1.4.6

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.
@@ -167,6 +167,18 @@ export interface FleetCalendarFeed {
167
167
  assets: CalendarAsset[];
168
168
  reservations: CalendarReservation[];
169
169
  }
170
+ /** Narrows what a user's role allows: hidden classes of sensitive data and,
171
+ * per document or master type, the actions that remain. */
172
+ export interface AccessProfile {
173
+ name: string;
174
+ description?: string;
175
+ hidden_classes: string[];
176
+ permissions: {
177
+ default?: string[] | null;
178
+ doctypes?: Record<string, string[]>;
179
+ };
180
+ disabled?: boolean;
181
+ }
170
182
  export declare const api: {
171
183
  request: typeof request;
172
184
  uploadChatAttachment: (sessionId: string, file: File) => Promise<{
@@ -515,6 +527,14 @@ export declare const api: {
515
527
  authListUsers: () => Promise<any[]>;
516
528
  authChangeRole: (userName: string, role: string) => Promise<any>;
517
529
  authDisableUser: (userName: string) => Promise<any>;
530
+ authListAccessProfiles: () => Promise<{
531
+ profiles: AccessProfile[];
532
+ sensitivity_classes: Record<string, string>;
533
+ actions: string[];
534
+ }>;
535
+ authSaveAccessProfile: (profile: AccessProfile, isNew: boolean) => Promise<AccessProfile>;
536
+ authDeleteAccessProfile: (name: string) => Promise<any>;
537
+ authAssignAccessProfile: (userName: string, access_profile: string | null) => Promise<any>;
518
538
  authListInvites: () => Promise<any[]>;
519
539
  authRevokeInvite: (token: string) => Promise<any>;
520
540
  getPublicManagerStatus: () => Promise<{