@equinor/fusion-framework-module-bookmark 4.0.1 → 4.0.3
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/CHANGELOG.md +19 -0
- package/dist/esm/BookmarkClient.js +18 -3
- package/dist/esm/BookmarkClient.js.map +1 -1
- package/dist/esm/{BookmarkProvider.error.js → BookmarkFlowError.js} +9 -7
- package/dist/esm/BookmarkFlowError.js.map +1 -0
- package/dist/esm/{BookmarkConfigurator.js → BookmarkModuleConfigurator.js} +36 -5
- package/dist/esm/BookmarkModuleConfigurator.js.map +1 -0
- package/dist/esm/BookmarkProvider.js +112 -23
- package/dist/esm/BookmarkProvider.js.map +1 -1
- package/dist/esm/BookmarkProvider.selectors.js +8 -0
- package/dist/esm/BookmarkProvider.selectors.js.map +1 -1
- package/dist/esm/BookmarkProviderError.js +20 -0
- package/dist/esm/BookmarkProviderError.js.map +1 -0
- package/dist/esm/{BookmarkProvider.actions.js → bookmark-actions.js} +1 -1
- package/dist/esm/bookmark-actions.js.map +1 -0
- package/dist/esm/bookmark-config.schema.js +2 -0
- package/dist/esm/bookmark-config.schema.js.map +1 -1
- package/dist/esm/bookmark-flows/bookmark-api-flows.js +28 -0
- package/dist/esm/bookmark-flows/bookmark-api-flows.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-add-bookmark-as-favorite.js +27 -0
- package/dist/esm/bookmark-flows/handle-add-bookmark-as-favorite.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-create-bookmark.js +27 -0
- package/dist/esm/bookmark-flows/handle-create-bookmark.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-delete-bookmark.js +26 -0
- package/dist/esm/bookmark-flows/handle-delete-bookmark.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-fetch-all-bookmark.js +29 -0
- package/dist/esm/bookmark-flows/handle-fetch-all-bookmark.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-fetch-bookmark-data.js +26 -0
- package/dist/esm/bookmark-flows/handle-fetch-bookmark-data.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-fetch-bookmark.js +30 -0
- package/dist/esm/bookmark-flows/handle-fetch-bookmark.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-remove-bookmark-from-favorites.js +28 -0
- package/dist/esm/bookmark-flows/handle-remove-bookmark-from-favorites.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-remove-bookmark.js +49 -0
- package/dist/esm/bookmark-flows/handle-remove-bookmark.js.map +1 -0
- package/dist/esm/bookmark-flows/handle-update-bookmark.js +28 -0
- package/dist/esm/bookmark-flows/handle-update-bookmark.js.map +1 -0
- package/dist/esm/bookmark-flows/index.js +11 -0
- package/dist/esm/bookmark-flows/index.js.map +1 -0
- package/dist/esm/bookmark-module.js +2 -2
- package/dist/esm/bookmark-module.js.map +1 -1
- package/dist/esm/bookmark.schemas.js +9 -3
- package/dist/esm/bookmark.schemas.js.map +1 -1
- package/dist/esm/create-bookmark-reducer.js +122 -0
- package/dist/esm/create-bookmark-reducer.js.map +1 -0
- package/dist/esm/{BookmarkProvider.store.js → create-bookmark-store.js} +3 -3
- package/dist/esm/create-bookmark-store.js.map +1 -0
- package/dist/esm/enable-bookmark.js +2 -1
- package/dist/esm/enable-bookmark.js.map +1 -1
- package/dist/esm/index.js +12 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/BookmarkClient.d.ts +1 -0
- package/dist/types/{BookmarkProvider.error.d.ts → BookmarkFlowError.d.ts} +9 -4
- package/dist/types/{BookmarkConfigurator.d.ts → BookmarkModuleConfigurator.d.ts} +9 -4
- package/dist/types/BookmarkProvider.d.ts +81 -18
- package/dist/types/BookmarkProvider.interface.d.ts +1 -1
- package/dist/types/BookmarkProvider.selectors.d.ts +3 -3
- package/dist/types/BookmarkProviderError.d.ts +16 -0
- package/dist/types/{BookmarkProvider.actions.d.ts → bookmark-actions.d.ts} +3 -3
- package/dist/types/bookmark-flows/bookmark-api-flows.d.ts +11 -0
- package/dist/types/bookmark-flows/handle-add-bookmark-as-favorite.d.ts +10 -0
- package/dist/types/bookmark-flows/handle-create-bookmark.d.ts +10 -0
- package/dist/types/bookmark-flows/handle-delete-bookmark.d.ts +10 -0
- package/dist/types/bookmark-flows/handle-fetch-all-bookmark.d.ts +10 -0
- package/dist/types/bookmark-flows/handle-fetch-bookmark-data.d.ts +10 -0
- package/dist/types/bookmark-flows/handle-fetch-bookmark.d.ts +10 -0
- package/dist/types/bookmark-flows/handle-remove-bookmark-from-favorites.d.ts +10 -0
- package/dist/types/bookmark-flows/handle-remove-bookmark.d.ts +14 -0
- package/dist/types/bookmark-flows/handle-update-bookmark.d.ts +10 -0
- package/dist/types/bookmark-flows/index.d.ts +10 -0
- package/dist/types/bookmark-module.d.ts +1 -1
- package/dist/types/{BookmarkProvider.reducer.d.ts → create-bookmark-reducer.d.ts} +39 -39
- package/dist/types/{BookmarkProvider.store.d.ts → create-bookmark-store.d.ts} +2 -2
- package/dist/types/enable-bookmark.d.ts +1 -1
- package/dist/types/index.d.ts +12 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +12 -12
- package/src/BookmarkClient.ts +21 -3
- package/src/{BookmarkProvider.error.ts → BookmarkFlowError.ts} +9 -7
- package/src/{BookmarkConfigurator.ts → BookmarkModuleConfigurator.ts} +40 -11
- package/src/BookmarkProvider.interface.ts +3 -2
- package/src/BookmarkProvider.selectors.ts +10 -2
- package/src/BookmarkProvider.ts +112 -23
- package/src/BookmarkProviderError.ts +19 -0
- package/src/{BookmarkProvider.actions.ts → bookmark-actions.ts} +1 -1
- package/src/bookmark-config.schema.ts +2 -0
- package/src/bookmark-flows/bookmark-api-flows.ts +45 -0
- package/src/bookmark-flows/handle-add-bookmark-as-favorite.ts +49 -0
- package/src/bookmark-flows/handle-create-bookmark.ts +47 -0
- package/src/bookmark-flows/handle-delete-bookmark.ts +47 -0
- package/src/bookmark-flows/handle-fetch-all-bookmark.ts +53 -0
- package/src/bookmark-flows/handle-fetch-bookmark-data.ts +58 -0
- package/src/bookmark-flows/handle-fetch-bookmark.ts +64 -0
- package/src/bookmark-flows/handle-remove-bookmark-from-favorites.ts +49 -0
- package/src/bookmark-flows/handle-remove-bookmark.ts +76 -0
- package/src/bookmark-flows/handle-update-bookmark.ts +48 -0
- package/src/bookmark-flows/index.ts +10 -0
- package/src/bookmark-module.ts +2 -2
- package/src/bookmark.schemas.ts +10 -4
- package/src/create-bookmark-reducer.ts +149 -0
- package/src/{BookmarkProvider.store.ts → create-bookmark-store.ts} +4 -4
- package/src/enable-bookmark.ts +3 -2
- package/src/index.ts +12 -1
- package/src/version.ts +1 -1
- package/dist/esm/BookmarkConfigurator.js.map +0 -1
- package/dist/esm/BookmarkProvider.actions.js.map +0 -1
- package/dist/esm/BookmarkProvider.error.js.map +0 -1
- package/dist/esm/BookmarkProvider.flows.js +0 -217
- package/dist/esm/BookmarkProvider.flows.js.map +0 -1
- package/dist/esm/BookmarkProvider.reducer.js +0 -113
- package/dist/esm/BookmarkProvider.reducer.js.map +0 -1
- package/dist/esm/BookmarkProvider.store.js.map +0 -1
- package/dist/types/BookmarkProvider.flows.d.ts +0 -79
- package/src/BookmarkProvider.flows.ts +0 -421
- package/src/BookmarkProvider.reducer.ts +0 -144
|
@@ -25,6 +25,7 @@ export declare class BookmarkClient implements IBookmarkClient {
|
|
|
25
25
|
* Constructs a new `BookmarkClient` instance with the provided `BookmarksApiClient`.
|
|
26
26
|
*
|
|
27
27
|
* @param api - The `BookmarksApiClient` instance to use for making API requests.
|
|
28
|
+
* @param options - Optional client options, such as the cache expiry time.
|
|
28
29
|
*/
|
|
29
30
|
constructor(api: BookmarksApiClient<'json$'>, options?: {
|
|
30
31
|
expire?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ActionWithSuffix } from '@equinor/fusion-observable';
|
|
2
|
-
import type { BookmarkActions } from './
|
|
2
|
+
import type { BookmarkActions } from './bookmark-actions';
|
|
3
3
|
/**
|
|
4
4
|
* Error thrown inside bookmark store flows (side-effect pipelines) when an
|
|
5
5
|
* API call or observable chain fails.
|
|
@@ -10,6 +10,13 @@ import type { BookmarkActions } from './BookmarkProvider.actions';
|
|
|
10
10
|
export declare class BookmarkFlowError extends Error {
|
|
11
11
|
/** The request action that triggered the failed flow. */
|
|
12
12
|
readonly action: ActionWithSuffix<BookmarkActions, 'request'>;
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a new `BookmarkFlowError`.
|
|
15
|
+
*
|
|
16
|
+
* @param message - Human-readable error message.
|
|
17
|
+
* @param action - The request action that triggered the failed flow.
|
|
18
|
+
* @param options - Optional `ErrorOptions` (e.g. `cause`).
|
|
19
|
+
*/
|
|
13
20
|
constructor(message: string,
|
|
14
21
|
/** The request action that triggered the failed flow. */
|
|
15
22
|
action: ActionWithSuffix<BookmarkActions, 'request'>, options?: ErrorOptions);
|
|
@@ -21,6 +28,4 @@ export declare class BookmarkFlowError extends Error {
|
|
|
21
28
|
* Distinct from {@link BookmarkFlowError}, which is scoped to internal
|
|
22
29
|
* store flow pipelines.
|
|
23
30
|
*/
|
|
24
|
-
export
|
|
25
|
-
constructor(message: string, options?: ErrorOptions);
|
|
26
|
-
}
|
|
31
|
+
export { BookmarkProviderError } from './BookmarkProviderError';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BaseConfigBuilder, type ConfigBuilderCallback, type
|
|
2
|
-
import type { AppModuleProvider } from '@equinor/fusion-framework-module-app';
|
|
1
|
+
import { BaseConfigBuilder, type ConfigBuilderCallback, type ModulesInstanceType } from '@equinor/fusion-framework-module';
|
|
3
2
|
import type { ILogger, LogLevel } from '@equinor/fusion-log';
|
|
4
3
|
import type { BookmarkModule } from './bookmark-module';
|
|
5
4
|
import type { BookmarkModuleConfig } from './types';
|
|
@@ -17,6 +16,13 @@ import type { BookmarkModuleConfig } from './types';
|
|
|
17
16
|
export declare class BookmarkModuleConfigurator extends BaseConfigBuilder<BookmarkModuleConfig> {
|
|
18
17
|
#private;
|
|
19
18
|
defaultExpireTime: number;
|
|
19
|
+
/**
|
|
20
|
+
* Constructs a new `BookmarkModuleConfigurator`.
|
|
21
|
+
*
|
|
22
|
+
* @param options - Optional configurator options.
|
|
23
|
+
* @param options.log - Logger instance inherited from the parent module, if any.
|
|
24
|
+
* @param options.ref - Reference to sibling module instances available during configuration.
|
|
25
|
+
*/
|
|
20
26
|
constructor(options?: {
|
|
21
27
|
log?: ILogger;
|
|
22
28
|
ref?: ModulesInstanceType<[BookmarkModule]>;
|
|
@@ -93,6 +99,7 @@ export declare class BookmarkModuleConfigurator extends BaseConfigBuilder<Bookma
|
|
|
93
99
|
setApplicationResolver(cb: ConfigBuilderCallback<BookmarkModuleConfig['resolve']['application']>): void;
|
|
94
100
|
/**
|
|
95
101
|
* Sets a filter for the bookmark module.
|
|
102
|
+
* @template TKey - The filter key being set.
|
|
96
103
|
* @param key - The key of the filter to set.
|
|
97
104
|
* @param value - The value to set for the filter.
|
|
98
105
|
*
|
|
@@ -101,7 +108,5 @@ export declare class BookmarkModuleConfigurator extends BaseConfigBuilder<Bookma
|
|
|
101
108
|
* - context: Only return bookmarks for the resolved context.
|
|
102
109
|
*/
|
|
103
110
|
setFilter<TKey extends keyof BookmarkModuleConfig['filters']>(key: TKey, value: BookmarkModuleConfig['filters'][TKey]): void;
|
|
104
|
-
protected _resolveAppProvider(init: ConfigBuilderCallbackArgs): Promise<AppModuleProvider | undefined>;
|
|
105
|
-
protected _processConfig(config: Partial<BookmarkModuleConfig>, _init: ConfigBuilderCallbackArgs): Promise<BookmarkModuleConfig>;
|
|
106
111
|
}
|
|
107
112
|
export default BookmarkModuleConfigurator;
|
|
@@ -3,9 +3,9 @@ import { type FrameworkEventInitType } from '@equinor/fusion-framework-module-ev
|
|
|
3
3
|
import { SemanticVersion } from '@equinor/fusion-framework-module';
|
|
4
4
|
import type { Bookmark, BookmarkData, BookmarkWithoutData, Bookmarks, BookmarkModuleConfig } from './types';
|
|
5
5
|
import type { BookmarkUpdate, IBookmarkClient } from './BookmarkClient.interface';
|
|
6
|
-
import { type BookmarkActions } from './
|
|
7
|
-
import { type BookmarkState } from './
|
|
8
|
-
import { type BookmarkFlowError } from './
|
|
6
|
+
import { type BookmarkActions } from './bookmark-actions';
|
|
7
|
+
import { type BookmarkState } from './create-bookmark-store';
|
|
8
|
+
import { type BookmarkFlowError } from './BookmarkFlowError';
|
|
9
9
|
import type { BookmarkProviderEventMap } from './BookmarkProvider.events';
|
|
10
10
|
import type { BookmarkCreateArgs, BookmarkPayloadGenerator, BookmarkUpdateOptions, IBookmarkProvider } from './BookmarkProvider.interface';
|
|
11
11
|
/**
|
|
@@ -28,93 +28,117 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
28
28
|
/**
|
|
29
29
|
* @deprecated
|
|
30
30
|
* this will be removed as soon as applications have been migrated to use the bookmark provider
|
|
31
|
+
* @param fn - The payload generator callback to register.
|
|
32
|
+
* @template T - The bookmark data type produced by the generator.
|
|
33
|
+
* @returns A function that unregisters the payload generator when called.
|
|
31
34
|
*/
|
|
32
35
|
addStateCreator<T extends BookmarkData>(fn: BookmarkPayloadGenerator<T>): VoidFunction;
|
|
33
36
|
/**
|
|
34
37
|
* @deprecated
|
|
35
38
|
* this will be removed as soon as applications have been migrated to use the bookmark provider
|
|
39
|
+
* @param id - The ID of the bookmark to delete.
|
|
36
40
|
*/
|
|
37
41
|
deleteBookmarkByIdAsync(id: string): Promise<void>;
|
|
38
42
|
/**
|
|
39
43
|
* @deprecated
|
|
40
44
|
* this will be removed as soon as applications have been migrated to use the bookmark provider
|
|
45
|
+
* @param id - The ID of the bookmark to add as a favorite.
|
|
46
|
+
* @returns The updated bookmark, or undefined if it could not be found.
|
|
41
47
|
*/
|
|
42
48
|
addBookmarkFavoriteAsync(id: string): Promise<Bookmark | undefined>;
|
|
43
49
|
/**
|
|
44
50
|
* @deprecated
|
|
45
51
|
* this will be removed as soon as applications have been migrated to use the bookmark provider
|
|
52
|
+
* @param id - The ID of the bookmark to remove as a favorite.
|
|
46
53
|
*/
|
|
47
54
|
removeBookmarkFavoriteAsync(id: string): Promise<void>;
|
|
48
55
|
/**
|
|
49
56
|
* @deprecated
|
|
50
57
|
* this will be removed as soon as applications have been migrated to use the bookmark provider
|
|
58
|
+
* @param id - The ID of the bookmark to get.
|
|
59
|
+
* @returns The bookmark, or null if it could not be found.
|
|
51
60
|
*/
|
|
52
61
|
getBookmarkById(id: string): Promise<Bookmark | null>;
|
|
53
62
|
/**
|
|
54
63
|
* Gets the semantic version of the bookmark provider.
|
|
64
|
+
* @returns The semantic version of the bookmark provider.
|
|
55
65
|
*/
|
|
56
66
|
get version(): SemanticVersion;
|
|
67
|
+
/** @returns The configured bookmark filters. */
|
|
57
68
|
get filters(): BookmarkModuleConfig['filters'];
|
|
58
69
|
/**
|
|
59
70
|
* Gets the `IBookmarkClient` instance used by this `BookmarkProvider`.
|
|
71
|
+
* @returns The `IBookmarkClient` instance.
|
|
60
72
|
*/
|
|
61
73
|
get client(): IBookmarkClient;
|
|
62
74
|
/**
|
|
63
75
|
* Gets the currently active bookmark (if any).
|
|
76
|
+
* @returns An observable of the currently active bookmark.
|
|
64
77
|
*/
|
|
65
78
|
get currentBookmark$(): Observable<Bookmark | null | undefined>;
|
|
66
79
|
/**
|
|
67
80
|
* Gets an observable that emits the current list of bookmarks.
|
|
81
|
+
* @returns An observable of the current list of bookmarks.
|
|
68
82
|
*/
|
|
69
83
|
get bookmarks$(): Observable<Array<BookmarkWithoutData>>;
|
|
70
84
|
/**
|
|
71
85
|
* Gets the current list of bookmarks.
|
|
86
|
+
* @returns The current list of bookmarks.
|
|
72
87
|
*/
|
|
73
88
|
get bookmarks(): Array<BookmarkWithoutData>;
|
|
74
89
|
/**
|
|
75
90
|
* Gets the currently active bookmark.
|
|
91
|
+
* @returns The currently active bookmark, or null/undefined if there is none.
|
|
76
92
|
*/
|
|
77
93
|
get currentBookmark(): Bookmark | null | undefined;
|
|
78
94
|
/**
|
|
79
95
|
* Represents an observable stream of the bookmark status.
|
|
96
|
+
* @returns An observable of the bookmark status.
|
|
80
97
|
*/
|
|
81
98
|
get status$(): Observable<BookmarkState['status']>;
|
|
82
99
|
/**
|
|
83
100
|
* Gets an observable that emits the current list of bookmark errors.
|
|
101
|
+
* @returns An observable of the current list of bookmark errors.
|
|
84
102
|
*/
|
|
85
103
|
get errors$(): Observable<Array<BookmarkFlowError>>;
|
|
86
104
|
/**
|
|
87
105
|
* Determines whether there are any bookmark creators configured.
|
|
88
|
-
* `true` if there are any bookmark creators configured, `false` otherwise.
|
|
106
|
+
* @returns `true` if there are any bookmark creators configured, `false` otherwise.
|
|
89
107
|
*/
|
|
90
108
|
get canCreateBookmarks(): boolean;
|
|
91
109
|
/**
|
|
92
110
|
* Gets the source system value from the configuration.
|
|
111
|
+
* @returns The source system value.
|
|
93
112
|
*/
|
|
94
113
|
get sourceSystem(): BookmarkModuleConfig['sourceSystem'];
|
|
95
114
|
/**
|
|
96
115
|
* Gets the resolved application from the bookmark module configuration.
|
|
116
|
+
* @returns The resolved application resolver.
|
|
97
117
|
*/
|
|
98
118
|
get resolvedApplication(): BookmarkModuleConfig['resolve']['application'];
|
|
99
119
|
/**
|
|
100
120
|
* Gets the resolved context from the bookmark module configuration.
|
|
121
|
+
* @returns The resolved context resolver.
|
|
101
122
|
*/
|
|
102
123
|
get resolvedContext(): BookmarkModuleConfig['resolve']['context'];
|
|
103
|
-
protected get _apiClient(): IBookmarkClient;
|
|
104
124
|
/**
|
|
105
125
|
* configured logger instance.
|
|
126
|
+
* @returns The configured logger.
|
|
106
127
|
*/
|
|
107
128
|
protected get _log(): BookmarkModuleConfig['log'];
|
|
108
129
|
/**
|
|
109
130
|
* configured resolvers
|
|
131
|
+
* @returns The configured resolvers.
|
|
110
132
|
*/
|
|
111
133
|
protected get _resolve(): BookmarkModuleConfig['resolve'];
|
|
112
134
|
/**
|
|
113
135
|
* configured event provider.
|
|
136
|
+
* @returns The configured event provider.
|
|
114
137
|
*/
|
|
115
138
|
protected get _event(): BookmarkModuleConfig['eventProvider'];
|
|
116
139
|
/**
|
|
117
140
|
* configured parent bookmark provider
|
|
141
|
+
* @returns The configured parent bookmark provider.
|
|
118
142
|
*/
|
|
119
143
|
protected get _parent(): BookmarkModuleConfig['parent'];
|
|
120
144
|
/**
|
|
@@ -126,6 +150,7 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
126
150
|
/**
|
|
127
151
|
* Registers an event listener for the specified event on the BookmarkProvider.
|
|
128
152
|
*
|
|
153
|
+
* @template TType - The key of the `BookmarkProviderEventMap` identifying the event.
|
|
129
154
|
* @param eventName - The name of the event to listen for. Must be a key of the `BookmarkProviderEventMap` type.
|
|
130
155
|
* @param callback - The callback function to be invoked when the event is triggered.
|
|
131
156
|
* The callback will receive the event object as its parameter, which will be of the type corresponding to the `eventName`.
|
|
@@ -136,6 +161,7 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
136
161
|
* Adds a new payload generator function to the BookmarkProvider.
|
|
137
162
|
* The payload generator function will be used to generate the payload for a bookmark-related action.
|
|
138
163
|
*
|
|
164
|
+
* @template T - The type of the bookmark data the payload generator produces.
|
|
139
165
|
* @param fn - The payload generator function to add. It should be of type `PayloadGenerator<T>`, where `T` is the type of the bookmark data.
|
|
140
166
|
* @returns A function that can be called to remove the added payload generator.
|
|
141
167
|
*/
|
|
@@ -169,6 +195,7 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
169
195
|
* @param bookmarkId The unique identifier of the bookmark.
|
|
170
196
|
* @param options An optional object that allows excluding the bookmark payload from the result.
|
|
171
197
|
* @returns An observable that emits the combined result of fetching the bookmark and bookmark data.
|
|
198
|
+
* @throws The error encountered while fetching the bookmark or its data, after logging it.
|
|
172
199
|
*/
|
|
173
200
|
getBookmark<T extends BookmarkData = BookmarkData>(bookmarkId: string, options?: {
|
|
174
201
|
excludePayload?: boolean;
|
|
@@ -176,6 +203,7 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
176
203
|
/**
|
|
177
204
|
* Retrieves a bookmark asynchronously.
|
|
178
205
|
*
|
|
206
|
+
* @template T - The type of the bookmark payload.
|
|
179
207
|
* @param id - The ID of the bookmark to retrieve.
|
|
180
208
|
* @param options - Optional parameters for the retrieval.
|
|
181
209
|
* @param options.excludePayload - Specifies whether to exclude the payload from the bookmark.
|
|
@@ -234,17 +262,15 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
234
262
|
* @param bookmark_or_id - The bookmark or ID to set as the current bookmark.
|
|
235
263
|
* @returns An observable that emits the next bookmark or null.
|
|
236
264
|
* @template T - The type of the bookmark data.
|
|
265
|
+
* @throws {BookmarkProviderError} If the onCurrentBookmarkChange event is canceled by a listener, or resolving the bookmark fails.
|
|
237
266
|
*/
|
|
238
267
|
setCurrentBookmark<T extends BookmarkData = BookmarkData>(bookmark_or_id: Bookmark<T> | string | null): Observable<Bookmark<T> | null>;
|
|
239
268
|
/**
|
|
240
|
-
* Sets the current bookmark.
|
|
241
|
-
* This method dispatches an event to notify listeners of a change in the current bookmark,
|
|
242
|
-
* and then dispatches a request to set the active bookmark in the application state.
|
|
269
|
+
* Sets the current bookmark asynchronously.
|
|
243
270
|
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
* @
|
|
247
|
-
* @returns A subscription to the operation that sets the current bookmark.
|
|
271
|
+
* @template T - The type of the bookmark data.
|
|
272
|
+
* @param bookmark_or_id - The bookmark or ID to set as the current bookmark.
|
|
273
|
+
* @returns A promise that resolves to the next bookmark or null.
|
|
248
274
|
*/
|
|
249
275
|
setCurrentBookmarkAsync<T extends BookmarkData = BookmarkData>(bookmark_or_id: Bookmark<T> | string | null): Promise<Bookmark<T> | null>;
|
|
250
276
|
/**
|
|
@@ -253,12 +279,14 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
253
279
|
* @template T - The type of bookmark data.
|
|
254
280
|
* @param {BookmarkCreateArgs<T>} newBookmarkData - The data for creating the bookmark.
|
|
255
281
|
* @returns {Observable<Bookmark<T>>} - An observable that emits the created bookmark.
|
|
282
|
+
* @throws {BookmarkProviderError} If resolving the bookmark data fails, the onBookmarkCreate event is canceled, the create request fails, or the request times out.
|
|
256
283
|
*/
|
|
257
284
|
createBookmark<T extends BookmarkData = BookmarkData>(newBookmarkData: BookmarkCreateArgs<T>): Observable<Bookmark<T>>;
|
|
258
285
|
/**
|
|
259
286
|
* Asynchronously creates a new bookmark.
|
|
260
287
|
*
|
|
261
|
-
* @
|
|
288
|
+
* @template T - The type of bookmark data.
|
|
289
|
+
* @param args - The data for creating the bookmark.
|
|
262
290
|
* @returns A promise that resolves to the created bookmark with its associated data.
|
|
263
291
|
*/
|
|
264
292
|
createBookmarkAsync<T extends BookmarkData = BookmarkData>(args: BookmarkCreateArgs<T>): Promise<Bookmark<T>>;
|
|
@@ -271,14 +299,18 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
271
299
|
* @param {BookmarkUpdate<T>} [bookmarkUpdates] - The updates to apply to the bookmark.
|
|
272
300
|
* @param {BookmarkUpdateOptions} [options] - The options for updating the bookmark.
|
|
273
301
|
* @returns {Observable<Bookmark<T>>} - An observable that emits the updated bookmark.
|
|
302
|
+
* @throws {BookmarkProviderError} If bookmarkUpdates is omitted while excludePayloadGeneration is set, generating the payload fails, the onBookmarkUpdate event is canceled, the update request fails, or the request times out.
|
|
274
303
|
*/
|
|
275
304
|
updateBookmark<T extends BookmarkData = BookmarkData>(bookmarkId: string, bookmarkUpdates?: BookmarkUpdate<T>, options?: BookmarkUpdateOptions): Observable<Bookmark<T>>;
|
|
276
305
|
/**
|
|
277
306
|
* Updates a bookmark asynchronously.
|
|
278
307
|
*
|
|
279
|
-
* @todo - remove the deprecated
|
|
308
|
+
* @todo TODO(#5140) - remove the deprecated overload accepting a full bookmark in the next major version
|
|
280
309
|
*
|
|
281
|
-
* @
|
|
310
|
+
* @template T - The type of the bookmark data.
|
|
311
|
+
* @param id_or_bookmark - The ID of the bookmark to update, or (deprecated) the full bookmark object.
|
|
312
|
+
* @param updates_or_options - The updates to apply, or (deprecated) the update options when using the bookmark overload.
|
|
313
|
+
* @param options - The options for updating the bookmark.
|
|
282
314
|
* @returns A promise that resolves to the updated bookmark with its associated data.
|
|
283
315
|
*/
|
|
284
316
|
updateBookmarkAsync<T extends BookmarkData = BookmarkData>(id_or_bookmark: string | Bookmark<T>, updates_or_options?: BookmarkUpdate<T> | BookmarkUpdateOptions, options?: BookmarkUpdateOptions): Promise<Bookmark<T>>;
|
|
@@ -299,10 +331,11 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
299
331
|
*/
|
|
300
332
|
deleteBookmarkAsync(bookmarkId: string): Promise<void>;
|
|
301
333
|
/**
|
|
302
|
-
* Adds a bookmark to
|
|
334
|
+
* Adds a bookmark to favorites.
|
|
303
335
|
*
|
|
304
336
|
* @param bookmarkId - The ID of the bookmark to add.
|
|
305
|
-
* @returns
|
|
337
|
+
* @returns An observable that emits the added bookmark, or undefined if it could not be resolved.
|
|
338
|
+
* @throws {BookmarkProviderError} If the onBookmarkFavouriteAdd event is canceled, the add request fails, or the request times out.
|
|
306
339
|
*/
|
|
307
340
|
addBookmarkToFavorites(bookmarkId: string): Observable<BookmarkWithoutData | undefined>;
|
|
308
341
|
/**
|
|
@@ -330,7 +363,8 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
330
363
|
/**
|
|
331
364
|
* Checks if a bookmark is in the favorites.
|
|
332
365
|
* @param bookmarkId - The ID of the bookmark to check.
|
|
333
|
-
* @returns
|
|
366
|
+
* @returns An observable that emits a boolean indicating whether the bookmark is in the favorites.
|
|
367
|
+
* @throws {BookmarkProviderError} If checking the favorite status fails.
|
|
334
368
|
*/
|
|
335
369
|
isBookmarkInFavorites(bookmarkId: string): Observable<boolean>;
|
|
336
370
|
/**
|
|
@@ -340,20 +374,46 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
340
374
|
* @returns A Promise that resolves to a boolean indicating whether the bookmark is in the user's favorites.
|
|
341
375
|
*/
|
|
342
376
|
isBookmarkInFavoritesAsync(bookmarkId: string): Promise<boolean>;
|
|
377
|
+
/**
|
|
378
|
+
* Fetches a single bookmark's metadata (without payload) via the store.
|
|
379
|
+
*
|
|
380
|
+
* @param bookmarkId - The unique identifier of the bookmark to fetch.
|
|
381
|
+
* @param options - Optional settings, including a custom `timeout` in milliseconds.
|
|
382
|
+
* @returns An observable that emits the bookmark's metadata once fetched.
|
|
383
|
+
* @throws {BookmarkProviderError} If the fetch fails or times out.
|
|
384
|
+
*/
|
|
343
385
|
protected _getBookmarkInfo(bookmarkId: string, options?: {
|
|
344
386
|
timeout?: number;
|
|
345
387
|
}): Observable<BookmarkWithoutData>;
|
|
388
|
+
/**
|
|
389
|
+
* Fetches a single bookmark's payload data via the store.
|
|
390
|
+
*
|
|
391
|
+
* @template T - The type of the bookmark payload.
|
|
392
|
+
* @param bookmarkId - The unique identifier of the bookmark whose data to fetch.
|
|
393
|
+
* @param options - Optional settings, including a custom `timeout` in milliseconds.
|
|
394
|
+
* @returns An observable that emits the bookmark's payload data once fetched.
|
|
395
|
+
* @throws {BookmarkProviderError} If the fetch fails or times out.
|
|
396
|
+
*/
|
|
346
397
|
protected _getBookmarkData<T extends BookmarkData = BookmarkData>(bookmarkId: string, options?: {
|
|
347
398
|
timeout?: number;
|
|
348
399
|
}): Observable<T | null>;
|
|
349
400
|
/**
|
|
350
401
|
* Dispatches an event of the specified type with the provided arguments.
|
|
351
402
|
*
|
|
403
|
+
* @template TType - The specific event type key being dispatched.
|
|
352
404
|
* @param type - The type of the event to dispatch.
|
|
353
405
|
* @param args - The arguments to pass to the event.
|
|
354
406
|
* @returns A promise that resolves with the result of the event dispatch.
|
|
355
407
|
*/
|
|
356
408
|
protected _dispatchEvent<TType extends keyof BookmarkProviderEventMap>(type: TType, args: FrameworkEventInitType<BookmarkProviderEventMap[NoInfer<TType>]>): Promise<BookmarkProviderEventMap[NoInfer<TType>]>;
|
|
409
|
+
/**
|
|
410
|
+
* Creates a scoped action reference and a filtered action stream containing only
|
|
411
|
+
* actions tagged with that reference (or the provided `ref`, if given).
|
|
412
|
+
*
|
|
413
|
+
* @template TAction - The specific action type emitted on the scoped stream.
|
|
414
|
+
* @param ref - An existing reference to scope actions to; a new GUID is generated when omitted.
|
|
415
|
+
* @returns An object containing the resolved `ref` and the `action$` stream filtered to it.
|
|
416
|
+
*/
|
|
357
417
|
protected _useScopedActions<TAction extends BookmarkActions>(ref?: string): {
|
|
358
418
|
ref: string;
|
|
359
419
|
action$: Observable<TAction>;
|
|
@@ -362,5 +422,8 @@ export declare class BookmarkProvider implements IBookmarkProvider {
|
|
|
362
422
|
* Disposes the BookmarkProvider.
|
|
363
423
|
*/
|
|
364
424
|
dispose(): void;
|
|
425
|
+
/**
|
|
426
|
+
* Disposes the BookmarkProvider via the `Symbol.dispose` protocol.
|
|
427
|
+
*/
|
|
365
428
|
[Symbol.dispose](): void;
|
|
366
429
|
}
|
|
@@ -2,7 +2,7 @@ import type { Observable, ObservableInput } from 'rxjs';
|
|
|
2
2
|
import type { Bookmark, BookmarkData, BookmarkWithoutData } from './types';
|
|
3
3
|
import type { BookmarkNew, BookmarkUpdate } from './BookmarkClient.interface';
|
|
4
4
|
import type { BookmarkProviderEventMap } from './BookmarkProvider.events';
|
|
5
|
-
import type { BookmarkState } from './
|
|
5
|
+
import type { BookmarkState } from './create-bookmark-store';
|
|
6
6
|
/**
|
|
7
7
|
* Arguments for creating a bookmark via {@link IBookmarkProvider.createBookmark}.
|
|
8
8
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BookmarkFlowError } from './
|
|
2
|
-
import type { BookmarkState } from './
|
|
1
|
+
import type { BookmarkFlowError } from './BookmarkFlowError';
|
|
2
|
+
import type { BookmarkState } from './create-bookmark-store';
|
|
3
3
|
import type { Bookmark, BookmarkData } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Selects all bookmarks from the store state as an array.
|
|
@@ -31,7 +31,7 @@ export declare const activeBookmarkSelector: <T extends BookmarkData>(state: Boo
|
|
|
31
31
|
* @param state - The bookmark state.
|
|
32
32
|
* @returns The status from the bookmark state.
|
|
33
33
|
*/
|
|
34
|
-
export declare const statusSelector: (state: BookmarkState) => BookmarkState[
|
|
34
|
+
export declare const statusSelector: (state: BookmarkState) => BookmarkState['status'];
|
|
35
35
|
/**
|
|
36
36
|
* Selects and returns an array of bookmark flow errors from the state.
|
|
37
37
|
*
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* General-purpose error thrown by {@link BookmarkProvider} methods when a
|
|
3
|
+
* high-level operation (create, update, delete, set current, etc.) fails.
|
|
4
|
+
*
|
|
5
|
+
* Distinct from {@link BookmarkFlowError}, which is scoped to internal
|
|
6
|
+
* store flow pipelines.
|
|
7
|
+
*/
|
|
8
|
+
export declare class BookmarkProviderError extends Error {
|
|
9
|
+
/**
|
|
10
|
+
* Constructs a new `BookmarkProviderError`.
|
|
11
|
+
*
|
|
12
|
+
* @param message - Human-readable error message.
|
|
13
|
+
* @param options - Optional `ErrorOptions` (e.g. `cause`).
|
|
14
|
+
*/
|
|
15
|
+
constructor(message: string, options?: ErrorOptions);
|
|
16
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Action, type ActionTypes } from '@equinor/fusion-observable';
|
|
2
2
|
import type { Bookmark, BookmarkData, BookmarkWithoutData, Bookmarks } from './types';
|
|
3
3
|
import type { BookmarkNew, BookmarkUpdate, BookmarksFilter } from './BookmarkClient.interface';
|
|
4
|
-
import type { BookmarkFlowError } from './
|
|
4
|
+
import type { BookmarkFlowError } from './BookmarkFlowError';
|
|
5
5
|
/**
|
|
6
6
|
* Represents the metadata associated with a bookmark action.
|
|
7
7
|
*/
|
|
@@ -58,10 +58,10 @@ export declare const bookmarkActions: {
|
|
|
58
58
|
ref: string;
|
|
59
59
|
}> & {
|
|
60
60
|
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: {
|
|
61
|
-
type:
|
|
61
|
+
type: 'delete_bookmark' | 'remove_favourite_bookmark';
|
|
62
62
|
bookmarkId: string;
|
|
63
63
|
}, meta: BookmarkActionMeta], {
|
|
64
|
-
type:
|
|
64
|
+
type: 'delete_bookmark' | 'remove_favourite_bookmark';
|
|
65
65
|
bookmarkId: string;
|
|
66
66
|
}, "remove_bookmark::success", never, BookmarkActionMeta>;
|
|
67
67
|
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "remove_bookmark::failure", never, BookmarkActionMeta>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import type { BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { BookmarkState } from '../create-bookmark-store';
|
|
4
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
5
|
+
/**
|
|
6
|
+
* Defines a set of flows that handle various bookmark-related actions, such as fetching, creating, updating, and deleting bookmarks.
|
|
7
|
+
*
|
|
8
|
+
* @param api - An instance of `IBookmarkClient` that provides the necessary API methods for interacting with the bookmark service.
|
|
9
|
+
* @returns A combined flow that handles all the bookmark-related actions.
|
|
10
|
+
*/
|
|
11
|
+
export declare const bookmarkApiFlows: (api: IBookmarkClient) => Flow<BookmarkActions, BookmarkState>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Handles the flow of adding a bookmark as a favorite.
|
|
6
|
+
*
|
|
7
|
+
* @param api - The `IBookmarkClient` API instance to use for interacting with bookmarks.
|
|
8
|
+
* @returns An RxJS `Flow` that handles the `addBookmarkAsFavourite` action.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleAddBookmarkAsFavorite: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a Flow for handling creating bookmarks.
|
|
6
|
+
*
|
|
7
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods for creating bookmarks.
|
|
8
|
+
* @returns A flow that listens for `createBookmark` actions, creates a new bookmark using the provided API.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleCreateBookmark: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a flow for handling deleting bookmarks.
|
|
6
|
+
*
|
|
7
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods for deleting bookmarks.
|
|
8
|
+
* @returns A flow that listens for `deleteBookmark` actions, deletes the bookmark using the provided API.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleDeleteBookmark: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a Flow for handling fetching users bookmarks.
|
|
6
|
+
*
|
|
7
|
+
* @param api - The bookmark API client to use for fetching bookmarks.
|
|
8
|
+
* @returns An observable that emits the result of the bookmark fetch operation.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleFetchAllBookmark: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a flow for handling fetching bookmark data.
|
|
6
|
+
*
|
|
7
|
+
* @param api - The bookmark client API.
|
|
8
|
+
* @returns A flow of bookmark actions.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleFetchBookmarkData: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Handles the fetch bookmark action by making an API request to get the bookmark by its ID.
|
|
6
|
+
*
|
|
7
|
+
* @param api - The bookmark client API.
|
|
8
|
+
* @returns A flow that handles the fetch bookmark action.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleFetchBookmark: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a Flow for handling removing a bookmark from favorites.
|
|
6
|
+
*
|
|
7
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods for managing favorite bookmarks.
|
|
8
|
+
* @returns A flow that listens for `removeBookmarkAsFavorite` actions, removes the bookmark from the user's favorites using the provided API.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleRemoveBookmarkFromFavorites: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a flow for handling bookmark removal.
|
|
6
|
+
*
|
|
7
|
+
* This function observes actions related to deleting a bookmark or removing a bookmark as a favorite, and dispatches the appropriate actions for each case.
|
|
8
|
+
* If the bookmark is currently a favorite, it will dispatch an action to remove it as a favorite.
|
|
9
|
+
* If the bookmark is not a favorite, it will dispatch an action to delete it.
|
|
10
|
+
*
|
|
11
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods checking if bookmarks are favorites.
|
|
12
|
+
* @returns A flow that handles the removal of a bookmark.
|
|
13
|
+
*/
|
|
14
|
+
export declare const handleRemoveBookmark: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Flow } from '@equinor/fusion-observable';
|
|
2
|
+
import { type BookmarkActions } from '../bookmark-actions';
|
|
3
|
+
import type { IBookmarkClient } from '../BookmarkClient.interface';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a Flow for handling updating bookmarks.
|
|
6
|
+
*
|
|
7
|
+
* @param api - An instance of the `IBookmarkClient` interface, which provides the necessary API methods for updating bookmarks.
|
|
8
|
+
* @returns A flow that listens for `updateBookmark` actions, updates the bookmark using the provided API.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleUpdateBookmark: (api: IBookmarkClient) => Flow<BookmarkActions>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { handleFetchBookmark } from './handle-fetch-bookmark';
|
|
2
|
+
export { handleFetchBookmarkData } from './handle-fetch-bookmark-data';
|
|
3
|
+
export { handleFetchAllBookmark } from './handle-fetch-all-bookmark';
|
|
4
|
+
export { handleCreateBookmark } from './handle-create-bookmark';
|
|
5
|
+
export { handleUpdateBookmark } from './handle-update-bookmark';
|
|
6
|
+
export { handleDeleteBookmark } from './handle-delete-bookmark';
|
|
7
|
+
export { handleRemoveBookmark } from './handle-remove-bookmark';
|
|
8
|
+
export { handleRemoveBookmarkFromFavorites } from './handle-remove-bookmark-from-favorites';
|
|
9
|
+
export { handleAddBookmarkAsFavorite } from './handle-add-bookmark-as-favorite';
|
|
10
|
+
export { bookmarkApiFlows } from './bookmark-api-flows';
|
|
@@ -3,7 +3,7 @@ import type { EventModule } from '@equinor/fusion-framework-module-event';
|
|
|
3
3
|
import type { ServicesModule } from '@equinor/fusion-framework-module-services';
|
|
4
4
|
import type { AppModule } from '@equinor/fusion-framework-module-app';
|
|
5
5
|
import type { ContextModule } from '@equinor/fusion-framework-module-context';
|
|
6
|
-
import { BookmarkModuleConfigurator } from './
|
|
6
|
+
import { BookmarkModuleConfigurator } from './BookmarkModuleConfigurator';
|
|
7
7
|
import type { IBookmarkProvider } from './BookmarkProvider.interface';
|
|
8
8
|
/** String literal key used to register the bookmark module in the framework. */
|
|
9
9
|
export type BookmarkModuleKey = 'bookmark';
|