@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.
- package/apps/core/src/__tests__/mocks/view.d.ts +0 -1
- package/apps/core/src/_types/views.d.ts +35 -34
- package/apps/core/src/domain/view/viewDomain.d.ts +0 -1
- package/apps/core/src/infra/view/_types.d.ts +0 -1
- package/package.json +1 -1
- package/apps/core/src/infra/db/migrations/007-updateHexColor.d.ts +0 -9
|
@@ -10,39 +10,40 @@ export declare enum ViewSizes {
|
|
|
10
10
|
MEDIUM = "MEDIUM",
|
|
11
11
|
BIG = "BIG"
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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,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 {};
|