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,347 @@
|
|
|
1
|
+
import { RootState } from '../../types/store';
|
|
2
|
+
export declare const Calendar: {
|
|
3
|
+
slice: {
|
|
4
|
+
name: "calendar";
|
|
5
|
+
reducer: import('@reduxjs/toolkit').Reducer<{
|
|
6
|
+
events: import('./calendar.types').CalendarEventsRootState;
|
|
7
|
+
}, import('@reduxjs/toolkit').UnknownAction, Partial<{
|
|
8
|
+
events: import('./calendar.types').CalendarEventsRootState | undefined;
|
|
9
|
+
}>>;
|
|
10
|
+
};
|
|
11
|
+
actions: {
|
|
12
|
+
addEvent: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('jamespot-user-api').CalendarEventWithExtensions<{
|
|
13
|
+
type: string;
|
|
14
|
+
uri: string;
|
|
15
|
+
id: number;
|
|
16
|
+
mainType: string;
|
|
17
|
+
dateCreation: string;
|
|
18
|
+
dateModified: string;
|
|
19
|
+
title: string;
|
|
20
|
+
_url: string;
|
|
21
|
+
_user: Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
22
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
23
|
+
dateCreation: string;
|
|
24
|
+
dateModified: string;
|
|
25
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
26
|
+
};
|
|
27
|
+
_right: import('jamespot-user-api').Rights;
|
|
28
|
+
_audience: ((Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
29
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
30
|
+
dateCreation: string;
|
|
31
|
+
dateModified: string;
|
|
32
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
33
|
+
}) | import('jamespot-user-api').jGroupLittle | import('jamespot-user-api').jFolderLittle)[];
|
|
34
|
+
_attachedFiles: import('jamespot-user-api').jFileLittle[];
|
|
35
|
+
image?: import('jamespot-user-api').ImageSize | undefined;
|
|
36
|
+
place?: string | undefined;
|
|
37
|
+
description?: string | null | undefined;
|
|
38
|
+
backgroundColor?: string | null | undefined;
|
|
39
|
+
textColor?: string | undefined;
|
|
40
|
+
articleWidgets?: import('jamespot-user-api').WidgetWrapperGeneric<import('jamespot-user-api').CombinedWidgetType>[] | undefined;
|
|
41
|
+
tags?: {
|
|
42
|
+
type: string;
|
|
43
|
+
class: string;
|
|
44
|
+
uri: string;
|
|
45
|
+
name: string;
|
|
46
|
+
id: string;
|
|
47
|
+
mainType: string;
|
|
48
|
+
title: string;
|
|
49
|
+
label: string;
|
|
50
|
+
shortUri: string;
|
|
51
|
+
cssClass: string;
|
|
52
|
+
cssColor: string;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
processContext?: null | undefined;
|
|
55
|
+
_transientCtx?: null | undefined;
|
|
56
|
+
uiObjectLink?: import('jamespot-user-api').jObjectLittle[] | undefined;
|
|
57
|
+
dateEnd?: string | undefined;
|
|
58
|
+
dateStart?: string | undefined;
|
|
59
|
+
address?: string | undefined;
|
|
60
|
+
noGestion?: boolean | null | undefined;
|
|
61
|
+
allDay?: boolean | undefined;
|
|
62
|
+
socialEventUseCeiling?: boolean | undefined;
|
|
63
|
+
socialEventCeiling?: number | null | undefined;
|
|
64
|
+
urlGestion?: string | undefined;
|
|
65
|
+
webinarUrlForGuests?: string | undefined;
|
|
66
|
+
qrCodeValue?: string | undefined;
|
|
67
|
+
agenda?: string | undefined;
|
|
68
|
+
report?: string | undefined;
|
|
69
|
+
reportFile?: import('jamespot-user-api').jFileLittle | null | undefined;
|
|
70
|
+
webinarUrl?: string | undefined;
|
|
71
|
+
visioConnectUrl?: string | undefined;
|
|
72
|
+
} | import('jamespot-user-api').jRecurringEventOccurrenceViewTruthy | import('jamespot-user-api').Merge<import('jamespot-user-api').Merge<{
|
|
73
|
+
dateModified: null;
|
|
74
|
+
dateCreation: null;
|
|
75
|
+
id: -1;
|
|
76
|
+
uri: "";
|
|
77
|
+
title: "";
|
|
78
|
+
_url: "";
|
|
79
|
+
type: "recurringEventOccurrence";
|
|
80
|
+
mainType: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["mainType"];
|
|
81
|
+
dateStart: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["dateStart"];
|
|
82
|
+
dateEnd: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["dateEnd"];
|
|
83
|
+
}, {
|
|
84
|
+
title: "";
|
|
85
|
+
description: "";
|
|
86
|
+
image: null;
|
|
87
|
+
articleWidgets: null;
|
|
88
|
+
_user: never;
|
|
89
|
+
_audience: import('jamespot-user-api').jArticleList["_audience"];
|
|
90
|
+
_right: never;
|
|
91
|
+
}>, {
|
|
92
|
+
_attachedFiles: null;
|
|
93
|
+
tags: null;
|
|
94
|
+
processContext: null;
|
|
95
|
+
_transientCtx: null;
|
|
96
|
+
uiObjectLink: null;
|
|
97
|
+
}>, ["socialEventRecord", "recurringEventRecord"]>, "events/addEvent">;
|
|
98
|
+
removeEvent: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
99
|
+
uri: string;
|
|
100
|
+
}, "events/removeEvent">;
|
|
101
|
+
updateEvent: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('jamespot-user-api').CalendarEventWithExtensions<{
|
|
102
|
+
type: string;
|
|
103
|
+
uri: string;
|
|
104
|
+
id: number;
|
|
105
|
+
mainType: string;
|
|
106
|
+
dateCreation: string;
|
|
107
|
+
dateModified: string;
|
|
108
|
+
title: string;
|
|
109
|
+
_url: string;
|
|
110
|
+
_user: Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
111
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
112
|
+
dateCreation: string;
|
|
113
|
+
dateModified: string;
|
|
114
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
115
|
+
};
|
|
116
|
+
_right: import('jamespot-user-api').Rights;
|
|
117
|
+
_audience: ((Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
118
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
119
|
+
dateCreation: string;
|
|
120
|
+
dateModified: string;
|
|
121
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
122
|
+
}) | import('jamespot-user-api').jGroupLittle | import('jamespot-user-api').jFolderLittle)[];
|
|
123
|
+
_attachedFiles: import('jamespot-user-api').jFileLittle[];
|
|
124
|
+
image?: import('jamespot-user-api').ImageSize | undefined;
|
|
125
|
+
place?: string | undefined;
|
|
126
|
+
description?: string | null | undefined;
|
|
127
|
+
backgroundColor?: string | null | undefined;
|
|
128
|
+
textColor?: string | undefined;
|
|
129
|
+
articleWidgets?: import('jamespot-user-api').WidgetWrapperGeneric<import('jamespot-user-api').CombinedWidgetType>[] | undefined;
|
|
130
|
+
tags?: {
|
|
131
|
+
type: string;
|
|
132
|
+
class: string;
|
|
133
|
+
uri: string;
|
|
134
|
+
name: string;
|
|
135
|
+
id: string;
|
|
136
|
+
mainType: string;
|
|
137
|
+
title: string;
|
|
138
|
+
label: string;
|
|
139
|
+
shortUri: string;
|
|
140
|
+
cssClass: string;
|
|
141
|
+
cssColor: string;
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
processContext?: null | undefined;
|
|
144
|
+
_transientCtx?: null | undefined;
|
|
145
|
+
uiObjectLink?: import('jamespot-user-api').jObjectLittle[] | undefined;
|
|
146
|
+
dateEnd?: string | undefined;
|
|
147
|
+
dateStart?: string | undefined;
|
|
148
|
+
address?: string | undefined;
|
|
149
|
+
noGestion?: boolean | null | undefined;
|
|
150
|
+
allDay?: boolean | undefined;
|
|
151
|
+
socialEventUseCeiling?: boolean | undefined;
|
|
152
|
+
socialEventCeiling?: number | null | undefined;
|
|
153
|
+
urlGestion?: string | undefined;
|
|
154
|
+
webinarUrlForGuests?: string | undefined;
|
|
155
|
+
qrCodeValue?: string | undefined;
|
|
156
|
+
agenda?: string | undefined;
|
|
157
|
+
report?: string | undefined;
|
|
158
|
+
reportFile?: import('jamespot-user-api').jFileLittle | null | undefined;
|
|
159
|
+
webinarUrl?: string | undefined;
|
|
160
|
+
visioConnectUrl?: string | undefined;
|
|
161
|
+
} | import('jamespot-user-api').jRecurringEventOccurrenceViewTruthy | import('jamespot-user-api').Merge<import('jamespot-user-api').Merge<{
|
|
162
|
+
dateModified: null;
|
|
163
|
+
dateCreation: null;
|
|
164
|
+
id: -1;
|
|
165
|
+
uri: "";
|
|
166
|
+
title: "";
|
|
167
|
+
_url: "";
|
|
168
|
+
type: "recurringEventOccurrence";
|
|
169
|
+
mainType: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["mainType"];
|
|
170
|
+
dateStart: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["dateStart"];
|
|
171
|
+
dateEnd: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["dateEnd"];
|
|
172
|
+
}, {
|
|
173
|
+
title: "";
|
|
174
|
+
description: "";
|
|
175
|
+
image: null;
|
|
176
|
+
articleWidgets: null;
|
|
177
|
+
_user: never;
|
|
178
|
+
_audience: import('jamespot-user-api').jArticleList["_audience"];
|
|
179
|
+
_right: never;
|
|
180
|
+
}>, {
|
|
181
|
+
_attachedFiles: null;
|
|
182
|
+
tags: null;
|
|
183
|
+
processContext: null;
|
|
184
|
+
_transientCtx: null;
|
|
185
|
+
uiObjectLink: null;
|
|
186
|
+
}>, ["socialEventRecord", "recurringEventRecord"]>, "events/updateEvent">;
|
|
187
|
+
reset: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"events/reset">;
|
|
188
|
+
fetchEvents: import('@reduxjs/toolkit').AsyncThunk<import('jamespot-user-api').CalendarEventWithExtensions<{
|
|
189
|
+
type: string;
|
|
190
|
+
uri: string;
|
|
191
|
+
id: number;
|
|
192
|
+
mainType: string;
|
|
193
|
+
dateCreation: string;
|
|
194
|
+
dateModified: string;
|
|
195
|
+
title: string;
|
|
196
|
+
_url: string;
|
|
197
|
+
_user: Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
198
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
199
|
+
dateCreation: string;
|
|
200
|
+
dateModified: string;
|
|
201
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
202
|
+
};
|
|
203
|
+
_right: import('jamespot-user-api').Rights;
|
|
204
|
+
_audience: ((Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
205
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
206
|
+
dateCreation: string;
|
|
207
|
+
dateModified: string;
|
|
208
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
209
|
+
}) | import('jamespot-user-api').jGroupLittle | import('jamespot-user-api').jFolderLittle)[];
|
|
210
|
+
_attachedFiles: import('jamespot-user-api').jFileLittle[];
|
|
211
|
+
image?: import('jamespot-user-api').ImageSize | undefined;
|
|
212
|
+
place?: string | undefined;
|
|
213
|
+
description?: string | null | undefined;
|
|
214
|
+
backgroundColor?: string | null | undefined;
|
|
215
|
+
textColor?: string | undefined;
|
|
216
|
+
articleWidgets?: import('jamespot-user-api').WidgetWrapperGeneric<import('jamespot-user-api').CombinedWidgetType>[] | undefined;
|
|
217
|
+
tags?: {
|
|
218
|
+
type: string;
|
|
219
|
+
class: string;
|
|
220
|
+
uri: string;
|
|
221
|
+
name: string;
|
|
222
|
+
id: string;
|
|
223
|
+
mainType: string;
|
|
224
|
+
title: string;
|
|
225
|
+
label: string;
|
|
226
|
+
shortUri: string;
|
|
227
|
+
cssClass: string;
|
|
228
|
+
cssColor: string;
|
|
229
|
+
}[] | undefined;
|
|
230
|
+
processContext?: null | undefined;
|
|
231
|
+
_transientCtx?: null | undefined;
|
|
232
|
+
uiObjectLink?: import('jamespot-user-api').jObjectLittle[] | undefined;
|
|
233
|
+
dateEnd?: string | undefined;
|
|
234
|
+
dateStart?: string | undefined;
|
|
235
|
+
address?: string | undefined;
|
|
236
|
+
noGestion?: boolean | null | undefined;
|
|
237
|
+
allDay?: boolean | undefined;
|
|
238
|
+
socialEventUseCeiling?: boolean | undefined;
|
|
239
|
+
socialEventCeiling?: number | null | undefined;
|
|
240
|
+
urlGestion?: string | undefined;
|
|
241
|
+
webinarUrlForGuests?: string | undefined;
|
|
242
|
+
qrCodeValue?: string | undefined;
|
|
243
|
+
agenda?: string | undefined;
|
|
244
|
+
report?: string | undefined;
|
|
245
|
+
reportFile?: import('jamespot-user-api').jFileLittle | null | undefined;
|
|
246
|
+
webinarUrl?: string | undefined;
|
|
247
|
+
visioConnectUrl?: string | undefined;
|
|
248
|
+
} | import('jamespot-user-api').jRecurringEventOccurrenceViewTruthy | import('jamespot-user-api').Merge<import('jamespot-user-api').Merge<{
|
|
249
|
+
dateModified: null;
|
|
250
|
+
dateCreation: null;
|
|
251
|
+
id: -1;
|
|
252
|
+
uri: "";
|
|
253
|
+
title: "";
|
|
254
|
+
_url: "";
|
|
255
|
+
type: "recurringEventOccurrence";
|
|
256
|
+
mainType: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["mainType"];
|
|
257
|
+
dateStart: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["dateStart"];
|
|
258
|
+
dateEnd: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["dateEnd"];
|
|
259
|
+
}, {
|
|
260
|
+
title: "";
|
|
261
|
+
description: "";
|
|
262
|
+
image: null;
|
|
263
|
+
articleWidgets: null;
|
|
264
|
+
_user: never;
|
|
265
|
+
_audience: import('jamespot-user-api').jArticleList["_audience"];
|
|
266
|
+
_right: never;
|
|
267
|
+
}>, {
|
|
268
|
+
_attachedFiles: null;
|
|
269
|
+
tags: null;
|
|
270
|
+
processContext: null;
|
|
271
|
+
_transientCtx: null;
|
|
272
|
+
uiObjectLink: null;
|
|
273
|
+
}>, ["socialEventRecord", "recurringEventRecord"]>[], Partial<Pick<import('./calendar.types').CalendarEventsRootState, "dates" | "types">>, {
|
|
274
|
+
dispatch: import('../..').AppDispatch;
|
|
275
|
+
state: RootState;
|
|
276
|
+
extra: {
|
|
277
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
278
|
+
};
|
|
279
|
+
rejectValue: {
|
|
280
|
+
error: number;
|
|
281
|
+
errorMsg: string;
|
|
282
|
+
};
|
|
283
|
+
serializedErrorType?: unknown;
|
|
284
|
+
pendingMeta?: unknown;
|
|
285
|
+
fulfilledMeta?: unknown;
|
|
286
|
+
rejectedMeta?: unknown;
|
|
287
|
+
}>;
|
|
288
|
+
setDates: import('@reduxjs/toolkit').AsyncThunk<boolean, {
|
|
289
|
+
start: string;
|
|
290
|
+
end: string;
|
|
291
|
+
}, {
|
|
292
|
+
dispatch: import('../..').AppDispatch;
|
|
293
|
+
state: RootState;
|
|
294
|
+
extra: {
|
|
295
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
296
|
+
};
|
|
297
|
+
rejectValue: {
|
|
298
|
+
error: number;
|
|
299
|
+
errorMsg: string;
|
|
300
|
+
};
|
|
301
|
+
serializedErrorType?: unknown;
|
|
302
|
+
pendingMeta?: unknown;
|
|
303
|
+
fulfilledMeta?: unknown;
|
|
304
|
+
rejectedMeta?: unknown;
|
|
305
|
+
}>;
|
|
306
|
+
setTypes: import('@reduxjs/toolkit').AsyncThunk<boolean, ("animatedMeeting" | "meeting" | "socialEvent" | "recurringEvent" | "boardCard")[], {
|
|
307
|
+
dispatch: import('../..').AppDispatch;
|
|
308
|
+
state: RootState;
|
|
309
|
+
extra: {
|
|
310
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
311
|
+
};
|
|
312
|
+
rejectValue: {
|
|
313
|
+
error: number;
|
|
314
|
+
errorMsg: string;
|
|
315
|
+
};
|
|
316
|
+
serializedErrorType?: unknown;
|
|
317
|
+
pendingMeta?: unknown;
|
|
318
|
+
fulfilledMeta?: unknown;
|
|
319
|
+
rejectedMeta?: unknown;
|
|
320
|
+
}>;
|
|
321
|
+
changeResponse: import('@reduxjs/toolkit').AsyncThunk<boolean, {
|
|
322
|
+
status: import('jamespot-user-api').UserResponseStatus;
|
|
323
|
+
id: number;
|
|
324
|
+
type: string;
|
|
325
|
+
}, {
|
|
326
|
+
dispatch: import('../..').AppDispatch;
|
|
327
|
+
state: RootState;
|
|
328
|
+
extra: {
|
|
329
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
330
|
+
};
|
|
331
|
+
rejectValue: {
|
|
332
|
+
error: number;
|
|
333
|
+
errorMsg: string;
|
|
334
|
+
};
|
|
335
|
+
serializedErrorType?: unknown;
|
|
336
|
+
pendingMeta?: unknown;
|
|
337
|
+
fulfilledMeta?: unknown;
|
|
338
|
+
rejectedMeta?: unknown;
|
|
339
|
+
}>;
|
|
340
|
+
};
|
|
341
|
+
selectors: {
|
|
342
|
+
selectCalendarEvents: (state: RootState) => import('./calendar.types').CalendarEventsRootState;
|
|
343
|
+
};
|
|
344
|
+
getCalendarRTHandlers: (dispatch: import('../..').AppDispatch, jApi: {
|
|
345
|
+
article: Pick<import('jamespot-user-api').JArticleApi, "get">;
|
|
346
|
+
}) => Array<import('jamespot-user-api').RTMessageHandler<"JAMESPOT", import('jamespot-user-api').Namespaces["JAMESPOT"]> | import('jamespot-user-api').RTMessageHandler<"CUSTOM-ACTION", import('jamespot-user-api').Namespaces["CUSTOM-ACTION"]>>;
|
|
347
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CalendarEventViewAbstractType, CalendarEventWithExtensions, EventStatusFilter, UserResponseStatus } from 'jamespot-user-api';
|
|
2
|
+
import { Loading } from '../../types/utils';
|
|
3
|
+
export type CalendarEventsRootState = Loading & {
|
|
4
|
+
list: CalendarEventWithExtensions<CalendarEventViewAbstractType, ['socialEventRecord']>[];
|
|
5
|
+
statuses: EventStatusFilter[];
|
|
6
|
+
types: Array<'socialEvent' | 'meeting' | 'animatedMeeting' | 'boardCard' | 'recurringEvent'>;
|
|
7
|
+
dates?: {
|
|
8
|
+
start: string;
|
|
9
|
+
end: string;
|
|
10
|
+
};
|
|
11
|
+
pendingStatusChanges: {
|
|
12
|
+
requestId: string;
|
|
13
|
+
prevStatus: UserResponseStatus;
|
|
14
|
+
prevSubscribersTotal: number;
|
|
15
|
+
eventId: number;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
export type CalendarRootState = {
|
|
19
|
+
calendar: {
|
|
20
|
+
events: CalendarEventsRootState;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { CalendarEventViewAbstractType, CalendarEventWithExtensions, UserResponseStatus } from 'jamespot-user-api';
|
|
3
|
+
import { CalendarEventsRootState } from './calendar.types';
|
|
4
|
+
import { AppDispatch } from '../../types';
|
|
5
|
+
export declare const fetchEvents: import('@reduxjs/toolkit').AsyncThunk<CalendarEventWithExtensions<{
|
|
6
|
+
type: string;
|
|
7
|
+
uri: string;
|
|
8
|
+
id: number;
|
|
9
|
+
mainType: string;
|
|
10
|
+
dateCreation: string;
|
|
11
|
+
dateModified: string;
|
|
12
|
+
title: string;
|
|
13
|
+
_url: string;
|
|
14
|
+
_user: Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
15
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
16
|
+
dateCreation: string;
|
|
17
|
+
dateModified: string;
|
|
18
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
19
|
+
};
|
|
20
|
+
_right: import('jamespot-user-api').Rights;
|
|
21
|
+
_audience: ((Omit<import('jamespot-user-api').jObjectLittle, "dateCreation" | "dateModified" | "level" | "variant"> & {
|
|
22
|
+
level: typeof import('jamespot-user-api').UserLevel[keyof typeof import('jamespot-user-api').UserLevel];
|
|
23
|
+
dateCreation: string;
|
|
24
|
+
dateModified: string;
|
|
25
|
+
variant?: typeof import('jamespot-user-api').UserVariant[keyof typeof import('jamespot-user-api').UserVariant] | undefined;
|
|
26
|
+
}) | import('jamespot-user-api').jGroupLittle | import('jamespot-user-api').jFolderLittle)[];
|
|
27
|
+
_attachedFiles: import('jamespot-user-api').jFileLittle[];
|
|
28
|
+
image?: import('jamespot-user-api').ImageSize | undefined;
|
|
29
|
+
place?: string | undefined;
|
|
30
|
+
description?: string | null | undefined;
|
|
31
|
+
backgroundColor?: string | null | undefined;
|
|
32
|
+
textColor?: string | undefined;
|
|
33
|
+
articleWidgets?: import('jamespot-user-api').WidgetWrapperGeneric<import('jamespot-user-api').CombinedWidgetType>[] | undefined;
|
|
34
|
+
tags?: {
|
|
35
|
+
type: string;
|
|
36
|
+
class: string;
|
|
37
|
+
uri: string;
|
|
38
|
+
name: string;
|
|
39
|
+
id: string;
|
|
40
|
+
mainType: string;
|
|
41
|
+
title: string;
|
|
42
|
+
label: string;
|
|
43
|
+
shortUri: string;
|
|
44
|
+
cssClass: string;
|
|
45
|
+
cssColor: string;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
processContext?: null | undefined;
|
|
48
|
+
_transientCtx?: null | undefined;
|
|
49
|
+
uiObjectLink?: import('jamespot-user-api').jObjectLittle[] | undefined;
|
|
50
|
+
dateEnd?: string | undefined;
|
|
51
|
+
dateStart?: string | undefined;
|
|
52
|
+
address?: string | undefined;
|
|
53
|
+
noGestion?: boolean | null | undefined;
|
|
54
|
+
allDay?: boolean | undefined;
|
|
55
|
+
socialEventUseCeiling?: boolean | undefined;
|
|
56
|
+
socialEventCeiling?: number | null | undefined;
|
|
57
|
+
urlGestion?: string | undefined;
|
|
58
|
+
webinarUrlForGuests?: string | undefined;
|
|
59
|
+
qrCodeValue?: string | undefined;
|
|
60
|
+
agenda?: string | undefined;
|
|
61
|
+
report?: string | undefined;
|
|
62
|
+
reportFile?: import('jamespot-user-api').jFileLittle | null | undefined;
|
|
63
|
+
webinarUrl?: string | undefined;
|
|
64
|
+
visioConnectUrl?: string | undefined;
|
|
65
|
+
} | import('jamespot-user-api').jRecurringEventOccurrenceViewTruthy | import('jamespot-user-api').Merge<import('jamespot-user-api').Merge<{
|
|
66
|
+
dateModified: null;
|
|
67
|
+
dateCreation: null;
|
|
68
|
+
id: -1;
|
|
69
|
+
uri: "";
|
|
70
|
+
title: "";
|
|
71
|
+
_url: "";
|
|
72
|
+
type: "recurringEventOccurrence";
|
|
73
|
+
mainType: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["mainType"];
|
|
74
|
+
dateStart: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["dateStart"];
|
|
75
|
+
dateEnd: import('jamespot-user-api').jRecurringEventOccurrenceLittleTruthy["dateEnd"];
|
|
76
|
+
}, {
|
|
77
|
+
title: "";
|
|
78
|
+
description: "";
|
|
79
|
+
image: null;
|
|
80
|
+
articleWidgets: null;
|
|
81
|
+
_user: never;
|
|
82
|
+
_audience: import('jamespot-user-api').jArticleList["_audience"];
|
|
83
|
+
_right: never;
|
|
84
|
+
}>, {
|
|
85
|
+
_attachedFiles: null;
|
|
86
|
+
tags: null;
|
|
87
|
+
processContext: null;
|
|
88
|
+
_transientCtx: null;
|
|
89
|
+
uiObjectLink: null;
|
|
90
|
+
}>, ["socialEventRecord", "recurringEventRecord"]>[], Partial<Pick<CalendarEventsRootState, "dates" | "types">>, {
|
|
91
|
+
dispatch: AppDispatch;
|
|
92
|
+
state: import('../..').RootState;
|
|
93
|
+
extra: {
|
|
94
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
95
|
+
};
|
|
96
|
+
rejectValue: {
|
|
97
|
+
error: number;
|
|
98
|
+
errorMsg: string;
|
|
99
|
+
};
|
|
100
|
+
serializedErrorType?: unknown;
|
|
101
|
+
pendingMeta?: unknown;
|
|
102
|
+
fulfilledMeta?: unknown;
|
|
103
|
+
rejectedMeta?: unknown;
|
|
104
|
+
}>;
|
|
105
|
+
export declare const setDates: import('@reduxjs/toolkit').AsyncThunk<boolean, {
|
|
106
|
+
start: string;
|
|
107
|
+
end: string;
|
|
108
|
+
}, {
|
|
109
|
+
dispatch: AppDispatch;
|
|
110
|
+
state: import('../..').RootState;
|
|
111
|
+
extra: {
|
|
112
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
113
|
+
};
|
|
114
|
+
rejectValue: {
|
|
115
|
+
error: number;
|
|
116
|
+
errorMsg: string;
|
|
117
|
+
};
|
|
118
|
+
serializedErrorType?: unknown;
|
|
119
|
+
pendingMeta?: unknown;
|
|
120
|
+
fulfilledMeta?: unknown;
|
|
121
|
+
rejectedMeta?: unknown;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const setTypes: import('@reduxjs/toolkit').AsyncThunk<boolean, ("animatedMeeting" | "meeting" | "socialEvent" | "recurringEvent" | "boardCard")[], {
|
|
124
|
+
dispatch: AppDispatch;
|
|
125
|
+
state: import('../..').RootState;
|
|
126
|
+
extra: {
|
|
127
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
128
|
+
};
|
|
129
|
+
rejectValue: {
|
|
130
|
+
error: number;
|
|
131
|
+
errorMsg: string;
|
|
132
|
+
};
|
|
133
|
+
serializedErrorType?: unknown;
|
|
134
|
+
pendingMeta?: unknown;
|
|
135
|
+
fulfilledMeta?: unknown;
|
|
136
|
+
rejectedMeta?: unknown;
|
|
137
|
+
}>;
|
|
138
|
+
export declare const changeResponse: import('@reduxjs/toolkit').AsyncThunk<boolean, {
|
|
139
|
+
status: UserResponseStatus;
|
|
140
|
+
id: number;
|
|
141
|
+
type: string;
|
|
142
|
+
}, {
|
|
143
|
+
dispatch: AppDispatch;
|
|
144
|
+
state: import('../..').RootState;
|
|
145
|
+
extra: {
|
|
146
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
147
|
+
};
|
|
148
|
+
rejectValue: {
|
|
149
|
+
error: number;
|
|
150
|
+
errorMsg: string;
|
|
151
|
+
};
|
|
152
|
+
serializedErrorType?: unknown;
|
|
153
|
+
pendingMeta?: unknown;
|
|
154
|
+
fulfilledMeta?: unknown;
|
|
155
|
+
rejectedMeta?: unknown;
|
|
156
|
+
}>;
|
|
157
|
+
export declare const CalendarEventsSlice: import('@reduxjs/toolkit').Slice<CalendarEventsRootState, {
|
|
158
|
+
addEvent: (state: import('@reduxjs/toolkit').WritableDraft<CalendarEventsRootState>, action: PayloadAction<CalendarEventWithExtensions<CalendarEventViewAbstractType, ["socialEventRecord", "recurringEventRecord"]>>) => void;
|
|
159
|
+
removeEvent: (state: import('@reduxjs/toolkit').WritableDraft<CalendarEventsRootState>, action: PayloadAction<{
|
|
160
|
+
uri: string;
|
|
161
|
+
}>) => void;
|
|
162
|
+
updateEvent: (state: import('@reduxjs/toolkit').WritableDraft<CalendarEventsRootState>, action: PayloadAction<CalendarEventWithExtensions<CalendarEventViewAbstractType, ["socialEventRecord", "recurringEventRecord"]>>) => void;
|
|
163
|
+
reset: () => CalendarEventsRootState;
|
|
164
|
+
}, "events", "events", import('@reduxjs/toolkit').SliceSelectors<CalendarEventsRootState>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ApiWrapper, CalendarEventViewAbstractType, CalendarEventWithExtensions } from 'jamespot-user-api';
|
|
2
|
+
export declare const calendarListEventsView: ApiWrapper<CalendarEventWithExtensions<Record<string, any> & CalendarEventViewAbstractType, [
|
|
3
|
+
'socialEventRecord'
|
|
4
|
+
]>[]>;
|
|
5
|
+
export declare const mockActionUpdate: ApiWrapper<boolean>;
|
|
6
|
+
export declare const mockActionRemove: ApiWrapper<boolean>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JArticleApi, Namespaces, RTMessageHandler } from 'jamespot-user-api';
|
|
2
|
+
import { AppDispatch } from '../../types';
|
|
3
|
+
export declare const getCalendarRTHandlers: (dispatch: AppDispatch, jApi: {
|
|
4
|
+
article: Pick<JArticleApi, "get">;
|
|
5
|
+
}) => Array<RTMessageHandler<"JAMESPOT", Namespaces["JAMESPOT"]> | RTMessageHandler<"CUSTOM-ACTION", Namespaces["CUSTOM-ACTION"]>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiWrapper, CalendarEventViewAbstractType, CalendarEventWithExtensions, jLinkLittle, RTMessageObject } from 'jamespot-user-api';
|
|
2
|
+
export declare const eventCreateMessage: RTMessageObject<'JAMESPOT', 'article-create', {
|
|
3
|
+
title: string;
|
|
4
|
+
_url: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const eventDeleteMessage: RTMessageObject<'JAMESPOT', 'article-delete', {
|
|
7
|
+
title: string;
|
|
8
|
+
_url: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const eventUpdateMessage: RTMessageObject<'JAMESPOT', 'article-update', {
|
|
11
|
+
title: string;
|
|
12
|
+
_url: string;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const customActionUpdateMessage: RTMessageObject<'CUSTOM-ACTION', 'update', jLinkLittle>;
|
|
15
|
+
export declare const customActionRemoveMessage: RTMessageObject<'CUSTOM-ACTION', 'remove', jLinkLittle>;
|
|
16
|
+
export declare const articleGetEvent: ApiWrapper<CalendarEventWithExtensions<CalendarEventViewAbstractType, ['socialEventRecord']>>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { RootState } from '../../types/store';
|
|
2
|
+
import { CommentList } from './comment.types';
|
|
3
|
+
export declare const Comment: {
|
|
4
|
+
slice: {
|
|
5
|
+
name: "comment";
|
|
6
|
+
reducer: import('@reduxjs/toolkit').Reducer<{
|
|
7
|
+
commentList: import('./comment.types').CommentListState;
|
|
8
|
+
}, import('@reduxjs/toolkit').UnknownAction, Partial<{
|
|
9
|
+
commentList: import('./comment.types').CommentListState | undefined;
|
|
10
|
+
}>>;
|
|
11
|
+
};
|
|
12
|
+
actions: {
|
|
13
|
+
discardComments: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
14
|
+
idArticle: number;
|
|
15
|
+
}, "commentList/discardComments">;
|
|
16
|
+
hydrateComment: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
17
|
+
idArticle: number;
|
|
18
|
+
list: import('jamespot-user-api').CommentWithExtensions<import('jamespot-user-api').jCommentList, ["actions"]>[];
|
|
19
|
+
}, "commentList/hydrateComment">;
|
|
20
|
+
updateComment: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
21
|
+
idArticle: number;
|
|
22
|
+
idComment: number;
|
|
23
|
+
data: {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
}, "commentList/updateComment">;
|
|
27
|
+
fetchComments: import('@reduxjs/toolkit').AsyncThunk<import('./comment.types').CommentsList, import('jamespot-user-api').GetCommentsParams, {
|
|
28
|
+
dispatch: import('../..').AppDispatch;
|
|
29
|
+
state: RootState;
|
|
30
|
+
extra: {
|
|
31
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
32
|
+
};
|
|
33
|
+
rejectValue: {
|
|
34
|
+
error: number;
|
|
35
|
+
errorMsg: string;
|
|
36
|
+
};
|
|
37
|
+
serializedErrorType?: unknown;
|
|
38
|
+
pendingMeta?: unknown;
|
|
39
|
+
fulfilledMeta?: unknown;
|
|
40
|
+
rejectedMeta?: unknown;
|
|
41
|
+
}>;
|
|
42
|
+
deleteComment: import('@reduxjs/toolkit').AsyncThunk<boolean, {
|
|
43
|
+
idComment: number;
|
|
44
|
+
idArticle: number;
|
|
45
|
+
}, {
|
|
46
|
+
dispatch: import('../..').AppDispatch;
|
|
47
|
+
state: RootState;
|
|
48
|
+
extra: {
|
|
49
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
50
|
+
};
|
|
51
|
+
rejectValue: {
|
|
52
|
+
error: number;
|
|
53
|
+
errorMsg: string;
|
|
54
|
+
};
|
|
55
|
+
serializedErrorType?: unknown;
|
|
56
|
+
pendingMeta?: unknown;
|
|
57
|
+
fulfilledMeta?: unknown;
|
|
58
|
+
rejectedMeta?: unknown;
|
|
59
|
+
}>;
|
|
60
|
+
};
|
|
61
|
+
selectors: {
|
|
62
|
+
commentList: (state: RootState, idArticle: number, limit?: number) => CommentList[];
|
|
63
|
+
};
|
|
64
|
+
getCommentRTHandlers: (dispatch: import('../..').AppDispatch, idArticle: number) => Array<import('jamespot-user-api').RTMessageHandler<"JAMESPOT", import('jamespot-user-api').Namespaces["JAMESPOT"]>>;
|
|
65
|
+
getCommentsLikeRTHandlers: (dispatch: import('../..').AppDispatch, idComments: number[] | undefined, idArticle: number) => Array<import('jamespot-user-api').RTMessageHandler<"CUSTOM-ACTION", import('jamespot-user-api').Namespaces["CUSTOM-ACTION"]>>;
|
|
66
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CommentWithExtensions, FormatComments } from 'jamespot-user-api';
|
|
2
|
+
import { Loading } from '../../types/utils';
|
|
3
|
+
export type CommentRootState = {
|
|
4
|
+
comment: CommentListRootState;
|
|
5
|
+
};
|
|
6
|
+
export type CommentList = CommentWithExtensions<FormatComments<'raw-list'>, ['actions', 'quarantine']> & {
|
|
7
|
+
pending?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type CommentsList = {
|
|
10
|
+
idArticle: number;
|
|
11
|
+
list: Array<CommentList>;
|
|
12
|
+
};
|
|
13
|
+
export type CommentListState = Loading & {
|
|
14
|
+
comments: Array<CommentsList>;
|
|
15
|
+
};
|
|
16
|
+
export type CommentListRootState = {
|
|
17
|
+
commentList: CommentListState;
|
|
18
|
+
};
|