@equinor/fusion-framework-module-bookmark 2.1.14 → 2.2.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.
@@ -17,7 +17,7 @@ import type { Bookmark, BookmarkData, BookmarkWithoutData } from './types';
17
17
  *
18
18
  * Fetching single and all bookmarks will use Query from '@equinor/fusion-query' to cache the results.
19
19
  *
20
- * @note if you wish to implement your own bookmarks API client, you can do so by implementing the {@link IBookmarkClient} interface.
20
+ * @remarks if you wish to implement your own bookmarks API client, you can do so by implementing the {@link IBookmarkClient} interface.
21
21
  */
22
22
  export declare class BookmarkClient implements IBookmarkClient {
23
23
  #private;
@@ -1,5 +1,5 @@
1
1
  import { type Action, type ActionTypes } from '@equinor/fusion-observable';
2
- import type { BookmarkData } from './types';
2
+ import type { Bookmark, BookmarkData } from './types';
3
3
  import type { BookmarkNew, BookmarkUpdate, BookmarksFilter } from './BookmarkClient.interface';
4
4
  import type { BookmarkFlowError } from './BookmarkProvider.error';
5
5
  /**
@@ -72,65 +72,7 @@ export declare const bookmarkActions: {
72
72
  subSystem?: string | null | undefined;
73
73
  } | null | undefined;
74
74
  }, "set_bookmark", never, never>;
75
- setCurrentBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmark: {
76
- id: string;
77
- name: string;
78
- appKey: string;
79
- created: Date;
80
- createdBy: {
81
- id: string;
82
- name: string;
83
- mail?: string | undefined;
84
- };
85
- description?: string | undefined;
86
- isShared?: boolean | undefined;
87
- updated?: Date | undefined;
88
- updatedBy?: {
89
- id: string;
90
- name: string;
91
- mail?: string | undefined;
92
- } | undefined;
93
- context?: {
94
- id: string;
95
- name?: string | undefined;
96
- type?: string | undefined;
97
- } | undefined;
98
- sourceSystem?: {
99
- identifier: string;
100
- name?: string | null | undefined;
101
- subSystem?: string | null | undefined;
102
- } | null | undefined;
103
- payload?: any;
104
- } | null], {
105
- id: string;
106
- name: string;
107
- appKey: string;
108
- created: Date;
109
- createdBy: {
110
- id: string;
111
- name: string;
112
- mail?: string | undefined;
113
- };
114
- description?: string | undefined;
115
- isShared?: boolean | undefined;
116
- updated?: Date | undefined;
117
- updatedBy?: {
118
- id: string;
119
- name: string;
120
- mail?: string | undefined;
121
- } | undefined;
122
- context?: {
123
- id: string;
124
- name?: string | undefined;
125
- type?: string | undefined;
126
- } | undefined;
127
- sourceSystem?: {
128
- identifier: string;
129
- name?: string | null | undefined;
130
- subSystem?: string | null | undefined;
131
- } | null | undefined;
132
- payload?: any;
133
- } | null, "set_current_bookmark", never, never>;
75
+ setCurrentBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmark: Bookmark | null], Bookmark | null, "set_current_bookmark", never, never>;
134
76
  fetchBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "fetch_bookmark::request", never, BookmarkActionMeta | undefined> & {
135
77
  success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmark: {
136
78
  id: string;
@@ -265,127 +207,11 @@ export declare const bookmarkActions: {
265
207
  bookmarkId: string;
266
208
  updates: BookmarkUpdate;
267
209
  }, "set_bookmark::request", never, BookmarkActionMeta> & {
268
- success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: {
269
- id: string;
270
- name: string;
271
- appKey: string;
272
- created: Date;
273
- createdBy: {
274
- id: string;
275
- name: string;
276
- mail?: string | undefined;
277
- };
278
- description?: string | undefined;
279
- isShared?: boolean | undefined;
280
- updated?: Date | undefined;
281
- updatedBy?: {
282
- id: string;
283
- name: string;
284
- mail?: string | undefined;
285
- } | undefined;
286
- context?: {
287
- id: string;
288
- name?: string | undefined;
289
- type?: string | undefined;
290
- } | undefined;
291
- sourceSystem?: {
292
- identifier: string;
293
- name?: string | null | undefined;
294
- subSystem?: string | null | undefined;
295
- } | null | undefined;
296
- payload?: any;
297
- }, meta: BookmarkActionMeta], {
298
- id: string;
299
- name: string;
300
- appKey: string;
301
- created: Date;
302
- createdBy: {
303
- id: string;
304
- name: string;
305
- mail?: string | undefined;
306
- };
307
- description?: string | undefined;
308
- isShared?: boolean | undefined;
309
- updated?: Date | undefined;
310
- updatedBy?: {
311
- id: string;
312
- name: string;
313
- mail?: string | undefined;
314
- } | undefined;
315
- context?: {
316
- id: string;
317
- name?: string | undefined;
318
- type?: string | undefined;
319
- } | undefined;
320
- sourceSystem?: {
321
- identifier: string;
322
- name?: string | null | undefined;
323
- subSystem?: string | null | undefined;
324
- } | null | undefined;
325
- payload?: any;
326
- }, "set_bookmark::success", never, BookmarkActionMeta>;
210
+ success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: Bookmark, meta: BookmarkActionMeta], Bookmark, "set_bookmark::success", never, BookmarkActionMeta>;
327
211
  failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "set_bookmark::failure", never, BookmarkActionMeta>;
328
212
  };
329
213
  createBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkNew, meta: BookmarkActionMeta], BookmarkNew, "create_bookmark::request", never, BookmarkActionMeta> & {
330
- success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: {
331
- id: string;
332
- name: string;
333
- appKey: string;
334
- created: Date;
335
- createdBy: {
336
- id: string;
337
- name: string;
338
- mail?: string | undefined;
339
- };
340
- description?: string | undefined;
341
- isShared?: boolean | undefined;
342
- updated?: Date | undefined;
343
- updatedBy?: {
344
- id: string;
345
- name: string;
346
- mail?: string | undefined;
347
- } | undefined;
348
- context?: {
349
- id: string;
350
- name?: string | undefined;
351
- type?: string | undefined;
352
- } | undefined;
353
- sourceSystem?: {
354
- identifier: string;
355
- name?: string | null | undefined;
356
- subSystem?: string | null | undefined;
357
- } | null | undefined;
358
- payload?: any;
359
- }, meta: BookmarkActionMeta], {
360
- id: string;
361
- name: string;
362
- appKey: string;
363
- created: Date;
364
- createdBy: {
365
- id: string;
366
- name: string;
367
- mail?: string | undefined;
368
- };
369
- description?: string | undefined;
370
- isShared?: boolean | undefined;
371
- updated?: Date | undefined;
372
- updatedBy?: {
373
- id: string;
374
- name: string;
375
- mail?: string | undefined;
376
- } | undefined;
377
- context?: {
378
- id: string;
379
- name?: string | undefined;
380
- type?: string | undefined;
381
- } | undefined;
382
- sourceSystem?: {
383
- identifier: string;
384
- name?: string | null | undefined;
385
- subSystem?: string | null | undefined;
386
- } | null | undefined;
387
- payload?: any;
388
- }, "create_bookmark::success", never, BookmarkActionMeta>;
214
+ success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: Bookmark, meta: BookmarkActionMeta], Bookmark, "create_bookmark::success", never, BookmarkActionMeta>;
389
215
  failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "create_bookmark::failure", never, BookmarkActionMeta>;
390
216
  };
391
217
  deleteBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "delete_bookmark::request", never, {
@@ -172,131 +172,37 @@ export declare class BookmarkProvider implements IBookmarkProvider {
172
172
  */
173
173
  getBookmark<T extends BookmarkData>(bookmarkId: string, options?: {
174
174
  excludePayload?: boolean;
175
- }): Observable<import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
176
- id: import("zod").ZodString;
177
- name: import("zod").ZodString;
178
- appKey: import("zod").ZodString;
179
- description: import("zod").ZodOptional<import("zod").ZodString>;
180
- isShared: import("zod").ZodOptional<import("zod").ZodBoolean>;
181
- created: import("zod").ZodDate;
182
- createdBy: import("zod").ZodObject<{
183
- id: import("zod").ZodString;
184
- name: import("zod").ZodString;
185
- mail: import("zod").ZodOptional<import("zod").ZodString>;
186
- }, "strip", import("zod").ZodTypeAny, {
175
+ }): Observable<{
176
+ id: string;
177
+ name: string;
178
+ appKey: string;
179
+ created: Date;
180
+ createdBy: {
187
181
  id: string;
188
182
  name: string;
189
183
  mail?: string | undefined;
190
- }, {
184
+ };
185
+ description?: string | undefined;
186
+ isShared?: boolean | undefined;
187
+ updated?: Date | undefined;
188
+ updatedBy?: {
191
189
  id: string;
192
190
  name: string;
193
191
  mail?: string | undefined;
194
- }>;
195
- updated: import("zod").ZodOptional<import("zod").ZodDate>;
196
- updatedBy: import("zod").ZodOptional<import("zod").ZodObject<{
197
- id: import("zod").ZodString;
198
- name: import("zod").ZodString;
199
- mail: import("zod").ZodOptional<import("zod").ZodString>;
200
- }, "strip", import("zod").ZodTypeAny, {
201
- id: string;
202
- name: string;
203
- mail?: string | undefined;
204
- }, {
205
- id: string;
206
- name: string;
207
- mail?: string | undefined;
208
- }>>;
209
- context: import("zod").ZodOptional<import("zod").ZodObject<{
210
- id: import("zod").ZodString;
211
- name: import("zod").ZodOptional<import("zod").ZodString>;
212
- type: import("zod").ZodOptional<import("zod").ZodString>;
213
- }, "strip", import("zod").ZodTypeAny, {
192
+ } | undefined;
193
+ context?: {
214
194
  id: string;
215
195
  name?: string | undefined;
216
196
  type?: string | undefined;
217
- }, {
218
- id: string;
219
- name?: string | undefined;
220
- type?: string | undefined;
221
- }>>;
222
- sourceSystem: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
223
- identifier: import("zod").ZodString;
224
- name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
225
- subSystem: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
226
- }, "strip", import("zod").ZodTypeAny, {
227
- identifier: string;
228
- name?: string | null | undefined;
229
- subSystem?: string | null | undefined;
230
- }, {
231
- identifier: string;
232
- name?: string | null | undefined;
233
- subSystem?: string | null | undefined;
234
- }>>>;
235
- } & {
236
- payload: import("zod").ZodType<T, import("zod").ZodTypeDef, T>;
237
- }>, any> extends infer T_1 ? { [k in keyof T_1]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
238
- id: import("zod").ZodString;
239
- name: import("zod").ZodString;
240
- appKey: import("zod").ZodString;
241
- description: import("zod").ZodOptional<import("zod").ZodString>;
242
- isShared: import("zod").ZodOptional<import("zod").ZodBoolean>;
243
- created: import("zod").ZodDate;
244
- createdBy: import("zod").ZodObject<{
245
- id: import("zod").ZodString;
246
- name: import("zod").ZodString;
247
- mail: import("zod").ZodOptional<import("zod").ZodString>;
248
- }, "strip", import("zod").ZodTypeAny, {
249
- id: string;
250
- name: string;
251
- mail?: string | undefined;
252
- }, {
253
- id: string;
254
- name: string;
255
- mail?: string | undefined;
256
- }>;
257
- updated: import("zod").ZodOptional<import("zod").ZodDate>;
258
- updatedBy: import("zod").ZodOptional<import("zod").ZodObject<{
259
- id: import("zod").ZodString;
260
- name: import("zod").ZodString;
261
- mail: import("zod").ZodOptional<import("zod").ZodString>;
262
- }, "strip", import("zod").ZodTypeAny, {
263
- id: string;
264
- name: string;
265
- mail?: string | undefined;
266
- }, {
267
- id: string;
268
- name: string;
269
- mail?: string | undefined;
270
- }>>;
271
- context: import("zod").ZodOptional<import("zod").ZodObject<{
272
- id: import("zod").ZodString;
273
- name: import("zod").ZodOptional<import("zod").ZodString>;
274
- type: import("zod").ZodOptional<import("zod").ZodString>;
275
- }, "strip", import("zod").ZodTypeAny, {
276
- id: string;
277
- name?: string | undefined;
278
- type?: string | undefined;
279
- }, {
280
- id: string;
281
- name?: string | undefined;
282
- type?: string | undefined;
283
- }>>;
284
- sourceSystem: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
285
- identifier: import("zod").ZodString;
286
- name: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
287
- subSystem: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
288
- }, "strip", import("zod").ZodTypeAny, {
289
- identifier: string;
290
- name?: string | null | undefined;
291
- subSystem?: string | null | undefined;
292
- }, {
197
+ } | undefined;
198
+ sourceSystem?: {
293
199
  identifier: string;
294
200
  name?: string | null | undefined;
295
201
  subSystem?: string | null | undefined;
296
- }>>>;
202
+ } | null | undefined;
297
203
  } & {
298
- payload: import("zod").ZodType<T, import("zod").ZodTypeDef, T>;
299
- }>, any>[k]; } : never>;
204
+ payload?: T | undefined;
205
+ }>;
300
206
  /**
301
207
  * Retrieves a bookmark asynchronously.
302
208
  *
@@ -43,36 +43,7 @@ export declare const createBookmarkReducer: (initialState?: Partial<BookmarkStat
43
43
  };
44
44
  type: "set_bookmark";
45
45
  } | {
46
- payload: {
47
- id: string;
48
- name: string;
49
- appKey: string;
50
- created: Date;
51
- createdBy: {
52
- id: string;
53
- name: string;
54
- mail?: string | undefined;
55
- };
56
- description?: string | undefined;
57
- isShared?: boolean | undefined;
58
- updated?: Date | undefined;
59
- updatedBy?: {
60
- id: string;
61
- name: string;
62
- mail?: string | undefined;
63
- } | undefined;
64
- context?: {
65
- id: string;
66
- name?: string | undefined;
67
- type?: string | undefined;
68
- } | undefined;
69
- sourceSystem?: {
70
- identifier: string;
71
- name?: string | null | undefined;
72
- subSystem?: string | null | undefined;
73
- } | null | undefined;
74
- payload?: any;
75
- } | null;
46
+ payload: import("./types").Bookmark | null;
76
47
  type: "set_current_bookmark";
77
48
  } | import("@equinor/fusion-observable").PayloadAction<string, "fetch_bookmark::request", {
78
49
  ref: string;
@@ -166,69 +137,11 @@ export declare const createBookmarkReducer: (initialState?: Partial<BookmarkStat
166
137
  ref: string;
167
138
  } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "fetch_bookmarks::failure", {
168
139
  ref: string;
169
- } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<{
170
- id: string;
171
- name: string;
172
- appKey: string;
173
- created: Date;
174
- createdBy: {
175
- id: string;
176
- name: string;
177
- mail?: string | undefined;
178
- };
179
- description?: string | undefined;
180
- isShared?: boolean | undefined;
181
- updated?: Date | undefined;
182
- updatedBy?: {
183
- id: string;
184
- name: string;
185
- mail?: string | 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 | null | undefined;
195
- subSystem?: string | null | undefined;
196
- } | null | undefined;
197
- payload?: any;
198
- }, "set_bookmark::success", {
140
+ } | undefined, never> | import("@equinor/fusion-observable").PayloadAction<import("./types").Bookmark, "set_bookmark::success", {
199
141
  ref: string;
200
142
  }, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "set_bookmark::failure", {
201
143
  ref: string;
202
- }, never> | import("@equinor/fusion-observable").PayloadAction<{
203
- id: string;
204
- name: string;
205
- appKey: string;
206
- created: Date;
207
- createdBy: {
208
- id: string;
209
- name: string;
210
- mail?: string | undefined;
211
- };
212
- description?: string | undefined;
213
- isShared?: boolean | undefined;
214
- updated?: Date | undefined;
215
- updatedBy?: {
216
- id: string;
217
- name: string;
218
- mail?: string | undefined;
219
- } | undefined;
220
- context?: {
221
- id: string;
222
- name?: string | undefined;
223
- type?: string | undefined;
224
- } | undefined;
225
- sourceSystem?: {
226
- identifier: string;
227
- name?: string | null | undefined;
228
- subSystem?: string | null | undefined;
229
- } | null | undefined;
230
- payload?: any;
231
- }, "create_bookmark::success", {
144
+ }, never> | import("@equinor/fusion-observable").PayloadAction<import("./types").Bookmark, "create_bookmark::success", {
232
145
  ref: string;
233
146
  }, never> | import("@equinor/fusion-observable").PayloadAction<BookmarkFlowError, "create_bookmark::failure", {
234
147
  ref: string;
@@ -397,7 +397,7 @@ export declare const bookmarkWithDataSchema: <T extends BookmarkData = BookmarkD
397
397
  }>>>;
398
398
  } & {
399
399
  payload: S;
400
- }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
400
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
401
401
  id: z.ZodString;
402
402
  name: z.ZodString;
403
403
  appKey: z.ZodString;
@@ -459,128 +459,4 @@ export declare const bookmarkWithDataSchema: <T extends BookmarkData = BookmarkD
459
459
  }>>>;
460
460
  } & {
461
461
  payload: S;
462
- }>, any>[k]; } : never, z.baseObjectInputType<{
463
- id: z.ZodString;
464
- name: z.ZodString;
465
- appKey: z.ZodString;
466
- description: z.ZodOptional<z.ZodString>;
467
- isShared: z.ZodOptional<z.ZodBoolean>;
468
- created: z.ZodDate;
469
- createdBy: z.ZodObject<{
470
- id: z.ZodString;
471
- name: z.ZodString;
472
- mail: z.ZodOptional<z.ZodString>;
473
- }, "strip", z.ZodTypeAny, {
474
- id: string;
475
- name: string;
476
- mail?: string | undefined;
477
- }, {
478
- id: string;
479
- name: string;
480
- mail?: string | undefined;
481
- }>;
482
- updated: z.ZodOptional<z.ZodDate>;
483
- updatedBy: z.ZodOptional<z.ZodObject<{
484
- id: z.ZodString;
485
- name: z.ZodString;
486
- mail: z.ZodOptional<z.ZodString>;
487
- }, "strip", z.ZodTypeAny, {
488
- id: string;
489
- name: string;
490
- mail?: string | undefined;
491
- }, {
492
- id: string;
493
- name: string;
494
- mail?: string | undefined;
495
- }>>;
496
- context: z.ZodOptional<z.ZodObject<{
497
- id: z.ZodString;
498
- name: z.ZodOptional<z.ZodString>;
499
- type: z.ZodOptional<z.ZodString>;
500
- }, "strip", z.ZodTypeAny, {
501
- id: string;
502
- name?: string | undefined;
503
- type?: string | undefined;
504
- }, {
505
- id: string;
506
- name?: string | undefined;
507
- type?: string | undefined;
508
- }>>;
509
- sourceSystem: z.ZodOptional<z.ZodNullable<z.ZodObject<{
510
- identifier: z.ZodString;
511
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
512
- subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
- }, "strip", z.ZodTypeAny, {
514
- identifier: string;
515
- name?: string | null | undefined;
516
- subSystem?: string | null | undefined;
517
- }, {
518
- identifier: string;
519
- name?: string | null | undefined;
520
- subSystem?: string | null | undefined;
521
- }>>>;
522
- } & {
523
- payload: S;
524
- }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
525
- id: z.ZodString;
526
- name: z.ZodString;
527
- appKey: z.ZodString;
528
- description: z.ZodOptional<z.ZodString>;
529
- isShared: z.ZodOptional<z.ZodBoolean>;
530
- created: z.ZodDate;
531
- createdBy: z.ZodObject<{
532
- id: z.ZodString;
533
- name: z.ZodString;
534
- mail: z.ZodOptional<z.ZodString>;
535
- }, "strip", z.ZodTypeAny, {
536
- id: string;
537
- name: string;
538
- mail?: string | undefined;
539
- }, {
540
- id: string;
541
- name: string;
542
- mail?: string | undefined;
543
- }>;
544
- updated: z.ZodOptional<z.ZodDate>;
545
- updatedBy: z.ZodOptional<z.ZodObject<{
546
- id: z.ZodString;
547
- name: z.ZodString;
548
- mail: z.ZodOptional<z.ZodString>;
549
- }, "strip", z.ZodTypeAny, {
550
- id: string;
551
- name: string;
552
- mail?: string | undefined;
553
- }, {
554
- id: string;
555
- name: string;
556
- mail?: string | undefined;
557
- }>>;
558
- context: z.ZodOptional<z.ZodObject<{
559
- id: z.ZodString;
560
- name: z.ZodOptional<z.ZodString>;
561
- type: z.ZodOptional<z.ZodString>;
562
- }, "strip", z.ZodTypeAny, {
563
- id: string;
564
- name?: string | undefined;
565
- type?: string | undefined;
566
- }, {
567
- id: string;
568
- name?: string | undefined;
569
- type?: string | undefined;
570
- }>>;
571
- sourceSystem: z.ZodOptional<z.ZodNullable<z.ZodObject<{
572
- identifier: z.ZodString;
573
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
- subSystem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
575
- }, "strip", z.ZodTypeAny, {
576
- identifier: string;
577
- name?: string | null | undefined;
578
- subSystem?: string | null | undefined;
579
- }, {
580
- identifier: string;
581
- name?: string | null | undefined;
582
- subSystem?: string | null | undefined;
583
- }>>>;
584
- } & {
585
- payload: S;
586
- }>[k_1]; } : never>;
462
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
@@ -3,5 +3,7 @@ export type { IBookmarkClient, BookmarkNew, BookmarkUpdate, BookmarksFilter, } f
3
3
  export { default, BookmarkModule, module as bookmarkModule, moduleKey as bookmarkModuleKey, } from './bookmark-module';
4
4
  export { BookmarkProvider } from './BookmarkProvider';
5
5
  export type { BookmarkCreateArgs, BookmarkUpdateOptions, IBookmarkProvider, BookmarkPayloadGenerator, } from './BookmarkProvider.interface';
6
+ export type { BookmarkProviderEventMap as BookmarkProviderEvents } from './BookmarkProvider.events.js';
6
7
  export { enableBookmark } from './enable-bookmark';
7
8
  export * from './types';
9
+ export { bookmarkWithDataSchema } from './bookmark.schemas';
@@ -1,5 +1,5 @@
1
1
  import type z from 'zod';
2
- import type { bookmarkContextSchema, bookmarkSchema, bookmarkSourceSystemSchema, bookmarksSchema, bookmarkUserSchema, bookmarkWithDataSchema } from './bookmark.schemas';
2
+ import type { bookmarkContextSchema, bookmarkSchema, bookmarkSourceSystemSchema, bookmarksSchema, bookmarkUserSchema } from './bookmark.schemas';
3
3
  import type { bookmarkConfigSchema } from './bookmark-config.schema';
4
4
  /**
5
5
  * Represents the source system for a bookmark.
@@ -22,7 +22,9 @@ export type BookmarkWithoutData = z.infer<typeof bookmarkSchema>;
22
22
  * Represents a bookmark with associated data.
23
23
  * @template T - The type of the bookmark data.
24
24
  */
