@aristid/leav-types 1.4.0-cf0d20a9 → 1.4.1

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.
@@ -3,7 +3,6 @@ export declare let coreMode: string;
3
3
  export declare namespace server {
4
4
  let host: string;
5
5
  let port: number;
6
- let keepAliveTimeout: number;
7
6
  let publicUrl: string;
8
7
  let basePath: string;
9
8
  let allowIntrospection: boolean;
@@ -215,11 +214,6 @@ export declare namespace elasticSearch {
215
214
  export let indexPrefix: string;
216
215
  let url_2: string;
217
216
  export { url_2 as url };
218
- export let ilmPolicyName: string;
219
- export let templateName: string;
220
- }
221
- export declare namespace logsCollector {
222
- let queue: string;
223
217
  }
224
218
  export declare let pluginsPath: string | any[];
225
219
  export { _export as export, _import as import };
@@ -30,7 +30,6 @@ export interface IConfig {
30
30
  dbProfiler: IDbProfilerConfig;
31
31
  instanceId: string;
32
32
  elasticSearch: IElasticSearchConfig;
33
- logsCollector: ILogsCollector;
34
33
  pluginsPath: string[];
35
34
  bugsnag: IBugsnag;
36
35
  matomo: IMatomo;
@@ -42,13 +41,11 @@ export declare enum CoreMode {
42
41
  INDEXATION_MANAGER = "indexationManager",
43
42
  TASKS_MANAGER_MASTER = "tasksManager:master",
44
43
  TASKS_MANAGER_WORKER = "tasksManager:worker",
45
- LOGS_COLLECTOR = "logsCollector",
46
44
  CLI = "cli"
47
45
  }
48
46
  export interface IServer {
49
47
  host: string;
50
48
  port: number;
51
- keepAliveTimeout: number;
52
49
  publicUrl: string;
53
50
  basePath: string;
54
51
  allowIntrospection: boolean;
@@ -228,8 +225,6 @@ export interface IDbProfilerConfig {
228
225
  export interface IElasticSearchConfig {
229
226
  indexPrefix: string;
230
227
  url: string;
231
- ilmPolicyName: string;
232
- templateName: string;
233
228
  }
234
229
  export interface IBugsnag {
235
230
  enable: boolean;
@@ -243,6 +238,3 @@ export interface IMatomo {
243
238
  url?: string;
244
239
  siteId?: string;
245
240
  }
246
- export interface ILogsCollector {
247
- queue: string;
248
- }
@@ -4,7 +4,6 @@ export declare enum ErrorTypes {
4
4
  INTERNAL_ERROR = "INTERNAL_ERROR"
5
5
  }
6
6
  export declare enum Errors {
7
- ATTRIBUTE_USED_BY_LIBRARY = "ATTRIBUTE_USED_BY_LIBRARY",
8
7
  ATTRIBUTE_USED_IN_METADATA = "ATTRIBUTE_USED_IN_METADATA",
9
8
  CANNOT_SAVE_METADATA = "CANNOT_SAVE_METADATA",
10
9
  DUPLICATE_DIRECTORY_NAMES = "DUPLICATE_DIRECTORY_NAMES",
@@ -10,7 +10,6 @@ export { default as globalSettings } from './globalSettingsApp';
10
10
  export { default as subscriptionsHelper } from './helpers/subscriptions';
11
11
  export { default as import } from './importApp';
12
12
  export { default as indexationManager } from './indexationManagerApp';
13
- export { default as logsCollector } from './logsCollectorApp';
14
13
  export { default as library } from './libraryApp/libraryApp';
15
14
  export { default as log } from './logApp';
16
15
  export { default as permission } from './permissionApp/permissionApp';
@@ -26,7 +26,6 @@ import { type DeleteRecordHelper } from './helpers/deleteRecord';
26
26
  import { type CreateRecordHelper } from './helpers/createRecord';
27
27
  import { type IElementAncestorsHelper } from 'domain/tree/helpers/elementAncestors';
28
28
  import { type ILogger } from '@leav/logger';
29
- export declare const ATTRIBUTE_ACTIVE = "active";
30
29
  export interface IRecordDomain {
31
30
  /**
32
31
  * Create empty record
@@ -1,6 +1,6 @@
1
1
  import { Client, type estypes } from '@elastic/elasticsearch';
2
2
  import { type IConfig } from '_types/config';
3
- import { type Log } from '@leav/utils';
3
+ import { type IQueryInfos } from '_types/queryInfos';
4
4
  export interface IElasticsearchServiceSearchResponse<T> {
5
5
  total: number;
6
6
  hits: T[];
@@ -17,12 +17,11 @@ interface IElasticsearchServiceSearchParams {
17
17
  }
18
18
  export interface IElasticSearchService {
19
19
  client: Client;
20
- search: <T>(params: IElasticsearchServiceSearchParams) => Promise<IElasticsearchServiceSearchResponse<T>>;
21
- writeData: (indexName: string, data: Log) => Promise<void>;
20
+ search: <T>(params: IElasticsearchServiceSearchParams, ctx: IQueryInfos) => Promise<IElasticsearchServiceSearchResponse<T>>;
22
21
  }
23
- export interface IElasticSearchServiceDeps {
22
+ interface IDeps {
24
23
  'core.infra.elasticSearch.client'?: Client;
25
24
  config?: IConfig;
26
25
  }
27
- export default function ({ config }: IElasticSearchServiceDeps): IElasticSearchService;
26
+ export default function ({ config }: IDeps): IElasticSearchService;
28
27
  export {};
@@ -1,6 +1,5 @@
1
1
  export { default as cli } from './cli';
2
2
  export { default as filesManager } from './filesManager';
3
3
  export { default as indexationManager } from './indexationManager';
4
- export { default as logsCollector } from './logsCollector';
5
4
  export { default as tasksManager } from './tasksManager';
6
5
  export { default as server } from './server';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.4.0-cf0d20a9",
3
+ "version": "1.4.1",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",
@@ -14,7 +14,7 @@
14
14
  "license": "LGPL3",
15
15
  "repository": "https://github.com/leav-solutions/leav-engine",
16
16
  "dependencies": {
17
- "@leav/utils": "1.4.0",
17
+ "@leav/utils": "1.4.1",
18
18
  "@types/amqplib": "0.10.7",
19
19
  "@types/express": "5.0.0",
20
20
  "@types/jest": "29.5.14",
@@ -1,2 +0,0 @@
1
- import { type IDbEvent, type IDbPayload } from '@leav/utils';
2
- export type WritableMessage = Omit<IDbEvent, 'payload' | 'emitter'> & IDbPayload;
@@ -1,9 +0,0 @@
1
- import { type ILogsCollectorDomain } from 'domain/logsCollector/logsCollectorDomain';
2
- export interface ILogsCollectorApp {
3
- init(): Promise<void>;
4
- }
5
- interface IDeps {
6
- 'core.domain.logsCollector': ILogsCollectorDomain;
7
- }
8
- export default function ({ 'core.domain.logsCollector': logsCollector }: IDeps): ILogsCollectorApp;
9
- export {};
@@ -1 +0,0 @@
1
- export { default } from './logsCollectorDomain';
@@ -1,16 +0,0 @@
1
- import { type IAmqpService } from '@leav/message-broker';
2
- import { type ILogger } from '@leav/logger';
3
- import type * as Config from '_types/config';
4
- import { type IIndexationService } from '../../infra/indexation/indexationService';
5
- import { type IElasticSearchService } from '../../infra/elasticSearch/elasticSearchService';
6
- export interface ILogsCollectorDomain {
7
- init(): Promise<void>;
8
- }
9
- export interface ILogsCollectorDomainDeps {
10
- config: Config.IConfig;
11
- 'core.infra.amqpService': IAmqpService;
12
- 'core.infra.indexation.indexationService': IIndexationService;
13
- 'core.utils.logger': ILogger;
14
- 'core.infra.elasticSearch.service': IElasticSearchService;
15
- }
16
- export default function ({ config, 'core.infra.amqpService': amqpService, 'core.infra.indexation.indexationService': indexationService, 'core.utils.logger': logger, 'core.infra.elasticSearch.service': esService }: ILogsCollectorDomainDeps): ILogsCollectorDomain;
@@ -1,9 +0,0 @@
1
- import { type ILogsCollectorApp } from 'app/core/logsCollectorApp';
2
- export interface ILogsCollectorInterface {
3
- init(): Promise<void>;
4
- }
5
- interface IDeps {
6
- 'core.app.core.logsCollector': ILogsCollectorApp;
7
- }
8
- export default function ({ 'core.app.core.logsCollector': logsCollector }: IDeps): ILogsCollectorInterface;
9
- export {};