@equinor/fusion-framework-module-bookmark 1.2.13 → 2.0.0

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.
Files changed (113) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +242 -9
  3. package/dist/esm/BookmarkClient.interface.js +2 -0
  4. package/dist/esm/BookmarkClient.interface.js.map +1 -0
  5. package/dist/esm/BookmarkClient.js +174 -0
  6. package/dist/esm/BookmarkClient.js.map +1 -0
  7. package/dist/esm/BookmarkConfigurator.js +348 -0
  8. package/dist/esm/BookmarkConfigurator.js.map +1 -0
  9. package/dist/esm/BookmarkProvider.actions.js +60 -0
  10. package/dist/esm/BookmarkProvider.actions.js.map +1 -0
  11. package/dist/esm/BookmarkProvider.error.js +14 -0
  12. package/dist/esm/BookmarkProvider.error.js.map +1 -0
  13. package/dist/esm/BookmarkProvider.events.js +2 -0
  14. package/dist/esm/BookmarkProvider.events.js.map +1 -0
  15. package/dist/esm/BookmarkProvider.flows.js +219 -0
  16. package/dist/esm/BookmarkProvider.flows.js.map +1 -0
  17. package/dist/esm/BookmarkProvider.js +937 -0
  18. package/dist/esm/BookmarkProvider.js.map +1 -0
  19. package/dist/esm/BookmarkProvider.reducer.js +125 -0
  20. package/dist/esm/BookmarkProvider.reducer.js.map +1 -0
  21. package/dist/esm/BookmarkProvider.selectors.js +43 -0
  22. package/dist/esm/BookmarkProvider.selectors.js.map +1 -0
  23. package/dist/esm/BookmarkProvider.store.js +19 -0
  24. package/dist/esm/BookmarkProvider.store.js.map +1 -0
  25. package/dist/esm/bookmark-config.schema.js +30 -0
  26. package/dist/esm/bookmark-config.schema.js.map +1 -0
  27. package/dist/esm/bookmark-module.js +53 -0
  28. package/dist/esm/bookmark-module.js.map +1 -0
  29. package/dist/esm/bookmark.schemas.js +38 -0
  30. package/dist/esm/bookmark.schemas.js.map +1 -0
  31. package/dist/esm/enable-bookmark.js +20 -7
  32. package/dist/esm/enable-bookmark.js.map +1 -1
  33. package/dist/esm/index.js +3 -3
  34. package/dist/esm/index.js.map +1 -1
  35. package/dist/esm/version.js +1 -1
  36. package/dist/esm/version.js.map +1 -1
  37. package/dist/tsconfig.tsbuildinfo +1 -1
  38. package/dist/types/BookmarkClient.d.ts +42 -0
  39. package/dist/types/BookmarkClient.interface.d.ts +139 -0
  40. package/dist/types/BookmarkConfigurator.d.ts +100 -0
  41. package/dist/types/BookmarkProvider.actions.d.ts +525 -0
  42. package/dist/types/BookmarkProvider.d.ts +462 -0
  43. package/dist/types/BookmarkProvider.error.d.ts +9 -0
  44. package/dist/types/BookmarkProvider.events.d.ts +78 -0
  45. package/dist/types/BookmarkProvider.flows.d.ts +79 -0
  46. package/dist/types/BookmarkProvider.reducer.d.ts +302 -0
  47. package/dist/types/BookmarkProvider.selectors.d.ts +34 -0
  48. package/dist/types/BookmarkProvider.store.d.ts +30 -0
  49. package/dist/types/bookmark-config.schema.d.ts +118 -0
  50. package/dist/types/{module.d.ts → bookmark-module.d.ts} +3 -3
  51. package/dist/types/bookmark.schemas.d.ts +760 -0
  52. package/dist/types/enable-bookmark.d.ts +7 -6
  53. package/dist/types/index.d.ts +4 -3
  54. package/dist/types/types.d.ts +29 -65
  55. package/dist/types/version.d.ts +1 -1
  56. package/package.json +11 -5
  57. package/src/BookmarkClient.interface.ts +157 -0
  58. package/src/BookmarkClient.ts +226 -0
  59. package/src/BookmarkConfigurator.ts +374 -0
  60. package/src/BookmarkProvider.actions.ts +131 -0
  61. package/src/BookmarkProvider.error.ts +21 -0
  62. package/src/BookmarkProvider.events.ts +89 -0
  63. package/src/BookmarkProvider.flows.ts +426 -0
  64. package/src/BookmarkProvider.reducer.ts +141 -0
  65. package/src/BookmarkProvider.selectors.ts +55 -0
  66. package/src/BookmarkProvider.store.ts +52 -0
  67. package/src/BookmarkProvider.ts +1308 -0
  68. package/src/bookmark-config.schema.ts +41 -0
  69. package/src/bookmark-module.ts +70 -0
  70. package/src/bookmark.schemas.ts +50 -0
  71. package/src/enable-bookmark.ts +13 -20
  72. package/src/index.ts +15 -7
  73. package/src/types.ts +46 -73
  74. package/src/version.ts +1 -1
  75. package/dist/esm/bookmark-config-builder.js +0 -131
  76. package/dist/esm/bookmark-config-builder.js.map +0 -1
  77. package/dist/esm/bookmark-provider.js +0 -155
  78. package/dist/esm/bookmark-provider.js.map +0 -1
  79. package/dist/esm/client/bookmarkActions.js +0 -10
  80. package/dist/esm/client/bookmarkActions.js.map +0 -1
  81. package/dist/esm/client/bookmarkClient.js +0 -259
  82. package/dist/esm/client/bookmarkClient.js.map +0 -1
  83. package/dist/esm/client/bookmarkFlows.js +0 -31
  84. package/dist/esm/client/bookmarkFlows.js.map +0 -1
  85. package/dist/esm/client/bookmarkReducer.js +0 -29
  86. package/dist/esm/client/bookmarkReducer.js.map +0 -1
  87. package/dist/esm/configurator.js +0 -155
  88. package/dist/esm/configurator.js.map +0 -1
  89. package/dist/esm/module.js +0 -27
  90. package/dist/esm/module.js.map +0 -1
  91. package/dist/esm/utils/handle-url.js +0 -11
  92. package/dist/esm/utils/handle-url.js.map +0 -1
  93. package/dist/esm/utils/index.js +0 -2
  94. package/dist/esm/utils/index.js.map +0 -1
  95. package/dist/types/bookmark-config-builder.d.ts +0 -85
  96. package/dist/types/bookmark-provider.d.ts +0 -169
  97. package/dist/types/client/bookmarkActions.d.ts +0 -27
  98. package/dist/types/client/bookmarkClient.d.ts +0 -53
  99. package/dist/types/client/bookmarkFlows.d.ts +0 -22
  100. package/dist/types/client/bookmarkReducer.d.ts +0 -5
  101. package/dist/types/configurator.d.ts +0 -75
  102. package/dist/types/utils/handle-url.d.ts +0 -2
  103. package/dist/types/utils/index.d.ts +0 -1
  104. package/src/bookmark-config-builder.ts +0 -177
  105. package/src/bookmark-provider.ts +0 -344
  106. package/src/client/bookmarkActions.ts +0 -44
  107. package/src/client/bookmarkClient.ts +0 -327
  108. package/src/client/bookmarkFlows.ts +0 -67
  109. package/src/client/bookmarkReducer.ts +0 -35
  110. package/src/configurator.ts +0 -235
  111. package/src/module.ts +0 -40
  112. package/src/utils/handle-url.ts +0 -13
  113. package/src/utils/index.ts +0 -1
