@aristid/leav-types 1.2.1-88a09fe4 → 1.2.1-9b5b2ec3

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.
@@ -5,7 +5,7 @@ import { type GraphQLScalarType } from 'graphql';
5
5
  import { type i18n } from 'i18next';
6
6
  import { type IAppModule } from '_types/shared';
7
7
  import { type ISystemTranslation } from '_types/systemTranslation';
8
- import { type IGraphqlAppModule } from '../graphql/graphqlApp';
8
+ import { type IGraphqlAppModule, type IGraphqlApp } from '../graphql/graphqlApp';
9
9
  export interface ICoreApp extends IAppModule, IGraphqlAppModule {
10
10
  filterSysTranslationField(fieldData: ISystemTranslation, requestedLangs: string[]): ISystemTranslation | null;
11
11
  initPubSubEventsConsumer(): Promise<void>;
@@ -13,10 +13,11 @@ export interface ICoreApp extends IAppModule, IGraphqlAppModule {
13
13
  export interface ICoreAppDeps {
14
14
  'core.domain.core': ICoreDomain;
15
15
  'core.domain.eventsManager': IEventsManagerDomain;
16
+ 'core.app.graphql': IGraphqlApp;
16
17
  'core.app.graphql.customScalars.systemTranslation': ISystemTranslationGenerator;
17
18
  'core.app.graphql.customScalars.dateTime': GraphQLScalarType;
18
19
  'core.app.graphql.customScalars.any': GraphQLScalarType;
19
20
  config: any;
20
21
  translator: i18n;
21
22
  }
22
- export default function ({ 'core.domain.core': coreDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.app.graphql.customScalars.systemTranslation': systemTranslation, 'core.app.graphql.customScalars.dateTime': DateTime, 'core.app.graphql.customScalars.any': Any, config, translator }: ICoreAppDeps): ICoreApp;
23
+ export default function ({ 'core.domain.core': coreDomain, 'core.domain.eventsManager': eventsManagerDomain, 'core.app.graphql': graphqlApp, 'core.app.graphql.customScalars.systemTranslation': systemTranslation, 'core.app.graphql.customScalars.dateTime': DateTime, 'core.app.graphql.customScalars.any': Any, config, translator }: ICoreAppDeps): ICoreApp;
@@ -1,8 +1,10 @@
1
+ import { type AwilixContainer } from 'awilix';
1
2
  import { type StoreUploadFileFunc } from 'domain/helpers/storeUploadFile';
2
3
  import { type IImportDomain } from 'domain/import/importDomain';
4
+ import { type IDbUtils } from 'infra/db/dbUtils';
3
5
  import { type IUtils } from 'utils/utils';
4
6
  import type * as Config from '_types/config';
5
- import { type IGraphqlAppModule } from '../graphql/graphqlApp';
7
+ import { type IGraphqlAppModule, type IGraphqlApp } from '../graphql/graphqlApp';
6
8
  export interface ICoreImportApp extends IGraphqlAppModule {
7
9
  importConfig(filepath: string, clear: boolean): Promise<void>;
8
10
  importData(filepath: string): Promise<void>;
@@ -10,8 +12,11 @@ export interface ICoreImportApp extends IGraphqlAppModule {
10
12
  interface IDeps {
11
13
  'core.domain.import': IImportDomain;
12
14
  'core.domain.helpers.storeUploadFile': StoreUploadFileFunc;
15
+ 'core.infra.db.dbUtils': IDbUtils;
13
16
  'core.utils': IUtils;
17
+ 'core.depsManager': AwilixContainer;
18
+ 'core.app.graphql': IGraphqlApp;
14
19
  config: Config.IConfig;
15
20
  }
16
- export default function ({ 'core.domain.import': importDomain, 'core.domain.helpers.storeUploadFile': storeUploadFile, 'core.utils': utils, config }: IDeps): ICoreImportApp;
21
+ export default function ({ 'core.domain.import': importDomain, 'core.domain.helpers.storeUploadFile': storeUploadFile, 'core.utils': utils, 'core.depsManager': depsManager, 'core.app.graphql': graphqlApp, 'core.infra.db.dbUtils': dbUtils, config }: IDeps): ICoreImportApp;
17
22
  export {};
@@ -1,8 +1,10 @@
1
+ import type * as Config from '_types/config';
1
2
  import { type IUtils } from 'utils/utils';
2
3
  import { type IQueryInfos } from '_types/queryInfos';
3
4
  export type CreateDirectoryFunc = (name: string, path: string, ctx: IQueryInfos) => Promise<void>;
4
5
  interface IDeps {
6
+ config: Config.IConfig;
5
7
  'core.utils': IUtils;
6
8
  }
7
- export default function ({ 'core.utils': utils }: IDeps): (name: string, path: string, ctx: IQueryInfos) => Promise<void>;
9
+ export default function ({ config, 'core.utils': utils }: IDeps): (name: string, path: string, ctx: IQueryInfos) => Promise<void>;
8
10
  export {};
@@ -5,7 +5,7 @@ import { type IConfig } from '_types/config';
5
5
  import { type IList, type IPaginationParams, type ISortParams } from '_types/list';
6
6
  import { type IQueryInfos } from '_types/queryInfos';
7
7
  import { type IKeyValue } from '_types/shared';
8
- import { type ICachesService } from '../cache/cacheService';
8
+ import { type ICachesService } from '../../infra/cache/cacheService';
9
9
  import { type IDbService } from './dbService';
10
10
  export declare const MIGRATIONS_COLLECTION_NAME = "core_db_migrations";
11
11
  export type CustomFilterConditionsFunc = (filterKey: string, filterVal: string | boolean | string[], strictFilters: boolean) => GeneratedAqlQuery;
@@ -82,7 +82,6 @@ export interface IUtils {
82
82
  getGlobalSettingsCacheKey(): string;
83
83
  generateExplicitValidationError<T>(field: keyof T, message: ErrorFieldDetailMessage, lang?: string): ValidationError<T>;
84
84
  deleteFile(path: string): Promise<void>;
85
- fileExists(path: string): Promise<boolean>;
86
85
  getUnixTime(): number;
87
86
  getFileExtension(filename: string): string | null;
88
87
  getProcessIdentifier(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "1.2.1-88a09fe4",
3
+ "version": "1.2.1-9b5b2ec3",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",