25
- export type Bookmark<T extends BookmarkData = any> = z.infer<ReturnType<typeof bookmarkWithDataSchema<T>>>;
25
+ export type Bookmark<T extends BookmarkData = any> = BookmarkWithoutData & {
26
+ payload?: T;
27
+ };
26
28
  /**
27
29
  * Represents the configuration options for a bookmark module.
28
30
  */
@@ -1 +1 @@
1
- export declare const version = "2.1.14";
1
+ export declare const version = "2.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-module-bookmark",
3
- "version": "2.1.14",
3
+ "version": "2.2.0",
4
4
  "description": "",
5
5
  "main": "./dist/esm/index.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -41,20 +41,20 @@
41
41
  "immer": "^9.0.16",
42
42
  "rxjs": "^7.8.1",
43
43
  "uuid": "^11.0.3",
44
- "@equinor/fusion-framework-module": "^4.4.2",
45
- "@equinor/fusion-log": "^1.1.4",
44
+ "@equinor/fusion-framework-module": "^5.0.0",
46
45
  "@equinor/fusion-observable": "^8.5.1",
47
- "@equinor/fusion-query": "^5.2.11"
46
+ "@equinor/fusion-query": "^5.2.11",
47
+ "@equinor/fusion-log": "^1.1.5"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/uuid": "^9.0.8",
51
51
  "typescript": "^5.8.2",
52
- "zod": "^3.23.8",
53
- "@equinor/fusion-framework-module-context": "^6.0.6",
54
- "@equinor/fusion-framework-module-event": "^4.3.6",
55
- "@equinor/fusion-framework-module-app": "^6.1.16",
56
- "@equinor/fusion-framework-module-http": "^6.3.3",
57
- "@equinor/fusion-framework-module-services": "^6.0.3"
52
+ "zod": "^3.25.76",
53
+ "@equinor/fusion-framework-module-app": "^6.1.17",
54
+ "@equinor/fusion-framework-module-context": "^7.0.0",
55
+ "@equinor/fusion-framework-module-event": "^4.3.7",
56
+ "@equinor/fusion-framework-module-http": "^6.3.4",
57
+ "@equinor/fusion-framework-module-services": "^7.0.0"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "tsc -b"