jamespot-front-business 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs.js +133 -48
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +133 -49
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +238 -85
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
2
2
|
import { EntityState, Action, Dispatch as Dispatch$1, PayloadAction } from '@reduxjs/toolkit';
|
|
3
3
|
import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
|
|
4
4
|
import * as jamespot_user_api from 'jamespot-user-api';
|
|
5
|
-
import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, JLandMap,
|
|
5
|
+
import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, JLandMap, AdminLicensesNotAssigned, Model as Model$1, PagingResults, TVChannelList, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, WidgetsState, CombinedWidgetContent, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
|
|
6
6
|
import * as redux from 'redux';
|
|
7
7
|
import { Dispatch } from 'redux';
|
|
8
8
|
import { MapCreationFront as MapCreationFront$1 } from 'src/types';
|
|
@@ -46,7 +46,7 @@ declare const Application: {
|
|
|
46
46
|
selectors: _reduxjs_toolkit.EntitySelectors<ApplicationType, ApplicationRootState>;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
type RootState = Partial<AssetReservationRootState
|
|
49
|
+
type RootState = Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & WidgetsRootState & WidgetsRootState>;
|
|
50
50
|
type RootDispatch = Dispatch<Action>;
|
|
51
51
|
type ThunkApiConfig<T> = {
|
|
52
52
|
dispatch: any;
|
|
@@ -115,7 +115,7 @@ declare const AssetReservation: {
|
|
|
115
115
|
actions: {
|
|
116
116
|
fetchBookableAsset: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiPagingResults<jamespot_user_api.BookableAssetList, jamespot_user_api.BaseMessages>, void, {
|
|
117
117
|
dispatch: any;
|
|
118
|
-
state:
|
|
118
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & BookableAssetRootState;
|
|
119
119
|
extra: {
|
|
120
120
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
121
121
|
};
|
|
@@ -127,7 +127,7 @@ declare const AssetReservation: {
|
|
|
127
127
|
}>;
|
|
128
128
|
fetchConfiguration: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiWrapper<jamespot_user_api.AssetReservationConfiguration, jamespot_user_api.BaseMessages>, void, {
|
|
129
129
|
dispatch: any;
|
|
130
|
-
state:
|
|
130
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & jamespot_user_api.AssetReservationConfiguration & Loading;
|
|
131
131
|
extra: {
|
|
132
132
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
133
133
|
};
|
|
@@ -139,7 +139,7 @@ declare const AssetReservation: {
|
|
|
139
139
|
}>;
|
|
140
140
|
fetchReservation: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiPagingResults<jamespot_user_api.ReservationList, jamespot_user_api.BaseMessages>, "history" | undefined, {
|
|
141
141
|
dispatch: any;
|
|
142
|
-
state:
|
|
142
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & ReservationRootState;
|
|
143
143
|
extra: {
|
|
144
144
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
145
145
|
};
|
|
@@ -171,6 +171,56 @@ interface bookmarkEditRootState {
|
|
|
171
171
|
bookmarkEdit: bookmarkEditState;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
type ToastType = 'success' | 'warning' | 'error';
|
|
175
|
+
type ToastRootState = {
|
|
176
|
+
toasts: EntityState<ToastEntity>;
|
|
177
|
+
};
|
|
178
|
+
type ToastEntity = {
|
|
179
|
+
id: string;
|
|
180
|
+
label: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
timeout: number;
|
|
183
|
+
type: ToastType;
|
|
184
|
+
};
|
|
185
|
+
declare const actions: {
|
|
186
|
+
addMessage: ({ id, ...toast }: Toast, type?: ToastType, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
187
|
+
success: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
188
|
+
warning: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
189
|
+
error: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
190
|
+
};
|
|
191
|
+
type Toast = {
|
|
192
|
+
id?: string;
|
|
193
|
+
label: string;
|
|
194
|
+
description?: string;
|
|
195
|
+
};
|
|
196
|
+
declare const Toast: {
|
|
197
|
+
slice: _reduxjs_toolkit.Slice<EntityState<ToastEntity>, {
|
|
198
|
+
addOne: {
|
|
199
|
+
<S extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S, EntityState<ToastEntity>, S>, entity: ToastEntity): S;
|
|
200
|
+
<S_1 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_1, EntityState<ToastEntity>, S_1>, action: {
|
|
201
|
+
payload: ToastEntity;
|
|
202
|
+
type: string;
|
|
203
|
+
}): S_1;
|
|
204
|
+
};
|
|
205
|
+
removeOne: {
|
|
206
|
+
<S_2 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_2, EntityState<ToastEntity>, S_2>, key: _reduxjs_toolkit.EntityId): S_2;
|
|
207
|
+
<S_3 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_3, EntityState<ToastEntity>, S_3>, key: {
|
|
208
|
+
payload: _reduxjs_toolkit.EntityId;
|
|
209
|
+
type: string;
|
|
210
|
+
}): S_3;
|
|
211
|
+
};
|
|
212
|
+
}, "toasts">;
|
|
213
|
+
actions: {
|
|
214
|
+
addOne: _reduxjs_toolkit.ActionCreatorWithPayload<ToastEntity, "toasts/addOne">;
|
|
215
|
+
removeOne: _reduxjs_toolkit.ActionCreatorWithPayload<_reduxjs_toolkit.EntityId, "toasts/removeOne">;
|
|
216
|
+
addMessage: ({ id, ...toast }: Toast, type?: ToastType, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
217
|
+
success: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
218
|
+
warning: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
219
|
+
error: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
220
|
+
};
|
|
221
|
+
selectors: _reduxjs_toolkit.EntitySelectors<ToastEntity, ToastRootState>;
|
|
222
|
+
};
|
|
223
|
+
|
|
174
224
|
type bookmarkListState = Loading & {
|
|
175
225
|
bookmarks: BookmarkRawList[];
|
|
176
226
|
nbResults: number;
|
|
@@ -206,15 +256,60 @@ declare const Bookmark: {
|
|
|
206
256
|
resetAddBookmarkStatus: _reduxjs_toolkit.ActionCreatorWithPayload<string, "bookmarkList/resetAddBookmarkStatus">;
|
|
207
257
|
resetMoveBookmarkStatus: _reduxjs_toolkit.ActionCreatorWithoutPayload<"bookmarkList/resetMoveBookmarkStatus">;
|
|
208
258
|
resetDeleteBookmarkStatus: _reduxjs_toolkit.ActionCreatorWithPayload<string, "bookmarkList/resetDeleteBookmarkStatus">;
|
|
209
|
-
addBookmarkRT: _reduxjs_toolkit.ActionCreatorWithPayload<jamespot_user_api.BookmarkRawList<
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
259
|
+
addBookmarkRT: _reduxjs_toolkit.ActionCreatorWithPayload<jamespot_user_api.BookmarkRawList<{
|
|
260
|
+
id: number;
|
|
261
|
+
mainType: string;
|
|
262
|
+
type: string;
|
|
263
|
+
uri: string;
|
|
264
|
+
dateCreation?: string;
|
|
265
|
+
dateModified?: string;
|
|
266
|
+
title: string;
|
|
267
|
+
_url: string;
|
|
268
|
+
}>, "bookmarkList/addBookmarkRT">;
|
|
269
|
+
deleteBookmarkRT: _reduxjs_toolkit.ActionCreatorWithPayload<jamespot_user_api.BookmarkRawList<{
|
|
270
|
+
id: number;
|
|
271
|
+
mainType: string;
|
|
272
|
+
type: string;
|
|
273
|
+
uri: string;
|
|
274
|
+
dateCreation?: string;
|
|
275
|
+
dateModified?: string;
|
|
276
|
+
title: string;
|
|
277
|
+
_url: string;
|
|
278
|
+
}>, "bookmarkList/deleteBookmarkRT">;
|
|
279
|
+
updateBookmarkRT: _reduxjs_toolkit.ActionCreatorWithPayload<jamespot_user_api.BookmarkRawList<{
|
|
280
|
+
id: number;
|
|
281
|
+
mainType: string;
|
|
282
|
+
type: string;
|
|
283
|
+
uri: string;
|
|
284
|
+
dateCreation?: string;
|
|
285
|
+
dateModified?: string;
|
|
286
|
+
title: string;
|
|
287
|
+
_url: string;
|
|
288
|
+
}>, "bookmarkList/updateBookmarkRT">;
|
|
289
|
+
setEditBookmark: _reduxjs_toolkit.ActionCreatorWithPayload<jamespot_user_api.BookmarkRawList<{
|
|
290
|
+
id: number;
|
|
291
|
+
mainType: string;
|
|
292
|
+
type: string;
|
|
293
|
+
uri: string;
|
|
294
|
+
dateCreation?: string;
|
|
295
|
+
dateModified?: string;
|
|
296
|
+
title: string;
|
|
297
|
+
_url: string;
|
|
298
|
+
}>, "bookmarkEdit/setEditBookmark">;
|
|
213
299
|
unsetEditBookmark: _reduxjs_toolkit.ActionCreatorWithoutPayload<"bookmarkEdit/unsetEditBookmark">;
|
|
214
300
|
resetStatus: _reduxjs_toolkit.ActionCreatorWithoutPayload<"bookmarkEdit/resetStatus">;
|
|
215
|
-
fetchBookmark: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiPagingResults<jamespot_user_api.BookmarkRawList<
|
|
301
|
+
fetchBookmark: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiPagingResults<jamespot_user_api.BookmarkRawList<{
|
|
302
|
+
id: number;
|
|
303
|
+
mainType: string;
|
|
304
|
+
type: string;
|
|
305
|
+
uri: string;
|
|
306
|
+
dateCreation?: string;
|
|
307
|
+
dateModified?: string;
|
|
308
|
+
title: string;
|
|
309
|
+
_url: string;
|
|
310
|
+
}>, jamespot_user_api.BaseMessages>, void, {
|
|
216
311
|
dispatch: any;
|
|
217
|
-
state:
|
|
312
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & BookmarkRootState;
|
|
218
313
|
extra: {
|
|
219
314
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
220
315
|
};
|
|
@@ -227,11 +322,38 @@ declare const Bookmark: {
|
|
|
227
322
|
fulfilledMeta?: unknown;
|
|
228
323
|
rejectedMeta?: unknown;
|
|
229
324
|
}>;
|
|
230
|
-
addBookmark: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiWrapper<jamespot_user_api.BookmarkRawList<
|
|
325
|
+
addBookmark: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiWrapper<jamespot_user_api.BookmarkRawList<{
|
|
326
|
+
id: number;
|
|
327
|
+
mainType: string;
|
|
328
|
+
type: string;
|
|
329
|
+
uri: string;
|
|
330
|
+
dateCreation?: string;
|
|
331
|
+
dateModified?: string;
|
|
332
|
+
title: string;
|
|
333
|
+
_url: string;
|
|
334
|
+
}> | jamespot_user_api.BookmarkList<{
|
|
335
|
+
id: number;
|
|
336
|
+
mainType: string;
|
|
337
|
+
type: string;
|
|
338
|
+
uri: string;
|
|
339
|
+
dateCreation?: string;
|
|
340
|
+
dateModified?: string;
|
|
341
|
+
title: string;
|
|
342
|
+
_url: string;
|
|
343
|
+
}>, jamespot_user_api.BaseMessagesOne> | jamespot_user_api.ApiWrapper<jamespot_user_api.BookmarkRawList<{
|
|
344
|
+
id: number;
|
|
345
|
+
mainType: string;
|
|
346
|
+
type: string;
|
|
347
|
+
uri: string;
|
|
348
|
+
dateCreation?: string;
|
|
349
|
+
dateModified?: string;
|
|
350
|
+
title: string;
|
|
351
|
+
_url: string;
|
|
352
|
+
}>, jamespot_user_api.BaseMessages>, (jamespot_user_api.BookmarkCustom | jamespot_user_api.BookmarkLink) & {
|
|
231
353
|
requestId?: string | undefined;
|
|
232
354
|
}, {
|
|
233
355
|
dispatch: any;
|
|
234
|
-
state:
|
|
356
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & BookmarkRootState;
|
|
235
357
|
extra: {
|
|
236
358
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
237
359
|
};
|
|
@@ -245,12 +367,30 @@ declare const Bookmark: {
|
|
|
245
367
|
rejectedMeta?: unknown;
|
|
246
368
|
}>;
|
|
247
369
|
moveBookmark: _reduxjs_toolkit.AsyncThunk<void, {
|
|
248
|
-
bookmark: Pick<jamespot_user_api.BookmarkRawList<
|
|
249
|
-
|
|
370
|
+
bookmark: Pick<jamespot_user_api.BookmarkRawList<{
|
|
371
|
+
id: number;
|
|
372
|
+
mainType: string;
|
|
373
|
+
type: string;
|
|
374
|
+
uri: string;
|
|
375
|
+
dateCreation?: string;
|
|
376
|
+
dateModified?: string;
|
|
377
|
+
title: string;
|
|
378
|
+
_url: string;
|
|
379
|
+
}>, "id">;
|
|
380
|
+
bookmarkReference: Pick<jamespot_user_api.BookmarkRawList<{
|
|
381
|
+
id: number;
|
|
382
|
+
mainType: string;
|
|
383
|
+
type: string;
|
|
384
|
+
uri: string;
|
|
385
|
+
dateCreation?: string;
|
|
386
|
+
dateModified?: string;
|
|
387
|
+
title: string;
|
|
388
|
+
_url: string;
|
|
389
|
+
}>, "id">;
|
|
250
390
|
position: "after" | "before";
|
|
251
391
|
}, {
|
|
252
392
|
dispatch: any;
|
|
253
|
-
state:
|
|
393
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & BookmarkRootState;
|
|
254
394
|
extra: {
|
|
255
395
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
256
396
|
};
|
|
@@ -263,11 +403,20 @@ declare const Bookmark: {
|
|
|
263
403
|
fulfilledMeta?: unknown;
|
|
264
404
|
rejectedMeta?: unknown;
|
|
265
405
|
}>;
|
|
266
|
-
deleteBookmark: _reduxjs_toolkit.AsyncThunk<void, Pick<jamespot_user_api.BookmarkRawList<
|
|
406
|
+
deleteBookmark: _reduxjs_toolkit.AsyncThunk<void, Pick<jamespot_user_api.BookmarkRawList<{
|
|
407
|
+
id: number;
|
|
408
|
+
mainType: string;
|
|
409
|
+
type: string;
|
|
410
|
+
uri: string;
|
|
411
|
+
dateCreation?: string;
|
|
412
|
+
dateModified?: string;
|
|
413
|
+
title: string;
|
|
414
|
+
_url: string;
|
|
415
|
+
}>, "id"> & {
|
|
267
416
|
requestId?: string | undefined;
|
|
268
417
|
}, {
|
|
269
418
|
dispatch: any;
|
|
270
|
-
state:
|
|
419
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & BookmarkRootState;
|
|
271
420
|
extra: {
|
|
272
421
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
273
422
|
};
|
|
@@ -280,9 +429,18 @@ declare const Bookmark: {
|
|
|
280
429
|
fulfilledMeta?: unknown;
|
|
281
430
|
rejectedMeta?: unknown;
|
|
282
431
|
}>;
|
|
283
|
-
editBookmark: _reduxjs_toolkit.AsyncThunk<void, Partial<jamespot_user_api.BookmarkRawList<
|
|
432
|
+
editBookmark: _reduxjs_toolkit.AsyncThunk<void, Partial<jamespot_user_api.BookmarkRawList<{
|
|
433
|
+
id: number;
|
|
434
|
+
mainType: string;
|
|
435
|
+
type: string;
|
|
436
|
+
uri: string;
|
|
437
|
+
dateCreation?: string;
|
|
438
|
+
dateModified?: string;
|
|
439
|
+
title: string;
|
|
440
|
+
_url: string;
|
|
441
|
+
}>>, {
|
|
284
442
|
dispatch: any;
|
|
285
|
-
state:
|
|
443
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & BookmarkRootState;
|
|
286
444
|
extra: {
|
|
287
445
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
288
446
|
};
|
|
@@ -299,7 +457,16 @@ declare const Bookmark: {
|
|
|
299
457
|
selectors: {
|
|
300
458
|
bookmarkList: (state: BookmarkRootState) => bookmarkListState;
|
|
301
459
|
bookmarkListIsInitialized: (state: BookmarkRootState) => boolean;
|
|
302
|
-
bookmarkEditBookmark: (state: BookmarkRootState) => jamespot_user_api.BookmarkRawList<
|
|
460
|
+
bookmarkEditBookmark: (state: BookmarkRootState) => jamespot_user_api.BookmarkRawList<{
|
|
461
|
+
id: number;
|
|
462
|
+
mainType: string;
|
|
463
|
+
type: string;
|
|
464
|
+
uri: string;
|
|
465
|
+
dateCreation?: string;
|
|
466
|
+
dateModified?: string;
|
|
467
|
+
title: string;
|
|
468
|
+
_url: string;
|
|
469
|
+
}> | undefined;
|
|
303
470
|
};
|
|
304
471
|
getRTHandlers: (dispatch: redux.Dispatch<any>) => (jamespot_user_api.RTMessageHandler<"BOOKMARKS"> | jamespot_user_api.RTMessageHandler<"CUSTOM-ACTION">)[];
|
|
305
472
|
};
|
|
@@ -318,7 +485,7 @@ type JLandMapFront$1 = JLandMap & {
|
|
|
318
485
|
};
|
|
319
486
|
type JLandMapListState = {
|
|
320
487
|
maps: Array<JLandMapFront$1>;
|
|
321
|
-
availableLicenses:
|
|
488
|
+
availableLicenses: AdminLicensesNotAssigned;
|
|
322
489
|
loading: 'idle' | 'pending';
|
|
323
490
|
loadingAvailableLicenses: 'idle' | 'pending';
|
|
324
491
|
loadingLicenseOperation: {
|
|
@@ -333,16 +500,6 @@ type JLandMapListRootState = {
|
|
|
333
500
|
type JLandMapFront = JLandMap & {
|
|
334
501
|
urlToJland?: string;
|
|
335
502
|
};
|
|
336
|
-
type JLandState = {
|
|
337
|
-
maps: Array<JLandMapFront>;
|
|
338
|
-
availableLicenses: JLicenseAvailable;
|
|
339
|
-
loading: 'idle' | 'pending';
|
|
340
|
-
loadingAvailableLicenses: 'idle' | 'pending';
|
|
341
|
-
loadingLicenseOperation: {
|
|
342
|
-
[key: number]: 'idle' | 'pending' | undefined;
|
|
343
|
-
};
|
|
344
|
-
loadingMapDeletion: 'idle' | 'pending';
|
|
345
|
-
};
|
|
346
503
|
type JLandRootState = {
|
|
347
504
|
jland: JLandMapListRootState & MapCreateRootState;
|
|
348
505
|
};
|
|
@@ -352,7 +509,7 @@ declare const jland: {
|
|
|
352
509
|
reducer: redux.Reducer<redux.CombinedState<{
|
|
353
510
|
jLandMapList: {
|
|
354
511
|
maps: JLandMapFront$1[];
|
|
355
|
-
availableLicenses:
|
|
512
|
+
availableLicenses: jamespot_user_api.AdminLicensesNotAssigned;
|
|
356
513
|
loading: "idle" | "pending";
|
|
357
514
|
loadingAvailableLicenses: "idle" | "pending";
|
|
358
515
|
loadingLicenseOperation: {
|
|
@@ -369,7 +526,7 @@ declare const jland: {
|
|
|
369
526
|
retrieveAllMaps: boolean;
|
|
370
527
|
}, {
|
|
371
528
|
dispatch: any;
|
|
372
|
-
state:
|
|
529
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & JLandRootState;
|
|
373
530
|
extra: {
|
|
374
531
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
375
532
|
};
|
|
@@ -384,7 +541,7 @@ declare const jland: {
|
|
|
384
541
|
retrieveAllMaps: boolean;
|
|
385
542
|
}, {
|
|
386
543
|
dispatch: any;
|
|
387
|
-
state:
|
|
544
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & JLandRootState;
|
|
388
545
|
extra: {
|
|
389
546
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
390
547
|
};
|
|
@@ -399,7 +556,7 @@ declare const jland: {
|
|
|
399
556
|
retrieveAllMaps: boolean;
|
|
400
557
|
}, {
|
|
401
558
|
dispatch: any;
|
|
402
|
-
state:
|
|
559
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & JLandRootState;
|
|
403
560
|
extra: {
|
|
404
561
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
405
562
|
};
|
|
@@ -414,7 +571,7 @@ declare const jland: {
|
|
|
414
571
|
retrieveAllMaps: boolean;
|
|
415
572
|
}, {
|
|
416
573
|
dispatch: any;
|
|
417
|
-
state:
|
|
574
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & JLandRootState;
|
|
418
575
|
extra: {
|
|
419
576
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
420
577
|
};
|
|
@@ -424,9 +581,9 @@ declare const jland: {
|
|
|
424
581
|
fulfilledMeta?: unknown;
|
|
425
582
|
rejectedMeta?: unknown;
|
|
426
583
|
}>;
|
|
427
|
-
fetchJLandAvailableLicenses: _reduxjs_toolkit.AsyncThunk<
|
|
584
|
+
fetchJLandAvailableLicenses: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.AdminLicensesNotAssigned, void, {
|
|
428
585
|
dispatch: any;
|
|
429
|
-
state:
|
|
586
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & JLandRootState;
|
|
430
587
|
extra: {
|
|
431
588
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
432
589
|
};
|
|
@@ -441,7 +598,7 @@ declare const jland: {
|
|
|
441
598
|
map: MapCreationFront;
|
|
442
599
|
}, {
|
|
443
600
|
dispatch: any;
|
|
444
|
-
state:
|
|
601
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & JLandRootState;
|
|
445
602
|
extra: {
|
|
446
603
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
447
604
|
};
|
|
@@ -456,7 +613,7 @@ declare const jland: {
|
|
|
456
613
|
};
|
|
457
614
|
selectors: {
|
|
458
615
|
selectJLandMaps: (state: JLandRootState) => JLandMapFront$1[];
|
|
459
|
-
selectJLandAvailableLicenses: (state: JLandRootState) =>
|
|
616
|
+
selectJLandAvailableLicenses: (state: JLandRootState) => jamespot_user_api.AdminLicensesNotAssigned;
|
|
460
617
|
selectMapCreate: (state: JLandRootState) => MapCreateState;
|
|
461
618
|
};
|
|
462
619
|
utils: {
|
|
@@ -501,54 +658,50 @@ declare const Model: {
|
|
|
501
658
|
selectors: _reduxjs_toolkit.EntitySelectors<Model$1<string>, ModelRootState>;
|
|
502
659
|
};
|
|
503
660
|
|
|
504
|
-
type
|
|
505
|
-
|
|
506
|
-
|
|
661
|
+
type ChannelsListState = Loading & {
|
|
662
|
+
channels: PagingResults<TVChannelList> | undefined;
|
|
663
|
+
loadingChannelDeletion: 'idle' | 'pending';
|
|
507
664
|
};
|
|
508
|
-
type
|
|
509
|
-
|
|
510
|
-
label: string;
|
|
511
|
-
description?: string;
|
|
512
|
-
timeout: number;
|
|
513
|
-
type: ToastType;
|
|
514
|
-
};
|
|
515
|
-
declare const actions: {
|
|
516
|
-
addMessage: ({ id, ...toast }: Toast, type?: ToastType, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
517
|
-
success: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
518
|
-
warning: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
519
|
-
error: (toast: Toast, timeout?: number) => (dispatch: Dispatch$1) => string;
|
|
665
|
+
type ChannelsListRootState = {
|
|
666
|
+
channelsList: ChannelsListState;
|
|
520
667
|
};
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
668
|
+
|
|
669
|
+
declare function isChannelConfigured(channel: TVChannelList): boolean;
|
|
670
|
+
|
|
671
|
+
type TVDisplayRootState = {
|
|
672
|
+
tvDisplay: ChannelsListRootState;
|
|
525
673
|
};
|
|
526
|
-
declare const
|
|
527
|
-
slice:
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
<S_3 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_3, EntityState<ToastEntity>, S_3>, key: {
|
|
538
|
-
payload: _reduxjs_toolkit.EntityId;
|
|
539
|
-
type: string;
|
|
540
|
-
}): S_3;
|
|
541
|
-
};
|
|
542
|
-
}, "toasts">;
|
|
674
|
+
declare const TVDisplay: {
|
|
675
|
+
slice: {
|
|
676
|
+
name: "tvDisplay";
|
|
677
|
+
reducer: redux.Reducer<redux.CombinedState<{
|
|
678
|
+
channelsList: {
|
|
679
|
+
loading: "idle" | "pending";
|
|
680
|
+
channels: jamespot_user_api.PagingResults<jamespot_user_api.TVChannelList> | undefined;
|
|
681
|
+
loadingChannelDeletion: "idle" | "pending";
|
|
682
|
+
};
|
|
683
|
+
}>, redux.AnyAction>;
|
|
684
|
+
};
|
|
543
685
|
actions: {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
686
|
+
fetchChannels: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.PagingResults<jamespot_user_api.TVChannelList>, number | void, {
|
|
687
|
+
dispatch: any;
|
|
688
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState> & TVDisplayRootState;
|
|
689
|
+
extra: {
|
|
690
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
691
|
+
};
|
|
692
|
+
rejectValue?: unknown;
|
|
693
|
+
serializedErrorType?: unknown;
|
|
694
|
+
pendingMeta?: unknown;
|
|
695
|
+
fulfilledMeta?: unknown;
|
|
696
|
+
rejectedMeta?: unknown;
|
|
697
|
+
}>;
|
|
698
|
+
};
|
|
699
|
+
selectors: {
|
|
700
|
+
selectChannelsList: (state: TVDisplayRootState) => ChannelsListState;
|
|
701
|
+
};
|
|
702
|
+
utils: {
|
|
703
|
+
isChannelConfigured: typeof isChannelConfigured;
|
|
550
704
|
};
|
|
551
|
-
selectors: _reduxjs_toolkit.EntitySelectors<ToastEntity, ToastRootState>;
|
|
552
705
|
};
|
|
553
706
|
|
|
554
707
|
type UserCurrentRootState = {
|
|
@@ -726,4 +879,4 @@ declare const WidgetEditor: {
|
|
|
726
879
|
};
|
|
727
880
|
};
|
|
728
881
|
|
|
729
|
-
export { Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, EditorProps, EditorsRootState, EditorsState, JLandMapFront, JLandRootState,
|
|
882
|
+
export { Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, EditorProps, EditorsRootState, EditorsState, JLandMapFront, JLandRootState, MODE_EDIT, MODE_VIEW, MapCreationFront, Model, ModelRootState, ReservationForm, RootDispatch, RootState, TVDisplay, TVDisplayRootState, ThunkApiConfig, Toast, ToastRootState, UserCurrent, UserCurrentRootState, Widget, WidgetEditor, WidgetModalProps, actions, jland, slice };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-front-business",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
4
4
|
"description": "typescript utils",
|
|
5
5
|
"main": "dist/cjs.js",
|
|
6
6
|
"module": "dist/esm.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@reduxjs/toolkit": "1.9.0",
|
|
48
|
-
"jamespot-user-api": "^1.0.
|
|
48
|
+
"jamespot-user-api": "^1.0.104",
|
|
49
49
|
"react-redux": "7.2.9",
|
|
50
50
|
"redux": "4.2.0"
|
|
51
51
|
}
|