@23blocks/block-search 4.2.3 → 4.2.5
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/dist/index.esm.js
CHANGED
|
@@ -437,15 +437,15 @@ const searchIdentityMapper = {
|
|
|
437
437
|
});
|
|
438
438
|
return decodeMany(response, lastQueryMapper);
|
|
439
439
|
},
|
|
440
|
-
async get (
|
|
441
|
-
const response = await transport.get(`/search/queries/${
|
|
440
|
+
async get (uniqueId) {
|
|
441
|
+
const response = await transport.get(`/search/queries/${uniqueId}`);
|
|
442
442
|
return decodeOne(response, searchQueryMapper);
|
|
443
443
|
},
|
|
444
444
|
async clear () {
|
|
445
445
|
await transport.delete('/search/history');
|
|
446
446
|
},
|
|
447
|
-
async delete (
|
|
448
|
-
await transport.delete(`/search/history/${
|
|
447
|
+
async delete (uniqueId) {
|
|
448
|
+
await transport.delete(`/search/history/${uniqueId}`);
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
451
|
}
|
|
@@ -459,8 +459,8 @@ const searchIdentityMapper = {
|
|
|
459
459
|
});
|
|
460
460
|
return decodePageResult(response, favoriteEntityMapper);
|
|
461
461
|
},
|
|
462
|
-
async get (
|
|
463
|
-
const response = await transport.get(`/search/favorites/${
|
|
462
|
+
async get (uniqueId) {
|
|
463
|
+
const response = await transport.get(`/search/favorites/${uniqueId}`);
|
|
464
464
|
return decodeOne(response, favoriteEntityMapper);
|
|
465
465
|
},
|
|
466
466
|
async add (request) {
|
|
@@ -473,8 +473,8 @@ const searchIdentityMapper = {
|
|
|
473
473
|
});
|
|
474
474
|
return decodeOne(response, favoriteEntityMapper);
|
|
475
475
|
},
|
|
476
|
-
async remove (
|
|
477
|
-
await transport.delete(`/search/favorites/${
|
|
476
|
+
async remove (uniqueId) {
|
|
477
|
+
await transport.delete(`/search/favorites/${uniqueId}`);
|
|
478
478
|
},
|
|
479
479
|
async isFavorite (entityUniqueId) {
|
|
480
480
|
try {
|
|
@@ -27,9 +27,9 @@ export interface SearchHistoryService {
|
|
|
27
27
|
*/
|
|
28
28
|
recent(limit?: number): Promise<LastQuery[]>;
|
|
29
29
|
/**
|
|
30
|
-
* Get a specific query by ID
|
|
30
|
+
* Get a specific query by unique ID
|
|
31
31
|
*/
|
|
32
|
-
get(
|
|
32
|
+
get(uniqueId: string): Promise<SearchQuery>;
|
|
33
33
|
/**
|
|
34
34
|
* Clear search history
|
|
35
35
|
*/
|
|
@@ -37,7 +37,7 @@ export interface SearchHistoryService {
|
|
|
37
37
|
/**
|
|
38
38
|
* Delete a specific query from history
|
|
39
39
|
*/
|
|
40
|
-
delete(
|
|
40
|
+
delete(uniqueId: string): Promise<void>;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Favorites service interface
|
|
@@ -48,9 +48,9 @@ export interface FavoritesService {
|
|
|
48
48
|
*/
|
|
49
49
|
list(params?: ListParams): Promise<PageResult<FavoriteEntity>>;
|
|
50
50
|
/**
|
|
51
|
-
* Get a favorite by ID
|
|
51
|
+
* Get a favorite by unique ID
|
|
52
52
|
*/
|
|
53
|
-
get(
|
|
53
|
+
get(uniqueId: string): Promise<FavoriteEntity>;
|
|
54
54
|
/**
|
|
55
55
|
* Add a favorite
|
|
56
56
|
*/
|
|
@@ -58,7 +58,7 @@ export interface FavoritesService {
|
|
|
58
58
|
/**
|
|
59
59
|
* Remove a favorite
|
|
60
60
|
*/
|
|
61
|
-
remove(
|
|
61
|
+
remove(uniqueId: string): Promise<void>;
|
|
62
62
|
/**
|
|
63
63
|
* Check if an entity is favorited
|
|
64
64
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/search.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAG7E,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,cAAc,EACd,UAAU,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAExD;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAEhE;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IAE7C;;OAEG;IACH,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"search.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/search.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAG7E,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,cAAc,EACd,UAAU,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAExD;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAEhE;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