@aristid/leav-types 0.0.7-d101bd9 → 0.0.7-d47046a

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.
@@ -1,3 +1,2 @@
1
- import { IView } from '../../_types/views';
2
1
  export declare const mockViewBeforeCreation: IView;
3
2
  export declare const mockView: MandatoryId<IView>;
@@ -10,39 +10,40 @@ export declare enum ViewSizes {
10
10
  MEDIUM = "MEDIUM",
11
11
  BIG = "BIG"
12
12
  }
13
- interface IViewDisplay {
14
- type: ViewTypes;
15
- size: ViewSizes;
16
- }
17
- interface IViewValuesVersion {
18
- [treeId: string]: string;
19
- }
20
- export interface IView extends ICoreEntity {
21
- shared?: boolean;
22
- created_by?: string;
23
- created_at?: number;
24
- modified_at?: number;
25
- library?: string;
26
- description?: ISystemTranslation;
27
- color?: string;
28
- display?: IViewDisplay;
29
- filters?: IRecordFilterLight[];
30
- sort?: IRecordSortLight[];
31
- valuesVersions?: IViewValuesVersion;
32
- attributes?: string[];
33
- }
34
- export interface IViewValuesVersionForGraphql {
35
- treeId: string;
36
- treeNode: {
37
- id: string;
13
+ declare global {
14
+ interface IView extends ICoreEntity {
15
+ shared?: boolean;
16
+ created_by?: string;
17
+ created_at?: number;
18
+ modified_at?: number;
19
+ library?: string;
20
+ description?: ISystemTranslation;
21
+ color?: string;
22
+ display?: IViewDisplay;
23
+ filters?: IRecordFilterLight[];
24
+ sort?: IRecordSortLight[];
25
+ valuesVersions?: IViewValuesVersion;
26
+ attributes?: string[];
27
+ }
28
+ interface IViewDisplay {
29
+ type: ViewTypes;
30
+ size: ViewSizes;
31
+ }
32
+ type ViewFromGraphQL = Omit<IView, 'valuesVersions' | 'settings'> & {
33
+ valuesVersions: IViewValuesVersionForGraphql[];
38
34
  };
35
+ interface IViewFilterOptions extends ICoreEntityFilterOptions {
36
+ created_by?: string;
37
+ library?: string;
38
+ type?: ViewTypes;
39
+ }
40
+ interface IViewValuesVersion {
41
+ [treeId: string]: string;
42
+ }
43
+ interface IViewValuesVersionForGraphql {
44
+ treeId: string;
45
+ treeNode: {
46
+ id: string;
47
+ };
48
+ }
39
49
  }
40
- export type ViewFromGraphQL = Omit<IView, 'valuesVersions' | 'settings'> & {
41
- valuesVersions: IViewValuesVersionForGraphql[];
42
- };
43
- export interface IViewFilterOptions extends ICoreEntityFilterOptions {
44
- created_by?: string;
45
- library?: string;
46
- type?: ViewTypes;
47
- }
48
- export {};
@@ -4,7 +4,6 @@ import { IViewRepo } from 'infra/view/_types';
4
4
  import { IUtils } from 'utils/utils';
5
5
  import { IList } from '_types/list';
6
6
  import { IQueryInfos } from '_types/queryInfos';
7
- import { IView } from '_types/views';
8
7
  export interface IViewDomain {
9
8
  saveView(view: IView, ctx: IQueryInfos): Promise<IView>;
10
9
  getViews(library: string, ctx: IQueryInfos): Promise<IList<IView>>;
@@ -3,7 +3,6 @@ import { IDbUtils } from 'infra/db/dbUtils';
3
3
  import { IList } from '_types/list';
4
4
  import { IGetCoreEntitiesParams } from '_types/shared';
5
5
  import { IQueryInfos } from '../../_types/queryInfos';
6
- import { IView } from '_types/views';
7
6
  export declare const VIEWS_COLLECTION_NAME = "core_views";
8
7
  export interface IViewRepo {
9
8
  createView(view: IView, ctx: IQueryInfos): Promise<IView>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "0.0.7-d101bd9",
3
+ "version": "0.0.7-d47046a",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",
@@ -1,9 +0,0 @@
1
- import { type IDbService } from '../dbService';
2
- import { type IMigration } from '../../../_types/migration';
3
- import { IAttributeRepo } from 'infra/attribute/attributeRepo';
4
- interface IDeps {
5
- 'core.infra.db.dbService'?: IDbService;
6
- 'core.infra.attribute'?: IAttributeRepo;
7
- }
8
- export default function ({ 'core.infra.db.dbService': dbService, 'core.infra.attribute': attributeRepo }?: IDeps): IMigration;
9
- export {};