@aristid/leav-types 1.4.0-36f123f9 → 1.4.0-4a1417a6

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.
@@ -11,14 +11,15 @@ interface IAccessPermissionFilterDeps {
11
11
  'core.infra.permission': IPermissionRepo;
12
12
  'core.domain.permission.helpers.defaultPermission': IDefaultPermissionHelper;
13
13
  }
14
+ interface INodeIdsByPermissions {
15
+ true: Array<ITreeNode['id']>;
16
+ false: Array<ITreeNode['id']>;
17
+ }
14
18
  export interface IGetAccessPermissionsValue {
15
19
  treeId: string;
16
20
  attribute: IAttribute;
17
- permissions: {
18
- true: Array<ITreeNode['id']>;
19
- false: Array<ITreeNode['id']>;
20
- };
21
+ permissions: INodeIdsByPermissions;
21
22
  }
22
- export type IGetAccessPermissions = (groupsIds: string[][], library: string, deps: IAccessPermissionFilterDeps, ctx: IQueryInfos) => Promise<IGetAccessPermissionsValue[]>;
23
+ export type IGetAccessPermissions = (groupsIds: string[][], library: string, existingFiltersOnTreeIds: string[], deps: IAccessPermissionFilterDeps, ctx: IQueryInfos) => Promise<IGetAccessPermissionsValue[]>;
23
24
  declare const getAccessPermissionsFilters: IGetAccessPermissions;
24
25
  export default getAccessPermissionsFilters;
@@ -0,0 +1,10 @@
1
+ import winston from 'winston';
2
+ interface ICallerInfo {
3
+ path: string;
4
+ line: string;
5
+ col: string;
6
+ }
7
+ export declare function getLocationInfo(): ICallerInfo | null;
8
+ export declare const addLocationInfoInLog: winston.Logform.FormatWrap;
9
+ export declare const mergeLocationInfoInLog: winston.Logform.FormatWrap;
10
+ export {};
@@ -1,4 +1,4 @@
1
- import * as winston from 'winston';
1
+ import winston from 'winston';
2
2
  import { type ILoggerConfig } from './config';
3
3
  export type ILogger = Pick<typeof winston, 'error' | 'warn' | 'info' | 'log' | 'verbose' | 'debug' | 'silly'>;
4
4
  export declare function configureLogger(config: ILoggerConfig): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.4.0-36f123f9",
3
+ "version": "1.4.0-4a1417a6",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",