jamespot-front-business 1.3.7 → 1.3.8
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/src/index.d.ts +2 -0
- package/dist/src/store/admin/logs/logs.d.ts +97 -0
- package/dist/src/store/admin/logs/logs.mock.d.ts +64 -0
- package/dist/src/store/admin/logs/logsNavigation.d.ts +23 -0
- package/dist/src/store/admin/logs/logsObjects.d.ts +23 -0
- package/dist/src/store/admin/logs/logsSearch.d.ts +23 -0
- package/dist/src/store/admin/logs/types.d.ts +12 -0
- package/dist/src/store/animations/animationStats.d.ts +19 -0
- package/dist/src/store/animations/animationStatsCurrent.d.ts +17 -0
- package/dist/src/store/animations/animations.d.ts +150 -0
- package/dist/src/store/animations/animations.mock.d.ts +9 -0
- package/dist/src/store/animations/animationsList.d.ts +75 -0
- package/dist/src/store/animations/animationsRTHandlers.d.ts +3 -0
- package/dist/src/store/animations/animationsRTHandlers.mock.d.ts +4 -0
- package/dist/src/store/animations/types.d.ts +22 -0
- package/dist/src/store/application/application.d.ts +48 -0
- package/dist/src/store/application/application.mock.d.ts +4 -0
- package/dist/src/store/application/application.types.d.ts +5 -0
- package/dist/src/store/article/article.d.ts +3 -0
- package/dist/src/store/article/articleRTHandlers.d.ts +2 -0
- package/dist/src/store/article/articleRTHandlers.mock.d.ts +4 -0
- package/dist/src/store/assetReservation/assetReservation.d.ts +74 -0
- package/dist/src/store/assetReservation/assetReservation.types.d.ts +31 -0
- package/dist/src/store/assetReservation/bookableAsset.d.ts +15 -0
- package/dist/src/store/assetReservation/bookableAsset.mock.d.ts +2 -0
- package/dist/src/store/assetReservation/configuration.d.ts +25 -0
- package/dist/src/store/assetReservation/configuration.mock.d.ts +17 -0
- package/dist/src/store/assetReservation/reservation.d.ts +20 -0
- package/dist/src/store/assetReservation/reservation.mock.d.ts +2 -0
- package/dist/src/store/bookmark/bookmark.d.ts +472 -0
- package/dist/src/store/bookmark/bookmark.types.d.ts +31 -0
- package/dist/src/store/bookmark/bookmarkList.d.ts +226 -0
- package/dist/src/store/bookmark/bookmarkList.mock.d.ts +201 -0
- package/dist/src/store/bookmark/bookmarkRTHandlers.d.ts +5 -0
- package/dist/src/store/bookmark/bookmarkRTHandlers.mock.d.ts +94 -0
- package/dist/src/store/bookmark/editBookmarkForm.d.ts +52 -0
- package/dist/src/store/bookmark/editBookmarkForm.mock.d.ts +4 -0
- package/dist/src/store/calendar/calendar.d.ts +347 -0
- package/dist/src/store/calendar/calendar.types.d.ts +22 -0
- package/dist/src/store/calendar/calendarEvents.d.ts +164 -0
- package/dist/src/store/calendar/calendarEvents.mock.d.ts +6 -0
- package/dist/src/store/calendar/calendarRTHandlers.d.ts +5 -0
- package/dist/src/store/calendar/calendarRTHandlers.mock.d.ts +16 -0
- package/dist/src/store/comment/comment.d.ts +66 -0
- package/dist/src/store/comment/comment.types.d.ts +18 -0
- package/dist/src/store/comment/commentList.d.ts +52 -0
- package/dist/src/store/comment/commentList.mock.d.ts +2 -0
- package/dist/src/store/comment/commentRTHandlers.d.ts +3 -0
- package/dist/src/store/comment/commentRTHandlers.mock.d.ts +102 -0
- package/dist/src/store/comment/commentsLikeRTHandlers.d.ts +3 -0
- package/dist/src/store/comment/commentsLikeRTHandlers.mock.d.ts +96 -0
- package/dist/src/store/contentReport/contentReport.d.ts +89 -0
- package/dist/src/store/contentReport/contentReport.mock.d.ts +3 -0
- package/dist/src/store/contentReport/contentReport.types.d.ts +17 -0
- package/dist/src/store/extraBot/extraBot.const.d.ts +7 -0
- package/dist/src/store/extraBot/extraBot.d.ts +167 -0
- package/dist/src/store/extraBot/extraBot.mock.d.ts +8 -0
- package/dist/src/store/extraBot/extraBot.types.d.ts +21 -0
- package/dist/src/store/faq/faq.d.ts +67 -0
- package/dist/src/store/faq/faq.types.d.ts +14 -0
- package/dist/src/store/faq/faqCategories.d.ts +20 -0
- package/dist/src/store/faq/faqCategories.mock.d.ts +2 -0
- package/dist/src/store/faq/faqConfig.d.ts +26 -0
- package/dist/src/store/faq/faqConfig.mock.d.ts +3 -0
- package/dist/src/store/fileIntegrity/fileIntegrity.const.d.ts +7 -0
- package/dist/src/store/fileIntegrity/fileIntegrity.d.ts +116 -0
- package/dist/src/store/fileIntegrity/fileIntegrity.mock.d.ts +4 -0
- package/dist/src/store/fileIntegrity/fileIntegrity.types.d.ts +12 -0
- package/dist/src/store/hook/hook.d.ts +505 -0
- package/dist/src/store/hook/hook.mock.d.ts +2 -0
- package/dist/src/store/hook/hook.types.d.ts +4 -0
- package/dist/src/store/hook/utils/driveHook.utils.d.ts +2 -0
- package/dist/src/store/index.d.ts +30 -0
- package/dist/src/store/jland/jland.d.ts +130 -0
- package/dist/src/store/jland/jland.types.d.ts +39 -0
- package/dist/src/store/jland/mapCreate.d.ts +21 -0
- package/dist/src/store/jland/mapCreate.mock.d.ts +82 -0
- package/dist/src/store/jland/mapList.d.ts +93 -0
- package/dist/src/store/jland/mapList.mock.d.ts +105 -0
- package/dist/src/store/jland/utils.d.ts +3 -0
- package/dist/src/store/magicPad/magicPad.d.ts +59 -0
- package/dist/src/store/magicPad/magicPad.mock.d.ts +2 -0
- package/dist/src/store/magicPad/magicPad.types.d.ts +15 -0
- package/dist/src/store/mediaLibrary/mediaLibrary.const.d.ts +7 -0
- package/dist/src/store/mediaLibrary/mediaLibrary.d.ts +454 -0
- package/dist/src/store/mediaLibrary/mediaLibrary.types.d.ts +24 -0
- package/dist/src/store/mediaLibrary/medialibrary.mock.d.ts +72 -0
- package/dist/src/store/model/model.d.ts +51 -0
- package/dist/src/store/model/model.mock.d.ts +144 -0
- package/dist/src/store/model/model.types.d.ts +5 -0
- package/dist/src/store/network/network.d.ts +29 -0
- package/dist/src/store/network/network.types.d.ts +10 -0
- package/dist/src/store/network/networkStatics.d.ts +5 -0
- package/dist/src/store/platform/platform.d.ts +20 -0
- package/dist/src/store/platform/platform.types.d.ts +11 -0
- package/dist/src/store/platform/platformConfig.d.ts +5 -0
- package/dist/src/store/share/share.actions.d.ts +16 -0
- package/dist/src/store/share/share.d.ts +29 -0
- package/dist/src/store/share/share.mock.d.ts +2 -0
- package/dist/src/store/share/share.slice.d.ts +5 -0
- package/dist/src/store/share/share.types.d.ts +9 -0
- package/dist/src/store/socialActions/socialActions.d.ts +49 -0
- package/dist/src/store/socialActions/socialActions.mock.d.ts +2 -0
- package/dist/src/store/studio/StudioAppsList.d.ts +108 -0
- package/dist/src/store/studio/appListMocks/appInWorkNoValue.d.ts +4 -0
- package/dist/src/store/studio/appListMocks/studioSuspendedTransformed.d.ts +2624 -0
- package/dist/src/store/studio/currentStudioApp.d.ts +54 -0
- package/dist/src/store/studio/mocks/erikBug/erikList.mock.d.ts +587 -0
- package/dist/src/store/studio/mocks/erikBug/getActiviteCE.mock.d.ts +1028 -0
- package/dist/src/store/studio/mocks/erikBug/getConge.mock.d.ts +3 -0
- package/dist/src/store/studio/mocks/erikBug/getCongeSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getEmploi.mock.d.ts +1022 -0
- package/dist/src/store/studio/mocks/erikBug/getEmploiSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getEquipment.mock.d.ts +1020 -0
- package/dist/src/store/studio/mocks/erikBug/getEquipmentSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getIncident.mock.d.ts +3 -0
- package/dist/src/store/studio/mocks/erikBug/getIncidentSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getTelephoneSaved.mock.d.ts +11 -0
- package/dist/src/store/studio/mocks/erikBug/getTrad.mock.d.ts +996 -0
- package/dist/src/store/studio/mocks/erikBug/taxoList.mock.d.ts +16 -0
- package/dist/src/store/studio/mocks/publishtoAndHtmlIssues/StudioList.d.ts +47 -0
- package/dist/src/store/studio/mocks/publishtoAndHtmlIssues/app1.d.ts +1016 -0
- package/dist/src/store/studio/studio.d.ts +172 -0
- package/dist/src/store/studio/studio.types.d.ts +572 -0
- package/dist/src/store/studio/studioAppsList.mock.d.ts +896 -0
- package/dist/src/store/studio/utils/appToXml.d.ts +6 -0
- package/dist/src/store/studio/utils/cloneStudioAppFromExistingApp.d.ts +2 -0
- package/dist/src/store/studio/utils/createNewStudioApp.d.ts +11 -0
- package/dist/src/store/studio/utils/generateNewFormField.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/fieldBuilders.d.ts +219 -0
- package/dist/src/store/studio/utils/installedToV2/installedToV2.d.ts +13 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/allFieldsInstalled.mock.d.ts +1300 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/allFieldsInstalled2.mock.d.ts +1274 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/allFieldsV2-2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/allFieldsV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppAudienceInstalled.mock.d.ts +860 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppAudienceV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppFluxInstalled.mock.d.ts +774 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppFluxV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppInstalled.mock.d.ts +782 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/baseAppV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/selectCommentModif.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/selectCommentModifInstalled.mock.d.ts +787 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/simpleFieldsInstalled.mock.d.ts +852 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/simpleFieldsV2.mock.d.ts +2 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/specialApp.mock.d.ts +834 -0
- package/dist/src/store/studio/utils/installedToV2/mocks/wrongFixedAndHtmlData.d.ts +1308 -0
- package/dist/src/store/studio/utils/migrateJson.d.ts +3 -0
- package/dist/src/store/studio/utils/serverAppsToStudioApps.d.ts +3 -0
- package/dist/src/store/studio/utils/studioApplication.mock.d.ts +32 -0
- package/dist/src/store/teamWork/teamWork.d.ts +46 -0
- package/dist/src/store/teamWork/teamWorkRTHandlers.d.ts +3 -0
- package/dist/src/store/teamWork/teamWorkRTHandlers.mock.d.ts +2 -0
- package/dist/src/store/teamWork/teamWorkToDo.d.ts +20 -0
- package/dist/src/store/teamWork/teamWorkToDo.mock.d.ts +2 -0
- package/dist/src/store/teamWork/types.d.ts +10 -0
- package/dist/src/store/tinymce/tinyMCEOptions.d.ts +5 -0
- package/dist/src/store/tinymce/tinymce.d.ts +52 -0
- package/dist/src/store/tinymce/tinymce.types.d.ts +10 -0
- package/dist/src/store/toast/toast.d.ts +35 -0
- package/dist/src/store/toast/toast.types.d.ts +19 -0
- package/dist/src/store/tvDisplay/channelsList.d.ts +36 -0
- package/dist/src/store/tvDisplay/channelsList.mock.d.ts +3 -0
- package/dist/src/store/tvDisplay/tvDisplay.d.ts +54 -0
- package/dist/src/store/tvDisplay/tvDisplay.types.d.ts +12 -0
- package/dist/src/store/tvDisplay/utils.d.ts +2 -0
- package/dist/src/store/tvDisplay/utils.mock.d.ts +5 -0
- package/dist/src/store/user/user.types.d.ts +4 -0
- package/dist/src/store/user/userCurrent.d.ts +21 -0
- package/dist/src/store/user/userCurrent.mock.d.ts +36 -0
- package/dist/src/store/wedoc/wedoc.actions.d.ts +85 -0
- package/dist/src/store/wedoc/wedoc.d.ts +165 -0
- package/dist/src/store/wedoc/wedoc.mock.d.ts +3 -0
- package/dist/src/store/wedoc/wedoc.slice.d.ts +8 -0
- package/dist/src/store/wedoc/wedoc.types.d.ts +22 -0
- package/dist/src/store/widget/definitions/widget-article-attachment.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-button.d.ts +16 -0
- package/dist/src/store/widget/definitions/widget-article-gallery.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-image.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-slider.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-text.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-article-title.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-calendar-calDav.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-check-list.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-color.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-contact-cardDav.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-datasource-table.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-emails-imap.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-excel-datasource-table.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-extension.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-lucca-absence.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-presence.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-quick-survey.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-user-profile.d.ts +3 -0
- package/dist/src/store/widget/definitions/widget-welcome.d.ts +3 -0
- package/dist/src/store/widget/utils.d.ts +1 -0
- package/dist/src/store/widget/widget.const.d.ts +4 -0
- package/dist/src/store/widget/widget.d.ts +135 -0
- package/dist/src/store/widget/widget.def.d.ts +2 -0
- package/dist/src/store/widget/widget.factory.d.ts +4 -0
- package/dist/src/store/widget/widget.slice.d.ts +98 -0
- package/dist/src/store/widget/widgetRTHandlers.d.ts +3 -0
- package/dist/src/store/widgetEditor/widgetEditor.d.ts +31 -0
- package/dist/src/store/widgetEditor/widgetEditor.types.d.ts +16 -0
- package/dist/src/tests-utils/mockStore.d.ts +172 -0
- package/dist/src/tests-utils/testsUtils.d.ts +38 -0
- package/dist/src/types/index.d.ts +15 -0
- package/dist/src/types/oldStudio.d.ts +165 -0
- package/dist/src/types/store.d.ts +48 -0
- package/dist/src/types/utils.d.ts +18 -0
- package/dist/src/utils/errors.utils.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
export declare let store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
2
|
+
widgets: import('jamespot-user-api').WidgetsState;
|
|
3
|
+
editors: import('../store/widgetEditor/widgetEditor.types').EditorsState;
|
|
4
|
+
assetReservation: {
|
|
5
|
+
bookableAsset: import('..').BookableAssetState;
|
|
6
|
+
configuration: import('..').Configuration;
|
|
7
|
+
reservation: import('..').ReservationState;
|
|
8
|
+
};
|
|
9
|
+
bookmark: {
|
|
10
|
+
bookmarkList: import('..').bookmarkListState;
|
|
11
|
+
bookmarkEdit: import('..').bookmarkEditState;
|
|
12
|
+
};
|
|
13
|
+
calendar: {
|
|
14
|
+
events: import('../store/calendar/calendar.types').CalendarEventsRootState;
|
|
15
|
+
};
|
|
16
|
+
comment: {
|
|
17
|
+
commentList: import('..').CommentListState;
|
|
18
|
+
};
|
|
19
|
+
contentReport: import('..').ContentReportSliceRootState;
|
|
20
|
+
entities: {
|
|
21
|
+
applications: import('@reduxjs/toolkit').EntityState<import('jamespot-user-api').ApplicationType, string>;
|
|
22
|
+
models: import('@reduxjs/toolkit').EntityState<import('jamespot-user-api').Model<string>, string>;
|
|
23
|
+
socialActions: import('@reduxjs/toolkit').EntityState<import('jamespot-user-api').SocialAction, string>;
|
|
24
|
+
};
|
|
25
|
+
extraBot: import('..').ExtraBotState;
|
|
26
|
+
faq: {
|
|
27
|
+
config: import('../store/faq/faq.types').FaqConfigState;
|
|
28
|
+
categories: import('../store/faq/faq.types').FaqCategoriesState;
|
|
29
|
+
};
|
|
30
|
+
fileIntegrity: import('..').FileIntegrityState;
|
|
31
|
+
hooks: {};
|
|
32
|
+
jland: {
|
|
33
|
+
jLandMapList: {
|
|
34
|
+
maps: Array<import('..').JLandMapFront>;
|
|
35
|
+
availableLicenses: import('jamespot-user-api').AdminLicensesNotAssigned;
|
|
36
|
+
loading: "idle" | "pending";
|
|
37
|
+
loadingAvailableLicenses: "idle" | "pending";
|
|
38
|
+
loadingLicenseOperation: {
|
|
39
|
+
[key: number]: "idle" | "pending" | undefined;
|
|
40
|
+
};
|
|
41
|
+
loadingMapDeletion: "idle" | "pending";
|
|
42
|
+
};
|
|
43
|
+
mapCreate: import('..').MapCreateState;
|
|
44
|
+
};
|
|
45
|
+
magicPad: import('..').MagicPadSliceRootState;
|
|
46
|
+
network: {
|
|
47
|
+
statics: import('../store/network/network.types').NetworkStaticsState;
|
|
48
|
+
};
|
|
49
|
+
platform: {
|
|
50
|
+
config: import('../store/platform/platform.types').PlatformConfigState;
|
|
51
|
+
};
|
|
52
|
+
share: import('../store/share/share.types').ShareAppState;
|
|
53
|
+
teamWork: {
|
|
54
|
+
teamWorkToDo: import('..').TeamWorkSliceToDoState;
|
|
55
|
+
};
|
|
56
|
+
toasts: import('@reduxjs/toolkit').EntityState<import('../store/toast/toast.types').ToastEntity, string>;
|
|
57
|
+
tvDisplay: {
|
|
58
|
+
channelsList: {
|
|
59
|
+
loading: "idle" | "pending";
|
|
60
|
+
channels: import('jamespot-user-api').PagingResults<import('jamespot-user-api').TVChannelList> | undefined;
|
|
61
|
+
loadingChannelDeletion: "idle" | "pending";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
userCurrent: import('jamespot-user-api').jUserList;
|
|
65
|
+
wedoc: import('..').WedocAppState;
|
|
66
|
+
tinymce: {
|
|
67
|
+
options: import('../store/tinymce/tinymce.types').TinyMCEOptionsState;
|
|
68
|
+
};
|
|
69
|
+
studio: {
|
|
70
|
+
studioAppsList: import('..').StudioAppsListState;
|
|
71
|
+
currentStudioApp: import('..').CurrentStudioAppState;
|
|
72
|
+
};
|
|
73
|
+
animations: {
|
|
74
|
+
animationsList: import('..').AnimationSliceListState;
|
|
75
|
+
animationStats: import('..').AnimationStatsSliceState;
|
|
76
|
+
animationStatsCurrent: import('..').AnimationStatsCurrentSliceState;
|
|
77
|
+
};
|
|
78
|
+
mediaLibrary: import('../store/mediaLibrary/mediaLibrary.types').MediaLibraryState;
|
|
79
|
+
adminLogs: {
|
|
80
|
+
logsNavigation: import('../store/admin/logs/types').AdminLogsNavigationSliceState;
|
|
81
|
+
logsObjects: import('../store/admin/logs/types').AdminLogsObjectsSliceState;
|
|
82
|
+
logsSearch: import('../store/admin/logs/types').AdminLogsSearchSliceState;
|
|
83
|
+
};
|
|
84
|
+
}, import('@reduxjs/toolkit').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('@reduxjs/toolkit').StoreEnhancer<{
|
|
85
|
+
dispatch: import('@reduxjs/toolkit').ThunkDispatch<{
|
|
86
|
+
widgets: import('jamespot-user-api').WidgetsState;
|
|
87
|
+
editors: import('../store/widgetEditor/widgetEditor.types').EditorsState;
|
|
88
|
+
assetReservation: {
|
|
89
|
+
bookableAsset: import('..').BookableAssetState;
|
|
90
|
+
configuration: import('..').Configuration;
|
|
91
|
+
reservation: import('..').ReservationState;
|
|
92
|
+
};
|
|
93
|
+
bookmark: {
|
|
94
|
+
bookmarkList: import('..').bookmarkListState;
|
|
95
|
+
bookmarkEdit: import('..').bookmarkEditState;
|
|
96
|
+
};
|
|
97
|
+
calendar: {
|
|
98
|
+
events: import('../store/calendar/calendar.types').CalendarEventsRootState;
|
|
99
|
+
};
|
|
100
|
+
comment: {
|
|
101
|
+
commentList: import('..').CommentListState;
|
|
102
|
+
};
|
|
103
|
+
contentReport: import('..').ContentReportSliceRootState;
|
|
104
|
+
entities: {
|
|
105
|
+
applications: import('@reduxjs/toolkit').EntityState<import('jamespot-user-api').ApplicationType, string>;
|
|
106
|
+
models: import('@reduxjs/toolkit').EntityState<import('jamespot-user-api').Model<string>, string>;
|
|
107
|
+
socialActions: import('@reduxjs/toolkit').EntityState<import('jamespot-user-api').SocialAction, string>;
|
|
108
|
+
};
|
|
109
|
+
extraBot: import('..').ExtraBotState;
|
|
110
|
+
faq: {
|
|
111
|
+
config: import('../store/faq/faq.types').FaqConfigState;
|
|
112
|
+
categories: import('../store/faq/faq.types').FaqCategoriesState;
|
|
113
|
+
};
|
|
114
|
+
fileIntegrity: import('..').FileIntegrityState;
|
|
115
|
+
hooks: {};
|
|
116
|
+
jland: {
|
|
117
|
+
jLandMapList: {
|
|
118
|
+
maps: Array<import('..').JLandMapFront>;
|
|
119
|
+
availableLicenses: import('jamespot-user-api').AdminLicensesNotAssigned;
|
|
120
|
+
loading: "idle" | "pending";
|
|
121
|
+
loadingAvailableLicenses: "idle" | "pending";
|
|
122
|
+
loadingLicenseOperation: {
|
|
123
|
+
[key: number]: "idle" | "pending" | undefined;
|
|
124
|
+
};
|
|
125
|
+
loadingMapDeletion: "idle" | "pending";
|
|
126
|
+
};
|
|
127
|
+
mapCreate: import('..').MapCreateState;
|
|
128
|
+
};
|
|
129
|
+
magicPad: import('..').MagicPadSliceRootState;
|
|
130
|
+
network: {
|
|
131
|
+
statics: import('../store/network/network.types').NetworkStaticsState;
|
|
132
|
+
};
|
|
133
|
+
platform: {
|
|
134
|
+
config: import('../store/platform/platform.types').PlatformConfigState;
|
|
135
|
+
};
|
|
136
|
+
share: import('../store/share/share.types').ShareAppState;
|
|
137
|
+
teamWork: {
|
|
138
|
+
teamWorkToDo: import('..').TeamWorkSliceToDoState;
|
|
139
|
+
};
|
|
140
|
+
toasts: import('@reduxjs/toolkit').EntityState<import('../store/toast/toast.types').ToastEntity, string>;
|
|
141
|
+
tvDisplay: {
|
|
142
|
+
channelsList: {
|
|
143
|
+
loading: "idle" | "pending";
|
|
144
|
+
channels: import('jamespot-user-api').PagingResults<import('jamespot-user-api').TVChannelList> | undefined;
|
|
145
|
+
loadingChannelDeletion: "idle" | "pending";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
userCurrent: import('jamespot-user-api').jUserList;
|
|
149
|
+
wedoc: import('..').WedocAppState;
|
|
150
|
+
tinymce: {
|
|
151
|
+
options: import('../store/tinymce/tinymce.types').TinyMCEOptionsState;
|
|
152
|
+
};
|
|
153
|
+
studio: {
|
|
154
|
+
studioAppsList: import('..').StudioAppsListState;
|
|
155
|
+
currentStudioApp: import('..').CurrentStudioAppState;
|
|
156
|
+
};
|
|
157
|
+
animations: {
|
|
158
|
+
animationsList: import('..').AnimationSliceListState;
|
|
159
|
+
animationStats: import('..').AnimationStatsSliceState;
|
|
160
|
+
animationStatsCurrent: import('..').AnimationStatsCurrentSliceState;
|
|
161
|
+
};
|
|
162
|
+
mediaLibrary: import('../store/mediaLibrary/mediaLibrary.types').MediaLibraryState;
|
|
163
|
+
adminLogs: {
|
|
164
|
+
logsNavigation: import('../store/admin/logs/types').AdminLogsNavigationSliceState;
|
|
165
|
+
logsObjects: import('../store/admin/logs/types').AdminLogsObjectsSliceState;
|
|
166
|
+
logsSearch: import('../store/admin/logs/types').AdminLogsSearchSliceState;
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
170
|
+
}, import('@reduxjs/toolkit').UnknownAction>;
|
|
171
|
+
}>, import('@reduxjs/toolkit').StoreEnhancer]>>;
|
|
172
|
+
export declare const resetStore: () => void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type FunctionProperties<T> = {
|
|
2
|
+
[K in keyof T as T[K] extends (...args: any[]) => any ? K : never]: T[K];
|
|
3
|
+
};
|
|
4
|
+
type FunctionPropertyNames<T> = keyof FunctionProperties<T>;
|
|
5
|
+
export declare const mockAsyncMethod: <T extends {}, M extends FunctionPropertyNames<Required<T>>, R extends FunctionProperties<Required<T>>[M] extends (...args: any) => any ? Awaited<ReturnType<FunctionProperties<Required<T>>[M]>> : never>(obj: T, method: M, response?: {
|
|
6
|
+
success?: R;
|
|
7
|
+
error?: any;
|
|
8
|
+
} | {
|
|
9
|
+
successGenerator?: (...args: any[]) => R;
|
|
10
|
+
error?: any;
|
|
11
|
+
}) => {
|
|
12
|
+
mockMethod: jest.SpyInstance<any, unknown[], any>;
|
|
13
|
+
state: {
|
|
14
|
+
resolve: boolean;
|
|
15
|
+
hasResolved: boolean;
|
|
16
|
+
};
|
|
17
|
+
resolve: () => Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
export declare enum PropPresence {
|
|
20
|
+
PRESENT = "_______PRESENT_______",
|
|
21
|
+
ABSENT = "_______ABSENT_______"
|
|
22
|
+
}
|
|
23
|
+
type StateTest<T extends object, K extends keyof T> = PropPresence | T[K] | ((value: T[K], state: T) => void);
|
|
24
|
+
type StatesTest<T extends object, K extends keyof T> = {
|
|
25
|
+
beforeDispatch?: StateTest<T, K>;
|
|
26
|
+
dispatching?: StateTest<T, K>;
|
|
27
|
+
afterDispatch?: StateTest<T, K>;
|
|
28
|
+
};
|
|
29
|
+
type TestAsyncThunkParams<T extends object> = {
|
|
30
|
+
properties: {
|
|
31
|
+
[K in keyof T]?: StatesTest<T, K>;
|
|
32
|
+
};
|
|
33
|
+
mockedApis?: Array<ReturnType<typeof mockAsyncMethod>>;
|
|
34
|
+
getState: () => T;
|
|
35
|
+
dispatch: () => void;
|
|
36
|
+
};
|
|
37
|
+
export declare const testAsyncThunk: <T extends object>({ properties, mockedApis, getState, dispatch }: TestAsyncThunkParams<T>) => Promise<void>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from '../store/application/application.types';
|
|
2
|
+
export * from '../store/assetReservation/assetReservation.types';
|
|
3
|
+
export * from '../store/bookmark/bookmark.types';
|
|
4
|
+
export * from '../store/comment/comment.types';
|
|
5
|
+
export * from '../store/contentReport/contentReport.types';
|
|
6
|
+
export * from '../store/extraBot/extraBot.types';
|
|
7
|
+
export * from '../store/fileIntegrity/fileIntegrity.types';
|
|
8
|
+
export * from '../store/jland/jland.types';
|
|
9
|
+
export * from '../store/magicPad/magicPad.types';
|
|
10
|
+
export * from '../store/studio/studio.types';
|
|
11
|
+
export * from '../store/teamWork/types';
|
|
12
|
+
export * from '../store/tvDisplay/tvDisplay.types';
|
|
13
|
+
export * from '../store/user/user.types';
|
|
14
|
+
export * from '../store/wedoc/wedoc.types';
|
|
15
|
+
export * from './store';
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { jObjectLittle, jTaxonomyLittle } from 'jamespot-user-api';
|
|
2
|
+
declare const AUDIENCE: {
|
|
3
|
+
readonly ALL: "1";
|
|
4
|
+
readonly CUSTOM: "0";
|
|
5
|
+
};
|
|
6
|
+
type StudioAudienceType = typeof AUDIENCE.ALL | typeof AUDIENCE.CUSTOM;
|
|
7
|
+
export interface Application {
|
|
8
|
+
idApp: string;
|
|
9
|
+
isInWork?: boolean;
|
|
10
|
+
status: AppStatusType;
|
|
11
|
+
hasChanged?: boolean;
|
|
12
|
+
changeDate?: Date;
|
|
13
|
+
isSaved?: boolean;
|
|
14
|
+
saveDate?: Date;
|
|
15
|
+
mainType: string;
|
|
16
|
+
author?: string;
|
|
17
|
+
manifest: AppManifest;
|
|
18
|
+
form: AppForm;
|
|
19
|
+
formItemsViewList: AppFormItemsView[];
|
|
20
|
+
audience?: StudioAudienceType;
|
|
21
|
+
installFor: AppInstallForType[];
|
|
22
|
+
inWorkVersion?: Application;
|
|
23
|
+
}
|
|
24
|
+
declare enum StatusType {
|
|
25
|
+
draft = "draft",
|
|
26
|
+
installed = "installed",
|
|
27
|
+
suspended = "suspended"
|
|
28
|
+
}
|
|
29
|
+
type AppStatusType = StatusType.draft | StatusType.installed | StatusType.suspended;
|
|
30
|
+
interface AppManifest {
|
|
31
|
+
appShortName: string;
|
|
32
|
+
appName: string;
|
|
33
|
+
description: string;
|
|
34
|
+
author?: string;
|
|
35
|
+
typeLabel: string;
|
|
36
|
+
cssColor: string;
|
|
37
|
+
cssClass: {
|
|
38
|
+
label: string;
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
version: number;
|
|
42
|
+
dateCreation: Date;
|
|
43
|
+
viewSolr: string;
|
|
44
|
+
checkAccess: boolean;
|
|
45
|
+
accessRightList?: string;
|
|
46
|
+
attrExposed: Array<string>;
|
|
47
|
+
}
|
|
48
|
+
interface AppForm {
|
|
49
|
+
formItems: AppFormItem[];
|
|
50
|
+
}
|
|
51
|
+
interface AppFormItem {
|
|
52
|
+
id: string;
|
|
53
|
+
type: AppFormItemType;
|
|
54
|
+
name: string;
|
|
55
|
+
labels?: AppLabelsType;
|
|
56
|
+
mandatory?: boolean;
|
|
57
|
+
fixed: boolean;
|
|
58
|
+
views: AppViewsType;
|
|
59
|
+
table?: string;
|
|
60
|
+
properties?: AppFormProperties | undefined;
|
|
61
|
+
}
|
|
62
|
+
export type AppFormProperties = AbstractAppFormProperties;
|
|
63
|
+
interface AppLabelsType {
|
|
64
|
+
label?: AppLabelContentType | undefined;
|
|
65
|
+
description?: AppLabelContentType | undefined;
|
|
66
|
+
}
|
|
67
|
+
interface AppLabelContentType {
|
|
68
|
+
content: string;
|
|
69
|
+
mode: labelMode;
|
|
70
|
+
display?: string;
|
|
71
|
+
}
|
|
72
|
+
type labelMode = 'SERVER' | 'GLOBAL' | 'RESOURCES' | 'APP';
|
|
73
|
+
interface AppViewsType {
|
|
74
|
+
create: boolean;
|
|
75
|
+
popup: boolean;
|
|
76
|
+
edit: boolean;
|
|
77
|
+
list: boolean;
|
|
78
|
+
filter: boolean;
|
|
79
|
+
view: boolean;
|
|
80
|
+
}
|
|
81
|
+
export type AppFormOptionsProperties = Array<AppFormOption>;
|
|
82
|
+
interface AppFormOption {
|
|
83
|
+
label: string;
|
|
84
|
+
mode?: labelMode;
|
|
85
|
+
value: string | number;
|
|
86
|
+
}
|
|
87
|
+
interface AbstractAppFormProperties {
|
|
88
|
+
labels?: AppLabelsType | undefined;
|
|
89
|
+
mandatory?: boolean;
|
|
90
|
+
explain?: boolean;
|
|
91
|
+
minMaxType?: 'number' | 'Date' | 'DateTime';
|
|
92
|
+
min?: string;
|
|
93
|
+
max?: string;
|
|
94
|
+
multiple?: boolean;
|
|
95
|
+
options?: AppFormOptionsProperties;
|
|
96
|
+
code?: HtmlValue;
|
|
97
|
+
hasDefaultValue?: boolean;
|
|
98
|
+
defaultValue?: AppFormFieldValueType | false | undefined;
|
|
99
|
+
taxonomy?: Partial<jTaxonomyLittle> | false | undefined;
|
|
100
|
+
digits?: boolean | undefined;
|
|
101
|
+
contentType?: {
|
|
102
|
+
label: string;
|
|
103
|
+
value: string;
|
|
104
|
+
} | undefined;
|
|
105
|
+
}
|
|
106
|
+
interface HtmlValue {
|
|
107
|
+
html: string;
|
|
108
|
+
text: string;
|
|
109
|
+
}
|
|
110
|
+
interface AppFormItemsView {
|
|
111
|
+
view: ViewName;
|
|
112
|
+
orderChanged: boolean;
|
|
113
|
+
formItemRefs: AppFormItemRefInView[];
|
|
114
|
+
}
|
|
115
|
+
type ViewName = 'create' | 'popup' | 'edit' | 'list' | 'filter' | 'view';
|
|
116
|
+
export interface AppFormItemRefInView {
|
|
117
|
+
ref: string | AppFormItemType;
|
|
118
|
+
fixedPos?: boolean;
|
|
119
|
+
fixedValue?: AppFormFieldValueType;
|
|
120
|
+
}
|
|
121
|
+
type AppFormFieldValueType = string | boolean | string[] | HtmlValue | AppFormOption | AppFormOption[] | AppInstallForType[] | jObjectLittle[];
|
|
122
|
+
type AppInstallForType = Partial<{
|
|
123
|
+
id: string;
|
|
124
|
+
uri: string;
|
|
125
|
+
shortUri: string;
|
|
126
|
+
title: string;
|
|
127
|
+
name: string;
|
|
128
|
+
mainType: string;
|
|
129
|
+
type: string;
|
|
130
|
+
label: string;
|
|
131
|
+
cssClass: string;
|
|
132
|
+
cssColor: string;
|
|
133
|
+
class: string;
|
|
134
|
+
Pseudo: string;
|
|
135
|
+
}>;
|
|
136
|
+
export declare enum AppFormItemType {
|
|
137
|
+
TITLE = "TITLE",
|
|
138
|
+
IMAGE = "IMAGE",
|
|
139
|
+
DESCRIPTION = "DESCRIPTION",
|
|
140
|
+
IDUSER = "IDUSER",
|
|
141
|
+
PUBLISHTO = "PUBLISHTO",
|
|
142
|
+
SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS",
|
|
143
|
+
RECEIVEACOPY = "RECEIVEACOPY",
|
|
144
|
+
TEXT = "TEXT",
|
|
145
|
+
TEXTAREA = "TEXTAREA",
|
|
146
|
+
TEXTAREAHTML = "TEXTAREAHTML",
|
|
147
|
+
DATE = "DATE",
|
|
148
|
+
DATETIME = "DATETIME",
|
|
149
|
+
RANGE = "RANGE",
|
|
150
|
+
NUMBER = "NUMBER",
|
|
151
|
+
URL = "URL",
|
|
152
|
+
EMAIL = "EMAIL",
|
|
153
|
+
SELECT = "SELECT",
|
|
154
|
+
CHECKBOX = "CHECKBOX",
|
|
155
|
+
TOGGLE = "TOGGLE",
|
|
156
|
+
RADIO = "RADIO",
|
|
157
|
+
TAGS = "TAGS",
|
|
158
|
+
ADDFILEATTACHMENT = "ADDFILEATTACHMENT",
|
|
159
|
+
AUDIENCE = "AUDIENCE",
|
|
160
|
+
CODEHTML = "CODEHTML",
|
|
161
|
+
DATECREATION = "DATECREATION",
|
|
162
|
+
USERLINK = "USERLINK",
|
|
163
|
+
CONTENTLINK = "CONTENTLINK"
|
|
164
|
+
}
|
|
165
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { JamespotUserApi, WidgetsRootState } from 'jamespot-user-api';
|
|
2
|
+
import { AnyAction, ThunkDispatch } from '@reduxjs/toolkit';
|
|
3
|
+
import { AnimationsRootState } from '../store/animations/types';
|
|
4
|
+
import { ApplicationRootState } from '../store/application/application.types';
|
|
5
|
+
import { AssetReservationRootState } from '../store/assetReservation/assetReservation.types';
|
|
6
|
+
import { WedocAppRootState } from '../store/wedoc/wedoc.types';
|
|
7
|
+
import { TVDisplayRootState } from '../store/tvDisplay/tvDisplay.types';
|
|
8
|
+
import { StudioRootState } from '../store/studio/studio.types';
|
|
9
|
+
import { ShareRootState } from '../store/share/share.types';
|
|
10
|
+
import { JLandRootState } from '../store/jland/jland.types';
|
|
11
|
+
import { MagicPadRootState } from '../store/magicPad/magicPad.types';
|
|
12
|
+
import { UserCurrentRootState } from '../store/user/user.types';
|
|
13
|
+
import { ToastRootState } from '../store/toast/toast.types';
|
|
14
|
+
import { AdminLogsRootState } from '../store/admin/logs/types';
|
|
15
|
+
import { ExtraBotRootState } from '../store/extraBot/extraBot.types';
|
|
16
|
+
import { ContentReportRootState } from '../store/contentReport/contentReport.types';
|
|
17
|
+
import { CommentRootState } from '../store/comment/comment.types';
|
|
18
|
+
import { BookmarkRootState } from '../store/bookmark/bookmark.types';
|
|
19
|
+
import { FaqRootState } from '../store/faq/faq.types';
|
|
20
|
+
import { HookRootState } from '../store/hook/hook.types';
|
|
21
|
+
import { MediaLibraryRootState } from '../store/mediaLibrary/mediaLibrary.types';
|
|
22
|
+
import { NetworkRootState } from '../store/network/network.types';
|
|
23
|
+
import { PlatformRootState } from '../store/platform/platform.types';
|
|
24
|
+
import { TeamWorkRootState } from '../store/teamWork/types';
|
|
25
|
+
import { TinyMCERootState } from '../store/tinymce/tinymce.types';
|
|
26
|
+
import { EditorsRootState } from '../store/widgetEditor/widgetEditor.types';
|
|
27
|
+
import { ModelRootState } from '../store/model/model.types';
|
|
28
|
+
import { CalendarRootState } from '../store/calendar/calendar.types';
|
|
29
|
+
import { FileIntegrityRootState } from '../store/fileIntegrity/fileIntegrity.types';
|
|
30
|
+
type AsyncReducers = AdminLogsRootState & AnimationsRootState & AssetReservationRootState & BookmarkRootState & CalendarRootState & ContentReportRootState & EditorsRootState & ExtraBotRootState & FaqRootState & FileIntegrityRootState & JLandRootState & MagicPadRootState & MediaLibraryRootState & ShareRootState & StudioRootState & TeamWorkRootState & TinyMCERootState & TVDisplayRootState & WedocAppRootState & WidgetsRootState;
|
|
31
|
+
type StaticReducers = {
|
|
32
|
+
entities: ApplicationRootState & ModelRootState;
|
|
33
|
+
} & CommentRootState & HookRootState & NetworkRootState & PlatformRootState & ToastRootState & UserCurrentRootState;
|
|
34
|
+
export type RootState = AsyncReducers & StaticReducers;
|
|
35
|
+
type Extra = {
|
|
36
|
+
jApi: JamespotUserApi;
|
|
37
|
+
};
|
|
38
|
+
export type AppDispatch = ThunkDispatch<RootState, Extra, AnyAction>;
|
|
39
|
+
export type ApiError = {
|
|
40
|
+
error: number;
|
|
41
|
+
errorMsg?: string;
|
|
42
|
+
};
|
|
43
|
+
export type ThunkApiConfig = {
|
|
44
|
+
dispatch: AppDispatch;
|
|
45
|
+
state: RootState;
|
|
46
|
+
extra: Extra;
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Filters, Orders } from 'jamespot-user-api';
|
|
2
|
+
export type Loading = {
|
|
3
|
+
loading: 'idle' | 'pending';
|
|
4
|
+
};
|
|
5
|
+
export type PagingState<T extends {}> = {
|
|
6
|
+
data: T[];
|
|
7
|
+
page: number;
|
|
8
|
+
filters: Filters;
|
|
9
|
+
orders: Orders;
|
|
10
|
+
limit: number;
|
|
11
|
+
nbResults: number;
|
|
12
|
+
} & Loading;
|
|
13
|
+
export type RejectValue = {
|
|
14
|
+
rejectValue: {
|
|
15
|
+
error: number;
|
|
16
|
+
errorMsg: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-front-business",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "typescript utils",
|
|
5
5
|
"main": "dist/jamespot-front-business.js",
|
|
6
6
|
"module": "dist/jamespot-front-business.mjs",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"eslint-config-prettier": "^8.10.2",
|
|
36
36
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
37
37
|
"eslint-plugin-import": "^2.32.0",
|
|
38
|
-
"jamespot-user-api": "^1.3.
|
|
38
|
+
"jamespot-user-api": "^1.3.8",
|
|
39
39
|
"jest": "^30.2.0",
|
|
40
40
|
"jest-environment-jsdom": "^30.2.0",
|
|
41
41
|
"knip": "^5.69.1",
|