@aristid/leav-types 1.4.1-514c3bba → 1.4.1-51dcfb22

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.
@@ -19,7 +19,7 @@ export interface IMakeGraphQlCallOptions {
19
19
  user?: IE2EUser;
20
20
  }
21
21
  export declare function makeGraphQlCall(query: string | FormData, options?: IMakeGraphQlCallOptions): Promise<any>;
22
- export declare function gqlSaveLibrary(id: string, label: string, additionalAttributes?: string[]): Promise<any>;
22
+ export declare function gqlSaveLibrary(id: string, label: string, additionalAttributes?: string[], settings?: string): Promise<any>;
23
23
  export declare function gqlSaveApplication(id: string, label: string, endpoint: string): Promise<any>;
24
24
  export declare function gqlSaveAttribute(params: {
25
25
  id: string;
@@ -1,7 +1,7 @@
1
1
  import { type ILibraryRepo } from 'infra/library/libraryRepo';
2
2
  import { type IRecordRepo } from 'infra/record/recordRepo';
3
3
  import { type ITreeRepo } from 'infra/tree/treeRepo';
4
- export declare const getCoreDep: <T>(path: any) => T;
5
4
  export declare const getLibraryRepo: () => ILibraryRepo;
6
5
  export declare const getRecordRepo: () => IRecordRepo;
7
6
  export declare const getTreeRepo: () => ITreeRepo;
7
+ export * from '../integrationTestUtils';
@@ -0,0 +1,7 @@
1
+ import { type AwilixContainer } from 'awilix';
2
+ export interface IGlobalThis {
3
+ coreContainer: AwilixContainer;
4
+ taskManagerMasterTimer: NodeJS.Timeout;
5
+ }
6
+ export declare const getCoreContainer: () => AwilixContainer;
7
+ export declare const getCoreDep: <T>(path: any) => T;
@@ -17,7 +17,6 @@ export declare enum Errors {
17
17
  ENCRYPT_ERROR = "ENCRYPT_ERROR",
18
18
  ERROR = "ERROR",
19
19
  EXCEL_CALCULATION_ERROR = "EXCEL_CALCULATION_ERROR",
20
- FILE_ERROR = "FILE_ERROR",
21
20
  FILE_NOT_FOUND = "FILE_NOT_FOUND",
22
21
  FORBIDDEN_FILES = "FORBIDDEN_FILES",
23
22
  FORBIDDEN_ID = "FORBIDDEN_ID",
@@ -8,7 +8,7 @@ import { type ITasksManagerDomain } from '../../domain/tasksManager/tasksManager
8
8
  import { TaskStatus } from '../../_types/tasksManager';
9
9
  import { type IGraphqlAppModule } from 'app/graphql/graphqlApp';
10
10
  export interface ITasksManagerApp extends IGraphqlAppModule {
11
- initMaster(): Promise<NodeJS.Timer>;
11
+ initMaster(): Promise<NodeJS.Timeout>;
12
12
  initWorker(): Promise<void>;
13
13
  }
14
14
  interface IDeps {
@@ -16,7 +16,6 @@ import { type IExportProfileDomain } from './exportProfileDomain';
16
16
  export interface IExportParams {
17
17
  library: string;
18
18
  profile: string;
19
- attributes: string[];
20
19
  filters?: IRecordFilterLight[];
21
20
  ctx: IQueryInfos;
22
21
  }
@@ -1,7 +1,7 @@
1
1
  import { type ILibraryDomain } from '../library/libraryDomain';
2
2
  import { type IQueryInfos } from '../../_types/queryInfos';
3
3
  export interface IExportProfileConfig {
4
- profileSelected: string;
4
+ defaultProfile: string;
5
5
  profiles: Array<{
6
6
  label: string;
7
7
  columns: Array<{
@@ -15,7 +15,7 @@ export interface IExportColumn {
15
15
  attribute: string;
16
16
  }
17
17
  export interface IExportProfileDomain {
18
- getColumnsFromProfileConfig(profile: string, library: string, ctx: IQueryInfos): Promise<IExportColumn[]>;
18
+ getColumnsFromProfileConfig(profile: string | undefined, library: string, ctx: IQueryInfos): Promise<IExportColumn[]>;
19
19
  }
20
20
  export interface IExportProfileDomainDeps {
21
21
  'core.domain.library': ILibraryDomain;
@@ -38,7 +38,7 @@ interface IGetTasksParams extends IGetCoreEntitiesParams {
38
38
  };
39
39
  }
40
40
  export interface ITasksManagerDomain {
41
- initMaster(): Promise<NodeJS.Timer>;
41
+ initMaster(): Promise<NodeJS.Timeout>;
42
42
  initWorker(): Promise<void>;
43
43
  getTasks({ params, ctx }: {
44
44
  params: IGetTasksParams;
@@ -1,6 +1,6 @@
1
1
  import { type ITasksManagerApp } from 'app/core/tasksManagerApp';
2
2
  export interface ITasksManagerInterface {
3
- initMaster(): Promise<NodeJS.Timer>;
3
+ initMaster(): Promise<NodeJS.Timeout>;
4
4
  initWorker(): Promise<void>;
5
5
  }
6
6
  interface IDeps {
@@ -0,0 +1,3 @@
1
+ import ExcelJS from 'exceljs';
2
+ declare const _default: (buffer: ExcelJS.Buffer) => Promise<string[][][]>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (filepath: string) => Promise<Buffer>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.4.1-514c3bba",
3
+ "version": "1.4.1-51dcfb22",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",
@@ -1,4 +0,0 @@
1
- import LeavError from './LeavError';
2
- export default class CustomConfigError<T> extends LeavError<T> {
3
- constructor(message?: string);
4
- }