jamespot-front-business 1.1.50 → 1.1.52
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 +192 -117
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +190 -118
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +165 -4
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as redux from 'redux';
|
|
2
2
|
import { Dispatch as Dispatch$1 } from 'redux';
|
|
3
3
|
import * as jamespot_user_api from 'jamespot-user-api';
|
|
4
|
-
import { AnimationConfigurationType, ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, jTaxonomyLittle, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, HookListType, JLandMap, AdminLicensesNotAssigned, jArticleView, Filters, Orders, PagingResults, MediaLibraryList, ApiPagingResults, ApiWrapper, Model as Model$1, NetworkType, WedocFileType, jUserLittle, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys,
|
|
4
|
+
import { AnimationConfigurationType, ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, jTaxonomyLittle, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, HookListType, JLandMap, AdminLicensesNotAssigned, jArticleView, Filters, Orders, PagingResults, MediaLibraryList, MediaLibraryStats, MediaLibraryFolderStats, MediaLibraryFilesStats, ApiPagingResults, ApiWrapper, Model as Model$1, NetworkType, WedocFileType, jUserLittle, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetDefinitionProps, WidgetWrapperProps, WidgetTypeKeys, CombinedWidgetContent, WidgetsState, jObjectLittle, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
|
|
5
5
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
6
6
|
import { EntityState, Dispatch, Action, PayloadAction } from '@reduxjs/toolkit';
|
|
7
7
|
import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
|
|
@@ -1664,6 +1664,10 @@ declare const MagicPad: {
|
|
|
1664
1664
|
declare type MediaLibraryRootState = {
|
|
1665
1665
|
mediaLibrary: MediaLibraryState;
|
|
1666
1666
|
};
|
|
1667
|
+
declare type PagingState<T extends object> = {
|
|
1668
|
+
loading: boolean;
|
|
1669
|
+
pager: PagingResults<T> | null;
|
|
1670
|
+
};
|
|
1667
1671
|
declare type MediaLibraryState = {
|
|
1668
1672
|
loading: 'idle' | 'pending';
|
|
1669
1673
|
page: number;
|
|
@@ -1675,6 +1679,9 @@ declare type MediaLibraryState = {
|
|
|
1675
1679
|
totalPages: number;
|
|
1676
1680
|
};
|
|
1677
1681
|
mediaLibraryAccess: boolean;
|
|
1682
|
+
stats: MediaLibraryStats | null;
|
|
1683
|
+
foldersStats: PagingState<MediaLibraryFolderStats>;
|
|
1684
|
+
filesStats: PagingState<MediaLibraryFilesStats>;
|
|
1678
1685
|
};
|
|
1679
1686
|
declare const mediaLibrarySlice: _reduxjs_toolkit.Slice<MediaLibraryState, {
|
|
1680
1687
|
setPage(state: Draft<S>, action: PayloadAction<number>): any;
|
|
@@ -1721,6 +1728,67 @@ declare const fetchMediaLibraryConfig: _reduxjs_toolkit.AsyncThunk<ApiWrapper<bo
|
|
|
1721
1728
|
fulfilledMeta?: unknown;
|
|
1722
1729
|
rejectedMeta?: unknown;
|
|
1723
1730
|
}>;
|
|
1731
|
+
declare const fetchMediaLibraryFoldersStats: _reduxjs_toolkit.AsyncThunk<ApiWrapper<PagingResults<{
|
|
1732
|
+
id: number;
|
|
1733
|
+
folderName: string;
|
|
1734
|
+
nb: number;
|
|
1735
|
+
nbDistinct: number;
|
|
1736
|
+
}>, jamespot_user_api.BaseMessages>, {
|
|
1737
|
+
page: number;
|
|
1738
|
+
filters: Filters;
|
|
1739
|
+
orders: Orders;
|
|
1740
|
+
}, {
|
|
1741
|
+
dispatch: any;
|
|
1742
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & MediaLibraryRootState;
|
|
1743
|
+
extra: {
|
|
1744
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
1745
|
+
};
|
|
1746
|
+
rejectValue?: unknown;
|
|
1747
|
+
serializedErrorType?: unknown;
|
|
1748
|
+
pendingMeta?: unknown;
|
|
1749
|
+
fulfilledMeta?: unknown;
|
|
1750
|
+
rejectedMeta?: unknown;
|
|
1751
|
+
}>;
|
|
1752
|
+
declare const fetchMediaLibraryFilesStats: _reduxjs_toolkit.AsyncThunk<ApiWrapper<PagingResults<{
|
|
1753
|
+
id: number;
|
|
1754
|
+
fileName: string;
|
|
1755
|
+
nbViews: number;
|
|
1756
|
+
nbDistinctViews: number;
|
|
1757
|
+
nbDownloads: number;
|
|
1758
|
+
idFolder?: number | undefined;
|
|
1759
|
+
}>, jamespot_user_api.BaseMessages>, {
|
|
1760
|
+
page: number;
|
|
1761
|
+
filters: Filters;
|
|
1762
|
+
orders: Orders;
|
|
1763
|
+
}, {
|
|
1764
|
+
dispatch: any;
|
|
1765
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & MediaLibraryRootState;
|
|
1766
|
+
extra: {
|
|
1767
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
1768
|
+
};
|
|
1769
|
+
rejectValue?: unknown;
|
|
1770
|
+
serializedErrorType?: unknown;
|
|
1771
|
+
pendingMeta?: unknown;
|
|
1772
|
+
fulfilledMeta?: unknown;
|
|
1773
|
+
rejectedMeta?: unknown;
|
|
1774
|
+
}>;
|
|
1775
|
+
declare const fetchMediaLibraryStats: _reduxjs_toolkit.AsyncThunk<ApiWrapper<{
|
|
1776
|
+
nbFolders: number;
|
|
1777
|
+
nbFiles: number;
|
|
1778
|
+
}, jamespot_user_api.BaseMessages>, {
|
|
1779
|
+
filters: Filters;
|
|
1780
|
+
}, {
|
|
1781
|
+
dispatch: any;
|
|
1782
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & MediaLibraryRootState;
|
|
1783
|
+
extra: {
|
|
1784
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
1785
|
+
};
|
|
1786
|
+
rejectValue?: unknown;
|
|
1787
|
+
serializedErrorType?: unknown;
|
|
1788
|
+
pendingMeta?: unknown;
|
|
1789
|
+
fulfilledMeta?: unknown;
|
|
1790
|
+
rejectedMeta?: unknown;
|
|
1791
|
+
}>;
|
|
1724
1792
|
declare const mediaLibraryReducer: redux.Reducer<MediaLibraryState, redux.AnyAction>;
|
|
1725
1793
|
declare const MediaLibrary: {
|
|
1726
1794
|
slice: _reduxjs_toolkit.Slice<MediaLibraryState, {
|
|
@@ -1769,9 +1837,88 @@ declare const MediaLibrary: {
|
|
|
1769
1837
|
fulfilledMeta?: unknown;
|
|
1770
1838
|
rejectedMeta?: unknown;
|
|
1771
1839
|
}>;
|
|
1840
|
+
fetchMediaLibraryStats: _reduxjs_toolkit.AsyncThunk<ApiWrapper<{
|
|
1841
|
+
nbFolders: number;
|
|
1842
|
+
nbFiles: number;
|
|
1843
|
+
}, jamespot_user_api.BaseMessages>, {
|
|
1844
|
+
filters: Filters;
|
|
1845
|
+
}, {
|
|
1846
|
+
dispatch: any;
|
|
1847
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & MediaLibraryRootState;
|
|
1848
|
+
extra: {
|
|
1849
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
1850
|
+
};
|
|
1851
|
+
rejectValue?: unknown;
|
|
1852
|
+
serializedErrorType?: unknown;
|
|
1853
|
+
pendingMeta?: unknown;
|
|
1854
|
+
fulfilledMeta?: unknown;
|
|
1855
|
+
rejectedMeta?: unknown;
|
|
1856
|
+
}>;
|
|
1857
|
+
fetchMediaLibraryFilesStats: _reduxjs_toolkit.AsyncThunk<ApiWrapper<PagingResults<{
|
|
1858
|
+
id: number;
|
|
1859
|
+
fileName: string;
|
|
1860
|
+
nbViews: number;
|
|
1861
|
+
nbDistinctViews: number;
|
|
1862
|
+
nbDownloads: number;
|
|
1863
|
+
idFolder?: number | undefined;
|
|
1864
|
+
}>, jamespot_user_api.BaseMessages>, {
|
|
1865
|
+
page: number;
|
|
1866
|
+
filters: Filters;
|
|
1867
|
+
orders: Orders;
|
|
1868
|
+
}, {
|
|
1869
|
+
dispatch: any;
|
|
1870
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & MediaLibraryRootState;
|
|
1871
|
+
extra: {
|
|
1872
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
1873
|
+
};
|
|
1874
|
+
rejectValue?: unknown;
|
|
1875
|
+
serializedErrorType?: unknown;
|
|
1876
|
+
pendingMeta?: unknown;
|
|
1877
|
+
fulfilledMeta?: unknown;
|
|
1878
|
+
rejectedMeta?: unknown;
|
|
1879
|
+
}>;
|
|
1880
|
+
fetchMediaLibraryFoldersStats: _reduxjs_toolkit.AsyncThunk<ApiWrapper<PagingResults<{
|
|
1881
|
+
id: number;
|
|
1882
|
+
folderName: string;
|
|
1883
|
+
nb: number;
|
|
1884
|
+
nbDistinct: number;
|
|
1885
|
+
}>, jamespot_user_api.BaseMessages>, {
|
|
1886
|
+
page: number;
|
|
1887
|
+
filters: Filters;
|
|
1888
|
+
orders: Orders;
|
|
1889
|
+
}, {
|
|
1890
|
+
dispatch: any;
|
|
1891
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & MediaLibraryRootState;
|
|
1892
|
+
extra: {
|
|
1893
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
1894
|
+
};
|
|
1895
|
+
rejectValue?: unknown;
|
|
1896
|
+
serializedErrorType?: unknown;
|
|
1897
|
+
pendingMeta?: unknown;
|
|
1898
|
+
fulfilledMeta?: unknown;
|
|
1899
|
+
rejectedMeta?: unknown;
|
|
1900
|
+
}>;
|
|
1772
1901
|
};
|
|
1773
1902
|
selectors: {
|
|
1774
1903
|
selectMediaLibrary: (state: MediaLibraryRootState) => MediaLibraryState;
|
|
1904
|
+
selectMediaLibraryStats: (state: MediaLibraryRootState) => {
|
|
1905
|
+
nbFolders: number;
|
|
1906
|
+
nbFiles: number;
|
|
1907
|
+
} | null;
|
|
1908
|
+
selectMediaLibraryFoldersStats: (state: MediaLibraryRootState) => PagingState<{
|
|
1909
|
+
id: number;
|
|
1910
|
+
folderName: string;
|
|
1911
|
+
nb: number;
|
|
1912
|
+
nbDistinct: number;
|
|
1913
|
+
}>;
|
|
1914
|
+
selectMediaLibraryFilesStats: (state: MediaLibraryRootState) => PagingState<{
|
|
1915
|
+
id: number;
|
|
1916
|
+
fileName: string;
|
|
1917
|
+
nbViews: number;
|
|
1918
|
+
nbDistinctViews: number;
|
|
1919
|
+
nbDownloads: number;
|
|
1920
|
+
idFolder?: number | undefined;
|
|
1921
|
+
}>;
|
|
1775
1922
|
};
|
|
1776
1923
|
};
|
|
1777
1924
|
|
|
@@ -2255,8 +2402,6 @@ declare const UserCurrent: {
|
|
|
2255
2402
|
};
|
|
2256
2403
|
};
|
|
2257
2404
|
|
|
2258
|
-
declare function widgetFactory<T extends WidgetKeys>(name: T): WidgetWrapperProps<WidgetTypeKeys[T]>;
|
|
2259
|
-
|
|
2260
2405
|
declare function uniqid(): string;
|
|
2261
2406
|
|
|
2262
2407
|
declare const WIDGET_ARTICLE_TITLE = "widget-article-title";
|
|
@@ -2294,6 +2439,8 @@ declare namespace WIDGETS {
|
|
|
2294
2439
|
|
|
2295
2440
|
declare function widgetDefinition(name: WidgetKeys | undefined): WidgetDefinitionProps;
|
|
2296
2441
|
|
|
2442
|
+
declare function widgetFactory<T extends WidgetKeys>(name: T): WidgetWrapperProps<WidgetTypeKeys[T]>;
|
|
2443
|
+
|
|
2297
2444
|
declare const MODE_EDIT = "edit";
|
|
2298
2445
|
declare const MODE_VIEW = "view";
|
|
2299
2446
|
declare type WidgetModalProps = {
|
|
@@ -2320,6 +2467,10 @@ declare const Widget: {
|
|
|
2320
2467
|
uniqid: string;
|
|
2321
2468
|
widget: WidgetWrapperProps;
|
|
2322
2469
|
}>) => void;
|
|
2470
|
+
registerWidgetObject: (state: Draft<S>, action: PayloadAction<{
|
|
2471
|
+
uniqid: string;
|
|
2472
|
+
object: Partial<jObjectLittle>;
|
|
2473
|
+
}>) => void;
|
|
2323
2474
|
updateWidget: (state: Draft<S>, action: PayloadAction<{
|
|
2324
2475
|
uniqid: string;
|
|
2325
2476
|
content: Partial<CombinedWidgetContent>;
|
|
@@ -2383,6 +2534,16 @@ declare const Widget: {
|
|
|
2383
2534
|
selectWidgetState: (state: WidgetsRootState, uniqid: string) => WidgetStateProps | undefined;
|
|
2384
2535
|
selectWidgetContent: (state: WidgetsRootState, uniqid: string) => CombinedWidgetContent | undefined;
|
|
2385
2536
|
selectModal: (state: WidgetsRootState) => jamespot_user_api.WidgetModalProps | undefined;
|
|
2537
|
+
selectWidgetObject: (state: WidgetsRootState, uniqid: string) => Partial<{
|
|
2538
|
+
type: string;
|
|
2539
|
+
id: number;
|
|
2540
|
+
mainType: string;
|
|
2541
|
+
uri: string;
|
|
2542
|
+
title: string;
|
|
2543
|
+
_url: string;
|
|
2544
|
+
dateCreation?: string | undefined;
|
|
2545
|
+
dateModified?: string | null | undefined;
|
|
2546
|
+
}> | undefined;
|
|
2386
2547
|
};
|
|
2387
2548
|
};
|
|
2388
2549
|
|
|
@@ -2601,4 +2762,4 @@ declare const studio: {
|
|
|
2601
2762
|
};
|
|
2602
2763
|
};
|
|
2603
2764
|
|
|
2604
|
-
export { APP_STATUS_TYPE, AUDIENCE, AnimationSliceRootState, Animations, AnimationsRootState, AppAttrSolrModel, AppAttrWidgetModel, AppColumnsDefaultTypes, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormUniqueList, AppInstallForType, AppLabelContentType, AppLabelsType, AppServerDisplayModel, AppServerDisplaysModel, AppServerViewModel, AppStatusKeys, AppStatusType, AppTableAttributesModel, AppTableModel, AppTypeServerModel, AppViewFieldItem, AppViewFieldsItems, AppViews, AppViewsFields, Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, CheckBoxOption, Comment, CommentListRootState, CommentListState, CommentRootState, CommentsList, ContentTypePropertyValue, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, Hook, HookRootState, JLandMapFront, JLandRootState, JType, MODE_EDIT, MODE_VIEW, MagicPad, MagicPadRootState, MagicPadSliceRootState, MapCreationFront, MapExtraFieldsWithView, MediaLibrary, MediaLibraryRootState, MediaLibraryState, Model, ModelRootState, Network, NetworkRootState, Platform, PlatformRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, TaxonomyPropertyValue, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, animationsReducer, animationsSlice, deleteCurrentAnimation, fetchCurrentAnimation, fetchCurrentAnimationApp, fetchMediaLibraryConfig, fetchMediaLibraryFolders, fetchMediaLibraryUnclassifiedFiles, fetchPads, jland, magicPadSlice, mediaLibraryReducer, mediaLibrarySlice, saveCurrentAnimation, slice, studio, toggleAnimationIsActive, updateWidgetContent, viewsList };
|
|
2765
|
+
export { APP_STATUS_TYPE, AUDIENCE, AnimationSliceRootState, Animations, AnimationsRootState, AppAttrSolrModel, AppAttrWidgetModel, AppColumnsDefaultTypes, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormUniqueList, AppInstallForType, AppLabelContentType, AppLabelsType, AppServerDisplayModel, AppServerDisplaysModel, AppServerViewModel, AppStatusKeys, AppStatusType, AppTableAttributesModel, AppTableModel, AppTypeServerModel, AppViewFieldItem, AppViewFieldsItems, AppViews, AppViewsFields, Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, CheckBoxOption, Comment, CommentListRootState, CommentListState, CommentRootState, CommentsList, ContentTypePropertyValue, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, Hook, HookRootState, JLandMapFront, JLandRootState, JType, MODE_EDIT, MODE_VIEW, MagicPad, MagicPadRootState, MagicPadSliceRootState, MapCreationFront, MapExtraFieldsWithView, MediaLibrary, MediaLibraryRootState, MediaLibraryState, Model, ModelRootState, Network, NetworkRootState, PagingState, Platform, PlatformRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, TaxonomyPropertyValue, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, animationsReducer, animationsSlice, deleteCurrentAnimation, fetchCurrentAnimation, fetchCurrentAnimationApp, fetchMediaLibraryConfig, fetchMediaLibraryFilesStats, fetchMediaLibraryFolders, fetchMediaLibraryFoldersStats, fetchMediaLibraryStats, fetchMediaLibraryUnclassifiedFiles, fetchPads, jland, magicPadSlice, mediaLibraryReducer, mediaLibrarySlice, saveCurrentAnimation, slice, studio, toggleAnimationIsActive, updateWidgetContent, viewsList };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-front-business",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.52",
|
|
4
4
|
"description": "typescript utils",
|
|
5
5
|
"main": "dist/cjs.js",
|
|
6
6
|
"module": "dist/esm.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@reduxjs/toolkit": "1.9.0",
|
|
41
41
|
"@types/uuid": "^9.0.8",
|
|
42
|
-
"jamespot-user-api": "^1.0.
|
|
42
|
+
"jamespot-user-api": "^1.0.165",
|
|
43
43
|
"react-redux": "7.2.9",
|
|
44
44
|
"redux": "4.2.0",
|
|
45
45
|
"uuid": "^9.0.1"
|