@aristid/leav-types 0.0.7-93281e2 → 0.0.7-93afb55

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,4 +1,5 @@
1
1
  import { ErrorTypes } from '@leav/utils';
2
+ import { Errors } from '_types/errors';
2
3
  import { ICursorPaginationParams, IPaginationParams } from '_types/list';
3
4
  import { IRecord, IRecordFilterLight, IRecordSortLight } from '_types/record';
4
5
  import { IValue, IValuesOptions, IValueVersion } from '_types/value';
@@ -20,10 +21,9 @@ export interface ICreateRecordParams {
20
21
  };
21
22
  }
22
23
  export interface ICreateRecordValueError {
23
- attributeId: string;
24
- type: ErrorTypes;
24
+ attribute: string;
25
+ type: ErrorTypes | Errors;
25
26
  message: string;
26
- id_value?: string;
27
27
  input?: any;
28
28
  }
29
29
  export interface ICreateRecordResult {
@@ -82,6 +82,12 @@ export interface IRecordDomain {
82
82
  filters?: IRecordFilterLight[];
83
83
  ctx: IQueryInfos;
84
84
  }): Promise<IRecord[]>;
85
+ activateRecordsBatch(params: {
86
+ libraryId: string;
87
+ recordsIds?: string[];
88
+ filters?: IRecordFilterLight[];
89
+ ctx: IQueryInfos;
90
+ }): Promise<IRecord[]>;
85
91
  purgeInactiveRecords(params: {
86
92
  libraryId: string;
87
93
  ctx: IQueryInfos;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aristid/leav-types",
3
- "version": "0.0.7-93281e2",
3
+ "version": "0.0.7-93afb55",
4
4
  "description": "Shared Leav types",
5
5
  "scripts": {
6
6
  "tscheck": "",