@bisondesk/core-sdk 1.0.80 → 1.0.82

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,13 +1,19 @@
1
1
  import { BusinessEntityIds } from '../constants';
2
- import { SearchRequest } from './search';
3
- export declare type SavedFilter = {
2
+ import { ComplexFilter } from './search';
3
+ declare type SavedFilterQuery = {
4
+ conditions: {
5
+ [fieldId: string]: ComplexFilter;
6
+ };
7
+ fullText?: string;
8
+ };
9
+ export declare type SavedFilter = SavedFilterQuery & {
4
10
  id: string;
5
11
  businessEntityId: BusinessEntityIds;
6
- searchRequest: SearchRequest;
12
+ name: string;
7
13
  };
8
- export declare type NewSavedFilterRequest = {
14
+ export declare type NewSavedFilterRequest = SavedFilterQuery & {
9
15
  businessEntityId: BusinessEntityIds;
10
- searchRequest: SearchRequest;
16
+ name: string;
11
17
  };
12
- export declare type UpdateSavedFilterRequest = SearchRequest;
18
+ export {};
13
19
  //# sourceMappingURL=saved-filters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"saved-filters.d.ts","sourceRoot":"","sources":["../../src/types/saved-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,oBAAY,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAClC,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,oBAAY,wBAAwB,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"saved-filters.d.ts","sourceRoot":"","sources":["../../src/types/saved-filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,aAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE;QACV,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAAC;KAClC,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,WAAW,GAAG,gBAAgB,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,qBAAqB,GAAG,gBAAgB,GAAG;IACrD,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bisondesk/core-sdk",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "clean": "rm -rf build dist lib *.tsbuildinfo",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "author": "Ivo Anastácio",
13
13
  "dependencies": {
14
- "@bisondesk/commons-sdk": "1.0.80",
14
+ "@bisondesk/commons-sdk": "1.0.82",
15
15
  "joi": "17.4.0",
16
16
  "lru-cache": "6.0.0"
17
17
  },
@@ -1,15 +1,20 @@
1
1
  import { BusinessEntityIds } from '../constants';
2
- import { SearchRequest } from './search';
2
+ import { ComplexFilter } from './search';
3
3
 
4
- export type SavedFilter = {
4
+ type SavedFilterQuery = {
5
+ conditions: {
6
+ [fieldId: string]: ComplexFilter;
7
+ };
8
+ fullText?: string;
9
+ };
10
+
11
+ export type SavedFilter = SavedFilterQuery & {
5
12
  id: string;
6
13
  businessEntityId: BusinessEntityIds;
7
- searchRequest: SearchRequest;
14
+ name: string;
8
15
  };
9
16
 
10
- export type NewSavedFilterRequest = {
17
+ export type NewSavedFilterRequest = SavedFilterQuery & {
11
18
  businessEntityId: BusinessEntityIds;
12
- searchRequest: SearchRequest;
19
+ name: string;
13
20
  };
14
-
15
- export type UpdateSavedFilterRequest = SearchRequest;
@@ -592,8 +592,8 @@
592
592
  "affectsGlobalScope": false
593
593
  },
594
594
  "./src/types/saved-filters.ts": {
595
- "version": "e5ecc7703037c73c9ab0823604d7e514c9ae7909541598a26bbc4f7ab6d0563d",
596
- "signature": "fd86094688abccc985c66cd2f44310dfccfe7aab6d776dfe6240088c26fddb55",
595
+ "version": "bdc5c10f1f7f38b10162e93ebe34e81d8fe3581ff486b5925310e2202f8eeb1b",
596
+ "signature": "ed69971bf16039d47d449a217ac9378b91c22835783382ac8a2c8b1a36ca576e",
597
597
  "affectsGlobalScope": false
598
598
  },
599
599
  "./src/types/settings.ts": {