@@ -0,0 +1,302 @@
1
+ import { type BookmarkState } from './BookmarkProvider.store';
2
+ import { BookmarkFlowError } from './BookmarkProvider.error';
3
+ /**
4
+ * Creates a reducer for managing the state of bookmarks.
5
+ *
6
+ * @todo add fast-deep-equal to compare bookmarks
7
+ *
8
+ * @param initialState - The initial state of the bookmarks.
9
+ * @returns A reducer function for managing the bookmarks state.
10
+ */
11
+ export declare const createBookmarkReducer: (initialState?: Partial<BookmarkState>) => import("@equinor/fusion-observable").ReducerWithInitialState<BookmarkState, {
12
+ payload: import("@equinor/fusion-observable").Action;
13
+ type: "action_aborted";
14
+ } | {
15
+ payload: {
16
+ name: string;
17
+ id: string;
18
+ appKey: string;
19
+ created: Date;
20
+ createdBy: {
21
+ azureUniqueId: string;
22
+ name: string;
23
+ mail?: string | undefined;
24
+ phoneNumber?: string | undefined;
25
+ jobTitle?: string | undefined;
26
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
27
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
28
+ };
29
+ description?: string | undefined;
30
+ isShared?: boolean | undefined;
31
+ updated?: Date | undefined;
32
+ updatedBy?: {
33
+ azureUniqueId: string;
34
+ name: string;
35
+ mail?: string | undefined;
36
+ phoneNumber?: string | undefined;
37
+ jobTitle?: string | undefined;
38
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
39
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
40
+ } | undefined;
41
+ context?: {
42
+ id: string;
43
+ name?: string | undefined;
44
+ type?: string | undefined;
45
+ } | undefined;
46
+ sourceSystem?: {
47
+ identifier: string;
48
+ name?: string | undefined;
49
+ subSystem?: string | undefined;
50
+ } | undefined;
51
+ };
52
+ type: "update_bookmark";
53
+ } | {
54
+ payload: {
55
+ name: string;
56
+ id: string;
57
+ appKey: string;
58
+ created: Date;
59
+ createdBy: {
60
+ azureUniqueId: string;
61
+ name: string;
62
+ mail?: string | undefined;
63
+ phoneNumber?: string | undefined;
64
+ jobTitle?: string | undefined;
65
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
66
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
67
+ };
68
+ description?: string | undefined;
69
+ isShared?: boolean | undefined;
70
+ updated?: Date | undefined;
71
+ updatedBy?: {
72
+ azureUniqueId: string;
73
+ name: string;
74
+ mail?: string | undefined;
75
+ phoneNumber?: string | undefined;
76
+ jobTitle?: string | undefined;
77
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
78
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
79
+ } | undefined;
80
+ context?: {
81
+ id: string;
82
+ name?: string | undefined;
83
+ type?: string | undefined;
84
+ } | undefined;
85
+ sourceSystem?: {
86
+ identifier: string;
87
+ name?: string | undefined;
88
+ subSystem?: string | undefined;
89
+ } | undefined;
90
+ payload?: any;
91
+ } | null;
92
+ type: "set_current_bookmark";
93
+ } | import("@equinor/fusion-observable").PayloadAction<string, "fetch_bookmark::request", {
94
+ ref: string;
95
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<string, "fetch_bookmark_payload::request", {
96
+ ref: string;
97
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<import("./BookmarkClient.interface").BookmarksFilter | undefined, "fetch_bookmarks::request", {
98
+ ref: string;
99
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<{
100
+ bookmarkId: string;
101
+ updates: import("./BookmarkClient.interface").BookmarkUpdate;
102
+ }, "update_bookmark::request", {
103
+ ref: string;
104
+ }, never> | import("@equinor/fusion-observable").PayloadAction<import("./BookmarkClient.interface").BookmarkNew, "create_bookmark::request", {
105
+ ref: string;
106
+ }, never> | import("@equinor/fusion-observable").PayloadAction<string, "delete_bookmark::request", {
107
+ ref: string;
108
+ }, never> | import("@equinor/fusion-observable").PayloadAction<string, "remove_bookmark::request", {
109
+ ref: string;
110
+ }, never> | import("@equinor/fusion-observable").PayloadAction<string, "add_favourite_bookmark::request", {
111
+ ref: string;
112
+ }, never> | import("@equinor/fusion-observable").PayloadAction<string, "remove_favourite_bookmark::request", {
113
+ ref: string;
114
+ }, never> | import("@equinor/fusion-observable").PayloadAction<{
115
+ name: string;
116
+ id: string;
117
+ appKey: string;
118
+ created: Date;
119
+ createdBy: {
120
+ azureUniqueId: string;
121
+ name: string;
122
+ mail?: string | undefined;
123
+ phoneNumber?: string | undefined;
124
+ jobTitle?: string | undefined;
125
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
126
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
127
+ };
128
+ description?: string | undefined;
129
+ isShared?: boolean | undefined;
130
+ updated?: Date | undefined;
131
+ updatedBy?: {
132
+ azureUniqueId: string;
133
+ name: string;
134
+ mail?: string | undefined;
135
+ phoneNumber?: string | undefined;
136
+ jobTitle?: string | undefined;
137
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
138
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
139
+ } | undefined;
140
+ context?: {
141
+ id: string;
142
+ name?: string | undefined;
143
+ type?: string | undefined;
144
+ } | undefined;
145
+ sourceSystem?: {
146
+ identifier: string;
147
+ name?: string | undefined;
148
+ subSystem?: string | undefined;
149
+ } | undefined;
150
+ }, "fetch_bookmark::success", {
151
+ ref: string;
152
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "fetch_bookmark::failure", {
153
+ ref: string;
154
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<{
155
+ bookmarkId: string;
156
+ data: import("./types").BookmarkData;
157
+ }, "fetch_bookmark_payload::success", {
158
+ ref: string;
159
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "fetch_bookmark_payload::failure", {
160
+ ref: string;
161
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<{
162
+ name: string;
163
+ id: string;
164
+ appKey: string;
165
+ created: Date;
166
+ createdBy: {
167
+ azureUniqueId: string;
168
+ name: string;
169
+ mail?: string | undefined;
170
+ phoneNumber?: string | undefined;
171
+ jobTitle?: string | undefined;
172
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
173
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
174
+ };
175
+ description?: string | undefined;
176
+ isShared?: boolean | undefined;
177
+ updated?: Date | undefined;
178
+ updatedBy?: {
179
+ azureUniqueId: string;
180
+ name: string;
181
+ mail?: string | undefined;
182
+ phoneNumber?: string | undefined;
183
+ jobTitle?: string | undefined;
184
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
185
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
186
+ } | undefined;
187
+ context?: {
188
+ id: string;
189
+ name?: string | undefined;
190
+ type?: string | undefined;
191
+ } | undefined;
192
+ sourceSystem?: {
193
+ identifier: string;
194
+ name?: string | undefined;
195
+ subSystem?: string | undefined;
196
+ } | undefined;
197
+ }[], "fetch_bookmarks::success", {
198
+ ref: string;
199
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "fetch_bookmarks::failure", {
200
+ ref: string;
201
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<{
202
+ name: string;
203
+ id: string;
204
+ appKey: string;
205
+ created: Date;
206
+ createdBy: {
207
+ azureUniqueId: string;
208
+ name: string;
209
+ mail?: string | undefined;
210
+ phoneNumber?: string | undefined;
211
+ jobTitle?: string | undefined;
212
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
213
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
214
+ };
215
+ description?: string | undefined;
216
+ isShared?: boolean | undefined;
217
+ updated?: Date | undefined;
218
+ updatedBy?: {
219
+ azureUniqueId: string;
220
+ name: string;
221
+ mail?: string | undefined;
222
+ phoneNumber?: string | undefined;
223
+ jobTitle?: string | undefined;
224
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
225
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
226
+ } | undefined;
227
+ context?: {
228
+ id: string;
229
+ name?: string | undefined;
230
+ type?: string | undefined;
231
+ } | undefined;
232
+ sourceSystem?: {
233
+ identifier: string;
234
+ name?: string | undefined;
235
+ subSystem?: string | undefined;
236
+ } | undefined;
237
+ payload?: any;
238
+ }, "update_bookmark::success", {
239
+ ref: string;
240
+ }, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "update_bookmark::failure", {
241
+ ref: string;
242
+ }, never> | import("@equinor/fusion-observable").PayloadAction<{
243
+ name: string;
244
+ id: string;
245
+ appKey: string;
246
+ created: Date;
247
+ createdBy: {
248
+ azureUniqueId: string;
249
+ name: string;
250
+ mail?: string | undefined;
251
+ phoneNumber?: string | undefined;
252
+ jobTitle?: string | undefined;
253
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
254
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
255
+ };
256
+ description?: string | undefined;
257
+ isShared?: boolean | undefined;
258
+ updated?: Date | undefined;
259
+ updatedBy?: {
260
+ azureUniqueId: string;
261
+ name: string;
262
+ mail?: string | undefined;
263
+ phoneNumber?: string | undefined;
264
+ jobTitle?: string | undefined;
265
+ accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
266
+ accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
267
+ } | undefined;
268
+ context?: {
269
+ id: string;
270
+ name?: string | undefined;
271
+ type?: string | undefined;
272
+ } | undefined;
273
+ sourceSystem?: {
274
+ identifier: string;
275
+ name?: string | undefined;
276
+ subSystem?: string | undefined;
277
+ } | undefined;
278
+ payload?: any;
279
+ }, "create_bookmark::success", {
280
+ ref: string;
281
+ }, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "create_bookmark::failure", {
282
+ ref: string;
283
+ }, never> | import("@equinor/fusion-observable").PayloadAction<string, "delete_bookmark::success", {
284
+ ref: string;
285
+ }, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "delete_bookmark::failure", {
286
+ ref: string;
287
+ }, never> | import("@equinor/fusion-observable").PayloadAction<{
288
+ type: "delete_bookmark" | "remove_favourite_bookmark";
289
+ bookmarkId: string;
290
+ }, "remove_bookmark::success", {
291
+ ref: string;
292
+ }, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "remove_bookmark::failure", {
293
+ ref: string;
294
+ }, never> | import("@equinor/fusion-observable").PayloadAction<string, "add_favourite_bookmark::success", {
295
+ ref: string;
296
+ }, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "add_favourite_bookmark::failure", {
297
+ ref: string;
298
+ }, never> | import("@equinor/fusion-observable").PayloadAction<string, "remove_favourite_bookmark::success", {
299
+ ref: string;
300
+ }, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "remove_favourite_bookmark::failure", {
301
+ ref: string;
302
+ }, never>>;
@@ -0,0 +1,34 @@
1
+ import { BookmarkFlowError } from './BookmarkProvider.error';
2
+ import { BookmarkState } from './BookmarkProvider.store';
3
+ import type { Bookmark, BookmarkData } from './types';
4
+ /**
5
+ * Selects all bookmarks from the application state.
6
+ */
7
+ export declare const bookmarksSelector: (state: BookmarkState) => Bookmark[];
8
+ /**
9
+ * Retrieves a bookmark from the state by its ID.
10
+ */
11
+ export declare const bookmarkSelector: <T extends BookmarkData>(state: BookmarkState, id: string) => Bookmark<T> | undefined;
12
+ /**
13
+ * Selects the active bookmark from the bookmark state.
14
+ *
15
+ * if there is an active bookmark, the function returns the bookmark data.
16
+ *
17
+ * if there is no active bookmark, the function returns null.
18
+ * if the active bookmark was never set, the function returns undefined.
19
+ */
20
+ export declare const activeBookmarkSelector: <T extends BookmarkData>(state: BookmarkState) => Bookmark<T> | null;
21
+ /**
22
+ * Selects the status from the bookmark state.
23
+ *
24
+ * @param state - The bookmark state.
25
+ * @returns The status from the bookmark state.
26
+ */
27
+ export declare const statusSelector: (state: BookmarkState) => BookmarkState["status"];
28
+ /**
29
+ * Selects and returns an array of bookmark flow errors from the state.
30
+ *
31
+ * @param state - The bookmark state.
32
+ * @returns An array of bookmark flow errors.
33
+ */
34
+ export declare const errorsSelector: (state: BookmarkState) => Array<BookmarkFlowError>;
@@ -0,0 +1,30 @@
1
+ import { FlowSubject, type ActionBaseType } from '@equinor/fusion-observable';
2
+ import { type BookmarkActions } from './BookmarkProvider.actions';
3
+ import { type BookmarkFlowError } from './BookmarkProvider.error';
4
+ import type { IBookmarkClient } from './BookmarkClient.interface';
5
+ import type { Bookmark, BookmarkWithoutData } from './types';
6
+ /**
7
+ * Represents the state of the BookmarkProvider store.
8
+ */
9
+ export type BookmarkState = {
10
+ status: Set<ActionBaseType<BookmarkActions>>;
11
+ errors: Record<ActionBaseType<BookmarkActions>, BookmarkFlowError>;
12
+ currentBookmark?: Bookmark | null;
13
+ bookmarks: Record<string, BookmarkWithoutData>;
14
+ };
15
+ /**
16
+ * Represents the store for bookmarks, which is a flow subject that manages the state and actions for bookmarks.
17
+ */
18
+ export type BookmarkStore = FlowSubject<BookmarkState, BookmarkActions>;
19
+ /**
20
+ * Creates a new BookmarkStore instance with the provided initial state and client.
21
+ *
22
+ * @param args - An object containing the initial state and client for the bookmark store.
23
+ * @param args.initial - The initial state for the bookmark store.
24
+ * @param args.client - The IBookmarkClient instance to bookmark store flows.
25
+ * @returns A new BookmarkStore instance.
26
+ */
27
+ export declare const createBookmarkStore: (args: {
28
+ initial?: Partial<BookmarkState>;
29
+ client: IBookmarkClient;
30
+ }) => BookmarkStore;
@@ -0,0 +1,118 @@
1
+ import { z } from 'zod';
2
+ import { LogLevel, type ILogger } from '@equinor/fusion-log';
3
+ import type { IEventModuleProvider } from '@equinor/fusion-framework-module-event';
4
+ import type { BookmarkProvider } from './BookmarkProvider';
5
+ import type { IBookmarkClient } from './BookmarkClient.interface';
6
+ export declare const bookmarkConfigSchema: z.ZodObject<{
7
+ log: z.ZodOptional<z.ZodType<ILogger, z.ZodTypeDef, ILogger>>;
8
+ logLevel: z.ZodOptional<z.ZodNativeEnum<typeof LogLevel>>;
9
+ eventProvider: z.ZodOptional<z.ZodType<IEventModuleProvider, z.ZodTypeDef, IEventModuleProvider>>;
10
+ sourceSystem: z.ZodOptional<z.ZodObject<{
11
+ identifier: z.ZodString;
12
+ name: z.ZodOptional<z.ZodString>;
13
+ subSystem: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ identifier: string;
16
+ name?: string | undefined;
17
+ subSystem?: string | undefined;
18
+ }, {
19
+ identifier: string;
20
+ name?: string | undefined;
21
+ subSystem?: string | undefined;
22
+ }>>;
23
+ parent: z.ZodNullable<z.ZodOptional<z.ZodType<BookmarkProvider, z.ZodTypeDef, BookmarkProvider>>>;
24
+ client: z.ZodType<IBookmarkClient, z.ZodTypeDef, IBookmarkClient>;
25
+ resolve: z.ZodObject<{
26
+ context: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodOptional<z.ZodObject<{
27
+ id: z.ZodString;
28
+ }, "strip", z.ZodTypeAny, {
29
+ id: string;
30
+ }, {
31
+ id: string;
32
+ }>>>>;
33
+ application: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodOptional<z.ZodObject<{
34
+ appKey: z.ZodString;
35
+ name: z.ZodOptional<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ appKey: string;
38
+ name?: string | undefined;
39
+ }, {
40
+ appKey: string;
41
+ name?: string | undefined;
42
+ }>>>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ context: (...args: unknown[]) => Promise<{
45
+ id: string;
46
+ } | undefined>;
47
+ application: (...args: unknown[]) => Promise<{
48
+ appKey: string;
49
+ name?: string | undefined;
50
+ } | undefined>;
51
+ }, {
52
+ context: (...args: unknown[]) => Promise<{
53
+ id: string;
54
+ } | undefined>;
55
+ application: (...args: unknown[]) => Promise<{
56
+ appKey: string;
57
+ name?: string | undefined;
58
+ } | undefined>;
59
+ }>;
60
+ filters: z.ZodDefault<z.ZodOptional<z.ZodObject<{
61
+ context: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
62
+ application: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ context: boolean;
65
+ application: boolean;
66
+ }, {
67
+ context?: boolean | undefined;
68
+ application?: boolean | undefined;
69
+ }>>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ client: IBookmarkClient;
72
+ resolve: {
73
+ context: (...args: unknown[]) => Promise<{
74
+ id: string;
75
+ } | undefined>;
76
+ application: (...args: unknown[]) => Promise<{
77
+ appKey: string;
78
+ name?: string | undefined;
79
+ } | undefined>;
80
+ };
81
+ filters: {
82
+ context: boolean;
83
+ application: boolean;
84
+ };
85
+ sourceSystem?: {
86
+ identifier: string;
87
+ name?: string | undefined;
88
+ subSystem?: string | undefined;
89
+ } | undefined;
90
+ log?: ILogger | undefined;
91
+ logLevel?: LogLevel | undefined;
92
+ eventProvider?: IEventModuleProvider | undefined;
93
+ parent?: BookmarkProvider | null | undefined;
94
+ }, {
95
+ client: IBookmarkClient;
96
+ resolve: {
97
+ context: (...args: unknown[]) => Promise<{
98
+ id: string;
99
+ } | undefined>;
100
+ application: (...args: unknown[]) => Promise<{
101
+ appKey: string;
102
+ name?: string | undefined;
103
+ } | undefined>;
104
+ };
105
+ sourceSystem?: {
106
+ identifier: string;
107
+ name?: string | undefined;
108
+ subSystem?: string | undefined;
109
+ } | undefined;
110
+ log?: ILogger | undefined;
111
+ logLevel?: LogLevel | undefined;
112
+ eventProvider?: IEventModuleProvider | undefined;
113
+ parent?: BookmarkProvider | null | undefined;
114
+ filters?: {
115
+ context?: boolean | undefined;
116
+ application?: boolean | undefined;
117
+ } | undefined;
118
+ }>;
@@ -3,11 +3,11 @@ import { EventModule } from '@equinor/fusion-framework-module-event';
3
3
  import { ServicesModule } from '@equinor/fusion-framework-module-services';
4
4
  import { AppModule } from '@equinor/fusion-framework-module-app';
5
5
  import { ContextModule } from '@equinor/fusion-framework-module-context';
6
- import { IBookmarkModuleProvider } from './bookmark-provider';
7
- import { IBookmarkModuleConfigurator } from './configurator';
6
+ import { BookmarkProvider } from './BookmarkProvider';
7
+ import { BookmarkModuleConfigurator } from './BookmarkConfigurator';
8
8
  export type BookmarkModuleKey = 'bookmark';
9
9
  export declare const moduleKey: BookmarkModuleKey;
10
- export type BookmarkModule = Module<BookmarkModuleKey, IBookmarkModuleProvider, IBookmarkModuleConfigurator, [
10
+ export type BookmarkModule = Module<BookmarkModuleKey, BookmarkProvider, BookmarkModuleConfigurator, [
11
11
  EventModule,
12
12
  ServicesModule,
13
13
  AppModule,