@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.
- package/CHANGELOG.md +37 -0
- package/README.md +242 -9
- package/dist/esm/BookmarkClient.interface.js +2 -0
- package/dist/esm/BookmarkClient.interface.js.map +1 -0
- package/dist/esm/BookmarkClient.js +174 -0
- package/dist/esm/BookmarkClient.js.map +1 -0
- package/dist/esm/BookmarkConfigurator.js +348 -0
- package/dist/esm/BookmarkConfigurator.js.map +1 -0
- package/dist/esm/BookmarkProvider.actions.js +60 -0
- package/dist/esm/BookmarkProvider.actions.js.map +1 -0
- package/dist/esm/BookmarkProvider.error.js +14 -0
- package/dist/esm/BookmarkProvider.error.js.map +1 -0
- package/dist/esm/BookmarkProvider.events.js +2 -0
- package/dist/esm/BookmarkProvider.events.js.map +1 -0
- package/dist/esm/BookmarkProvider.flows.js +219 -0
- package/dist/esm/BookmarkProvider.flows.js.map +1 -0
- package/dist/esm/BookmarkProvider.js +937 -0
- package/dist/esm/BookmarkProvider.js.map +1 -0
- package/dist/esm/BookmarkProvider.reducer.js +125 -0
- package/dist/esm/BookmarkProvider.reducer.js.map +1 -0
- package/dist/esm/BookmarkProvider.selectors.js +43 -0
- package/dist/esm/BookmarkProvider.selectors.js.map +1 -0
- package/dist/esm/BookmarkProvider.store.js +19 -0
- package/dist/esm/BookmarkProvider.store.js.map +1 -0
- package/dist/esm/bookmark-config.schema.js +30 -0
- package/dist/esm/bookmark-config.schema.js.map +1 -0
- package/dist/esm/bookmark-module.js +53 -0
- package/dist/esm/bookmark-module.js.map +1 -0
- package/dist/esm/bookmark.schemas.js +38 -0
- package/dist/esm/bookmark.schemas.js.map +1 -0
- package/dist/esm/enable-bookmark.js +20 -7
- package/dist/esm/enable-bookmark.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/BookmarkClient.d.ts +42 -0
- package/dist/types/BookmarkClient.interface.d.ts +139 -0
- package/dist/types/BookmarkConfigurator.d.ts +100 -0
- package/dist/types/BookmarkProvider.actions.d.ts +525 -0
- package/dist/types/BookmarkProvider.d.ts +462 -0
- package/dist/types/BookmarkProvider.error.d.ts +9 -0
- package/dist/types/BookmarkProvider.events.d.ts +78 -0
- package/dist/types/BookmarkProvider.flows.d.ts +79 -0
- package/dist/types/BookmarkProvider.reducer.d.ts +302 -0
- package/dist/types/BookmarkProvider.selectors.d.ts +34 -0
- package/dist/types/BookmarkProvider.store.d.ts +30 -0
- package/dist/types/bookmark-config.schema.d.ts +118 -0
- package/dist/types/{module.d.ts → bookmark-module.d.ts} +3 -3
- package/dist/types/bookmark.schemas.d.ts +760 -0
- package/dist/types/enable-bookmark.d.ts +7 -6
- package/dist/types/index.d.ts +4 -3
- package/dist/types/types.d.ts +29 -65
- package/dist/types/version.d.ts +1 -1
- package/package.json +11 -5
- package/src/BookmarkClient.interface.ts +157 -0
- package/src/BookmarkClient.ts +226 -0
- package/src/BookmarkConfigurator.ts +374 -0
- package/src/BookmarkProvider.actions.ts +131 -0
- package/src/BookmarkProvider.error.ts +21 -0
- package/src/BookmarkProvider.events.ts +89 -0
- package/src/BookmarkProvider.flows.ts +426 -0
- package/src/BookmarkProvider.reducer.ts +141 -0
- package/src/BookmarkProvider.selectors.ts +55 -0
- package/src/BookmarkProvider.store.ts +52 -0
- package/src/BookmarkProvider.ts +1308 -0
- package/src/bookmark-config.schema.ts +41 -0
- package/src/bookmark-module.ts +70 -0
- package/src/bookmark.schemas.ts +50 -0
- package/src/enable-bookmark.ts +13 -20
- package/src/index.ts +15 -7
- package/src/types.ts +46 -73
- package/src/version.ts +1 -1
- package/dist/esm/bookmark-config-builder.js +0 -131
- package/dist/esm/bookmark-config-builder.js.map +0 -1
- package/dist/esm/bookmark-provider.js +0 -155
- package/dist/esm/bookmark-provider.js.map +0 -1
- package/dist/esm/client/bookmarkActions.js +0 -10
- package/dist/esm/client/bookmarkActions.js.map +0 -1
- package/dist/esm/client/bookmarkClient.js +0 -259
- package/dist/esm/client/bookmarkClient.js.map +0 -1
- package/dist/esm/client/bookmarkFlows.js +0 -31
- package/dist/esm/client/bookmarkFlows.js.map +0 -1
- package/dist/esm/client/bookmarkReducer.js +0 -29
- package/dist/esm/client/bookmarkReducer.js.map +0 -1
- package/dist/esm/configurator.js +0 -155
- package/dist/esm/configurator.js.map +0 -1
- package/dist/esm/module.js +0 -27
- package/dist/esm/module.js.map +0 -1
- package/dist/esm/utils/handle-url.js +0 -11
- package/dist/esm/utils/handle-url.js.map +0 -1
- package/dist/esm/utils/index.js +0 -2
- package/dist/esm/utils/index.js.map +0 -1
- package/dist/types/bookmark-config-builder.d.ts +0 -85
- package/dist/types/bookmark-provider.d.ts +0 -169
- package/dist/types/client/bookmarkActions.d.ts +0 -27
- package/dist/types/client/bookmarkClient.d.ts +0 -53
- package/dist/types/client/bookmarkFlows.d.ts +0 -22
- package/dist/types/client/bookmarkReducer.d.ts +0 -5
- package/dist/types/configurator.d.ts +0 -75
- package/dist/types/utils/handle-url.d.ts +0 -2
- package/dist/types/utils/index.d.ts +0 -1
- package/src/bookmark-config-builder.ts +0 -177
- package/src/bookmark-provider.ts +0 -344
- package/src/client/bookmarkActions.ts +0 -44
- package/src/client/bookmarkClient.ts +0 -327
- package/src/client/bookmarkFlows.ts +0 -67
- package/src/client/bookmarkReducer.ts +0 -35
- package/src/configurator.ts +0 -235
- package/src/module.ts +0 -40
- package/src/utils/handle-url.ts +0 -13
- package/src/utils/index.ts +0 -1
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
import { Action, type ActionTypes } from '@equinor/fusion-observable';
|
|
2
|
+
import type { BookmarkData } from './types';
|
|
3
|
+
import { BookmarkNew, BookmarkUpdate, type BookmarksFilter } from './BookmarkClient.interface';
|
|
4
|
+
import { type BookmarkFlowError } from './BookmarkProvider.error';
|
|
5
|
+
/**
|
|
6
|
+
* Represents the metadata associated with a bookmark action.
|
|
7
|
+
*/
|
|
8
|
+
type BookmarkActionMeta = {
|
|
9
|
+
ref: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Actions related to the BookmarkProvider provider state.
|
|
13
|
+
*
|
|
14
|
+
* Exports a set of actions that can be used to manage bookmarks.
|
|
15
|
+
*/
|
|
16
|
+
export declare const bookmarkActions: {
|
|
17
|
+
aborted: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[action: Action], Action, "action_aborted", never, never>;
|
|
18
|
+
setBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmark: {
|
|
19
|
+
name: string;
|
|
20
|
+
id: string;
|
|
21
|
+
appKey: string;
|
|
22
|
+
created: Date;
|
|
23
|
+
createdBy: {
|
|
24
|
+
azureUniqueId: string;
|
|
25
|
+
name: string;
|
|
26
|
+
mail?: string | undefined;
|
|
27
|
+
phoneNumber?: string | undefined;
|
|
28
|
+
jobTitle?: string | undefined;
|
|
29
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
30
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
31
|
+
};
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
isShared?: boolean | undefined;
|
|
34
|
+
updated?: Date | undefined;
|
|
35
|
+
updatedBy?: {
|
|
36
|
+
azureUniqueId: string;
|
|
37
|
+
name: string;
|
|
38
|
+
mail?: string | undefined;
|
|
39
|
+
phoneNumber?: string | undefined;
|
|
40
|
+
jobTitle?: string | undefined;
|
|
41
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
42
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
context?: {
|
|
45
|
+
id: string;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
type?: string | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
sourceSystem?: {
|
|
50
|
+
identifier: string;
|
|
51
|
+
name?: string | undefined;
|
|
52
|
+
subSystem?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
}], {
|
|
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
|
+
}, "update_bookmark", never, never>;
|
|
91
|
+
setCurrentBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmark: {
|
|
92
|
+
name: string;
|
|
93
|
+
id: string;
|
|
94
|
+
appKey: string;
|
|
95
|
+
created: Date;
|
|
96
|
+
createdBy: {
|
|
97
|
+
azureUniqueId: string;
|
|
98
|
+
name: string;
|
|
99
|
+
mail?: string | undefined;
|
|
100
|
+
phoneNumber?: string | undefined;
|
|
101
|
+
jobTitle?: string | undefined;
|
|
102
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
103
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
104
|
+
};
|
|
105
|
+
description?: string | undefined;
|
|
106
|
+
isShared?: boolean | undefined;
|
|
107
|
+
updated?: Date | undefined;
|
|
108
|
+
updatedBy?: {
|
|
109
|
+
azureUniqueId: string;
|
|
110
|
+
name: string;
|
|
111
|
+
mail?: string | undefined;
|
|
112
|
+
phoneNumber?: string | undefined;
|
|
113
|
+
jobTitle?: string | undefined;
|
|
114
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
115
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
context?: {
|
|
118
|
+
id: string;
|
|
119
|
+
name?: string | undefined;
|
|
120
|
+
type?: string | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
sourceSystem?: {
|
|
123
|
+
identifier: string;
|
|
124
|
+
name?: string | undefined;
|
|
125
|
+
subSystem?: string | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
payload?: any;
|
|
128
|
+
} | null], {
|
|
129
|
+
name: string;
|
|
130
|
+
id: string;
|
|
131
|
+
appKey: string;
|
|
132
|
+
created: Date;
|
|
133
|
+
createdBy: {
|
|
134
|
+
azureUniqueId: string;
|
|
135
|
+
name: string;
|
|
136
|
+
mail?: string | undefined;
|
|
137
|
+
phoneNumber?: string | undefined;
|
|
138
|
+
jobTitle?: string | undefined;
|
|
139
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
140
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
141
|
+
};
|
|
142
|
+
description?: string | undefined;
|
|
143
|
+
isShared?: boolean | undefined;
|
|
144
|
+
updated?: Date | undefined;
|
|
145
|
+
updatedBy?: {
|
|
146
|
+
azureUniqueId: string;
|
|
147
|
+
name: string;
|
|
148
|
+
mail?: string | undefined;
|
|
149
|
+
phoneNumber?: string | undefined;
|
|
150
|
+
jobTitle?: string | undefined;
|
|
151
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
152
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
context?: {
|
|
155
|
+
id: string;
|
|
156
|
+
name?: string | undefined;
|
|
157
|
+
type?: string | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
sourceSystem?: {
|
|
160
|
+
identifier: string;
|
|
161
|
+
name?: string | undefined;
|
|
162
|
+
subSystem?: string | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
payload?: any;
|
|
165
|
+
} | null, "set_current_bookmark", never, never>;
|
|
166
|
+
fetchBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "fetch_bookmark::request", never, BookmarkActionMeta | undefined> & {
|
|
167
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmark: {
|
|
168
|
+
name: string;
|
|
169
|
+
id: string;
|
|
170
|
+
appKey: string;
|
|
171
|
+
created: Date;
|
|
172
|
+
createdBy: {
|
|
173
|
+
azureUniqueId: string;
|
|
174
|
+
name: string;
|
|
175
|
+
mail?: string | undefined;
|
|
176
|
+
phoneNumber?: string | undefined;
|
|
177
|
+
jobTitle?: string | undefined;
|
|
178
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
179
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
180
|
+
};
|
|
181
|
+
description?: string | undefined;
|
|
182
|
+
isShared?: boolean | undefined;
|
|
183
|
+
updated?: Date | undefined;
|
|
184
|
+
updatedBy?: {
|
|
185
|
+
azureUniqueId: string;
|
|
186
|
+
name: string;
|
|
187
|
+
mail?: string | undefined;
|
|
188
|
+
phoneNumber?: string | undefined;
|
|
189
|
+
jobTitle?: string | undefined;
|
|
190
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
191
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
context?: {
|
|
194
|
+
id: string;
|
|
195
|
+
name?: string | undefined;
|
|
196
|
+
type?: string | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
sourceSystem?: {
|
|
199
|
+
identifier: string;
|
|
200
|
+
name?: string | undefined;
|
|
201
|
+
subSystem?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
}, meta?: BookmarkActionMeta | undefined], {
|
|
204
|
+
name: string;
|
|
205
|
+
id: string;
|
|
206
|
+
appKey: string;
|
|
207
|
+
created: Date;
|
|
208
|
+
createdBy: {
|
|
209
|
+
azureUniqueId: string;
|
|
210
|
+
name: string;
|
|
211
|
+
mail?: string | undefined;
|
|
212
|
+
phoneNumber?: string | undefined;
|
|
213
|
+
jobTitle?: string | undefined;
|
|
214
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
215
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
216
|
+
};
|
|
217
|
+
description?: string | undefined;
|
|
218
|
+
isShared?: boolean | undefined;
|
|
219
|
+
updated?: Date | undefined;
|
|
220
|
+
updatedBy?: {
|
|
221
|
+
azureUniqueId: string;
|
|
222
|
+
name: string;
|
|
223
|
+
mail?: string | undefined;
|
|
224
|
+
phoneNumber?: string | undefined;
|
|
225
|
+
jobTitle?: string | undefined;
|
|
226
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
227
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
context?: {
|
|
230
|
+
id: string;
|
|
231
|
+
name?: string | undefined;
|
|
232
|
+
type?: string | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
sourceSystem?: {
|
|
235
|
+
identifier: string;
|
|
236
|
+
name?: string | undefined;
|
|
237
|
+
subSystem?: string | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
}, "fetch_bookmark::success", never, BookmarkActionMeta | undefined>;
|
|
240
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: BookmarkFlowError, meta?: BookmarkActionMeta | undefined], BookmarkFlowError, "fetch_bookmark::failure", never, BookmarkActionMeta | undefined>;
|
|
241
|
+
};
|
|
242
|
+
fetchBookmarkData: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "fetch_bookmark_payload::request", never, BookmarkActionMeta | undefined> & {
|
|
243
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, data: BookmarkData, meta?: BookmarkActionMeta | undefined], {
|
|
244
|
+
bookmarkId: string;
|
|
245
|
+
data: BookmarkData;
|
|
246
|
+
}, "fetch_bookmark_payload::success", never, BookmarkActionMeta | undefined>;
|
|
247
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: BookmarkFlowError, meta?: BookmarkActionMeta | undefined], BookmarkFlowError, "fetch_bookmark_payload::failure", never, BookmarkActionMeta | undefined>;
|
|
248
|
+
};
|
|
249
|
+
fetchBookmarks: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[filter?: BookmarksFilter | undefined, meta?: BookmarkActionMeta | undefined], BookmarksFilter | undefined, "fetch_bookmarks::request", never, BookmarkActionMeta | undefined> & {
|
|
250
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarks: {
|
|
251
|
+
name: string;
|
|
252
|
+
id: string;
|
|
253
|
+
appKey: string;
|
|
254
|
+
created: Date;
|
|
255
|
+
createdBy: {
|
|
256
|
+
azureUniqueId: string;
|
|
257
|
+
name: string;
|
|
258
|
+
mail?: string | undefined;
|
|
259
|
+
phoneNumber?: string | undefined;
|
|
260
|
+
jobTitle?: string | undefined;
|
|
261
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
262
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
263
|
+
};
|
|
264
|
+
description?: string | undefined;
|
|
265
|
+
isShared?: boolean | undefined;
|
|
266
|
+
updated?: Date | undefined;
|
|
267
|
+
updatedBy?: {
|
|
268
|
+
azureUniqueId: string;
|
|
269
|
+
name: string;
|
|
270
|
+
mail?: string | undefined;
|
|
271
|
+
phoneNumber?: string | undefined;
|
|
272
|
+
jobTitle?: string | undefined;
|
|
273
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
274
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
275
|
+
} | undefined;
|
|
276
|
+
context?: {
|
|
277
|
+
id: string;
|
|
278
|
+
name?: string | undefined;
|
|
279
|
+
type?: string | undefined;
|
|
280
|
+
} | undefined;
|
|
281
|
+
sourceSystem?: {
|
|
282
|
+
identifier: string;
|
|
283
|
+
name?: string | undefined;
|
|
284
|
+
subSystem?: string | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
}[], meta?: BookmarkActionMeta | undefined], {
|
|
287
|
+
name: string;
|
|
288
|
+
id: string;
|
|
289
|
+
appKey: string;
|
|
290
|
+
created: Date;
|
|
291
|
+
createdBy: {
|
|
292
|
+
azureUniqueId: string;
|
|
293
|
+
name: string;
|
|
294
|
+
mail?: string | undefined;
|
|
295
|
+
phoneNumber?: string | undefined;
|
|
296
|
+
jobTitle?: string | undefined;
|
|
297
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
298
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
299
|
+
};
|
|
300
|
+
description?: string | undefined;
|
|
301
|
+
isShared?: boolean | undefined;
|
|
302
|
+
updated?: Date | undefined;
|
|
303
|
+
updatedBy?: {
|
|
304
|
+
azureUniqueId: string;
|
|
305
|
+
name: string;
|
|
306
|
+
mail?: string | undefined;
|
|
307
|
+
phoneNumber?: string | undefined;
|
|
308
|
+
jobTitle?: string | undefined;
|
|
309
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
310
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
context?: {
|
|
313
|
+
id: string;
|
|
314
|
+
name?: string | undefined;
|
|
315
|
+
type?: string | undefined;
|
|
316
|
+
} | undefined;
|
|
317
|
+
sourceSystem?: {
|
|
318
|
+
identifier: string;
|
|
319
|
+
name?: string | undefined;
|
|
320
|
+
subSystem?: string | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
}[], "fetch_bookmarks::success", never, BookmarkActionMeta | undefined>;
|
|
323
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: BookmarkFlowError, meta?: BookmarkActionMeta | undefined], BookmarkFlowError, "fetch_bookmarks::failure", never, BookmarkActionMeta | undefined>;
|
|
324
|
+
};
|
|
325
|
+
updateBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: {
|
|
326
|
+
bookmarkId: string;
|
|
327
|
+
updates: BookmarkUpdate;
|
|
328
|
+
}, meta: BookmarkActionMeta], {
|
|
329
|
+
bookmarkId: string;
|
|
330
|
+
updates: BookmarkUpdate;
|
|
331
|
+
}, "update_bookmark::request", never, BookmarkActionMeta> & {
|
|
332
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: {
|
|
333
|
+
name: string;
|
|
334
|
+
id: string;
|
|
335
|
+
appKey: string;
|
|
336
|
+
created: Date;
|
|
337
|
+
createdBy: {
|
|
338
|
+
azureUniqueId: string;
|
|
339
|
+
name: string;
|
|
340
|
+
mail?: string | undefined;
|
|
341
|
+
phoneNumber?: string | undefined;
|
|
342
|
+
jobTitle?: string | undefined;
|
|
343
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
344
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
345
|
+
};
|
|
346
|
+
description?: string | undefined;
|
|
347
|
+
isShared?: boolean | undefined;
|
|
348
|
+
updated?: Date | undefined;
|
|
349
|
+
updatedBy?: {
|
|
350
|
+
azureUniqueId: string;
|
|
351
|
+
name: string;
|
|
352
|
+
mail?: string | undefined;
|
|
353
|
+
phoneNumber?: string | undefined;
|
|
354
|
+
jobTitle?: string | undefined;
|
|
355
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
356
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
357
|
+
} | undefined;
|
|
358
|
+
context?: {
|
|
359
|
+
id: string;
|
|
360
|
+
name?: string | undefined;
|
|
361
|
+
type?: string | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
sourceSystem?: {
|
|
364
|
+
identifier: string;
|
|
365
|
+
name?: string | undefined;
|
|
366
|
+
subSystem?: string | undefined;
|
|
367
|
+
} | undefined;
|
|
368
|
+
payload?: any;
|
|
369
|
+
}, meta: BookmarkActionMeta], {
|
|
370
|
+
name: string;
|
|
371
|
+
id: string;
|
|
372
|
+
appKey: string;
|
|
373
|
+
created: Date;
|
|
374
|
+
createdBy: {
|
|
375
|
+
azureUniqueId: string;
|
|
376
|
+
name: string;
|
|
377
|
+
mail?: string | undefined;
|
|
378
|
+
phoneNumber?: string | undefined;
|
|
379
|
+
jobTitle?: string | undefined;
|
|
380
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
381
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
382
|
+
};
|
|
383
|
+
description?: string | undefined;
|
|
384
|
+
isShared?: boolean | undefined;
|
|
385
|
+
updated?: Date | undefined;
|
|
386
|
+
updatedBy?: {
|
|
387
|
+
azureUniqueId: string;
|
|
388
|
+
name: string;
|
|
389
|
+
mail?: string | undefined;
|
|
390
|
+
phoneNumber?: string | undefined;
|
|
391
|
+
jobTitle?: string | undefined;
|
|
392
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
393
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
context?: {
|
|
396
|
+
id: string;
|
|
397
|
+
name?: string | undefined;
|
|
398
|
+
type?: string | undefined;
|
|
399
|
+
} | undefined;
|
|
400
|
+
sourceSystem?: {
|
|
401
|
+
identifier: string;
|
|
402
|
+
name?: string | undefined;
|
|
403
|
+
subSystem?: string | undefined;
|
|
404
|
+
} | undefined;
|
|
405
|
+
payload?: any;
|
|
406
|
+
}, "update_bookmark::success", never, BookmarkActionMeta>;
|
|
407
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "update_bookmark::failure", never, BookmarkActionMeta>;
|
|
408
|
+
};
|
|
409
|
+
createBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkNew, meta: BookmarkActionMeta], BookmarkNew, "create_bookmark::request", never, BookmarkActionMeta> & {
|
|
410
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: {
|
|
411
|
+
name: string;
|
|
412
|
+
id: string;
|
|
413
|
+
appKey: string;
|
|
414
|
+
created: Date;
|
|
415
|
+
createdBy: {
|
|
416
|
+
azureUniqueId: string;
|
|
417
|
+
name: string;
|
|
418
|
+
mail?: string | undefined;
|
|
419
|
+
phoneNumber?: string | undefined;
|
|
420
|
+
jobTitle?: string | undefined;
|
|
421
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
422
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
423
|
+
};
|
|
424
|
+
description?: string | undefined;
|
|
425
|
+
isShared?: boolean | undefined;
|
|
426
|
+
updated?: Date | undefined;
|
|
427
|
+
updatedBy?: {
|
|
428
|
+
azureUniqueId: string;
|
|
429
|
+
name: string;
|
|
430
|
+
mail?: string | undefined;
|
|
431
|
+
phoneNumber?: string | undefined;
|
|
432
|
+
jobTitle?: string | undefined;
|
|
433
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
434
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
435
|
+
} | undefined;
|
|
436
|
+
context?: {
|
|
437
|
+
id: string;
|
|
438
|
+
name?: string | undefined;
|
|
439
|
+
type?: string | undefined;
|
|
440
|
+
} | undefined;
|
|
441
|
+
sourceSystem?: {
|
|
442
|
+
identifier: string;
|
|
443
|
+
name?: string | undefined;
|
|
444
|
+
subSystem?: string | undefined;
|
|
445
|
+
} | undefined;
|
|
446
|
+
payload?: any;
|
|
447
|
+
}, meta: BookmarkActionMeta], {
|
|
448
|
+
name: string;
|
|
449
|
+
id: string;
|
|
450
|
+
appKey: string;
|
|
451
|
+
created: Date;
|
|
452
|
+
createdBy: {
|
|
453
|
+
azureUniqueId: string;
|
|
454
|
+
name: string;
|
|
455
|
+
mail?: string | undefined;
|
|
456
|
+
phoneNumber?: string | undefined;
|
|
457
|
+
jobTitle?: string | undefined;
|
|
458
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
459
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
460
|
+
};
|
|
461
|
+
description?: string | undefined;
|
|
462
|
+
isShared?: boolean | undefined;
|
|
463
|
+
updated?: Date | undefined;
|
|
464
|
+
updatedBy?: {
|
|
465
|
+
azureUniqueId: string;
|
|
466
|
+
name: string;
|
|
467
|
+
mail?: string | undefined;
|
|
468
|
+
phoneNumber?: string | undefined;
|
|
469
|
+
jobTitle?: string | undefined;
|
|
470
|
+
accountType?: "Employee" | "Consultant" | "External" | "Application" | "Local" | undefined;
|
|
471
|
+
accountClassification?: "External" | "Unclassified" | "Internal" | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
context?: {
|
|
474
|
+
id: string;
|
|
475
|
+
name?: string | undefined;
|
|
476
|
+
type?: string | undefined;
|
|
477
|
+
} | undefined;
|
|
478
|
+
sourceSystem?: {
|
|
479
|
+
identifier: string;
|
|
480
|
+
name?: string | undefined;
|
|
481
|
+
subSystem?: string | undefined;
|
|
482
|
+
} | undefined;
|
|
483
|
+
payload?: any;
|
|
484
|
+
}, "create_bookmark::success", never, BookmarkActionMeta>;
|
|
485
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "create_bookmark::failure", never, BookmarkActionMeta>;
|
|
486
|
+
};
|
|
487
|
+
deleteBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "delete_bookmark::request", never, {
|
|
488
|
+
ref: string;
|
|
489
|
+
}> & {
|
|
490
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "delete_bookmark::success", never, {
|
|
491
|
+
ref: string;
|
|
492
|
+
}>;
|
|
493
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "delete_bookmark::failure", never, BookmarkActionMeta>;
|
|
494
|
+
};
|
|
495
|
+
removeBookmark: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "remove_bookmark::request", never, {
|
|
496
|
+
ref: string;
|
|
497
|
+
}> & {
|
|
498
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: {
|
|
499
|
+
type: "delete_bookmark" | "remove_favourite_bookmark";
|
|
500
|
+
bookmarkId: string;
|
|
501
|
+
}, meta: BookmarkActionMeta], {
|
|
502
|
+
type: "delete_bookmark" | "remove_favourite_bookmark";
|
|
503
|
+
bookmarkId: string;
|
|
504
|
+
}, "remove_bookmark::success", never, BookmarkActionMeta>;
|
|
505
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[payload: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "remove_bookmark::failure", never, BookmarkActionMeta>;
|
|
506
|
+
};
|
|
507
|
+
addBookmarkAsFavourite: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "add_favourite_bookmark::request", never, {
|
|
508
|
+
ref: string;
|
|
509
|
+
}> & {
|
|
510
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "add_favourite_bookmark::success", never, {
|
|
511
|
+
ref: string;
|
|
512
|
+
}>;
|
|
513
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "add_favourite_bookmark::failure", never, BookmarkActionMeta>;
|
|
514
|
+
};
|
|
515
|
+
removeBookmarkAsFavourite: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "remove_favourite_bookmark::request", never, {
|
|
516
|
+
ref: string;
|
|
517
|
+
}> & {
|
|
518
|
+
success: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[bookmarkId: string, meta?: BookmarkActionMeta | undefined], string, "remove_favourite_bookmark::success", never, {
|
|
519
|
+
ref: string;
|
|
520
|
+
}>;
|
|
521
|
+
failure: import("@equinor/fusion-observable").ActionCreatorWithPreparedPayload<[error: BookmarkFlowError, meta: BookmarkActionMeta], BookmarkFlowError, "remove_favourite_bookmark::failure", never, BookmarkActionMeta>;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
export type BookmarkActions = ActionTypes<typeof bookmarkActions>;
|
|
525
|
+
export {};
|