@aristid/leav-types 0.0.7-a3d4863 → 0.0.7-ac37a84

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.
@@ -21,7 +21,7 @@ declare global {
21
21
  color?: string;
22
22
  display?: IViewDisplay;
23
23
  filters?: IRecordFilterLight[];
24
- sort?: IRecordSortLight;
24
+ sort?: IRecordSortLight[];
25
25
  valuesVersions?: IViewValuesVersion;
26
26
  attributes?: string[];
27
27
  }
@@ -19,12 +19,18 @@ export interface IExportParams {
19
19
  }
20
20
  export interface IExportDomain {
21
21
  exportExcel(params: IExportParams, task?: ITaskFuncParams): Promise<string>;
22
- exportData(jsonMapping: string, elements: Array<{
22
+ exportData(mapping: IExportMapping, elements: Array<{
23
23
  [libraryId: string]: string;
24
24
  }>, ctx: IQueryInfos): Promise<Array<{
25
25
  [key: string]: any;
26
26
  }>>;
27
27
  }
28
+ export interface IExportMapping {
29
+ [key: string]: {
30
+ attribute: string;
31
+ rawValue?: boolean;
32
+ };
33
+ }
28
34
  export interface IExportDomainDeps {
29
35
  'core.domain.record': IRecordDomain;
30
36
  'core.domain.attribute': IAttributeDomain;
@@ -0,0 +1,7 @@
1
+ import { IDbService } from '../dbService';
2
+ import { IMigration } from '_types/migration';
3
+ interface IDeps {
4
+ 'core.infra.db.dbService'?: IDbService;
5
+ }
6
+ export default function ({ 'core.infra.db.dbService': dbService }?: IDeps): IMigration;
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "0.0.7-a3d4863",
3
+ "version": "0.0.7-ac37a84",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",